text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">Excuse me If this question is duplicate, i can not find solution in issues. I want to set Image to background.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13766432/12643110/5cfce378-c5cf-11e5-9208-a2d26fca001d.PNG"><img src="https://cloud.githubusercontent.com/assets/13766432/12643110/5cfce378-c5cf-11e5-9208-a2d26fca001d.PNG" alt="capture" style="max-width: 100%;"></a></p> | <p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Tolriq/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Tolriq">@Tolriq</a>: It's not possible to setLog to higher than Error.</p>
<p dir="auto">So no way to disable some logs in release mode, like</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E/Glide: class com.bumptech.glide.load.engine.GlideException: Received null model
E/Glide: class com.bumptech.glide.load.engine.GlideException: Failed to load resource"><pre class="notranslate"><code class="notranslate">E/Glide: class com.bumptech.glide.load.engine.GlideException: Received null model
E/Glide: class com.bumptech.glide.load.engine.GlideException: Failed to load resource
</code></pre></div>
<p dir="auto">That in some cases are perfectly normal (user supplied ressources, no need to do a precheck for existence as Glide does it already, simplifies code).<br>
Did I miss something ?</p>
<p dir="auto">Strange related thing searching again before pressing comment:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // Only log at more verbose log levels if the user has set a fallback drawable, because
// fallback Drawables indicate the user expects null models occasionally.
int logLevel = getFallbackDrawable() == null ? Log.WARN : Log.DEBUG;
onLoadFailed(new GlideException("Received null model"), logLevel);"><pre class="notranslate"> <span class="pl-c">// Only log at more verbose log levels if the user has set a fallback drawable, because</span>
<span class="pl-c">// fallback Drawables indicate the user expects null models occasionally.</span>
<span class="pl-smi">int</span> <span class="pl-s1">logLevel</span> = <span class="pl-en">getFallbackDrawable</span>() == <span class="pl-c1">null</span> ? <span class="pl-smi">Log</span>.<span class="pl-c1">WARN</span> : <span class="pl-smi">Log</span>.<span class="pl-c1">DEBUG</span>;
<span class="pl-en">onLoadFailed</span>(<span class="pl-k">new</span> <span class="pl-smi">GlideException</span>(<span class="pl-s">"Received null model"</span>), <span class="pl-s1">logLevel</span>);</pre></div>
<p dir="auto">Yet the errors are at Error level in logcat. (And I use listeners to handle errors not fallback drawable but not important).</p> | 0 |
<p dir="auto">If you know how to fix the issue, make a pull request instead.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/sinon#5.0.7</code> package and had problems. (5.0.7 is latest)</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. (sorry for including everyone!)
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MrBigDog2U/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MrBigDog2U">@MrBigDog2U</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rationull/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rationull">@rationull</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lumaxis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lumaxis">@lumaxis</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nicojs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nicojs">@nicojs</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/43081j/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/43081j">@43081j</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JoshuaKGoldberg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JoshuaKGoldberg">@JoshuaKGoldberg</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gjednaszewski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gjednaszewski">@gjednaszewski</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/johnjesse/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johnjesse">@johnjesse</a></li>
</ul>
</li>
</ul>
<hr>
<p dir="auto">I recently installed the latest @types/sinon package (version 5.0.7) and found a number of <strong>breaking changes</strong> compared to the 5.0.1 package. Resulting in a number of spec file errors. These sorts of errors were very unexpected due the version changing being only a "patch", but resulted in 100+ linting errors.</p>
<p dir="auto">Most of these seem to be related to the changes made to the sinon.SinonSandbox type. For example, this code used to be fine in 5.0.1</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as sinon from 'sinon';
// describe
let sandbox: sinon.SinonSandbox;
beforeEach(() => {
sandbox = sinon.createSanbox();
});
// spec file
sandbox
.stub(AppModel.prototype as any, 'create')
.returns(Promise.resolve({}));
// class file
AppModel {
private create(): AppResponse {
//...
}
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">sinon</span> <span class="pl-k">from</span> <span class="pl-s">'sinon'</span><span class="pl-kos">;</span>
<span class="pl-c">// describe</span>
<span class="pl-k">let</span> <span class="pl-s1">sandbox</span>: <span class="pl-s1">sinon</span><span class="pl-kos">.</span><span class="pl-smi">SinonSandbox</span><span class="pl-kos">;</span>
<span class="pl-en">beforeEach</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">sandbox</span> <span class="pl-c1">=</span> <span class="pl-s1">sinon</span><span class="pl-kos">.</span><span class="pl-en">createSanbox</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">// spec file</span>
<span class="pl-s1">sandbox</span>
<span class="pl-kos">.</span><span class="pl-en">stub</span><span class="pl-kos">(</span><span class="pl-smi">AppModel</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-k">as</span> <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s">'create'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">returns</span><span class="pl-kos">(</span><span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-en">resolve</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">// class file</span>
<span class="pl-smi">AppModel</span><span class="pl-kos"></span> <span class="pl-kos">{</span>
<span class="pl-k">private</span> <span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">AppResponse</span> <span class="pl-kos">{</span>
<span class="pl-c">//...</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">But after 5.0.7 installation I'd get errors on the given code such as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test/models/app-model.spec.ts(59,7): error TS2349: Cannot invoke an expression
whose type lacks a call signature.
Type '((obj: any) => SinonStub<any[], any>) | ((obj: {}) => SinonStub<unknown[], {}>)'
has no compatible call signatures."><pre class="notranslate"><code class="notranslate">test/models/app-model.spec.ts(59,7): error TS2349: Cannot invoke an expression
whose type lacks a call signature.
Type '((obj: any) => SinonStub<any[], any>) | ((obj: {}) => SinonStub<unknown[], {}>)'
has no compatible call signatures.
</code></pre></div>
<p dir="auto">I was able to "quick-fix" this issue by changing the spec file code to:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(sandbox as any)
.stub(AppModel.prototype as any, 'create')
.returns(Promise.resolve({}));"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-s1">sandbox</span> <span class="pl-k">as</span> <span class="pl-smi">any</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">stub</span><span class="pl-kos">(</span><span class="pl-smi">AppModel</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-k">as</span> <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s">'create'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">returns</span><span class="pl-kos">(</span><span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-en">resolve</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">But this sort of solution was not optimal since I was essentially making sinon's sandbox an any type just to fix issues with my "stubbing". This issue really caught me off guard since it was introduced within a "patch" change.</p>
<p dir="auto">There were a number of other unwanted changes that all resulted in a number of linting errors.</p> | <p dir="auto">If you know how to fix the issue, make a pull request instead.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/sinon</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond.
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/johnjesse/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johnjesse">@johnjesse</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/PranavSenthilnathan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/PranavSenthilnathan">@PranavSenthilnathan</a></li>
</ul>
</li>
</ul>
<p dir="auto">With the delivery of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="379479076" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30442" data-hovercard-type="pull_request" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/pull/30442/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30442">#30442</a>, which resulted in <code class="notranslate">@type/sinon</code> version 5.0.6 being published, my builds stopped working.</p>
<p dir="auto">I get multiple errors such as this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules/@types/sinon/index.d.ts:41:20 - error TS2370: A rest parameter must be of an array type.
41 calledWith(...args: TArgs): boolean;
~~~~~~~~~~~~~~
node_modules/@types/sinon/index.d.ts:45:27 - error TS2370: A rest parameter must be of an array type.
45 calledWithExactly(...args: TArgs): boolean;
~~~~~~~~~~~~~~"><pre class="notranslate"><code class="notranslate">node_modules/@types/sinon/index.d.ts:41:20 - error TS2370: A rest parameter must be of an array type.
41 calledWith(...args: TArgs): boolean;
~~~~~~~~~~~~~~
node_modules/@types/sinon/index.d.ts:45:27 - error TS2370: A rest parameter must be of an array type.
45 calledWithExactly(...args: TArgs): boolean;
~~~~~~~~~~~~~~
</code></pre></div>
<p dir="auto">If this library is not backward compatible with TypeScript 2.9.x, shouldn't it be published as version 6 instead of 5.0.x ?</p>
<p dir="auto">I don't know much about Typescript, but my builds are failing, my developers are 12 hours away and my investigation got me here. If I misunderstood the Types and the way they are versioned, please let me know and close this issue.</p>
<p dir="auto">Thank.</p> | 1 |
<p dir="auto">The issue is related to using the 'navbar' in smalll devices (320x480).</p>
<p dir="auto">The 'navbar-fixed-top' cannot be scrolled down to the bottom of 'navbar-collapse' div.</p>
<p dir="auto">This can easily be reproduced in the jumbotron sample page: <a href="http://getbootstrap.com/examples/jumbotron/" rel="nofollow">http://getbootstrap.com/examples/jumbotron/</a>.</p>
<p dir="auto">After fitting the page to a small device (320x480), when you press on the 'navbar-toggle' button, then the scroll bar cannot reach the "email" & "password" elements.</p>
<p dir="auto">Thanks!</p> | <p dir="auto">I have a navbar with 8 links. I've noticed that when I activate the navbar on a phone and view it in landscape, it doesn't scroll all the way down to display the last link.</p>
<p dir="auto">A live example of this can be shown on the 'Jumbotron' example template. When I drop down the menu I can't view the whole login form.</p> | 1 |
<p dir="auto">After I upgrade to alpha version 34 of the router I get errors related to the routeConfig object at runtime:</p>
<p dir="auto">\router_2.RouteConfig is not a function</p>
<p dir="auto">Running against alpha.33 does not produce the same error.</p>
<p dir="auto">The typings seem ok, so this is a runtime error when using version 34</p> | <p dir="auto">im getting router_1.RouteConfig is not a function on 34 but when i switch back to 33 its okay. Is there a change in name?</p> | 1 |
<p dir="auto"><strong>Bug</strong><br>
<code class="notranslate">jnp.flatnonzero</code> and <code class="notranslate">jnp.argwhere</code> mention <code class="notranslate">fill_value</code> option in documentation, but calling with <code class="notranslate">fill_value</code> leads to 'unexpected keyword argument' error.</p>
<p dir="auto">In the below code, the last two lines will raise errors due to unexpected argument <code class="notranslate">fill_value</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.numpy as jnp
d = jnp.array([True,False,True])
jnp.nonzero(d, size=20, fill_value=100)
jnp.flatnonzero(d, size=20, fill_value=100)
jnp.argwhere(d, size=20, fill_value=100)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span>
<span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">array</span>([<span class="pl-c1">True</span>,<span class="pl-c1">False</span>,<span class="pl-c1">True</span>])
<span class="pl-s1">jnp</span>.<span class="pl-en">nonzero</span>(<span class="pl-s1">d</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">20</span>, <span class="pl-s1">fill_value</span><span class="pl-c1">=</span><span class="pl-c1">100</span>)
<span class="pl-s1">jnp</span>.<span class="pl-en">flatnonzero</span>(<span class="pl-s1">d</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">20</span>, <span class="pl-s1">fill_value</span><span class="pl-c1">=</span><span class="pl-c1">100</span>)
<span class="pl-s1">jnp</span>.<span class="pl-en">argwhere</span>(<span class="pl-s1">d</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">20</span>, <span class="pl-s1">fill_value</span><span class="pl-c1">=</span><span class="pl-c1">100</span>)</pre></div>
<p dir="auto"><strong>Why?</strong><br>
The implementation of <code class="notranslate">jnp.flatnonzero</code> and <code class="notranslate">jnp.argwhere</code> link back to <code class="notranslate">jnp.nonzero</code> but the <code class="notranslate">fill_value</code> argument wasn't threaded through (just the <code class="notranslate">size</code> argument).</p>
<p dir="auto">The threading is there in <code class="notranslate">jnp.where</code> and other cases, just those two have been missed as far as I've noticed.</p>
<p dir="auto"><strong>Fix</strong><br>
Pull request:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1078666664" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/8926" data-hovercard-type="pull_request" data-hovercard-url="/google/jax/pull/8926/hovercard" href="https://github.com/google/jax/pull/8926">#8926</a><br>
just threads the argument</p>
<p dir="auto">Images</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44170519/145838724-958be84b-68b3-4d8d-980e-4dc8bc5bb0d3.png"><img src="https://user-images.githubusercontent.com/44170519/145838724-958be84b-68b3-4d8d-980e-4dc8bc5bb0d3.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44170519/145838907-673fb312-8b0b-4433-9be3-0d29cdf5cd82.png"><img src="https://user-images.githubusercontent.com/44170519/145838907-673fb312-8b0b-4433-9be3-0d29cdf5cd82.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">Please:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate issues.</li>
</ul>
<p dir="auto">I'm not sure if there's an elegant way to fix this. I noticed that when I differentiate <code class="notranslate">jnp.linalg.norm</code> when the input is <code class="notranslate">0</code>, the gradient is <code class="notranslate">nan</code>. I believe this is due to the vanishing denominator in the derivative. However, the numerator compensates for this in reality and the gradient should be <code class="notranslate">0</code>. For example,</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax
import jax.numpy as jnp
x = jnp.array([1., 2., 3.])
jax.grad(jnp.linalg.norm)(x - x) #[nan nan nan]
l2_dist_sq = lambda x, y: jnp.linalg.norm(x - y) ** 2
jax.grad(l2_dist_sq)(x, x) #[nan nan nan]
# This should be the same as l2_dist_sq
oracle_l2_dist_sq = lambda x, y: (x - y).dot(x - y)
jax.grad(oracle_l2_dist_sq)(x, x) #[0 0 0]"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>
<span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">array</span>([<span class="pl-c1">1.</span>, <span class="pl-c1">2.</span>, <span class="pl-c1">3.</span>])
<span class="pl-s1">jax</span>.<span class="pl-en">grad</span>(<span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-s1">norm</span>)(<span class="pl-s1">x</span> <span class="pl-c1">-</span> <span class="pl-s1">x</span>) <span class="pl-c">#[nan nan nan]</span>
<span class="pl-s1">l2_dist_sq</span> <span class="pl-c1">=</span> <span class="pl-k">lambda</span> <span class="pl-s1">x</span>, <span class="pl-s1">y</span>: <span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">norm</span>(<span class="pl-s1">x</span> <span class="pl-c1">-</span> <span class="pl-s1">y</span>) <span class="pl-c1">**</span> <span class="pl-c1">2</span>
<span class="pl-s1">jax</span>.<span class="pl-en">grad</span>(<span class="pl-s1">l2_dist_sq</span>)(<span class="pl-s1">x</span>, <span class="pl-s1">x</span>) <span class="pl-c">#[nan nan nan]</span>
<span class="pl-c"># This should be the same as l2_dist_sq</span>
<span class="pl-s1">oracle_l2_dist_sq</span> <span class="pl-c1">=</span> <span class="pl-k">lambda</span> <span class="pl-s1">x</span>, <span class="pl-s1">y</span>: (<span class="pl-s1">x</span> <span class="pl-c1">-</span> <span class="pl-s1">y</span>).<span class="pl-en">dot</span>(<span class="pl-s1">x</span> <span class="pl-c1">-</span> <span class="pl-s1">y</span>)
<span class="pl-s1">jax</span>.<span class="pl-en">grad</span>(<span class="pl-s1">oracle_l2_dist_sq</span>)(<span class="pl-s1">x</span>, <span class="pl-s1">x</span>) <span class="pl-c">#[0 0 0]</span></pre></div>
<p dir="auto">Of course, I highly doubt <code class="notranslate">jnp.linalg.norm</code> is the only instance of this "bug", but I suspect this is a very commonly used function. It took me fairly long to deduce that my <code class="notranslate">nan</code>s were coming from this gradient. I suppose a simple fix in this case would be something like</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def norm(x, eps=1e-9):
norm_sq = x.dot(x)
return jnp.where(norm_sq < eps, 0, jnp.sqrt(norm_sq))"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">norm</span>(<span class="pl-s1">x</span>, <span class="pl-s1">eps</span><span class="pl-c1">=</span><span class="pl-c1">1e-9</span>):
<span class="pl-s1">norm_sq</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span>.<span class="pl-en">dot</span>(<span class="pl-s1">x</span>)
<span class="pl-k">return</span> <span class="pl-s1">jnp</span>.<span class="pl-en">where</span>(<span class="pl-s1">norm_sq</span> <span class="pl-c1"><</span> <span class="pl-s1">eps</span>, <span class="pl-c1">0</span>, <span class="pl-s1">jnp</span>.<span class="pl-en">sqrt</span>(<span class="pl-s1">norm_sq</span>))</pre></div>
<p dir="auto">Having said that, perhaps there's a more conventional way of achieving this?</p> | 0 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
In the transition to Angular 4, AbstractControl documentation seems to be missing some functions.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
The documentation should match with <a href="https://v2.angular.io/docs/ts/latest/api/forms/index/AbstractControl-class.html" rel="nofollow">https://v2.angular.io/docs/ts/latest/api/forms/index/AbstractControl-class.html</a></p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Compare <a href="https://angular.io/docs/ts/latest/api/forms/index/AbstractControl-class.html" rel="nofollow">https://angular.io/docs/ts/latest/api/forms/index/AbstractControl-class.html</a> with <a href="https://github.com/angular/angular/blob/4.0.0/packages/forms/src/model.ts">https://github.com/angular/angular/blob/4.0.0/packages/forms/src/model.ts</a></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 4.0</li>
</ul>
<p dir="auto">Moved from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="217703061" data-permission-text="Title is private" data-url="https://github.com/angular/angular.io/issues/3454" data-hovercard-type="issue" data-hovercard-url="/angular/angular.io/issues/3454/hovercard" href="https://github.com/angular/angular.io/issues/3454">angular/angular.io#3454</a></p> | <p dir="auto">We have a library of components for angular that we are currently migrating to Angular 2. We have a container that injects content using <code class="notranslate">ng-content</code>. We would like to have a child component that injects the parent if you nest it inside of the parent, like so:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<parent>
<child></child>
</parent>"><pre class="notranslate"><code class="notranslate"><parent>
<child></child>
</parent>
</code></pre></div>
<p dir="auto">This works beautifully in angular 2. However, since are in the process of migration, we would like to use the ngUpgrade adapter for this. The dependency injection seems to fail if the parent and child are specified in an angular 1 context. Any insights on this issue? Is this something that is going to be supported in the ngUpgrade adapter?</p>
<p dir="auto">I have a working plunker that illustrates the problem:</p>
<p dir="auto"><a href="http://plnkr.co/edit/9qb6ZK9SpJyrWoJDEFEj?p=preview" rel="nofollow">http://plnkr.co/edit/9qb6ZK9SpJyrWoJDEFEj?p=preview</a></p>
<p dir="auto">In both cases, the template includes a parent with the child <code class="notranslate">transcluded/projected</code> into it. The child tries to inject the parent and then calls a function on it when you press the button. The ng2 example works, but not the ng1/ngUpgrade one.</p> | 0 |
<p dir="auto">I was expecting to download a portable package (.whl or .egg) and use it as such:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import sys; sys.path.append( '/extensions/TensorFlow...win32.egg' )
import tensorflow # if this line doesn't work, the egg/whl is not portable.
# ..."><pre class="notranslate"><code class="notranslate">import sys; sys.path.append( '/extensions/TensorFlow...win32.egg' )
import tensorflow # if this line doesn't work, the egg/whl is not portable.
# ...
</code></pre></div>
<p dir="auto">when you say "provided binary packages" that just means I expect .pyd files within the egg or whl.</p>
<p dir="auto">for an example of a portable egg, just look at pillow ;)</p> | <p dir="auto">I was excited to see tensorflow, but as many other users, we are on Windows, would be nice to see this support happen. Will you accept Windows port contributions?</p>
<p dir="auto">In the meantime, Microsoft recently released their Deep Learning toolkit which scales on multiple machines with GPUs for both Linux and Windows. <a href="https://github.com/Microsoft/CNTK">https://github.com/Microsoft/CNTK</a></p> | 1 |
<p dir="auto">Hello!</p>
<p dir="auto">I noticed that in my Google Chrome and IE Bootstrap's labels and badges contain strange padding. In Firefox all looks OK.<br>
Please find attached a screenshot of official Bootstrap web site in my browsers.<br>
P.S. I thought there is some problem with my computer or OS (Windows 7, 1366x769 resolution), but anyway I'd like to share this issue</p>
<p dir="auto">Alex</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7204595/2630887/4e2adddc-be51-11e3-8dde-e7966d53ca04.PNG"><img src="https://cloud.githubusercontent.com/assets/7204595/2630887/4e2adddc-be51-11e3-8dde-e7966d53ca04.PNG" alt="bootstrap_labels" style="max-width: 100%;"></a></p> | <p dir="auto">The "Helvetica Neue" font is somehow causing problems in Bootstrap in any (tested) browser other than Firefox.<br>
Removing this font has no (apparent) negative effect on either Firefox or IE9, except that the latter one has its boldness problem resolved.</p>
<p dir="auto">I've made a screenshot composition to show the differences between browsers: <a href="http://i39.tinypic.com/keyybs.png" rel="nofollow">http://i39.tinypic.com/keyybs.png</a></p>
<p dir="auto">Its rather odd that Firefox is the only (tested) browser that is not affected?</p> | 1 |
<p dir="auto">It seems in certain cases that a machine's environment will include an array.</p>
<p dir="auto">We seem to see this when using Assetic to compile a less file with the less compiler.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/*
[exception] 500 | Internal Server Error | ErrorException
[message] Notice: Array to string conversion in /[edited]/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 141
[1] ErrorException: Notice: Array to string conversion in /[edited]/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 141
at n/a
in /[edited]/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 141
at Symfony\Component\HttpKernel\Debug\ErrorHandler-&gt;handle(&#039;8&#039;, &#039;Array to string conversion&#039;"><pre class="notranslate"><code class="notranslate">/*
[exception] 500 | Internal Server Error | ErrorException
[message] Notice: Array to string conversion in /[edited]/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 141
[1] ErrorException: Notice: Array to string conversion in /[edited]/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 141
at n/a
in /[edited]/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 141
at Symfony\Component\HttpKernel\Debug\ErrorHandler-&gt;handle(&#039;8&#039;, &#039;Array to string conversion&#039;
</code></pre></div>
<p dir="auto">Offending line of code is here:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" $this->env = array();
foreach ($env as $key => $value) {
$this->env[(binary) $key] = (binary) $value;
}"><pre class="notranslate"> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">env</span> = <span class="pl-en">array</span>();
<span class="pl-k">foreach</span> (<span class="pl-s1"><span class="pl-c1">$</span>env</span> <span class="pl-k">as</span> <span class="pl-s1"><span class="pl-c1">$</span>key</span> => <span class="pl-s1"><span class="pl-c1">$</span>value</span>) {
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">env</span>[(<span class="pl-smi">binary</span>) <span class="pl-s1"><span class="pl-c1">$</span>key</span>] = (<span class="pl-smi">binary</span>) <span class="pl-s1"><span class="pl-c1">$</span>value</span>;
}</pre></div>
<p dir="auto">The problem happens on the casting of $value to (binary).</p>
<p dir="auto">I'll try to submit a patch.</p>
<p dir="auto">(Note we were using Symfony 2.2, but it's probably in master as well)</p> | <p dir="auto">Line 138-142 of Process.php:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" if (null !== $env) {
$this->env = array();
foreach ($env as $key => $value) {
$this->env[(binary) $key] = (binary) $value;
}"><pre class="notranslate"> <span class="pl-k">if</span> (<span class="pl-c1">null</span> !== <span class="pl-s1"><span class="pl-c1">$</span>env</span>) {
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">env</span> = <span class="pl-en">array</span>();
<span class="pl-k">foreach</span> (<span class="pl-s1"><span class="pl-c1">$</span>env</span> <span class="pl-k">as</span> <span class="pl-s1"><span class="pl-c1">$</span>key</span> => <span class="pl-s1"><span class="pl-c1">$</span>value</span>) {
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">env</span>[(<span class="pl-smi">binary</span>) <span class="pl-s1"><span class="pl-c1">$</span>key</span>] = (<span class="pl-smi">binary</span>) <span class="pl-s1"><span class="pl-c1">$</span>value</span>;
}</pre></div>
<p dir="auto">In certain circumstances, ProcessBuilder.php will grab $_ENV and merge it into the array passed into Process.php</p>
<p dir="auto">ProcessBuilder.php line 148-154:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" if ($this->inheritEnv) {
$env = $this->env ? $this->env + $_ENV : null;
} else {
$env = $this->env;
}
return new Process($script, $this->cwd, $env, $this->stdin, $this->timeout, $options);"><pre class="notranslate"> <span class="pl-k">if</span> (<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">inheritEnv</span>) {
<span class="pl-s1"><span class="pl-c1">$</span>env</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">env</span> ? <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">env</span> + <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-c1">_ENV</span></span> : <span class="pl-c1">null</span>;
} <span class="pl-k">else</span> {
<span class="pl-s1"><span class="pl-c1">$</span>env</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">env</span>;
}
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">Process</span>(<span class="pl-s1"><span class="pl-c1">$</span>script</span>, <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">cwd</span>, <span class="pl-s1"><span class="pl-c1">$</span>env</span>, <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">stdin</span>, <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">timeout</span>, <span class="pl-s1"><span class="pl-c1">$</span>options</span>);</pre></div>
<p dir="auto">The problem is that there are certain cases where $_ENV['something'] can be an array.</p>
<p dir="auto">Right now in one of our environments, I'm seeing $_ENV['argv'] as an array, for example. This happens during Less to CSS generation.</p> | 1 |
<p dir="auto">.container {<br>
padding-right: 15px;<br>
padding-left: 15px;<br>
margin-right: auto;<br>
margin-left: auto;<br>
}</p>
<p dir="auto">.container:before, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1445875" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/1/hovercard" href="https://github.com/twbs/bootstrap/pull/1">#1</a><br>
.container:after {<br>
display: table;<br>
content: " ";<br>
}</p>
<p dir="auto">.container:after { <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1446398" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/2" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/2/hovercard" href="https://github.com/twbs/bootstrap/issues/2">#2</a><br>
clear: both;<br>
}</p>
<p dir="auto">.container:before, DUPLICATE OF <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1445875" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/1/hovercard" href="https://github.com/twbs/bootstrap/pull/1">#1</a><br>
.container:after {<br>
display: table;<br>
content: " ";<br>
}</p>
<p dir="auto">.container:after { DUPLICATE OF <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1446398" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/2" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/2/hovercard" href="https://github.com/twbs/bootstrap/issues/2">#2</a><br>
clear: both;<br>
}</p>
<p dir="auto">.row {<br>
margin-right: -15px;<br>
margin-left: -15px;<br>
}</p>
<p dir="auto">.row:before, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1446658" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/3" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/3/hovercard" href="https://github.com/twbs/bootstrap/pull/3">#3</a><br>
.row:after {<br>
display: table;<br>
content: " ";<br>
}</p>
<p dir="auto">.row:after { <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1446676" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/4" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/4/hovercard" href="https://github.com/twbs/bootstrap/issues/4">#4</a><br>
clear: both;<br>
}</p>
<p dir="auto">.row:before, DUPLICATE OF <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1446658" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/3" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/3/hovercard" href="https://github.com/twbs/bootstrap/pull/3">#3</a><br>
.row:after {<br>
display: table;<br>
content: " ";<br>
}</p>
<p dir="auto">.row:after { DUPLICATE OF <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1446676" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/4" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/4/hovercard" href="https://github.com/twbs/bootstrap/issues/4">#4</a><br>
clear: both;<br>
}</p> | <p dir="auto">show on bootstrap.css</p>
<p dir="auto"><a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L581">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L581</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L723">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L723</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L743">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L743</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2023">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2023</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2433">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2433</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2617">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2617</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2637">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2637</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3032">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3032</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3296">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3296</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3453">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3453</a></p> | 1 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.5.2</li>
<li>Operating System / Platform => Ubuntu 20.04</li>
<li>Tested with Python 3.8.5</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I have been working with VideoCapture, everything working fine until I tested my code with an older video in .mpg format. In that video occurs the following:</p>
<ol dir="auto">
<li>When doing cap.set(cv2.CAP_PROP_POS_FRAMES, 0), the frame is not set to the first frame, but rather to a posterior frame. The same happens for other intermediate frames, where it seems to be skipping some frames.</li>
<li>When doing cap.read() it works properly (beginning from the frame 0 and reading all the intermediate frames).</li>
<li>When re-encoding the video with ffmpeg, doing cap.set(cv2.CAP_PROP_POS_FRAMES, 0) works properly (i.e. doesn't skip initial frames). If the video codec is copied (-c:v copy), it follows the same wrong behaviour.</li>
</ol>
<p dir="auto">I think it might be related to the IBP frame encoding, positioning to the closes "I" frame, but I believe it should be considered a bug if the intention of cap.set() is to position specifically to the frame of interest.</p>
<p dir="auto"><a href="https://github.com/opencv/opencv/files/6606176/2001_10_20_19_00_trim.mpg.zip">2001_10_20_19_00_trim.mpg.zip</a></p>
<p dir="auto">EDIT: Link to the video was in the middle of the text.</p>
<h5 dir="auto">Steps to reproduce</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cap = cv2.VideoCapture('2001_10_20_19_00_trim.mpg')
# Works as expected
_, frame = cap.read()
cv2.imwrite('0_read.jpg', frame)
# Returns a posterior frame
cap.set(cv2.CAP_PROP_POS_FRAMES, 0)
_, frame = cap.read()
cv2.imwrite('0_set.jpg', frame)"><pre class="notranslate"><code class="notranslate">cap = cv2.VideoCapture('2001_10_20_19_00_trim.mpg')
# Works as expected
_, frame = cap.read()
cv2.imwrite('0_read.jpg', frame)
# Returns a posterior frame
cap.set(cv2.CAP_PROP_POS_FRAMES, 0)
_, frame = cap.read()
cv2.imwrite('0_set.jpg', frame)
</code></pre></div>
<h5 dir="auto">Issue submission checklist</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues,<br>
forum.opencv.org, Stack Overflow, etc and have not found solution
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to latest OpenCV version and the issue is still there
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files: videos, images, onnx, etc
</li>
</ul> | <p dir="auto">Example and confirmed effect:</p>
<p dir="auto"><a href="http://answers.opencv.org/question/162781/videocaptureset-cap_prop_pos_frames-framenumber-not-exact-in-opencv-32-with-ffmpeg/" rel="nofollow">http://answers.opencv.org/question/162781/videocaptureset-cap_prop_pos_frames-framenumber-not-exact-in-opencv-32-with-ffmpeg/</a></p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.6</li>
<li>Operating System version: mac 10.14.6</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">[DUBBO] Notify urls for subscribe url provider://192.168.0.107:20881/com.alibaba.cloud.dubbo.service.DubboMetadataService?anyhost=true&application=seata-dubbo-nacos-zoo-consumer&bind.ip=192.168.0.107&bind.port=20881&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&group=seata-zoo&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&methods=getAllServiceKeys,getServiceRestMetadata,getExportedURLs,getAllExportedURLs&pid=24719&release=2.7.6&revision=2.2.1.RELEASE&side=provider&timestamp=1588501610020&version=1.0.0, urls: [empty://192.168.0.107:20881/com.alibaba.cloud.dubbo.service.DubboMetadataService?anyhost=true&application=seata-dubbo-nacos-zoo-consumer&bind.ip=192.168.0.107&bind.port=20881&category=providers&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&group=seata-zoo&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&methods=getAllServiceKeys,getServiceRestMetadata,getExportedURLs,getAllExportedURLs&pid=24719&release=2.7.6&revision=2.2.1.RELEASE&side=provider&timestamp=1588501610020&version=1.0.0], dubbo version: 2.7.6, current host: 192.168.0.107</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?<br>
consumer可以正常消费消息</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?<br>
boot项目启动阻塞</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=""Attach Listener"@1,859: RUNNING
"com.alibaba.nacos.client.config.security.updater"@5,528 in group "main": WAIT
"com.alibaba.nacos.client.config.security.updater"@3,698 in group "main": WAIT
"><pre class="notranslate"><code class="notranslate">"Attach Listener"@1,859: RUNNING
"com.alibaba.nacos.client.config.security.updater"@5,528 in group "main": WAIT
"com.alibaba.nacos.client.config.security.updater"@3,698 in group "main": WAIT
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.5.3</li>
<li>Operating System version: macOS 10.14.5 (18F132)</li>
<li>Java version: 1.7</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">When I use Dubbo's merger function, the service consumer configures this way<br>
<dubbo:reference id="mergerGroupService" interface="com.xzd.service.GroupService" group="*" merger=".addAll" /><br>
The service provider is configured like this<br>
<br>
<br>
<br>
<dubbo:service interface="com.xzd.service.GroupService" ref="userGroupService" group="user" /><br>
<dubbo:service interface="com.xzd.service.GroupService" ref="adminGroupService" group="admin" /><br>
<dubbo:service interface="com.xzd.service.GroupService" ref="otherGroupService" group="other" /><br>
An exception occurred when I called, I look at the exception stack (the exception stack is as follows) and find that it does not print out the real class name, but prints out 'can not merge result because missing method [addall] in class [Java. Lang.class]', but the result of my method is java.util.list,I check the source code of printing exception (mergeableclusterinvoker. Java: 140):<br>
throw new RpcException( new StringBuilder( 32 )<br>
.append( "Can not merge result because missing method [ " )<br>
.append( merger )<br>
.append( " ] in class [ " )<br>
.append( returnType.getClass().getName() )<br>
.append( " ]" )<br>
.toString() );<br>
I find it's because of this line of code<br>
returnType.getClass().getName();<br>
When I changed the code to<br>
returnType.getName();<br>
, it printed out the correct stack information<br>
Exception in thread "main" com.alibaba.dubbo.rpc.RpcException: Can not merge result because missing method [ addAll ] in class [ java.util.List ]</p>
<p dir="auto">I found that the current code also has this problem</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.<br>
<a href="https://gitee.com/figthing/dubbo-study.git" rel="nofollow">https://gitee.com/figthing/dubbo-study.git</a></p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Exception in thread "main" com.alibaba.dubbo.rpc.RpcException: Can not merge result because missing method [ addAll ] in class [ java.util.List ]</p>
<p dir="auto">What do you expected from the above steps?</p>
<p dir="auto">I want to modify this part of the code</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!
Exception in thread "main" com.alibaba.dubbo.rpc.RpcException: Can not merge result because missing method [ addAll ] in class [ java.lang.Class ]
at com.alibaba.dubbo.rpc.cluster.support.MergeableClusterInvoker.invoke(MergeableClusterInvoker.java:140)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
at com.alibaba.dubbo.rpc.cluster.support.AvailableCluster$1.doInvoke(AvailableCluster.java:43)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy0.getGroupName(proxy0.java)
at com.xzd.Consumer.main(Consumer.java:30)"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
Exception in thread "main" com.alibaba.dubbo.rpc.RpcException: Can not merge result because missing method [ addAll ] in class [ java.lang.Class ]
at com.alibaba.dubbo.rpc.cluster.support.MergeableClusterInvoker.invoke(MergeableClusterInvoker.java:140)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
at com.alibaba.dubbo.rpc.cluster.support.AvailableCluster$1.doInvoke(AvailableCluster.java:43)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy0.getGroupName(proxy0.java)
at com.xzd.Consumer.main(Consumer.java:30)
</code></pre></div> | 0 |
<p dir="auto">When transpiling <code class="notranslate">js</code> files with the new <code class="notranslate">allowJs</code> param and <code class="notranslate">jsx:"preserve"</code>, all <code class="notranslate">js</code> files are output with <code class="notranslate">jsx</code> extention. Here is my tsconfig.json:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"compilerOptions": {
"module": "es2015",
"allowJs": true,
"target": "es2015",
"jsx": "preserve"
}
}"><pre class="notranslate">{
<span class="pl-ent">"compilerOptions"</span>: {
<span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>es2015<span class="pl-pds">"</span></span>,
<span class="pl-ent">"allowJs"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>es2015<span class="pl-pds">"</span></span>,
<span class="pl-ent">"jsx"</span>: <span class="pl-s"><span class="pl-pds">"</span>preserve<span class="pl-pds">"</span></span>
}
}</pre></div> | <p dir="auto">With the change to allow JSX syntax in JavaScript files by default ( <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="128012346" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6562" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/6562/hovercard" href="https://github.com/microsoft/TypeScript/pull/6562">#6562</a> ), the compiler now emits all JavaScript files with a .jsx extension if the compiler option "jsx" is set to "preserve".</p> | 1 |
<p dir="auto">It is an easy task and had provided the answer in the description.<br>
However it doesn't give me a tick.</p>
<blockquote>
<p dir="auto">Waypoint: Style the HTML Body Element<br>
Now let's start fresh and talk about CSS inheritance.<br>
Every HTML page has a body element.<br>
We can prove that the body element exists here by giving it a background-color of black.<br>
We can do this by adding the following to our style element:</p>
<p dir="auto">body {<br>
background-color: black;<br>
}</p>
</blockquote>
<p dir="auto">My Code:</p>
<blockquote>
<style>
body {
background-color: black;
}
</style>
</blockquote>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7202228/11492318/61e34fde-9826-11e5-9a8a-93eae17e731f.png"><img src="https://cloud.githubusercontent.com/assets/7202228/11492318/61e34fde-9826-11e5-9a8a-93eae17e731f.png" alt="untitled" style="max-width: 100%;"></a></p> | <p dir="auto">I've done what was expected but still can't move on. The code is correct since it was simply changing the color black to its hex code. Please help.</p> | 1 |
<p dir="auto">I want to use glide in a library and in my application.<br>
I know that I have to extends my glide module in the library from "LibraryGlideModule" but when I use that and build my library project this classes not generated "GlideRequest, GlideApp" . is there any example of using LibraryGlideModule in glide 4.x?<br>
thanks.</p> | <p dir="auto">I have to load multiple GIF in Activity, it works fine but getting continuously this message <strong>Called reconfigure on a bitmap that is in use! This may cause graphical corruption!</strong><br>
i am using GIF from Drawable folder</p>
<p dir="auto">this new gradle version i am using right now <strong>compile 'com.github.bumptech.glide:glide:4.0.0-RC0'</strong></p>
<p dir="auto">this is how m calling image to set using my holder.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Glide.with(mContext).load(arrayList.get(position))
.apply(new RequestOptions()
.placeholder(R.mipmap.ic_launcher)
.diskCacheStrategy(DiskCacheStrategy.AUTOMATIC))
.into(holder.ivSponser);"><pre class="notranslate"><code class="notranslate"> Glide.with(mContext).load(arrayList.get(position))
.apply(new RequestOptions()
.placeholder(R.mipmap.ic_launcher)
.diskCacheStrategy(DiskCacheStrategy.AUTOMATIC))
.into(holder.ivSponser);
</code></pre></div> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.5.17</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/Herteby/r2nb09eg/" rel="nofollow">https://jsfiddle.net/Herteby/r2nb09eg/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">As the title says, or just look at the fiddle :)</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">The slots should be rendered properly.<br>
The combination of v-for and "fragment" should return an Array of VNodes.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">The slots render as "undefined"<br>
It returns an Array of Arrays of Vnodes.</p>
<hr>
<p dir="auto">The problem seems to be that the result becomes an Array of Arrays of VNodes. Seems like it ought to be flattened.<br>
For some reason, if you add an extra element as a sibling, it fixes it.</p> | <p dir="auto">there is a code, which clones the array element</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var self = this, item, arr = [];
for(var i in self.items){
arr.push(self.items[i]);
if( i == idx){
item = arr.slice(idx, idx+1);
arr.push( item.name ? item : item[0] );
}
}
self.items = arr;"><pre class="notranslate"><code class="notranslate">var self = this, item, arr = [];
for(var i in self.items){
arr.push(self.items[i]);
if( i == idx){
item = arr.slice(idx, idx+1);
arr.push( item.name ? item : item[0] );
}
}
self.items = arr;
</code></pre></div>
<p dir="auto">the code works correctly, but the template glues source element and copied</p> | 0 |
<p dir="auto">To save you time, I've already checked appropriate closures of tags as well as quotes</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/882251/3578789/a18af988-0bb0-11e4-87df-547f4e11a78d.png"><img src="https://cloud.githubusercontent.com/assets/882251/3578789/a18af988-0bb0-11e4-87df-547f4e11a78d.png" alt="screen shot 2014-07-14 at 4 43 04 pm" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/882251/3578790/a1a64d8c-0bb0-11e4-86a1-83e0faaee7f5.png"><img src="https://cloud.githubusercontent.com/assets/882251/3578790/a1a64d8c-0bb0-11e4-86a1-83e0faaee7f5.png" alt="screen shot 2014-07-14 at 4 42 58 pm" style="max-width: 100%;"></a></p> | <p dir="auto">I opened a Python file with the following line (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20976125" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/963" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/963/hovercard" href="https://github.com/atom/atom/pull/963">#963</a>):</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" PrintAndLog(u"SSID: " + RememberedNetwork["SSIDString"].decode("utf-8") + u" - BSSID: " + RememberedNetwork["CachedScanRecord"]["BSSID"] + u" - RSSI: " + str(RememberedNetwork["CachedScanRecord"]["RSSI"]) + u" - Last connected: " + str(RememberedNetwork["LastConnected"]) + u" - Security type: " + RememberedNetwork["SecurityType"] + u" - Geolocation: " + Geolocation, "INFO")"><pre class="notranslate"> <span class="pl-v">PrintAndLog</span>(<span class="pl-s">u"SSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SSIDString"</span>].<span class="pl-en">decode</span>(<span class="pl-s">"utf-8"</span>) <span class="pl-c1">+</span> <span class="pl-s">u" - BSSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"BSSID"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - RSSI: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"RSSI"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Last connected: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"LastConnected"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Security type: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SecurityType"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - Geolocation: "</span> <span class="pl-c1">+</span> <span class="pl-v">Geolocation</span>, <span class="pl-s">"INFO"</span>)</pre></div>
<p dir="auto">Which led to the following bug:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67"><img src="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67" alt="screen shot 2014-03-03 at 2 52 40 pm" data-canonical-src="https://f.cloud.github.com/assets/44774/2313778/76bb4bba-a30d-11e3-9a64-81f6f91c25c4.png" style="max-width: 100%;"></a></p>
<p dir="auto">You can find this as the main file in <a href="https://github.com/jipegit/OSXAuditor/blob/master/osxauditor.py"><code class="notranslate">osxauditor.py</code></a>.</p> | 1 |
<p dir="auto">It looks like when using the JSONLoader in r74, the first named bone in an exported Maya scene gets a duplicate of all the geometry.</p>
<p dir="auto">Here's a <a href="https://jsfiddle.net/evantron3000/1j5xwhbf/" rel="nofollow">JSFiddle</a> that shows my current code and the issue.</p>
<p dir="auto">In this example I have 2 boxes. Each box is bound to a single bone, and each of those bones has keyframes that animate the position and rotation. There is another bone that has no geometry bound to it, and has keyframes that make no change to its position or rotation.</p>
<p dir="auto">The stationary bone is called "joint1" in Maya. The bones that actually have geometry bound to them are called "joint2" and "joint3". If I were to rename the stationary bone "joint4" the result would be a duplicate of both boxes attached to the currently animating "joint2".</p> | <p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong></p>
<p dir="auto">It would be nice to have HDR environment maps mapped onto flat planes or circles that are flatted near the bottom centre.</p>
<p dir="auto"><strong>Describe the solution you'd like</strong></p>
<p dir="auto">It should be possible to set a vertical ground height and also a bias parameter that determines how much the sphere is flatted to this ground plane.</p>
<p dir="auto">Demo:<br>
<a href="https://twitter.com/repalash/status/1494270181027508224" rel="nofollow">https://twitter.com/repalash/status/1494270181027508224</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/588541/154538684-e4cc0d54-34f5-40f4-a8f1-b22d31365f9c.png"><img src="https://user-images.githubusercontent.com/588541/154538684-e4cc0d54-34f5-40f4-a8f1-b22d31365f9c.png" alt="Screen Shot 2022-02-17 at 12 36 06 PM" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Describe alternatives you've considered</strong></p>
<p dir="auto">Modelling a flatted sphere, but that is a lot of work.</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.2.1831.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.2.1831.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Fire up WSL</li>
<li>Run vim</li>
<li>Enter some Chinese characters, they seems to be fine.</li>
<li>Press Esc, press o to insert a new line above</li>
<li>Start typeing some English letter...</li>
<li>And the Chinese characters become smaller than normal size...</li>
<li>If I type English letter beneath, It works OK</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/cbab699f9bc2bb40c6987a944fa5ba07d8b286f8536206f233f2e6c4496b2741/68747470733a2f2f692e696d6775722e636f6d2f52395a66766b612e706e67"><img src="https://camo.githubusercontent.com/cbab699f9bc2bb40c6987a944fa5ba07d8b286f8536206f233f2e6c4496b2741/68747470733a2f2f692e696d6775722e636f6d2f52395a66766b612e706e67" alt="" data-canonical-src="https://i.imgur.com/R9Zfvka.png" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/021460ccb61ed3c4780cc434f59e9ea8bf285eda348ff1036a4b770e4288da66/68747470733a2f2f692e696d6775722e636f6d2f5141795755564b2e706e67"><img src="https://camo.githubusercontent.com/021460ccb61ed3c4780cc434f59e9ea8bf285eda348ff1036a4b770e4288da66/68747470733a2f2f692e696d6775722e636f6d2f5141795755564b2e706e67" alt="" data-canonical-src="https://i.imgur.com/QAyWUVK.png" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/8e8e098c3b71cf2e5a8fc82498f2f28361905b8efaf7da6f0e1bf9e486a6d512/68747470733a2f2f692e696d6775722e636f6d2f665a5379794a612e706e67"><img src="https://camo.githubusercontent.com/8e8e098c3b71cf2e5a8fc82498f2f28361905b8efaf7da6f0e1bf9e486a6d512/68747470733a2f2f692e696d6775722e636f6d2f665a5379794a612e706e67" alt="" data-canonical-src="https://i.imgur.com/fZSyyJa.png" style="max-width: 100%;"></a></p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Chinese characters should stay the same size no matter I type something above or beneath it</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Chinese characters turn into smaller size if I type English above the line.</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows Terminal (Preview)
Version: 0.3.2171.0
Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Docker for Windows
Version 2.1.0.1(37199)
Channel stable
h2 database image running in docker"><pre class="notranslate"><code class="notranslate">Windows Terminal (Preview)
Version: 0.3.2171.0
Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Docker for Windows
Version 2.1.0.1(37199)
Channel stable
h2 database image running in docker
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Start Windows Terminal (Preview) with PowerShell as a default environment</li>
<li>Open Linux Ubuntu tab as a second tab</li>
<li>In the second tab execute <code class="notranslate">ls</code> command</li>
<li>Close the second tab</li>
<li>In the first tab execute <code class="notranslate">docker ps</code> command</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Docker list of running images is shown</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto"><code class="notranslate">CONTAINER ID</code> is printed in the console and then the terminal window closes.</p>
<p dir="auto">Logs attached: <a href="https://github.com/microsoft/terminal/files/3504587/Terminal.zip">Terminal.zip</a></p> | 0 |
<p dir="auto">It would be great if I could login with a GitHub account and have Atom store my settings either in Dropbox, or GitHub as a repository, or in some way that is easy to access and maybe even sync them across all my installations of Atom so that when I download a new package, it is downloaded everywhere. Another suggestion is to be able to manually export a .atomconfig JSON file that I could just import to Atom at any point to configure settings, install packages, change themes, etc.</p>
<p dir="auto">I think having the first would be more important for most people, but for anyone who is offline and for anyone who likes to keep their own backups in other places, the manual settings export is really useful.</p>
<p dir="auto">If this sounds like a good idea to Atom contributors and consumers, I'd like to help out with the PR to make this happen.</p> | 1 |
|
<p dir="auto"><strong>Glide Version</strong>: 4.0.0-RC0</p>
<p dir="auto"><strong>Integration libraries</strong>: OkHttp3</p>
<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br>
I'm trying to migrate from v3 to v4. Most of the things looked good until I added <code class="notranslate">@GlideModule</code> into appropriate places and Glide's <code class="notranslate">annotationProcessor</code> to each of my Gradle modules.</p>
<p dir="auto">Problematic pieces of generated code are in <code class="notranslate">GlideRequests</code> - 2 <code class="notranslate">as</code> methods:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Override
public <ResourceType> GlideRequest<ResourceType> as(Class<ResourceType> resourceClass) {
return new GlideRequest<>(glide, this, resourceClass);
}
@Override
public <ResourceType> GlideRequest<ResourceType> as(Class<ResourceType> resourceClass) {
return (GlideRequest<ResourceType>) super.as(resourceClass);
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <<span class="pl-smi">ResourceType</span>> <span class="pl-s1">GlideRequest</span><<span class="pl-s1">ResourceType</span>> <span class="pl-s1">as</span>(<span class="pl-smi">Class</span><<span class="pl-smi">ResourceType</span>> <span class="pl-s1">resourceClass</span>) {
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-smi">GlideRequest</span><>(<span class="pl-s1">glide</span>, <span class="pl-smi">this</span>, <span class="pl-s1">resourceClass</span>);
}
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <<span class="pl-smi">ResourceType</span>> <span class="pl-s1">GlideRequest</span><<span class="pl-s1">ResourceType</span>> <span class="pl-s1">as</span>(<span class="pl-smi">Class</span><<span class="pl-smi">ResourceType</span>> <span class="pl-s1">resourceClass</span>) {
<span class="pl-k">return</span> (<span class="pl-smi">GlideRequest</span><<span class="pl-smi">ResourceType</span>>) <span class="pl-en">super</span>.<span class="pl-en">as</span>(<span class="pl-s1">resourceClass</span>);
}</pre></div>
<p dir="auto">There are 3 glide modules in total:</p>
<ul dir="auto">
<li>1 <code class="notranslate">AppGlideModule</code> that disables manifest parsing in the application Gradle module</li>
<li>1 <code class="notranslate">LibraryGlideModule</code> that configures OkHttp integration in the application Gradle module</li>
<li>1 <code class="notranslate">LibraryGlideModule</code> that registers some <code class="notranslate">ModelLoader</code>s in one of the library Gradle modules</li>
</ul>
<p dir="auto">Do not use any <code class="notranslate">GlideExtention</code>s or <code class="notranslate">GlideType</code>s.<br>
Tried to only apply <code class="notranslate">annotationProcessor</code> in the main application Gradle module but didn't change anything. Also tried to exclude OkHttp3 integration - no luck as well.</p>
<p dir="auto"><strong>Compilation error</strong>:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2870939/26652423/e1b9cd68-461d-11e7-8175-4d9834bdfed0.png"><img src="https://cloud.githubusercontent.com/assets/2870939/26652423/e1b9cd68-461d-11e7-8175-4d9834bdfed0.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Totally lost on what may be causing the issue.</p> | <p dir="auto"><strong>Glide Version</strong>: 4.0.0-RC0</p>
<p dir="auto"><strong>Integration libraries</strong>: okhttp-integration:4.0.0-RC0</p>
<p dir="auto"><strong>Device/Android Version</strong>: Galaxy S6 SDK version 25</p>
<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br>
When using an annotation processor, generated class GlideRequests contains duplicate field:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Override
public <ResourceType> GlideRequest<ResourceType> as(Class<ResourceType> resourceClass) {
return new GlideRequest<>(glide, this, resourceClass);
}
@Override
public <ResourceType> GlideRequest<ResourceType> as(Class<ResourceType> resourceClass) {
return (GlideRequest<ResourceType>) super.as(resourceClass);
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <<span class="pl-smi">ResourceType</span>> <span class="pl-s1">GlideRequest</span><<span class="pl-s1">ResourceType</span>> <span class="pl-s1">as</span>(<span class="pl-smi">Class</span><<span class="pl-smi">ResourceType</span>> <span class="pl-s1">resourceClass</span>) {
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-smi">GlideRequest</span><>(<span class="pl-s1">glide</span>, <span class="pl-smi">this</span>, <span class="pl-s1">resourceClass</span>);
}
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <<span class="pl-smi">ResourceType</span>> <span class="pl-s1">GlideRequest</span><<span class="pl-s1">ResourceType</span>> <span class="pl-s1">as</span>(<span class="pl-smi">Class</span><<span class="pl-smi">ResourceType</span>> <span class="pl-s1">resourceClass</span>) {
<span class="pl-k">return</span> (<span class="pl-smi">GlideRequest</span><<span class="pl-smi">ResourceType</span>>) <span class="pl-en">super</span>.<span class="pl-en">as</span>(<span class="pl-s1">resourceClass</span>);
}</pre></div>
<p dir="auto">My module:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@GlideModule
public class GlideAppModule extends AppGlideModule {
@Override
public void applyOptions(Context context, GlideBuilder builder) {
builder.setDiskCache(new InternalCacheDiskCacheFactory(context, 20 * 1024 * 1024));
}
@Override
public boolean isManifestParsingEnabled() {
return false;
}
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">GlideModule</span>
<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">GlideAppModule</span> <span class="pl-k">extends</span> <span class="pl-smi">AppGlideModule</span> {
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">applyOptions</span>(<span class="pl-smi">Context</span> <span class="pl-s1">context</span>, <span class="pl-smi">GlideBuilder</span> <span class="pl-s1">builder</span>) {
<span class="pl-s1">builder</span>.<span class="pl-en">setDiskCache</span>(<span class="pl-k">new</span> <span class="pl-smi">InternalCacheDiskCacheFactory</span>(<span class="pl-s1">context</span>, <span class="pl-c1">20</span> * <span class="pl-c1">1024</span> * <span class="pl-c1">1024</span>));
}
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">boolean</span> <span class="pl-en">isManifestParsingEnabled</span>() {
<span class="pl-k">return</span> <span class="pl-c1">false</span>;
}
}</pre></div>
<p dir="auto">Extension:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@GlideExtension
public final class GlideAppExtension {
private GlideAppExtension() {}
@GlideOption
private static void cropCircle(RequestOptions options) {
// TODO
}
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">GlideExtension</span>
<span class="pl-k">public</span> <span class="pl-k">final</span> <span class="pl-k">class</span> <span class="pl-smi">GlideAppExtension</span> {
<span class="pl-k">private</span> <span class="pl-smi">GlideAppExtension</span>() {}
<span class="pl-c1">@</span><span class="pl-c1">GlideOption</span>
<span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">cropCircle</span>(<span class="pl-smi">RequestOptions</span> <span class="pl-s1">options</span>) {
<span class="pl-c">// TODO</span>
}
}</pre></div>
<p dir="auto">Should i use in build.gradle:<br>
<code class="notranslate">annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC0'</code><br>
or<br>
<code class="notranslate">compile 'com.github.bumptech.glide:compiler:4.0.0-RC0</code></p>
<p dir="auto">I've tried both, and tried SNAPSHOT version<br>
Also in the documentation example the first argument is RequestOptions<?>, but the class from the sources is not generic?</p>
<p dir="auto">Also in the code bellow, error drawable is not used when the url is null, and docs state: "null models will cause the error drawable to be displayed", this is working in the latest 3.x version.</p>
<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="GlideApp.with(this).load(contractImage) // contractImage is null
.transform(new CropCircleTransformation())
.error(errorDrawable)
.into(imageView);"><pre class="notranslate"><span class="pl-smi">GlideApp</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>).<span class="pl-en">load</span>(<span class="pl-s1">contractImage</span>) <span class="pl-c">// contractImage is null</span>
.<span class="pl-en">transform</span>(<span class="pl-k">new</span> <span class="pl-smi">CropCircleTransformation</span>())
.<span class="pl-en">error</span>(<span class="pl-s1">errorDrawable</span>)
.<span class="pl-en">into</span>(<span class="pl-s1">imageView</span>);</pre></div> | 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.175
Windows terminal version: v0.2.1831.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.175
Windows terminal version: v0.2.1831.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ul dir="auto">
<li>Open windows terminal</li>
<li>Click on maximize icon</li>
</ul>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Get simply a maximized window</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The maximized windows causes notifications to be in silent mode (without notification) and does not get out of silent mode even passing to another application.</p>
<p dir="auto">This is possible related to the unable access tothe task bar issue</p> | <h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">Would be great if we could align Terminal keybinding settings with the VS Code keybinding conventions (link below).</p>
<p dir="auto">Currently, the shortcut keys abbreviations do not match and this makes it more difficult to get started with keybindings - requiring users to try to do tons of digging to find the right convention - for example, to know page down is 'pgdn' (Terminal) instead of 'pagedown' (VS Code).</p>
<p dir="auto">Would be fantastic if we could memorize and use a single convention rather than inventing a new one and trying to remember which convention works in which tool.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">The Terminal shortcut key abbreviations are documented here:<br>
<code class="notranslate">(Couldn't find any reference docs. Eventually found examples by holding Ctr while selecting "Settings" in order to get to the defaults.json file.)</code></p>
<p dir="auto">The VS Code shortcut key abbreviations are documented here:<br>
<a href="https://code.visualstudio.com/docs/getstarted/keybindings#_accepted-keys" rel="nofollow">https://code.visualstudio.com/docs/getstarted/keybindings#_accepted-keys</a></p>
<p dir="auto">For example of the problem currently, "Page Up" is "pgup" in Terminal <code class="notranslate">profiles.json</code> and "pageup" in VS Code.</p> | 0 |
<p dir="auto">For a distributed application, timeout configuration is important. But for many cases, timeout is not easy to determine.</p>
<p dir="auto">For example, a client calls a remote service service A , and A's method calls Service B and C and D in sequence. When the client set a timeout of 3s, for a good practice, B and C as well as D should not cost more than 3 seconds. However, if I set timeout of B, C and D to 3000ms. what if B cost 2000ms to return, and C cost 2000ms to return, these two service has been already cost 4 seconds, no matter how fast D is, it is a waste for many cases.</p>
<p dir="auto">In a word, it is very hard to set a small enough and reasonable value for many cases. What if Dubbo provide a smart timeout?</p>
<p dir="auto">Again, we use the same case above. when B returns, it takes 2s, and dubbo modify the timeout to a value less than 1s(consider other cost that in the same context), then go calling C. In this case C takes 2 seconds, it must timeout. then D will not be called.</p>
<p dir="auto">I was trying to do this in dubbo filler, but in current implementation, timeout is not about to modify since it is from the url instead of attachment.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="int timeout = getUrl().getMethodPositiveParameter(methodName, TIMEOUT_KEY, DEFAULT_TIMEOUT);"><pre class="notranslate"><code class="notranslate">int timeout = getUrl().getMethodPositiveParameter(methodName, TIMEOUT_KEY, DEFAULT_TIMEOUT);
</code></pre></div>
<p dir="auto">So user cannot even implement this feature in dubbo filter in their own.</p> | <p dir="auto">If Bean Class annotated <code class="notranslate">@Service</code> and Dubbo's <code class="notranslate">@com.alibaba.dubbo.config.annotation.Service</code>,<br>
and <code class="notranslate">@DubboComponentScan</code> and <code class="notranslate">@ComponentScan</code> were present on <code class="notranslate">@Configuration</code> Class, the Spring Context will scan this component twice.</p>
<p dir="auto">Test cases:</p>
<h2 dir="auto">Test Configuration Class</h2>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@EnableDubbo(scanBasePackages = "com.alibaba.dubbo.config.spring.context.annotation")
@ComponentScan(basePackages = "com.alibaba.dubbo.config.spring.context.annotation")
@PropertySource("META-INF/dubbb-provider.properties")
@EnableTransactionManagement
public static class TestProviderConfiguration {
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">EnableDubbo</span>(<span class="pl-s1">scanBasePackages</span> = <span class="pl-s">"com.alibaba.dubbo.config.spring.context.annotation"</span>)
<span class="pl-c1">@</span><span class="pl-c1">ComponentScan</span>(<span class="pl-s1">basePackages</span> = <span class="pl-s">"com.alibaba.dubbo.config.spring.context.annotation"</span>)
<span class="pl-c1">@</span><span class="pl-c1">PropertySource</span>(<span class="pl-s">"META-INF/dubbb-provider.properties"</span>)
<span class="pl-c1">@</span><span class="pl-c1">EnableTransactionManagement</span>
<span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-k">class</span> <span class="pl-smi">TestProviderConfiguration</span> {
}</pre></div>
<h2 dir="auto">Service Class</h2>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@com.alibaba.dubbo.config.annotation.Service(
version = "2.5.7",
application = "${demo.service.application}",
protocol = "${demo.service.protocol}",
registry = "${demo.service.registry}"
)
@Service
@Transactional
public class DemoServiceImpl implements DemoService {
@Override
public String sayName(String name) {
return "Hello," + name;
}
@Override
public Box getBox() {
return new Box() {
@Override
public String getName() {
return "MyBox";
}
};
}
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">config</span>.<span class="pl-s1">annotation</span>.<span class="pl-s1">Service</span>(
<span class="pl-s1">version</span> = <span class="pl-s">"2.5.7"</span>,
<span class="pl-s1">application</span> = <span class="pl-s">"${demo.service.application}"</span>,
<span class="pl-s1">protocol</span> = <span class="pl-s">"${demo.service.protocol}"</span>,
<span class="pl-s1">registry</span> = <span class="pl-s">"${demo.service.registry}"</span>
)
<span class="pl-c1">@</span><span class="pl-c1">Service</span>
<span class="pl-c1">@</span><span class="pl-c1">Transactional</span>
<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">DemoServiceImpl</span> <span class="pl-k">implements</span> <span class="pl-smi">DemoService</span> {
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-en">sayName</span>(<span class="pl-smi">String</span> <span class="pl-s1">name</span>) {
<span class="pl-k">return</span> <span class="pl-s">"Hello,"</span> + <span class="pl-s1">name</span>;
}
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">Box</span> <span class="pl-en">getBox</span>() {
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-smi">Box</span>() {
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-en">getName</span>() {
<span class="pl-k">return</span> <span class="pl-s">"MyBox"</span>;
}
};
}
}</pre></div> | 0 |
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/local-scope-and-functions#?solution=function%20myFunction%28%29%20%7B%0A%20%20'use%20strict'%3B%0A%20%0A%0A%20%20%0A%20%20console.log%28myVar%29%3B%0A%7D%0AmyFunction%28%29%3B%0A%20var%20myVar%3D%22Hieu%22%3B%0A%2F%2F%20run%20and%20check%20the%20console%20%0A%2F%2F%20myVar%20is%20not%20defined%20outside%20of%20myFunction%0A%2F%2Fconsole.log%28myVar%29%3B%0A%0A%2F%2F%20now%20remove%20the%20console%20log%20line%20to%20pass%20the%20test%0A%0A" rel="nofollow">Local Scope and Functions</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.<br>
I am stuck I did the following and still stuck on the page<br>
My code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function myFunction() {
'use strict';
console.log(myVar);
}
myFunction();
var myVar="Hieu";
// run and check the console
// myVar is not defined outside of myFunction
//console.log(myVar);
// now remove the console log line to pass the test
"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s">'use strict'</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">myVar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">myFunction</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">myVar</span><span class="pl-c1">=</span><span class="pl-s">"Hieu"</span><span class="pl-kos">;</span>
<span class="pl-c">// run and check the console </span>
<span class="pl-c">// myVar is not defined outside of myFunction</span>
<span class="pl-c">//console.log(myVar);</span>
<span class="pl-c">// now remove the console log line to pass the test</span>
</pre></div> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/local-scope-and-functions#?solution=function%20myFunction%28%29%20%7B%0A%20%20'use%20strict'%3B%0A%20%20%0A%20%20%20var%20myVar%20%3D%20%22test%22%3B%20%20%0A%20%20console.log%28myVar%29%3B%0A%7D%0AmyFunction%28%29%3B%0A%0A%2F%2F%20run%20and%20check%20the%20console%20%0A%2F%2F%20myVar%20is%20not%20defined%20outside%20of%20myFunction%0Aconsole.log%28myVar%29%3B%0A%0A%2F%2F%20now%20remove%20the%20console%20log%20line%20to%20pass%20the%20test%0A%0A" rel="nofollow">Local Scope and Functions</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function myFunction() {
'use strict';
var myVar = "test";
console.log(myVar);
}
myFunction();
// run and check the console
// myVar is not defined outside of myFunction
console.log(myVar);
// now remove the console log line to pass the test
"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s">'use strict'</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">myVar</span> <span class="pl-c1">=</span> <span class="pl-s">"test"</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">myVar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// run and check the console </span>
<span class="pl-c">// myVar is not defined outside of myFunction</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">myVar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// now remove the console log line to pass the test</span>
</pre></div>
<p dir="auto">href="<a href="http://content.screencast.com/users/Pisstt/folders/Default/media/d1d59d3a-6ca0-493b-9910-3c421028f88b/2016-01-17_1925.png%22%3E" rel="nofollow">http://content.screencast.com/users/Pisstt/folders/Default/media/d1d59d3a-6ca0-493b-9910-3c421028f88b/2016-01-17_1925.png"></a><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/94333b194d57a5af43f64dcc2523d5fea5332f0343d20a92c18cdab737173b64/687474703a2f2f636f6e74656e742e73637265656e636173742e636f6d2f75736572732f5069737374742f666f6c646572732f44656661756c742f6d656469612f64316435396433612d366361302d343933622d393931302d3363343231303238663838622f323031362d30312d31375f313932352e706e67"><img src="https://camo.githubusercontent.com/94333b194d57a5af43f64dcc2523d5fea5332f0343d20a92c18cdab737173b64/687474703a2f2f636f6e74656e742e73637265656e636173742e636f6d2f75736572732f5069737374742f666f6c646572732f44656661756c742f6d656469612f64316435396433612d366361302d343933622d393931302d3363343231303238663838622f323031362d30312d31375f313932352e706e67" width="600" height="300" border="0" data-canonical-src="http://content.screencast.com/users/Pisstt/folders/Default/media/d1d59d3a-6ca0-493b-9910-3c421028f88b/2016-01-17_1925.png" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=nealeu" rel="nofollow">Neale Upstone</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8503?redirect=false" rel="nofollow">SPR-8503</a></strong> and commented</p>
<p dir="auto">When using <code class="notranslate">@ContextConfiguration</code> in a test <code class="notranslate">@Autowired</code> annotated fields get wired, even if context:annotation-driven/ has not been specified.</p>
<p dir="auto">This is incorrect behaviour, as it means that a test can pass against a context configuration which when used in production will not behave that way.</p>
<p dir="auto">A better approach would be to load the specified configuration into one application context, and then use a child context for wiring the test fixture.</p>
<p dir="auto">The child context can then have the additional post processors, without polluting the application context under test.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M2</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398086790" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9309" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9309/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9309">#9309</a> Load dedicated child ApplicationContext for test instance in the TestContext framework (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=eberhardwolff" rel="nofollow">Eberhard Wolff</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4632?redirect=false" rel="nofollow">SPR-4632</a></strong> and commented</p>
<h4 dir="auto">Status Quo</h4>
<p dir="auto">The <code class="notranslate">loadContext(\*\)</code> methods in <code class="notranslate">AbstractGenericContextLoader</code> and <code class="notranslate">AbstractGenericWebContextLoader</code> invoke <code class="notranslate">AnnotationConfigUtils.registerAnnotationConfigProcessors(context)</code>.</p>
<p dir="auto">The result is that <code class="notranslate">@Autowired</code>, <code class="notranslate">@Resource</code>, <code class="notranslate">@Inject</code>, etc. all work by default, even if annotation-driven dependency injection is not explicitly configured in the test's <code class="notranslate">ApplicationContext</code>. Consequently, if a developer is not aware of this, then errors related to the lack of explicit annotation-driven DI support in production configuration will not be noticed until after testing which is typically undesirable.</p>
<p dir="auto">Note, however, that this unexpected behavior only applies to XML-based configuration. With JavaConfig, an <code class="notranslate">AnnotatedBeanDefinitionReader</code> (used internally by <code class="notranslate">AnnotationConfigContextLoader</code> and <code class="notranslate">AnnotationConfigWebContextLoader</code>) automatically registers the <em>annotation config processors</em>.</p>
<p dir="auto">Furthermore, <code class="notranslate">BeanPostProcessors</code> may inadvertently be applied to the test instance -- even though the test is not truly a <em>bean</em> in the <code class="notranslate">ApplicationContext</code>. This leads to potentially problematic behavior such as accidental proxying of the test instance, as described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151000" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14113" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14113/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14113">#14113</a>.</p>
<hr>
<h4 dir="auto">Deliverables</h4>
<ol class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> As suggested in comments for this issue, create an <code class="notranslate">ApplicationContext</code> dedicated solely to the test instance (for the purpose of dependency injection and bean initialization) and set the <code class="notranslate">parent</code> of that context to the <code class="notranslate">ApplicationContext</code> loaded by the TCF.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Stop invoking <code class="notranslate">AnnotationConfigUtils.registerAnnotationConfigProcessors()</code> in:
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">AbstractGenericContextLoader</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">AbstractGenericWebContextLoader</code></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Ensure that <em>child</em> contexts are properly closed with regard to context caching in the TCF.</li>
</ol>
<hr>
<h4 dir="auto">Original Issue Summary</h4>
<p dir="auto"><em>Do not enable annotation-driven DI for the entire ApplicationContext in the TestContext framework</em></p>
<h4 dir="auto">Original Proposal</h4>
<p dir="auto">It would be better if the TestContext framework (TCF) only enabled annotation-driven dependency injection for test instances and not for the entire <code class="notranslate">ApplicationContext</code>.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/14662/AnnotationConfigProcessorTestExecutionListener.java" rel="nofollow">AnnotationConfigProcessorTestExecutionListener.java</a> (<em>1.42 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="398113354" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13149" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13149/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13149">#13149</a> Spring Test should not modify the application context under test (<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="398153893" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14496" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14496/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14496">#14496</a> Support WebApplicationContext hierarchies in the TestContext Framework</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398094026" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10284" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10284/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10284">#10284</a> Provide support for context hierarchies in the TestContext Framework</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398187049" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/18295" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/18295/hovercard" href="https://github.com/spring-projects/spring-framework/issues/18295">#18295</a> Support 'throw-away' context for a test class</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398097137" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10719" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10719/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10719">#10719</a> Provide mechanism for disabling automatic annotation-driven autowiring in tests</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151000" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14113" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14113/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14113">#14113</a> Test instances should not be proxied in the TestContext framework</li>
</ul>
<p dir="auto">6 votes, 6 watchers</p> | 1 |
<p dir="auto">I have both go 1.3.3 and go 1.4 installed.</p>
<p dir="auto">I start by cleaning my $GOPATH/pkg directory.<br>
Running go test ./... with Go 1.4 completes successfully</p>
<p dir="auto">I clean my $GOPATH/pkg directory again.<br>
I set my PATH to point to Go 1.3.3<br>
Running go test ./... fails<br>
I end up with many errors all with the same error<br>
object is [darwin amd64 go1.4 X:precisestack] expected [darwin amd64 go1.3.3 X:precisestack]</p>
<p dir="auto">It seems to be a problem the moment you have an import in some other repo. Almost like the updated PATH isn't being passed along.</p> | <pre class="notranslate">What steps will reproduce the problem?
I routinely use a handful of different go toolchains. As a result, I hit variants of
this error pretty frequently when building:
import <...>: object is [darwin amd64 devel +351b6fe0ae36 Tue Sep 24 15:54:48 2013
-0400 X:none] expected [darwin amd64 devel +dd18f98c9aa5 Thu Sep 26 21:35:49 2013 +1000
X:none]
To reproduce quickly:
1. Use one go version (say 1.1.2).
2. go test -i ./...
3. Switch to another go version (say tip).
4. go build ./...
Please provide any additional information below.
It's easy enough to fix the problem; remove the pkg directory, or build with -a.
However, the former is an annoyance and both make builds needlessly longer. (Is there
another option I have failed to find?)
Possible fixes include:
* Put the go toolchain version in the pkg directory (darwin_amd64_1.1.2 or
darwin_amd64_351b6fe0ae36). Optimizes for build speed at the cost of disk space and
directory ugliness.
* Instead of dying on mismatch, just discard the object, recompile, and keep on going.
I'd even suggest that this be considered for Go 1.2, since most users are likely to hit
this (albeit just once) when they upgrade.</pre> | 1 |
<p dir="auto">This seems quite simple to implement, but wanted to check if ListItem should have a prop for number of secondary text lines like <a href="https://github.com/callemall/material-ui/blob/master/src/List/ListItem.js#L128">0.x version does</a> <code class="notranslate">secondaryTextLines: PropTypes.oneOf([1, 2])</code> to support 3-line list items as per <a href="https://material.io/guidelines/components/lists.html#lists-specs" rel="nofollow">Material Design spec</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/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul> | <p dir="auto">[ X ] 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.</p>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto"><code class="notranslate">1.0.0.beta</code> components with inner ripples on clicks should display correct ripples.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Currently I have both <code class="notranslate">[email protected]</code> and <code class="notranslate">[email protected]</code> within the same project where I use <code class="notranslate">webpack 3.10.0</code> to build and bundle my application. So far I haven't had any problem with <code class="notranslate">0.19.4</code> components, though, those imported from <code class="notranslate">1.0.0.beta</code> with supposedly inner ripples like buttons are missing the ripples. In other words, clicks do not produce any ripple in the components, though, they correctly react to mouse hovers.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">The following is a simple component where buttons are rendered correctly but no ripples are shown on clicks:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React, { PureComponent } from "react";
import PropTypes from "prop-types";
import Button from "material-ui-next/Button";
import { withStyles } from "material-ui-next/styles";
import { MuiThemeProvider, createMuiTheme } from "material-ui-next/styles";
const theme = createMuiTheme();
const styles = theme => ({
button: {
margin: theme.spacing.unit,
},
});
class MaterialRaisedButtonNext extends PureComponent {
static propTypes = {
classes: PropTypes.object.isRequired,
};
render() {
const { classes, children, ...more } = this.props;
return (
<MuiThemeProvider theme={theme}>
<Button {...more}
raised
color="primary"
className={classes.button}>
{children}
</Button>
<Button {...more}
raised
color="accent"
className={classes.button}>
{children}
</Button>
<Button {...more}
raised
color="contrast"
className={classes.button}>
{children}
</Button>
</MuiThemeProvider>
);
}
}
export default withStyles(styles)(MaterialRaisedButtonNext);
"><pre class="notranslate"><code class="notranslate">import React, { PureComponent } from "react";
import PropTypes from "prop-types";
import Button from "material-ui-next/Button";
import { withStyles } from "material-ui-next/styles";
import { MuiThemeProvider, createMuiTheme } from "material-ui-next/styles";
const theme = createMuiTheme();
const styles = theme => ({
button: {
margin: theme.spacing.unit,
},
});
class MaterialRaisedButtonNext extends PureComponent {
static propTypes = {
classes: PropTypes.object.isRequired,
};
render() {
const { classes, children, ...more } = this.props;
return (
<MuiThemeProvider theme={theme}>
<Button {...more}
raised
color="primary"
className={classes.button}>
{children}
</Button>
<Button {...more}
raised
color="accent"
className={classes.button}>
{children}
</Button>
<Button {...more}
raised
color="contrast"
className={classes.button}>
{children}
</Button>
</MuiThemeProvider>
);
}
}
export default withStyles(styles)(MaterialRaisedButtonNext);
</code></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">This issue is affecting all components which inner ripples, e.g., buttons.</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">My project <code class="notranslate">package.json</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "aphrodite": "^1.2.4",
"axios": "^0.16.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-react-transform": "^2.0.2",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-flow-strip-types": "^6.18.0",
"babel-plugin-transform-react-constant-elements": "^6.23.0",
"babel-plugin-transform-react-inline-elements": "^6.22.0",
"babel-plugin-transform-react-remove-prop-types": "^0.3.3",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-preset-react-hmre": "^1.1.1",
"babel-preset-stage-0": "^6.24.1",
"bcrypt-nodejs": "0.0.3",
"bluebird": "^3.5.1",
"body-parser": "^1.18.2",
"class-autobind": "^0.1.4",
"classnames": "^2.2.3",
"connect-mongo": "^1.3.2",
"cookie-parser": "^1.4.3",
"create-react-class": "^15.6.2",
"cross-env": "^4.0.0",
"css-loader": "^0.28.7",
"d3": "^4.11.0",
"draft-js": "^0.10.3",
"draft-js-emoji-plugin": "^2.0.0-rc9",
"draft-js-export-html": "^1.2.0",
"draft-js-export-markdown": "^1.2.0",
"draft-js-import-html": "^1.2.1",
"draft-js-import-markdown": "^1.2.1",
"draft-js-plugins-editor": "^2.0.0-rc8",
"draft-js-utils": "^1.2.0",
"element-resize-detector": "^1.1.12",
"es6-promise": "^4.1.0",
"express": "^4.16.1",
"express-session": "^1.15.6",
"express-socket.io-session": "^1.3.1",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^0.11.1",
"fs": "0.0.2",
"global": "^4.3.2",
"i18next": "^10.2.1",
"immutable": "^3.8.2",
"inline-environment-variables-webpack-plugin": "^1.2.1",
"interact.js": "^1.2.6",
"isomorphic-fetch": "^2.2.1",
"js-file-download": "^0.4.1",
"js-tree": "^1.1.0",
"json-loader": "^0.5.4",
"katex": "^0.6.0",
"linkifyjs": "^2.1.5",
"lodash": "^4.17.2",
"material-ui": "^0.19.4",
"material-ui-icons": "^1.0.0-beta.17",
"material-ui-next": "^1.0.0-beta.23",
"mathjs": "^3.16.4",
"method-override": "^2.3.10",
"mkdirp": "^0.5.1",
"moment": "^2.17.0",
"mongoose": "^4.12.1",
"multer": "^1.1.0",
"object-assign": "^4.1.0",
"papaparse": "^4.3.6",
"parse-katex": "^0.3.0",
"passport": "^0.3.2",
"passport-local": "^1.0.0",
"passport.socketio": "^3.7.0",
"postcss-cssnext": "^2.10.0",
"postcss-import": "^9.0.0",
"postcss-loader": "^1.3.3",
"postcss-reporter": "^3.0.0",
"postcss-simple-vars": "^3.0.0",
"prop-types": "^15.6.0",
"radium": "^0.19.6",
"ramda": "^0.25.0",
"react": "^16.2.0",
"react-addons-update": "^15.6.2",
"react-audio-player": "^0.6.2",
"react-bootstrap": "^0.31.5",
"react-bootstrap-table": "^4.0.0",
"react-burger-menu": "^2.1.8",
"react-color": "^2.13.8",
"react-data-grid": "^2.0.60",
"react-datetime": "^2.10.3",
"react-dom": "^16.2.0",
"react-dropzone": "^3.13.4",
"react-emoji": "^0.4.4",
"react-helmet": "^5.2.0",
"react-i18next": "^7.0.2",
"react-icons": "^2.2.7",
"react-loader": "^2.4.2",
"react-mixin": "^2.0.2",
"react-pure-render": "^1.0.2",
"react-redux": "^5.0.6",
"react-router": "^3.2.0",
"react-router-bootstrap": "^0.23.1",
"react-router-redux": "^4.0.7",
"react-select": "^1.0.0-rc.10",
"react-sortable-hoc": "0.6.8",
"react-stickydiv": "^3.4.20",
"react-transform-hmr": "^1.0.4",
"redux": "^3.6.0",
"redux-burger-menu": "^0.2.2",
"redux-logger": "^2.7.4",
"redux-thunk": "^2.0.1",
"rimraf": "^2.6.2",
"serve-favicon": "^2.4.5",
"socket.io": "^1.6.0",
"socket.io-client": "^1.6.0",
"style-loader": "^0.17.0",
"unique-filename": "^1.1.0",
"url-loader": "^0.5.8",
"uuid": "^3.1.0",
"webpack": "^3.8.1",
"webpack-dev-middleware": "^1.12.0",
"webpack-hot-middleware": "^2.19.1",
"webpack-manifest-plugin": "^1.3.2",
"winston": "^2.4.0",
"xml2js": "^0.4.19""><pre class="notranslate"><code class="notranslate"> "aphrodite": "^1.2.4",
"axios": "^0.16.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-react-transform": "^2.0.2",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-flow-strip-types": "^6.18.0",
"babel-plugin-transform-react-constant-elements": "^6.23.0",
"babel-plugin-transform-react-inline-elements": "^6.22.0",
"babel-plugin-transform-react-remove-prop-types": "^0.3.3",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-preset-react-hmre": "^1.1.1",
"babel-preset-stage-0": "^6.24.1",
"bcrypt-nodejs": "0.0.3",
"bluebird": "^3.5.1",
"body-parser": "^1.18.2",
"class-autobind": "^0.1.4",
"classnames": "^2.2.3",
"connect-mongo": "^1.3.2",
"cookie-parser": "^1.4.3",
"create-react-class": "^15.6.2",
"cross-env": "^4.0.0",
"css-loader": "^0.28.7",
"d3": "^4.11.0",
"draft-js": "^0.10.3",
"draft-js-emoji-plugin": "^2.0.0-rc9",
"draft-js-export-html": "^1.2.0",
"draft-js-export-markdown": "^1.2.0",
"draft-js-import-html": "^1.2.1",
"draft-js-import-markdown": "^1.2.1",
"draft-js-plugins-editor": "^2.0.0-rc8",
"draft-js-utils": "^1.2.0",
"element-resize-detector": "^1.1.12",
"es6-promise": "^4.1.0",
"express": "^4.16.1",
"express-session": "^1.15.6",
"express-socket.io-session": "^1.3.1",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^0.11.1",
"fs": "0.0.2",
"global": "^4.3.2",
"i18next": "^10.2.1",
"immutable": "^3.8.2",
"inline-environment-variables-webpack-plugin": "^1.2.1",
"interact.js": "^1.2.6",
"isomorphic-fetch": "^2.2.1",
"js-file-download": "^0.4.1",
"js-tree": "^1.1.0",
"json-loader": "^0.5.4",
"katex": "^0.6.0",
"linkifyjs": "^2.1.5",
"lodash": "^4.17.2",
"material-ui": "^0.19.4",
"material-ui-icons": "^1.0.0-beta.17",
"material-ui-next": "^1.0.0-beta.23",
"mathjs": "^3.16.4",
"method-override": "^2.3.10",
"mkdirp": "^0.5.1",
"moment": "^2.17.0",
"mongoose": "^4.12.1",
"multer": "^1.1.0",
"object-assign": "^4.1.0",
"papaparse": "^4.3.6",
"parse-katex": "^0.3.0",
"passport": "^0.3.2",
"passport-local": "^1.0.0",
"passport.socketio": "^3.7.0",
"postcss-cssnext": "^2.10.0",
"postcss-import": "^9.0.0",
"postcss-loader": "^1.3.3",
"postcss-reporter": "^3.0.0",
"postcss-simple-vars": "^3.0.0",
"prop-types": "^15.6.0",
"radium": "^0.19.6",
"ramda": "^0.25.0",
"react": "^16.2.0",
"react-addons-update": "^15.6.2",
"react-audio-player": "^0.6.2",
"react-bootstrap": "^0.31.5",
"react-bootstrap-table": "^4.0.0",
"react-burger-menu": "^2.1.8",
"react-color": "^2.13.8",
"react-data-grid": "^2.0.60",
"react-datetime": "^2.10.3",
"react-dom": "^16.2.0",
"react-dropzone": "^3.13.4",
"react-emoji": "^0.4.4",
"react-helmet": "^5.2.0",
"react-i18next": "^7.0.2",
"react-icons": "^2.2.7",
"react-loader": "^2.4.2",
"react-mixin": "^2.0.2",
"react-pure-render": "^1.0.2",
"react-redux": "^5.0.6",
"react-router": "^3.2.0",
"react-router-bootstrap": "^0.23.1",
"react-router-redux": "^4.0.7",
"react-select": "^1.0.0-rc.10",
"react-sortable-hoc": "0.6.8",
"react-stickydiv": "^3.4.20",
"react-transform-hmr": "^1.0.4",
"redux": "^3.6.0",
"redux-burger-menu": "^0.2.2",
"redux-logger": "^2.7.4",
"redux-thunk": "^2.0.1",
"rimraf": "^2.6.2",
"serve-favicon": "^2.4.5",
"socket.io": "^1.6.0",
"socket.io-client": "^1.6.0",
"style-loader": "^0.17.0",
"unique-filename": "^1.1.0",
"url-loader": "^0.5.8",
"uuid": "^3.1.0",
"webpack": "^3.8.1",
"webpack-dev-middleware": "^1.12.0",
"webpack-hot-middleware": "^2.19.1",
"webpack-manifest-plugin": "^1.3.2",
"winston": "^2.4.0",
"xml2js": "^0.4.19"
</code></pre></div>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0 beta</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome Latest</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">Kubernetes use kubernetes/pause image to create network container. The problem is that whatever signals the pause container received, it will exit with code 2. Instead, with a normal exit, it should exit with code 0; while it exit with port binding issue, it should exit with code -1.</p> | <p dir="auto">Jenkins e2es are taking nearly an hour and a half to complete now.</p>
<p dir="auto">Will file with a full list of git hashes that could be causes in just a little bit.</p> | 0 |
<h1 dir="auto">Feature request</h1>
<p dir="auto">Add a way to control the versions of babel packages.</p>
<h2 dir="auto">Is your feature request related to a problem? Please describe.</h2>
<p dir="auto">Yes.</p>
<p dir="auto">I installed <code class="notranslate">@babel/preset-env</code> and passed 7.4.4 options (<code class="notranslate">core: 3</code>) to it but it used the old one. It really confused me. (Later I saw in docs it doesn't work indeed)</p>
<p dir="auto">A potential problem might also be with plugins like <code class="notranslate">@babel/plugin-transform-flow-strip-types</code> that are not coming out of the box in <code class="notranslate">next.js</code>.</p>
<p dir="auto">They are added with the <strong>latest version</strong> where the babel core is a pinned down a lower version.</p>
<p dir="auto">This is a partial code from my <code class="notranslate">package.json</code>, I didn't know <code class="notranslate">@babel/core</code> is ignored and nothing warned me it is.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "@babel/core": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/plugin-proposal-optional-chaining": "^7.2.0","><pre class="notranslate"><code class="notranslate"> "@babel/core": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
</code></pre></div>
<h2 dir="auto">Describe the solution you'd like</h2>
<p dir="auto">I think if a user adds <code class="notranslate">@babel/core</code> to his root project <code class="notranslate">package.json</code> next should use all babel versions from the user's code, and warn if he doesn't use all the expected in next.js babel plugins.</p>
<p dir="auto">We should also consider adding a script to eject all babel dependencies from next to the user's project. For example: <code class="notranslate">next eject-babel</code> (somehow like in <code class="notranslate">create-react-app</code>)</p>
<h2 dir="auto">Describe alternatives you've considered</h2>
<p dir="auto">The readme documents the following:</p>
<blockquote>
<p dir="auto">The next/babel preset includes everything needed to transpile React applications. This includes:</p>
<ul dir="auto">
<li>preset-env</li>
<li>preset-react</li>
<li>plugin-proposal-class-properties</li>
<li>plugin-proposal-object-rest-spread</li>
<li>plugin-transform-runtime</li>
<li>styled-jsx<br>
These presets / plugins <strong>should not</strong> be added to your custom .babelrc. Instead, you can configure them on the next/babel preset:</li>
</ul>
</blockquote>
<p dir="auto">But I think we should also tell the user he should use older versions of babel plugins and expose the babel version nextjs is using.</p>
<p dir="auto">Also, we can warn the user that we ignore <code class="notranslate">@babel/core</code> and <code class="notranslate">@babel/preset-env</code> if he adds <code class="notranslate">@babel/core</code> to the project and runs next.</p>
<h2 dir="auto">Additional context</h2>
<p dir="auto">I'd be glad to add all these features if this feature is accepted.</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?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">Bug<br>
typechecking should occur in the typescript examples</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">typechecking does not occur</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Clone the with-typescript or custom-server-typescript repos</li>
<li>in pages/index.jsx write the below function</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function typeCheckingNotCalled(): boolean {
return 'abc';
}
// call function to prevent typescript error about function unused
typeCheckingNotCalled() "><pre class="notranslate"><code class="notranslate">function typeCheckingNotCalled(): boolean {
return 'abc';
}
// call function to prevent typescript error about function unused
typeCheckingNotCalled()
</code></pre></div>
<ol start="3" dir="auto">
<li>Run <code class="notranslate">npm run build</code></li>
</ol>
<p dir="auto">In step 3 you should expect an error that says <code class="notranslate">'abc' is not assignable to boolean</code>.<br>
However it builds fine.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">I'm trying to use next js with typescript</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</td>
</tr>
<tr>
<td>node</td>
<td>8.10</td>
</tr>
<tr>
<td>OS</td>
<td>mac osx 10.13</td>
</tr>
<tr>
<td>browser</td>
<td>chrome 64</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">Sorry for the crap title, I'm not entirely sure what is going on but I think it's a bug. I also think this is somewhat related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="113984571" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/5449" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/5449/hovercard" href="https://github.com/microsoft/TypeScript/issues/5449">#5449</a> but am unsure.</p>
<p dir="auto">Library Example:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export interface InstanceConstructor<T extends BaseModel> {
new(fac: Factory<T>): T;
}
export class Factory<T extends BaseModel> {
constructor(private cls: InstanceConstructor<T>) {}
get() {
return new this.cls(this);
}
}
export class BaseModel {
constructor(private fac: Factory<this>) {}
refresh() {
// get returns a new instance, but it should be of
// type Model, not BaseModel.
return this.fac.get();
}
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">InstanceConstructor</span><span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">BaseModel</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-k">new</span><span class="pl-kos">(</span><span class="pl-s1">fac</span>: <span class="pl-smi">Factory</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Factory</span><span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">BaseModel</span><span class="pl-c1">></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-s1">cls</span>: <span class="pl-smi">InstanceConstructor</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-en">get</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-k">new</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">cls</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">BaseModel</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-s1">fac</span>: <span class="pl-smi">Factory</span><span class="pl-kos"><</span>this<span class="pl-kos">></span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-en">refresh</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// get returns a new instance, but it should be of</span>
<span class="pl-c">// type Model, not BaseModel.</span>
<span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">fac</span><span class="pl-kos">.</span><span class="pl-en">get</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">User Code Example:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export class Model extends BaseModel {
do() {
return true;
}
}
// Kinda sucks that Factory cannot infer the "Model" type
let f = new Factory<Model>(Model);
let a = f.get();
let b = a.refresh();"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Model</span> <span class="pl-k">extends</span> <span class="pl-smi">BaseModel</span> <span class="pl-kos">{</span>
<span class="pl-en">do</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-c">// Kinda sucks that Factory cannot infer the "Model" type</span>
<span class="pl-k">let</span> <span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Factory</span><span class="pl-kos"><</span><span class="pl-smi">Model</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-smi">Model</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">f</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span><span class="pl-kos">.</span><span class="pl-en">refresh</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The issue that the compiler complains about is as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error TS2345: Argument of type 'typeof Model' is not assignable to parameter of type 'InstanceConstructor<Model>'.
Types of parameters 'api' and 'api' are incompatible.
Type 'Factory<this>' is not assignable to type 'Factory<Model>'.
Type 'this' is not assignable to type 'Model'.
Type 'BaseModel' is not assignable to type 'Model'.
Property 'do' is missing in type 'BaseModel'."><pre class="notranslate"><code class="notranslate">error TS2345: Argument of type 'typeof Model' is not assignable to parameter of type 'InstanceConstructor<Model>'.
Types of parameters 'api' and 'api' are incompatible.
Type 'Factory<this>' is not assignable to type 'Factory<Model>'.
Type 'this' is not assignable to type 'Model'.
Type 'BaseModel' is not assignable to type 'Model'.
Property 'do' is missing in type 'BaseModel'.
</code></pre></div>
<p dir="auto">If I change the extended model to be specific it errors in different way, but same theme.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export class Model extends BaseModel {
constructor(fac: Factory<Model>) {
super(fac);
}
do() {
return true;
}
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Model</span> <span class="pl-k">extends</span> <span class="pl-smi">BaseModel</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">fac</span>: <span class="pl-smi">Factory</span><span class="pl-kos"><</span><span class="pl-smi">Model</span><span class="pl-kos">></span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">fac</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">do</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error TS2345: Argument of type 'Factory<Model>' is not assignable to parameter of type 'Factory<this>'.
Type 'Model' is not assignable to type 'this'."><pre class="notranslate"><code class="notranslate">error TS2345: Argument of type 'Factory<Model>' is not assignable to parameter of type 'Factory<this>'.
Type 'Model' is not assignable to type 'this'.
</code></pre></div>
<p dir="auto">I think the reason is because <code class="notranslate">this</code> isn't being polymorphic in either the template or the constructor. When <code class="notranslate">this</code> is analyzed in the constructor of <code class="notranslate">BaseModel</code> it seems to stick with that context.</p>
<p dir="auto">I initially posted about the use of polymorphic <code class="notranslate">this</code> which was answered by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RyanCavanaugh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RyanCavanaugh">@RyanCavanaugh</a> <a href="http://stackoverflow.com/questions/33443793/create-a-generic-factory-in-typescript" rel="nofollow">http://stackoverflow.com/questions/33443793/create-a-generic-factory-in-typescript</a></p> | <p dir="auto">This error also appears on generics with <code class="notranslate">this</code> to the <code class="notranslate">super</code> call (which is the real use case).</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A {
constructor(bar: this) { }
foo(bar: this) { }
}
class B extends A {
constructor() {
super(this); // Error
this.foo(this); // Works
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">bar</span>: this<span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span>
<span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">bar</span>: this<span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-k">extends</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Error</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Works</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div> | 1 |
<p dir="auto">Extra slashes in the URL change the routing. For example, <code class="notranslate">/x</code> and <code class="notranslate">//x</code> do not route the same way.<br>
Here's a unit test which demonstrates this:</p>
<p dir="auto"><a href="https://gist.github.com/robnagler/1a5d0361cc71a6806fc6">https://gist.github.com/robnagler/1a5d0361cc71a6806fc6</a></p>
<p dir="auto">If you put a proxy in front of flask, it will normalize the URLs so this isn't an issue. It would seem, however, that Flask should normalize the URLs as well.</p> | <p dir="auto">Here's an example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from flask import Flask
app = Flask(__name__)
@app.route('/<urlvar>')
def hello_world(urlvar):
return 'Hello World! ' + repr(urlvar)
if __name__ == '__main__':
app.run(debug=True)"><pre class="notranslate"><code class="notranslate">from flask import Flask
app = Flask(__name__)
@app.route('/<urlvar>')
def hello_world(urlvar):
return 'Hello World! ' + repr(urlvar)
if __name__ == '__main__':
app.run(debug=True)
</code></pre></div>
<p dir="auto">When running:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl http://localhost:5000/aaa%2Fbbb"><pre class="notranslate"><code class="notranslate">curl http://localhost:5000/aaa%2Fbbb
</code></pre></div>
<p dir="auto">I would expect to see:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Hello World! u'aaa/bbb'"><pre class="notranslate"><code class="notranslate">Hello World! u'aaa/bbb'
</code></pre></div>
<p dir="auto">Instead I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>"><pre class="notranslate"><code class="notranslate"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>
</code></pre></div>
<p dir="auto">I tested this against Flask 0.9 and Flask 0.10.1. Both had the same error.</p>
<p dir="auto">While searching for existing bug reports, I came across this: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="520442" data-permission-text="Title is private" data-url="https://github.com/pallets/werkzeug/issues/21" data-hovercard-type="issue" data-hovercard-url="/pallets/werkzeug/issues/21/hovercard" href="https://github.com/pallets/werkzeug/issues/21">pallets/werkzeug#21</a></p>
<p dir="auto">Is this related? If yes, what's the status?</p>
<p dir="auto">In any case, being a WSGI spec problem or not, this is behaviour is incorrect!</p> | 1 |
<p dir="auto">Today, you have two ways to define a list of synonyms:</p>
<ul dir="auto">
<li>within the index settings (mapping) which could cause a very big index metadata (so big cluster state - imagine daily indices)</li>
<li>on the file system itself but this is hard to maintain then</li>
</ul>
<p dir="auto">This feature request is about storing that document within an index and be able to retrieve it when the index is created/loaded.</p>
<p dir="auto">See also discussion on <a href="https://discuss.elastic.co/t/recommendation-for-large-synonym-file/42740/5" rel="nofollow">https://discuss.elastic.co/t/recommendation-for-large-synonym-file/42740/5</a></p> | <p dir="auto">I have a dictionary-based analyzer implementation, with the dictionary being loaded from the plugin jar. I want to allow the user to add their words to the dictionary by using a supplementary dictionary. And I want a flexible way of handling this custom list.</p>
<p dir="auto">Using the standard Settings implementation isn't a valid option since this is can be a list of many words, each word having some additional descriptors, so its not a string suitable for storing in settings.</p>
<p dir="auto">One possibility is to provide the analyzer with a path of some sort via settings, but to be able to run on the cloud using SaaS providers this is not a good option. Another option is to provide a download link, but again - I don't want my Analyzer downloading the internet on initialization, plus that may be a security breach.</p>
<p dir="auto">Instead, I'm interested in a way to leverage ES as a document store. Loading a document with this configuration seems optimal considering all options, but I'm not sure if it is supported at all. If it is - would love to hear how; otherwise, would love to see this added.</p> | 1 |
<h3 dir="auto">Version</h3>
<ul dir="auto">
<li>Superset 0.18.5</li>
<li>npm node v6.10.0</li>
<li>npm verb npm v5.3.0</li>
</ul>
<h3 dir="auto">Problem</h3>
<p dir="auto">executing script "./static/assets/js_build.sh" failed</p>
<h3 dir="auto">Log file</h3>
<p dir="auto">npm verb type version<br>
npm verb stack gulp-sourcemaps: No matching version found for [email protected]<br>
npm verb stack at pickManifest (/home/liuxiangwei/.jumbo/opt/nodejs-bin/lib/node_modules/npm/node_modules/pacote/node_modules/npm-pick-manifest/index.js:61:11)<br>
npm verb stack at fetchPackument.then.packument (/home/liuxiangwei/.jumbo/opt/nodejs-bin/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/manifest.js:51:18)<br>
npm verb stack at tryCatcher (/home/liuxiangwei/.jumbo/opt/nodejs-bin/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)<br>
npm verb stack at Promise._settlePromiseFromHandler (/home/liuxiangwei/.jumbo/opt/nodejs-bin/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)<br>
npm verb stack at Promise._settlePromise (/home/liuxiangwei/.jumbo/opt/nodejs-bin/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)<br>
npm verb stack at Promise._settlePromise0 (/home/liuxiangwei/.jumbo/opt/nodejs-bin/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)<br>
npm verb stack at Promise._settlePromises (/home/liuxiangwei/.jumbo/opt/nodejs-bin/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)<br>
npm verb stack at Async._drainQueue (/home/liuxiangwei/.jumbo/opt/nodejs-bin/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)<br>
npm verb stack at Async._drainQueues (/home/liuxiangwei/.jumbo/opt/nodejs-bin/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)<br>
npm verb stack at Immediate.Async.drainQueues (/home/liuxiangwei/.jumbo/opt/nodejs-bin/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)<br>
npm verb stack at runCallback (timers.js:651:20)<br>
npm verb stack at tryOnImmediate (timers.js:624:5)<br>
npm verb stack at processImmediate [as _immediateCallback] (timers.js:596:5)<br>
npm verb cwd /home/liuxiangwei/.jumbo/lib/python2.7/site-packages/superset-0.18.5-py2.7.egg/superset/static/assets<br>
npm verb Linux 2.6.32_1-14-0-0</p> | <p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p>
<ul dir="auto">
<li>[ * ] I have checked the superset logs for python stacktraces and included it here as text if any</li>
<li>[ * ] I have reproduced the issue with at least the latest released version of superset</li>
<li>[ * ] I have checked the issue tracker for the same issue and I haven't found one similar</li>
</ul>
<h3 dir="auto">Superset version</h3>
<p dir="auto">Latest HEAD</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">npm install would install superset</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">npm ERR! fetch failed <a href="https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-1.7.0.tgz" rel="nofollow">https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-1.7.0.tgz</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">clone repository<br>
<code class="notranslate">cd incubator-superset/superset/assets</code><br>
<code class="notranslate">npm install</code></p> | 1 |
<p dir="auto">You can reproduce it with in <a href="http://getbootstrap.com/javascript/#modals" rel="nofollow">http://getbootstrap.com/javascript/#modals</a> "Launch Demo Modal".</p>
<p dir="auto">The body displaces 15px when the modal is open.</p>
<p dir="auto">This happens only in Safari ( tested in 6.0.5 )</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/56c298e361685ece65b67b3c92795d09c878cd8a534f1e08b7ca15f0c21b19d6/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383334372f313035313535302f66616232393262632d313063632d313165332d383436632d3461613535666532383563372e706e67"><img src="https://camo.githubusercontent.com/56c298e361685ece65b67b3c92795d09c878cd8a534f1e08b7ca15f0c21b19d6/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383334372f313035313535302f66616232393262632d313063632d313165332d383436632d3461613535666532383563372e706e67" alt="safari-issue" data-canonical-src="https://f.cloud.github.com/assets/38347/1051550/fab292bc-10cc-11e3-846c-4aa55fe285c7.png" style="max-width: 100%;"></a></p> | <p dir="auto">When launching the modal component (<a href="http://getbootstrap.com/javascript/#modals" rel="nofollow">http://getbootstrap.com/javascript/#modals</a>) the entire content will slightly move to the left on mac OS (haven't tried it on windows yet). With the active modal the scrollbar seem to disappear, while the content width still changes.</p>
<p dir="auto">You can observer the problem on the bootstrap page</p> | 1 |
<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>
When I use the new version 16.3.2 I am getting a lot of error concerning that I set ref="name" for a component that doesn't have an owner. This works fine in 16.3.1 so I am not sure if your code got more stringent or if this is a bug detecting things it shouldn't. I have changed my code to work either way, but many third party libraries are breaking with this change.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (<a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>) or CodeSandbox (<a href="https://codesandbox.io/s/new" rel="nofollow">https://codesandbox.io/s/new</a>) example below:</strong></p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
This should work identical to 16.3.1 (if this is a new thing they this should be 16.4.x or maybe even larger)<br>
Rolling the code back to 16.3.1 works normally.</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br>
16.3.2</p> | <p dir="auto">I have to implement my project functionality into a responsive theme. So please suggest me a material UI responsive theme compatible with next js.</p>
<p dir="auto">Thanks.</p> | 0 |
<p dir="auto">it would be cool if we could specify a custom node name. For example the ec2 instance id instead of the hostname which is most likely tied to the ipaddress...</p> | <p dir="auto">As pointed out by <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>, this is often the case on EC2.</p> | 1 |
<h3 dir="auto">Describe the issue:</h3>
<p dir="auto">Examples are as follows:<br>
<code class="notranslate">np.arange(0,1.12,0.04) will return </code>array([0. , 0.04, 0.08, 0.12, 0.16, 0.2 , 0.24, 0.28, 0.32, 0.36, 0.4 ,<br>
0.44, 0.48, 0.52, 0.56, 0.6 , 0.64, 0.68, 0.72, 0.76, 0.8 , 0.84,<br>
0.88, 0.92, 0.96, 1. , 1.04, 1.08, 1.12])<br>
but<br>
<code class="notranslate">np.arange(0,1.18,0.04) return </code>array([0. , 0.04, 0.08, 0.12, 0.16, 0.2 , 0.24, 0.28, 0.32, 0.36, 0.4 ,<br>
0.44, 0.48, 0.52, 0.56, 0.6 , 0.64, 0.68, 0.72, 0.76, 0.8 , 0.84,<br>
0.88, 0.92, 0.96, 1. , 1.04])</p>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
# One open interval, one closed interval
print(np.arange(0,1.12,0.04))
print(np.arange(0,1.08,0.04))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-c"># One open interval, one closed interval</span>
<span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-c1">1.12</span>,<span class="pl-c1">0.04</span>))
<span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-c1">1.08</span>,<span class="pl-c1">0.04</span>))</pre></div>
<h3 dir="auto">Error message:</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">1.22.2 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)]</p> | <p dir="auto">Let me show you the issue directly:</p>
<h3 dir="auto">Reproducing code example:</h3>
<p dir="auto">np.arange(2114.8,2114.8+.05,.05) produces array([2114.8 , 2114.85])</p>
<p dir="auto">np.arange(2114.8,2114.8+1.,1.) produces array([2114.8])</p>
<p dir="auto">dont understand why they return arrays of different lengths.</p> | 1 |
<p dir="auto">I've been trying to have two different versions of a library available, in order to check which one to use, but I can't find out how to make this work. I even tried to explicitly separate the handles to the two versions of the library, but then ccall always calls the one which was loaded first (i.e. it ignores the library name, and just uses the function name).</p>
<p dir="auto">Here's the example code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> const pkgd_dl = dlopen("/home/carlo/.julia/GLPK/deps/usr/lib/libglpk")
Ptr{Void} @0x0000000003455da0
julia> const system_dl = dlopen("libglpk")
Ptr{Void} @0x000000000326d740
julia> ccall(:add_library_mapping, Cint, (Ptr{Cchar}, Ptr{Void}), "pkgd_libglpk", pkgd_dl)
0
julia> ccall(:add_library_mapping, Cint, (Ptr{Cchar}, Ptr{Void}), "system_libglpk", system_dl)
0
julia> bytestring(ccall(("glp_version", "pkgd_libglpk"), Ptr{Uint8}, ()))
"4.48"
julia> bytestring(ccall(("glp_version", "system_libglpk"), Ptr{Uint8}, ()))
Warning: Possible conflict in library symbol glp_version
"4.48""><pre class="notranslate"><code class="notranslate">julia> const pkgd_dl = dlopen("/home/carlo/.julia/GLPK/deps/usr/lib/libglpk")
Ptr{Void} @0x0000000003455da0
julia> const system_dl = dlopen("libglpk")
Ptr{Void} @0x000000000326d740
julia> ccall(:add_library_mapping, Cint, (Ptr{Cchar}, Ptr{Void}), "pkgd_libglpk", pkgd_dl)
0
julia> ccall(:add_library_mapping, Cint, (Ptr{Cchar}, Ptr{Void}), "system_libglpk", system_dl)
0
julia> bytestring(ccall(("glp_version", "pkgd_libglpk"), Ptr{Uint8}, ()))
"4.48"
julia> bytestring(ccall(("glp_version", "system_libglpk"), Ptr{Uint8}, ()))
Warning: Possible conflict in library symbol glp_version
"4.48"
</code></pre></div>
<p dir="auto">The last line should read <code class="notranslate">"4.45"</code> (and indeed it does if I don't load the other version first).<br>
I checked that the <code class="notranslate">add_library_sym</code> in <code class="notranslate">src/ccall.cpp</code> does find the correct handles and returns different pointers in the two cases.</p>
<p dir="auto">Is it possible at all to have two different functions with the same name from different libraries? Or am I doing something wrong?</p> | <p dir="auto">Ref: <a href="https://discourse.julialang.org/t/strange-behavior-with-void/2480" rel="nofollow">https://discourse.julialang.org/t/strange-behavior-with-void/2480</a></p>
<p dir="auto">Would it be possible to special-case creating a set out of a large vector of Voids? This is admittedly a weird thing to ask, but it looks like it will be significant for some upcoming LightGraphs work. Right now, if I have a large vector of Voids, Julia knows not to allocate any memory for that vector, but once I try turning it into a Set, it appears that sizehint! is applied based on the number of elements, and this allocates a large amount of memory for a single-element Dict.</p> | 0 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">Environment variable length cannot exceed 8196 characters. This limitation should be optional only and the user should be able to switch on/off this limit via some reg edit Key.<br>
Thanks.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1> | <h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">Currently I find it hard to find focus, and confusing to pasting text into unfocused terminals, since you cannot change cursor behaviour in unfocused terminals. For example by changing color or opacity (I do not know the feasability of this).</p>
<h1 dir="auto">Proposed technical implementation details</h1>
<p dir="auto">(Speculating without looking at actual code for ease of implementation, and images curtesy of Google image search along the lines of "terminal [window] focus") Since I like box cursors, I will provide three examples with box cursors which can be extended to other types of cursors.</p>
<p dir="auto">An example from Code (possible today, terminal in focus shows unfilled box as cursor, terminal out of focus does not):<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11232267/62599791-728b4300-b8ed-11e9-8176-dfdf50184fc3.png"><img width="692" alt="terminal-split-pane" src="https://user-images.githubusercontent.com/11232267/62599791-728b4300-b8ed-11e9-8176-dfdf50184fc3.png" style="max-width: 100%;"></a></p>
<p dir="auto">An example from Linux (possible today, specifically Kali and Gnome terminal, focused terminal shown filled box while unfocused terminal shows nothing)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11232267/62599986-fc3b1080-b8ed-11e9-8420-b7de035534b1.png"><img src="https://user-images.githubusercontent.com/11232267/62599986-fc3b1080-b8ed-11e9-8420-b7de035534b1.png" alt="root@TheHackerToday-_185" style="max-width: 100%;"></a></p>
<p dir="auto">Another example from Linux (not possible today, specifically Ubuntu and Tilix terminal emulator, focused terminal shows filled box while unfocused terminal shows unfilled box)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11232267/62600093-47edba00-b8ee-11e9-9228-e2eb34f0aa03.png"><img src="https://user-images.githubusercontent.com/11232267/62600093-47edba00-b8ee-11e9-9228-e2eb34f0aa03.png" alt="Tilix-Interface" style="max-width: 100%;"></a></p>
<p dir="auto">I do not propose that the result should be static, rather that the user can select what the cursor should look like in a focused window and an unfocused window. I.e.:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... profiles.json ...
"cursorShapeWindowFocus" : "filledBox",
"cursorShapeNoWindowFocus" : "emptyBox",
..."><pre class="notranslate"><code class="notranslate">... profiles.json ...
"cursorShapeWindowFocus" : "filledBox",
"cursorShapeNoWindowFocus" : "emptyBox",
...
</code></pre></div>
<p dir="auto">Of course taking height for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="454817350" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/1203" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/1203/hovercard" href="https://github.com/microsoft/terminal/issues/1203">#1203</a> so that the "filledBox" setting becomes more meaningful.</p> | 0 |
<p dir="auto"><strong>Migrated issue, originally created by Marcin Barczyński (<a href="https://github.com/marcinbarczynski">@marcinbarczynski</a>)</strong></p>
<p dir="auto">I would like to aggregate two columns from a single table with <code class="notranslate">array_agg</code>. Here is the code showing that mapping types in output rows works fine with psycopg2, but can't be done with SQLAlchemy:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy import BigInteger, Column, func, tuple_, ARRAY
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.dialects.postgresql import ARRAY as PG_ARRAY
import psycopg2
engine = create_engine(PG_URI, echo=True)
Session = sessionmaker(bind=engine)
session = Session()
Base = declarative_base()
class Demo(Base):
__tablename__ = 'demo'
key = Column(BigInteger, primary_key=True)
val1 = Column(BigInteger, primary_key=True)
val2 = Column(BigInteger, primary_key=True)
session.execute("DROP TABLE IF EXISTS demo CASCADE")
session.execute("CREATE TABLE demo AS SELECT 1 AS key, gen AS val1, gen + 1 AS val2 FROM generate_series(1, 5) gen")
session.commit()
conn = psycopg2.connect(PG_URI)
cur = conn.cursor()
cur.execute("SELECT array_agg(ARRAY[val1, val2]) FROM demo GROUP BY key")
print cur.fetchone()[0]
# prints list: [[1, 2], [2, 3], [3, 4], [4, 5], [5, 6]]
q = session.query(func.array_agg(ARRAY(tuple_(Demo.val1, Demo.val2)))).group_by(Demo.key)
# fails with AttributeError: 'ARRAY' object has no attribute 'type'"><pre class="notranslate"><code class="notranslate">from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy import BigInteger, Column, func, tuple_, ARRAY
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.dialects.postgresql import ARRAY as PG_ARRAY
import psycopg2
engine = create_engine(PG_URI, echo=True)
Session = sessionmaker(bind=engine)
session = Session()
Base = declarative_base()
class Demo(Base):
__tablename__ = 'demo'
key = Column(BigInteger, primary_key=True)
val1 = Column(BigInteger, primary_key=True)
val2 = Column(BigInteger, primary_key=True)
session.execute("DROP TABLE IF EXISTS demo CASCADE")
session.execute("CREATE TABLE demo AS SELECT 1 AS key, gen AS val1, gen + 1 AS val2 FROM generate_series(1, 5) gen")
session.commit()
conn = psycopg2.connect(PG_URI)
cur = conn.cursor()
cur.execute("SELECT array_agg(ARRAY[val1, val2]) FROM demo GROUP BY key")
print cur.fetchone()[0]
# prints list: [[1, 2], [2, 3], [3, 4], [4, 5], [5, 6]]
q = session.query(func.array_agg(ARRAY(tuple_(Demo.val1, Demo.val2)))).group_by(Demo.key)
# fails with AttributeError: 'ARRAY' object has no attribute 'type'
</code></pre></div>
<p dir="auto">I tried to use <code class="notranslate">tuple_</code>, but then string is returned instead of list:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="q = session.query(func.array_agg(tuple_(Demo.val1, Demo.val2))).group_by(Demo.key)
print type(q.first()[0])
# prints string: '{"(1,2)","(2,3)","(3,4)","(4,5)","(5,6)"}'"><pre class="notranslate"><code class="notranslate">q = session.query(func.array_agg(tuple_(Demo.val1, Demo.val2))).group_by(Demo.key)
print type(q.first()[0])
# prints string: '{"(1,2)","(2,3)","(3,4)","(4,5)","(5,6)"}'
</code></pre></div> | <p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<p dir="auto">I think it might be better to just get the array detection to do the right thing</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import *
from sqlalchemy.dialects.postgresql import array
from sqlalchemy.dialects import postgresql
c1 = column('foo', Integer)
expr = array([c1])
print expr.compile(dialect=postgresql.dialect())
# fails
function = func.array_agg(expr)
# fails
function = func.array_agg(expr, type_=ARRAY(Integer))"><pre class="notranslate"><code class="notranslate">from sqlalchemy import *
from sqlalchemy.dialects.postgresql import array
from sqlalchemy.dialects import postgresql
c1 = column('foo', Integer)
expr = array([c1])
print expr.compile(dialect=postgresql.dialect())
# fails
function = func.array_agg(expr)
# fails
function = func.array_agg(expr, type_=ARRAY(Integer))
</code></pre></div> | 1 |
<p dir="auto">Please:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate issues.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> import jax.numpy as jnp
>>> a = [1, 3, 3, 5]
>>> t = jnp.asarray(a, dtype=jnp.bfloat16)
>>> import pickle
>>> pp = pickle.dump(t, file=open('test.pkl','wb'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_pickle.PicklingError: Can't pickle <class 'bfloat16'>: attribute lookup bfloat16 on builtins failed
>>> import jax
>>> jax.__version__
'0.2.25'
>>> import jaxlib
>>> jaxlib.__version__
'0.1.73'"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> [<span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>, <span class="pl-c1">5</span>]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">a</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">jnp</span>.<span class="pl-s1">bfloat16</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">pickle</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">pp</span> <span class="pl-c1">=</span> <span class="pl-s1">pickle</span>.<span class="pl-en">dump</span>(<span class="pl-s1">t</span>, <span class="pl-s1">file</span><span class="pl-c1">=</span><span class="pl-en">open</span>(<span class="pl-s">'test.pkl'</span>,<span class="pl-s">'wb'</span>))
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
<span class="pl-v">File</span> <span class="pl-s">"<stdin>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-s1">_pickle</span>.<span class="pl-v">PicklingError</span>: <span class="pl-v">Can</span><span class="pl-s">'t pickle <class '</span><span class="pl-s1">bfloat16</span>'<span class="pl-c1">></span>: <span class="pl-s1">attribute</span> <span class="pl-s1">lookup</span> <span class="pl-s1">bfloat16</span> <span class="pl-s1">on</span> <span class="pl-s1">builtins</span> <span class="pl-s1">failed</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">jax</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">jax</span>.<span class="pl-s1">__version__</span>
<span class="pl-s">'0.2.25'</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">jaxlib</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">jaxlib</span>.<span class="pl-s1">__version__</span>
<span class="pl-s">'0.1.73'</span></pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If applicable, include full error messages/tracebacks.</li>
</ul> | <p dir="auto">Jax2tf currently does not support scatter_* in non XLA terms (see <a href="https://github.com/google/jax/blob/main/jax/experimental/jax2tf/converters_eval/no_xla_limitations.md">docs</a>)</p>
<p dir="auto">I am planning on implementing this as I need it, but first I wanted to check - is it possible, or is there a very solid reason for why it simply isn't expressible in the tensorflow ops?</p>
<p dir="auto">Is this a foolish plan?</p>
<p dir="auto">I want to do it in non-XLA terms so I can use tf2onnx so it can be used as an ONNX model</p>
<p dir="auto">I was thinking about using a combination of:</p>
<ul dir="auto">
<li><code class="notranslate">tf.math.unsorted_segment_{prod,sum,...}</code> for getting the updates to the array</li>
<li><code class="notranslate">tf.scatter_nd</code> for applying those updates</li>
</ul>
<p dir="auto">Note (to self): <code class="notranslate">x.at[indexs].get()</code> does has a non-XLA implementation.</p> | 0 |
<p dir="auto">Some ideas on what to work on during the scipy sprints</p>
<ul dir="auto">
<li>finish 2.0</li>
<li>Altiar
<ul dir="auto">
<li>mostly stable</li>
<li>needs mpl rederer</li>
<li>someone who knows both mpl + pandas decently well</li>
</ul>
</li>
<li>scales
<ul dir="auto">
<li>unify scale handling and pull out of mpl
<ul dir="auto">
<li>domain -> [0, 1] or ints</li>
<li>scaled data -> {color, shape, size, ...}</li>
</ul>
</li>
</ul>
</li>
<li>expose notebook docs through notebook
<ul dir="auto">
<li>sprint on how to make this integration work, work with IPython folks</li>
<li>convert some of our examples to notebooks</li>
</ul>
</li>
<li>burn down open PRs</li>
</ul> | <p dir="auto">I noticed an issue related to PolyCollections and all Agg backends. If the linewidth keyword is set to 0, then the entire Polygon patch is not shown, rather than removing only the border line. This happened with MPL release 1.4.1, because 1.4.0 works as expected. I see the same behavior on Python 2.7 and 3.4 from Gentoo Linux and in an Anaconda 3.4 environment. I ran a number of tests and <a href="http://matplotlib.1069221.n5.nabble.com/fill-between-issue-td44571.html" rel="nofollow">posted them to Matplotlib-users</a>. However, as a simple expample::</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, np.pi*2, 1000)
y = np.sin(x)
# Change the lw != 0 and this works fine
plt.fill_between(x, y-0.1, y+0.1, lw=0)
plt.show()"><pre class="notranslate"><code class="notranslate">import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, np.pi*2, 1000)
y = np.sin(x)
# Change the lw != 0 and this works fine
plt.fill_between(x, y-0.1, y+0.1, lw=0)
plt.show()
</code></pre></div> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jmays" rel="nofollow">Joe Mays</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2414?redirect=false" rel="nofollow">SPR-2414</a></strong> and commented</p>
<p dir="auto">If I enable debugging and start my app, I get the following NPE... It looks like hashCode() in<br>
TransactionAttributeSourceAdvisor.TransactionAttributeSourcePointcut assumes that transactionInterceptor is always non-null...</p>
<p dir="auto">org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor' defined in class path resource [businessContext.xml]: Instantiation of bean failed; nested exception is java.lang.NullPointerException<br>
Caused by:<br>
java.lang.NullPointerException<br>
at org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor$TransactionAttributeSourcePointcut.getTransactionAttributeSource(TransactionAttributeSourceAdvisor.java:102)<br>
at org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor$TransactionAttributeSourcePointcut.hashCode(TransactionAttributeSourceAdvisor.java:121)<br>
at java.lang.Object.toString(Object.java:209)<br>
at java.lang.String.valueOf(String.java:2577)<br>
at java.lang.StringBuffer.append(StringBuffer.java:220)<br>
at org.springframework.aop.support.AbstractPointcutAdvisor.toString(AbstractPointcutAdvisor.java:71)<br>
at java.lang.String.valueOf(String.java:2577)<br>
at java.lang.StringBuffer.append(StringBuffer.java:220)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:383)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:242)<br>
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:239)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:155)<br>
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:102)<br>
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:68)<br>
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:54)<br>
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:247)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:301)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:933)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:415)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:242)<br>
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:239)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)<br>
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:645)<br>
at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:455)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:336)<br>
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)<br>
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)<br>
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br>
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br>
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br>
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)<br>
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82)<br>
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78)<br>
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:156)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:578)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:371)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:242)<br>
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:239)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:155)<br>
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:303)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)<br>
at org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:136)<br>
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:380)<br>
at org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:319)<br>
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:180)<br>
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)<br>
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 RC3</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398069268" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7102" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7102/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7102">#7102</a> NPE with TransactionAttributeSourceAdvisor.TransactionAttributeSourcePointcut when debug enabled (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">1 votes, 1 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=chrislee" rel="nofollow">Chris Lee</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2413?redirect=false" rel="nofollow">SPR-2413</a></strong> and commented</p>
<p dir="auto">Upgrading from 2.0RC2 to 2.0RC3; aside from a couple of moved classes, everything went smooth, until we turned on DEBUG for org.springframework.</p>
<p dir="auto">This resulting in a NPE:</p>
<p dir="auto">java.lang.NullPointerException<br>
at org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor$TransactionAttributeSourcePointcut.getTransactionAttributeSource(TransactionAttributeSourceAdvisor.java:102)<br>
at org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor$TransactionAttributeSourcePointcut.hashCode(TransactionAttributeSourceAdvisor.java:121)<br>
at java.lang.Object.toString(Object.java:209)<br>
at java.lang.String.valueOf(String.java:2615)<br>
at java.lang.StringBuffer.append(StringBuffer.java:220)<br>
at org.springframework.aop.support.AbstractPointcutAdvisor.toString(AbstractPointcutAdvisor.java:71)<br>
at java.lang.String.valueOf(String.java:2615)<br>
at java.lang.StringBuffer.append(StringBuffer.java:220)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:383)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:242)</p>
<p dir="auto">...the bean that triggered this was:</p>
<p dir="auto"><bean id="apTransactionAttributeSourceAdvisor"<br>
class="org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor"><br>
<property name="transactionInterceptor" ref="apTxInterceptor" /><br>
<property name="classFilter"><br>
<bean class="org.springframework.aop.aspectj.TypePatternClassFilter"><br>
<property name="typePattern" value="bridges.authPortal..*" /><br>
</bean><br>
</property><br>
</bean></p>
<p dir="auto">It looks like AbstractAutowireCapableBeanFactory logs a debug message (line 383) "Eagerly caching...", which forces a toString on the instantiated bean; since the TransactionAttributeSourceAdvisor.TransactionAttributeSourcePointcut does not have a toString() method, it uses Object.toString, which calls hashCode(), triggering the NPE (as the interceptor hasn't been injected yet).</p>
<p dir="auto">Possible solutions are to remove the hashCode (presumably it is there for a reason though) or add a toString() method to TransactionAttributeSourceAdvisor.TransactionAttributeSourcePointcut</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 RC3</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398070047" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7192" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7192/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7192">#7192</a> Change of logging level to debug causes bean creation failure in presence of tx:annotation-driven (<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="398069278" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7103" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7103/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7103">#7103</a> NPE when creating a TransactionAttributeSourceAdvisor bean w/debug enabled (<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="398070130" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7205" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7205/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7205">#7205</a> Bug with tx:annotation-driven/ and JPA with Spring 2 RC3: internal creation TransactionAttributeSourceAdvisor leads to NPE (<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="398070718" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7277" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7277/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7277">#7277</a> Turning on debugging causes NPE with aspects (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">1 votes, 2 watchers</p> | 1 |
<p dir="auto">Setting atom as git editor on windows 7 works when I dont have an instance of atom running</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> git config --global core.editor "atom --wait""><pre class="notranslate"><code class="notranslate">> git config --global core.editor "atom --wait"
</code></pre></div>
<p dir="auto">But when I am editing a file in atom and do a commit, I get below message even though the commit message tmp file opens in a new tab in current atom window.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> git commit
Aborting commit due to empty commit message.
>"><pre class="notranslate"><code class="notranslate">> git commit
Aborting commit due to empty commit message.
>
</code></pre></div> | <p dir="auto">Version 0.118.0 on Windows 7 x64</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS C:\ > atom --wait myfile.txt"><pre class="notranslate"><code class="notranslate">PS C:\ > atom --wait myfile.txt
</code></pre></div>
<p dir="auto">Immediately terminates, but does continue to open the file. Expected result is to wait until the file is closed in the editor.</p>
<p dir="auto"><a href="https://github.com/atom/language-git">https://github.com/atom/language-git</a><br>
and<br>
<a href="http://blog.atom.io/2014/03/13/git-integration.html" rel="nofollow">http://blog.atom.io/2014/03/13/git-integration.html</a><br>
say that the syntax that I'm using is correct. Is there a new syntax to enable this or is this feature no longer supported.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.6</li>
<li>Operating System version: win10</li>
<li>Java version: java8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">NacosMetadataReport缺失username和password参数解析,导致nacos开启权限认证的情况下,dubbo元数据无法发送到nacos</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.7</li>
<li>Operating System version: mac</li>
<li>Java version: 1.8</li>
<li>golang version 1.5.1</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">java-client 泛化调用go的服务<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9083689/97385739-51a57800-190d-11eb-9d27-f126fe1b5955.png"><img src="https://user-images.githubusercontent.com/9083689/97385739-51a57800-190d-11eb-9d27-f126fe1b5955.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">确定go的服务 在使用 go-client 调用时能够调通的<br>
确定使用dubbo-java-client(2.6.5)也是能调通的</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | 0 |
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): RHEL7 3.10.0-862.11.6.el7.x86_64</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: -</li>
<li>TensorFlow installed from (source or binary): conda</li>
<li>TensorFlow version (use command below): 1.11.0</li>
<li>Python version: Python 3.6.6 :: Anaconda, Inc.</li>
<li>Bazel version (if compiling from source): -</li>
<li>GCC/Compiler version (if compiling from source): -</li>
<li>CUDA/cuDNN version: -</li>
<li>GPU model and memory: -</li>
</ul>
<p dir="auto"><strong>Describe the current behavior</strong></p>
<p dir="auto">When creating a custom <code class="notranslate">tf.keras.Model</code> with custom <code class="notranslate">build()</code> function, the variable name scopes seem not to propagate correctly in <code class="notranslate">tf.keras.Dense</code> layers.</p>
<p dir="auto"><strong>Describe the expected behavior</strong></p>
<p dir="auto">Variables of inner <code class="notranslate">tf.keras.Dense</code> layers should have different names, such as:<br>
<code class="notranslate">dense/kernel:0</code><br>
<code class="notranslate">dense/bias:0</code><br>
<code class="notranslate">dense_1/kernel:0</code><br>
<code class="notranslate">dense_1/bias:0</code></p>
<p dir="auto">Right now they have the same name:<br>
<code class="notranslate">kernel:0</code><br>
<code class="notranslate">bias:0</code><br>
<code class="notranslate">kernel:0</code><br>
<code class="notranslate">bias:0</code></p>
<p dir="auto">This is problematic for saving / loading parameters.</p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
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="import tensorflow as tf
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
tf.enable_eager_execution()
tf.executing_eagerly()
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__(name='mymodel')
self.f = tf.keras.layers.Dense(units=10)
self.g = tf.keras.layers.Dense(units=10)
# Workaround
# self.f = tf.keras.Sequential([tf.keras.layers.Dense(units=10)])
# self.g = tf.keras.Sequential([tf.keras.layers.Dense(units=10)])
def build(self, input_shapes):
self.f.build(input_shapes[0])
self.g.build(input_shapes[1])
self.built = True
def call(self, x, y):
return self.f(x) + self.g(y)
model = MyModel()
model.build([(None, 5), (None, 3)])
for v in model.variables:
print(v.name)"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
tf.enable_eager_execution()
tf.executing_eagerly()
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__(name='mymodel')
self.f = tf.keras.layers.Dense(units=10)
self.g = tf.keras.layers.Dense(units=10)
# Workaround
# self.f = tf.keras.Sequential([tf.keras.layers.Dense(units=10)])
# self.g = tf.keras.Sequential([tf.keras.layers.Dense(units=10)])
def build(self, input_shapes):
self.f.build(input_shapes[0])
self.g.build(input_shapes[1])
self.built = True
def call(self, x, y):
return self.f(x) + self.g(y)
model = MyModel()
model.build([(None, 5), (None, 3)])
for v in model.variables:
print(v.name)
</code></pre></div>
<p dir="auto"><strong>Other info / logs</strong><br>
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.</p> | <p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Google Deep Learning VM<br>
Version: m10<br>
Based on: Debian GNU/Linux 9.5 (stretch) (GNU/Linux 4.9.0-8-amd64 x86_64\n)</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary): deep-learning image</li>
<li>TensorFlow version (use command below): 1.11</li>
<li>Python version: 2.7</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:</li>
<li>GPU model and memory: N/A</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br>
You can also obtain the TensorFlow version with<br>
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<p dir="auto"><strong>Describe the current behavior</strong><br>
Running deep model and some wide linear models. Inference performance is very bad. 2-4x slower relative to running inference without MKL<br>
<strong>Describe the expected behavior</strong><br>
Performance should actually improve with intel mkl instruction set .</p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
code for deep and wide linear model. or logistic regression example code from tensorflow example</p>
<p dir="auto"><strong>Other info / logs</strong><br>
When running using google deep learning image version M9 on gpu machine (image : tf-latest-cu92, version M9) . Note : the inference is only running on cpu as i turn off the visibility for cuda devices, So the tensorflow code runs only runs on cpu. The image family says they are intel optimized packages but when i rung the benchmarks with verbosity on , i do not observe any mkl related stuff.</p>
<p dir="auto">I start another deep learning image (tf-latest-cpu , version M10): Running exact same code on this machine with environment variable (export MKL_VERBOSE=1): I can observe a lot of openMP thread settings , KMP_xxx settings and mkl instructions logged with some timing information. I didn't observe any such thing in the M9 gpu image , even though in both place when i execute command i observe following logs:<br>
M9 gpu image<br>
Numpy + Intel(R) MKL: THREADING LAYER: (null)<br>
Numpy + Intel(R) MKL: setting Intel(R) MKL to use INTEL OpenMP runtime<br>
Numpy + Intel(R) MKL: preloading libiomp5.so runtime<br>
MKL_VERBOSE Intel(R) MKL 2019.0 Product build 20180829 for Intel(R) 64 architecture Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Lnx 2.20GHz lp64 intel_thread<br>
MKL_VERBOSE SDOT(2,0x55fd25117d40,1,0x55fd25117d40,1) 1.61ms CNR:OFF Dyn:1 FastMM:1 TID:0 NThr:16<br>
1.11.0</p>
<p dir="auto">M10 cpu image :<br>
Numpy + Intel(R) MKL: THREADING LAYER: (null)<br>
Numpy + Intel(R) MKL: setting Intel(R) MKL to use INTEL OpenMP runtime<br>
Numpy + Intel(R) MKL: preloading libiomp5.so runtime</p>
<p dir="auto">User settings:</p>
<p dir="auto">KMP_AFFINITY=granularity=fine,verbose,compact,1,0<br>
KMP_BLOCKTIME=0<br>
KMP_SETTINGS=1<br>
OMP_NUM_THREADS=32</p>
<p dir="auto">Effective settings:</p>
<p dir="auto">KMP_ABORT_DELAY=0<br>
KMP_ADAPTIVE_LOCK_PROPS='1,1024'<br>
KMP_ALIGN_ALLOC=64<br>
KMP_ALL_THREADPRIVATE=128<br>
KMP_ATOMIC_MODE=2<br>
KMP_BLOCKTIME=0<br>
KMP_CPUINFO_FILE: value is not defined<br>
KMP_DETERMINISTIC_REDUCTION=false<br>
KMP_DEVICE_THREAD_LIMIT=2147483647<br>
KMP_DISP_HAND_THREAD=false<br>
KMP_DISP_NUM_BUFFERS=7<br>
KMP_DUPLICATE_LIB_OK=false<br>
KMP_FORCE_REDUCTION: value is not defined<br>
KMP_FOREIGN_THREADS_THREADPRIVATE=true<br>
KMP_FORKJOIN_BARRIER='2,2'<br>
KMP_FORKJOIN_BARRIER_PATTERN='hyper,hyper'<br>
KMP_FORKJOIN_FRAMES=true<br>
KMP_FORKJOIN_FRAMES_MODE=3<br>
KMP_GTID_MODE=3<br>
KMP_HANDLE_SIGNALS=false<br>
KMP_HOT_TEAMS_MAX_LEVEL=1<br>
KMP_HOT_TEAMS_MODE=0<br>
KMP_INIT_AT_FORK=true<br>
KMP_INIT_WAIT=2048<br>
KMP_ITT_PREPARE_DELAY=0<br>
KMP_LIBRARY=throughput<br>
KMP_LOCK_KIND=queuing<br>
KMP_MALLOC_POOL_INCR=1M<br>
KMP_NEXT_WAIT=1024<br>
KMP_NUM_LOCKS_IN_BLOCK=1<br>
KMP_PLAIN_BARRIER='2,2'<br>
KMP_PLAIN_BARRIER_PATTERN='hyper,hyper'<br>
KMP_REDUCTION_BARRIER='1,1'<br>
KMP_REDUCTION_BARRIER_PATTERN='hyper,hyper'<br>
KMP_SCHEDULE='static,balanced;guided,iterative'<br>
KMP_SETTINGS=true<br>
KMP_SPIN_BACKOFF_PARAMS='4096,100'<br>
KMP_STACKOFFSET=64<br>
KMP_STACKPAD=0<br>
KMP_STACKSIZE=4M<br>
KMP_STORAGE_MAP=false<br>
KMP_TASKING=2<br>
KMP_TASKLOOP_MIN_TASKS=0<br>
KMP_TASK_STEALING_CONSTRAINT=1<br>
KMP_TEAMS_THREAD_LIMIT=32<br>
KMP_TOPOLOGY_METHOD=all<br>
KMP_USER_LEVEL_MWAIT=false<br>
KMP_VERSION=false<br>
KMP_WARNINGS=true<br>
OMP_AFFINITY_FORMAT='OMP: pid %P tid %T thread %n bound to OS proc set {%a}'<br>
OMP_ALLOCATOR=omp_default_mem_alloc<br>
OMP_CANCELLATION=false<br>
OMP_DEBUG=disabled<br>
OMP_DEFAULT_DEVICE=0<br>
OMP_DISPLAY_AFFINITY=false<br>
OMP_DISPLAY_ENV=false<br>
OMP_DYNAMIC=false<br>
OMP_MAX_ACTIVE_LEVELS=2147483647<br>
OMP_MAX_TASK_PRIORITY=0<br>
OMP_NESTED=false<br>
OMP_NUM_THREADS='32'<br>
OMP_PLACES: value is not defined<br>
OMP_PROC_BIND='intel'<br>
OMP_SCHEDULE='static'<br>
OMP_STACKSIZE=4M<br>
OMP_TARGET_OFFLOAD=DEFAULT<br>
OMP_THREAD_LIMIT=2147483647<br>
OMP_TOOL=enabled<br>
OMP_TOOL_LIBRARIES: value is not defined<br>
OMP_WAIT_POLICY=PASSIVE<br>
KMP_AFFINITY='verbose,warnings,respect,granularity=fine,compact,1,0'</p>
<p dir="auto">OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116869296" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/212" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/212/hovercard" href="https://github.com/tensorflow/tensorflow/issues/212">#212</a>: KMP_AFFINITY: decoding x2APIC ids.<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116841232" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/210" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/210/hovercard" href="https://github.com/tensorflow/tensorflow/issues/210">#210</a>: KMP_AFFINITY: Affinity capable, using global cpuid leaf 11 info<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116433852" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/154" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/154/hovercard" href="https://github.com/tensorflow/tensorflow/pull/154">#154</a>: KMP_AFFINITY: Initial OS proc set respected: 0-31<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116441460" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/156" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/156/hovercard" href="https://github.com/tensorflow/tensorflow/issues/156">#156</a>: KMP_AFFINITY: 32 available OS procs<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116444691" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/157" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/157/hovercard" href="https://github.com/tensorflow/tensorflow/pull/157">#157</a>: KMP_AFFINITY: Uniform topology<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116597495" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/179" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/179/hovercard" href="https://github.com/tensorflow/tensorflow/issues/179">#179</a>: KMP_AFFINITY: 1 packages x 16 cores/pkg x 2 threads/core (16 total cores)<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116895438" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/214" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/214/hovercard" href="https://github.com/tensorflow/tensorflow/issues/214">#214</a>: KMP_AFFINITY: OS proc to physical thread map:<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116516798" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/171" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/171/hovercard" href="https://github.com/tensorflow/tensorflow/issues/171">#171</a>: KMP_AFFINITY: OS proc 0 maps to package 0 core 0 thread 0<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116516798" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/171" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/171/hovercard" href="https://github.com/tensorflow/tensorflow/issues/171">#171</a>: KMP_AFFINITY: OS proc 16 maps to package 0 core 0 thread 1<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116516798" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/171" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/171/hovercard" href="https://github.com/tensorflow/tensorflow/issues/171">#171</a>: KMP_AFFINITY: OS proc 1 maps to package 0 core 1 thread 0<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116516798" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/171" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/171/hovercard" href="https://github.com/tensorflow/tensorflow/issues/171">#171</a>: KMP_AFFINITY: OS proc 17 maps to package 0 core 1 thread 1<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116516798" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/171" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/171/hovercard" href="https://github.com/tensorflow/tensorflow/issues/171">#171</a>: KMP_AFFINITY: OS proc 2 maps to package 0 core 2 thread 0<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116516798" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/171" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/171/hovercard" href="https://github.com/tensorflow/tensorflow/issues/171">#171</a>: KMP_AFFINITY: OS proc 18 maps to package 0 core 2 thread 1<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116516798" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/171" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/171/hovercard" href="https://github.com/tensorflow/tensorflow/issues/171">#171</a>: KMP_AFFINITY: OS proc 3 maps to package 0 core 3 thread 0<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116516798" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/171" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/171/hovercard" href="https://github.com/tensorflow/tensorflow/issues/171">#171</a>: KMP_AFFINITY: OS proc 19 maps to package 0 core 3 thread 1<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116516798" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/171" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/171/hovercard" href="https://github.com/tensorflow/tensorflow/issues/171">#171</a>: KMP_AFFINITY: OS proc 4 maps to package 0 core 4 thread 0<br>
OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116516798" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/171" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/171/hovercard" href="https://github.com/tensorflow/tensorflow/issues/171">#171</a>: KMP_AFFINITY: OS proc 20 maps to package 0 core 4 thread 1</p>
<p dir="auto">OMP: Info <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117261381" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/250" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/250/hovercard" href="https://github.com/tensorflow/tensorflow/issues/250">#250</a>: KMP_AFFINITY: pid 8331 tid 8331 thread 0 bound to OS proc set 0<br>
MKL_VERBOSE Intel(R) MKL 2019.0 Product build 20180829 for Intel(R) 64 architecture Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Lnx 2.20GHz lp64 intel_thread<br>
MKL_VERBOSE SDOT(2,0x5622b7736500,1,0x5622b7736500,1) 2.54ms CNR:OFF Dyn:1 FastMM:1 TID:0 NThr:16<br>
1.11.0</p>
<p dir="auto">So i assume intel mkl is being used in M10 image where as mkl is not being used in the M9 image (Note: i have turned off visibility for cuda devices so only cpu inference is being compared) . I observe 2-4x performance degradation with intel mkl.<br>
The mkl suggested flags are appropriate:<br>
KMP_AFFINITY=granularity=fine,verbose,compact,1,0<br>
KMP_BLOCKTIME=0<br>
KMP_SETTINGS=1<br>
OMP_NUM_THREADS=32</p>
<p dir="auto">Any ideas on how to debug the root cause and get the maximum performance for my models.</p> | 0 |
<p dir="auto">here are the files<br>
INDEX.HTML</p>
<title>Bootstrap 101 Template</title>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="font-awesome/css/font-awesome.css" rel="stylesheet">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<style>
body { padding-bottom: 70px; }
</style>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
$(function(){
$("#header").load("header.html");
$("#footer").load("footer.html");
});
</script>"><pre class="notranslate"><code class="notranslate"><!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="font-awesome/css/font-awesome.css" rel="stylesheet">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<style>
body { padding-bottom: 70px; }
</style>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
$(function(){
$("#header").load("header.html");
$("#footer").load("footer.html");
});
</script>
</code></pre></div>
<div id="user-content-header" dir="auto"></div>
<div id="user-content-carousel-example-generic" dir="auto">
<ol dir="auto">
<li></li>
<li></li>
<li></li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" <!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="img/tumblr_nb1uhrRrge1st5lhmo1_1280.jpg" alt="jelifish">
<div class="carousel-caption">
first one
</div>
</div>
<div class="item">
<img src="img/YzgdnQ4TTumS8xR9YRKJ_IMG_2761%20(1).jpg" alt="crysanth">
<div class="carousel-caption">
second one
</div>
</div>
<div class="item">
<img src="img/tumblr_nb1uhrRrge1st5lhmo1_1280.jpg" alt="koala">
<div class="carousel-caption">
<a><h3>mcloud ...</h3> </a>
</div>
</div>
</div>"><pre class="notranslate"><code class="notranslate"> <!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="img/tumblr_nb1uhrRrge1st5lhmo1_1280.jpg" alt="jelifish">
<div class="carousel-caption">
first one
</div>
</div>
<div class="item">
<img src="img/YzgdnQ4TTumS8xR9YRKJ_IMG_2761%20(1).jpg" alt="crysanth">
<div class="carousel-caption">
second one
</div>
</div>
<div class="item">
<img src="img/tumblr_nb1uhrRrge1st5lhmo1_1280.jpg" alt="koala">
<div class="carousel-caption">
<a><h3>mcloud ...</h3> </a>
</div>
</div>
</div>
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
</div>
<!- corosel ends-->
<!-- thumbnail starts here-->
<div class="container">"><pre class="notranslate"><code class="notranslate"> <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
</div>
<!- corosel ends-->
<!-- thumbnail starts here-->
<div class="container">
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" <div class="row">
<div class="col-md-4">
<h3><a href="#">WI-FI</a></h3>
<img src="img/quickpay.jpg" alt="">
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a href="#" class="btn btn-default"> read more</a>
</div>
<div class="col-md-4">
<h3><a href="#">WI-FI</a></h3>
<img src="img/quickpay.jpg" alt="">
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a href="#" class="btn btn-default"> read more</a>
</div>
<div class="col-md-4">
<h3><a href="#">WI-FI</a></h3>
<img src="img/quickpay.jpg" alt="">
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a href="#" class="btn btn-default"> read more</a>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<div id="footer"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>"><pre class="notranslate"><code class="notranslate"> <div class="row">
<div class="col-md-4">
<h3><a href="#">WI-FI</a></h3>
<img src="img/quickpay.jpg" alt="">
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a href="#" class="btn btn-default"> read more</a>
</div>
<div class="col-md-4">
<h3><a href="#">WI-FI</a></h3>
<img src="img/quickpay.jpg" alt="">
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a href="#" class="btn btn-default"> read more</a>
</div>
<div class="col-md-4">
<h3><a href="#">WI-FI</a></h3>
<img src="img/quickpay.jpg" alt="">
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a href="#" class="btn btn-default"> read more</a>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<div id="footer"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</code></pre></div>
<p dir="auto">AND HEADER.HTML</p>
<title>Bootstrap 101 Template</title>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="font-awesome/css/font-awesome.css" rel="stylesheet">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->"><pre class="notranslate"><code class="notranslate"><!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="font-awesome/css/font-awesome.css" rel="stylesheet">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</code></pre></div>
<div dir="auto">
<div dir="auto">
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" <a href="#" class="navbar-brand" style="color:red">MCLOUD</a>
<button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="collapse navbar-collapse navHeaderCollapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#" style="color:red" class="active">home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" style="color:red">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu" >
<li ><a href="#apply" data-toggle="modal" >Apply for new Connection</a></li>
<li ><a href="#quick" data-toggle="modal">Quick Pay</a></li>
<li role="presentation" class="divider"></li>
<li ><a href="#account" data-toggle="modal">MyAccount</a></li>
</ul>
</li>
<li><a href="#" style="color:red">home</a></li>
</ul>
</div>
</div>
</div>
<!-- apply for new connection form-->
<div class="modal fade" id="apply" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<form class="form-horizontal">
<div class="modal-header">
<h4>Apply for new connection</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for = "contact-name" class="col-lg-2 control-lable">Name:</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="contact-name" placeholder="Full name">
</div>
</div>
<div class="form-group">
<label for = "contact-email" class="col-lg-2 control-lable">email:</label>
<div class="col-lg-10">
<input type="email" class="form-control" id="contact-email" placeholder="[email protected]">
</div>
</div>
<div class="form-group">
<label for = "contact-mobileNo." class="col-lg-2 control-lable">Mobile NO.</label>
<div class="col-lg-10">
<input type="mobileNo." class="form-control" id="contact-mobileNo." placeholder="+910000000000">
</div>
</div>
<div class="form-group">
<label for = "contact-city" class="col-lg-2 control-lable">City:</label>
<div class="col-lg-10">
<input type="city" class="form-control" id="contact-mobileNo." placeholder="pune west,east or center">
</div>
</div>
<div class="form-group">
<label for = "contact-area" class="col-lg-2 control-lable">Area:</label>
<div class="col-lg-10">
<input type="area" class="form-control" id="contact-area" placeholder="Area">
</div>
</div>
<div class="form-group">
<label for = "contact-building" class="col-lg-2 control-lable">Building:</label>
<div class="col-lg-10">
<input type="building" class="form-control" id="contact-building" placeholder="Building">
</div>
</div>
<div class="form-group">
<label for = "contact-address" class="col-lg-2 control-lable">Address:</label>
<div class="col-lg-10">
<input type="address" class="form-control" id="contact-address" placeholder="address">
</div>
</div>
<div class="form-group">
<label for = "contact-address" class="col-lg-2 control-lable"></label>
<div class="col-lg-10">
<div class="checkbox">
<label>
<input type="checkbox"> Mcloud Broadband can call with details!<span class="glyphicon glyphicon- warning-sign"></span>
</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-primary" data-dismiss="modal">Close</a>
<a class="btn btn-success" type="submit" >Submit</a>
</div>
</form>
</div>
</div>
</div>
<!--apply for new connection ends here -->
<!-- quick pay -->
<div class="modal fade" id="quick" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<form class="form-horizontal">
<div class="modal-header">
<h4>Quick Pay</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for = "Username" class="col-lg-2 control-lable">Username:</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="Username" ><p><br>OR</p>
</div>
</div>
<div class="form-group">
<label for = "accountno" class="col-lg-2 control-lable">Account NO.</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="accountno" >
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-primary" data-dismiss="modal">Close</a>
<a class="btn btn-success">submit</a>
</div>
</form>
</div>
</div>
</div>
<!-- quick pay -->
<!-- my account -->
<div class="modal fade" id="account" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<form class="form-horizontal">
<div class="modal-header">
<h4>Log In or<a style="color:blue"> Sign Up</a></h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for = "Username" class="col-lg-2 control-lable">Username:</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="Username" ><p>
</div>
</div>
<div class="form-group">
<label for = "password" class="col-lg-2 control-lable">Password:</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="password" >
</div>
</div>
<div class="form-group">
<div class="checkbox">
<label for = "password" class="col-lg-2 control-lable"></label>
<div class="col-lg-10">
<label>
<input type="checkbox"> Remember Password!<span class="glyphicon glyphicon- warning-sign"></span>
</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-primary" data-dismiss="modal">Close</a>
<a class="btn btn-success">submit</a>
</div>
</form>
</div>
</div>
</div>
<!-- my account ends here-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>"><pre class="notranslate"><code class="notranslate"> <a href="#" class="navbar-brand" style="color:red">MCLOUD</a>
<button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="collapse navbar-collapse navHeaderCollapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#" style="color:red" class="active">home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" style="color:red">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu" >
<li ><a href="#apply" data-toggle="modal" >Apply for new Connection</a></li>
<li ><a href="#quick" data-toggle="modal">Quick Pay</a></li>
<li role="presentation" class="divider"></li>
<li ><a href="#account" data-toggle="modal">MyAccount</a></li>
</ul>
</li>
<li><a href="#" style="color:red">home</a></li>
</ul>
</div>
</div>
</div>
<!-- apply for new connection form-->
<div class="modal fade" id="apply" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<form class="form-horizontal">
<div class="modal-header">
<h4>Apply for new connection</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for = "contact-name" class="col-lg-2 control-lable">Name:</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="contact-name" placeholder="Full name">
</div>
</div>
<div class="form-group">
<label for = "contact-email" class="col-lg-2 control-lable">email:</label>
<div class="col-lg-10">
<input type="email" class="form-control" id="contact-email" placeholder="[email protected]">
</div>
</div>
<div class="form-group">
<label for = "contact-mobileNo." class="col-lg-2 control-lable">Mobile NO.</label>
<div class="col-lg-10">
<input type="mobileNo." class="form-control" id="contact-mobileNo." placeholder="+910000000000">
</div>
</div>
<div class="form-group">
<label for = "contact-city" class="col-lg-2 control-lable">City:</label>
<div class="col-lg-10">
<input type="city" class="form-control" id="contact-mobileNo." placeholder="pune west,east or center">
</div>
</div>
<div class="form-group">
<label for = "contact-area" class="col-lg-2 control-lable">Area:</label>
<div class="col-lg-10">
<input type="area" class="form-control" id="contact-area" placeholder="Area">
</div>
</div>
<div class="form-group">
<label for = "contact-building" class="col-lg-2 control-lable">Building:</label>
<div class="col-lg-10">
<input type="building" class="form-control" id="contact-building" placeholder="Building">
</div>
</div>
<div class="form-group">
<label for = "contact-address" class="col-lg-2 control-lable">Address:</label>
<div class="col-lg-10">
<input type="address" class="form-control" id="contact-address" placeholder="address">
</div>
</div>
<div class="form-group">
<label for = "contact-address" class="col-lg-2 control-lable"></label>
<div class="col-lg-10">
<div class="checkbox">
<label>
<input type="checkbox"> Mcloud Broadband can call with details!<span class="glyphicon glyphicon- warning-sign"></span>
</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-primary" data-dismiss="modal">Close</a>
<a class="btn btn-success" type="submit" >Submit</a>
</div>
</form>
</div>
</div>
</div>
<!--apply for new connection ends here -->
<!-- quick pay -->
<div class="modal fade" id="quick" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<form class="form-horizontal">
<div class="modal-header">
<h4>Quick Pay</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for = "Username" class="col-lg-2 control-lable">Username:</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="Username" ><p><br>OR</p>
</div>
</div>
<div class="form-group">
<label for = "accountno" class="col-lg-2 control-lable">Account NO.</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="accountno" >
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-primary" data-dismiss="modal">Close</a>
<a class="btn btn-success">submit</a>
</div>
</form>
</div>
</div>
</div>
<!-- quick pay -->
<!-- my account -->
<div class="modal fade" id="account" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<form class="form-horizontal">
<div class="modal-header">
<h4>Log In or<a style="color:blue"> Sign Up</a></h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for = "Username" class="col-lg-2 control-lable">Username:</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="Username" ><p>
</div>
</div>
<div class="form-group">
<label for = "password" class="col-lg-2 control-lable">Password:</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="password" >
</div>
</div>
<div class="form-group">
<div class="checkbox">
<label for = "password" class="col-lg-2 control-lable"></label>
<div class="col-lg-10">
<label>
<input type="checkbox"> Remember Password!<span class="glyphicon glyphicon- warning-sign"></span>
</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-primary" data-dismiss="modal">Close</a>
<a class="btn btn-success">submit</a>
</div>
</form>
</div>
</div>
</div>
<!-- my account ends here-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</code></pre></div>
<p dir="auto">WHAT THE HELL IT IS NOT WORKING???</p></div></div></div> | 1 |
|
<p dir="auto">FEATURE REQUEST: Per destination bandwidth shaping</p>
<p dir="auto">While it's now possible to add a per-pod bandwidth limit with annotations <code class="notranslate">kubernetes.io/{ingress,egress}-bandwidth</code> this limit is set on the pod regardless of the trafic's origin/destination.</p>
<p dir="auto">In our use-case we would like to host containers for other companies in our Kubernetes cluster. While we would like the local<->local bandwidth to be unlimited, we want to limit the internet-egress bandwidth of theses pods to avoid paying egress charges on them.<br>
Another option would be per-deployment internet-egress accounting but I couldn't find anything on this.</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):<br>
bandwidth:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="97852713" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/11965" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/11965/hovercard" href="https://github.com/kubernetes/kubernetes/issues/11965">#11965</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51651113" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/2856" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/2856/hovercard" href="https://github.com/kubernetes/kubernetes/issues/2856">#2856</a></p>
<p dir="auto">shaper:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98002273" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/11988" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/11988/hovercard" href="https://github.com/kubernetes/kubernetes/pull/11988">#11988</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="145232099" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23740" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/23740/hovercard" href="https://github.com/kubernetes/kubernetes/pull/23740">#23740</a></p>
<hr>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): 1.3.5</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: Google GKE</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Debian Wheezy</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): 3.16.0-4-amd64</li>
</ul> | <p dir="auto">Hi. I'm writing this partially because I want to start a discussion and to leave some trails for others potentially affected.</p>
<p dir="auto">I started my journey with Kubernetes just a few days ago. I downloaded the 1.0.6 release (now I know this a only a pre-release and I should've downloaded the 1.0.4 release but this doesn't seem to be related to my particular issue).</p>
<p dir="auto">I brought up a tiny k8s cluster with the following config:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export KUBERNETES_PROVIDER=aws
export KUBE_AWS_ZONE=eu-west-1a
export NUM_MINIONS=3
export MINION_SIZE=t2.micro
export AWS_S3_REGION=eu-west-1
export AWS_S3_BUCKET=xxx
export KUBE_AWS_INSTANCE_PREFIX=xxx"><pre class="notranslate"><code class="notranslate">export KUBERNETES_PROVIDER=aws
export KUBE_AWS_ZONE=eu-west-1a
export NUM_MINIONS=3
export MINION_SIZE=t2.micro
export AWS_S3_REGION=eu-west-1
export AWS_S3_BUCKET=xxx
export KUBE_AWS_INSTANCE_PREFIX=xxx
</code></pre></div>
<p dir="auto">My cluster was created properly and after a bit of playing I left it in a good shape.</p>
<p dir="auto">The next day I wanted to investigate some DNS related issue on k8s nodes so I logged in on one of the minions. I noticed <code class="notranslate">*** System restart required ***</code> in the MOTD. I ignored it for a moment and investigated the DNS matters (some <code class="notranslate">nslookup</code>s, nothing dangerous). Then I rebooted the machine.</p>
<p dir="auto">Once the machine was up again I found out that <code class="notranslate">kubectl</code> reported it as <code class="notranslate">NotReady</code>. I started digging and investigating. It took me some time to find out that the Docker service on the node was not running:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo docker info
FATA[0001] Get http:///var/run/docker.sock/v1.18/info: read unix /var/run/docker.sock: connection reset by peer. Are you trying to connect to a TLS-enabled daemon without TLS?"><pre class="notranslate"><code class="notranslate">$ sudo docker info
FATA[0001] Get http:///var/run/docker.sock/v1.18/info: read unix /var/run/docker.sock: connection reset by peer. Are you trying to connect to a TLS-enabled daemon without TLS?
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo journalctl -u docker -f
-- Logs begin at Fri 2015-09-18 08:06:53 UTC. --
Sep 18 08:09:49 ip-172-20-0-149 systemd[1]: docker.service failed.
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: docker.service holdoff time over, scheduling restart.
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: Started Docker Application Container Engine.
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: Starting Docker Application Container Engine...
Sep 18 08:09:51 ip-172-20-0-149 docker[3397]: time="2015-09-18T08:09:51Z" level=info msg="+job serveapi(fd://)"
Sep 18 08:09:51 ip-172-20-0-149 docker[3397]: time="2015-09-18T08:09:51Z" level=info msg="Listening for HTTP on fd ()"
Sep 18 08:09:51 ip-172-20-0-149 docker[3397]: time="2015-09-18T08:09:51Z" level=fatal msg="Shutting down daemon due to errors: error intializing graphdriver: driver not supported"
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: Unit docker.service entered failed state.
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: docker.service failed."><pre class="notranslate"><code class="notranslate">$ sudo journalctl -u docker -f
-- Logs begin at Fri 2015-09-18 08:06:53 UTC. --
Sep 18 08:09:49 ip-172-20-0-149 systemd[1]: docker.service failed.
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: docker.service holdoff time over, scheduling restart.
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: Started Docker Application Container Engine.
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: Starting Docker Application Container Engine...
Sep 18 08:09:51 ip-172-20-0-149 docker[3397]: time="2015-09-18T08:09:51Z" level=info msg="+job serveapi(fd://)"
Sep 18 08:09:51 ip-172-20-0-149 docker[3397]: time="2015-09-18T08:09:51Z" level=info msg="Listening for HTTP on fd ()"
Sep 18 08:09:51 ip-172-20-0-149 docker[3397]: time="2015-09-18T08:09:51Z" level=fatal msg="Shutting down daemon due to errors: error intializing graphdriver: driver not supported"
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: Unit docker.service entered failed state.
Sep 18 08:09:51 ip-172-20-0-149 systemd[1]: docker.service failed.
</code></pre></div>
<p dir="auto">Further investigation led me to a conclusion that the problem arose from the fact that before the reboot the kernel was upgraded to 3.19.0-28, which no longer by default supports AUFS module which Docker uses as its storage driver.</p>
<p dir="auto">Looks like the solution is to install the <code class="notranslate">linux-image-extra-virtual</code>, as concluded from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57964797" data-permission-text="Title is private" data-url="https://github.com/moby/moby/issues/10859" data-hovercard-type="issue" data-hovercard-url="/moby/moby/issues/10859/hovercard" href="https://github.com/moby/moby/issues/10859">moby/moby#10859</a> and other sources, and reboot the node. After reboot the node got back to the <code class="notranslate">Ready</code> state.</p>
<p dir="auto">Moreover, I guess an upgrade to a newer Docker version, using the official install command <code class="notranslate">curl -sSL https://get.docker.com/ | sh</code> would solve the problem as the most recent install script already installs <code class="notranslate">linux-image-extra-virtual</code> as per <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57966342" data-permission-text="Title is private" data-url="https://github.com/moby/moby/issues/10860" data-hovercard-type="pull_request" data-hovercard-url="/moby/moby/pull/10860/hovercard" href="https://github.com/moby/moby/pull/10860">moby/moby#10860</a>, although I'm not sure how Docker was installed on the k8s node, so I don't know if it's safe to upgrade it this way.</p>
<p dir="auto">So I have a number of questions:</p>
<ol dir="auto">
<li>should k8s provide a workaround / fix for this particular issue?</li>
<li>or is it left to a cluster admin as it's an issue of a particular provider/env/configuration?</li>
<li>why is k8s using Docker v1.6.0 which is pretty old?</li>
<li>is it safe to use k8s in production on a setup in which Docker uses AUFS storage driver which seems to be deprecated by the Ubuntu team and thus dropped from the main kernel image?</li>
</ol>
<p dir="auto">Note that I haven't done anything unusual, just installed fresh k8s on AWS using the default Ubuntu release. Hence I believe it's important to fix it somehow in k8s.</p>
<p dir="auto">Possible duplicate: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="88226425" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/9779" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/9779/hovercard" href="https://github.com/kubernetes/kubernetes/issues/9779">#9779</a>.</p> | 0 |
<h2 dir="auto">I am using an older version of Windows 10 (v1809) and cannot upgrade since the upgrades are managed by the company. And would like to see the very needed video utility in older versions of Windows 10.</h2>
<p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p> | <p dir="auto">Please add support for earlier Windows versions, e.g. Win10 v1709, Win7, etc. - the main appeal of using Windows is the universal support for legacy programs. Please don't make PowerToys another exception to this rule.</p> | 1 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.0.1</li>
<li>Operating System / Platform => Ubuntu 16.04 LTS</li>
<li>Compiler => gcc 5.5.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<ul dir="auto">
<li>Related to: opencv_contrib (probably)</li>
<li>Probably it is related to the tests compilation.</li>
<li>See CMakeError log after the CMake configuration info in the down part of this issue.</li>
</ul>
<p dir="auto">Compilation fails in:<br>
<code class="notranslate">[ 40%] Built target opencv_gapi [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/scale_layer.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/eltwise_layer.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/mvn_layer.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/prior_box_layer.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/padding_layer.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/reorg_layer.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/recurrent_layers.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/crop_and_resize_layer.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/darknet/darknet_importer.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/darknet/darknet_io.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/op_halide.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/init.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/op_prior_box.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/op_pool.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/op_softmax.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/op_concat.cpp.o [ 40%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/context.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/buffer.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/op_permute.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/tensor.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/op_relu.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/internal.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/op_lrn.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/op_base.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/src/op_conv.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/vulkan/vk_loader.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/vulkan/vk_functions.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/shader/dw_conv_spv.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/shader/softmax_spv.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/shader/avg_pool_spv.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/shader/lrn_spv.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/shader/relu_spv.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/shader/prior_box_spv.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/shader/concat_spv.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/shader/max_pool_spv.cpp.o [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/shader/conv_spv.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/shader/conv48_spv.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/vkcom/shader/permute_spv.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/ocl4dnn_lrn.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/common.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/ocl4dnn_softmax.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/ocl4dnn_pool.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/ocl4dnn_inner_product.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/math_functions.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/ocl4dnn_conv_spatial.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/opencl_kernels_dnn.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx2.cpp.o [ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx512_skx.cpp.o [ 42%] Linking CXX shared library ../../lib/libopencv_dnn.so [ 42%] Built target opencv_dnn Makefile:160: fallo en las instrucciones para el objetivo 'all' make: *** [all] Error 2 </code></p>
<p dir="auto">Cmake configuration:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
General configuration for OpenCV 4.0.1-dev =====================================
Version control: 3.4.1-2515-g54a1bbe
Extra modules:
Location (extra): /home/tino/libs/opencv/opencv_contrib/modules
Version control (extra): 3.4.3-295-g301aa7e
Platform:
Timestamp: 2019-02-14T14:31:08Z
Host: Linux 4.15.0-45-generic x86_64
CMake: 3.5.1
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/make
Configuration: Release
CPU/HW features:
Baseline: SSE SSE2 SSE3
requested: SSE3
Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
SSE4_1 (7 files): + SSSE3 SSE4_1
SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2
FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
AVX2 (15 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
AVX512_SKX (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX
C/C++:
Built as dynamic libs?: YES
C++ Compiler: /usr/bin/g++-5 (ver 5.5.0)
C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: /usr/bin/gcc-5
C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release):
Linker flags (Debug):
ccache: YES
Precompiled headers: NO
Extra dependencies: dl m pthread rt
3rdparty dependencies:
OpenCV modules:
To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc java java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
Disabled: python2 python_bindings_generator world
Disabled by dependency: -
Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv js matlab ovis python3 viz
Applications: tests perf_tests apps
Documentation: NO
Non-free algorithms: YES
GUI:
GTK+: YES (ver 3.18.9)
GThread : YES (ver 2.48.2)
GtkGlExt: NO
VTK support: NO
Media I/O:
ZLib: /home/tino/anaconda/lib/libz.so (ver 1.2.11)
JPEG: build-libjpeg-turbo (ver 1.5.3-62)
WEBP: /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x0202)
PNG: build (ver 1.6.35)
TIFF: build (ver 42 - 4.0.9)
JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
OpenEXR: build (ver 1.7.1)
HDR: YES
SUNRASTER: YES
PXM: YES
PFM: YES
Video I/O:
DC1394: YES (2.2.4)
FFMPEG: YES
avcodec: YES (57.107.100)
avformat: YES (57.83.100)
avutil: YES (55.78.100)
swscale: YES (4.8.100)
avresample: YES (2.1.0)
GStreamer: YES (1.8.3)
v4l/v4l2: YES (linux/videodev2.h)
Parallel framework: pthreads
Trace: YES (with Intel ITT)
Other third-party libraries:
Intel IPP: 2019.0.0 Gold [2019.0.0]
at: /home/tino/libs/opencv/build_FEB_19/3rdparty/ippicv/ippicv_lnx/icv
Intel IPP IW: sources (2019.0.0)
at: /home/tino/libs/opencv/build_FEB_19/3rdparty/ippicv/ippicv_lnx/iw
Lapack: YES (/usr/lib/liblapack.so /usr/lib/libcblas.so /usr/lib/libatlas.so)
Eigen: YES (ver 3.2.92)
Custom HAL: NO
Protobuf: build (3.5.1)
OpenCL: YES (no extra features)
Include path: /home/tino/libs/opencv/opencv/3rdparty/include/opencl/1.2
Link libraries: Dynamic load
Python (for build): /usr/bin/python2.7
Java:
ant: /usr/bin/ant (ver 1.9.6)
JNI: /usr/lib/jvm/java-8-oracle/include /usr/lib/jvm/java-8-oracle/include/linux /usr/lib/jvm/java-8-oracle/include
Java wrappers: YES
Java tests: YES
Install to: /usr/local/opencv_4_0_1
-----------------------------------------------------------------
Configuring done
"><pre class="notranslate"><code class="notranslate">
General configuration for OpenCV 4.0.1-dev =====================================
Version control: 3.4.1-2515-g54a1bbe
Extra modules:
Location (extra): /home/tino/libs/opencv/opencv_contrib/modules
Version control (extra): 3.4.3-295-g301aa7e
Platform:
Timestamp: 2019-02-14T14:31:08Z
Host: Linux 4.15.0-45-generic x86_64
CMake: 3.5.1
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/make
Configuration: Release
CPU/HW features:
Baseline: SSE SSE2 SSE3
requested: SSE3
Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
SSE4_1 (7 files): + SSSE3 SSE4_1
SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2
FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
AVX2 (15 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
AVX512_SKX (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX
C/C++:
Built as dynamic libs?: YES
C++ Compiler: /usr/bin/g++-5 (ver 5.5.0)
C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: /usr/bin/gcc-5
C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release):
Linker flags (Debug):
ccache: YES
Precompiled headers: NO
Extra dependencies: dl m pthread rt
3rdparty dependencies:
OpenCV modules:
To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc java java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
Disabled: python2 python_bindings_generator world
Disabled by dependency: -
Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv js matlab ovis python3 viz
Applications: tests perf_tests apps
Documentation: NO
Non-free algorithms: YES
GUI:
GTK+: YES (ver 3.18.9)
GThread : YES (ver 2.48.2)
GtkGlExt: NO
VTK support: NO
Media I/O:
ZLib: /home/tino/anaconda/lib/libz.so (ver 1.2.11)
JPEG: build-libjpeg-turbo (ver 1.5.3-62)
WEBP: /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x0202)
PNG: build (ver 1.6.35)
TIFF: build (ver 42 - 4.0.9)
JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
OpenEXR: build (ver 1.7.1)
HDR: YES
SUNRASTER: YES
PXM: YES
PFM: YES
Video I/O:
DC1394: YES (2.2.4)
FFMPEG: YES
avcodec: YES (57.107.100)
avformat: YES (57.83.100)
avutil: YES (55.78.100)
swscale: YES (4.8.100)
avresample: YES (2.1.0)
GStreamer: YES (1.8.3)
v4l/v4l2: YES (linux/videodev2.h)
Parallel framework: pthreads
Trace: YES (with Intel ITT)
Other third-party libraries:
Intel IPP: 2019.0.0 Gold [2019.0.0]
at: /home/tino/libs/opencv/build_FEB_19/3rdparty/ippicv/ippicv_lnx/icv
Intel IPP IW: sources (2019.0.0)
at: /home/tino/libs/opencv/build_FEB_19/3rdparty/ippicv/ippicv_lnx/iw
Lapack: YES (/usr/lib/liblapack.so /usr/lib/libcblas.so /usr/lib/libatlas.so)
Eigen: YES (ver 3.2.92)
Custom HAL: NO
Protobuf: build (3.5.1)
OpenCL: YES (no extra features)
Include path: /home/tino/libs/opencv/opencv/3rdparty/include/opencl/1.2
Link libraries: Dynamic load
Python (for build): /usr/bin/python2.7
Java:
ant: /usr/bin/ant (ver 1.9.6)
JNI: /usr/lib/jvm/java-8-oracle/include /usr/lib/jvm/java-8-oracle/include/linux /usr/lib/jvm/java-8-oracle/include
Java wrappers: YES
Java tests: YES
Install to: /usr/local/opencv_4_0_1
-----------------------------------------------------------------
Configuring done
</code></pre></div>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Last lines in CMakeError.log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TestEndianess.c:
/* A 16 bit integer is required. */
typedef unsigned short cmakeint16;
/* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN."
On a big endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_little[] = {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000};
/* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN."
On a little endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_big[] = {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_little[argc];
require += info_big[argc];
(void)argv;
return require;
}
Build output check failed:
Regex: 'unrecognized .*option'
Output line: 'cc1: warning: unrecognized command line option ‘-Wno-misleading-indentation’'
Compilation failed:
source file: '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.c'
check option: ' -Wno-misleading-indentation'
===== BUILD LOG =====
Change Dir: /home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_f2cce/fast"
/usr/bin/make -f CMakeFiles/cmTC_f2cce.dir/build.make CMakeFiles/cmTC_f2cce.dir/build
make[1]: se entra en el directorio '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f2cce.dir/src.c.o
/usr/bin/gcc-5 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wstrict-prototypes -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -Wno-unused-but-set-variable -Wno-missing-prototypes -Wno-missing-declarations -Wno-undef -Wno-unused -Wno-sign-compare -Wno-cast-align -Wno-shadow -Wno-maybe-uninitialized -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -O3 -DNDEBUG -fPIE -Wno-misleading-indentation -o CMakeFiles/cmTC_f2cce.dir/src.c.o -c /home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.c
/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma [-Wunknown-pragmas]
#pragma
^
cc1: warning: unrecognized command line option ‘-Wno-misleading-indentation’
Linking C executable cmTC_f2cce
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f2cce.dir/link.txt --verbose=1
/usr/bin/gcc-5 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wstrict-prototypes -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -Wno-unused-but-set-variable -Wno-missing-prototypes -Wno-missing-declarations -Wno-undef -Wno-unused -Wno-sign-compare -Wno-cast-align -Wno-shadow -Wno-maybe-uninitialized -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -O3 -DNDEBUG -Wl,--gc-sections CMakeFiles/cmTC_f2cce.dir/src.c.o -o cmTC_f2cce
make[1]: se sale del directorio '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp'
===== END =====
Build output check failed:
Regex: 'unrecognized .*option'
Output line: 'cc1plus: warning: unrecognized command line option ‘-Wno-misleading-indentation’'
Compilation failed:
source file: '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.cxx'
check option: ' -Wno-misleading-indentation'
===== BUILD LOG =====
Change Dir: /home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_15132/fast"
/usr/bin/make -f CMakeFiles/cmTC_15132.dir/build.make CMakeFiles/cmTC_15132.dir/build
make[1]: se entra en el directorio '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_15132.dir/src.cxx.o
/usr/bin/g++-5 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wsign-promo -Winit-self -Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-unused -Wno-sign-compare -Wno-undef -Wno-missing-declarations -Wno-uninitialized -Wno-switch -Wno-parentheses -Wno-array-bounds -Wno-extra -Wno-deprecated-declarations -O3 -DNDEBUG -fPIE -Wno-misleading-indentation -o CMakeFiles/cmTC_15132.dir/src.cxx.o -c /home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.cxx
/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma [-Wunknown-pragmas]
#pragma
^
cc1plus: warning: unrecognized command line option ‘-Wno-misleading-indentation’
Linking CXX executable cmTC_15132
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_15132.dir/link.txt --verbose=1
/usr/bin/g++-5 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wsign-promo -Winit-self -Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-unused -Wno-sign-compare -Wno-undef -Wno-missing-declarations -Wno-uninitialized -Wno-switch -Wno-parentheses -Wno-array-bounds -Wno-extra -Wno-deprecated-declarations -O3 -DNDEBUG -Wl,--gc-sections CMakeFiles/cmTC_15132.dir/src.cxx.o -o cmTC_15132
make[1]: se sale del directorio '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp'
===== END =====
"><pre class="notranslate"><code class="notranslate">TestEndianess.c:
/* A 16 bit integer is required. */
typedef unsigned short cmakeint16;
/* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN."
On a big endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_little[] = {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000};
/* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN."
On a little endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_big[] = {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_little[argc];
require += info_big[argc];
(void)argv;
return require;
}
Build output check failed:
Regex: 'unrecognized .*option'
Output line: 'cc1: warning: unrecognized command line option ‘-Wno-misleading-indentation’'
Compilation failed:
source file: '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.c'
check option: ' -Wno-misleading-indentation'
===== BUILD LOG =====
Change Dir: /home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_f2cce/fast"
/usr/bin/make -f CMakeFiles/cmTC_f2cce.dir/build.make CMakeFiles/cmTC_f2cce.dir/build
make[1]: se entra en el directorio '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f2cce.dir/src.c.o
/usr/bin/gcc-5 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wstrict-prototypes -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -Wno-unused-but-set-variable -Wno-missing-prototypes -Wno-missing-declarations -Wno-undef -Wno-unused -Wno-sign-compare -Wno-cast-align -Wno-shadow -Wno-maybe-uninitialized -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -O3 -DNDEBUG -fPIE -Wno-misleading-indentation -o CMakeFiles/cmTC_f2cce.dir/src.c.o -c /home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.c
/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma [-Wunknown-pragmas]
#pragma
^
cc1: warning: unrecognized command line option ‘-Wno-misleading-indentation’
Linking C executable cmTC_f2cce
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f2cce.dir/link.txt --verbose=1
/usr/bin/gcc-5 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wstrict-prototypes -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -Wno-unused-but-set-variable -Wno-missing-prototypes -Wno-missing-declarations -Wno-undef -Wno-unused -Wno-sign-compare -Wno-cast-align -Wno-shadow -Wno-maybe-uninitialized -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -O3 -DNDEBUG -Wl,--gc-sections CMakeFiles/cmTC_f2cce.dir/src.c.o -o cmTC_f2cce
make[1]: se sale del directorio '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp'
===== END =====
Build output check failed:
Regex: 'unrecognized .*option'
Output line: 'cc1plus: warning: unrecognized command line option ‘-Wno-misleading-indentation’'
Compilation failed:
source file: '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.cxx'
check option: ' -Wno-misleading-indentation'
===== BUILD LOG =====
Change Dir: /home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_15132/fast"
/usr/bin/make -f CMakeFiles/cmTC_15132.dir/build.make CMakeFiles/cmTC_15132.dir/build
make[1]: se entra en el directorio '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_15132.dir/src.cxx.o
/usr/bin/g++-5 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wsign-promo -Winit-self -Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-unused -Wno-sign-compare -Wno-undef -Wno-missing-declarations -Wno-uninitialized -Wno-switch -Wno-parentheses -Wno-array-bounds -Wno-extra -Wno-deprecated-declarations -O3 -DNDEBUG -fPIE -Wno-misleading-indentation -o CMakeFiles/cmTC_15132.dir/src.cxx.o -c /home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.cxx
/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma [-Wunknown-pragmas]
#pragma
^
cc1plus: warning: unrecognized command line option ‘-Wno-misleading-indentation’
Linking CXX executable cmTC_15132
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_15132.dir/link.txt --verbose=1
/usr/bin/g++-5 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wsign-promo -Winit-self -Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-unused -Wno-sign-compare -Wno-undef -Wno-missing-declarations -Wno-uninitialized -Wno-switch -Wno-parentheses -Wno-array-bounds -Wno-extra -Wno-deprecated-declarations -O3 -DNDEBUG -Wl,--gc-sections CMakeFiles/cmTC_15132.dir/src.cxx.o -o cmTC_15132
make[1]: se sale del directorio '/home/tino/libs/opencv/build_FEB_19/CMakeFiles/CMakeTmp'
===== END =====
</code></pre></div> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => ❔</li>
<li>Operating System / Platform => ❔</li>
<li>Compiler => <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li>
</ul>
<h5 dir="auto">Detailed description</h5>
<h5 dir="auto">Steps to reproduce</h5> | 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.4.0</li>
<li>Operating System / Platform =>windows 7</li>
<li>Compiler => vs c/c++ compiler</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Hellow!<br>
I am trying to make an interface with a button to load an image.<br>
I am writing in C and and i tried to use <strong>cvCreateButton</strong> as described <a href="https://docs.opencv.org/3.4.0/d0/d28/group__highgui__c.html#gad00fc9d8e67c595dcfff75aab7fd4046" rel="nofollow">here</a>.<br>
But after building I am getting this error:<br>
Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol cvCreateButton</p>
<p dir="auto"><strong>I wrote this :</strong><br>
void ButtonCall(int state, void *userdata) {<br>
printf("ok");<br>
}<br>
<strong>And this in another function :</strong><br>
cvCreateButton("button", ButtonCall, NULL, CV_PUSH_BUTTON, 1);</p> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => :4.1.2:</li>
<li>Operating System / Platform => :Windows 7:</li>
<li>Compiler => <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji>(I amusing python)</li>
<li>Openvino => :2019.3:</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">While loading pretrained model face-detection-adas-0001 , it thrown an error,<br>
I found similar question answer but not working <a href="https://github.com/opencv/opencv/issues/14409#issuecomment-486605244" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/14409/hovercard">Failed to initialize Inference Engine backend: Unsupported primitive of type:</a><br>
By the answer,<br>
I have build the <strong>cpu_extension.dll</strong> available in build , As i copied it to<br>
<strong>C:\Program Files (x86)\IntelSWTools\openvino\bin\intel64\Release</strong> there was no folder , i created ans pasted.</p>
<p dir="auto">I again ran model using code</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def load_to_IE(model_xml):
plugin = IECore()
model_bin = os.path.splitext(model_xml)[0] + '.bin'
net = IENetwork(model=model_xml, weights=model_bin)
plugin.load_network(net, "CPU")
print("IR loaded successfully")
return True
load_to_IE('C:\\Users\\ra\\Desktop\\projects\\Entertainment\\age-gender-face-detection-project\\models\\face-detection-adas-0001\\FP16\\face-detection-adas-0001.xml')"><pre class="notranslate"><code class="notranslate">def load_to_IE(model_xml):
plugin = IECore()
model_bin = os.path.splitext(model_xml)[0] + '.bin'
net = IENetwork(model=model_xml, weights=model_bin)
plugin.load_network(net, "CPU")
print("IR loaded successfully")
return True
load_to_IE('C:\\Users\\ra\\Desktop\\projects\\Entertainment\\age-gender-face-detection-project\\models\\face-detection-adas-0001\\FP16\\face-detection-adas-0001.xml')
</code></pre></div>
<p dir="auto">Again throws error</p>
<blockquote>
<blockquote>
<p dir="auto">Traceback (most recent call last):<br>
File "feed_network.py", line 50, in <br>
load_to_IE('C:\Users\ra\Desktop\projects\Entertainment\age-gender-face-detection-project\models\face-detection-adas-0001\FP16\face-detection-adas-0001.xml')<br>
File "feed_network.py", line 45, in load_to_IE<br>
plugin.load_network(net, "CPU")<br>
File "ie_api.pyx", line 85, in openvino.inference_engine.ie_api.IECore.load_network<br>
File "ie_api.pyx", line 92, in openvino.inference_engine.ie_api.IECore.load_network<br>
RuntimeError: Unsupported primitive of type: PriorBox name: fc7_mbox_priorbox</p>
</blockquote>
</blockquote>
<p dir="auto">but other pretrained models works however.</p>
<h5 dir="auto">Steps to reproduce</h5> | 0 |
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if any</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar</li>
</ul>
<h3 dir="auto">Superset version</h3>
<p dir="auto">0.23.0</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">I have a fairly complex dashboard with dozens of slices configured. I'd like to duplicate (via SQL or programmatically if required) the entire dashboard multiple times along with all it's slices, metadata, etc.</p>
<p dir="auto">The use case is configuring a single customer-specific BI dashboard "template" that can be repurposed without constructing the entire dashboard from scratch.</p>
<p dir="auto">Curious to hear if there is any way to accomplish this</p> | 0 |
|
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
I have this legacy parameter decorator</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function logProperty(target: any, property: string) {
var _val = this[property];
var getter = function () {
console.log(`Get: ${property} => ${_val}`);
return _val;
};
var setter = function (newVal) {
console.log(`Set: ${property} => ${newVal}`);
_val = newVal;
};
if (delete this[property]) {
Object.defineProperty(target, property, {
get: getter,
set: setter,
enumerable: true,
configurable: true
});
}
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">logProperty</span><span class="pl-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">property</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">_val</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">[</span><span class="pl-s1">property</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-en">getter</span> <span class="pl-c1">=</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`Get: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">property</span><span class="pl-kos">}</span></span> => <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">_val</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-s1">_val</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-en">setter</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">newVal</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`Set: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">property</span><span class="pl-kos">}</span></span> => <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">newVal</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">_val</span> <span class="pl-c1">=</span> <span class="pl-s1">newVal</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-k">delete</span> <span class="pl-smi">this</span><span class="pl-kos">[</span><span class="pl-s1">property</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">get</span>: <span class="pl-s1">getter</span><span class="pl-kos">,</span>
<span class="pl-c1">set</span>: <span class="pl-s1">setter</span><span class="pl-kos">,</span>
<span class="pl-c1">enumerable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">configurable</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">depending on how I initialise a decorated property inside a class, it can be defined or undefined:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Case 1
class Foo {
@logProperty public myProp: string = 'foo';
}
console.log((new Foo()).myProp)); // => undefined"><pre class="notranslate"><span class="pl-c">// Case 1</span>
<span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
@<span class="pl-s1">logProperty</span> <span class="pl-k">public</span> <span class="pl-c1">myProp</span>: <span class="pl-smi">string</span> <span class="pl-c1">=</span> <span class="pl-s">'foo'</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-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">Foo</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">myProp</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// => undefined</span></pre></div>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Case 2
class Foo {
@logProperty public myProp: string;
constructor() {
this.myProp = 'foo';
}
}
console.log((new Foo()).myProp)); // => 'foo'"><pre class="notranslate"><span class="pl-c">// Case 2</span>
<span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
@<span class="pl-s1">logProperty</span> <span class="pl-k">public</span> <span class="pl-c1">myProp</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">myProp</span> <span class="pl-c1">=</span> <span class="pl-s">'foo'</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-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">Foo</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">myProp</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// => 'foo'</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong><br>
The <code class="notranslate">console.log</code> outputs of both test cases should be defined. In my case both should be <code class="notranslate">'foo'</code>.</p>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"presets": [
"@babel/env",
"@babel/preset-typescript"
],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose" : true }]
]
}
"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"presets"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"@babel/env"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/preset-typescript"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span>
<span class="pl-kos">[</span><span class="pl-s">"@babel/plugin-proposal-decorators"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"legacy"</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">"@babel/plugin-proposal-class-properties"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"loose"</span> : <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">]</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version: 7.1.2</li>
<li>Node/npm version: Node 10.12.0/npm 6.4.1</li>
<li>OS: OSX 10.14</li>
<li>Monorepo no</li>
<li>How you are using Babel: tried with cli and loader</li>
</ul>
<p dir="auto"><strong>Possible Solution</strong><br>
I have no solution, but here are the compiled version of both test cases.<br>
One has a class property, the other one defines the initial value in the initializer. Maybe that causes the issue.</p>
<details>
<summary>Compiled code: Testcase 1</summary>
<p dir="auto">
</p><div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""use strict";
var _class, _descriptor;
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object['ke' + 'ys'](descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object['define' + 'Property'](target, property, desc); desc = null; } return desc; }
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.'); }
function logProperty(target, property) {
var _val = this[property];
var getter = function getter() {
console.log("Get: ".concat(property, " => ").concat(_val));
return _val;
};
var setter = function setter(newVal) {
console.log("Set: ".concat(property, " => ").concat(newVal));
_val = newVal;
};
if (delete this[property]) {
Object.defineProperty(target, property, {
get: getter,
set: setter,
enumerable: true,
configurable: true
});
}
}
var Foo = (_class = function Foo() {
_classCallCheck(this, Foo);
_initializerDefineProperty(this, "myProp", _descriptor, this);
}, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "myProp", [logProperty], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return 'foo';
}
})), _class);
console.log(new Foo().myProp);"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_class</span><span class="pl-kos">,</span> <span class="pl-s1">_descriptor</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">_initializerDefineProperty</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s1">descriptor</span><span class="pl-kos">,</span> <span class="pl-s1">context</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">descriptor</span><span class="pl-kos">)</span> <span class="pl-k">return</span><span class="pl-kos">;</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">enumerable</span>: <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">enumerable</span><span class="pl-kos">,</span> <span class="pl-c1">configurable</span>: <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">configurable</span><span class="pl-kos">,</span> <span class="pl-c1">writable</span>: <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">writable</span><span class="pl-kos">,</span> <span class="pl-c1">value</span>: <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span> ? <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">context</span><span class="pl-kos">)</span> : <span class="pl-k">void</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-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">_classCallCheck</span><span class="pl-kos">(</span><span class="pl-s1">instance</span><span class="pl-kos">,</span> <span class="pl-v">Constructor</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-kos">(</span><span class="pl-s1">instance</span> <span class="pl-k">instanceof</span> <span class="pl-v">Constructor</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">TypeError</span><span class="pl-kos">(</span><span class="pl-s">"Cannot call a class as a function"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">_applyDecoratedDescriptor</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s1">decorators</span><span class="pl-kos">,</span> <span class="pl-s1">descriptor</span><span class="pl-kos">,</span> <span class="pl-s1">context</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">desc</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-v">Object</span><span class="pl-kos">[</span><span class="pl-s">'ke'</span> <span class="pl-c1">+</span> <span class="pl-s">'ys'</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">descriptor</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">desc</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">descriptor</span><span class="pl-kos">[</span><span class="pl-s1">key</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">desc</span><span class="pl-kos">.</span><span class="pl-c1">enumerable</span> <span class="pl-c1">=</span> <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">enumerable</span><span class="pl-kos">;</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">configurable</span> <span class="pl-c1">=</span> <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">configurable</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s">'value'</span> <span class="pl-k">in</span> <span class="pl-s1">desc</span> <span class="pl-c1">||</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">writable</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">desc</span> <span class="pl-c1">=</span> <span class="pl-s1">decorators</span><span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">reverse</span><span class="pl-kos">(</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-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">desc</span><span class="pl-kos">,</span> <span class="pl-s1">decorator</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">decorator</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s1">desc</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-s1">desc</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">desc</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">context</span> <span class="pl-c1">&&</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span> <span class="pl-c1">!==</span> <span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span> ? <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">context</span><span class="pl-kos">)</span> : <span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span> <span class="pl-c1">=</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span> <span class="pl-c1">===</span> <span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-v">Object</span><span class="pl-kos">[</span><span class="pl-s">'define'</span> <span class="pl-c1">+</span> <span class="pl-s">'Property'</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s1">desc</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">desc</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">desc</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">_initializerWarningHelper</span><span class="pl-kos">(</span><span class="pl-s1">descriptor</span><span class="pl-kos">,</span> <span class="pl-s1">context</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">'Decorating class property failed. Please ensure that '</span> <span class="pl-c1">+</span> <span class="pl-s">'proposal-class-properties is enabled and set to use loose mode. '</span> <span class="pl-c1">+</span> <span class="pl-s">'To use proposal-class-properties in spec mode with decorators, wait for '</span> <span class="pl-c1">+</span> <span class="pl-s">'the next major version of decorators in stage 2.'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">logProperty</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">_val</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">[</span><span class="pl-s1">property</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-en">getter</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-en">getter</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Get: "</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s">" => "</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s1">_val</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">_val</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-en">setter</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-en">setter</span><span class="pl-kos">(</span><span class="pl-s1">newVal</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Set: "</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s">" => "</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s1">newVal</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">_val</span> <span class="pl-c1">=</span> <span class="pl-s1">newVal</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-k">delete</span> <span class="pl-smi">this</span><span class="pl-kos">[</span><span class="pl-s1">property</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">get</span>: <span class="pl-en">getter</span><span class="pl-kos">,</span>
<span class="pl-c1">set</span>: <span class="pl-en">setter</span><span class="pl-kos">,</span>
<span class="pl-c1">enumerable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">configurable</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-v">Foo</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">_class</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-v">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">_classCallCheck</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-v">Foo</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">_initializerDefineProperty</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-s">"myProp"</span><span class="pl-kos">,</span> <span class="pl-s1">_descriptor</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">_descriptor</span> <span class="pl-c1">=</span> <span class="pl-en">_applyDecoratedDescriptor</span><span class="pl-kos">(</span><span class="pl-s1">_class</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span> <span class="pl-s">"myProp"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">logProperty</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">configurable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">enumerable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">writable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-en">initializer</span>: <span class="pl-k">function</span> <span class="pl-en">initializer</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s">'foo'</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">_class</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-k">new</span> <span class="pl-v">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">myProp</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"></p>
</details>
<details>
<summary>Compiled code: Testcase 2</summary>
<p dir="auto">
</p><div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" "use strict";
var _class, _descriptor;
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object['ke' + 'ys'](descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object['define' + 'Property'](target, property, desc); desc = null; } return desc; }
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.'); }
function logProperty(target, property) {
var _val = this[property];
var getter = function getter() {
console.log("Get: ".concat(property, " => ").concat(_val));
return _val;
};
var setter = function setter(newVal) {
console.log("Set: ".concat(property, " => ").concat(newVal));
_val = newVal;
};
if (delete this[property]) {
Object.defineProperty(target, property, {
get: getter,
set: setter,
enumerable: true,
configurable: true
});
}
}
var Foo = (_class = function Foo() {
_classCallCheck(this, Foo);
_initializerDefineProperty(this, "myProp", _descriptor, this);
this.myProp = 'foo';
}, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "myProp", [logProperty], {
configurable: true,
enumerable: true,
writable: true,
initializer: null
})), _class);
console.log(new Foo().myProp); "><pre class="notranslate"> <span class="pl-s">"use strict"</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_class</span><span class="pl-kos">,</span> <span class="pl-s1">_descriptor</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">_initializerDefineProperty</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s1">descriptor</span><span class="pl-kos">,</span> <span class="pl-s1">context</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">descriptor</span><span class="pl-kos">)</span> <span class="pl-k">return</span><span class="pl-kos">;</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">enumerable</span>: <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">enumerable</span><span class="pl-kos">,</span> <span class="pl-c1">configurable</span>: <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">configurable</span><span class="pl-kos">,</span> <span class="pl-c1">writable</span>: <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">writable</span><span class="pl-kos">,</span> <span class="pl-c1">value</span>: <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span> ? <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">context</span><span class="pl-kos">)</span> : <span class="pl-k">void</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-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">_classCallCheck</span><span class="pl-kos">(</span><span class="pl-s1">instance</span><span class="pl-kos">,</span> <span class="pl-v">Constructor</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-kos">(</span><span class="pl-s1">instance</span> <span class="pl-k">instanceof</span> <span class="pl-v">Constructor</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">TypeError</span><span class="pl-kos">(</span><span class="pl-s">"Cannot call a class as a function"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">_applyDecoratedDescriptor</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s1">decorators</span><span class="pl-kos">,</span> <span class="pl-s1">descriptor</span><span class="pl-kos">,</span> <span class="pl-s1">context</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">desc</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-v">Object</span><span class="pl-kos">[</span><span class="pl-s">'ke'</span> <span class="pl-c1">+</span> <span class="pl-s">'ys'</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">descriptor</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">desc</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">descriptor</span><span class="pl-kos">[</span><span class="pl-s1">key</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">desc</span><span class="pl-kos">.</span><span class="pl-c1">enumerable</span> <span class="pl-c1">=</span> <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">enumerable</span><span class="pl-kos">;</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">configurable</span> <span class="pl-c1">=</span> <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">configurable</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s">'value'</span> <span class="pl-k">in</span> <span class="pl-s1">desc</span> <span class="pl-c1">||</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">writable</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">desc</span> <span class="pl-c1">=</span> <span class="pl-s1">decorators</span><span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">reverse</span><span class="pl-kos">(</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-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">desc</span><span class="pl-kos">,</span> <span class="pl-s1">decorator</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">decorator</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s1">desc</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-s1">desc</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">desc</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">context</span> <span class="pl-c1">&&</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span> <span class="pl-c1">!==</span> <span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span> ? <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">context</span><span class="pl-kos">)</span> : <span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span> <span class="pl-c1">=</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">desc</span><span class="pl-kos">.</span><span class="pl-c1">initializer</span> <span class="pl-c1">===</span> <span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-v">Object</span><span class="pl-kos">[</span><span class="pl-s">'define'</span> <span class="pl-c1">+</span> <span class="pl-s">'Property'</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s1">desc</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">desc</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">desc</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">_initializerWarningHelper</span><span class="pl-kos">(</span><span class="pl-s1">descriptor</span><span class="pl-kos">,</span> <span class="pl-s1">context</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">'Decorating class property failed. Please ensure that '</span> <span class="pl-c1">+</span> <span class="pl-s">'proposal-class-properties is enabled and set to use loose mode. '</span> <span class="pl-c1">+</span> <span class="pl-s">'To use proposal-class-properties in spec mode with decorators, wait for '</span> <span class="pl-c1">+</span> <span class="pl-s">'the next major version of decorators in stage 2.'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">logProperty</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">_val</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">[</span><span class="pl-s1">property</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-en">getter</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-en">getter</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Get: "</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s">" => "</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s1">_val</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">_val</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-en">setter</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-en">setter</span><span class="pl-kos">(</span><span class="pl-s1">newVal</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Set: "</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-s">" => "</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s1">newVal</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">_val</span> <span class="pl-c1">=</span> <span class="pl-s1">newVal</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-k">delete</span> <span class="pl-smi">this</span><span class="pl-kos">[</span><span class="pl-s1">property</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">property</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">get</span>: <span class="pl-en">getter</span><span class="pl-kos">,</span>
<span class="pl-c1">set</span>: <span class="pl-en">setter</span><span class="pl-kos">,</span>
<span class="pl-c1">enumerable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">configurable</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-v">Foo</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">_class</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-v">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">_classCallCheck</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-v">Foo</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">_initializerDefineProperty</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-s">"myProp"</span><span class="pl-kos">,</span> <span class="pl-s1">_descriptor</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">myProp</span> <span class="pl-c1">=</span> <span class="pl-s">'foo'</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">_descriptor</span> <span class="pl-c1">=</span> <span class="pl-en">_applyDecoratedDescriptor</span><span class="pl-kos">(</span><span class="pl-s1">_class</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span> <span class="pl-s">"myProp"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">logProperty</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">configurable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">enumerable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">writable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">initializer</span>: <span class="pl-c1">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-s1">_class</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-k">new</span> <span class="pl-v">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">myProp</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </pre></div>
<p dir="auto"></p>
</details> | <h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
Babel 7 emits code with broken property injection.</p>
<p dir="auto"><strong>Input Code</strong></p>
<ul dir="auto">
<li><a href="https://github.com/elderapo/babel-7-property-decorator-issue">Reproducible repo</a></li>
</ul>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const LogUpdate = () => {
return (target: Object, key: string | symbol) => {
let val = target[key];
const getter = () => {
return val;
};
const setter = next => {
console.log(`Updating: ${val} => ${next}...`);
val = next;
};
Object.defineProperty(target, key, {
get: getter,
set: setter,
enumerable: true,
configurable: true
});
};
};
class Something {
@LogUpdate()
public count: number = 0;
}
const something = new Something();
something.count++;
something.count = 123;
something.count = -1;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-smi">LogUpdate</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-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">Object</span><span class="pl-kos">,</span> <span class="pl-s1">key</span>: <span class="pl-smi">string</span> <span class="pl-c1">|</span> <span class="pl-smi">symbol</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">val</span> <span class="pl-c1">=</span> <span class="pl-s1">target</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-en">getter</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-s1">val</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-en">setter</span> <span class="pl-c1">=</span> <span class="pl-s1">next</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`Updating: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">val</span><span class="pl-kos">}</span></span> => <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">next</span><span class="pl-kos">}</span></span>...`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">val</span> <span class="pl-c1">=</span> <span class="pl-s1">next</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-smi">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">get</span>: <span class="pl-s1">getter</span><span class="pl-kos">,</span>
<span class="pl-c1">set</span>: <span class="pl-s1">setter</span><span class="pl-kos">,</span>
<span class="pl-c1">enumerable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">configurable</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">class</span> <span class="pl-smi">Something</span> <span class="pl-kos">{</span>
@<span class="pl-smi">LogUpdate</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-k">public</span> <span class="pl-c1">count</span>: <span class="pl-smi">number</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">const</span> <span class="pl-s1">something</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Something</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">something</span><span class="pl-kos">.</span><span class="pl-c1">count</span><span class="pl-c1">++</span><span class="pl-kos">;</span>
<span class="pl-s1">something</span><span class="pl-kos">.</span><span class="pl-c1">count</span> <span class="pl-c1">=</span> <span class="pl-c1">123</span><span class="pl-kos">;</span>
<span class="pl-s1">something</span><span class="pl-kos">.</span><span class="pl-c1">count</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong><br>
Code compiled with babel doesn't trigger logger:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="elderapo@******:~/nodejs/babel-7-property-decorator-issue$ yarn babel-start
yarn run v1.13.0
$ yarn babel-build && node ./compiled-with-babel/index.js
$ babel src --out-dir compiled-with-babel --extensions ".ts,.tsx" --source-maps inline
Successfully compiled 1 file with Babel.
Done in 0.70s."><pre class="notranslate">elderapo@<span class="pl-k">******</span>:<span class="pl-k">~</span>/nodejs/babel-7-property-decorator-issue$ yarn babel-start
yarn run v1.13.0
$ yarn babel-build <span class="pl-k">&&</span> node ./compiled-with-babel/index.js
$ babel src --out-dir compiled-with-babel --extensions <span class="pl-s"><span class="pl-pds">"</span>.ts,.tsx<span class="pl-pds">"</span></span> --source-maps inline
Successfully compiled 1 file with Babel.
Done <span class="pl-k">in</span> 0.70s.</pre></div>
<p dir="auto">On the other hand code compipled with <code class="notranslate">tsc</code> works just fine:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="elderapo@******:~/nodejs/babel-7-property-decorator-issue$ yarn ts-node-start
yarn run v1.13.0
$ ts-node ./src/index.ts
Updating: undefined => 0...
Updating: 0 => 1...
Updating: 1 => 123...
Updating: 123 => -1...
Done in 1.17s."><pre class="notranslate">elderapo@<span class="pl-k">******</span>:<span class="pl-k">~</span>/nodejs/babel-7-property-decorator-issue$ yarn ts-node-start
yarn run v1.13.0
$ ts-node ./src/index.ts
Updating: undefined =<span class="pl-k">></span> 0...
Updating: 0 =<span class="pl-k">></span> 1...
Updating: 1 =<span class="pl-k">></span> 123...
Updating: 123 =<span class="pl-k">></span> -1...
Done <span class="pl-k">in</span> 1.17s.</pre></div>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }]
],
"presets": ["@babel/env", "@babel/preset-typescript"]
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span>
<span class="pl-kos">[</span><span class="pl-s">"@babel/plugin-proposal-decorators"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"legacy"</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">"@babel/plugin-proposal-class-properties"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"loose"</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">]</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/env"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-typescript"</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): 7.4.0</li>
<li>Node/npm version: doesn't matter</li>
<li>OS: doesn't matter</li>
<li>Monorepo: doesn't matter</li>
<li>How you are using Babel: doesn't matter</li>
</ul>
<p dir="auto"><strong>Possible Solution</strong></p>
<p dir="auto"><strong>Additional context/Screenshots</strong><br>
This example is pretty trivial but property decorators are often used in dependency injection. It's possible to use <a href="https://github.com/inversify/InversifyJS">https://github.com/inversify/InversifyJS</a> to get stuff injected into constructor but it's not always possible. One of the examples is react ecosystem where it's really hard to use constructor injection and property injection comes in handy.</p> | 1 |
<ul dir="auto">
<li>VSCode Version: 1.0.0-alpha</li>
<li>OS Version: Windows10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Launch app and open any folder which contains ts project.</li>
<li>Click on extension update icon from status bar to get info about extension to be updated.</li>
<li>Try to uninstall any previously installed extension by clicking on remove extension icon from update extension list.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/14658704/cce7f5fe-064a-11e6-8beb-51b18dce655c.png"><img src="https://cloud.githubusercontent.com/assets/17735796/14658704/cce7f5fe-064a-11e6-8beb-51b18dce655c.png" alt="image" style="max-width: 100%;"></a></li>
</ol>
<p dir="auto"><strong>Note: I am able to uninstall extension from installed extension list.</strong></p>
<p dir="auto">Actual: Getting error message while trying to remove extension from update window.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/14658587/c6f31314-0649-11e6-89e6-32eeb56525d8.png"><img src="https://cloud.githubusercontent.com/assets/17735796/14658587/c6f31314-0649-11e6-89e6-32eeb56525d8.png" alt="image" style="max-width: 100%;"></a><br>
Expected: User should be able to uninstall extension if he doesn't want to update.</p>
<p dir="auto">Dev tool error log message:</p>
<p dir="auto"><strong>workbench.main.js:91 Could not find extension: Error: Could not find extension, at c:\Program Files (x86)\Microsoft VS Code Alpha\resources\app\out\vs\workbench\electron-main\sharedProcessMain.js:7:30783, at Object.p [as _notify](c:Program Files %28x86%29Microsoft VS Code Alpharesourcesappoutvsworkbenchelectron-mainsharedProcessMain.js:5:1987), at Object.__dirname.undefined.N.enter (c:\Program Files (x86)\Microsoft VS Code Alpha\resources\app\out\vs\workbench\electron-main\sharedProcessMain.js:5:5149), at __dirname.undefined.t.Class.define._run (c:\Program Files (x86)\Microsoft VS Code Alpha\resources\app\out\vs\workbench\electron-main\sharedProcessMain.js:5:6975), at __dirname.undefined.t.Class.define._completed (c:\Program Files (x86)\Microsoft VS Code Alpha\resources\app\out\vs\workbench\electron-main\sharedProcessMain.js:5:6416), at FSReqWrap.cb as oncompletee.doShow @ workbench.main.js:91</strong></p> | <ul dir="auto">
<li>VSCode Version: 1.1.0</li>
<li>OS Version: Windows 10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Open <strong>User Settings</strong> file <code class="notranslate">settings.json</code></li>
<li>Suppose you are going to add a new setting</li>
<li>Press <code class="notranslate">ctrl</code> + <code class="notranslate">space</code> and scroll to <code class="notranslate">editor.lineHeight</code></li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3720424/15168974/1e9acb76-16fc-11e6-96bf-48f2ad3ff187.gif"><img src="https://cloud.githubusercontent.com/assets/3720424/15168974/1e9acb76-16fc-11e6-96bf-48f2ad3ff187.gif" alt="text-overlapping-vscode" data-animated-image="" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">We're working on upgrading Next.js from 2.1.1 to 2.3.1 after reading about all the speed optimizations. We're receiving the following warning about the three preloaded scripts that are now included in the head of the page:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2166663/26266953/5c46f10c-3cad-11e7-8c9c-b05a15284209.png"><img src="https://cloud.githubusercontent.com/assets/2166663/26266953/5c46f10c-3cad-11e7-8c9c-b05a15284209.png" alt="screen shot 2017-05-19 at 4 07 10 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Did we misconfigure something that's causing these scripts to wait on something else to load?</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?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">When building my app using <code class="notranslate">NODE_ENV=production next build</code>, it should only count the actual pages.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">When building my app using <code class="notranslate">NODE_ENV=production next build</code>, it is grabbing any file that is <code class="notranslate">.js</code> under <code class="notranslate">/pages</code> folder.</p>
<p dir="auto">This includes:</p>
<ul dir="auto">
<li>test files (in my case, *.test.js)</li>
<li>page specific components, containers, and views</li>
</ul>
<h2 dir="auto">Context</h2>
<p dir="auto">This results in, the pre-defined <code class="notranslate">webpack.js</code>, having "104 total pages" of which, I really have 12-ish pages. So when it goes to try to bundle "common" modules (ie. lodash, momentjs) they end up not getting bundled because the defined plugin looks for count to be greater than or equal to 1/2 the pages. Lodash usage count is 9-54x and Moment.js usage count is ~24x. These should easily get bundled based on usage and actual pages.</p>
<p dir="auto">Another option would be to allow a way to define our own bundling methods. Currently, I couldn't figure out a way to accomplish that.</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>v6</td>
</tr>
<tr>
<td>node</td>
<td>v9.11.1</td>
</tr>
<tr>
<td>OS</td>
<td>Win 10</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 66</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">Is there a way to toggle babel via comments within code?</p>
<p dir="auto">E.g:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// code for babel to transpile...
/*babel: disable */
// "MASSIVE" inlined 3rd party library here...
/*babel: enable */
// code for babel to transpile..."><pre class="notranslate"><code class="notranslate">// code for babel to transpile...
/*babel: disable */
// "MASSIVE" inlined 3rd party library here...
/*babel: enable */
// code for babel to transpile...
</code></pre></div> | <p dir="auto">I'd like to be able to specify compile options in comments, similar to JSHint, JSCS and the Traceur REPL. For example:</p>
<p dir="auto">JSHint comments are in the format:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/* exported Harmonic */
/* global __HARMONIC */
/* jshint mocha: true */"><pre class="notranslate"><span class="pl-c">/* exported Harmonic */</span>
<span class="pl-c">/* global __HARMONIC */</span>
<span class="pl-c">/* jshint mocha: true */</span></pre></div>
<p dir="auto">JSCS comment directive example:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// jscs: disable disallowSpacesInFunctionExpression, disallowSpacesInAnonymousFunctionExpression"><pre class="notranslate"><span class="pl-c">// jscs: disable disallowSpacesInFunctionExpression, disallowSpacesInAnonymousFunctionExpression</span></pre></div>
<p dir="auto"><a href="http://google.github.io/traceur-compiler/demo/repl.html#%2F%2F%20Options%3A%20--async-functions%20%0A" rel="nofollow">Traceur REPL example</a>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Options: --async-functions"><pre class="notranslate"><span class="pl-c">// Options: --async-functions</span></pre></div>
<p dir="auto">Could 6to5 support a similar comment syntax to specify file-specific configs? For instance, it could be a comment that begins with <code class="notranslate">6to5:</code> followed by a JSON/JS object literal containing options that get merged into the current configs. Whitespace before/after the "6to5:" prefix could be disregarded for readability/user-friendliness. Example:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// 6to5: { optional: null, experimental: true }"><pre class="notranslate"><span class="pl-c">// 6to5: { optional: null, experimental: true }</span></pre></div>
<p dir="auto">To avoid unnecessary complexity, those options could only be valid at the top of the file before any source code (other than comments and whitespace) are processed.</p>
<p dir="auto">And if this sounds like a reasonable request, have no rush, this can be implemented and documented after the rebranding if you prefer. <g-emoji class="g-emoji" alias="stuck_out_tongue" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f61b.png">😛</g-emoji></p> | 1 |
<h2 dir="auto">Bug Report</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I would like to work on a fix!</li>
</ul>
<p dir="auto"><strong>Current Behavior</strong><br>
<code class="notranslate">_objectWithoutProperties</code> is being called directly on deeply nested destructured property chains without taking default values into account. This causes <code class="notranslate">TypeError: Cannot read property 'X' of undefined</code> errors being thrown in a code that uses fallback values to guards against missing nested properties.<br>
The strange thing is that issue only happens for a specific environment set - <code class="notranslate">Chrome >= 61, Firefox >= 60, Opera >= 48, Safari >= 11, Edge >= 16, ChromeAndroid >= 77, iOS >= 11</code>.<br>
I have thought that it may be some optimization/minimization/mangling issue, however, it seems that the root cause is somewhere within the babel-preset-env. Default parameter assignments seem to be dropped when object-destructuring, but not the object rest operator, is supported on the selected platform/env.</p>
<p dir="auto"><strong>Input Code</strong></p>
<ul dir="auto">
<li>The full case for reproduction <a href="https://babeljs.io/repl#?browsers=Chrome%20%3E%3D%2061%2C%20Firefox%20%3E%3D%2060%2C%20Opera%20%3E%3D%2048%2C%20Safari%20%3E%3D%2011%2C%20Edge%20%3E%3D%2016%2C%20ChromeAndroid%20%3E%3D%2077%2C%20iOS%20%3E%3D%2011&build=&builtIns=false&spec=false&loose=false&code_lz=MYGwhgzhAEDC5WgbwFDWgcwKYBdO5ywCcAKASmTXWmAHsA7CPVa6gMwEsimAZLANywgA8mwByWJh3oYAXJVasIWOvQAmfQSPGSc0uQsVLaAWywAFIrQAOxHAE8ANFSPoAdB6K6XigL7QAXmRfH3R_IKQQ1nDoHAALDggAbhQfLxwAVyJ6aC8mFLCUXxSUVSZoaSYwemAsQPR6LAB3OAQIchSy2hAsNxBaDBJKnGrat2wcQiIyErK8NnqSFmhObhxNIVEJKRl5ZfRlVQ0BTZ0dg33qCFMLK1siB2cjDzc8nB8YyKpPkN8KAIAfLldLMGNcen0BiQ2Es_jMgA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=true&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Cenv&prettier=false&targets=&version=7.8.4&externalPlugins=" rel="nofollow">is available on the REPL</a>. Please disable the ENV PRESET > Enabled checkbox to see the code running properly when the legacy transforms apply and thus default values are applied.</li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Class {
get getter() {
const {
firstLevelOfNesting: {
secondLevelOfNesting: {
someProperty,
...rest
} = {}
} = {}
} = this;
return rest;
}
};"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Class</span> <span class="pl-kos">{</span>
<span class="pl-k">get</span> <span class="pl-en">getter</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>
<span class="pl-c1">firstLevelOfNesting</span>: <span class="pl-kos">{</span>
<span class="pl-c1">secondLevelOfNesting</span>: <span class="pl-kos">{</span>
someProperty<span class="pl-kos">,</span>
...<span class="pl-s1">rest</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-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-c1">this</span><span class="pl-kos">;</span>
<span class="pl-c1">return</span><span class="pl-kos"></span> <span class="pl-c1">rest</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">This code generates the following output code when preset-env is not used:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var _this$firstLevelOfNes = this.firstLevelOfNesting;
_this$firstLevelOfNes = _this$firstLevelOfNes === void 0 ? {} : _this$firstLevelOfNes;
var _this$firstLevelOfNes2 = _this$firstLevelOfNes.secondLevelOfNesting;
_this$firstLevelOfNes2 = _this$firstLevelOfNes2 === void 0 ? {} : _this$firstLevelOfNes2;
var someProperty = _this$firstLevelOfNes2.someProperty,
rest = _objectWithoutProperties(_this$firstLevelOfNes2, ["someProperty"]);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">_this$firstLevelOfNes</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">firstLevelOfNesting</span><span class="pl-kos">;</span>
<span class="pl-s1">_this$firstLevelOfNes</span> <span class="pl-c1">=</span> <span class="pl-s1">_this$firstLevelOfNes</span> <span class="pl-c1">===</span> <span class="pl-k">void</span> <span class="pl-c1">0</span> ? <span class="pl-kos">{</span><span class="pl-kos">}</span> : <span class="pl-s1">_this$firstLevelOfNes</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_this$firstLevelOfNes2</span> <span class="pl-c1">=</span> <span class="pl-s1">_this$firstLevelOfNes</span><span class="pl-kos">.</span><span class="pl-c1">secondLevelOfNesting</span><span class="pl-kos">;</span>
<span class="pl-s1">_this$firstLevelOfNes2</span> <span class="pl-c1">=</span> <span class="pl-s1">_this$firstLevelOfNes2</span> <span class="pl-c1">===</span> <span class="pl-k">void</span> <span class="pl-c1">0</span> ? <span class="pl-kos">{</span><span class="pl-kos">}</span> : <span class="pl-s1">_this$firstLevelOfNes2</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">someProperty</span> <span class="pl-c1">=</span> <span class="pl-s1">_this$firstLevelOfNes2</span><span class="pl-kos">.</span><span class="pl-c1">someProperty</span><span class="pl-kos">,</span>
<span class="pl-s1">rest</span> <span class="pl-c1">=</span> <span class="pl-en">_objectWithoutProperties</span><span class="pl-kos">(</span><span class="pl-s1">_this$firstLevelOfNes2</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"someProperty"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The <code class="notranslate">=== void 0 ? {} :</code> expressions apply the fallback values before following code extracts nested properties. However, this is not the case when <code class="notranslate">preset-env</code> is applied with the mentioned browser list:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const {
firstLevelOfNesting: {
secondLevelOfNesting: {
someProperty
} = {}
} = {}
} = this,
rest = _objectWithoutProperties(this.firstLevelOfNesting.secondLevelOfNesting, ["someProperty"]);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span>
<span class="pl-c1">firstLevelOfNesting</span>: <span class="pl-kos">{</span>
<span class="pl-c1">secondLevelOfNesting</span>: <span class="pl-kos">{</span>
someProperty
<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-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">,</span>
<span class="pl-s1">rest</span> <span class="pl-c1">=</span> <span class="pl-en">_objectWithoutProperties</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">firstLevelOfNesting</span><span class="pl-kos">.</span><span class="pl-c1">secondLevelOfNesting</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"someProperty"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">As you can see the destructured property chain is evaluated in-place without taking default values into account <code class="notranslate">this.firstLevelOfNesting.secondLevelOfNesting</code> - this causes the cannot read property X of undefined errors being thrown.<br>
The issue also affects argument destructuring of plain functions. A single level of nesting is not affected due to <code class="notranslate">_objectWithoutProperties</code> handling <code class="notranslate">undefined</code>/<code class="notranslate">null</code> case on its own.</p>
<p dir="auto"><strong>Expected behavior/code</strong><br>
The code with the specific browser list applied should behave like the code without preset-env applied and match native implementation (the code below, after pasting into Chrome DevTools, should not throw):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Class {
get getter() {
const {
firstLevelOfNesting: {
secondLevelOfNesting: {
someProperty,
...rest
} = {}
} = {}
} = this;
return rest;
}
};
const instance = new Class();
console.log(instance.getter);
const f = ({
firstLevelOfNesting: {
secondLevelOfNesting: {
someProperty,
...rest
} = {}
} = {}
}) => rest;
console.log(f({}));"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Class</span> <span class="pl-kos">{</span>
<span class="pl-k">get</span> <span class="pl-en">getter</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>
<span class="pl-c1">firstLevelOfNesting</span>: <span class="pl-kos">{</span>
<span class="pl-c1">secondLevelOfNesting</span>: <span class="pl-kos">{</span>
someProperty<span class="pl-kos">,</span>
...<span class="pl-s1">rest</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-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-c1">this</span><span class="pl-kos">;</span>
<span class="pl-c1">return</span><span class="pl-kos"></span> <span class="pl-c1">rest</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">instance</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Class</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">instance</span><span class="pl-kos">.</span><span class="pl-c1">getter</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">firstLevelOfNesting</span>: <span class="pl-kos">{</span>
<span class="pl-c1">secondLevelOfNesting</span>: <span class="pl-kos">{</span>
someProperty<span class="pl-kos">,</span>
...<span class="pl-s1">rest</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-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-c1">=></span> <span class="pl-s1">rest</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">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-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong></p>
<ul dir="auto">
<li><code class="notranslate">preset-env</code> with the following browser list <code class="notranslate">Chrome >= 61, Firefox >= 60, Opera >= 48, Safari >= 11, Edge >= 16, ChromeAndroid >= 77, iOS >= 11</code>:</li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[
'Chrome >= 61',
'Firefox >= 60',
'Opera >= 48',
'Safari >= 11',
'Edge >= 16',
'ChromeAndroid >= 77',
'iOS >= 11'
]"><pre class="notranslate"><span class="pl-kos">[</span>
<span class="pl-s">'Chrome >= 61'</span><span class="pl-kos">,</span>
<span class="pl-s">'Firefox >= 60'</span><span class="pl-kos">,</span>
<span class="pl-s">'Opera >= 48'</span><span class="pl-kos">,</span>
<span class="pl-s">'Safari >= 11'</span><span class="pl-kos">,</span>
<span class="pl-s">'Edge >= 16'</span><span class="pl-kos">,</span>
<span class="pl-s">'ChromeAndroid >= 77'</span><span class="pl-kos">,</span>
<span class="pl-s">'iOS >= 11'</span>
<span class="pl-kos">]</span></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): [7.8.4]</li>
<li>Node/npm version: [Node 12.14.0/npm 6.13.4]</li>
<li>OS: [Windows 10]</li>
<li>Monorepo: [no]</li>
<li>How you are using Babel: [<code class="notranslate">loader</code>, <code class="notranslate">REPL</code>]</li>
</ul> | <blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/milankinen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/milankinen">@milankinen</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.6.0</li>
<li><strong>Node version:</strong> 4.2.0</li>
<li><strong>npm version:</strong> 2.14.7</li>
</ul>
<h3 dir="auto">Options</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--presets es2015"><pre class="notranslate"><code class="notranslate">--presets es2015
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">Default parameters seem to be broken in the newest babel 6.6.0 release, at least in arrow functions.</p>
<p dir="auto">If I run the following code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm i [email protected] [email protected]
echo 'export const f = (p1, p2 = "tsers") => p1 + p2' | ./node_modules/.bin/babel --presets es2015"><pre class="notranslate"><code class="notranslate">npm i [email protected] [email protected]
echo 'export const f = (p1, p2 = "tsers") => p1 + p2' | ./node_modules/.bin/babel --presets es2015
</code></pre></div>
<p dir="auto">I'll get the following output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""use strict";
var _arguments = arguments;
Object.defineProperty(exports, "__esModule", {
value: true
});
var f = exports.f = function f(p1) {
var p2 = _arguments.length <= 1 || _arguments[1] === undefined ? "tsers" : _arguments[1];
return p1 + p2;
};"><pre class="notranslate"><code class="notranslate">"use strict";
var _arguments = arguments;
Object.defineProperty(exports, "__esModule", {
value: true
});
var f = exports.f = function f(p1) {
var p2 = _arguments.length <= 1 || _arguments[1] === undefined ? "tsers" : _arguments[1];
return p1 + p2;
};
</code></pre></div>
<p dir="auto">As you can see, the second default argument "p2" is taken from "_arguments" instead of "arguments" which is not correct.</p>
<p dir="auto">I'd appreciate a quick fix because this bug appears also in older 6.x "high level" babel releases due to semver transient dependency definitions, i.e. also the following code causes the same invalid output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm i [email protected] [email protected]
echo 'export const f = (p1, p2 = "tsers") => p1 + p2' | ./node_modules/.bin/babel --presets es2015
"><pre class="notranslate"><code class="notranslate">npm i [email protected] [email protected]
echo 'export const f = (p1, p2 = "tsers") => p1 + p2' | ./node_modules/.bin/babel --presets es2015
</code></pre></div>
<p dir="auto">EDIT:<br>
I tried to run the code without "exports" keyword and it works ok:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="echo 'const f = (p1, p2 = "tsers") => p1 + p2' | ./node_modules/.bin/babel --presets es2015 "><pre class="notranslate"><code class="notranslate">echo 'const f = (p1, p2 = "tsers") => p1 + p2' | ./node_modules/.bin/babel --presets es2015
</code></pre></div>
<p dir="auto">Will transform into:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""use strict";
var f = function f(p1) {
var p2 = arguments.length <= 1 || arguments[1] === undefined ? "tsers" : arguments[1];
return p1 + p2;
};"><pre class="notranslate"><code class="notranslate">"use strict";
var f = function f(p1) {
var p2 = arguments.length <= 1 || arguments[1] === undefined ? "tsers" : arguments[1];
return p1 + p2;
};
</code></pre></div> | 0 |
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/31221/kubernetes-pull-build-test-e2e-gce/56936/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/31221/kubernetes-pull-build-test-e2e-gce/56936/</a></p>
<p dir="auto">Failed: [k8s.io] InitContainer should invoke init containers on a RestartAlways pod {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:134
Sep 1 04:26:51.696: Couldn't delete ns: "e2e-tests-init-container-9wyzy": the server could not find the requested resource
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:338"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:134
Sep 1 04:26:51.696: Couldn't delete ns: "e2e-tests-init-container-9wyzy": the server could not find the requested resource
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:338
</code></pre></div>
<p dir="auto">Happened on a presubmit run in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="172644779" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/31221" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/31221/hovercard" href="https://github.com/kubernetes/kubernetes/pull/31221">#31221</a>.</p> | <p dir="auto">The client library has <code class="notranslate">NewGenericServerResponse</code> for handling unexpected errors. It's supposed to be invoked in <code class="notranslate">transformUnstructuredResponseError</code> which is called from <code class="notranslate">transformResponse</code>. That error is supposed to be semantically equal to valid api.StatusErrors returned by the server so that <code class="notranslate">apierrors.IsNotFound(err)</code> would return true for any 404.</p>
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="174505990" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/31873" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/31873/hovercard" href="https://github.com/kubernetes/kubernetes/issues/31873">#31873</a> the teardown code of e2e tests which delete the namespace get back an error (that from the apiserver reports a 404) but that error does not report true for <code class="notranslate">apierrors.IsNotFound(err)</code>. As a result it flags the error.</p>
<p dir="auto">Either the error from the server is wrong (malformed, bad content type, bad proxy) or the client is improperly handling the response. I can't find any proof that the client mishandles generic 404s from the server (via restclient <code class="notranslate">transformUnstructuredResponseError</code>).</p>
<p dir="auto">Setting to p1 while I triage to see what the impact of correcting the issue is. Potentially 1.4 if this indeed is hiding / causing other errors.</p> | 1 |
<p dir="auto">Installed TF with following command <code class="notranslate">pip3 install tensorflow</code>. The installation is successful but gave me this error.<br>
<code class="notranslate">tensorflow 1.10.1 has requirement numpy<=1.14.5,>=1.13.3, but you'll have numpy 1.15.1 which is incompatible.</code></p>
<p dir="auto">Do I need to downgrade my numpy version?</p> | <p dir="auto">I have successfully built tensorflow 1.10.1 from source but when I installed the whl with pip3 it downloaded and installed numpy-1.14.5 and removed numpy-1.15.1.</p>
<p dir="auto">After tensorflow was installed I manually uninstalled numpy-1.14.5 and reinstalled numpy-1.15.1, pip gave a warning that tensorflow-1.10.1 requires numpy <= 1.14.5 but went ahead anyway. Afterwards I ran some tests on tensorflow and it works just fine with numpy 1.15.1 so this requirement appears to be unnecessary. <strong>Edited:</strong> there is no complaint about incompatibility with numpy-1.15.1 for tensorflow-1.9</p>
<p dir="auto">Is there a file I can edit to get rid of this requirement? I am ok with compiling again.</p>
<p dir="auto">OS Ubuntu 16.04.5 LTS 64 bits , python3.5 (cuda-9.2)</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=axelfont" rel="nofollow">Axel Fontaine</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6901?redirect=false" rel="nofollow">SPR-6901</a></strong> and commented</p>
<p dir="auto">Using the regular task:scheduler element in conjunction with the task:scheduled-tasks element, results, at least with Tomcat, in a server that is unable to shut down.</p>
<p dir="auto">The server hangs after having logged the following statement:<br>
Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@d81cda: defining beans []; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1d49247</p>
<p dir="auto">Manually defining a task scheduler and setting the threads to run as daemon provides a workaround:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<task:scheduled-tasks scheduler="taskScheduler">
<task:scheduled ref="myTask" method="run" cron="0 0 0 * * ?"/>
</task:scheduled-tasks>
<bean id="taskScheduler" class="org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler">
<property name="daemon" value="true"/>
</bean>"><pre class="notranslate"><code class="notranslate"><task:scheduled-tasks scheduler="taskScheduler">
<task:scheduled ref="myTask" method="run" cron="0 0 0 * * ?"/>
</task:scheduled-tasks>
<bean id="taskScheduler" class="org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler">
<property name="daemon" value="true"/>
</bean>
</code></pre></div>
<p dir="auto">However this is only a workaround, and the default behavior should work out of the box. As you can see from the forum post reference, I am not the only one facing this issue.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.1</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=83687" rel="nofollow">http://forum.springsource.org/showthread.php?t=83687</a></p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398103645" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11620" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11620/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11620">#11620</a> TaskExecutor created with task:executor not shutdown when context closes (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398103645" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11620" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11620/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11620">#11620</a> TaskExecutor created with task:executor not shutdown when context closes</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398105377" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11890" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11890/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11890">#11890</a> Tomcat does not shutdown correctly when using <code class="notranslate">@Scheduled</code></li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/8d7df01d73bd2ef4d440c230c0e3d444e0abc185/hovercard" href="https://github.com/spring-projects/spring-framework/commit/8d7df01d73bd2ef4d440c230c0e3d444e0abc185"><tt>8d7df01</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/bca067abb2e9cb44031899134b44df09055c7e9b/hovercard" href="https://github.com/spring-projects/spring-framework/commit/bca067abb2e9cb44031899134b44df09055c7e9b"><tt>bca067a</tt></a></p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=bozho" rel="nofollow">Bozhidar Bozhanov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8607?redirect=false" rel="nofollow">SPR-8607</a></strong> and commented</p>
<p dir="auto">(This is not an issue for the code or the framework, so this might not be the right place for it, but I don't see where to report it)</p>
<p dir="auto">The issue reporting interfaces has some serious drawbacks:</p>
<ul dir="auto">
<li>you can't edit your own bug report. If you mistype something in the title, or want to add a stacktrace/code to the description, you can't.</li>
<li>you can't edit your own comments below the issue</li>
<li>Tomcat has a stable version 7 for a year already and it does not appear in the list of tomcat versions. Perhaps it's the same for other containers/servers.</li>
<li>Affects version/s does not provide an option for "SNAPSHOT". I'm using the snapshot builds, but have to report M2</li>
</ul>
<hr>
<p dir="auto">This issue is a sub-task of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111136" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12773" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12773/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12773">#12773</a></p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118170" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13889" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13889/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13889">#13889</a> Unable to edit JIRA issue description after creation (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">2 votes, 4 watchers</p> | 0 |
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var htmlElement:HTMLElement = getElement()
//
var offsetParent = htmlElement.offsetParent;
if(offsetParent instanceof HTMLElement){
htmlElement = offsetParent; // OK!
}
// alternatively this will cause an error:
if(htmlElement.offsetParent instanceof HTMLElement){
htmlElement = htmlElement.offsetParent; // ERROR: Assigned expression type Element is not assignable to type HTMLElement
}"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">htmlElement</span>:<span class="pl-v">HTMLElement</span> <span class="pl-c1">=</span> <span class="pl-en">getElement</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-c">// </span>
<span class="pl-k">var</span> <span class="pl-s1">offsetParent</span> <span class="pl-c1">=</span> <span class="pl-s1">htmlElement</span><span class="pl-kos">.</span><span class="pl-c1">offsetParent</span><span class="pl-kos">;</span>
<span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">offsetParent</span> <span class="pl-k">instanceof</span> <span class="pl-v">HTMLElement</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-s1">htmlElement</span> <span class="pl-c1">=</span> <span class="pl-s1">offsetParent</span><span class="pl-kos">;</span> <span class="pl-c">// OK!</span>
<span class="pl-kos">}</span>
<span class="pl-c">// alternatively this will cause an error:</span>
<span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">htmlElement</span><span class="pl-kos">.</span><span class="pl-c1">offsetParent</span> <span class="pl-k">instanceof</span> <span class="pl-v">HTMLElement</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-s1">htmlElement</span> <span class="pl-c1">=</span> <span class="pl-s1">htmlElement</span><span class="pl-kos">.</span><span class="pl-c1">offsetParent</span><span class="pl-kos">;</span> <span class="pl-c">// ERROR: Assigned expression type Element is not assignable to type HTMLElement </span>
<span class="pl-kos">}</span></pre></div> | <p dir="auto">This is a proposal for using property access as another form of type guards (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="45918355" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/900" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/900/hovercard" href="https://github.com/microsoft/TypeScript/pull/900">#900</a>) to narrow union types. While we're investigating expanding the power of type guards (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="47327525" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/1007" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/1007/hovercard" href="https://github.com/microsoft/TypeScript/issues/1007">#1007</a>) this feature would support the natural style that JavaScript programmers have in their code today.</p>
<h3 dir="auto">Using property access to narrow union types</h3>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var x: string|number;
if (x.length) { // no error even though number lacks a length property
var r = x.charAt(3); // x is of type string inside this block
}
var r2 = x.length || x * x; // no error, x narrowed to number on right hand side, r3 is number
var y: string[]|number[]|string;
if (y.length && y.push) {
// y is string[]|number[] now
var first = y[0]; // first is string|number
if (first.length) {
// first is string in here
} else {
// first is number in here
}
}"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">x</span>: <span class="pl-smi">string</span><span class="pl-c1">|</span><span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// no error even though number lacks a length property</span>
<span class="pl-k">var</span> <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-en">charAt</span><span class="pl-kos">(</span><span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// x is of type string inside this block</span>
<span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-s1">r2</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">||</span> <span class="pl-s1">x</span> <span class="pl-c1">*</span> <span class="pl-s1">x</span><span class="pl-kos">;</span> <span class="pl-c">// no error, x narrowed to number on right hand side, r3 is number</span>
<span class="pl-k">var</span> <span class="pl-s1">y</span>: <span class="pl-smi">string</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-c1">|</span><span class="pl-smi">number</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-c1">|</span><span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">y</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">&&</span> <span class="pl-s1">y</span><span class="pl-kos">.</span><span class="pl-c1">push</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// y is string[]|number[] now</span>
<span class="pl-k">var</span> <span class="pl-s1">first</span> <span class="pl-c1">=</span> <span class="pl-s1">y</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-c">// first is string|number</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">first</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// first is string in here</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-c">// first is number in here</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">We do not expand the situations in which types are narrowed, but we do expand the known type guard patterns to include basic property access. In these narrowing contexts it would be an error to access a property that does not exist in at least one of the constituent types of a union type (as it is today). However, it would now be valid to access a property that exists in at least one, but not all, constituent types. Any such property access will then narrow the type of the operand to only those constituent types in the union which do contain the accessed property. In any other context property access is unchanged.</p>
<h3 dir="auto">Invalid property access</h3>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var x: string|number;
var r = x.length; // error, not a type guard, normal property access rules apply
if (x.len) { } // error, len does not exist on type string|number
var r3 = !x.len && x.length; // error, len does not exist on type string|number
var r4 = x.length && x.len; // error, len does not exist on type string"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">x</span>: <span class="pl-smi">string</span><span class="pl-c1">|</span><span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-c">// error, not a type guard, normal property access rules apply</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">len</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-c">// error, len does not exist on type string|number </span>
<span class="pl-k">var</span> <span class="pl-s1">r3</span> <span class="pl-c1">=</span> <span class="pl-c1">!</span><span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">len</span> <span class="pl-c1">&&</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-c">// error, len does not exist on type string|number </span>
<span class="pl-k">var</span> <span class="pl-s1">r4</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">&&</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">len</span><span class="pl-kos">;</span> <span class="pl-c">// error, len does not exist on type string</span></pre></div>
<h3 dir="auto">Issues/Questions</h3>
<ul dir="auto">
<li>Should the language service behave differently in these type guard contexts? Should dotting off a union type in a type guard list all members on all types rather than only those that exist on all of them?</li>
<li>Need to understand performance implications</li>
</ul>
<p dir="auto">I have a sample implementation and tests in a branch here: <a href="https://github.com/Microsoft/TypeScript/tree/typeGuardsViaPropertyAccess">https://github.com/Microsoft/TypeScript/tree/typeGuardsViaPropertyAccess</a>. There're a couple bugs remaining but examples like the above all work and no existing behavior was changed.</p> | 1 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When an axis is shared with another its registered "xlim_changed" callbacks does not get called when the change is induced by a shared axis (via sharex=).</p>
<p dir="auto">In _base.py the set_xlim for sibling axis are called with emit=False:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="matplotlib/lib/matplotlib/axes/_base.py:
/.../
def set_xlim(...)
/.../
if emit:
self.callbacks.process('xlim_changed', self)
# Call all of the other x-axes that are shared with this one
for other in self._shared_x_axes.get_siblings(self):
if other is not self:
other.set_xlim(self.viewLim.intervalx,
emit=False, auto=auto)"><pre class="notranslate"><code class="notranslate">matplotlib/lib/matplotlib/axes/_base.py:
/.../
def set_xlim(...)
/.../
if emit:
self.callbacks.process('xlim_changed', self)
# Call all of the other x-axes that are shared with this one
for other in self._shared_x_axes.get_siblings(self):
if other is not self:
other.set_xlim(self.viewLim.intervalx,
emit=False, auto=auto)
</code></pre></div>
<p dir="auto">I'm very new to matplotlib, so perhaps there is a good reason for this? emit=False seems to disable both continued "inheritance" of axis (why?) and triggering of change callbacks (looking at the code above).</p>
<p dir="auto">It seems like one would at least want to trigger the xlim_changed callbacks as they would be intended to react to any change in axis limits.</p>
<p dir="auto">Edit: Setting emit=True seems to introduce a recursion issue (not sure why but as inheritance seems to be passed along anyway it doesn't really matter). Moving the callback call to outside of the "if emit:"-statement seems to solve the issue as far as I can see when trying it out. Any reason to keep it inside the if-statement?</p> | <p dir="auto">When I saving a SVG figure is slowed down significantly (10-100x) when I use LaTeX, enabled by the following rc-setting:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="text.usetex : true"><pre class="notranslate"><span class="pl-s1">text</span>.<span class="pl-s1">usetex</span> : <span class="pl-s1">true</span></pre></div>
<p dir="auto">Note that rendering is somewhat slower, but not much. It is really the saving. I am on macOS 10.12.6 with matplotlib (2.1.0).</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.2.1-3816ae7c3</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)<br>
at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)<br>
at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)<br>
at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)<br>
at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)<br>
at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)<br>
at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)</p>
<p dir="auto">Component stack: in vl<br>
in div<br>
in div<br>
in div<br>
in wo<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Li<br>
in $e<br>
in dn<br>
in Ca<br>
in Pc</p> | <p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p>
<p dir="auto">I got this error when I click 'Ranked'.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.0.4-3c6a219</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)<br>
at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)<br>
at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br>
at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)<br>
at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br>
at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363</p>
<p dir="auto">Component stack: in _i<br>
in div<br>
in div<br>
in div<br>
in Or<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Ha<br>
in le<br>
in ve<br>
in ko<br>
in Ul</p> | 1 |
<p dir="auto">Hi ,<br>
earlier(a week before) I just used to follow <a href="http://www.lindstromhenrik.com/debugging-elasticsearch-in-eclipse/" rel="nofollow">http://www.lindstromhenrik.com/debugging-elasticsearch-in-eclipse/</a> and I was able to start ElasticsearchF.java and was able to even put a break point. But recently I am not able to do so . It gives a lot of errors like</p>
<code class="notranslate">
java.io.IOException: Resource not found: "org/joda/time/tz/data/ZoneInfoMap" ClassLoader: sun.misc.Launcher$AppClassLoader@c387f44
at org.joda.time.tz.ZoneInfoProvider.openResource(ZoneInfoProvider.java:210)
at org.joda.time.tz.ZoneInfoProvider.(ZoneInfoProvider.java:127)
at org.joda.time.tz.ZoneInfoProvider.(ZoneInfoProvider.java:86)
at org.joda.time.DateTimeZone.getDefaultProvider(DateTimeZone.java:514)
at org.joda.time.DateTimeZone.getProvider(DateTimeZone.java:413)
at org.joda.time.DateTimeZone.forID(DateTimeZone.java:216)
at org.joda.time.DateTimeZone.getDefault(DateTimeZone.java:151)
at org.joda.time.chrono.ISOChronology.getInstance(ISOChronology.java:79)
at org.joda.time.DateTimeUtils.getChronology(DateTimeUtils.java:266)
at org.joda.time.format.DateTimeFormatter.selectChronology(DateTimeFormatter.java:968)
at org.joda.time.format.DateTimeFormatter.printTo(DateTimeFormatter.java:672)
at org.joda.time.format.DateTimeFormatter.printTo(DateTimeFormatter.java:560)
at org.joda.time.format.DateTimeFormatter.print(DateTimeFormatter.java:644)
at org.elasticsearch.Build.(Build.java:51)
at org.elasticsearch.node.Node.(Node.java:136)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:157)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:177)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:272)
at org.elasticsearch.bootstrap.ElasticsearchF.main(ElasticsearchF.java:30)
<b>Exception in thread "main" java.lang.IllegalStateException: java.nio.file.NoSuchFileException: /home/harish/Documents/code/elasticsearch/es/fork-new/elasticsearch/plugins/analysis-icu/plugin-descriptor.properties</b>
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:111)
at org.elasticsearch.node.Node.(Node.java:146)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:157)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:177)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:272)
at org.elasticsearch.bootstrap.ElasticsearchF.main(ElasticsearchF.java:30)
Caused by: java.nio.file.NoSuchFileException: /home/harish/Documents/code/elasticsearch/es/fork-new/elasticsearch/plugins/analysis-icu/plugin-descriptor.properties
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
at java.nio.file.Files.newInputStream(Files.java:152)
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:86)
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:318)
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:108)
... 5 more
</code>
<p dir="auto">also error indicates it is looking for elasticsearch/plugins/analysis-icu/plugin-descriptor.properties<br>
also saw the code here in <a href="https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/plugins/PluginInfo.java#L82-L87">https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/plugins/PluginInfo.java#L82-L87</a></p>
<p dir="auto">and there is a check for plugin descriptor. But earlier it used to work without myself having to do anything. Did anything change in between to include plugins install and hence it is looking for plugin descriptor file ?</p> | <p dir="auto">This shape is generated from PostGIS using <code class="notranslate">st_asgeojson(st_makevalid(geom))</code> to ensure it's a valid geometry. The SRID is 4326. Many <a href="https://gist.githubusercontent.com/nicerobot/10c8daf5273017b8b1c7/raw/5c1f689fa1510897ae17f229ad852f1017fdffbd/works.geojson" rel="nofollow">other geometries</a> using the same technique are loaded just fine.</p>
<p dir="auto">Here's a <a href="https://gist.github.com/nicerobot/10c8daf5273017b8b1c7">gist with the geojson and exception</a> (and <a href="https://gist.githubusercontent.com/nicerobot/10c8daf5273017b8b1c7/raw/00e7a6fbb37797856aa6aa95a7720ca9bde27e17/boston.geojson" rel="nofollow">the raw geojson</a>).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.elasticsearch.index.mapper.MapperParsingException: failed to parse [shape_]
at org.elasticsearch.index.mapper.geo.GeoShapeFieldMapper.parse(GeoShapeFieldMapper.java:249)
at org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:538)
at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:480)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:515)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:462)
at org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:394)
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:413)
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:155)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:534)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:433)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: com.spatial4j.core.exception.InvalidShapeException: Too few distinct points in geometry component at or near point (-71.1651, 42.1832, NaN)
at com.spatial4j.core.shape.jts.JtsGeometry.validate(JtsGeometry.java:125)
at org.elasticsearch.common.geo.builders.ShapeBuilder.jtsGeometry(ShapeBuilder.java:87)
at org.elasticsearch.common.geo.builders.MultiPolygonBuilder.build(MultiPolygonBuilder.java:76)
at org.elasticsearch.index.mapper.geo.GeoShapeFieldMapper.parse(GeoShapeFieldMapper.java:234)
... 12 more"><pre class="notranslate"><code class="notranslate">org.elasticsearch.index.mapper.MapperParsingException: failed to parse [shape_]
at org.elasticsearch.index.mapper.geo.GeoShapeFieldMapper.parse(GeoShapeFieldMapper.java:249)
at org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:538)
at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:480)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:515)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:462)
at org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:394)
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:413)
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:155)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:534)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:433)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: com.spatial4j.core.exception.InvalidShapeException: Too few distinct points in geometry component at or near point (-71.1651, 42.1832, NaN)
at com.spatial4j.core.shape.jts.JtsGeometry.validate(JtsGeometry.java:125)
at org.elasticsearch.common.geo.builders.ShapeBuilder.jtsGeometry(ShapeBuilder.java:87)
at org.elasticsearch.common.geo.builders.MultiPolygonBuilder.build(MultiPolygonBuilder.java:76)
at org.elasticsearch.index.mapper.geo.GeoShapeFieldMapper.parse(GeoShapeFieldMapper.java:234)
... 12 more
</code></pre></div> | 0 |
<h3 dir="auto">Describe your issue.</h3>
<p dir="auto">Currently, applying the <code class="notranslate">**</code> operator to a sparse array implements the <code class="notranslate">numpy.linalg.matrix_power</code> function. This is not compatible with the <code class="notranslate">np.array</code> implementation of <code class="notranslate">**</code>, which does element-wise power. This should be fixed as part of the migration from sparse "matrices" to sparse "arrays". Additionally, the <code class="notranslate">matrix_power</code> function should then also be included in the <code class="notranslate">sparse.linalg</code> package.</p>
<h3 dir="auto">Reproducing Code Example</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from scipy.sparse import csr_array, random
A = csr_array(random(5,5,0.1))
print(A.A)
print((A**2).A) #This does matrix_power, eventhough it is initialised as a sparse array (not a matrix)
print((A.A)**2) #This does element-wise power, since it is a numpy array"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">sparse</span> <span class="pl-k">import</span> <span class="pl-s1">csr_array</span>, <span class="pl-s1">random</span>
<span class="pl-v">A</span> <span class="pl-c1">=</span> <span class="pl-en">csr_array</span>(<span class="pl-en">random</span>(<span class="pl-c1">5</span>,<span class="pl-c1">5</span>,<span class="pl-c1">0.1</span>))
<span class="pl-en">print</span>(<span class="pl-v">A</span>.<span class="pl-v">A</span>)
<span class="pl-en">print</span>((<span class="pl-v">A</span><span class="pl-c1">**</span><span class="pl-c1">2</span>).<span class="pl-v">A</span>) <span class="pl-c">#This does matrix_power, eventhough it is initialised as a sparse array (not a matrix)</span>
<span class="pl-en">print</span>((<span class="pl-v">A</span>.<span class="pl-v">A</span>)<span class="pl-c1">**</span><span class="pl-c1">2</span>) <span class="pl-c">#This does element-wise power, since it is a numpy array</span></pre></div>
<h3 dir="auto">Error message</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="N/A"><pre class="notranslate">N/A</pre></div>
<h3 dir="auto">SciPy/NumPy/Python version information</h3>
<p dir="auto">1.8.0 1.20.3 sys.version_info(major=3, minor=9, micro=7, releaselevel='final', serial=0)</p> | <p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="834786139" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/13699" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/13699/hovercard" href="https://github.com/scipy/scipy/pull/13699">#13699</a>, I am implementing the fitting of distributions to censored data. To represent censored data, I created a fairly simple class called <code class="notranslate">CensoredData</code>, and updated the <code class="notranslate">fit</code> method of the univariate continuous distributions to be able to handle an instance of the class. There have been questions about the API for representing censored data in the PR. Instead of having that discussion in the PR (where we also discuss implementation details), it seems cleaner to break out the API discussion to its own issue.</p>
<p dir="auto">The wikipedia article <a href="https://en.wikipedia.org/wiki/Censoring_(statistics)" rel="nofollow">Censoring (statistics)</a> provides an overview of what censored data is. In the <code class="notranslate">CensoredData</code> class, we want to represent a data set that contains a mix of regular (i.e. not censored) data, right-censored data, left-censored data and interval-censored data. The first three cases require a single number for each data point, while the last, interval-censored, requires two values to define the interval.</p>
<p dir="auto">A common case of censoring is a data set that is a mix of regular values and censored values that all have the same type. For example, the data shown in <a href="https://support.sas.com/documentation/cdl/en/qcug/63922/HTML/default/viewer.htm#qcug_reliability_sect004.htm" rel="nofollow">this page</a> are either not censored or right censored. The same is true for the first example in <a href="http://www.ams.sunysb.edu/~zhu/ams588/Lecture_3_likelihood.pdf" rel="nofollow">this set of slides</a>. It would be nice if the API makes it easy to create an instance of <code class="notranslate">CensoredData</code> for such data sets.</p>
<p dir="auto">The following are two possible constructors for the <code class="notranslate">CensoredData</code> class.</p>
<p dir="auto"><em>Alternative 1: CensoredData(lower, upper)</em></p>
<p dir="auto">At the time of writing this comment, the <code class="notranslate">CensoredData</code> class has a constructor with the signature <code class="notranslate">__init__(self, lower, upper)</code>, where <code class="notranslate">lower</code> and <code class="notranslate">upper</code> are expected to be 1D arrays of numbers. A number can be ±inf. This API follows from the fact that we can represent all four cases (not censored, left-censored, right-censored or interval-censored) as an interval, if we allow ±inf as an end point, and if we interpret an interval of length 0 as an uncensored point. The meaning of those points in the interval-censored case is as expected. For a left-censored data point, the left value of the pair is set to -inf (i.e. the pair [-inf, 1] represents a left-censored value that is less than 1). Likewise, for a right-censored data point, the right value is set to +inf. For data points that are not censored, the two values are set to the same value (i.e. it is an "interval" with length 0).</p>
<p dir="auto">Above I mentioned the common case of data that is a mix of uncensored and right-censored points. A simple example in the docstring for <code class="notranslate">CensoredData</code> has four regular values, [13, 22, 17, 15], and two right-censored values, [20, 18]. To create a <code class="notranslate">CensoredData</code> instance for this data using the constructor, one would write:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CensoredData(lower=[13, 22, 17, 15, 20, 18], upper=[13, 22, 17, 15, np.inf, np.inf])"><pre class="notranslate"><code class="notranslate">CensoredData(lower=[13, 22, 17, 15, 20, 18], upper=[13, 22, 17, 15, np.inf, np.inf])
</code></pre></div>
<p dir="auto">The first four pairs <code class="notranslate">(lower[i], upper[i])</code> represent the uncensored data points, and the last two represent the right-censored data.</p>
<p dir="auto">This API is very similar to the API provided by the R function <a href="https://www.rdocumentation.org/packages/fitdistrplus/versions/1.1-3/topics/fitdistcens" rel="nofollow"><code class="notranslate">fitdistcens</code></a> that is part of the <a href="https://www.rdocumentation.org/packages/fitdistrplus/versions/1.1-3" rel="nofollow"><code class="notranslate">fitdistrplus</code></a> package. <code class="notranslate">fitdistcens</code> expects the censored data set to be represented as a data frame with two columns, named <code class="notranslate">left</code> and <code class="notranslate">right</code>. The interpretion of the values in those columns is the same as that used in the current implemention of <code class="notranslate">CensoredData</code>, except that the R function uses <code class="notranslate">NA</code> instead of ±inf to indicate that a data point is left- or right-censored. The above example in R would be</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="data = data.frame(left=c(13, 22, 17, 15, 20, 18), right=c(13, 22, 17, 15, NA, NA))"><pre class="notranslate"><code class="notranslate">data = data.frame(left=c(13, 22, 17, 15, 20, 18), right=c(13, 22, 17, 15, NA, NA))
</code></pre></div>
<p dir="auto">To make it a bit easier to create data sets of this form, <code class="notranslate">CensoredData</code> has two alternative constructors implemented as class methods, <code class="notranslate">left_censored</code> and <code class="notranslate">right_censored</code>. These take two arguments, a 1D array <code class="notranslate">x</code> of numbers and a boolean array of the same length that indicates if the corresponding value in <code class="notranslate">x</code> is censored. With the <code class="notranslate">right_censored</code> method, the example above is created with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CensoredData.right_censored(13, 22, 17, 15, 20, 18], [False, False, False, False, True, True])"><pre class="notranslate"><code class="notranslate">CensoredData.right_censored(13, 22, 17, 15, 20, 18], [False, False, False, False, True, True])
</code></pre></div>
<p dir="auto">So instead of having to create a copy of the values and assign <code class="notranslate">inf</code> where appropriate, the user supplies a boolean array. A 0/1 flag is pretty common in the examples that I've found on the web where the data is shown in a textual format, so it is likely that such boolean array would be easily created when, say, reading the data from a file.</p>
<p dir="auto"><em>Alternative 2: CensoredData(x=None, left=None, right=None, intervals=None)</em></p>
<p dir="auto">This is an alternative API, in which the constructor has a parameter for each type of censoring. The parameters are</p>
<p dir="auto"><code class="notranslate">x</code>: a 1D array of uncensored measurements<br>
<code class="notranslate">left</code>: a 1D array of left-censored measurements<br>
<code class="notranslate">right</code>: a 1D array of right-censored measurements<br>
<code class="notranslate">intervals</code>: a 2D array with shape (m, 2) containing the intervals for <code class="notranslate">m</code> interval-censored values</p>
<p dir="auto">The nice thing about this API is its explicitness, and that it doesn't require the user to use ±inf to create left- or right-censored values. The simple example given above can be represented as</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CensoredData(x=[13, 22, 17, 15], right=[20, 18])"><pre class="notranslate"><code class="notranslate">CensoredData(x=[13, 22, 17, 15], right=[20, 18])
</code></pre></div>
<p dir="auto">That is a clean API for creating a right-censored data set, so the convenience provided by the alternative constructor <code class="notranslate">CensoredData.right_censored</code> is less important. If we went with this API, I would probably remove the <code class="notranslate">left_censored</code> and <code class="notranslate">right_censored</code> methods.</p>
<p dir="auto">There is redundancy here, because (assuming we interpret intervals containing ±inf and intervals with length 0 the same as they are interpreted in the other API), any value that can be represent with <code class="notranslate">x</code>, <code class="notranslate">left</code> or <code class="notranslate">right</code> can also be represented as an interval. That is, the right-censored example could also be represented as</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CensoredData(intervals=[[13, 13], [22, 22], [17, 17], [15, 15], [20, np.inf], [20, np.inf]])"><pre class="notranslate"><code class="notranslate">CensoredData(intervals=[[13, 13], [22, 22], [17, 17], [15, 15], [20, np.inf], [20, np.inf]])
</code></pre></div>
<p dir="auto">But that isn't necessarily a problem.</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">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Using previous releases of Next.js build time for pages in development mode as been more or less instant (taking at most a second or two to build a page for the first time, with changes being hot reloaded instantly).</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">When using Next.js 5.0 build times for pages in development mode are <em>much</em> slower, often taking several (e.g. 5-10) seconds both for initial page build and for a change to be hot reloaded.</p>
<p dir="auto">I am seeing this same issue across multiple codebases, and someone has raised it as a performance issue against nextjs-starter project, which recently upgraded to 5.0: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="295387737" data-permission-text="Title is private" data-url="https://github.com/iaincollins/nextjs-starter/issues/67" data-hovercard-type="issue" data-hovercard-url="/iaincollins/nextjs-starter/issues/67/hovercard" href="https://github.com/iaincollins/nextjs-starter/issues/67">iaincollins/nextjs-starter#67</a></p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Clone example project '<a href="https://github.com/iaincollins/nextjs-starter">https://github.com/iaincollins/nextjs-starter</a>' and start with <code class="notranslate">npm run dev</code>.</li>
<li>Observe performance building pages with Next.js 5.</li>
<li>Stop it and run <code class="notranslate">npm i [email protected] --save</code> and start again with <code class="notranslate">npm run dev</code>.</li>
<li>Observe much better performance building pages.</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I don't see this issue on very small sites (4-5 pages, no components) but I see it across all production Next.js sites I run, so it's not just project specific for me.</p>
<p dir="auto">I appreciate it might still be something specific I am doing in those projects, or perhaps just because they all have more components involved.</p>
<p dir="auto">I'm not sure how best to investigate what's causing this (and was a bit uncomfortable raising an issue without a better understanding of how to diagnose it) but as the performance is fine with Next.js 4, it seemed worth raising as an issue as I assume I'm not the only one impacted and if there are things I'm doing that can be avoided to improve performance then it's good to know what they are for others too.</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.0</td>
</tr>
<tr>
<td>node</td>
<td>7.10.1</td>
</tr>
<tr>
<td>OS</td>
<td>macOS 10.13.2</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome, Safari</td>
</tr>
</tbody>
</table> | <h1 dir="auto">Feature request</h1>
<h2 dir="auto">Is your feature request related to a problem? Please describe.</h2>
<p dir="auto">I'm currently struggling to find a good way to always keep the scroll height when navigating between 2 pages. It would be great to find a document explaining or an example. The component is being unmounted automatically. Which shouldn't be the case in my opinion?</p>
<h2 dir="auto">Describe the solution you'd like</h2>
<p dir="auto">A. Make sure the component stays alive when navigating from and to component. So the scroll height will be on the same spot.</p>
<h2 dir="auto">Describe alternatives you've considered</h2>
<p dir="auto">On navigation, I'm currently scrolling towards the correct scrollheight, but with inconsistent behaviour.</p> | 0 |
<p dir="auto"><a href="https://play.rust-lang.org/?gist=eacea458468c575b6207&version=nightly" rel="nofollow">playpen</a></p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub trait Tr {
type A = ();
}
pub struct S<T, U> {
data: T,
more_data: U,
}
impl<T: Tr + Copy> S<T, <T as Tr>::A> {
pub fn it_exists(&self) {
}
}
#[test]
fn test() {
let x = S {
data: (),
more_data: (),
};
x.it_exists();
}"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">trait</span> <span class="pl-smi">Tr</span> <span class="pl-kos">{</span>
<span class="pl-k">type</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-kos">}</span>
<span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">S</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">U</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-c1">data</span><span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos">,</span>
<span class="pl-c1">more_data</span><span class="pl-kos">:</span> <span class="pl-smi">U</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-k">impl</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">Tr</span> + <span class="pl-smi">Copy</span><span class="pl-kos">></span> <span class="pl-smi">S</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <<span class="pl-smi">T</span> <span class="pl-k">as</span> <span class="pl-smi">Tr</span>><span class="pl-kos">::</span><span class="pl-smi">A</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">it_exists</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-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-c1">#<span class="pl-kos">[</span>test<span class="pl-kos">]</span></span>
<span class="pl-k">fn</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">let</span> x = <span class="pl-smi">S</span> <span class="pl-kos">{</span>
<span class="pl-c1">data</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">more_data</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>
x<span class="pl-kos">.</span><span class="pl-en">it_exists</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<blockquote>
<p dir="auto">:23:7: 23:18 error: no method named <code class="notranslate">it_exists</code> found for type <code class="notranslate">S<(), ()></code> in the current scope<br>
:23 x.it_exists();<br>
^~~~~~~~~~~<br>
error: internal compiler error: unexpected panic<br>
note: the compiler unexpectedly panicked. this is a bug.</p>
</blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' panicked at 'index out of bounds: the len is 6 but the index is 6', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcollections/vec.rs:1360
stack backtrace:
1: 0x11207a7a5 - sys::backtrace::write::h29ef8ae2ab6f0002jbs
2: 0x112082fc0 - panicking::on_panic::hfbadaf349a878dcdyvw
3: 0x11203d948 - rt::unwind::begin_unwind_inner::hfdee7d48e374f632Qdw
4: 0x11203e74c - rt::unwind::begin_unwind_fmt::h3343ff9b52ac6df8Wcw
5: 0x112082b1c - rust_begin_unwind
6: 0x1120d8395 - panicking::panic_fmt::h77445f1832864594i5B
7: 0x1120d3128 - panicking::panic_bounds_check::h33c5d541561a6da1o4B
8: 0x10f280dfa - middle::infer::InferCtxt<'a, 'tcx>::shallow_resolve::hec4d196f2c799057xDB
9: 0x10f249ba7 - middle::infer::resolve::OpportunisticTypeResolver<'a, 'tcx>.ty_fold..TypeFolder<'tcx>::fold_ty::h2541942639a2619atBz
10: 0x10f24a6ee - middle::ty_fold::TypeFolder::fold_substs::h3224040725562002305
11: 0x10f309b87 - middle::traits::project::opt_normalize_projection_type::h5d4aae783bf615df0YR
12: 0x10f30626b - middle::traits::project::project_and_unify_type::hbd03945bb6618251VHR
13: 0x10f304077 - middle::infer::InferCtxt<'a, 'tcx>::commit_if_ok::h8565990550079113657
14: 0x10f2ffbfa - middle::traits::fulfill::FulfillmentContext<'tcx>::select::h759bfc9f06b00812AhR
15: 0x10f2ff95b - middle::traits::fulfill::FulfillmentContext<'tcx>::select_new_obligations::h35a7d27f6260a3dafgR
16: 0x10edfe833 - check::FnCtxt<'a, 'tcx>::select_new_obligations::h4a992210d28aa452nJp
17: 0x10ee24b3a - check::check_argument_types::h66437fbdecf2dddf9cq
18: 0x10ee265d4 - check::check_method_argument_types::h81b2e6032a5a41b3yaq
19: 0x10ee538fc - check::check_expr_with_unifier::check_method_call::hcb47f87ab6e4e6dcFMq
20: 0x10ee7eb48 - check::check_expr_with_unifier::h13869274471355282472
21: 0x10ee8fe18 - check::check_stmt::hbf2fba58f2402ce9Nms
22: 0x10ee3dae1 - check::check_block_with_expected::h5328c1bd4122b704Yqs
23: 0x10ee1ee88 - check::check_fn::hb8743989b71a8061yZn
24: 0x10ee37c36 - check::check_bare_fn::h7a4176e04b21d21a8On
25: 0x10ee35ac7 - check::check_item_body::h2e895edb8ec2cd0dZfo
26: 0x10ee37803 - check::check_item_types::hc3786f7c3f819a18FMn
27: 0x10eef828c - check_crate::h3859ff1cffe5ee82D8C
28: 0x10e7310ae - driver::phase_3_run_analysis_passes::h17aa11005a47f3a3HGa
29: 0x10e713cc3 - driver::compile_input::h7b180598a8644ea5Sba
30: 0x10e7d0094 - run_compiler::h47ece7857b98d974p6b"><pre class="notranslate"><code class="notranslate">thread 'rustc' panicked at 'index out of bounds: the len is 6 but the index is 6', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcollections/vec.rs:1360
stack backtrace:
1: 0x11207a7a5 - sys::backtrace::write::h29ef8ae2ab6f0002jbs
2: 0x112082fc0 - panicking::on_panic::hfbadaf349a878dcdyvw
3: 0x11203d948 - rt::unwind::begin_unwind_inner::hfdee7d48e374f632Qdw
4: 0x11203e74c - rt::unwind::begin_unwind_fmt::h3343ff9b52ac6df8Wcw
5: 0x112082b1c - rust_begin_unwind
6: 0x1120d8395 - panicking::panic_fmt::h77445f1832864594i5B
7: 0x1120d3128 - panicking::panic_bounds_check::h33c5d541561a6da1o4B
8: 0x10f280dfa - middle::infer::InferCtxt<'a, 'tcx>::shallow_resolve::hec4d196f2c799057xDB
9: 0x10f249ba7 - middle::infer::resolve::OpportunisticTypeResolver<'a, 'tcx>.ty_fold..TypeFolder<'tcx>::fold_ty::h2541942639a2619atBz
10: 0x10f24a6ee - middle::ty_fold::TypeFolder::fold_substs::h3224040725562002305
11: 0x10f309b87 - middle::traits::project::opt_normalize_projection_type::h5d4aae783bf615df0YR
12: 0x10f30626b - middle::traits::project::project_and_unify_type::hbd03945bb6618251VHR
13: 0x10f304077 - middle::infer::InferCtxt<'a, 'tcx>::commit_if_ok::h8565990550079113657
14: 0x10f2ffbfa - middle::traits::fulfill::FulfillmentContext<'tcx>::select::h759bfc9f06b00812AhR
15: 0x10f2ff95b - middle::traits::fulfill::FulfillmentContext<'tcx>::select_new_obligations::h35a7d27f6260a3dafgR
16: 0x10edfe833 - check::FnCtxt<'a, 'tcx>::select_new_obligations::h4a992210d28aa452nJp
17: 0x10ee24b3a - check::check_argument_types::h66437fbdecf2dddf9cq
18: 0x10ee265d4 - check::check_method_argument_types::h81b2e6032a5a41b3yaq
19: 0x10ee538fc - check::check_expr_with_unifier::check_method_call::hcb47f87ab6e4e6dcFMq
20: 0x10ee7eb48 - check::check_expr_with_unifier::h13869274471355282472
21: 0x10ee8fe18 - check::check_stmt::hbf2fba58f2402ce9Nms
22: 0x10ee3dae1 - check::check_block_with_expected::h5328c1bd4122b704Yqs
23: 0x10ee1ee88 - check::check_fn::hb8743989b71a8061yZn
24: 0x10ee37c36 - check::check_bare_fn::h7a4176e04b21d21a8On
25: 0x10ee35ac7 - check::check_item_body::h2e895edb8ec2cd0dZfo
26: 0x10ee37803 - check::check_item_types::hc3786f7c3f819a18FMn
27: 0x10eef828c - check_crate::h3859ff1cffe5ee82D8C
28: 0x10e7310ae - driver::phase_3_run_analysis_passes::h17aa11005a47f3a3HGa
29: 0x10e713cc3 - driver::compile_input::h7b180598a8644ea5Sba
30: 0x10e7d0094 - run_compiler::h47ece7857b98d974p6b
</code></pre></div> | <p dir="auto">This is mostly spend during the LLVM passes, specifically this breakdown:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="===-------------------------------------------------------------------------===
Instruction Selection and Scheduling
===-------------------------------------------------------------------------===
Total Execution Time: 6.9833 seconds (6.7659 wall clock)
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name ---
1.7633 ( 26.6%) 0.1033 ( 29.8%) 1.8667 ( 26.7%) 1.8131 ( 26.8%) Instruction Selection
1.6800 ( 25.3%) 0.0867 ( 25.0%) 1.7667 ( 25.3%) 1.6579 ( 24.5%) Instruction Scheduling
0.9167 ( 13.8%) 0.0567 ( 16.3%) 0.9733 ( 13.9%) 0.9297 ( 13.7%) Instruction Creation
0.7833 ( 11.8%) 0.0233 ( 6.7%) 0.8067 ( 11.6%) 0.8096 ( 12.0%) DAG Combining 1
0.4667 ( 7.0%) 0.0267 ( 7.7%) 0.4933 ( 7.1%) 0.5465 ( 8.1%) DAG Legalization
0.4567 ( 6.9%) 0.0133 ( 3.8%) 0.4700 ( 6.7%) 0.4290 ( 6.3%) DAG Combining 2
0.3900 ( 5.9%) 0.0200 ( 5.8%) 0.4100 ( 5.9%) 0.3805 ( 5.6%) Type Legalization
0.0967 ( 1.5%) 0.0167 ( 4.8%) 0.1133 ( 1.6%) 0.0888 ( 1.3%) Instruction Scheduling Cleanup
0.0500 ( 0.8%) 0.0000 ( 0.0%) 0.0500 ( 0.7%) 0.0671 ( 1.0%) Vector Legalization
0.0333 ( 0.5%) 0.0000 ( 0.0%) 0.0333 ( 0.5%) 0.0438 ( 0.6%) DAG Combining after legalize types
6.6367 (100.0%) 0.3467 (100.0%) 6.9833 (100.0%) 6.7659 (100.0%) Total
===-------------------------------------------------------------------------===
DWARF Emission
===-------------------------------------------------------------------------===
Total Execution Time: 0.2067 seconds (0.2064 wall clock)
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name ---
0.2000 ( 98.4%) 0.0033 (100.0%) 0.2033 ( 98.4%) 0.2007 ( 97.2%) DWARF Exception Writer
0.0033 ( 1.6%) 0.0000 ( 0.0%) 0.0033 ( 1.6%) 0.0057 ( 2.8%) DWARF Debug Writer
0.2033 (100.0%) 0.0033 (100.0%) 0.2067 (100.0%) 0.2064 (100.0%) Total
===-------------------------------------------------------------------------===
... Pass execution timing report ...
===-------------------------------------------------------------------------===
Total Execution Time: 595.2133 seconds (595.9404 wall clock)
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name ---
344.4500 ( 58.6%) 0.0133 ( 0.2%) 344.4633 ( 57.9%) 344.8825 ( 57.9%) Loop Invariant Code Motion
90.9533 ( 15.5%) 2.7400 ( 35.9%) 93.6933 ( 15.7%) 93.8664 ( 15.8%) Value Propagation
82.5733 ( 14.1%) 2.4733 ( 32.4%) 85.0467 ( 14.3%) 85.1964 ( 14.3%) Value Propagation
10.7167 ( 1.8%) 0.5633 ( 7.4%) 11.2800 ( 1.9%) 11.2990 ( 1.9%) X86 DAG->DAG Instruction Selection
7.8900 ( 1.3%) 0.0200 ( 0.3%) 7.9100 ( 1.3%) 7.9360 ( 1.3%) Dead Store Elimination
6.7900 ( 1.2%) 0.1200 ( 1.6%) 6.9100 ( 1.2%) 6.9070 ( 1.2%) Global Value Numbering
4.1200 ( 0.7%) 0.0333 ( 0.4%) 4.1533 ( 0.7%) 4.1638 ( 0.7%) Lazy Value Information Analysis
3.8533 ( 0.7%) 0.1333 ( 1.7%) 3.9866 ( 0.7%) 3.9785 ( 0.7%) Function Integration/Inlining
3.8600 ( 0.7%) 0.1667 ( 2.2%) 4.0267 ( 0.7%) 3.9677 ( 0.7%) Combine redundant instructions
3.7167 ( 0.6%) 0.0267 ( 0.3%) 3.7433 ( 0.6%) 3.7838 ( 0.6%) Lazy Value Information Analysis
3.4300 ( 0.6%) 0.0500 ( 0.7%) 3.4800 ( 0.6%) 3.5477 ( 0.6%) Combine redundant instructions
2.8533 ( 0.5%) 0.0800 ( 1.0%) 2.9333 ( 0.5%) 2.9895 ( 0.5%) Combine redundant instructions
1.8967 ( 0.3%) 0.3433 ( 4.5%) 2.2400 ( 0.4%) 2.2682 ( 0.4%) Dominator Tree Construction
1.7967 ( 0.3%) 0.2333 ( 3.1%) 2.0300 ( 0.3%) 2.0185 ( 0.3%) Simplify the CFG
1.9900 ( 0.3%) 0.0500 ( 0.7%) 2.0400 ( 0.3%) 2.0104 ( 0.3%) Combine redundant instructions
1.2500 ( 0.2%) 0.0667 ( 0.9%) 1.3167 ( 0.2%) 1.3386 ( 0.2%) X86 Assembly / Object Emitter
1.2533 ( 0.2%) 0.0200 ( 0.3%) 1.2733 ( 0.2%) 1.2525 ( 0.2%) Fast Register Allocator
1.1433 ( 0.2%) 0.0133 ( 0.2%) 1.1567 ( 0.2%) 1.1257 ( 0.2%) MemCpy Optimization
0.9367 ( 0.2%) 0.0133 ( 0.2%) 0.9500 ( 0.2%) 0.9755 ( 0.2%) Early CSE
0.8500 ( 0.1%) 0.0100 ( 0.1%) 0.8600 ( 0.1%) 0.8805 ( 0.1%) Early CSE
0.7400 ( 0.1%) 0.0567 ( 0.7%) 0.7967 ( 0.1%) 0.7889 ( 0.1%) Combine redundant instructions
0.6600 ( 0.1%) 0.0167 ( 0.2%) 0.6767 ( 0.1%) 0.5870 ( 0.1%) Reassociate expressions
0.5967 ( 0.1%) 0.0133 ( 0.2%) 0.6100 ( 0.1%) 0.5797 ( 0.1%) Sparse Conditional Constant Propagation
0.5600 ( 0.1%) 0.0100 ( 0.1%) 0.5700 ( 0.1%) 0.5748 ( 0.1%) Module Verifier
0.4800 ( 0.1%) 0.0067 ( 0.1%) 0.4867 ( 0.1%) 0.5019 ( 0.1%) Jump Threading
0.5000 ( 0.1%) 0.0133 ( 0.2%) 0.5133 ( 0.1%) 0.5009 ( 0.1%) Jump Threading
0.4300 ( 0.1%) 0.0100 ( 0.1%) 0.4400 ( 0.1%) 0.4926 ( 0.1%) Module Verifier
0.4133 ( 0.1%) 0.0133 ( 0.2%) 0.4267 ( 0.1%) 0.4251 ( 0.1%) Prologue/Epilogue Insertion & Frame Finalization
0.3567 ( 0.1%) 0.0367 ( 0.5%) 0.3933 ( 0.1%) 0.4110 ( 0.1%) Induction Variable Simplification
0.3333 ( 0.1%) 0.0100 ( 0.1%) 0.3433 ( 0.1%) 0.3968 ( 0.1%) Remove redundant instructions
0.3867 ( 0.1%) 0.0033 ( 0.0%) 0.3900 ( 0.1%) 0.3657 ( 0.1%) Aggressive Dead Code Elimination
0.3533 ( 0.1%) 0.0167 ( 0.2%) 0.3700 ( 0.1%) 0.3580 ( 0.1%) Natural Loop Information
0.2233 ( 0.0%) 0.0100 ( 0.1%) 0.2333 ( 0.0%) 0.2630 ( 0.0%) Dominator Tree Construction
0.3033 ( 0.1%) 0.0033 ( 0.0%) 0.3067 ( 0.1%) 0.2572 ( 0.0%) Dominator Tree Construction
0.2333 ( 0.0%) 0.0100 ( 0.1%) 0.2433 ( 0.0%) 0.2502 ( 0.0%) Simplify the CFG
0.2633 ( 0.0%) 0.0000 ( 0.0%) 0.2633 ( 0.0%) 0.2483 ( 0.0%) Two-Address instruction pass
0.2167 ( 0.0%) 0.0067 ( 0.1%) 0.2233 ( 0.0%) 0.2252 ( 0.0%) Interprocedural Sparse Conditional Constant Propagation
0.2400 ( 0.0%) 0.0133 ( 0.2%) 0.2533 ( 0.0%) 0.2229 ( 0.0%) Natural Loop Information
0.2200 ( 0.0%) 0.0067 ( 0.1%) 0.2267 ( 0.0%) 0.2041 ( 0.0%) Machine Function Analysis
0.1767 ( 0.0%) 0.0267 ( 0.3%) 0.2033 ( 0.0%) 0.1948 ( 0.0%) Early CSE
0.2067 ( 0.0%) 0.0033 ( 0.0%) 0.2100 ( 0.0%) 0.1879 ( 0.0%) Loop-Closed SSA Form Pass
0.1667 ( 0.0%) 0.0000 ( 0.0%) 0.1667 ( 0.0%) 0.1751 ( 0.0%) Dominator Tree Construction
0.1633 ( 0.0%) 0.0000 ( 0.0%) 0.1633 ( 0.0%) 0.1733 ( 0.0%) Simplify the CFG
0.1867 ( 0.0%) 0.0000 ( 0.0%) 0.1867 ( 0.0%) 0.1629 ( 0.0%) Loop-Closed SSA Form Pass
0.1533 ( 0.0%) 0.0067 ( 0.1%) 0.1600 ( 0.0%) 0.1571 ( 0.0%) Loop-Closed SSA Form Pass
0.1367 ( 0.0%) 0.0033 ( 0.0%) 0.1400 ( 0.0%) 0.1532 ( 0.0%) Loop-Closed SSA Form Pass
0.1067 ( 0.0%) 0.0033 ( 0.0%) 0.1100 ( 0.0%) 0.1364 ( 0.0%) Canonicalize natural loops
0.1333 ( 0.0%) 0.0000 ( 0.0%) 0.1333 ( 0.0%) 0.1325 ( 0.0%) Global Variable Optimizer
0.1100 ( 0.0%) 0.0267 ( 0.3%) 0.1367 ( 0.0%) 0.1225 ( 0.0%) Module Verifier
0.1100 ( 0.0%) 0.0033 ( 0.0%) 0.1133 ( 0.0%) 0.1223 ( 0.0%) X86 FP Stackifier
0.1400 ( 0.0%) 0.0033 ( 0.0%) 0.1433 ( 0.0%) 0.1222 ( 0.0%) Dominator Tree Construction
0.1033 ( 0.0%) 0.0100 ( 0.1%) 0.1133 ( 0.0%) 0.1170 ( 0.0%) Unroll loops
0.1167 ( 0.0%) 0.0000 ( 0.0%) 0.1167 ( 0.0%) 0.1162 ( 0.0%) Dead Global Elimination
0.1367 ( 0.0%) 0.0000 ( 0.0%) 0.1367 ( 0.0%) 0.1149 ( 0.0%) Post-RA pseudo instruction expansion pass
0.1000 ( 0.0%) 0.0100 ( 0.1%) 0.1100 ( 0.0%) 0.1107 ( 0.0%) Dominator Tree Construction
0.0967 ( 0.0%) 0.0000 ( 0.0%) 0.0967 ( 0.0%) 0.1028 ( 0.0%) Simplify the CFG
0.0900 ( 0.0%) 0.0133 ( 0.2%) 0.1033 ( 0.0%) 0.1023 ( 0.0%) Deduce function attributes
0.0767 ( 0.0%) 0.0067 ( 0.1%) 0.0833 ( 0.0%) 0.0962 ( 0.0%) Dominator Tree Construction
0.1067 ( 0.0%) 0.0067 ( 0.1%) 0.1133 ( 0.0%) 0.0935 ( 0.0%) Canonicalize natural loops
0.1000 ( 0.0%) 0.0067 ( 0.1%) 0.1067 ( 0.0%) 0.0899 ( 0.0%) Loop-Closed SSA Form Pass
0.0767 ( 0.0%) 0.0000 ( 0.0%) 0.0767 ( 0.0%) 0.0744 ( 0.0%) Dead Argument Elimination
0.0500 ( 0.0%) 0.0033 ( 0.0%) 0.0533 ( 0.0%) 0.0663 ( 0.0%) No target information
0.0533 ( 0.0%) 0.0000 ( 0.0%) 0.0533 ( 0.0%) 0.0614 ( 0.0%) Remove unused exception handling info
0.0367 ( 0.0%) 0.0000 ( 0.0%) 0.0367 ( 0.0%) 0.0613 ( 0.0%) Simplify well-known library calls
0.0533 ( 0.0%) 0.0067 ( 0.1%) 0.0600 ( 0.0%) 0.0612 ( 0.0%) No Alias Analysis (always returns 'may' alias)
0.0767 ( 0.0%) 0.0000 ( 0.0%) 0.0767 ( 0.0%) 0.0610 ( 0.0%) Unswitch loops
0.0567 ( 0.0%) 0.0000 ( 0.0%) 0.0567 ( 0.0%) 0.0572 ( 0.0%) Basic CallGraph Construction
0.0433 ( 0.0%) 0.0033 ( 0.0%) 0.0467 ( 0.0%) 0.0550 ( 0.0%) Eliminate PHI nodes for register allocation
0.0433 ( 0.0%) 0.0067 ( 0.1%) 0.0500 ( 0.0%) 0.0547 ( 0.0%) Canonicalize natural loops
0.0533 ( 0.0%) 0.0000 ( 0.0%) 0.0533 ( 0.0%) 0.0487 ( 0.0%) Tail Call Elimination
0.0467 ( 0.0%) 0.0000 ( 0.0%) 0.0467 ( 0.0%) 0.0433 ( 0.0%) Expand ISel Pseudo-instructions
0.0367 ( 0.0%) 0.0033 ( 0.0%) 0.0400 ( 0.0%) 0.0405 ( 0.0%) Canonicalize natural loops
0.0567 ( 0.0%) 0.0033 ( 0.0%) 0.0600 ( 0.0%) 0.0395 ( 0.0%) Memory Dependence Analysis
0.0400 ( 0.0%) 0.0033 ( 0.0%) 0.0433 ( 0.0%) 0.0384 ( 0.0%) Remove unreachable blocks from the CFG
0.0467 ( 0.0%) 0.0067 ( 0.1%) 0.0533 ( 0.0%) 0.0355 ( 0.0%) Scalar Evolution Analysis
0.0200 ( 0.0%) 0.0033 ( 0.0%) 0.0233 ( 0.0%) 0.0300 ( 0.0%) Memory Dependence Analysis
0.0200 ( 0.0%) 0.0000 ( 0.0%) 0.0200 ( 0.0%) 0.0271 ( 0.0%) Scalar Evolution Analysis
0.0300 ( 0.0%) 0.0033 ( 0.0%) 0.0333 ( 0.0%) 0.0265 ( 0.0%) Bundle Machine CFG Edges
0.0167 ( 0.0%) 0.0067 ( 0.1%) 0.0233 ( 0.0%) 0.0227 ( 0.0%) Basic Alias Analysis (stateless AA impl)
0.0200 ( 0.0%) 0.0067 ( 0.1%) 0.0267 ( 0.0%) 0.0225 ( 0.0%) Basic Alias Analysis (stateless AA impl)
0.0200 ( 0.0%) 0.0000 ( 0.0%) 0.0200 ( 0.0%) 0.0213 ( 0.0%) Memory Dependence Analysis
0.0067 ( 0.0%) 0.0000 ( 0.0%) 0.0067 ( 0.0%) 0.0170 ( 0.0%) Preliminary module verification
0.0100 ( 0.0%) 0.0033 ( 0.0%) 0.0133 ( 0.0%) 0.0160 ( 0.0%) Preliminary module verification
0.0067 ( 0.0%) 0.0067 ( 0.1%) 0.0133 ( 0.0%) 0.0151 ( 0.0%) Delete dead loops
0.0200 ( 0.0%) 0.0000 ( 0.0%) 0.0200 ( 0.0%) 0.0123 ( 0.0%) Exception handling preparation
0.0167 ( 0.0%) 0.0000 ( 0.0%) 0.0167 ( 0.0%) 0.0121 ( 0.0%) Rotate Loops
0.0067 ( 0.0%) 0.0000 ( 0.0%) 0.0067 ( 0.0%) 0.0113 ( 0.0%) Inline Cost Analysis
0.0200 ( 0.0%) 0.0000 ( 0.0%) 0.0200 ( 0.0%) 0.0105 ( 0.0%) No Alias Analysis (always returns 'may' alias)
0.0067 ( 0.0%) 0.0033 ( 0.0%) 0.0100 ( 0.0%) 0.0104 ( 0.0%) X86 Target Transform Info
0.0067 ( 0.0%) 0.0033 ( 0.0%) 0.0100 ( 0.0%) 0.0103 ( 0.0%) Target independent code generator's TTI
0.0100 ( 0.0%) 0.0000 ( 0.0%) 0.0100 ( 0.0%) 0.0102 ( 0.0%) No target information
0.0067 ( 0.0%) 0.0000 ( 0.0%) 0.0067 ( 0.0%) 0.0063 ( 0.0%) Insert stack protectors
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0058 ( 0.0%) Unroll loops
0.0000 ( 0.0%) 0.0033 ( 0.0%) 0.0033 ( 0.0%) 0.0054 ( 0.0%) Preliminary module verification
0.0067 ( 0.0%) 0.0000 ( 0.0%) 0.0067 ( 0.0%) 0.0043 ( 0.0%) Analyze Machine Code For Garbage Collection
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0042 ( 0.0%) Local Stack Slot Allocation
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0040 ( 0.0%) Recognize loop idioms
0.0033 ( 0.0%) 0.0000 ( 0.0%) 0.0033 ( 0.0%) 0.0040 ( 0.0%) Lower Garbage Collection Instructions
0.0000 ( 0.0%) 0.0033 ( 0.0%) 0.0033 ( 0.0%) 0.0036 ( 0.0%) Target Library Information
0.0033 ( 0.0%) 0.0000 ( 0.0%) 0.0033 ( 0.0%) 0.0018 ( 0.0%) Create Garbage Collector Module Metadata
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0012 ( 0.0%) Strip Unused Function Prototypes
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0007 ( 0.0%) Merge Duplicate Global Constants
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Target Library Information
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Target Pass Configuration
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Machine Module Information
587.5766 (100.0%) 7.6367 (100.0%) 595.2133 (100.0%) 595.9404 (100.0%) Total"><pre class="notranslate"><code class="notranslate">===-------------------------------------------------------------------------===
Instruction Selection and Scheduling
===-------------------------------------------------------------------------===
Total Execution Time: 6.9833 seconds (6.7659 wall clock)
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name ---
1.7633 ( 26.6%) 0.1033 ( 29.8%) 1.8667 ( 26.7%) 1.8131 ( 26.8%) Instruction Selection
1.6800 ( 25.3%) 0.0867 ( 25.0%) 1.7667 ( 25.3%) 1.6579 ( 24.5%) Instruction Scheduling
0.9167 ( 13.8%) 0.0567 ( 16.3%) 0.9733 ( 13.9%) 0.9297 ( 13.7%) Instruction Creation
0.7833 ( 11.8%) 0.0233 ( 6.7%) 0.8067 ( 11.6%) 0.8096 ( 12.0%) DAG Combining 1
0.4667 ( 7.0%) 0.0267 ( 7.7%) 0.4933 ( 7.1%) 0.5465 ( 8.1%) DAG Legalization
0.4567 ( 6.9%) 0.0133 ( 3.8%) 0.4700 ( 6.7%) 0.4290 ( 6.3%) DAG Combining 2
0.3900 ( 5.9%) 0.0200 ( 5.8%) 0.4100 ( 5.9%) 0.3805 ( 5.6%) Type Legalization
0.0967 ( 1.5%) 0.0167 ( 4.8%) 0.1133 ( 1.6%) 0.0888 ( 1.3%) Instruction Scheduling Cleanup
0.0500 ( 0.8%) 0.0000 ( 0.0%) 0.0500 ( 0.7%) 0.0671 ( 1.0%) Vector Legalization
0.0333 ( 0.5%) 0.0000 ( 0.0%) 0.0333 ( 0.5%) 0.0438 ( 0.6%) DAG Combining after legalize types
6.6367 (100.0%) 0.3467 (100.0%) 6.9833 (100.0%) 6.7659 (100.0%) Total
===-------------------------------------------------------------------------===
DWARF Emission
===-------------------------------------------------------------------------===
Total Execution Time: 0.2067 seconds (0.2064 wall clock)
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name ---
0.2000 ( 98.4%) 0.0033 (100.0%) 0.2033 ( 98.4%) 0.2007 ( 97.2%) DWARF Exception Writer
0.0033 ( 1.6%) 0.0000 ( 0.0%) 0.0033 ( 1.6%) 0.0057 ( 2.8%) DWARF Debug Writer
0.2033 (100.0%) 0.0033 (100.0%) 0.2067 (100.0%) 0.2064 (100.0%) Total
===-------------------------------------------------------------------------===
... Pass execution timing report ...
===-------------------------------------------------------------------------===
Total Execution Time: 595.2133 seconds (595.9404 wall clock)
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name ---
344.4500 ( 58.6%) 0.0133 ( 0.2%) 344.4633 ( 57.9%) 344.8825 ( 57.9%) Loop Invariant Code Motion
90.9533 ( 15.5%) 2.7400 ( 35.9%) 93.6933 ( 15.7%) 93.8664 ( 15.8%) Value Propagation
82.5733 ( 14.1%) 2.4733 ( 32.4%) 85.0467 ( 14.3%) 85.1964 ( 14.3%) Value Propagation
10.7167 ( 1.8%) 0.5633 ( 7.4%) 11.2800 ( 1.9%) 11.2990 ( 1.9%) X86 DAG->DAG Instruction Selection
7.8900 ( 1.3%) 0.0200 ( 0.3%) 7.9100 ( 1.3%) 7.9360 ( 1.3%) Dead Store Elimination
6.7900 ( 1.2%) 0.1200 ( 1.6%) 6.9100 ( 1.2%) 6.9070 ( 1.2%) Global Value Numbering
4.1200 ( 0.7%) 0.0333 ( 0.4%) 4.1533 ( 0.7%) 4.1638 ( 0.7%) Lazy Value Information Analysis
3.8533 ( 0.7%) 0.1333 ( 1.7%) 3.9866 ( 0.7%) 3.9785 ( 0.7%) Function Integration/Inlining
3.8600 ( 0.7%) 0.1667 ( 2.2%) 4.0267 ( 0.7%) 3.9677 ( 0.7%) Combine redundant instructions
3.7167 ( 0.6%) 0.0267 ( 0.3%) 3.7433 ( 0.6%) 3.7838 ( 0.6%) Lazy Value Information Analysis
3.4300 ( 0.6%) 0.0500 ( 0.7%) 3.4800 ( 0.6%) 3.5477 ( 0.6%) Combine redundant instructions
2.8533 ( 0.5%) 0.0800 ( 1.0%) 2.9333 ( 0.5%) 2.9895 ( 0.5%) Combine redundant instructions
1.8967 ( 0.3%) 0.3433 ( 4.5%) 2.2400 ( 0.4%) 2.2682 ( 0.4%) Dominator Tree Construction
1.7967 ( 0.3%) 0.2333 ( 3.1%) 2.0300 ( 0.3%) 2.0185 ( 0.3%) Simplify the CFG
1.9900 ( 0.3%) 0.0500 ( 0.7%) 2.0400 ( 0.3%) 2.0104 ( 0.3%) Combine redundant instructions
1.2500 ( 0.2%) 0.0667 ( 0.9%) 1.3167 ( 0.2%) 1.3386 ( 0.2%) X86 Assembly / Object Emitter
1.2533 ( 0.2%) 0.0200 ( 0.3%) 1.2733 ( 0.2%) 1.2525 ( 0.2%) Fast Register Allocator
1.1433 ( 0.2%) 0.0133 ( 0.2%) 1.1567 ( 0.2%) 1.1257 ( 0.2%) MemCpy Optimization
0.9367 ( 0.2%) 0.0133 ( 0.2%) 0.9500 ( 0.2%) 0.9755 ( 0.2%) Early CSE
0.8500 ( 0.1%) 0.0100 ( 0.1%) 0.8600 ( 0.1%) 0.8805 ( 0.1%) Early CSE
0.7400 ( 0.1%) 0.0567 ( 0.7%) 0.7967 ( 0.1%) 0.7889 ( 0.1%) Combine redundant instructions
0.6600 ( 0.1%) 0.0167 ( 0.2%) 0.6767 ( 0.1%) 0.5870 ( 0.1%) Reassociate expressions
0.5967 ( 0.1%) 0.0133 ( 0.2%) 0.6100 ( 0.1%) 0.5797 ( 0.1%) Sparse Conditional Constant Propagation
0.5600 ( 0.1%) 0.0100 ( 0.1%) 0.5700 ( 0.1%) 0.5748 ( 0.1%) Module Verifier
0.4800 ( 0.1%) 0.0067 ( 0.1%) 0.4867 ( 0.1%) 0.5019 ( 0.1%) Jump Threading
0.5000 ( 0.1%) 0.0133 ( 0.2%) 0.5133 ( 0.1%) 0.5009 ( 0.1%) Jump Threading
0.4300 ( 0.1%) 0.0100 ( 0.1%) 0.4400 ( 0.1%) 0.4926 ( 0.1%) Module Verifier
0.4133 ( 0.1%) 0.0133 ( 0.2%) 0.4267 ( 0.1%) 0.4251 ( 0.1%) Prologue/Epilogue Insertion & Frame Finalization
0.3567 ( 0.1%) 0.0367 ( 0.5%) 0.3933 ( 0.1%) 0.4110 ( 0.1%) Induction Variable Simplification
0.3333 ( 0.1%) 0.0100 ( 0.1%) 0.3433 ( 0.1%) 0.3968 ( 0.1%) Remove redundant instructions
0.3867 ( 0.1%) 0.0033 ( 0.0%) 0.3900 ( 0.1%) 0.3657 ( 0.1%) Aggressive Dead Code Elimination
0.3533 ( 0.1%) 0.0167 ( 0.2%) 0.3700 ( 0.1%) 0.3580 ( 0.1%) Natural Loop Information
0.2233 ( 0.0%) 0.0100 ( 0.1%) 0.2333 ( 0.0%) 0.2630 ( 0.0%) Dominator Tree Construction
0.3033 ( 0.1%) 0.0033 ( 0.0%) 0.3067 ( 0.1%) 0.2572 ( 0.0%) Dominator Tree Construction
0.2333 ( 0.0%) 0.0100 ( 0.1%) 0.2433 ( 0.0%) 0.2502 ( 0.0%) Simplify the CFG
0.2633 ( 0.0%) 0.0000 ( 0.0%) 0.2633 ( 0.0%) 0.2483 ( 0.0%) Two-Address instruction pass
0.2167 ( 0.0%) 0.0067 ( 0.1%) 0.2233 ( 0.0%) 0.2252 ( 0.0%) Interprocedural Sparse Conditional Constant Propagation
0.2400 ( 0.0%) 0.0133 ( 0.2%) 0.2533 ( 0.0%) 0.2229 ( 0.0%) Natural Loop Information
0.2200 ( 0.0%) 0.0067 ( 0.1%) 0.2267 ( 0.0%) 0.2041 ( 0.0%) Machine Function Analysis
0.1767 ( 0.0%) 0.0267 ( 0.3%) 0.2033 ( 0.0%) 0.1948 ( 0.0%) Early CSE
0.2067 ( 0.0%) 0.0033 ( 0.0%) 0.2100 ( 0.0%) 0.1879 ( 0.0%) Loop-Closed SSA Form Pass
0.1667 ( 0.0%) 0.0000 ( 0.0%) 0.1667 ( 0.0%) 0.1751 ( 0.0%) Dominator Tree Construction
0.1633 ( 0.0%) 0.0000 ( 0.0%) 0.1633 ( 0.0%) 0.1733 ( 0.0%) Simplify the CFG
0.1867 ( 0.0%) 0.0000 ( 0.0%) 0.1867 ( 0.0%) 0.1629 ( 0.0%) Loop-Closed SSA Form Pass
0.1533 ( 0.0%) 0.0067 ( 0.1%) 0.1600 ( 0.0%) 0.1571 ( 0.0%) Loop-Closed SSA Form Pass
0.1367 ( 0.0%) 0.0033 ( 0.0%) 0.1400 ( 0.0%) 0.1532 ( 0.0%) Loop-Closed SSA Form Pass
0.1067 ( 0.0%) 0.0033 ( 0.0%) 0.1100 ( 0.0%) 0.1364 ( 0.0%) Canonicalize natural loops
0.1333 ( 0.0%) 0.0000 ( 0.0%) 0.1333 ( 0.0%) 0.1325 ( 0.0%) Global Variable Optimizer
0.1100 ( 0.0%) 0.0267 ( 0.3%) 0.1367 ( 0.0%) 0.1225 ( 0.0%) Module Verifier
0.1100 ( 0.0%) 0.0033 ( 0.0%) 0.1133 ( 0.0%) 0.1223 ( 0.0%) X86 FP Stackifier
0.1400 ( 0.0%) 0.0033 ( 0.0%) 0.1433 ( 0.0%) 0.1222 ( 0.0%) Dominator Tree Construction
0.1033 ( 0.0%) 0.0100 ( 0.1%) 0.1133 ( 0.0%) 0.1170 ( 0.0%) Unroll loops
0.1167 ( 0.0%) 0.0000 ( 0.0%) 0.1167 ( 0.0%) 0.1162 ( 0.0%) Dead Global Elimination
0.1367 ( 0.0%) 0.0000 ( 0.0%) 0.1367 ( 0.0%) 0.1149 ( 0.0%) Post-RA pseudo instruction expansion pass
0.1000 ( 0.0%) 0.0100 ( 0.1%) 0.1100 ( 0.0%) 0.1107 ( 0.0%) Dominator Tree Construction
0.0967 ( 0.0%) 0.0000 ( 0.0%) 0.0967 ( 0.0%) 0.1028 ( 0.0%) Simplify the CFG
0.0900 ( 0.0%) 0.0133 ( 0.2%) 0.1033 ( 0.0%) 0.1023 ( 0.0%) Deduce function attributes
0.0767 ( 0.0%) 0.0067 ( 0.1%) 0.0833 ( 0.0%) 0.0962 ( 0.0%) Dominator Tree Construction
0.1067 ( 0.0%) 0.0067 ( 0.1%) 0.1133 ( 0.0%) 0.0935 ( 0.0%) Canonicalize natural loops
0.1000 ( 0.0%) 0.0067 ( 0.1%) 0.1067 ( 0.0%) 0.0899 ( 0.0%) Loop-Closed SSA Form Pass
0.0767 ( 0.0%) 0.0000 ( 0.0%) 0.0767 ( 0.0%) 0.0744 ( 0.0%) Dead Argument Elimination
0.0500 ( 0.0%) 0.0033 ( 0.0%) 0.0533 ( 0.0%) 0.0663 ( 0.0%) No target information
0.0533 ( 0.0%) 0.0000 ( 0.0%) 0.0533 ( 0.0%) 0.0614 ( 0.0%) Remove unused exception handling info
0.0367 ( 0.0%) 0.0000 ( 0.0%) 0.0367 ( 0.0%) 0.0613 ( 0.0%) Simplify well-known library calls
0.0533 ( 0.0%) 0.0067 ( 0.1%) 0.0600 ( 0.0%) 0.0612 ( 0.0%) No Alias Analysis (always returns 'may' alias)
0.0767 ( 0.0%) 0.0000 ( 0.0%) 0.0767 ( 0.0%) 0.0610 ( 0.0%) Unswitch loops
0.0567 ( 0.0%) 0.0000 ( 0.0%) 0.0567 ( 0.0%) 0.0572 ( 0.0%) Basic CallGraph Construction
0.0433 ( 0.0%) 0.0033 ( 0.0%) 0.0467 ( 0.0%) 0.0550 ( 0.0%) Eliminate PHI nodes for register allocation
0.0433 ( 0.0%) 0.0067 ( 0.1%) 0.0500 ( 0.0%) 0.0547 ( 0.0%) Canonicalize natural loops
0.0533 ( 0.0%) 0.0000 ( 0.0%) 0.0533 ( 0.0%) 0.0487 ( 0.0%) Tail Call Elimination
0.0467 ( 0.0%) 0.0000 ( 0.0%) 0.0467 ( 0.0%) 0.0433 ( 0.0%) Expand ISel Pseudo-instructions
0.0367 ( 0.0%) 0.0033 ( 0.0%) 0.0400 ( 0.0%) 0.0405 ( 0.0%) Canonicalize natural loops
0.0567 ( 0.0%) 0.0033 ( 0.0%) 0.0600 ( 0.0%) 0.0395 ( 0.0%) Memory Dependence Analysis
0.0400 ( 0.0%) 0.0033 ( 0.0%) 0.0433 ( 0.0%) 0.0384 ( 0.0%) Remove unreachable blocks from the CFG
0.0467 ( 0.0%) 0.0067 ( 0.1%) 0.0533 ( 0.0%) 0.0355 ( 0.0%) Scalar Evolution Analysis
0.0200 ( 0.0%) 0.0033 ( 0.0%) 0.0233 ( 0.0%) 0.0300 ( 0.0%) Memory Dependence Analysis
0.0200 ( 0.0%) 0.0000 ( 0.0%) 0.0200 ( 0.0%) 0.0271 ( 0.0%) Scalar Evolution Analysis
0.0300 ( 0.0%) 0.0033 ( 0.0%) 0.0333 ( 0.0%) 0.0265 ( 0.0%) Bundle Machine CFG Edges
0.0167 ( 0.0%) 0.0067 ( 0.1%) 0.0233 ( 0.0%) 0.0227 ( 0.0%) Basic Alias Analysis (stateless AA impl)
0.0200 ( 0.0%) 0.0067 ( 0.1%) 0.0267 ( 0.0%) 0.0225 ( 0.0%) Basic Alias Analysis (stateless AA impl)
0.0200 ( 0.0%) 0.0000 ( 0.0%) 0.0200 ( 0.0%) 0.0213 ( 0.0%) Memory Dependence Analysis
0.0067 ( 0.0%) 0.0000 ( 0.0%) 0.0067 ( 0.0%) 0.0170 ( 0.0%) Preliminary module verification
0.0100 ( 0.0%) 0.0033 ( 0.0%) 0.0133 ( 0.0%) 0.0160 ( 0.0%) Preliminary module verification
0.0067 ( 0.0%) 0.0067 ( 0.1%) 0.0133 ( 0.0%) 0.0151 ( 0.0%) Delete dead loops
0.0200 ( 0.0%) 0.0000 ( 0.0%) 0.0200 ( 0.0%) 0.0123 ( 0.0%) Exception handling preparation
0.0167 ( 0.0%) 0.0000 ( 0.0%) 0.0167 ( 0.0%) 0.0121 ( 0.0%) Rotate Loops
0.0067 ( 0.0%) 0.0000 ( 0.0%) 0.0067 ( 0.0%) 0.0113 ( 0.0%) Inline Cost Analysis
0.0200 ( 0.0%) 0.0000 ( 0.0%) 0.0200 ( 0.0%) 0.0105 ( 0.0%) No Alias Analysis (always returns 'may' alias)
0.0067 ( 0.0%) 0.0033 ( 0.0%) 0.0100 ( 0.0%) 0.0104 ( 0.0%) X86 Target Transform Info
0.0067 ( 0.0%) 0.0033 ( 0.0%) 0.0100 ( 0.0%) 0.0103 ( 0.0%) Target independent code generator's TTI
0.0100 ( 0.0%) 0.0000 ( 0.0%) 0.0100 ( 0.0%) 0.0102 ( 0.0%) No target information
0.0067 ( 0.0%) 0.0000 ( 0.0%) 0.0067 ( 0.0%) 0.0063 ( 0.0%) Insert stack protectors
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0058 ( 0.0%) Unroll loops
0.0000 ( 0.0%) 0.0033 ( 0.0%) 0.0033 ( 0.0%) 0.0054 ( 0.0%) Preliminary module verification
0.0067 ( 0.0%) 0.0000 ( 0.0%) 0.0067 ( 0.0%) 0.0043 ( 0.0%) Analyze Machine Code For Garbage Collection
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0042 ( 0.0%) Local Stack Slot Allocation
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0040 ( 0.0%) Recognize loop idioms
0.0033 ( 0.0%) 0.0000 ( 0.0%) 0.0033 ( 0.0%) 0.0040 ( 0.0%) Lower Garbage Collection Instructions
0.0000 ( 0.0%) 0.0033 ( 0.0%) 0.0033 ( 0.0%) 0.0036 ( 0.0%) Target Library Information
0.0033 ( 0.0%) 0.0000 ( 0.0%) 0.0033 ( 0.0%) 0.0018 ( 0.0%) Create Garbage Collector Module Metadata
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0012 ( 0.0%) Strip Unused Function Prototypes
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0007 ( 0.0%) Merge Duplicate Global Constants
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Target Library Information
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Target Pass Configuration
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Machine Module Information
587.5766 (100.0%) 7.6367 (100.0%) 595.2133 (100.0%) 595.9404 (100.0%) Total
</code></pre></div>
<p dir="auto">That is over 10 minutes of time. And yes, over 5 minutes of it is spent doing Loop Invariant Code Motion.</p>
<p dir="auto">Part of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14920350" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/6819" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/6819/hovercard" href="https://github.com/rust-lang/rust/issues/6819">#6819</a></p> | 0 |
<p dir="auto">Please:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Check for duplicate requests.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Describe your goal, and if possible provide a code snippet with a motivating example.</li>
</ul>
<p dir="auto">I would like to have a warning that tells me that I should consider increasing the value of <code class="notranslate">max_squarings</code> when <code class="notranslate">expm</code> outputs nan values. For example <code class="notranslate">Warning: expm outputs is nan because max_squarings was reached. Consider increasing max_squarings in order to solve this problem.</code><br>
I had this issue and did not realize that it was the cause of my problem (see <a href="https://github.com/google/jax/issues/13985" data-hovercard-type="issue" data-hovercard-url="/google/jax/issues/13985/hovercard">this</a>).</p>
<p dir="auto">Typically this would be useful in this example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax
import jax.numpy as jnp
from jax.scipy.linalg import expm as jexpm
dimension_x = 10
t = 1e6
# the jax way
sqrt_H = jax.random.normal(jax.random.PRNGKey(1), (dimension_x, dimension_x))
H = jnp.dot(sqrt_H, sqrt_H.T)
print(jexpm(-t*H))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>
<span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span>
<span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">scipy</span>.<span class="pl-s1">linalg</span> <span class="pl-k">import</span> <span class="pl-s1">expm</span> <span class="pl-k">as</span> <span class="pl-s1">jexpm</span>
<span class="pl-s1">dimension_x</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span>
<span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-c1">1e6</span>
<span class="pl-c"># the jax way</span>
<span class="pl-s1">sqrt_H</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-v">PRNGKey</span>(<span class="pl-c1">1</span>), (<span class="pl-s1">dimension_x</span>, <span class="pl-s1">dimension_x</span>))
<span class="pl-v">H</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">dot</span>(<span class="pl-s1">sqrt_H</span>, <span class="pl-s1">sqrt_H</span>.<span class="pl-v">T</span>)
<span class="pl-en">print</span>(<span class="pl-en">jexpm</span>(<span class="pl-c1">-</span><span class="pl-s1">t</span><span class="pl-c1">*</span><span class="pl-v">H</span>))</pre></div> | <p dir="auto">The following code does not work,</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo:
@jax.jit
@staticmethod
def foo(x):
return x * 2"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Foo</span>:
<span class="pl-en">@<span class="pl-s1">jax</span>.<span class="pl-s1">jit</span></span>
<span class="pl-en">@<span class="pl-s1">staticmethod</span></span>
<span class="pl-k">def</span> <span class="pl-en">foo</span>(<span class="pl-s1">x</span>):
<span class="pl-k">return</span> <span class="pl-s1">x</span> <span class="pl-c1">*</span> <span class="pl-c1">2</span></pre></div>
<p dir="auto">with an error <code class="notranslate">TypeError: Expected a callable value, got <staticmethod object at 0x7fe007e767f0></code>. This is because a <code class="notranslate">staticmethod</code> is NOT a <code class="notranslate">callable</code>, <a href="https://bugs.python.org/issue43682" rel="nofollow">until Python 3.10</a>. Of course, staticmethod is <em>callable</em> -- something we can call.</p>
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="485382843" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/1251" data-hovercard-type="issue" data-hovercard-url="/google/jax/issues/1251/hovercard" href="https://github.com/google/jax/issues/1251">#1251</a> one possible workaround is suggested:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo:
@functools.partial(jax.jit, static_argnums=(0,))
def foo(self, x):
# this function should not make use of `self` to be pure-functional
return x * 2"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Foo</span>:
<span class="pl-en">@<span class="pl-s1">functools</span>.<span class="pl-en">partial</span>(<span class="pl-s1">jax</span>.<span class="pl-s1">jit</span>, <span class="pl-s1">static_argnums</span><span class="pl-c1">=</span>(<span class="pl-c1">0</span>,))</span>
<span class="pl-k">def</span> <span class="pl-en">foo</span>(<span class="pl-s1">self</span>, <span class="pl-s1">x</span>):
<span class="pl-c"># this function should not make use of `self` to be pure-functional</span>
<span class="pl-k">return</span> <span class="pl-s1">x</span> <span class="pl-c1">*</span> <span class="pl-c1">2</span></pre></div>
<p dir="auto">which is a bit ugly, but basically does the same thing as long as <code class="notranslate">self</code> is not used.</p>
<p dir="auto">I don't see any reason staticmethod cannot be jit-ed as other non-method functions. I think this is just a matter of extending <code class="notranslate">_check_callable(fun)</code> to support <code class="notranslate">staticmethod</code>s (which will happen automatically in Python 3.10); any pitfalls I would've missed?</p> | 0 |
<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="from io import StringIO
import pandas as pd
csv = 'Index,Date\n1,2013-01-01 23:00:00\n2,\n3,2013-01-01 23:00:01'
df = pd.read_csv(StringIO(csv), index_col=0, parse_dates=[1])
pd.qcut(df["Date"], 2)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">io</span> <span class="pl-k">import</span> <span class="pl-v">StringIO</span>
<span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">csv</span> <span class="pl-c1">=</span> <span class="pl-s">'Index,Date<span class="pl-cce">\n</span>1,2013-01-01 23:00:00<span class="pl-cce">\n</span>2,<span class="pl-cce">\n</span>3,2013-01-01 23:00:01'</span>
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>(<span class="pl-s1">csv</span>), <span class="pl-s1">index_col</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">parse_dates</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>])
<span class="pl-s1">pd</span>.<span class="pl-en">qcut</span>(<span class="pl-s1">df</span>[<span class="pl-s">"Date"</span>], <span class="pl-c1">2</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto"><code class="notranslate">qcut</code> raises a <code class="notranslate">ValueError</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "mve.py", line 26, in <module>
pd.qcut(df["Date"], 2)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/reshape/tile.py", line 208, in qcut
dtype=dtype, duplicates=duplicates)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/reshape/tile.py", line 251, in _bins_to_cuts
dtype=dtype)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/reshape/tile.py", line 344, in _format_labels
labels = IntervalIndex.from_breaks(breaks, closed=closed)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/indexes/interval.py", line 370, in from_breaks
name=name, copy=copy)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/indexes/interval.py", line 411, in from_arrays
copy=copy, verify_integrity=True)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/indexes/interval.py", line 225, in _simple_new
result._validate()
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/indexes/interval.py", line 265, in _validate
raise ValueError('missing values must be missing in the same '
ValueError: missing values must be missing in the same location both left and right sides"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "mve.py", line 26, in <module>
pd.qcut(df["Date"], 2)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/reshape/tile.py", line 208, in qcut
dtype=dtype, duplicates=duplicates)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/reshape/tile.py", line 251, in _bins_to_cuts
dtype=dtype)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/reshape/tile.py", line 344, in _format_labels
labels = IntervalIndex.from_breaks(breaks, closed=closed)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/indexes/interval.py", line 370, in from_breaks
name=name, copy=copy)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/indexes/interval.py", line 411, in from_arrays
copy=copy, verify_integrity=True)
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/indexes/interval.py", line 225, in _simple_new
result._validate()
File "/tmp/test/env/lib/python3.5/site-packages/pandas/core/indexes/interval.py", line 265, in _validate
raise ValueError('missing values must be missing in the same '
ValueError: missing values must be missing in the same location both left and right sides
</code></pre></div>
<h4 dir="auto">Expected Output</h4>
<p dir="auto"><code class="notranslate">qcut</code> returning something like</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Index
1 (2013-01-01 22:59:59.999999999, 2013-01-01 23:00:01.0
2 NaT
3 (2013-01-01 22:59:59.999999999, 2013-01-01 23:00:01.0"><pre class="notranslate"><code class="notranslate">Index
1 (2013-01-01 22:59:59.999999999, 2013-01-01 23:00:01.0
2 NaT
3 (2013-01-01 22:59:59.999999999, 2013-01-01 23:00:01.0
</code></pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.5.2.final.0<br>
python-bits: 64<br>
OS: Linux<br>
OS-release: 4.13.0-32-generic<br>
machine: x86_64<br>
processor: x86_64<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: de_DE.UTF-8<br>
LOCALE: de_DE.UTF-8</p>
<p dir="auto">pandas: 0.22.0<br>
pytest: None<br>
pip: 9.0.1<br>
setuptools: 38.5.1<br>
Cython: None<br>
numpy: 1.14.0<br>
scipy: None<br>
pyarrow: None<br>
xarray: None<br>
IPython: None<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.6.1<br>
pytz: 2018.3<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>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: None<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<p dir="auto">eemeter sample</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Your code here
Going to analyze the sample data set
Running a meter for ABC NATURAL_GAS_CONSUMPTION_SUPPLIED
c:\users\wtran\appdata\local\continuum\anaconda3\lib\site-packages\eemeter\modeling\models\caltrack_daily.py:80: RuntimeWarning: invalid value encountered in maximum
np.maximum(df.tempF - bp, 0),
c:\users\wtran\appdata\local\continuum\anaconda3\lib\site-packages\eemeter\modeling\models\caltrack_daily.py:84: RuntimeWarning: invalid value encountered in maximum
np.maximum(bp - df.tempF, 0),
Failed computing derivative (series=Best-fit cooling coefficient, baseline period)
Failed computing derivative (series=Best-fit cooling coefficient, reporting period)
Normal year savings estimate:
1217.526961
68% confidence interval: (1164.475562, 1270.578359)
Reporting period savings estimate:
1169.700996
68% confidence interval: (1116.730092, 1222.671900)
Running a meter for ABC ELECTRICITY_CONSUMPTION_SUPPLIED
Normal year savings estimate:
10465.511272
68% confidence interval: (10297.508645, 10633.513899)
Reporting period savings estimate:
10393.837948
68% confidence interval: (10226.081027, 10561.594870)
"><pre class="notranslate"><span class="pl-c"># Your code here</span>
<span class="pl-v">Going</span> <span class="pl-s1">to</span> <span class="pl-s1">analyze</span> <span class="pl-s1">the</span> <span class="pl-s1">sample</span> <span class="pl-s1">data</span> <span class="pl-s1">set</span>
<span class="pl-v">Running</span> <span class="pl-s1">a</span> <span class="pl-s1">meter</span> <span class="pl-k">for</span> <span class="pl-v">ABC</span> <span class="pl-v">NATURAL_GAS_CONSUMPTION_SUPPLIED</span>
<span class="pl-s1">c</span>:\u<span class="pl-s1">sers</span>\w<span class="pl-s1">tran</span>\a<span class="pl-s1">ppdata</span>\l<span class="pl-s1">ocal</span>\c<span class="pl-s1">ontinuum</span>\a<span class="pl-s1">naconda3</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\e<span class="pl-s1">emeter</span>\m<span class="pl-s1">odeling</span>\m<span class="pl-s1">odels</span>\c<span class="pl-s1">altrack_daily</span>.<span class="pl-s1">py</span>:<span class="pl-c1">80</span>: <span class="pl-v">RuntimeWarning</span>: <span class="pl-s1">invalid</span> <span class="pl-s1">value</span> <span class="pl-s1">encountered</span> <span class="pl-c1">in</span> <span class="pl-s1">maximum</span>
<span class="pl-s1">np</span>.<span class="pl-en">maximum</span>(<span class="pl-s1">df</span>.<span class="pl-s1">tempF</span> <span class="pl-c1">-</span> <span class="pl-s1">bp</span>, <span class="pl-c1">0</span>),
<span class="pl-s1">c</span>:\u<span class="pl-s1">sers</span>\w<span class="pl-s1">tran</span>\a<span class="pl-s1">ppdata</span>\l<span class="pl-s1">ocal</span>\c<span class="pl-s1">ontinuum</span>\a<span class="pl-s1">naconda3</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\e<span class="pl-s1">emeter</span>\m<span class="pl-s1">odeling</span>\m<span class="pl-s1">odels</span>\c<span class="pl-s1">altrack_daily</span>.<span class="pl-s1">py</span>:<span class="pl-c1">84</span>: <span class="pl-v">RuntimeWarning</span>: <span class="pl-s1">invalid</span> <span class="pl-s1">value</span> <span class="pl-s1">encountered</span> <span class="pl-c1">in</span> <span class="pl-s1">maximum</span>
<span class="pl-s1">np</span>.<span class="pl-en">maximum</span>(<span class="pl-s1">bp</span> <span class="pl-c1">-</span> <span class="pl-s1">df</span>.<span class="pl-s1">tempF</span>, <span class="pl-c1">0</span>),
<span class="pl-v">Failed</span> <span class="pl-s1">computing</span> <span class="pl-en">derivative</span> (<span class="pl-s1">series</span><span class="pl-c1">=</span><span class="pl-v">Best</span><span class="pl-c1">-</span><span class="pl-s1">fit</span> <span class="pl-s1">cooling</span> <span class="pl-s1">coefficient</span>, <span class="pl-s1">baseline</span> <span class="pl-s1">period</span>)
<span class="pl-v">Failed</span> <span class="pl-s1">computing</span> <span class="pl-en">derivative</span> (<span class="pl-s1">series</span><span class="pl-c1">=</span><span class="pl-v">Best</span><span class="pl-c1">-</span><span class="pl-s1">fit</span> <span class="pl-s1">cooling</span> <span class="pl-s1">coefficient</span>, <span class="pl-s1">reporting</span> <span class="pl-s1">period</span>)
<span class="pl-v">Normal</span> <span class="pl-s1">year</span> <span class="pl-s1">savings</span> <span class="pl-s1">estimate</span>:
<span class="pl-c1">1217.526961</span>
<span class="pl-c1">68</span><span class="pl-c1">%</span> <span class="pl-en">confidence</span> <span class="pl-s1">interval</span>: (<span class="pl-c1">1164.475562</span>, <span class="pl-c1">1270.578359</span>)
<span class="pl-v">Reporting</span> <span class="pl-s1">period</span> <span class="pl-s1">savings</span> <span class="pl-s1">estimate</span>:
<span class="pl-c1">1169.700996</span>
<span class="pl-c1">68</span><span class="pl-c1">%</span> <span class="pl-en">confidence</span> <span class="pl-s1">interval</span>: (<span class="pl-c1">1116.730092</span>, <span class="pl-c1">1222.671900</span>)
<span class="pl-v">Running</span> <span class="pl-s1">a</span> <span class="pl-s1">meter</span> <span class="pl-k">for</span> <span class="pl-v">ABC</span> <span class="pl-v">ELECTRICITY_CONSUMPTION_SUPPLIED</span>
<span class="pl-v">Normal</span> <span class="pl-s1">year</span> <span class="pl-s1">savings</span> <span class="pl-s1">estimate</span>:
<span class="pl-c1">10465.511272</span>
<span class="pl-c1">68</span><span class="pl-c1">%</span> <span class="pl-en">confidence</span> <span class="pl-s1">interval</span>: (<span class="pl-c1">10297.508645</span>, <span class="pl-c1">10633.513899</span>)
<span class="pl-v">Reporting</span> <span class="pl-s1">period</span> <span class="pl-s1">savings</span> <span class="pl-s1">estimate</span>:
<span class="pl-c1">10393.837948</span>
<span class="pl-c1">68</span><span class="pl-c1">%</span> <span class="pl-en">confidence</span> <span class="pl-s1">interval</span>: (<span class="pl-c1">10226.081027</span>, <span class="pl-c1">10561.594870</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">I installed Anaconda and am using the Anaconda Prompt to try to run the sample data.<br>
There are error messages appeared below before the see the Normal year savings estimate for GAS Consumption. Is this normal or is there anything that I should be typed in the code before typing the eemeter sample code in the command line?</p>
<p dir="auto">c:\users\wtran\appdata\local\continuum\anaconda3\lib\site-packages\eemeter\modeling\models\caltrack_daily.py:80: RuntimeWarning: invalid value encountered in maximum<br>
np.maximum(df.tempF - bp, 0),<br>
c:\users\wtran\appdata\local\continuum\anaconda3\lib\site-packages\eemeter\modeling\models\caltrack_daily.py:84: RuntimeWarning: invalid value encountered in maximum<br>
np.maximum(bp - df.tempF, 0),<br>
Failed computing derivative (series=Best-fit cooling coefficient, baseline period)<br>
Failed computing derivative (series=Best-fit cooling coefficient, reporting period)</p>
<p dir="auto">Normal year savings estimate:<br>
1217.526961<br>
68% confidence interval: (1164.475562, 1270.578359)<br>
Reporting period savings estimate:<br>
1169.700996<br>
68% confidence interval: (1116.730092, 1222.671900)</p>
<p dir="auto">[this should explain <strong>why</strong> the current behaviour is a problem and why the expected output is a better solution.]</p>
<p dir="auto"><strong>Note</strong>: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!</p>
<p dir="auto"><strong>Note</strong>: Many problems can be resolved by simply upgrading <code class="notranslate">pandas</code> to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if <code class="notranslate">master</code> addresses this issue, but that is not necessary.</p>
<p dir="auto">For documentation-related issues, you can check the latest versions of the docs on <code class="notranslate">master</code> here:</p>
<p dir="auto"><a href="https://pandas-docs.github.io/pandas-docs-travis/" rel="nofollow">https://pandas-docs.github.io/pandas-docs-travis/</a></p>
<p dir="auto">If the issue has not been resolved there, go ahead and file it in the issue tracker.</p>
<h4 dir="auto">Expected Output</h4>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<p dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]</p>
</details> | 0 |
<p dir="auto">Hey there -- I have a plugin (<a href="https://github.com/brianegan/flutter_stetho">flutter_stetho</a>) that should be used only during development for inspecting Network requests and Databases for Flutter apps.</p>
<p dir="auto">I ask users to use a <code class="notranslate">main.dart</code> and <code class="notranslate">main_dev.dart</code> so they can instantiate the code only during their dev process, and to include the plugin only in the <code class="notranslate">dev_dependencies</code> section in the <code class="notranslate">pubspec.yaml</code> file.</p>
<p dir="auto">However, if you build the app in production mode using the <code class="notranslate">main.dart</code> entry point, I believe the Dart code will be properly removed / tree shaken, but the Android plugin code is still being shipped. That makes the app size larger, and potentially makes Stetho a security risk (might accidentally allow users to inspect the Database or network requests)</p>
<p dir="auto">Is there a way for plugin authors to indicate to Flutter: "Hey, only include this Android/iOS for Dev builds, but not for production builds"?</p>
<p dir="auto">Also, more of a General Question: I was a bit confused as to why <code class="notranslate">dev_dependencies</code> are being included in Production builds at all. Is this by design? If so, could you describe why / when those are included?</p> | <h2 dir="auto">Use case</h2>
<p dir="auto">I'm maintaining a package providing bindings to sqlite via <code class="notranslate">dart:ffi</code>. For Android apps, we need to compile sqlite3 as a dynamic library that gets put into the apk. For iOS and non-Flutter Dart apps, we use the sqlite3 library from the system, if available.</p>
<p dir="auto">Since <code class="notranslate">dart:ffi</code> is still in an early stage, many users want to use native bindings for tests only, and use another package like <code class="notranslate">sqflite</code> for production. Unit tests are run on a desktop machine, so we don't compile any native libraries and instead use the one from the system. Unfortunately, the Flutter tool will include the native build script even if the package is just a <code class="notranslate">dev_dependency</code>. This means that native libraries are added into the built apk for no reason, but are still increasing app size.</p>
<h2 dir="auto">Proposal</h2>
<p dir="auto">The <code class="notranslate">dev_dependecies</code> section of a pubspec indicates that a package is only used for development. So, I believe that the Flutter tool should not view packages in <code class="notranslate">dev_dependencies</code> as a native package and not run their native buildscripts when using <code class="notranslate">flutter run</code> or <code class="notranslate">flutter build</code>.</p> | 1 |
<p dir="auto">I would like to describe a snippet where at a certain tab stop there is a finite list of possible values. They should show up from the intellisense widget.</p>
<p dir="auto">Alternatively being able to describe that intellisense should popup once you tab into a tab stop would also work for me.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aeschli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aeschli">@aeschli</a> fyi</p> | <ul dir="auto">
<li>VSCode Version:</li>
</ul>
<p dir="auto">Version 1.9.0-insider<br>
Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/32222e2eefc7a0afe9a1a0ecb4794119efd9bc81/hovercard" href="https://github.com/microsoft/vscode/commit/32222e2eefc7a0afe9a1a0ecb4794119efd9bc81"><tt>32222e2</tt></a><br>
Date 2016-12-16T07:18:07.856Z<br>
Shell 1.4.6<br>
Renderer 53.0.2785.143<br>
Node 6.5.0</p>
<ul dir="auto">
<li>OS Version:</li>
</ul>
<p dir="auto">Ubuntu 14.04</p>
<p dir="auto">Currently there is no way to specify a simple choices in the templates which makes developers life easy when expanding templates</p>
<p dir="auto">For eg.,</p>
<p dir="auto">For bootstrap buttons, there are almost 6 types. If we need to support templates for bootstrap button, we need to add either 6 templates/a single template with the template variable class's default value as</p>
<p dir="auto"><code class="notranslate"><button class="btn btn-${1:default|primary|secondary|info|warning|danger}">$2</button></code></p>
<p dir="auto">While selecting this template, the user needs to delete the complete selection & type the required choice/selectively delete portions of this default value.</p>
<p dir="auto">Instead, if snippets consider any value with pipe<code class="notranslate">|</code> separators to be choice & display a dropdown, then the user just need to use his up & down arrows in the keyboard/mouse click to select the actual choice.</p>
<p dir="auto">This will improve the user experience for expanding templates significantly & improve developer productivity.</p> | 1 |
<ul dir="auto">
<li>[√] 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>[√] 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.4.1</li>
<li>Operating System version: Windows 10 1809 64位专业版</li>
<li>Java version: 1.8.0.191</li>
<li>Nacos version: 1.1.3</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">前提:<br>
1,Windows 10 专业版启用Hyper-v,安装Docker for windows,但是Docker服务没启动<br>
2,<code class="notranslate">C:\Windows\System32\drivers\etc\hosts</code> 中已设置了: <code class="notranslate">正确IP 主机名</code></p>
<p dir="auto">网卡环境:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/53243647/68201797-6bafc180-fffd-11e9-8c1d-8a7fdea5d79d.png"><img src="https://user-images.githubusercontent.com/53243647/68201797-6bafc180-fffd-11e9-8c1d-8a7fdea5d79d.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">添加JVM参数“-Djava.net.preferIPv4Stack=true”,然后运行以下代码(从dubbo-2.7.4.1-sources.jar中复制的NetUtils.getLocalAddress()相关的代码):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import java.io.IOException;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.UnknownHostException;
import java.util.Enumeration;
import java.util.Optional;
import java.util.regex.Pattern;
public class Test {
private static final Pattern IP_PATTERN = Pattern.compile("\\d{1,3}(\\.\\d{1,3}){3,5}$");
private static final String ANYHOST_VALUE = "0.0.0.0";
private static final String LOCALHOST_VALUE = "127.0.0.1";
public static void main(String[] args) throws UnknownHostException {
System.out.println(getIpByHost(getLocalAddress().getHostName()));
}
public static String getIpByHost(String hostName) {
try {
return InetAddress.getByName(hostName).getHostAddress();
} catch (UnknownHostException e) {
return hostName;
}
}
public static InetAddress getLocalAddress() {
InetAddress localAddress = getLocalAddress0();
return localAddress;
}
private static InetAddress getLocalAddress0() {
InetAddress localAddress = null;
try {
localAddress = InetAddress.getLocalHost();
Optional<InetAddress> addressOp = toValidAddress(localAddress);
if (addressOp.isPresent()) {
return addressOp.get();
}
} catch (Throwable e) {
e.printStackTrace();
}
try {
Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
if (null == interfaces) {
return localAddress;
}
while (interfaces.hasMoreElements()) {
try {
NetworkInterface network = interfaces.nextElement();
if (network.isLoopback() || network.isVirtual() || !network.isUp()) {
continue;
}
Enumeration<InetAddress> addresses = network.getInetAddresses();
while (addresses.hasMoreElements()) {
try {
Optional<InetAddress> addressOp = toValidAddress(addresses.nextElement());
if (addressOp.isPresent()) {
try {
if(addressOp.get().isReachable(100)){
return addressOp.get();
}
} catch (IOException e) {
// ignore
}
}
} catch (Throwable e) {
e.printStackTrace();
}
}
} catch (Throwable e) {
e.printStackTrace();
}
}
} catch (Throwable e) {
e.printStackTrace();
}
return localAddress;
}
private static Optional<InetAddress> toValidAddress(InetAddress address) {
if (address instanceof Inet6Address) {
Inet6Address v6Address = (Inet6Address) address;
if (isPreferIPV6Address()) {
return Optional.ofNullable(normalizeV6Address(v6Address));
}
}
if (isValidV4Address(address)) {
return Optional.of(address);
}
return Optional.empty();
}
static boolean isPreferIPV6Address() {
boolean preferIpv6 = Boolean.getBoolean("java.net.preferIPv6Addresses");
if (!preferIpv6) {
return false;
}
return false;
}
static InetAddress normalizeV6Address(Inet6Address address) {
String addr = address.getHostAddress();
int i = addr.lastIndexOf('%');
if (i > 0) {
try {
return InetAddress.getByName(addr.substring(0, i) + '%' + address.getScopeId());
} catch (UnknownHostException e) {
// ignore
e.printStackTrace();
}
}
return address;
}
static boolean isValidV4Address(InetAddress address) {
if (address == null || address.isLoopbackAddress()) {
return false;
}
String name = address.getHostAddress();
boolean result = (name != null
&& IP_PATTERN.matcher(name).matches()
&& !ANYHOST_VALUE.equals(name)
&& !LOCALHOST_VALUE.equals(name));
return result;
}
}"><pre class="notranslate"><code class="notranslate">import java.io.IOException;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.UnknownHostException;
import java.util.Enumeration;
import java.util.Optional;
import java.util.regex.Pattern;
public class Test {
private static final Pattern IP_PATTERN = Pattern.compile("\\d{1,3}(\\.\\d{1,3}){3,5}$");
private static final String ANYHOST_VALUE = "0.0.0.0";
private static final String LOCALHOST_VALUE = "127.0.0.1";
public static void main(String[] args) throws UnknownHostException {
System.out.println(getIpByHost(getLocalAddress().getHostName()));
}
public static String getIpByHost(String hostName) {
try {
return InetAddress.getByName(hostName).getHostAddress();
} catch (UnknownHostException e) {
return hostName;
}
}
public static InetAddress getLocalAddress() {
InetAddress localAddress = getLocalAddress0();
return localAddress;
}
private static InetAddress getLocalAddress0() {
InetAddress localAddress = null;
try {
localAddress = InetAddress.getLocalHost();
Optional<InetAddress> addressOp = toValidAddress(localAddress);
if (addressOp.isPresent()) {
return addressOp.get();
}
} catch (Throwable e) {
e.printStackTrace();
}
try {
Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
if (null == interfaces) {
return localAddress;
}
while (interfaces.hasMoreElements()) {
try {
NetworkInterface network = interfaces.nextElement();
if (network.isLoopback() || network.isVirtual() || !network.isUp()) {
continue;
}
Enumeration<InetAddress> addresses = network.getInetAddresses();
while (addresses.hasMoreElements()) {
try {
Optional<InetAddress> addressOp = toValidAddress(addresses.nextElement());
if (addressOp.isPresent()) {
try {
if(addressOp.get().isReachable(100)){
return addressOp.get();
}
} catch (IOException e) {
// ignore
}
}
} catch (Throwable e) {
e.printStackTrace();
}
}
} catch (Throwable e) {
e.printStackTrace();
}
}
} catch (Throwable e) {
e.printStackTrace();
}
return localAddress;
}
private static Optional<InetAddress> toValidAddress(InetAddress address) {
if (address instanceof Inet6Address) {
Inet6Address v6Address = (Inet6Address) address;
if (isPreferIPV6Address()) {
return Optional.ofNullable(normalizeV6Address(v6Address));
}
}
if (isValidV4Address(address)) {
return Optional.of(address);
}
return Optional.empty();
}
static boolean isPreferIPV6Address() {
boolean preferIpv6 = Boolean.getBoolean("java.net.preferIPv6Addresses");
if (!preferIpv6) {
return false;
}
return false;
}
static InetAddress normalizeV6Address(Inet6Address address) {
String addr = address.getHostAddress();
int i = addr.lastIndexOf('%');
if (i > 0) {
try {
return InetAddress.getByName(addr.substring(0, i) + '%' + address.getScopeId());
} catch (UnknownHostException e) {
// ignore
e.printStackTrace();
}
}
return address;
}
static boolean isValidV4Address(InetAddress address) {
if (address == null || address.isLoopbackAddress()) {
return false;
}
String name = address.getHostAddress();
boolean result = (name != null
&& IP_PATTERN.matcher(name).matches()
&& !ANYHOST_VALUE.equals(name)
&& !LOCALHOST_VALUE.equals(name));
return result;
}
}
</code></pre></div>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">获取的IP应该是在<code class="notranslate">C:\Windows\System32\drivers\etc\hosts</code> 中已设置的正确IP</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">添加“-Djava.net.preferIPv4Stack=true”参数之后,输出的IP是Hyper-V的虚拟网卡<code class="notranslate">vEthernet (Default Switch)</code>的IP,注册到Nacos的也是这个IP</p>
<p dir="auto">去掉“-Djava.net.preferIPv4Stack=true”参数之后,输出的IP才是在<code class="notranslate">C:\Windows\System32\drivers\etc\hosts</code> 中已设置的正确IP</p>
<p dir="auto">调试过程中发现,如果添加“-Djava.net.preferIPv4Stack=true”参数,则调用链是:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""main@1" prio=5 tid=0x1 nid=NA runnable
java.lang.Thread.State: RUNNABLE
at java.net.Inet4AddressImpl.lookupAllHostAddr(Inet4AddressImpl.java:-1)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
at java.net.InetAddress.getLocalHost(InetAddress.java:1501)"><pre class="notranslate"><code class="notranslate">"main@1" prio=5 tid=0x1 nid=NA runnable
java.lang.Thread.State: RUNNABLE
at java.net.Inet4AddressImpl.lookupAllHostAddr(Inet4AddressImpl.java:-1)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
at java.net.InetAddress.getLocalHost(InetAddress.java:1501)
</code></pre></div>
<p dir="auto">最后获取到的IP是Hyper-V的虚拟网卡的IP</p>
<p dir="auto">如果去掉“-Djava.net.preferIPv4Stack=true”参数,则调用链是:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""main@1" prio=5 tid=0x1 nid=NA runnable
java.lang.Thread.State: RUNNABLE
at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:-1)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
at java.net.InetAddress.getLocalHost(InetAddress.java:1501)"><pre class="notranslate"><code class="notranslate">"main@1" prio=5 tid=0x1 nid=NA runnable
java.lang.Thread.State: RUNNABLE
at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:-1)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
at java.net.InetAddress.getLocalHost(InetAddress.java:1501)
</code></pre></div>
<p dir="auto">最后获取到的IP是在<code class="notranslate">C:\Windows\System32\drivers\etc\hosts</code> 中已设置的正确IP</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: master分支</li>
<li>Operating System version: windows</li>
<li>Java version: JDK1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>在spi service配置中配置<br>
impl,implMultiName=org.apache.dubbo.common.extension.ext10.impl.Ext10MultiNamesImpl</li>
<li>ExtensionLoaderTest中加测试用例<br>
Ext10MultiNames ext10MultiNames = ExtensionLoader.getExtensionLoader(Ext10MultiNames.class).getExtension("impl");<br>
Assertions.assertNotNull(ext10MultiNames);<br>
3.运行不通过</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">应该获取到对应的实现</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">获取到空,测试不通过</p> | 0 |
<p dir="auto">On all pages that have an embedded html editor, there is a bug where, when you put your cursor on a given line and try to edit (add a character, delete a character etc), the modification is applied to the next line instead of the line where the cursor is located.</p>
<h4 dir="auto">Challenge Name</h4>
<p dir="auto"><a href="https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap" rel="nofollow">https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap</a></p>
<h4 dir="auto">Issue Description</h4>
<p dir="auto">Occurred on all pages having an embedded html editor. To reproduce, place cursor on a given line a press a key to insert a character a the cursor position, the character will be added to the next line.</p>
<h4 dir="auto">Browser Information</h4>
<p dir="auto">firefox 47.0<br>
Ubuntu 14.04<br>
Desktop</p> | <h4 dir="auto">Challenge Name</h4>
<h4 dir="auto">Issue Description</h4>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Browser Name, Version:</li>
<li>Operating System:</li>
<li>Mobile, Desktop, or Tablet:</li>
</ul>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
"><pre class="notranslate"></pre></div>
<h4 dir="auto">Screenshot</h4> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.8</li>
<li>Operating System version: macos</li>
<li>Java version: 1.8</li>
</ul>
<p dir="auto">I looked at the source code of ClassUtils.convertPrimitive,In my opinion, it would be better to use Converter to optimize this conversion.</p>
<p dir="auto">source code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public static Object convertPrimitive(Class<?> type, String value) {
if (value == null) {
return null;
} else if (type == char.class || type == Character.class) {
return value.length() > 0 ? value.charAt(0) : '\0';
} else if (type == boolean.class || type == Boolean.class) {
return Boolean.valueOf(value);
}
try {
if (type == byte.class || type == Byte.class) {
return Byte.valueOf(value);
} else if (type == short.class || type == Short.class) {
return Short.valueOf(value);
} else if (type == int.class || type == Integer.class) {
return Integer.valueOf(value);
} else if (type == long.class || type == Long.class) {
return Long.valueOf(value);
} else if (type == float.class || type == Float.class) {
return Float.valueOf(value);
} else if (type == double.class || type == Double.class) {
return Double.valueOf(value);
}
} catch (NumberFormatException e) {
return null;
}
return value;
}"><pre class="notranslate"><code class="notranslate">public static Object convertPrimitive(Class<?> type, String value) {
if (value == null) {
return null;
} else if (type == char.class || type == Character.class) {
return value.length() > 0 ? value.charAt(0) : '\0';
} else if (type == boolean.class || type == Boolean.class) {
return Boolean.valueOf(value);
}
try {
if (type == byte.class || type == Byte.class) {
return Byte.valueOf(value);
} else if (type == short.class || type == Short.class) {
return Short.valueOf(value);
} else if (type == int.class || type == Integer.class) {
return Integer.valueOf(value);
} else if (type == long.class || type == Long.class) {
return Long.valueOf(value);
} else if (type == float.class || type == Float.class) {
return Float.valueOf(value);
} else if (type == double.class || type == Double.class) {
return Double.valueOf(value);
}
} catch (NumberFormatException e) {
return null;
}
return value;
}
</code></pre></div>
<p dir="auto">Modify as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public static Object convertPrimitive(Class<?> type, String value) {
if (value == null) {
return null;
}
Object result = null;
try{
result = converter.convertIfPossible(value, type);
}catch(Exception e){
result = null;
}
return result;
}"><pre class="notranslate"><code class="notranslate">public static Object convertPrimitive(Class<?> type, String value) {
if (value == null) {
return null;
}
Object result = null;
try{
result = converter.convertIfPossible(value, type);
}catch(Exception e){
result = null;
}
return result;
}
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have 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.4.1</li>
<li>Operating System version: windows 10</li>
<li>Java version: 8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">自定义filter类,同时实现Filter和Filter.Listenerl类,无法编译。</p> | 0 |
<p dir="auto">I feel like this a duplicate issue, but I could not find it. A little ironic I guess.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> @code_warntype match(r"([M,G])([0-9.])+", "foo")
Variables:
r::Regex
s::ASCIIString
Body:
begin # regex.jl, line 134:
GenSym(2) = box(Int32,checked_trunc_sint(Int32,0))
GenSym(8) = (top(getfield))(s::ASCIIString,:data)::Array{UInt8,1}
return match(r::Regex,$(Expr(:new, :((top(getfield))(Core,:UTF8String)::Type{UTF8String}), :((top(convert))(Array{UInt8,1},GenSym(8))))),1,GenSym(2))::Union(RegexMatch,Void)
end::Union(RegexMatch,Void)"><pre class="notranslate"><code class="notranslate">julia> @code_warntype match(r"([M,G])([0-9.])+", "foo")
Variables:
r::Regex
s::ASCIIString
Body:
begin # regex.jl, line 134:
GenSym(2) = box(Int32,checked_trunc_sint(Int32,0))
GenSym(8) = (top(getfield))(s::ASCIIString,:data)::Array{UInt8,1}
return match(r::Regex,$(Expr(:new, :((top(getfield))(Core,:UTF8String)::Type{UTF8String}), :((top(convert))(Array{UInt8,1},GenSym(8))))),1,GenSym(2))::Union(RegexMatch,Void)
end::Union(RegexMatch,Void)
</code></pre></div>
<p dir="auto">This behavior is documented, but I feel like it should not be the default for performance reasons. This seems like a use case for <code class="notranslate">Nullable</code>s.</p> | <p dir="auto">I'm using a 32-bit Windows build (MinGW, source pulled 6-Aug-13) on Windows 8.</p>
<p dir="auto">I wanted to try out the new built-in profiler so, following the example in the manual, I defined myfunc.jl as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function myfunc()
A = rand(100, 100, 200)
max(A)
end"><pre class="notranslate"><code class="notranslate">function myfunc()
A = rand(100, 100, 200)
max(A)
end
</code></pre></div>
<p dir="auto">and ran the following</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> require("myfunc.jl")
julia> @profile (for i=1:100; myfunc(); end)
@profile (for i=1:100; myfunc(); end)
julia> Profile.print();
Profile.print();
516 client.jl; _start; line: 372
516 client.jl; run_repl; line: 166
516 client.jl; eval_user_input; line: 91
516 profile.jl; anonymous; line: 1
2 ...r\bin\myfunc.jl; myfunc; line: 2
julia>"><pre class="notranslate"><code class="notranslate">julia> require("myfunc.jl")
julia> @profile (for i=1:100; myfunc(); end)
@profile (for i=1:100; myfunc(); end)
julia> Profile.print();
Profile.print();
516 client.jl; _start; line: 372
516 client.jl; run_repl; line: 166
516 client.jl; eval_user_input; line: 91
516 profile.jl; anonymous; line: 1
2 ...r\bin\myfunc.jl; myfunc; line: 2
julia>
</code></pre></div>
<p dir="auto">However, this doesn't look quite right, in particular all traces except two seem to vanish into thin air after profile.jl.</p>
<p dir="auto">Any ideas what's happening and/or how to debug it further?</p> | 0 |
<p dir="auto">When resizing chrome, class <code class="notranslate">in</code> does not go away after the navbar is big enough.</p> | <p dir="auto">Currently this is duped a few times over: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21632511" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11243" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/11243/hovercard" href="https://github.com/twbs/bootstrap/issues/11243">#11243</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21882564" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11301" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/11301/hovercard" href="https://github.com/twbs/bootstrap/issues/11301">#11301</a>, and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="22230647" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11382" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/11382/hovercard" href="https://github.com/twbs/bootstrap/issues/11382">#11382</a>—but the issue is described differently everywhere. This should clear things up and help us figure out what to do to fix it.</p>
<h4 dir="auto">Problem</h4>
<p dir="auto">Starting with a narrow viewport, one with the collapsed navbar contents, open the menu, then resize to full-width with all navbar contents visible. Shrinking the viewport back to the narrow size still shows the un-collapsed navbar contents.</p>
<p dir="auto">(Btw, this is currently visible in the docs.)</p>
<h4 dir="auto">Why this happens</h4>
<p dir="auto">We're using the collapse plugin to do this. Right now it has no idea about the dimensions of your viewport. All it does is toggle the appropriate classes based on clicks—click to open, click to hide.</p>
<p dir="auto">Our CSS utilizes those changes in classes from the plugin to style the menu accordingly. The CSS has no way to remove the <code class="notranslate">.in</code> class that the JS adds.</p>
<h4 dir="auto">Fix</h4>
<p dir="auto">We need the JS plugin to be updated to detect the viewport changes and remove the class. I don't know when or how this could happen, but that's the only solution. Will need to hear from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fat">@fat</a> or anyone else with more JS-fu.</p> | 1 |
<p dir="auto">I get this error each time I open Visual Code.</p>
<p dir="auto">[c:/Program Files/Microsoft VS Code/resources/app/extensions/csharp-o]: Cannot read file c:/Program Files/Microsoft VS Code/resources/app/extensions/csharp-o/package.json: ENOENT: no such file or directory, open 'c:\Program Files\Microsoft VS Code\resources\app\extensions\csharp-o\package.json'</p> | <p dir="auto">Looking into <a href="https://github.com/Microsoft/vscode/tree/master/extensions">repository</a>, there is no longer folder named <strong>csharp-o</strong>.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1594619/11973026/891bfd78-a97c-11e5-9335-8dcc84373dfa.png"><img src="https://cloud.githubusercontent.com/assets/1594619/11973026/891bfd78-a97c-11e5-9335-8dcc84373dfa.png" alt="csharp-o" style="max-width: 100%;"></a></p>
<p dir="auto">I manually deleted the folder and restarted vscode and issue is gone. So, problem looks like installer not removing that file.</p> | 1 |
<p dir="auto">To create a setup where:</p>
<ul dir="auto">
<li>There are multiple worker processes on different servers.</li>
<li>Using multiple threads in each worker process.</li>
</ul>
<p dir="auto">Then one currently needs to jump through some hoops to setup the <code class="notranslate">JULIA_NUM_THREADS</code> environment variable for each worker process. Thus one can't use a simple <code class="notranslate">addprocs</code> with something like <code class="notranslate">SshClusterManater</code>. A possible workaround is writing a shell script which sets the environment variable and launches <code class="notranslate">julia</code> and specify this as the Julia executable.</p>
<p dir="auto">It would be much more convenient and natural if <code class="notranslate">julia</code> provided a command line option for specifying the number of threads. If such a command line option is explicitly specified, it should override the value of <code class="notranslate">JULIA_NUM_THREADS</code>, if any.</p>
<p dir="auto">This setup is useful because the threads within each worker process automatically share "everything" without having to resort to constructs like <code class="notranslate">SharedArray</code>. Of course this also means one needs to be more careful.</p> | <p dir="auto">I like the environment variable <code class="notranslate">JULIA_NUM_THREADS</code>, but it should be overridable with a -t(hreads) choice. If -p works, -t could reasonably do this, too.</p> | 1 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong></li>
<li>6.0.5</li>
</ul>
<h3 dir="auto">Rejection Email</h3>
<p dir="auto">Dear Developer,</p>
<p dir="auto">We identified one or more issues with a recent delivery for your app, "ProDoctor Cloud Consultórios" 1.0.5 (867). Please correct the following issues, then upload again.</p>
<p dir="auto"><strong>ITMS-90338: Non-public API usage</strong> - The app references non-public symbols in Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework: _fileport_makefd, _fileport_makeport. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. For further information, visit the Technical Support Information at <a href="http://developer.apple.com/support/technical/" rel="nofollow">http://developer.apple.com/support/technical/</a></p>
<p dir="auto">Best regards,</p>
<p dir="auto">The App Store Team</p> | <ul dir="auto">
<li>Electron Version: 3.0.0-beta.1</li>
<li>Operating System (Platform and Version): macOS 10.13</li>
<li>Last known working Electron version: 2.0</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong></p>
<ul dir="auto">
<li>Clicking a link in a webview should navigate to that page.</li>
</ul>
<p dir="auto"><strong>Actual behavior</strong></p>
<ul dir="auto">
<li>When I click a link inside a webview, the webview freezes completely. However, the webview devtools appear to work correctly, so it appears that the page is actually being loaded, and just not being displayed.</li>
</ul>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!DOCTYPE html>
<html>
<head>
</head>
<body>
<webview src="https://electronjs.org/"/>
</body>
</html>"><pre class="notranslate"><code class="notranslate"><!DOCTYPE html>
<html>
<head>
</head>
<body>
<webview src="https://electronjs.org/"/>
</body>
</html>
</code></pre></div> | 0 |
<p dir="auto">Bitmap too large to be uploaded into a texture<br>
I load image in GridView show this Warn</p> | <p dir="auto">how do solve Bitmap too large to be uploaded into a texture (4208x3120, max=4096x4096) when i open local image</p> | 1 |
<p dir="auto">I think the following should compile with no error:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare module Backbone {
interface RoutesHash {
[routePattern: string]: string | {(...urlParts: string[]): void};
}
class Events { }
class Router extends Events {
routes: RoutesHash;
}
}
declare module Marionette {
class AppRouter extends Backbone.Router {
}
}
module Backbone.Tests {
// Error, routes is not contextually typed
class MyRouter extends Backbone.Router {
routes = {
"some/route": "someMethod",
"some/otherRoute": () => {}
};
}
}
module Marionette.Tests {
// Error, routes is not contextually typed
class MyRouter extends Marionette.AppRouter {
routes = {
"some/route": "someMethod",
"some/otherRoute": () => {}
};
}
}"><pre class="notranslate"><span class="pl-k">declare</span> module <span class="pl-smi">Backbone</span> <span class="pl-kos">{</span>
<span class="pl-k">interface</span> <span class="pl-smi">RoutesHash</span> <span class="pl-kos">{</span>
<span class="pl-kos">[</span><span class="pl-s1">routePattern</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">string</span> <span class="pl-c1">|</span> <span class="pl-kos">{</span><span class="pl-kos">(</span>...<span class="pl-s1">urlParts</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-smi"><span class="pl-k">void</span></span><span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Events</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Router</span> <span class="pl-k">extends</span> <span class="pl-smi">Events</span> <span class="pl-kos">{</span>
<span class="pl-c1">routes</span>: <span class="pl-smi">RoutesHash</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">declare</span> module <span class="pl-smi">Marionette</span> <span class="pl-kos">{</span>
<span class="pl-k">class</span> <span class="pl-smi">AppRouter</span> <span class="pl-k">extends</span> <span class="pl-smi">Backbone</span><span class="pl-kos">.</span><span class="pl-c1">Router</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
module <span class="pl-smi">Backbone</span><span class="pl-kos">.</span><span class="pl-smi">Tests</span> <span class="pl-kos">{</span>
<span class="pl-c">// Error, routes is not contextually typed</span>
<span class="pl-k">class</span> <span class="pl-smi">MyRouter</span> <span class="pl-k">extends</span> <span class="pl-smi">Backbone</span><span class="pl-kos">.</span><span class="pl-c1">Router</span> <span class="pl-kos">{</span>
<span class="pl-c1">routes</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-s">"some/route"</span>: <span class="pl-s">"someMethod"</span><span class="pl-kos">,</span>
<span class="pl-s">"some/otherRoute"</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-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
module <span class="pl-smi">Marionette</span><span class="pl-kos">.</span><span class="pl-smi">Tests</span> <span class="pl-kos">{</span>
<span class="pl-c">// Error, routes is not contextually typed</span>
<span class="pl-k">class</span> <span class="pl-smi">MyRouter</span> <span class="pl-k">extends</span> <span class="pl-smi">Marionette</span><span class="pl-kos">.</span><span class="pl-c1">AppRouter</span> <span class="pl-kos">{</span>
<span class="pl-c1">routes</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-s">"some/route"</span>: <span class="pl-s">"someMethod"</span><span class="pl-kos">,</span>
<span class="pl-s">"some/otherRoute"</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-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div> | <p dir="auto">When a property has exactly one type from an <code class="notranslate">extends</code> or <code class="notranslate">implements</code> clause, we should contextually type that property's initializer by the type from the clause. For example:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface ThingListener {
handleEvent: (x: MouseEvent) => void;
}
class Foo implements ThingListener {
handleEvent = x => {
// No error, but this code is incorrect
console.log(x.timestamp);
}
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">ThingListener</span> <span class="pl-kos">{</span>
<span class="pl-c1">handleEvent</span>: <span class="pl-kos">(</span><span class="pl-s1">x</span>: <span class="pl-smi">MouseEvent</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-k">implements</span> <span class="pl-smi">ThingListener</span> <span class="pl-kos">{</span>
<span class="pl-c1">handleEvent</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-c">// No error, but this code is incorrect</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">x</span><span class="pl-kos">.</span><span class="pl-c1">timestamp</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">Ideally we could take this one step further when widening. The following behavior is also undesirable:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface HasLength {
length: number
}
class Foo implements HasLength {
// length: any, not really what we intended
length = undefined;
}
var x = new Foo();
x.length = 'wat'; // should not be allowed"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">HasLength</span> <span class="pl-kos">{</span>
<span class="pl-c1">length</span>: <span class="pl-smi">number</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-k">implements</span> <span class="pl-smi">HasLength</span> <span class="pl-kos">{</span>
<span class="pl-c">// length: any, not really what we intended</span>
<span class="pl-c1">length</span> <span class="pl-c1">=</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">=</span> <span class="pl-s">'wat'</span><span class="pl-kos">;</span> <span class="pl-c">// should not be allowed</span></pre></div>
<p dir="auto">e.g. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="91669978" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3666" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3666/hovercard" href="https://github.com/microsoft/TypeScript/issues/3666">#3666</a></p> | 1 |
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong><br>
Modules from internal library (also built with Webpack) is missing all exports and is missing from <code class="notranslate">__webpack_modules__</code> when building with <code class="notranslate">mode: development</code>.<br>
The same code works and the page is loading fine when building with <code class="notranslate">mode: production</code> and serving dist.</p>
<p dir="auto">It seems like the dist bundle file is never "expanded" in <code class="notranslate">__webpack_modules__</code>.<br>
If you look at the image you'll see that the bundle is an entry in <code class="notranslate">__webpack_modules__</code>, but the exported modules from said file is not appearing in the list when checking. The list consists om a bunch of modules from node_modules and the modules from the application using the library.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5993909/97200424-7edd1380-17b1-11eb-9847-e0d8daae7cdd.png"><img src="https://user-images.githubusercontent.com/5993909/97200424-7edd1380-17b1-11eb-9847-e0d8daae7cdd.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">So when it looks for the module in <code class="notranslate">__webpack_modules__</code> it will end up with <code class="notranslate">undefined</code>.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);"><pre class="notranslate"><span class="pl-s1">__webpack_modules__</span><span class="pl-kos">[</span><span class="pl-s1">moduleId</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">call</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-kos">,</span> <span class="pl-smi">module</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-kos">,</span> <span class="pl-s1">__webpack_require__</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">That will cause the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (main.js:2793)
at eval (index.ts:30)
at Object../src/index.ts (index.js:2168)
at __nested_webpack_require_8364606__ (index.js:5397)
at eval (index.js:5436)
at eval (index.js:5437)
at webpackUniversalModuleDefinition (index.js:11)
at eval (index.js:18)
at Object.../web-lib-core/dist/index.js (lib.js:87)
at __webpack_require__ (main.js:2793)"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (main.js:2793)
at eval (index.ts:30)
at Object../src/index.ts (index.js:2168)
at __nested_webpack_require_8364606__ (index.js:5397)
at eval (index.js:5436)
at eval (index.js:5437)
at webpackUniversalModuleDefinition (index.js:11)
at eval (index.js:18)
at Object.../web-lib-core/dist/index.js (lib.js:87)
at __webpack_require__ (main.js:2793)
</code></pre></div>
<p dir="auto">The module is also missing all exports:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5993909/97201046-42f67e00-17b2-11eb-9b1d-f06b1302d33e.png"><img src="https://user-images.githubusercontent.com/5993909/97201046-42f67e00-17b2-11eb-9b1d-f06b1302d33e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">The code is present in the dist file (i have removed the contents):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/***/ "./src/metadata/oasbasicmetadataextensions.class.ts":
/*!**********************************************************!*\
!*** ./src/metadata/oasbasicmetadataextensions.class.ts ***!
\**********************************************************/
/*! flagged exports */
/*! export OasBasicMetadataTypeExtensionBase [provided] [no usage info] [missing usage info prevents renaming] */
/*! export __esModule [provided] [no usage info] [missing usage info prevents renaming] */
/*! other exports [not provided] [no usage info] */
/*! runtime requirements: __webpack_exports__, __webpack_require__ */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.OasBasicMetadataTypeExtensionBase = void 0;\r\nvar tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.js\");\r\nvar utils_1 = __webpack_require__(/*! ../utils */ \"./src/utils/index.ts\"); var OasBasicMetadataTypeExtensionBase = /** @class */ (function () {\r\n function OasBasicMetadataTypeExtensionBase(type, typeRef) {...}\r\nexports.OasBasicMetadataTypeExtensionBase = OasBasicMetadataTypeExtensionBase;//# sourceURL=webpack-internal:///./src/metadata/oasbasicmetadataextensions.class.ts\n");
/***/ })"><pre class="notranslate"><span class="pl-c">/***/</span> <span class="pl-s">"./src/metadata/oasbasicmetadataextensions.class.ts"</span>:
<span class="pl-c">/*!**********************************************************!*\</span>
<span class="pl-c"> !*** ./src/metadata/oasbasicmetadataextensions.class.ts ***!</span>
<span class="pl-c"> \**********************************************************/</span>
<span class="pl-c">/*! flagged exports */</span>
<span class="pl-c">/*! export OasBasicMetadataTypeExtensionBase [provided] [no usage info] [missing usage info prevents renaming] */</span>
<span class="pl-c">/*! export __esModule [provided] [no usage info] [missing usage info prevents renaming] */</span>
<span class="pl-c">/*! other exports [not provided] [no usage info] */</span>
<span class="pl-c">/*! runtime requirements: __webpack_exports__, __webpack_require__ */</span>
<span class="pl-c">/***/</span> <span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">__unused_webpack_module</span><span class="pl-kos">,</span> <span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s1">__webpack_require__</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s">"use strict"</span><span class="pl-kos">;</span>
<span class="pl-en">eval</span><span class="pl-kos">(</span><span class="pl-s">"\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.OasBasicMetadataTypeExtensionBase = void 0;\r\nvar tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.js\");\r\nvar utils_1 = __webpack_require__(/*! ../utils */ \"./src/utils/index.ts\"); var OasBasicMetadataTypeExtensionBase = /** @class */ (function () {\r\n function OasBasicMetadataTypeExtensionBase(type, typeRef) {...}\r\nexports.OasBasicMetadataTypeExtensionBase = OasBasicMetadataTypeExtensionBase;//# sourceURL=webpack-internal:///./src/metadata/oasbasicmetadataextensions.class.ts\n"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">/***/</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto"><strong>Config files:</strong><br>
<a href="https://gist.github.com/JonWallsten/69c82a3eb7688cae285f9034a8699f5b">https://gist.github.com/JonWallsten/69c82a3eb7688cae285f9034a8699f5b</a></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">I will work on a repro, but we have a large complex monorepo with a lot of sensitive information. Will update issue when I have created a similar repo with minimal code.</p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
Modules from our internal library, also built with Webpack, should be found in <code class="notranslate">__webpack_modules__</code> and the site should load just fine like it does with <code class="notranslate">mode: production</code>.</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version:<br>
Node.js version:<br>
Operating System:<br>
Additional tools:</p> | <p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
Report a bug (though i might just need to set a property somewhere - couldn't tell from the docs. I suspect this is related to natively supporting JSON modules now.)</p>
<p dir="auto"><strong>What is the current behavior?</strong><br>
I have a loader which loads a JSON file and outputs JS code. When I try to use it with Webpack 4, I get a JSON parse error (webpack is trying to parse the outputted JS code as JSON)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
ERROR in ./node_modules/config-loader!./src/config.json
Module parse failed: Unexpected token r in JSON at position 0
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token r in JSON at position 0
at JSON.parse (<anonymous>:null:null)
at JsonParser.parse (/Users/jback/dev/plugin-build/node_modules/webpack/lib/JsonParser.js:16:21)
at doBuild.err (/Users/jback/dev/plugin-build/node_modules/webpack/lib/NormalModule.js:367:32)
at runLoaders (/Users/jback/dev/plugin-build/node_modules/webpack/lib/NormalModule.js:264:12)
at /Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:370:3
at iterateNormalLoaders (/Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:211:10)
at iterateNormalLoaders (/Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:218:10)
at /Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:233:3
at runSyncOrAsync (/Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
at iterateNormalLoaders (/Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:229:2)
at Array.<anonymous> (/Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:202:4)
at Storage.finished (/Users/jback/dev/plugin-build/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:43:16)
at provider (/Users/jback/dev/plugin-build/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:79:9)
at /Users/jback/dev/plugin-build/node_modules/graceful-fs/graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)"><pre class="notranslate"><code class="notranslate">
ERROR in ./node_modules/config-loader!./src/config.json
Module parse failed: Unexpected token r in JSON at position 0
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token r in JSON at position 0
at JSON.parse (<anonymous>:null:null)
at JsonParser.parse (/Users/jback/dev/plugin-build/node_modules/webpack/lib/JsonParser.js:16:21)
at doBuild.err (/Users/jback/dev/plugin-build/node_modules/webpack/lib/NormalModule.js:367:32)
at runLoaders (/Users/jback/dev/plugin-build/node_modules/webpack/lib/NormalModule.js:264:12)
at /Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:370:3
at iterateNormalLoaders (/Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:211:10)
at iterateNormalLoaders (/Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:218:10)
at /Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:233:3
at runSyncOrAsync (/Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
at iterateNormalLoaders (/Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:229:2)
at Array.<anonymous> (/Users/jback/dev/plugin-build/node_modules/loader-runner/lib/LoaderRunner.js:202:4)
at Storage.finished (/Users/jback/dev/plugin-build/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:43:16)
at provider (/Users/jback/dev/plugin-build/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:79:9)
at /Users/jback/dev/plugin-build/node_modules/graceful-fs/graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
</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><br>
I can output JS code from my loader parsing a JSON file (maybe with an option saying I'm outputting JS instead of JSON)<br>
<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><br>
OSX 10.13.3, Node 8.9.4, Webpack 4</p> | 0 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>4.0.4</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 7</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Won't crash</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Crashed while the app was on a page, and the user was not doing much except moving the mouse around.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Not be able to reproduce yet.</p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">Callstack attached below. Is this some kind of double delete again? The closest I can find is <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="401171103" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/16472" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/16472/hovercard" href="https://github.com/electron/electron/pull/16472">#16472</a>, but 4.0.4 already has the fix for 16472 and the callstack looks different.</p>
<p dir="auto">invalid-read<br>
[ 00 ] base::ObserverListcontent::FrameTreeNode::Observer,0,1::RemoveObserver(content::FrameTreeNode::Observer const *) ( observer_list.h:253 )<br>
[ 01 ] atom::api::BrowserWindow::~BrowserWindow() ( atom_api_browser_window.cc:100 )<br>
[ 02 ] content::SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() ( session_storage_namespace_impl.cc:153 )<br>
[ 03 ] base::internal::WeakReference::IsValid() ( weak_ptr.cc:50 )<br>
[ 04 ] atom::api::BrowserWindow::~BrowserWindow() ( atom_api_browser_window.h:99 )<br>
[ 05 ] base::ThreadLocalStorage::Slot::Get() ( thread_local_storage.cc:362 )<br>
[ 06 ] base::debug::TaskAnnotator::RunTask(char const *,base::PendingTask *) ( task_annotator.cc:101 )<br>
[ 07 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 08 ] GetChainHead() ( TeamLink.exe )<br>
[ 09 ] ShimMalloc(unsigned __int64,void *) ( TeamLink.exe )<br>
[ 10 ] malloc(unsigned __int64) ( allocator_shim_override_ucrt_symbols_win.h:53 )<br>
[ 11 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 12 ] v8::internal::Isolate::Enter() ( isolate.cc:3113 )<br>
[ 13 ] base::ObserverListbase::MessageLoopCurrent::DestructionObserver,0,1::Iter::Iter(base::ObserverListbase::MessageLoopCurrent::DestructionObserver,0,1 const *) ( observer_list.h:122 )<br>
[ 14 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 15 ] atom::api::TopLevelWindow::OnWindowClosed() ( atom_api_top_level_window.cc:164 )<br>
[ 16 ] base::MessageLoop::RunTask(base::PendingTask *) ( message_loop.cc:421 )<br>
[ 17 ] base::circular_dequebase::PendingTask::MoveBuffer(base::internal::VectorBufferbase::PendingTask &,unsigned __int64,unsigned __int64,base::internal::VectorBufferbase::PendingTask *,unsigned __int64 *,unsigned __int64 *) ( circular_deque.h:920 )<br>
[ 18 ] base::PendingTask::PendingTask(base::PendingTask &&) ( pending_task.cc:19 )<br>
[ 19 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 20 ] base::MessageLoop::DoWork() ( message_loop.cc:480 )<br>
[ 21 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 22 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 23 ] atom::api::TopLevelWindow::OnWindowClosed() ( atom_api_top_level_window.cc:164 )<br>
[ 24 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 25 ] base::MessagePumpForUI::ProcessMessageHelper(tagMSG const &) ( message_pump_win.cc:375 )<br>
[ 26 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 27 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 28 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 29 ] atom::api::TopLevelWindow::OnWindowClosed() ( atom_api_top_level_window.cc:164 )<br>
[ 30 ] base::MessagePumpForUI::DoRunLoop() ( message_pump_win.cc:171 )<br>
[ 31 ] base::MessagePumpWin::Run(base::MessagePump::Delegate *) ( message_pump_win.cc:52 )<br>
[ 32 ] atom::Browser::SetMainMessageLoopQuitClosure(base::OnceCallback<void ()>) ( browser.cc:199 )<br>
[ 33 ] base::RunLoop::Run() ( run_loop.cc:102 )<br>
[ 34 ] content::BrowserMainLoop::MainMessageLoopRun() ( browser_main_loop.cc:1575 )<br>
[ 35 ] atom::JavascriptEnvironment::OnMessageLoopCreated() ( javascript_environment.cc:69 )<br>
[ 36 ] atom::AtomBrowserMainParts::MainMessageLoopRun(int *) ( atom_browser_main_parts.cc:256 )<br>
[ 37 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 38 ] content::BrowserMainLoop::RunMainMessageLoopParts() ( browser_main_loop.cc:1037 )<br>
[ 39 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 40 ] content::BrowserMainRunnerImpl::Run() ( browser_main_runner_impl.cc:162 )<br>
[ 41 ] content::BrowserMain(content::MainFunctionParams const &) ( browser_main.cc:47 )<br>
[ 42 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 43 ] base::ThreadLocalStorage::Slot::Set(void *) ( thread_local_storage.cc:377 )<br>
[ 44 ] GetChainHead() ( TeamLink.exe )<br>
[ 45 ] ShimMalloc(unsigned __int64,void *) ( TeamLink.exe )<br>
[ 46 ] malloc(unsigned __int64) ( allocator_shim_override_ucrt_symbols_win.h:53 )<br>
[ 47 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 48 ] std::basic_string<char,std::char_traits,std::allocator >::_Equal(char const * const) ( xstring:3769 )<br>
[ 49 ] operator new(unsigned __int64) ( new_scalar.cpp:35 )<br>
[ 50 ] content::RunBrowserProcessMain(content::MainFunctionParams const &,content::ContentMainDelegate *) ( content_main_runner_impl.cc:596 )<br>
[ 51 ] base::MessageLoop::DoIdleWork() ( message_loop.cc:551 )<br>
[ 52 ] content::ContentMainRunnerImpl::Run(bool) ( content_main_runner_impl.cc:947 )<br>
[ 53 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 54 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 55 ] service_manager::Main(service_manager::MainParams const &) ( main.cc:472 )<br>
[ 56 ] base::debug::ScopedLockAcquireActivity::ScopedLockAcquireActivity(void const *,base::internal::LockImpl const *) ( activity_tracker.cc:1793 )<br>
[ 57 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 58 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 59 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 60 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 61 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 62 ] base::win::internal::ScopedHandleVerifier::ScopedHandleVerifier(bool) ( scoped_handle_verifier.cc:61 )<br>
[ 63 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 64 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 65 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 66 ] GetChainHead() ( TeamLink.exe )<br>
[ 67 ] ShimMalloc(unsigned __int64,void *) ( TeamLink.exe )<br>
[ 68 ] malloc(unsigned __int64) ( allocator_shim_override_ucrt_symbols_win.h:53 )<br>
[ 69 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 70 ] operator new(unsigned __int64) ( new_scalar.cpp:35 )<br>
[ 71 ] GetChainHead() ( TeamLink.exe )<br>
[ 72 ] ShimMalloc(unsigned _<em>int64,void *) ( TeamLink.exe )<br>
[ 73 ] malloc(unsigned <em><em>int64) ( allocator_shim_override_ucrt_symbols_win.h:53 )<br>
[ 74 ] content::ContentMainRunnerImpl::Create() ( content_main_runner_impl.cc:640 )<br>
[ 75 ] content::ContentMain(content::ContentMainParams const &) ( content_main.cc:19 )<br>
[ 76 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 77 ] std::vector<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,std::allocator<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > > >::<em>Assign_range<wchar_t **>(wchar_t * *,wchar_t * *,std::forward_iterator_tag) ( vector:1373 )<br>
[ 78 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 79 ] wWinMain(HINSTANCE</em></em> *,HINSTANCE</em></em> *,wchar_t *,int) ( atom_main.cc:175 )<br>
[ 80 ] RtlUnwindEx ( TeamLink.exe )<br>
[ 81 ] invoke_main() ( TeamLink.exe )<br>
[ 82 ] __scrt_common_main_seh() ( exe_common.inl:288 )</p> | <ul dir="auto">
<li>Electron version: 1.6.1</li>
<li>Operating system: MacOS Sierra 10.12.3 (16D32)</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Async request not block UI</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Async request completely block UI</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">navigator.geolocation.getCurrentPosition() call block UI on MacOS. On Windows everything works fine.<br>
<a href="https://github.com/electron/electron/files/813394/geolocaiton.block.ui.zip">geolocaiton block ui.zip</a></p> | 0 |
<p dir="auto">It would be great if TypeScript had support for wrapping generated AMD/commonjs module declarations inside a toplevel "external" module, e.g.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tsc -d -m commonjs -mname test src/test.ts --outDir out"><pre class="notranslate"><code class="notranslate">tsc -d -m commonjs -mname test src/test.ts --outDir out
</code></pre></div>
<p dir="auto">would result with <code class="notranslate">out/test.d.ts</code> containing</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare module "test" {
// entire .d.ts file goes here
export ...
}"><pre class="notranslate"><span class="pl-k">declare</span> module <span class="pl-s">"test"</span> <span class="pl-kos">{</span>
<span class="pl-c">// entire .d.ts file goes here</span>
<span class="pl-s1">export</span> ...
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Currently I do this manually with a <a href="https://github.com/spion/tsc-wrap-definition">quick and hacky tool I wrote</a> which seems to work correctly so far for my <a href="https://github.com/doxout/promise-observer">limited needs</a></p> | <p dir="auto">Sorry if this is a duplicate - I'd imagine someone else has asked the same thing - but the absence of a node-facing require'able API has <a href="https://github.com/marijnh/tern/blob/master/lib/typescript.js#L9-L12">other tools like tern</a> requiring files within typescript, and these <a href="https://github.com/marijnh/tern/issues/468" data-hovercard-type="issue" data-hovercard-url="/ternjs/tern/issues/468/hovercard">files predictably move</a> and break those tools.</p> | 0 |
<p dir="auto">The instructions of the waypoint read "Nest one div element with the class well within each of your col-xs-6 div elements." Which I understand it requires something like this:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div class="col-xs-6">
<div class="well"></div>
</div>
<div class="col-xs-6">
<div class="well"></div>
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<p dir="auto">However the first test require "Add two div elements inside your div class="well"> element both with the class col-xs-6" which I understand is asking this:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div class="well">
<div class="col-xs-6"></div>
</div>
<div class="well">
<div class="col-xs-6"></div>
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">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">In other hand, that very test is fulfilled by just nesting <em>one</em> "well" div inside <em>one</em> of the "col-xs-6" (see the screenshot below).</p>
<p dir="auto">Waypoint URL:<br>
<a href="http://www.freecodecamp.com/challenges/waypoint-create-bootstrap-wells" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-create-bootstrap-wells</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1670763/9414901/37057c1a-4812-11e5-946a-f308e3e5d0a4.png"><img src="https://cloud.githubusercontent.com/assets/1670763/9414901/37057c1a-4812-11e5-946a-f308e3e5d0a4.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-create-bootstrap-wells" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-create-bootstrap-wells</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8844886/9320279/e81aebf6-450c-11e5-8a2b-c5b27affca4c.png"><img src="https://cloud.githubusercontent.com/assets/8844886/9320279/e81aebf6-450c-11e5-8a2b-c5b27affca4c.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">Multi-field is great, but searching with multiple analyzers against only one field is simpler/better.<br>
If you have a multi-lingual index, where each document has its source language, you can analyze the text fields using a special analyzer, based on the detected language (maybe even using the <a href="http://www.elasticsearch.org/guide/reference/mapping/analyzer-field.html" rel="nofollow"><code class="notranslate">_analyzer.path</code></a> functionality).<br>
But what happens when you misdetected the language somehow, either at index- or at query-time? Some aggressive stemming can have devastating effects.</p>
<p dir="auto">In such a scenario, having the original words indexed in parallel to the stemmed one would help. Be they in the same field would even letting phrase/slop queries work properly.<br>
The only way to get multiple terms at the same position with ElasticSearch is through the <a href="http://www.elasticsearch.org/guide/reference/index-modules/analysis/synonym-tokenfilter.html" rel="nofollow">synonym token filter</a>, useless for stemming.</p>
<p dir="auto">I've been working on a way to merge the terms that multiple analyzers output.<br>
Say you want both to use a <a href="http://www.elasticsearch.org/guide/reference/index-modules/analysis/simple-analyzer.html" rel="nofollow">simple analyzer</a>, and any of the specialized <a href="http://www.elasticsearch.org/guide/reference/index-modules/analysis/lang-analyzer.html" rel="nofollow">language-specific analyzer</a>, or anything.<br>
My plugin can make it as simple as the following index setting:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="index:
analysis:
analyzer:
# An analyzer using both the "simple" analyzer and the sophisticated "english" analyzer, combining the resulting terms
combo_en:
type: combo
sub_analyzers: [simple, english]"><pre class="notranslate"><code class="notranslate">index:
analysis:
analyzer:
# An analyzer using both the "simple" analyzer and the sophisticated "english" analyzer, combining the resulting terms
combo_en:
type: combo
sub_analyzers: [simple, english]
</code></pre></div>
<p dir="auto">Here is a simple example of what is does:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# What the "simple" analyzer outputs
curl -XGET 'localhost:9200/yakaz/_analyze?pretty=1&analyzer=simple' -d 'An example'
{
"tokens" : [ {
"token" : "an",
"start_offset" : 0,
"end_offset" : 2,
"type" : "word",
"position" : 1
}, {
"token" : "example",
"start_offset" : 3,
"end_offset" : 10,
"type" : "word",
"position" : 2
} ]
}
# What the "english" analyzer outputs
curl -XGET 'localhost:9200/yakaz/_analyze?pretty=1&analyzer=english' -d 'An example'
{
"tokens" : [ {
"token" : "exampl",
"start_offset" : 3,
"end_offset" : 10,
"type" : "<ALPHANUM>",
"position" : 2
} ]
}
# Now what our combined analyzer outputs
curl -XGET 'localhost:9200/yakaz/_analyze?pretty=1&analyzer=combo_en' -d 'An example'
{
"tokens" : [ {
"token" : "an",
"start_offset" : 0,
"end_offset" : 2,
"type" : "word",
"position" : 1
}, {
"token" : "example",
"start_offset" : 3,
"end_offset" : 10,
"type" : "word",
"position" : 2
}, {
"token" : "exampl",
"start_offset" : 3,
"end_offset" : 10,
"type" : "<ALPHANUM>",
"position" : 2
} ]
}"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> What the "simple" analyzer outputs</span>
curl -XGET <span class="pl-s"><span class="pl-pds">'</span>localhost:9200/yakaz/_analyze?pretty=1&analyzer=simple<span class="pl-pds">'</span></span> -d <span class="pl-s"><span class="pl-pds">'</span>An example<span class="pl-pds">'</span></span>
{
<span class="pl-s"><span class="pl-pds">"</span>tokens<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> [ {
<span class="pl-s"><span class="pl-pds">"</span>token<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>an<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>start_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 0,
<span class="pl-s"><span class="pl-pds">"</span>end_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 2,
<span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>word<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>position<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 1
}, {
<span class="pl-s"><span class="pl-pds">"</span>token<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>example<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>start_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 3,
<span class="pl-s"><span class="pl-pds">"</span>end_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 10,
<span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>word<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>position<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 2
} ]
}
<span class="pl-c"><span class="pl-c">#</span> What the "english" analyzer outputs</span>
curl -XGET <span class="pl-s"><span class="pl-pds">'</span>localhost:9200/yakaz/_analyze?pretty=1&analyzer=english<span class="pl-pds">'</span></span> -d <span class="pl-s"><span class="pl-pds">'</span>An example<span class="pl-pds">'</span></span>
{
<span class="pl-s"><span class="pl-pds">"</span>tokens<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> [ {
<span class="pl-s"><span class="pl-pds">"</span>token<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>exampl<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>start_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 3,
<span class="pl-s"><span class="pl-pds">"</span>end_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 10,
<span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span><ALPHANUM><span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>position<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 2
} ]
}
<span class="pl-c"><span class="pl-c">#</span> Now what our combined analyzer outputs</span>
curl -XGET <span class="pl-s"><span class="pl-pds">'</span>localhost:9200/yakaz/_analyze?pretty=1&analyzer=combo_en<span class="pl-pds">'</span></span> -d <span class="pl-s"><span class="pl-pds">'</span>An example<span class="pl-pds">'</span></span>
{
<span class="pl-s"><span class="pl-pds">"</span>tokens<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> [ {
<span class="pl-s"><span class="pl-pds">"</span>token<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>an<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>start_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 0,
<span class="pl-s"><span class="pl-pds">"</span>end_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 2,
<span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>word<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>position<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 1
}, {
<span class="pl-s"><span class="pl-pds">"</span>token<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>example<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>start_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 3,
<span class="pl-s"><span class="pl-pds">"</span>end_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 10,
<span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>word<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>position<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 2
}, {
<span class="pl-s"><span class="pl-pds">"</span>token<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>exampl<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>start_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 3,
<span class="pl-s"><span class="pl-pds">"</span>end_offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 10,
<span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span><ALPHANUM><span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>position<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 2
} ]
}</pre></div>
<p dir="auto">Terms are sorted by position, then by start/end offset, so that it's easier to use its output under reasonable assumptions of using a classical analyzer.</p>
<p dir="auto">Here is the good news! You can find my implementation here: <a href="https://github.com/ofavre/elasticsearch/tree/combo-analyzer-v0.16.4">https://github.com/ofavre/elasticsearch/tree/combo-analyzer-v0.16.4</a> (based on released ElasticSearch version 0.16.4).</p>
<p dir="auto"><strong>EDIT:</strong> It is finally available as a plugin, thanks to jprante: <a href="https://github.com/yakaz/elasticsearch-analysis-combo">https://github.com/yakaz/elasticsearch-analysis-combo</a>.</p> | <p dir="auto"><strong>Describe the feature</strong>:<br>
close inactive index(without read or write) for configable time.<br>
when it is visited first time, open it.</p> | 0 |
<h2 dir="auto">❓ Pytorch 1.0.0 compile failure on Ubuntu 16.04 LTS with CUDA 10.1</h2>
<p dir="auto">I want to install <code class="notranslate">pytorch = 1.0.0</code> to implement a specific baseline on a compute machine with CUDA version of 10.1, However there seems to be no existing binary compatible with this configuration. So I try to compile the source.</p>
<h3 dir="auto">Command before Compilation</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Environment Variables
export CUDA_HOME=/usr/local/cuda
export PATH="/usr/local/cuda/bin:$PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64"
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/cuda/lib64"
source ~/.bashrc
# create conda environment with Python=3.6.9
...
# Install basic dependencies
conda install numpy pyyaml mkl mkl-include setuptools cmake cffi typing
conda install -c mingfeima mkldnn
# Add LAPACK support for the GPU
conda install -c pytorch magma-cuda101
# clone the pytorch source code
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
# checkout to version 1.0.0
git checkout tags/v1.0.0
export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
# install
python setup.py install"><pre class="notranslate"><code class="notranslate"># Environment Variables
export CUDA_HOME=/usr/local/cuda
export PATH="/usr/local/cuda/bin:$PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64"
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/cuda/lib64"
source ~/.bashrc
# create conda environment with Python=3.6.9
...
# Install basic dependencies
conda install numpy pyyaml mkl mkl-include setuptools cmake cffi typing
conda install -c mingfeima mkldnn
# Add LAPACK support for the GPU
conda install -c pytorch magma-cuda101
# clone the pytorch source code
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
# checkout to version 1.0.0
git checkout tags/v1.0.0
export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
# install
python setup.py install
</code></pre></div>
<h3 dir="auto">logs</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Building wheel torch-1.0.0a0+db5d313
running install
setup.py::run()
running build_deps
+ SYNC_COMMAND=cp
++ command -v rsync
+ '[' -x /usr/bin/rsync ']'
+ SYNC_COMMAND='rsync -lptgoD'
+ CMAKE_COMMAND=cmake
++ command -v cmake3
+ [[ -x '' ]]
+ USE_CUDA=0
+ USE_FBGEMM=0
+ USE_ROCM=0
+ USE_NNPACK=0
+ USE_MKLDNN=0
+ USE_QNNPACK=0
+ USE_GLOO_IBVERBS=0
+ CAFFE2_STATIC_LINK_CUDA=0
+ RERUN_CMAKE=1
+ [[ 5 -gt 0 ]]
+ case "$1" in
+ USE_CUDA=1
+ shift
+ [[ 4 -gt 0 ]]
+ case "$1" in
+ USE_NNPACK=1
+ shift
+ [[ 3 -gt 0 ]]
+ case "$1" in
+ USE_MKLDNN=1
+ shift
+ [[ 2 -gt 0 ]]
+ case "$1" in
+ USE_QNNPACK=1
+ shift
+ [[ 1 -gt 0 ]]
+ case "$1" in
+ break
+ CMAKE_INSTALL='make install'
+ BUILD_SHARED_LIBS=ON
+ USER_CFLAGS=
+ USER_LDFLAGS=
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
++ uname
+ '[' Linux == Darwin ']'
+++ dirname ../tools/build_pytorch_libs.sh
++ cd ../tools/..
+++ pwd
++ printf '%q\n' /home/chxt/pytorch
+ BASE_DIR=/home/chxt/pytorch
+ TORCH_LIB_DIR=/home/chxt/pytorch/torch/lib
+ INSTALL_DIR=/home/chxt/pytorch/torch/lib/tmp_install
+ THIRD_PARTY_DIR=/home/chxt/pytorch/third_party
+ C_FLAGS=
+ C_FLAGS=' -DOMPI_SKIP_MPICXX=1'
+ LDFLAGS=
+ LD_POSTFIX=.so
++ uname
+ [[ Linux == \D\a\r\w\i\n ]]
+ [[ 0 -eq 1 ]]
+ LDFLAGS=' -Wl,-rpath,$ORIGIN'
+ CPP_FLAGS=' -std=c++11 '
+ THD_FLAGS=
+ [[ 0 -eq 1 ]]
+ CUDA_NVCC_FLAGS=' -DOMPI_SKIP_MPICXX=1'
+ [[ -z '' ]]
+ CUDA_DEVICE_DEBUG=0
+ '[' -z '' ']'
++ getconf _NPROCESSORS_ONLN
+ MAX_JOBS=40
+ BUILD_TYPE=Release
+ [[ -n '' ]]
+ [[ -n '' ]]
+ echo 'Building in Release mode'
Building in Release mode
+ mkdir -p /home/chxt/pytorch/torch/lib/tmp_install
+ for arg in '"$@"'
+ [[ caffe2 == \c\a\f\f\e\2 ]]
+ build_caffe2
+ [[ -z '' ]]
+ EXTRA_CAFFE2_CMAKE_FLAGS=()
+ [[ -n '' ]]
+ [[ -n /home/chxt/anaconda3;/home/chxt/anaconda3/envs/rcan/lib/python3.6/site-packages ]]
+ EXTRA_CAFFE2_CMAKE_FLAGS+=("-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH")
+ [[ 1 -eq 1 ]]
+ cmake /home/chxt/pytorch -DPYTHON_EXECUTABLE=/home/chxt/anaconda3/envs/rcan/bin/python -DPYTHON_LIBRARY=/home/chxt/anaconda3/envs/rcan/lib/libpython3.6m.so.1.0 -DPYTHON_INCLUDE_DIR=/home/chxt/anaconda3/envs/rcan/include/python3.6m -DBUILDING_WITH_TORCH_LIBS=ON -DTORCH_BUILD_VERSION=1.0.0a0+db5d313 -DCMAKE_BUILD_TYPE=Release -DBUILD_TORCH=ON -DBUILD_PYTHON=ON -DBUILD_SHARED_LIBS=ON -DBUILD_BINARY=OFF -DBUILD_TEST=ON -DINSTALL_TEST=ON -DBUILD_CAFFE2_OPS=ON -DONNX_NAMESPACE=onnx_torch -DUSE_CUDA=1 -DUSE_DISTRIBUTED=ON -DUSE_FBGEMM=0 -DUSE_NUMPY= -DNUMPY_INCLUDE_DIR=/home/chxt/anaconda3/envs/rcan/lib/python3.6/site-packages/numpy/core/include -DUSE_SYSTEM_NCCL=OFF -DNCCL_INCLUDE_DIR= -DNCCL_ROOT_DIR= -DNCCL_SYSTEM_LIB= -DCAFFE2_STATIC_LINK_CUDA=0 -DUSE_ROCM=0 -DUSE_NNPACK=1 -DUSE_LEVELDB=OFF -DUSE_LMDB=OFF -DUSE_OPENCV=OFF -DUSE_QNNPACK=1 -DUSE_FFMPEG=OFF -DUSE_GLOG=OFF -DUSE_GFLAGS=OFF -DUSE_SYSTEM_EIGEN_INSTALL=OFF -DCUDNN_INCLUDE_DIR= -DCUDNN_LIB_DIR= -DCUDNN_LIBRARY= -DUSE_MKLDNN=1 -DNCCL_EXTERNAL=1 -DCMAKE_INSTALL_PREFIX=/home/chxt/pytorch/torch/lib/tmp_install -DCMAKE_C_FLAGS= -DCMAKE_CXX_FLAGS= '-DCMAKE_EXE_LINKER_FLAGS= -Wl,-rpath,$ORIGIN ' '-DCMAKE_SHARED_LINKER_FLAGS= -Wl,-rpath,$ORIGIN ' -DTHD_SO_VERSION=1 '-DCMAKE_PREFIX_PATH=/home/chxt/anaconda3;/home/chxt/anaconda3/envs/rcan/lib/python3.6/site-packages'
-- std::exception_ptr is supported.
-- NUMA is disabled
-- Turning off deprecation warning due to glog.
-- Current compiler supports avx2 extension. Will build perfkernels.
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- Caffe2 protobuf include directory: $<BUILD_INTERFACE:/home/chxt/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
-- The BLAS backend of choice:MKL
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
-- Library mkl_intel_lp64: /home/chxt/anaconda3/lib/libmkl_intel_lp64.so
-- Library mkl_gnu_thread: /home/chxt/anaconda3/lib/libmkl_gnu_thread.so
-- Library mkl_core: /home/chxt/anaconda3/lib/libmkl_core.so
-- Found OpenMP_C: -fopenmp
-- Found OpenMP_CXX: -fopenmp
-- Library gomp: -fopenmp
-- Library pthread: /usr/lib/x86_64-linux-gnu/libpthread.so
-- Library m: /usr/lib/x86_64-linux-gnu/libm.so
-- Library dl: /usr/lib/x86_64-linux-gnu/libdl.so
-- Brace yourself, we are building NNPACK
-- Found PythonInterp: /home/chxt/anaconda3/envs/rcan/bin/python (found version "3.6.9")
-- NNPACK backend is x86-64
-- Failed to find LLVM FileCheck
-- git Version: v1.4.0-505be96a
-- Version: 1.4.0
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Using third party subdirectory Eigen.
Python 3.6.9 :: Anaconda, Inc.
-- Found PythonInterp: /home/chxt/anaconda3/envs/rcan/bin/python (found suitable version "3.6.9", minimum required is "2.7")
-- Could NOT find pybind11 (missing: pybind11_DIR)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Using third_party/pybind11.
-- Found CUDA: /usr/local/cuda (found suitable version "10.1", minimum required is "7.0")
-- Caffe2: CUDA detected: 10.1
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 10.1
-- Could NOT find CUDNN (missing: CUDNN_INCLUDE_DIR CUDNN_LIBRARY)
CMake Warning at cmake/public/cuda.cmake:101 (message):
Caffe2: Cannot find cuDNN library. Turning the option off
Call Stack (most recent call first):
cmake/Dependencies.cmake:681 (include)
CMakeLists.txt:201 (include)
-- Autodetected CUDA architecture(s): 7.5;7.5;7.5;7.5;7.5;7.5
-- Added CUDA NVCC flags for: -gencode;arch=compute_75,code=sm_75
-- Could NOT find CUB (missing: CUB_INCLUDE_DIR)
-- CUDA detected: 10.1
Generated: /home/chxt/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.proto
Generated: /home/chxt/pytorch/build/third_party/onnx/onnx/onnx-operators_onnx_torch-ml.proto
--
-- ******** Summary ********
-- CMake version : 3.14.0
-- CMake command : /home/chxt/anaconda3/envs/rcan/bin/cmake
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 5.4.0
-- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -Wnon-virtual-dtor
-- Build type : Release
-- Compile definitions : TH_BLAS_MKL
-- CMAKE_PREFIX_PATH : /home/chxt/anaconda3;/home/chxt/anaconda3/envs/rcan/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX : /home/chxt/pytorch/torch/lib/tmp_install
-- CMAKE_MODULE_PATH : /home/chxt/pytorch/cmake/Modules;/home/chxt/pytorch/cmake/public/../Modules_CUDA_fix
--
-- ONNX version : 1.6.0
-- ONNX NAMESPACE : onnx_torch
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_USE_LITE_PROTO : OFF
-- ONNXIFI_DUMMY_BACKEND : OFF
-- ONNXIFI_ENABLE_EXT : OFF
--
-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_ONNX_PYTHON : OFF
-- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor
-- Removing -DNDEBUG from compile flags
-- Compiling with MAGMA support
-- MAGMA INCLUDE DIRECTORIES: /home/chxt/anaconda3/envs/rcan/include
-- MAGMA LIBRARIES: /home/chxt/anaconda3/envs/rcan/lib/libmagma.a
-- MAGMA V2 check: 1
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- AVX compiler support found
-- AVX2 compiler support found
-- Atomics: using C11 intrinsics
-- Found a library with BLAS API (mkl).
-- Found a library with LAPACK API. (mkl)
-- Found CUDA: /usr/local/cuda (found suitable version "10.1", minimum required is "5.5")
-- CuDNN not found. Compiling without CuDNN support
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
-- Detecting Intel(R) MKL: trying mklml_intel
-- Intel(R) MKL: include /home/chxt/anaconda3/envs/rcan/include
-- Intel(R) MKL: lib /home/chxt/anaconda3/envs/rcan/lib/libmklml_intel.so
-- Found OpenMP_C: -fopenmp
-- Found OpenMP_CXX: -fopenmp
-- OpenMP lib: /home/chxt/anaconda3/lib/libiomp5.so
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- VTune profiling environment is unset
CMake Warning (dev) at cmake/public/mkldnn.cmake:1 (find_package):
Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
CMake variable MKLDNN_ROOT is set to:
/home/chxt/pytorch/third_party/ideep/mkl-dnn
For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
cmake/Dependencies.cmake:1309 (INCLUDE)
CMakeLists.txt:201 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- GCC 5.4.0: Adding gcc and gcc_s libs to link line
-- Using python found in /home/chxt/anaconda3/envs/rcan/bin/python
-- Configuring build for SLEEF-v3.4.0
Target system: Linux-4.4.0-31-generic
Target processor: x86_64
Host system: Linux-4.4.0-31-generic
Host processor: x86_64
Detected C compiler: GNU @ /usr/bin/cc
-- Using option `-Wall -Wno-unused -Wno-attributes -Wno-unused-result -Wno-psabi -ffp-contract=off -fno-math-errno -fno-trapping-math` to compile libsleef
-- Building shared libs : OFF
-- MPFR : /home/chxt/anaconda3/lib/libmpfr.so
-- MPFR header file in /home/chxt/anaconda3/include
-- GMP : /home/chxt/anaconda3/lib/libgmp.so
-- RT : /usr/lib/x86_64-linux-gnu/librt.so
-- FFTW3 : LIBFFTW3-NOTFOUND
-- OPENSSL : 1.1.1d
-- SDE : SDE_COMMAND-NOTFOUND
-- RUNNING_ON_TRAVIS : 0
-- COMPILER_SUPPORTS_OPENMP : 1
-- Using python found in /home/chxt/anaconda3/envs/rcan/bin/python
-- /usr/bin/c++ /home/chxt/pytorch/torch/abi-check.cpp -o /home/chxt/pytorch/build/abi-check
-- Determined _GLIBCXX_USE_CXX11_ABI=1
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
-- Found CUDA: /usr/local/cuda (found suitable version "10.1", minimum required is "7.5")
-- Building the gloo backend with TCP support only
-- Found CUDA: /usr/local/cuda (found version "10.1")
-- Building C10D with CUDA support
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
-- Not able to find MPI, will compile c10d without MPI support
-- Include NCCL operators
-- Including IDEEP operators
-- Excluding image processing operators due to no opencv
-- Excluding video processing operators due to no opencv
-- MPI operators skipped due to no MPI support
-- Include Observer library
-- Using lib/python3.7/site-packages as python relative installation path
-- Automatically generating missing __init__.py files.
-- A previous caffe2 cmake run already created the __init__.py files.
CMake Warning at CMakeLists.txt:389 (message):
Generated cmake files are only fully tested if one builds with system glog,
gflags, and protobuf. Other settings may generate files that are not well
tested.
--
-- ******** Summary ********
-- General:
-- CMake version : 3.14.0
-- CMake command : /home/chxt/anaconda3/envs/rcan/bin/cmake
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 5.4.0
-- BLAS : MKL
-- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wno-unused-but-set-variable -Wno-maybe-uninitialized
-- Build type : Release
-- Compile definitions : TH_BLAS_MKL;ONNX_NAMESPACE=onnx_torch;MAGMA_V2;USE_C11_ATOMICS=1;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1
-- CMAKE_PREFIX_PATH : /home/chxt/anaconda3;/home/chxt/anaconda3/envs/rcan/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX : /home/chxt/pytorch/torch/lib/tmp_install
--
-- TORCH_VERSION : 1.0.0
-- CAFFE2_VERSION : 1.0.0
-- BUILD_ATEN_MOBILE : OFF
-- BUILD_ATEN_ONLY : OFF
-- BUILD_BINARY : OFF
-- BUILD_CUSTOM_PROTOBUF : ON
-- Link local protobuf : ON
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : ON
-- Python version : 3.6.9
-- Python executable : /home/chxt/anaconda3/envs/rcan/bin/python
-- Pythonlibs version : 3.6.9
-- Python library : /home/chxt/anaconda3/envs/rcan/lib/libpython3.6m.so.1.0
-- Python includes : /home/chxt/anaconda3/envs/rcan/include/python3.6m
-- Python site-packages: lib/python3.6/site-packages
-- BUILD_CAFFE2_OPS : ON
-- BUILD_SHARED_LIBS : ON
-- BUILD_TEST : ON
-- USE_ASAN : OFF
-- USE_CUDA : 1
-- CUDA static link : 0
-- USE_CUDNN : OFF
-- CUDA version : 10.1
-- CUDA root directory : /usr/local/cuda
-- CUDA library : /usr/local/cuda/lib64/stubs/libcuda.so
-- cudart library : /usr/local/cuda/lib64/libcudart_static.a;-pthread;dl;/usr/lib/x86_64-linux-gnu/librt.so
-- cublas library : /usr/lib/x86_64-linux-gnu/libcublas.so
-- cufft library : /usr/local/cuda/lib64/libcufft.so
-- curand library : /usr/local/cuda/lib64/libcurand.so
-- nvrtc : /usr/local/cuda/lib64/libnvrtc.so
-- CUDA include path : /usr/local/cuda/include
-- NVCC executable : /usr/local/cuda/bin/nvcc
-- CUDA host compiler : /usr/bin/cc
-- USE_TENSORRT : OFF
-- USE_ROCM : 0
-- USE_EIGEN_FOR_BLAS :
-- USE_FBGEMM : 0
-- USE_FFMPEG : OFF
-- USE_GFLAGS : OFF
-- USE_GLOG : OFF
-- USE_LEVELDB : OFF
-- USE_LITE_PROTO : OFF
-- USE_LMDB : OFF
-- USE_METAL : OFF
-- USE_MKL : ON
-- USE_MKLDNN : ON
-- USE_MOBILE_OPENGL : OFF
-- USE_NCCL : ON
-- USE_SYSTEM_NCCL : OFF
-- USE_NNPACK : 1
-- USE_NUMPY : ON
-- USE_OBSERVERS : ON
-- USE_OPENCL : OFF
-- USE_OPENCV : OFF
-- USE_OPENMP : OFF
-- USE_PROF : OFF
-- USE_QNNPACK : 1
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_ZMQ : OFF
-- USE_DISTRIBUTED : ON
-- USE_MPI : OFF
-- USE_GLOO : ON
-- USE_GLOO_IBVERBS : OFF
-- Public Dependencies : Threads::Threads;caffe2::mkl;caffe2::mkldnn
-- Private Dependencies : qnnpack;nnpack;cpuinfo;fp16;gloo;aten_op_header_gen;onnxifi_loader;rt;gcc_s;gcc;dl
-- Configuring done
-- Generating done
-- Build files have been written to: /home/chxt/pytorch/build
+ make install -j40
[ 1%] Built target mkrename_gnuabi
[ 1%] Built target mkdisp
[ 1%] Built target ATEN_CPU_FILES_GEN_TARGET
[ 1%] Built target clog
[ 1%] Built target nccl_external
[ 1%] Built target torch_shm_manager
[ 1%] Built target c10_utils_cpu
[ 1%] Built target gtest
[ 1%] Built target arraymap
[ 1%] Built target onnxifi_loader
[ 2%] Built target libprotobuf-lite
[ 2%] Built target onnxifi_dummy
[ 2%] Built target pthreadpool
[ 2%] Built target mkalias
[ 2%] Built target c10_utils_gpu
[ 2%] Built target c10_utils_hip
[ 2%] Built target ATEN_CUDA_FILES_GEN_TARGET
[ 4%] Built target gloo
[ 4%] Built target common
[ 4%] Built target mkrename
[ 5%] Built target benchmark
[ 5%] Built target mkmasked_gnuabi
[ 7%] Built target c10
[ 7%] Built target dispsse.c_generated
[ 7%] Built target __aten_op_header_gen
[ 7%] Built target dispavx.c_generated
[ 7%] Built target gtest_main
[ 8%] Built target cpuinfo_internals
[ 8%] Built target onnxifi_wrapper
[ 8%] Built target renameSSE2.h_generated
[ 9%] Built target cpuinfo
[ 9%] Built target nnpack_reference_layers
[ 9%] Built target renameAVX2128.h_generated
[ 9%] Built target renameSSE4.h_generated
[ 9%] Built target renameAVX2.h_generated
[ 9%] Built target headers
[ 9%] Built target renamePURECFMA_SCALAR.h_generated
[ 9%] Built target renameAVX.h_generated
[ 9%] Built target renamePUREC_SCALAR.h_generated
[ 9%] Built target renamedsp256.h_generated
[ 9%] Built target renameFMA4.h_generated
[ 9%] Built target renamedsp128.h_generated
[ 9%] Built target benchmark_main
[ 13%] Built target libprotobuf
[ 13%] Built target c10_cuda
[ 13%] Built target c10_intrusive_ptr_test
[ 13%] Built target c10_Metaprogramming_test
[ 13%] Built target c10_typeid_test
[ 13%] Built target c10_OpSchema_test
[ 13%] Built target c10_TypeTraits_test
[ 13%] Built target c10_logging_test
[ 13%] Built target c10_InlineStreamGuard_test
[ 13%] Built target c10_TypeList_test
[ 13%] Built target c10_flags_test
[ 13%] Built target c10_InlineDeviceGuard_test
[ 13%] Built target c10_TensorTypeId_test
[ 13%] Built target c10_DeviceGuard_test
[ 13%] Built target c10_Array_test
[ 13%] Built target c10_registry_test
[ 14%] Built target c10_StreamGuard_test
[ 14%] Built target c10_utils_hip_test
[ 14%] Built target sleefavx2128
[ 14%] Built target c10_Half_test
[ 14%] Built target c10_utils_gpu_test
[ 15%] Built target c10_utils_cpu_test
[ 15%] Built target sleefsse2
[ 16%] Built target nnpack
[ 17%] Built target sleefdetavx2128
[ 17%] Built target sleefdetsse4
[ 18%] Built target sleefpurecfma_scalar
[ 18%] Built target sleefdetpurecfma_scalar
[ 18%] Built target sleefdetsse2
[ 18%] Built target sleefpurec_scalar
[ 18%] Built target sleefsse4
[ 18%] Built target sleefdetpurec_scalar
[ 18%] Built target sleefdetavx2
[ 18%] Built target sleefavx
[ 18%] Built target sleefavx2
[ 20%] Built target qnnpack
[ 20%] Built target gloo_cuda
[ 20%] Built target dispavx_obj
[ 20%] Built target dispsse_obj
[ 20%] Built target sleefdetfma4
[ 20%] Built target sleefdetavx
[ 20%] Built target sleeffma4
[ 26%] Built target mkldnn
[ 26%] Built target c10_cuda_CUDATest
[ 27%] Built target sleef
[ 31%] Built target libprotoc
[ 31%] Built target protoc
[ 31%] Built target gen_onnx_proto
[ 31%] Built target Caffe2_PROTO
[ 32%] Built target onnx_proto
[ 32%] Built target caffe2_protos
[ 33%] Built target Caffe2_perfkernels_avx
[ 33%] Built target Caffe2_perfkernels_avx2
[ 35%] Built target onnx
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/dropout_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/concat_split_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/elementwise_sum_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_fusion_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/relu_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/operator_fallback_ideep.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/local_response_normalization_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/utility_ops.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/fully_connected_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/momentum_sgd_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/pool_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/spatial_batch_norm_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/sigmoid_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/atomic_ops.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/utils/ideep_register.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/squeeze_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_add_gradient_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/distance_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/do_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/dropout_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_add_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_logical_ops.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_div_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_div_gradient_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_linear_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sum_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sub_gradient_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops_schema.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_mul_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops_utils.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/exp_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elu_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sub_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ensure_clipped_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ensure_cpu_output_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops.cc.o
[ 36%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_mul_gradient_op.cc.o
[ 36%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/enforce_finite_op.cc.o
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/fully_connected_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/pool_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/relu_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/local_response_normalization_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/squeeze_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/spatial_batch_norm_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/concat_split_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/dropout_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/momentum_sgd_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/elementwise_sum_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/sigmoid_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/relu_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/pool_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/fully_connected_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/spatial_batch_norm_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/local_response_normalization_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/squeeze_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/concat_split_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/dropout_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/momentum_sgd_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/elementwise_sum_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/sigmoid_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/operators/atomic_ops.cc:7:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc:3:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/third_party/ideep/include/ideep_pin_singletons.hpp:4,
from /home/chxt/pytorch/caffe2/ideep/utils/ideep_register.cc:4:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
[ 36%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/expand_op.cc.o
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/operators/atomic_ops.cc:7:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/third_party/ideep/include/ideep_pin_singletons.hpp:4,
from /home/chxt/pytorch/caffe2/ideep/utils/ideep_register.cc:4:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc:3:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
[ 36%] Built target python_copy_files
[ 36%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/expand_squeeze_dims_op.cc.o
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/operators/distance_op.cc:4:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/operators/distance_op.cc:4:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/caffe2/operators/atomic_ops.cc:7:0:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In member function ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice()’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:146:20: error: ‘class ideep::tensor’ has no member named ‘reorder_from’
dtensor->reorder_from(dst_dims, itensor::data_type::f32,
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc: In member function ‘virtual bool caffe2::IDEEPConvOp::RunOnDeviceWithOrderNCHW()’:
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:55:30: error: no matching function for call to ‘ideep::tensor::init(ideep::param::descriptor&)’
expected_descriptor);
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:1091:8: note: candidate: template<class alloc> void ideep::tensor::init(const ideep::param::descriptor&)
void init(const descriptor& adesc) {
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:1091:8: note: template argument deduction/substitution failed:
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:55:30: error: wrong number of template arguments (2, should be at least 0)
expected_descriptor);
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:56:14: error: ‘ideep::reorder’ has not been declared
ideep::reorder::compute(filter_in, filter_);
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:76:17: error: call of overloaded ‘compute(const ideep::tensor&, const ideep::tensor&, const ideep::tensor&, std::vector<int>&, ideep::tensor&, std::vector<int>&, std::vector<int>&, ideep::param::dims, ideep::param::dims, int&)’ is ambiguous
group_);
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:41:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/computations.hpp:551:15: note: candidate: static void ideep::convolution_forward::compute(const ideep::tensor&, const ideep::tensor&, const ideep::tensor&, const tdims_t&, ideep::tensor&, const tdims_t&, const tdims_t&, const tdims_t&, const tdims_t&, int, const scale_t&, const scale_t&, const scale_t&, const attr_t&, ideep::algorithm, ideep::prop_kind, ideep::padding_kind, ideep::lowp_kind) [with alloc = ideep::utils::allocator; bool with_bias = true; ideep::tdims_t = std::vector<int>; ideep::scale_t = std::vector<float>; ideep::attr_t = ideep::descriptor_group::attr_t; ideep::algorithm = mkldnn::algorithm; ideep::prop_kind = mkldnn::prop_kind; ideep::padding_kind = mkldnn::padding_kind]
static void compute(const tensor& src, const tensor& weights, const tensor& bias,
^
/home/chxt/pytorch/third_party/ideep/include/ideep/computations.hpp:579:15: note: candidate: static void ideep::convolution_forward::compute(const ideep::tensor&, const ideep::tensor&, const ideep::tensor&, const tdims_t&, ideep::tensor&, const tdims_t&, const tdims_t&, const tdims_t&, const tdims_t&, int, const attr_t&, ideep::algorithm, ideep::prop_kind, ideep::padding_kind) [with alloc = ideep::utils::allocator; bool with_bias = true; ideep::tdims_t = std::vector<int>; ideep::attr_t = ideep::descriptor_group::attr_t; ideep::algorithm = mkldnn::algorithm; ideep::prop_kind = mkldnn::prop_kind; ideep::padding_kind = mkldnn::padding_kind]
static void compute(const tensor& src, const tensor& weights, const tensor& bias,
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:87:17: error: call of overloaded ‘compute(const ideep::tensor&, const ideep::tensor&, std::vector<int>&, ideep::tensor&, std::vector<int>&, std::vector<int>&, ideep::param::dims, ideep::param::dims, int&)’ is ambiguous
group_);
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:41:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/computations.hpp:565:15: note: candidate: static void ideep::convolution_forward::compute(const ideep::tensor&, const ideep::tensor&, const tdims_t&, ideep::tensor&, const tdims_t&, const tdims_t&, const tdims_t&, const tdims_t&, int, const scale_t&, const scale_t&, const scale_t&, const attr_t&, ideep::algorithm, ideep::prop_kind, ideep::padding_kind, ideep::lowp_kind) [with alloc = ideep::utils::allocator; ideep::tdims_t = std::vector<int>; ideep::scale_t = std::vector<float>; ideep::attr_t = ideep::descriptor_group::attr_t; ideep::algorithm = mkldnn::algorithm; ideep::prop_kind = mkldnn::prop_kind; ideep::padding_kind = mkldnn::padding_kind]
static void compute(const tensor& src, const tensor& weights,
^
/home/chxt/pytorch/third_party/ideep/include/ideep/computations.hpp:592:15: note: candidate: static void ideep::convolution_forward::compute(const ideep::tensor&, const ideep::tensor&, const tdims_t&, ideep::tensor&, const tdims_t&, const tdims_t&, const tdims_t&, const tdims_t&, int, const attr_t&, ideep::algorithm, ideep::prop_kind, ideep::padding_kind) [with alloc = ideep::utils::allocator; ideep::tdims_t = std::vector<int>; ideep::attr_t = ideep::descriptor_group::attr_t; ideep::algorithm = mkldnn::algorithm; ideep::prop_kind = mkldnn::prop_kind; ideep::padding_kind = mkldnn::padding_kind]
static void compute(const tensor& src, const tensor& weights,
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc: In member function ‘virtual bool caffe2::IDEEPConvFusionOp::RunOnDeviceWithOrderNCHW()’:
/home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:88:32: error: no matching function for call to ‘ideep::tensor::init(ideep::param::descriptor&)’
expected_descriptor);
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:1091:8: note: candidate: template<class alloc> void ideep::tensor::init(const ideep::param::descriptor&)
void init(const descriptor& adesc) {
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:1091:8: note: template argument deduction/substitution failed:
/home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:88:32: error: wrong number of template arguments (2, should be at least 0)
expected_descriptor);
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:89:16: error: ‘ideep::reorder’ has not been declared
ideep::reorder::compute(filter, filter_);
^
/home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc: In member function ‘virtual bool caffe2::CopyCPUToIDEEPOp::RunOnDevice()’:
/home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc:22:31: error: ‘class ideep::tensor’ has no member named ‘reorder_from’
Y->GetMutable<itensor>()->reorder_from(
^
/home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc: In member function ‘virtual bool caffe2::CopyIDEEPToCPUOp::RunOnDevice()’:
/home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc:61:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
X.reorder_to(Y->template mutable_data<float>());
^
In file included from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:1:0:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In member function ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice()’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:146:20: error: ‘class ideep::tensor’ has no member named ‘reorder_from’
dtensor->reorder_from(dst_dims, itensor::data_type::f32,
^
In file included from /home/chxt/pytorch/caffe2/operators/distance_op.cc:4:0:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In member function ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice()’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:146:20: error: ‘class ideep::tensor’ has no member named ‘reorder_from’
dtensor->reorder_from(dst_dims, itensor::data_type::f32,
^
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::fb::{anonymous}::CreateMutexOp; SkipOutputCopy = caffe2::SkipIndices<0>]’:
/home/chxt/pytorch/caffe2/operators/atomic_ops.cc:153:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
input.reorder_to(dtensor->template mutable_data<float>());
^
caffe2/CMakeFiles/caffe2.dir/build.make:3565: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/utils/ideep_register.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/utils/ideep_register.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
caffe2/CMakeFiles/caffe2.dir/build.make:3461: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/momentum_sgd_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/momentum_sgd_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3500: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/relu_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/relu_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3409: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/dropout_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/dropout_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3539: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/squeeze_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/squeeze_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3487: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/pool_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/pool_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3552: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/utility_ops.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/utility_ops.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3448: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/local_response_normalization_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/local_response_normalization_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3396: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3526: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/spatial_batch_norm_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/spatial_batch_norm_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3513: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/sigmoid_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/sigmoid_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3435: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/fully_connected_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/fully_connected_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3422: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/elementwise_sum_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/elementwise_sum_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3370: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/concat_split_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/concat_split_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3383: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_fusion_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_fusion_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3812: recipe for target 'caffe2/CMakeFiles/caffe2.dir/operators/atomic_ops.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/operators/atomic_ops.cc.o] Error 1
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::L1DistanceGradientOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/operators/distance_op.cc:764:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
input.reorder_to(dtensor->template mutable_data<float>());
^
caffe2/CMakeFiles/caffe2.dir/build.make:4410: recipe for target 'caffe2/CMakeFiles/caffe2.dir/operators/distance_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/operators/distance_op.cc.o] Error 1
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::AdamOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
input.reorder_to(dtensor->template mutable_data<float>());
^
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BinaryElementwiseWithArgsGradientOp<caffe2::TensorTypes<int, long int, float, double>, caffe2::CPUContext, caffe2::BinaryFunctorWithDefaultCtor<caffe2::MulFunctor<caffe2::CPUContext> >, caffe2::SameTypeAsInput, caffe2::SameTypeAsInput>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LeakyReluGradientOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ConvTransposeGradientOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BinaryElementwiseWithArgsOp<caffe2::TensorTypes<float>, caffe2::CPUContext, caffe2::BinaryFunctorWithDefaultCtor<caffe2::TanhGradientFunctor<caffe2::CPUContext> >, caffe2::SameTypeAsInput>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BinaryElementwiseWithArgsGradientOp<caffe2::TensorTypes<int, long int, float, double>, caffe2::CPUContext, caffe2::BinaryFunctorWithDefaultCtor<caffe2::AddFunctor<caffe2::CPUContext> >, caffe2::SameTypeAsInput, caffe2::SameTypeAsInput>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::AccuracyOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ScaleOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::L1DistanceOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::UnaryElementwiseWithArgsOp<caffe2::TensorTypes<float>, caffe2::CPUContext, caffe2::UnaryFunctorWithDefaultCtor<caffe2::TanhFunctor<caffe2::CPUContext> >, caffe2::SameTypeAsInput>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BinaryElementwiseWithArgsOp<caffe2::TensorTypes<int, long int, float, double>, caffe2::CPUContext, caffe2::BinaryFunctorWithDefaultCtor<caffe2::MulFunctor<caffe2::CPUContext> >, caffe2::SameTypeAsInput>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LeakyReluOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::WeightedSumOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LearningRateOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::IterOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::SoftmaxGradientOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LabelCrossEntropyGradientOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::AveragedLossGradient<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::CTCBeamSearchDecoderOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::CTCGreedyDecoderOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::PReluOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::PadImageOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::StopGradientOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::AffineChannelOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BBoxTransformOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BoxWithNMSLimitOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<0, 1, 2>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::CollectAndDistributeFpnRpnProposalsOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::GenerateProposalsOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::RoIAlignRotatedOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::RoIAlignOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::SaveOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LoadOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::GivenTensorFillOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::MSRAFillOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::GaussianFillOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ConstantFillOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::XavierFillOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ReshapeOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<1>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::TransposeOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ResizeLikeOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::FlattenOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ConvTransposeOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::AveragedLoss<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<0>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LabelCrossEntropyOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ChannelShuffleOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::SoftmaxOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
caffe2/CMakeFiles/caffe2.dir/build.make:3474: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/operator_fallback_ideep.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/operator_fallback_ideep.cc.o] Error 1
CMakeFiles/Makefile2:3508: recipe for target 'caffe2/CMakeFiles/caffe2.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/caffe2.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
setup.py::build_deps::run()
Failed to run 'bash ../tools/build_pytorch_libs.sh --use-cuda --use-nnpack --use-mkldnn --use-qnnpack caffe2'"><pre class="notranslate"><code class="notranslate">Building wheel torch-1.0.0a0+db5d313
running install
setup.py::run()
running build_deps
+ SYNC_COMMAND=cp
++ command -v rsync
+ '[' -x /usr/bin/rsync ']'
+ SYNC_COMMAND='rsync -lptgoD'
+ CMAKE_COMMAND=cmake
++ command -v cmake3
+ [[ -x '' ]]
+ USE_CUDA=0
+ USE_FBGEMM=0
+ USE_ROCM=0
+ USE_NNPACK=0
+ USE_MKLDNN=0
+ USE_QNNPACK=0
+ USE_GLOO_IBVERBS=0
+ CAFFE2_STATIC_LINK_CUDA=0
+ RERUN_CMAKE=1
+ [[ 5 -gt 0 ]]
+ case "$1" in
+ USE_CUDA=1
+ shift
+ [[ 4 -gt 0 ]]
+ case "$1" in
+ USE_NNPACK=1
+ shift
+ [[ 3 -gt 0 ]]
+ case "$1" in
+ USE_MKLDNN=1
+ shift
+ [[ 2 -gt 0 ]]
+ case "$1" in
+ USE_QNNPACK=1
+ shift
+ [[ 1 -gt 0 ]]
+ case "$1" in
+ break
+ CMAKE_INSTALL='make install'
+ BUILD_SHARED_LIBS=ON
+ USER_CFLAGS=
+ USER_LDFLAGS=
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
++ uname
+ '[' Linux == Darwin ']'
+++ dirname ../tools/build_pytorch_libs.sh
++ cd ../tools/..
+++ pwd
++ printf '%q\n' /home/chxt/pytorch
+ BASE_DIR=/home/chxt/pytorch
+ TORCH_LIB_DIR=/home/chxt/pytorch/torch/lib
+ INSTALL_DIR=/home/chxt/pytorch/torch/lib/tmp_install
+ THIRD_PARTY_DIR=/home/chxt/pytorch/third_party
+ C_FLAGS=
+ C_FLAGS=' -DOMPI_SKIP_MPICXX=1'
+ LDFLAGS=
+ LD_POSTFIX=.so
++ uname
+ [[ Linux == \D\a\r\w\i\n ]]
+ [[ 0 -eq 1 ]]
+ LDFLAGS=' -Wl,-rpath,$ORIGIN'
+ CPP_FLAGS=' -std=c++11 '
+ THD_FLAGS=
+ [[ 0 -eq 1 ]]
+ CUDA_NVCC_FLAGS=' -DOMPI_SKIP_MPICXX=1'
+ [[ -z '' ]]
+ CUDA_DEVICE_DEBUG=0
+ '[' -z '' ']'
++ getconf _NPROCESSORS_ONLN
+ MAX_JOBS=40
+ BUILD_TYPE=Release
+ [[ -n '' ]]
+ [[ -n '' ]]
+ echo 'Building in Release mode'
Building in Release mode
+ mkdir -p /home/chxt/pytorch/torch/lib/tmp_install
+ for arg in '"$@"'
+ [[ caffe2 == \c\a\f\f\e\2 ]]
+ build_caffe2
+ [[ -z '' ]]
+ EXTRA_CAFFE2_CMAKE_FLAGS=()
+ [[ -n '' ]]
+ [[ -n /home/chxt/anaconda3;/home/chxt/anaconda3/envs/rcan/lib/python3.6/site-packages ]]
+ EXTRA_CAFFE2_CMAKE_FLAGS+=("-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH")
+ [[ 1 -eq 1 ]]
+ cmake /home/chxt/pytorch -DPYTHON_EXECUTABLE=/home/chxt/anaconda3/envs/rcan/bin/python -DPYTHON_LIBRARY=/home/chxt/anaconda3/envs/rcan/lib/libpython3.6m.so.1.0 -DPYTHON_INCLUDE_DIR=/home/chxt/anaconda3/envs/rcan/include/python3.6m -DBUILDING_WITH_TORCH_LIBS=ON -DTORCH_BUILD_VERSION=1.0.0a0+db5d313 -DCMAKE_BUILD_TYPE=Release -DBUILD_TORCH=ON -DBUILD_PYTHON=ON -DBUILD_SHARED_LIBS=ON -DBUILD_BINARY=OFF -DBUILD_TEST=ON -DINSTALL_TEST=ON -DBUILD_CAFFE2_OPS=ON -DONNX_NAMESPACE=onnx_torch -DUSE_CUDA=1 -DUSE_DISTRIBUTED=ON -DUSE_FBGEMM=0 -DUSE_NUMPY= -DNUMPY_INCLUDE_DIR=/home/chxt/anaconda3/envs/rcan/lib/python3.6/site-packages/numpy/core/include -DUSE_SYSTEM_NCCL=OFF -DNCCL_INCLUDE_DIR= -DNCCL_ROOT_DIR= -DNCCL_SYSTEM_LIB= -DCAFFE2_STATIC_LINK_CUDA=0 -DUSE_ROCM=0 -DUSE_NNPACK=1 -DUSE_LEVELDB=OFF -DUSE_LMDB=OFF -DUSE_OPENCV=OFF -DUSE_QNNPACK=1 -DUSE_FFMPEG=OFF -DUSE_GLOG=OFF -DUSE_GFLAGS=OFF -DUSE_SYSTEM_EIGEN_INSTALL=OFF -DCUDNN_INCLUDE_DIR= -DCUDNN_LIB_DIR= -DCUDNN_LIBRARY= -DUSE_MKLDNN=1 -DNCCL_EXTERNAL=1 -DCMAKE_INSTALL_PREFIX=/home/chxt/pytorch/torch/lib/tmp_install -DCMAKE_C_FLAGS= -DCMAKE_CXX_FLAGS= '-DCMAKE_EXE_LINKER_FLAGS= -Wl,-rpath,$ORIGIN ' '-DCMAKE_SHARED_LINKER_FLAGS= -Wl,-rpath,$ORIGIN ' -DTHD_SO_VERSION=1 '-DCMAKE_PREFIX_PATH=/home/chxt/anaconda3;/home/chxt/anaconda3/envs/rcan/lib/python3.6/site-packages'
-- std::exception_ptr is supported.
-- NUMA is disabled
-- Turning off deprecation warning due to glog.
-- Current compiler supports avx2 extension. Will build perfkernels.
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- Caffe2 protobuf include directory: $<BUILD_INTERFACE:/home/chxt/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
-- The BLAS backend of choice:MKL
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
-- Library mkl_intel_lp64: /home/chxt/anaconda3/lib/libmkl_intel_lp64.so
-- Library mkl_gnu_thread: /home/chxt/anaconda3/lib/libmkl_gnu_thread.so
-- Library mkl_core: /home/chxt/anaconda3/lib/libmkl_core.so
-- Found OpenMP_C: -fopenmp
-- Found OpenMP_CXX: -fopenmp
-- Library gomp: -fopenmp
-- Library pthread: /usr/lib/x86_64-linux-gnu/libpthread.so
-- Library m: /usr/lib/x86_64-linux-gnu/libm.so
-- Library dl: /usr/lib/x86_64-linux-gnu/libdl.so
-- Brace yourself, we are building NNPACK
-- Found PythonInterp: /home/chxt/anaconda3/envs/rcan/bin/python (found version "3.6.9")
-- NNPACK backend is x86-64
-- Failed to find LLVM FileCheck
-- git Version: v1.4.0-505be96a
-- Version: 1.4.0
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Using third party subdirectory Eigen.
Python 3.6.9 :: Anaconda, Inc.
-- Found PythonInterp: /home/chxt/anaconda3/envs/rcan/bin/python (found suitable version "3.6.9", minimum required is "2.7")
-- Could NOT find pybind11 (missing: pybind11_DIR)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Using third_party/pybind11.
-- Found CUDA: /usr/local/cuda (found suitable version "10.1", minimum required is "7.0")
-- Caffe2: CUDA detected: 10.1
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 10.1
-- Could NOT find CUDNN (missing: CUDNN_INCLUDE_DIR CUDNN_LIBRARY)
CMake Warning at cmake/public/cuda.cmake:101 (message):
Caffe2: Cannot find cuDNN library. Turning the option off
Call Stack (most recent call first):
cmake/Dependencies.cmake:681 (include)
CMakeLists.txt:201 (include)
-- Autodetected CUDA architecture(s): 7.5;7.5;7.5;7.5;7.5;7.5
-- Added CUDA NVCC flags for: -gencode;arch=compute_75,code=sm_75
-- Could NOT find CUB (missing: CUB_INCLUDE_DIR)
-- CUDA detected: 10.1
Generated: /home/chxt/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.proto
Generated: /home/chxt/pytorch/build/third_party/onnx/onnx/onnx-operators_onnx_torch-ml.proto
--
-- ******** Summary ********
-- CMake version : 3.14.0
-- CMake command : /home/chxt/anaconda3/envs/rcan/bin/cmake
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 5.4.0
-- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -Wnon-virtual-dtor
-- Build type : Release
-- Compile definitions : TH_BLAS_MKL
-- CMAKE_PREFIX_PATH : /home/chxt/anaconda3;/home/chxt/anaconda3/envs/rcan/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX : /home/chxt/pytorch/torch/lib/tmp_install
-- CMAKE_MODULE_PATH : /home/chxt/pytorch/cmake/Modules;/home/chxt/pytorch/cmake/public/../Modules_CUDA_fix
--
-- ONNX version : 1.6.0
-- ONNX NAMESPACE : onnx_torch
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_USE_LITE_PROTO : OFF
-- ONNXIFI_DUMMY_BACKEND : OFF
-- ONNXIFI_ENABLE_EXT : OFF
--
-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_ONNX_PYTHON : OFF
-- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor
-- Removing -DNDEBUG from compile flags
-- Compiling with MAGMA support
-- MAGMA INCLUDE DIRECTORIES: /home/chxt/anaconda3/envs/rcan/include
-- MAGMA LIBRARIES: /home/chxt/anaconda3/envs/rcan/lib/libmagma.a
-- MAGMA V2 check: 1
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- AVX compiler support found
-- AVX2 compiler support found
-- Atomics: using C11 intrinsics
-- Found a library with BLAS API (mkl).
-- Found a library with LAPACK API. (mkl)
-- Found CUDA: /usr/local/cuda (found suitable version "10.1", minimum required is "5.5")
-- CuDNN not found. Compiling without CuDNN support
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
-- Detecting Intel(R) MKL: trying mklml_intel
-- Intel(R) MKL: include /home/chxt/anaconda3/envs/rcan/include
-- Intel(R) MKL: lib /home/chxt/anaconda3/envs/rcan/lib/libmklml_intel.so
-- Found OpenMP_C: -fopenmp
-- Found OpenMP_CXX: -fopenmp
-- OpenMP lib: /home/chxt/anaconda3/lib/libiomp5.so
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- VTune profiling environment is unset
CMake Warning (dev) at cmake/public/mkldnn.cmake:1 (find_package):
Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
CMake variable MKLDNN_ROOT is set to:
/home/chxt/pytorch/third_party/ideep/mkl-dnn
For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
cmake/Dependencies.cmake:1309 (INCLUDE)
CMakeLists.txt:201 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- GCC 5.4.0: Adding gcc and gcc_s libs to link line
-- Using python found in /home/chxt/anaconda3/envs/rcan/bin/python
-- Configuring build for SLEEF-v3.4.0
Target system: Linux-4.4.0-31-generic
Target processor: x86_64
Host system: Linux-4.4.0-31-generic
Host processor: x86_64
Detected C compiler: GNU @ /usr/bin/cc
-- Using option `-Wall -Wno-unused -Wno-attributes -Wno-unused-result -Wno-psabi -ffp-contract=off -fno-math-errno -fno-trapping-math` to compile libsleef
-- Building shared libs : OFF
-- MPFR : /home/chxt/anaconda3/lib/libmpfr.so
-- MPFR header file in /home/chxt/anaconda3/include
-- GMP : /home/chxt/anaconda3/lib/libgmp.so
-- RT : /usr/lib/x86_64-linux-gnu/librt.so
-- FFTW3 : LIBFFTW3-NOTFOUND
-- OPENSSL : 1.1.1d
-- SDE : SDE_COMMAND-NOTFOUND
-- RUNNING_ON_TRAVIS : 0
-- COMPILER_SUPPORTS_OPENMP : 1
-- Using python found in /home/chxt/anaconda3/envs/rcan/bin/python
-- /usr/bin/c++ /home/chxt/pytorch/torch/abi-check.cpp -o /home/chxt/pytorch/build/abi-check
-- Determined _GLIBCXX_USE_CXX11_ABI=1
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
-- Found CUDA: /usr/local/cuda (found suitable version "10.1", minimum required is "7.5")
-- Building the gloo backend with TCP support only
-- Found CUDA: /usr/local/cuda (found version "10.1")
-- Building C10D with CUDA support
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
-- Not able to find MPI, will compile c10d without MPI support
-- Include NCCL operators
-- Including IDEEP operators
-- Excluding image processing operators due to no opencv
-- Excluding video processing operators due to no opencv
-- MPI operators skipped due to no MPI support
-- Include Observer library
-- Using lib/python3.7/site-packages as python relative installation path
-- Automatically generating missing __init__.py files.
-- A previous caffe2 cmake run already created the __init__.py files.
CMake Warning at CMakeLists.txt:389 (message):
Generated cmake files are only fully tested if one builds with system glog,
gflags, and protobuf. Other settings may generate files that are not well
tested.
--
-- ******** Summary ********
-- General:
-- CMake version : 3.14.0
-- CMake command : /home/chxt/anaconda3/envs/rcan/bin/cmake
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 5.4.0
-- BLAS : MKL
-- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wno-unused-but-set-variable -Wno-maybe-uninitialized
-- Build type : Release
-- Compile definitions : TH_BLAS_MKL;ONNX_NAMESPACE=onnx_torch;MAGMA_V2;USE_C11_ATOMICS=1;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1
-- CMAKE_PREFIX_PATH : /home/chxt/anaconda3;/home/chxt/anaconda3/envs/rcan/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX : /home/chxt/pytorch/torch/lib/tmp_install
--
-- TORCH_VERSION : 1.0.0
-- CAFFE2_VERSION : 1.0.0
-- BUILD_ATEN_MOBILE : OFF
-- BUILD_ATEN_ONLY : OFF
-- BUILD_BINARY : OFF
-- BUILD_CUSTOM_PROTOBUF : ON
-- Link local protobuf : ON
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : ON
-- Python version : 3.6.9
-- Python executable : /home/chxt/anaconda3/envs/rcan/bin/python
-- Pythonlibs version : 3.6.9
-- Python library : /home/chxt/anaconda3/envs/rcan/lib/libpython3.6m.so.1.0
-- Python includes : /home/chxt/anaconda3/envs/rcan/include/python3.6m
-- Python site-packages: lib/python3.6/site-packages
-- BUILD_CAFFE2_OPS : ON
-- BUILD_SHARED_LIBS : ON
-- BUILD_TEST : ON
-- USE_ASAN : OFF
-- USE_CUDA : 1
-- CUDA static link : 0
-- USE_CUDNN : OFF
-- CUDA version : 10.1
-- CUDA root directory : /usr/local/cuda
-- CUDA library : /usr/local/cuda/lib64/stubs/libcuda.so
-- cudart library : /usr/local/cuda/lib64/libcudart_static.a;-pthread;dl;/usr/lib/x86_64-linux-gnu/librt.so
-- cublas library : /usr/lib/x86_64-linux-gnu/libcublas.so
-- cufft library : /usr/local/cuda/lib64/libcufft.so
-- curand library : /usr/local/cuda/lib64/libcurand.so
-- nvrtc : /usr/local/cuda/lib64/libnvrtc.so
-- CUDA include path : /usr/local/cuda/include
-- NVCC executable : /usr/local/cuda/bin/nvcc
-- CUDA host compiler : /usr/bin/cc
-- USE_TENSORRT : OFF
-- USE_ROCM : 0
-- USE_EIGEN_FOR_BLAS :
-- USE_FBGEMM : 0
-- USE_FFMPEG : OFF
-- USE_GFLAGS : OFF
-- USE_GLOG : OFF
-- USE_LEVELDB : OFF
-- USE_LITE_PROTO : OFF
-- USE_LMDB : OFF
-- USE_METAL : OFF
-- USE_MKL : ON
-- USE_MKLDNN : ON
-- USE_MOBILE_OPENGL : OFF
-- USE_NCCL : ON
-- USE_SYSTEM_NCCL : OFF
-- USE_NNPACK : 1
-- USE_NUMPY : ON
-- USE_OBSERVERS : ON
-- USE_OPENCL : OFF
-- USE_OPENCV : OFF
-- USE_OPENMP : OFF
-- USE_PROF : OFF
-- USE_QNNPACK : 1
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_ZMQ : OFF
-- USE_DISTRIBUTED : ON
-- USE_MPI : OFF
-- USE_GLOO : ON
-- USE_GLOO_IBVERBS : OFF
-- Public Dependencies : Threads::Threads;caffe2::mkl;caffe2::mkldnn
-- Private Dependencies : qnnpack;nnpack;cpuinfo;fp16;gloo;aten_op_header_gen;onnxifi_loader;rt;gcc_s;gcc;dl
-- Configuring done
-- Generating done
-- Build files have been written to: /home/chxt/pytorch/build
+ make install -j40
[ 1%] Built target mkrename_gnuabi
[ 1%] Built target mkdisp
[ 1%] Built target ATEN_CPU_FILES_GEN_TARGET
[ 1%] Built target clog
[ 1%] Built target nccl_external
[ 1%] Built target torch_shm_manager
[ 1%] Built target c10_utils_cpu
[ 1%] Built target gtest
[ 1%] Built target arraymap
[ 1%] Built target onnxifi_loader
[ 2%] Built target libprotobuf-lite
[ 2%] Built target onnxifi_dummy
[ 2%] Built target pthreadpool
[ 2%] Built target mkalias
[ 2%] Built target c10_utils_gpu
[ 2%] Built target c10_utils_hip
[ 2%] Built target ATEN_CUDA_FILES_GEN_TARGET
[ 4%] Built target gloo
[ 4%] Built target common
[ 4%] Built target mkrename
[ 5%] Built target benchmark
[ 5%] Built target mkmasked_gnuabi
[ 7%] Built target c10
[ 7%] Built target dispsse.c_generated
[ 7%] Built target __aten_op_header_gen
[ 7%] Built target dispavx.c_generated
[ 7%] Built target gtest_main
[ 8%] Built target cpuinfo_internals
[ 8%] Built target onnxifi_wrapper
[ 8%] Built target renameSSE2.h_generated
[ 9%] Built target cpuinfo
[ 9%] Built target nnpack_reference_layers
[ 9%] Built target renameAVX2128.h_generated
[ 9%] Built target renameSSE4.h_generated
[ 9%] Built target renameAVX2.h_generated
[ 9%] Built target headers
[ 9%] Built target renamePURECFMA_SCALAR.h_generated
[ 9%] Built target renameAVX.h_generated
[ 9%] Built target renamePUREC_SCALAR.h_generated
[ 9%] Built target renamedsp256.h_generated
[ 9%] Built target renameFMA4.h_generated
[ 9%] Built target renamedsp128.h_generated
[ 9%] Built target benchmark_main
[ 13%] Built target libprotobuf
[ 13%] Built target c10_cuda
[ 13%] Built target c10_intrusive_ptr_test
[ 13%] Built target c10_Metaprogramming_test
[ 13%] Built target c10_typeid_test
[ 13%] Built target c10_OpSchema_test
[ 13%] Built target c10_TypeTraits_test
[ 13%] Built target c10_logging_test
[ 13%] Built target c10_InlineStreamGuard_test
[ 13%] Built target c10_TypeList_test
[ 13%] Built target c10_flags_test
[ 13%] Built target c10_InlineDeviceGuard_test
[ 13%] Built target c10_TensorTypeId_test
[ 13%] Built target c10_DeviceGuard_test
[ 13%] Built target c10_Array_test
[ 13%] Built target c10_registry_test
[ 14%] Built target c10_StreamGuard_test
[ 14%] Built target c10_utils_hip_test
[ 14%] Built target sleefavx2128
[ 14%] Built target c10_Half_test
[ 14%] Built target c10_utils_gpu_test
[ 15%] Built target c10_utils_cpu_test
[ 15%] Built target sleefsse2
[ 16%] Built target nnpack
[ 17%] Built target sleefdetavx2128
[ 17%] Built target sleefdetsse4
[ 18%] Built target sleefpurecfma_scalar
[ 18%] Built target sleefdetpurecfma_scalar
[ 18%] Built target sleefdetsse2
[ 18%] Built target sleefpurec_scalar
[ 18%] Built target sleefsse4
[ 18%] Built target sleefdetpurec_scalar
[ 18%] Built target sleefdetavx2
[ 18%] Built target sleefavx
[ 18%] Built target sleefavx2
[ 20%] Built target qnnpack
[ 20%] Built target gloo_cuda
[ 20%] Built target dispavx_obj
[ 20%] Built target dispsse_obj
[ 20%] Built target sleefdetfma4
[ 20%] Built target sleefdetavx
[ 20%] Built target sleeffma4
[ 26%] Built target mkldnn
[ 26%] Built target c10_cuda_CUDATest
[ 27%] Built target sleef
[ 31%] Built target libprotoc
[ 31%] Built target protoc
[ 31%] Built target gen_onnx_proto
[ 31%] Built target Caffe2_PROTO
[ 32%] Built target onnx_proto
[ 32%] Built target caffe2_protos
[ 33%] Built target Caffe2_perfkernels_avx
[ 33%] Built target Caffe2_perfkernels_avx2
[ 35%] Built target onnx
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/dropout_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/concat_split_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/elementwise_sum_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_fusion_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/relu_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/operator_fallback_ideep.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/local_response_normalization_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/utility_ops.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/fully_connected_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/momentum_sgd_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/pool_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/spatial_batch_norm_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/sigmoid_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/atomic_ops.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/utils/ideep_register.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/squeeze_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_add_gradient_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/distance_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/do_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/dropout_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_add_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_logical_ops.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_div_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_div_gradient_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_linear_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sum_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sub_gradient_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops_schema.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_mul_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops_utils.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/exp_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elu_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sub_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ensure_clipped_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ensure_cpu_output_op.cc.o
[ 35%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops.cc.o
[ 36%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_mul_gradient_op.cc.o
[ 36%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/enforce_finite_op.cc.o
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/fully_connected_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/pool_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/relu_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/local_response_normalization_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/squeeze_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/spatial_batch_norm_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/concat_split_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/dropout_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/momentum_sgd_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/elementwise_sum_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/sigmoid_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/relu_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/pool_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/fully_connected_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/spatial_batch_norm_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/local_response_normalization_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/squeeze_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/concat_split_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/dropout_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/momentum_sgd_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/elementwise_sum_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/sigmoid_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/operators/atomic_ops.cc:7:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc:3:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/third_party/ideep/include/ideep_pin_singletons.hpp:4,
from /home/chxt/pytorch/caffe2/ideep/utils/ideep_register.cc:4:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
[ 36%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/expand_op.cc.o
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/operators/atomic_ops.cc:7:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/third_party/ideep/include/ideep_pin_singletons.hpp:4,
from /home/chxt/pytorch/caffe2/ideep/utils/ideep_register.cc:4:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc:3:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
[ 36%] Built target python_copy_files
[ 36%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/expand_squeeze_dims_op.cc.o
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:39:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/operators/distance_op.cc:4:
/home/chxt/pytorch/third_party/ideep/include/ideep/abstract_types.hpp:151:16: error: ‘mkldnn_rnn_packed’ was not declared in this scope
rnn_packed = mkldnn_rnn_packed,
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:6,
from /home/chxt/pytorch/caffe2/operators/distance_op.cc:4:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::convert_to_public_format(mkldnn_memory_format_t)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:347:12: error: ‘mkldnn_nChw4c’ was not declared in this scope
case mkldnn_nChw4c:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:396:12: error: ‘mkldnn_Goihw16g_s8s8’ was not declared in this scope
case mkldnn_Goihw16g_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:398:12: error: ‘mkldnn_gOIhw2i8o4i’ was not declared in this scope
case mkldnn_gOIhw2i8o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:399:12: error: ‘mkldnn_gOIhw2i8o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw2i8o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:400:12: error: ‘mkldnn_gOIhw4o4i’ was not declared in this scope
case mkldnn_gOIhw4o4i:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:401:12: error: ‘mkldnn_gOIhw4o4i_s8s8’ was not declared in this scope
case mkldnn_gOIhw4o4i_s8s8:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:402:12: error: ‘mkldnn_gOIhw4i4o’ was not declared in this scope
case mkldnn_gOIhw4i4o:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:421:12: error: ‘mkldnn_rnn_packed’ was not declared in this scope
case mkldnn_rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp: In static member function ‘static ideep::format ideep::param::descriptor::public_format(ideep::format)’:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:464:9: error: duplicate case value
case format::rnn_packed:
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:460:9: error: previously used here
case format::ldigo:
^
In file included from /home/chxt/pytorch/caffe2/operators/atomic_ops.cc:7:0:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In member function ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice()’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:146:20: error: ‘class ideep::tensor’ has no member named ‘reorder_from’
dtensor->reorder_from(dst_dims, itensor::data_type::f32,
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc: In member function ‘virtual bool caffe2::IDEEPConvOp::RunOnDeviceWithOrderNCHW()’:
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:55:30: error: no matching function for call to ‘ideep::tensor::init(ideep::param::descriptor&)’
expected_descriptor);
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:1091:8: note: candidate: template<class alloc> void ideep::tensor::init(const ideep::param::descriptor&)
void init(const descriptor& adesc) {
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:1091:8: note: template argument deduction/substitution failed:
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:55:30: error: wrong number of template arguments (2, should be at least 0)
expected_descriptor);
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:56:14: error: ‘ideep::reorder’ has not been declared
ideep::reorder::compute(filter_in, filter_);
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:76:17: error: call of overloaded ‘compute(const ideep::tensor&, const ideep::tensor&, const ideep::tensor&, std::vector<int>&, ideep::tensor&, std::vector<int>&, std::vector<int>&, ideep::param::dims, ideep::param::dims, int&)’ is ambiguous
group_);
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:41:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/computations.hpp:551:15: note: candidate: static void ideep::convolution_forward::compute(const ideep::tensor&, const ideep::tensor&, const ideep::tensor&, const tdims_t&, ideep::tensor&, const tdims_t&, const tdims_t&, const tdims_t&, const tdims_t&, int, const scale_t&, const scale_t&, const scale_t&, const attr_t&, ideep::algorithm, ideep::prop_kind, ideep::padding_kind, ideep::lowp_kind) [with alloc = ideep::utils::allocator; bool with_bias = true; ideep::tdims_t = std::vector<int>; ideep::scale_t = std::vector<float>; ideep::attr_t = ideep::descriptor_group::attr_t; ideep::algorithm = mkldnn::algorithm; ideep::prop_kind = mkldnn::prop_kind; ideep::padding_kind = mkldnn::padding_kind]
static void compute(const tensor& src, const tensor& weights, const tensor& bias,
^
/home/chxt/pytorch/third_party/ideep/include/ideep/computations.hpp:579:15: note: candidate: static void ideep::convolution_forward::compute(const ideep::tensor&, const ideep::tensor&, const ideep::tensor&, const tdims_t&, ideep::tensor&, const tdims_t&, const tdims_t&, const tdims_t&, const tdims_t&, int, const attr_t&, ideep::algorithm, ideep::prop_kind, ideep::padding_kind) [with alloc = ideep::utils::allocator; bool with_bias = true; ideep::tdims_t = std::vector<int>; ideep::attr_t = ideep::descriptor_group::attr_t; ideep::algorithm = mkldnn::algorithm; ideep::prop_kind = mkldnn::prop_kind; ideep::padding_kind = mkldnn::padding_kind]
static void compute(const tensor& src, const tensor& weights, const tensor& bias,
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:87:17: error: call of overloaded ‘compute(const ideep::tensor&, const ideep::tensor&, std::vector<int>&, ideep::tensor&, std::vector<int>&, std::vector<int>&, ideep::param::dims, ideep::param::dims, int&)’ is ambiguous
group_);
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:41:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/computations.hpp:565:15: note: candidate: static void ideep::convolution_forward::compute(const ideep::tensor&, const ideep::tensor&, const tdims_t&, ideep::tensor&, const tdims_t&, const tdims_t&, const tdims_t&, const tdims_t&, int, const scale_t&, const scale_t&, const scale_t&, const attr_t&, ideep::algorithm, ideep::prop_kind, ideep::padding_kind, ideep::lowp_kind) [with alloc = ideep::utils::allocator; ideep::tdims_t = std::vector<int>; ideep::scale_t = std::vector<float>; ideep::attr_t = ideep::descriptor_group::attr_t; ideep::algorithm = mkldnn::algorithm; ideep::prop_kind = mkldnn::prop_kind; ideep::padding_kind = mkldnn::padding_kind]
static void compute(const tensor& src, const tensor& weights,
^
/home/chxt/pytorch/third_party/ideep/include/ideep/computations.hpp:592:15: note: candidate: static void ideep::convolution_forward::compute(const ideep::tensor&, const ideep::tensor&, const tdims_t&, ideep::tensor&, const tdims_t&, const tdims_t&, const tdims_t&, const tdims_t&, int, const attr_t&, ideep::algorithm, ideep::prop_kind, ideep::padding_kind) [with alloc = ideep::utils::allocator; ideep::tdims_t = std::vector<int>; ideep::attr_t = ideep::descriptor_group::attr_t; ideep::algorithm = mkldnn::algorithm; ideep::prop_kind = mkldnn::prop_kind; ideep::padding_kind = mkldnn::padding_kind]
static void compute(const tensor& src, const tensor& weights,
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc: In member function ‘virtual bool caffe2::IDEEPConvFusionOp::RunOnDeviceWithOrderNCHW()’:
/home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:88:32: error: no matching function for call to ‘ideep::tensor::init(ideep::param::descriptor&)’
expected_descriptor);
^
In file included from /home/chxt/pytorch/third_party/ideep/include/ideep.hpp:40:0,
from /home/chxt/pytorch/caffe2/ideep/ideep_utils.h:6,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_pool_base_op.h:3,
from /home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:1:
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:1091:8: note: candidate: template<class alloc> void ideep::tensor::init(const ideep::param::descriptor&)
void init(const descriptor& adesc) {
^
/home/chxt/pytorch/third_party/ideep/include/ideep/tensor.hpp:1091:8: note: template argument deduction/substitution failed:
/home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:88:32: error: wrong number of template arguments (2, should be at least 0)
expected_descriptor);
^
/home/chxt/pytorch/caffe2/ideep/operators/conv_fusion_op.cc:89:16: error: ‘ideep::reorder’ has not been declared
ideep::reorder::compute(filter, filter_);
^
/home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc: In member function ‘virtual bool caffe2::CopyCPUToIDEEPOp::RunOnDevice()’:
/home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc:22:31: error: ‘class ideep::tensor’ has no member named ‘reorder_from’
Y->GetMutable<itensor>()->reorder_from(
^
/home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc: In member function ‘virtual bool caffe2::CopyIDEEPToCPUOp::RunOnDevice()’:
/home/chxt/pytorch/caffe2/ideep/operators/utility_ops.cc:61:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
X.reorder_to(Y->template mutable_data<float>());
^
In file included from /home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:1:0:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In member function ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice()’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:146:20: error: ‘class ideep::tensor’ has no member named ‘reorder_from’
dtensor->reorder_from(dst_dims, itensor::data_type::f32,
^
In file included from /home/chxt/pytorch/caffe2/operators/distance_op.cc:4:0:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In member function ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice()’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:146:20: error: ‘class ideep::tensor’ has no member named ‘reorder_from’
dtensor->reorder_from(dst_dims, itensor::data_type::f32,
^
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::fb::{anonymous}::CreateMutexOp; SkipOutputCopy = caffe2::SkipIndices<0>]’:
/home/chxt/pytorch/caffe2/operators/atomic_ops.cc:153:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
input.reorder_to(dtensor->template mutable_data<float>());
^
caffe2/CMakeFiles/caffe2.dir/build.make:3565: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/utils/ideep_register.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/utils/ideep_register.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
caffe2/CMakeFiles/caffe2.dir/build.make:3461: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/momentum_sgd_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/momentum_sgd_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3500: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/relu_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/relu_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3409: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/dropout_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/dropout_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3539: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/squeeze_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/squeeze_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3487: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/pool_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/pool_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3552: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/utility_ops.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/utility_ops.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3448: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/local_response_normalization_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/local_response_normalization_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3396: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3526: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/spatial_batch_norm_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/spatial_batch_norm_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3513: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/sigmoid_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/sigmoid_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3435: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/fully_connected_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/fully_connected_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3422: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/elementwise_sum_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/elementwise_sum_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3370: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/concat_split_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/concat_split_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3383: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_fusion_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_fusion_op.cc.o] Error 1
caffe2/CMakeFiles/caffe2.dir/build.make:3812: recipe for target 'caffe2/CMakeFiles/caffe2.dir/operators/atomic_ops.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/operators/atomic_ops.cc.o] Error 1
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::L1DistanceGradientOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/operators/distance_op.cc:764:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
input.reorder_to(dtensor->template mutable_data<float>());
^
caffe2/CMakeFiles/caffe2.dir/build.make:4410: recipe for target 'caffe2/CMakeFiles/caffe2.dir/operators/distance_op.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/operators/distance_op.cc.o] Error 1
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::AdamOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
input.reorder_to(dtensor->template mutable_data<float>());
^
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BinaryElementwiseWithArgsGradientOp<caffe2::TensorTypes<int, long int, float, double>, caffe2::CPUContext, caffe2::BinaryFunctorWithDefaultCtor<caffe2::MulFunctor<caffe2::CPUContext> >, caffe2::SameTypeAsInput, caffe2::SameTypeAsInput>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LeakyReluGradientOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ConvTransposeGradientOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BinaryElementwiseWithArgsOp<caffe2::TensorTypes<float>, caffe2::CPUContext, caffe2::BinaryFunctorWithDefaultCtor<caffe2::TanhGradientFunctor<caffe2::CPUContext> >, caffe2::SameTypeAsInput>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BinaryElementwiseWithArgsGradientOp<caffe2::TensorTypes<int, long int, float, double>, caffe2::CPUContext, caffe2::BinaryFunctorWithDefaultCtor<caffe2::AddFunctor<caffe2::CPUContext> >, caffe2::SameTypeAsInput, caffe2::SameTypeAsInput>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::AccuracyOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ScaleOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::L1DistanceOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::UnaryElementwiseWithArgsOp<caffe2::TensorTypes<float>, caffe2::CPUContext, caffe2::UnaryFunctorWithDefaultCtor<caffe2::TanhFunctor<caffe2::CPUContext> >, caffe2::SameTypeAsInput>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BinaryElementwiseWithArgsOp<caffe2::TensorTypes<int, long int, float, double>, caffe2::CPUContext, caffe2::BinaryFunctorWithDefaultCtor<caffe2::MulFunctor<caffe2::CPUContext> >, caffe2::SameTypeAsInput>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LeakyReluOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::WeightedSumOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LearningRateOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::IterOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::SoftmaxGradientOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LabelCrossEntropyGradientOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::AveragedLossGradient<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::CTCBeamSearchDecoderOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::CTCGreedyDecoderOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::PReluOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::PadImageOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::StopGradientOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::AffineChannelOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BBoxTransformOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::BoxWithNMSLimitOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<0, 1, 2>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::CollectAndDistributeFpnRpnProposalsOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::GenerateProposalsOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::RoIAlignRotatedOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::RoIAlignOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::SaveOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LoadOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::GivenTensorFillOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::MSRAFillOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::GaussianFillOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ConstantFillOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::XavierFillOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ReshapeOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<1>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::TransposeOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ResizeLikeOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::FlattenOp<caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ConvTransposeOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::AveragedLoss<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<0>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::LabelCrossEntropyOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::ChannelShuffleOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h: In instantiation of ‘bool caffe2::IDEEPFallbackOp<CPUOp, SkipOutputCopy>::RunOnDevice() [with CPUOp = caffe2::SoftmaxOp<float, caffe2::CPUContext>; SkipOutputCopy = caffe2::SkipIndices<>]’:
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.cc:192:1: required from here
/home/chxt/pytorch/caffe2/ideep/operators/operator_fallback_ideep.h:98:11: error: ‘const class ideep::tensor’ has no member named ‘reorder_to’
caffe2/CMakeFiles/caffe2.dir/build.make:3474: recipe for target 'caffe2/CMakeFiles/caffe2.dir/ideep/operators/operator_fallback_ideep.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/ideep/operators/operator_fallback_ideep.cc.o] Error 1
CMakeFiles/Makefile2:3508: recipe for target 'caffe2/CMakeFiles/caffe2.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/caffe2.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
setup.py::build_deps::run()
Failed to run 'bash ../tools/build_pytorch_libs.sh --use-cuda --use-nnpack --use-mkldnn --use-qnnpack caffe2'
</code></pre></div>
<h3 dir="auto">System</h3>
<ul dir="auto">
<li>Ubuntu 16.04 LTS</li>
<li>CUDA 10.1 w/o cudnn</li>
<li>Nvidia Driver Version: 430.40</li>
<li>gcc version 5.4.0 20160609</li>
</ul>
<p dir="auto">There is no way I could change CUDA since I am not a root user and cannot perform <code class="notranslate">sudo</code>. Could anybody help me with it? Or could I get a binary with pytorch=1.0.0 supporting CUDA 10.1 somewhere?</p> | <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">following steps to build caffe2 on windows per the caffe2 install page<br>
build_windows.bat runs for a good while then fails with</p>
<p dir="auto">Microsoft (R) C/C++ Optimizing Compiler Version 19.20.27508.1 for x64<br>
Copyright (C) Microsoft Corporation. All rights reserved.</p>
<p dir="auto"><strong>ninja: build stopped: subcommand failed.<br>
Traceback (most recent call last):<br>
File "tools\build_libtorch.py", line 22, in <br>
build_python=False, rerun_cmake=True, build_dir='.')<br>
File "c:\Users\garry\Downloads\pytorch\tools\build_pytorch_libs.py", line 286, in build_caffe2<br>
check_call(build_cmd, cwd=build_dir, env=my_env)<br>
File "C:\Users\garry\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 347, in check_call<br>
raise CalledProcessError(retcode, cmd)<br>
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '7']' returned non-zero exit status 1.<br>
"Caffe2 building failed"</strong></p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>
<p dir="auto">followed instructions on <a href="https://caffe2.ai/docs/getting-started.html?platform=windows&configuration=compile" rel="nofollow">https://caffe2.ai/docs/getting-started.html?platform=windows&configuration=compile</a></p>
</li>
<li></li>
<li></li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">expected build script to complete build</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">Please copy and paste the output from our<br>
<a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br>
(or fill out the checklist below manually).</p>
<p dir="auto">You can get the script and run it with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
</code></pre></div>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0):</li>
<li>OS (e.g., Linux): windows 10 home</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): clone from github</li>
<li>Build command you used (if compiling from source): pytorch/scripts/build_windows.bat</li>
<li>Python version:3.7</li>
<li>CUDA/cuDNN version: NA</li>
<li>GPU models and configuration: AMD Radeon 8700M</li>
<li>Any other relevant information:</li>
</ul>
<h2 dir="auto">Additional context</h2> | 0 |
<h2 dir="auto">Steps to Reproduce</h2>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Center(
child: Stack(
overflow: Overflow.visible,
children: <Widget>[
Container(
color: Colors.green,
constraints: BoxConstraints.tightFor(width: 50.0, height: 50.0),
),
Positioned(
top: 25.0,
left: 25.0,
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
print('onTap ${DateTime.now()}');
},
child: Container(
color: Colors.blue,
constraints:
BoxConstraints.tightFor(width: 50.0, height: 50.0),
)),
),
],
),
));
}
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>;
<span class="pl-k">void</span> <span class="pl-en">main</span>() <span class="pl-k">=></span> <span class="pl-en">runApp</span>(<span class="pl-k">new</span> <span class="pl-c1">MyApp</span>());
<span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> {
<span class="pl-k">@override</span>
<span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
<span class="pl-k">return</span> <span class="pl-c1">MaterialApp</span>(
home<span class="pl-k">:</span> <span class="pl-c1">Center</span>(
child<span class="pl-k">:</span> <span class="pl-c1">Stack</span>(
overflow<span class="pl-k">:</span> <span class="pl-c1">Overflow</span>.visible,
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-c1">Container</span>(
color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.green,
constraints<span class="pl-k">:</span> <span class="pl-c1">BoxConstraints</span>.<span class="pl-en">tightFor</span>(width<span class="pl-k">:</span> <span class="pl-c1">50.0</span>, height<span class="pl-k">:</span> <span class="pl-c1">50.0</span>),
),
<span class="pl-c1">Positioned</span>(
top<span class="pl-k">:</span> <span class="pl-c1">25.0</span>,
left<span class="pl-k">:</span> <span class="pl-c1">25.0</span>,
child<span class="pl-k">:</span> <span class="pl-c1">GestureDetector</span>(
behavior<span class="pl-k">:</span> <span class="pl-c1">HitTestBehavior</span>.opaque,
onTap<span class="pl-k">:</span> () {
<span class="pl-en">print</span>(<span class="pl-s">'onTap <span class="pl-s">${<span class="pl-c1">DateTime</span>.<span class="pl-en">now</span>()}</span>'</span>);
},
child<span class="pl-k">:</span> <span class="pl-c1">Container</span>(
color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.blue,
constraints<span class="pl-k">:</span>
<span class="pl-c1">BoxConstraints</span>.<span class="pl-en">tightFor</span>(width<span class="pl-k">:</span> <span class="pl-c1">50.0</span>, height<span class="pl-k">:</span> <span class="pl-c1">50.0</span>),
)),
),
],
),
));
}
}</pre></div>
<ol dir="auto">
<li>Tap the part of the blue rectangle that is inside the green one: onTap works</li>
<li>Tap the blue rectangle that is outside of the green one: onTap doesn't work</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel dev, v0.5.7, on Mac OS X 10.14 18A353d, locale en-EE)
• Flutter version 0.5.7 at /Users/maidokaara/Programs/flutter
• Framework revision 66091f9696 (5 weeks ago), 2018-07-09 12:52:41 -0700
• Engine revision 6fe748490d
• Dart version 2.0.0-dev.63.0.flutter-4c9689c1d2
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/maidokaara/Library/Android/sdk
• Android NDK at /Users/maidokaara/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.2
• ANDROID_HOME = /Users/maidokaara/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Xcode 10.0, Build version 10L221o
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 27.1.3
• Dart plugin version 182.3911.37
[✓] VS Code (version 1.25.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.16.0
[✓] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
• No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel dev, v0.5.7, on Mac OS X 10.14 18A353d, locale en-EE)
• Flutter version 0.5.7 at /Users/maidokaara/Programs/flutter
• Framework revision 66091f9696 (5 weeks ago), 2018-07-09 12:52:41 -0700
• Engine revision 6fe748490d
• Dart version 2.0.0-dev.63.0.flutter-4c9689c1d2
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/maidokaara/Library/Android/sdk
• Android NDK at /Users/maidokaara/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.2
• ANDROID_HOME = /Users/maidokaara/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Xcode 10.0, Build version 10L221o
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 27.1.3
• Dart plugin version 182.3911.37
[✓] VS Code (version 1.25.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.16.0
[✓] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
• No issues found!
</code></pre></div> | <p dir="auto">Internal: b/143100923</p>
<p dir="auto">When a <code class="notranslate">Stack</code> contains <code class="notranslate">MyWidget</code> inside of a <code class="notranslate">Positioned</code>.</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" Stack(
overflow: Overflow.visible,
children: [
Positioned(
top: -50.0,
child: MyWidget(),
)],
);"><pre class="notranslate"> <span class="pl-c1">Stack</span>(
overflow<span class="pl-k">:</span> <span class="pl-c1">Overflow</span>.visible,
children<span class="pl-k">:</span> [
<span class="pl-c1">Positioned</span>(
top<span class="pl-k">:</span> <span class="pl-k">-</span><span class="pl-c1">50.0</span>,
child<span class="pl-k">:</span> <span class="pl-c1">MyWidget</span>(),
)],
);</pre></div>
<p dir="auto">Since overflow is <code class="notranslate">Overflow.visible</code>, <code class="notranslate">MyWidget</code> displays outside of the <code class="notranslate">Stack</code>. However, it doesn't accept gestures in the overflowed area. I have no idea if it's easy, difficult or downright impossible to make this change, but I can think of a gazillion use cases for that, which at the moment must be satisfied by using the much more complex Overlay, or some Stack tricks.</p>
<p dir="auto">And in case it's impossible to make this change, then at least the documentation should clearly state that overflowed content can't receive gestures.</p>
<p dir="auto">Also, see: <a href="https://stackoverflow.com/questions/51366761/in-flutter-how-can-a-positioned-widget-feel-taps-outside-of-its-parent-stack-ar" rel="nofollow">https://stackoverflow.com/questions/51366761/in-flutter-how-can-a-positioned-widget-feel-taps-outside-of-its-parent-stack-ar</a></p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.0</li>
<li>Operating System version: win7</li>
<li>Java version: 1.8.0_151</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>用springboot2.0.3集成的dubbo 2.7.0</li>
<li>调用已有项目dubbo版本为2.6.0的接口</li>
<li>某一些接口可以调用,某一些接口调用错误</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<p dir="auto">java.io.StreamCorruptedException: invalid stream header: 77020101<br>
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:863)<br>
at java.io.ObjectInputStream.(ObjectInputStream.java:355)<br>
at org.apache.dubbo.common.serialize.java.JavaObjectInput.(JavaObjectInput.java:33)<br>
at org.apache.dubbo.common.serialize.java.JavaSerialization.deserialize(JavaSerialization.java:47)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:75)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:145)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:91)<br>
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:125)<br>
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:85)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46)<br>
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalDecoder.decode(NettyCodecAdapter.java:95)<br>
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)<br>
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)<br>
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)<br>
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)<br>
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)<br>
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965)<br>
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:647)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:582)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499)<br>
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:461)<br>
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)<br>
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)<br>
at java.lang.Thread.run(Thread.java:748)<br>
2019-03-20 10:02:48.385 [NettyClientWorker-6-3] WARN o.a.dubbo.remoting.exchange.codec.ExchangeCodec - [DUBBO] Skip input stream 227, dubbo version: 2.7.0, current host: 192.168.8.153<br>
2019-03-20 10:02:48.386 [DubboClientHandler-192.168.6.72:20881-thread-1] DEBUG org.apache.dubbo.remoting.transport.DecodeHandler - [DUBBO] Decode decodeable message org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcResult, dubbo version: 2.7.0, current host: 192.168.8.153<br>
2019-03-20 10:02:48.388 [http-nio-8089-exec-1] DEBUG o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver - Resolving exception from handler [public java.lang.String com.ykx.marketing.controller.TestController.a()]: java.lang.reflect.UndeclaredThrowableException<br>
2019-03-20 10:02:48.389 [http-nio-8089-exec-1] DEBUG o.s.b.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'exceptionHandlerController'<br>
2019-03-20 10:02:48.389 [http-nio-8089-exec-1] DEBUG o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver - Invoking <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ExceptionHandler/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ExceptionHandler">@ExceptionHandler</a> method: public com.ykx.marketing.result.MarketingResult com.ykx.marketing.exception.ExceptionHandlerController.runtimeExceptionHandler(java.lang.RuntimeException)<br>
java.lang.reflect.UndeclaredThrowableException<br>
at com.sun.proxy.$Proxy102.cancelOrder(Unknown Source)<br>
at com.ykx.marketing.service.provider.CityBusProvider.selectOrder(CityBusProvider.java:33)<br>
at com.ykx.marketing.controller.TestController.a(TestController.java:37)<br>
at com.ykx.marketing.controller.TestController$$FastClassBySpringCGLIB$$96c18f03.invoke()<br>
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)<br>
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)<br>
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)<br>
at com.ykx.marketing.aop.LogRecordAspect.doAround(LogRecordAspect.java:50)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:498)<br>
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)<br>
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)<br>
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)<br>
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)<br>
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)<br>
at com.ykx.marketing.controller.TestController$$EnhancerBySpringCGLIB$$764cf234.a()<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:498)<br>
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)<br>
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)<br>
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)<br>
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:877)<br>
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:783)<br>
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)<br>
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)<br>
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)<br>
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)<br>
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)<br>
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)<br>
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)<br>
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)<br>
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)<br>
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)<br>
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)<br>
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)<br>
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)<br>
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)<br>
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)<br>
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)<br>
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468)<br>
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br>
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)<br>
at java.lang.Thread.run(Thread.java:748)<br>
Caused by: java.lang.reflect.InvocationTargetException<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:498)<br>
at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.invoke(ReferenceAnnotationBeanPostProcessor.java:158)<br>
... 80 more<br>
Caused by: org.apache.dubbo.rpc.RpcException: Failed to invoke the method cancelOrder in the service com.ykx.provider.api.ICptOpenService. Tried 1 times of the providers [192.168.6.72:20881] (1/1) from the registry 192.168.6.70:2181 on the consumer 192.168.8.153 using the dubbo version 2.7.0. Last error is: Failed to invoke remote method: cancelOrder, provider: dubbo://192.168.6.72:20881/com.ykx.provider.api.ICptOpenService?anyhost=true&application=marketing&check=false&default.reference.filter=dubboServiceFilter&default.service.filter=dubboLogFilter&dubbo=2.6.0&generic=false&group=&interface=com.ykx.provider.api.ICptOpenService&methods=createOrder,queryStatement,scheduleList,cancelOrder,refundTicketsInfo,refundTickets,lineList,updateStatementState,orderPaid&pid=7800&register.ip=192.168.8.153&remote.application=cpt_server&remote.timestamp=1552894104138&retries=0&revision=1.0.1-20190319.094759-11&serialization=java&side=consumer&timeout=15000&timestamp=1553047360433, cause: java.io.StreamCorruptedException: invalid stream header: 77020101<br>
java.io.StreamCorruptedException: invalid stream header: 77020101<br>
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:863)<br>
at java.io.ObjectInputStream.(ObjectInputStream.java:355)<br>
at org.apache.dubbo.common.serialize.java.JavaObjectInput.(JavaObjectInput.java:33)<br>
at org.apache.dubbo.common.serialize.java.JavaSerialization.deserialize(JavaSerialization.java:47)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:75)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:145)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:91)<br>
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:125)<br>
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:85)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46)<br>
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalDecoder.decode(NettyCodecAdapter.java:95)<br>
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)<br>
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)<br>
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)<br>
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)<br>
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)<br>
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965)<br>
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:647)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:582)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499)<br>
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:461)<br>
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)<br>
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)<br>
at java.lang.Thread.run(Thread.java:748)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:111)
at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:241)
at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75)
at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:57)
at org.apache.dubbo.common.bytecode.proxy2.cancelOrder(proxy2.java)
... 85 more"><pre class="notranslate"><code class="notranslate">at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:111)
at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:241)
at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75)
at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:57)
at org.apache.dubbo.common.bytecode.proxy2.cancelOrder(proxy2.java)
... 85 more
</code></pre></div>
<p dir="auto">Caused by: org.apache.dubbo.remoting.RemotingException: java.io.StreamCorruptedException: invalid stream header: 77020101<br>
java.io.StreamCorruptedException: invalid stream header: 77020101<br>
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:863)<br>
at java.io.ObjectInputStream.(ObjectInputStream.java:355)<br>
at org.apache.dubbo.common.serialize.java.JavaObjectInput.(JavaObjectInput.java:33)<br>
at org.apache.dubbo.common.serialize.java.JavaSerialization.deserialize(JavaSerialization.java:47)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:75)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:145)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:91)<br>
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:125)<br>
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:85)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46)<br>
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalDecoder.decode(NettyCodecAdapter.java:95)<br>
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)<br>
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)<br>
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)<br>
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)<br>
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)<br>
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965)<br>
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:647)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:582)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499)<br>
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:461)<br>
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)<br>
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)<br>
at java.lang.Thread.run(Thread.java:748)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="at org.apache.dubbo.remoting.exchange.support.DefaultFuture.returnFromResponse(DefaultFuture.java:298)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:191)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:164)
at org.apache.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:108)
at org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:156)
at org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:77)
at com.alibaba.dubbo.rpc.Invoker$CompatibleInvoker.invoke(Invoker.java:47)
at com.ykx.marketing.filter.DubboContextFilter.invoke(DubboContextFilter.java:24)
at com.alibaba.dubbo.rpc.Filter.invoke(Filter.java:29)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:88)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:49)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:54)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56)
at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:80)
... 89 more"><pre class="notranslate"><code class="notranslate">at org.apache.dubbo.remoting.exchange.support.DefaultFuture.returnFromResponse(DefaultFuture.java:298)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:191)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:164)
at org.apache.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:108)
at org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:156)
at org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:77)
at com.alibaba.dubbo.rpc.Invoker$CompatibleInvoker.invoke(Invoker.java:47)
at com.ykx.marketing.filter.DubboContextFilter.invoke(DubboContextFilter.java:24)
at com.alibaba.dubbo.rpc.Filter.invoke(Filter.java:29)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:88)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:49)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:54)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56)
at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:80)
... 89 more
</code></pre></div>
<p dir="auto">2019-03-20 10:02:48.391 [http-nio-8089-exec-1] INFO c.y.marketing.exception.ExceptionHandlerController - RuntimeException{}<br>
java.lang.reflect.UndeclaredThrowableException: null<br>
at com.sun.proxy.$Proxy102.cancelOrder(Unknown Source)<br>
at com.ykx.marketing.service.provider.CityBusProvider.selectOrder(CityBusProvider.java:33)<br>
at com.ykx.marketing.controller.TestController.a(TestController.java:37)<br>
at com.ykx.marketing.controller.TestController$$FastClassBySpringCGLIB$$96c18f03.invoke()<br>
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)<br>
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)<br>
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)<br>
at com.ykx.marketing.aop.LogRecordAspect.doAround(LogRecordAspect.java:50)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:498)<br>
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)<br>
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)<br>
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)<br>
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)<br>
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)<br>
at com.ykx.marketing.controller.TestController$$EnhancerBySpringCGLIB$$764cf234.a()<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:498)<br>
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)<br>
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)<br>
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)<br>
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:877)<br>
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:783)<br>
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)<br>
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)<br>
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)<br>
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)<br>
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)<br>
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)<br>
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)<br>
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)<br>
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)<br>
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)<br>
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)<br>
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)<br>
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)<br>
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)<br>
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)<br>
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)<br>
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468)<br>
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br>
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)<br>
at java.lang.Thread.run(Thread.java:748)<br>
Caused by: java.lang.reflect.InvocationTargetException: null<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:498)<br>
at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.invoke(ReferenceAnnotationBeanPostProcessor.java:158)<br>
... 80 common frames omitted<br>
Caused by: org.apache.dubbo.rpc.RpcException: Failed to invoke the method cancelOrder in the service com.ykx.provider.api.ICptOpenService. Tried 1 times of the providers [192.168.6.72:20881] (1/1) from the registry 192.168.6.70:2181 on the consumer 192.168.8.153 using the dubbo version 2.7.0. Last error is: Failed to invoke remote method: cancelOrder, provider: dubbo://192.168.6.72:20881/com.ykx.provider.api.ICptOpenService?anyhost=true&application=marketing&check=false&default.reference.filter=dubboServiceFilter&default.service.filter=dubboLogFilter&dubbo=2.6.0&generic=false&group=&interface=com.ykx.provider.api.ICptOpenService&methods=createOrder,queryStatement,scheduleList,cancelOrder,refundTicketsInfo,refundTickets,lineList,updateStatementState,orderPaid&pid=7800&register.ip=192.168.8.153&remote.application=cpt_server&remote.timestamp=1552894104138&retries=0&revision=1.0.1-20190319.094759-11&serialization=java&side=consumer&timeout=15000&timestamp=1553047360433, cause: java.io.StreamCorruptedException: invalid stream header: 77020101<br>
java.io.StreamCorruptedException: invalid stream header: 77020101</p>
<p dir="auto">Just put your stack trace here!</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.2</li>
<li>Operating System version: linux</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>生产者启动</li>
<li>消费者启动</li>
<li>消费者调用生产者的一个接口在同一个结点偶尔会超时,但是生产者那边看不到调用日志</li>
</ol> | 0 |
<p dir="auto">TypeScript compiler hangs for me and does not complete compilation within 5 minutes on a 50 KB source file. To reproduce, run on this input file:</p>
<p dir="auto"><a href="https://raw.githubusercontent.com/Tachyus/gluon/master/src/Gluon.Client/Gluon.ts" rel="nofollow">https://raw.githubusercontent.com/Tachyus/gluon/master/src/Gluon.Client/Gluon.ts</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Platform: Windows 10 64-bit
tsc --version
message TS6029: Version 1.7.3
node --version
v5.2.0"><pre class="notranslate"><code class="notranslate">Platform: Windows 10 64-bit
tsc --version
message TS6029: Version 1.7.3
node --version
v5.2.0
</code></pre></div> | <p dir="auto">This is the same code as what originally prompted <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="72573486" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2997" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2997/hovercard" href="https://github.com/microsoft/TypeScript/issues/2997">#2997</a></p>
<p dir="auto">While it isn't crashing because of infinite loops any more, it <em>has</em> become very slow with 1.7. If I pause it in the debugger I see the following stack repeating many times.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="inferFromTypes [tsc.js] Line 15334 JavaScript
inferFromTypes [tsc.js] Line 15314 JavaScript
inferFromTypes [tsc.js] Line 15301 JavaScript
inferFromProperties [tsc.js] Line 15350 JavaScript
inferFromTypes [tsc.js] Line 15334 JavaScript
inferFromTypes [tsc.js] Line 15314 JavaScript
inferFromTypes [tsc.js] Line 15301 JavaScript
inferFromIndexTypes [tsc.js] Line 15380 JavaScript
inferFromTypes [tsc.js] Line 15337 JavaScript
inferFromProperties [tsc.js] Line 15350 JavaScript"><pre class="notranslate"><code class="notranslate">inferFromTypes [tsc.js] Line 15334 JavaScript
inferFromTypes [tsc.js] Line 15314 JavaScript
inferFromTypes [tsc.js] Line 15301 JavaScript
inferFromProperties [tsc.js] Line 15350 JavaScript
inferFromTypes [tsc.js] Line 15334 JavaScript
inferFromTypes [tsc.js] Line 15314 JavaScript
inferFromTypes [tsc.js] Line 15301 JavaScript
inferFromIndexTypes [tsc.js] Line 15380 JavaScript
inferFromTypes [tsc.js] Line 15337 JavaScript
inferFromProperties [tsc.js] Line 15350 JavaScript
</code></pre></div>
<p dir="auto">Reduced test case:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Module {
public members: { [name: string]: FFunction | Property };
}
class Namespace {
public members: { [name: string]: Class | Enum };
}
class Class {
public parent: Module | Namespace;
public members: { [name: string]: Property | FFunction };
}
class Interface {
public members: { [name: string]: Property | FFunction };
}
class FFunction {
public parent: Module | Namespace | Class | Interface; // (1)
}
class Property {
public parent: Module | Namespace | Class | Interface; // (2)
}
class Enum {
public parent: Module | Namespace;
public members: EnumMember[];
}
class EnumMember {
public parent: Enum;
}
var members: (Property | FFunction)[];
members.map(member => "");"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Module</span> <span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-c1">members</span>: <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">name</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">FFunction</span> <span class="pl-c1">|</span> <span class="pl-smi">Property</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Namespace</span> <span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-c1">members</span>: <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">name</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">Class</span> <span class="pl-c1">|</span> <span class="pl-smi">Enum</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Class</span> <span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-c1">parent</span>: <span class="pl-smi">Module</span> <span class="pl-c1">|</span> <span class="pl-smi">Namespace</span><span class="pl-kos">;</span>
<span class="pl-k">public</span> <span class="pl-c1">members</span>: <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">name</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">Property</span> <span class="pl-c1">|</span> <span class="pl-smi">FFunction</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Interface</span> <span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-c1">members</span>: <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">name</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">Property</span> <span class="pl-c1">|</span> <span class="pl-smi">FFunction</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">FFunction</span> <span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-c1">parent</span>: <span class="pl-smi">Module</span> <span class="pl-c1">|</span> <span class="pl-smi">Namespace</span> <span class="pl-c1">|</span> <span class="pl-smi">Class</span> <span class="pl-c1">|</span> <span class="pl-smi">Interface</span><span class="pl-kos">;</span> <span class="pl-c">// (1)</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Property</span> <span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-c1">parent</span>: <span class="pl-smi">Module</span> <span class="pl-c1">|</span> <span class="pl-smi">Namespace</span> <span class="pl-c1">|</span> <span class="pl-smi">Class</span> <span class="pl-c1">|</span> <span class="pl-smi">Interface</span><span class="pl-kos">;</span> <span class="pl-c">// (2)</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Enum</span> <span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-c1">parent</span>: <span class="pl-smi">Module</span> <span class="pl-c1">|</span> <span class="pl-smi">Namespace</span><span class="pl-kos">;</span>
<span class="pl-k">public</span> <span class="pl-c1">members</span>: <span class="pl-smi">EnumMember</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">EnumMember</span> <span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-c1">parent</span>: <span class="pl-smi">Enum</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-s1">members</span>: <span class="pl-kos">(</span><span class="pl-smi">Property</span> <span class="pl-c1">|</span> <span class="pl-smi">FFunction</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">members</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">member</span> <span class="pl-c1">=></span> <span class="pl-s">""</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Compile with <code class="notranslate">tsc foo.ts</code> on node 4.2.2 x64 on Windows 7.</p>
<p dir="auto">This takes ~18s on my machine. If I remove <code class="notranslate">Module</code> from the union type at (1), it drops to ~12s. Removing <code class="notranslate">Module</code> at (2) drops it to ~6s. And so on.</p>
<p dir="auto">The original code is at <a href="https://github.com/Arnavion/libjass/blob/82f3706/build/typescript/ast.ts">https://github.com/Arnavion/libjass/blob/82f3706/build/typescript/ast.ts</a> which has a much more complicated forest of types. It's been compiling for 5 minutes now, whereas it took ~2s with 1.6</p> | 1 |
<p dir="auto">Enabling configuring per bucket aggregation a threshold for the document counts on the buckets, so only buckets that contain more than <code class="notranslate">n</code> (defaults to <code class="notranslate">1</code>) documents will be returned.</p>
<p dir="auto">When <code class="notranslate">n > 1</code>, this may be only implementable in the reduce phase (because of the distributed nature of Elasticsearch), so there won't be any speed-up or slow-down compared to <code class="notranslate">n == 1</code>.</p>
<p dir="auto">The <code class="notranslate">n = 0</code> case is interesting because it could be a generalization of the <code class="notranslate">"all_terms": true</code> setting of terms facets[1] and the <code class="notranslate">empty_bucets</code> of the <code class="notranslate">histogram</code> aggregation</p>
<p dir="auto">[1] <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-terms-facet.html#_all_terms" rel="nofollow">http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-terms-facet.html#_all_terms</a></p> | <p dir="auto"><strong>Elasticsearch version</strong>: "5.0.0-rc1"</p>
<p dir="auto"><strong>Plugins installed</strong>: [[email protected], [email protected], [email protected]]</p>
<p dir="auto"><strong>JVM version</strong>: OpenJDK "1.8.0_101"</p>
<p dir="auto"><strong>OS version</strong>: Linux 4.4.11-23.53.amzn1.x86_64</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:</p>
<p dir="auto">We tried to set up a tribe node to connect to an existing ES cluster (which is working just fine) but the node failed to start and the following error debug messages appears whenever we try to start the node:</p>
<blockquote>
<p dir="auto">[2016-10-26T10:10:12,814][DEBUG][n.u.i.PlatformDependent0 ] java.nio.Buffer.address: unavailable<br>
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")<br>
...<br>
[2016-10-26T10:10:12,942][DEBUG][n.u.NetUtil ] Failed to get SOMAXCONN from: /proc/sys/net/core/somaxconn<br>
java.security.AccessControlException: access denied ("java.io.FilePermission" "/proc/sys/net/core/somaxconn" "read")<br>
...<br>
Exception: java.security.AccessControlException thrown from the UncaughtExceptionHandler in thread "main"<br>
Exception: java.security.AccessControlException thrown from the UncaughtExceptionHandler in thread "Thread-2"</p>
</blockquote>
<p dir="auto">Not really sure if we missed anything, but it seems to be a permission issue so we've tried to run the ES tribe node as a root and also tried to reinstall the ES but we still bumped to the same error. There is no issue if we started the node as a normal data node as part of the cluster.</p>
<p dir="auto"><strong>elasticsearch.yml</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
node.name: ${HOSTNAME}
discovery.zen.minimum_master_nodes: 2
bootstrap.memory_lock: true
indices.fielddata.cache.size: 50%
indices.queries.cache.size: 20%
xpack.security.audit.enabled: true
xpack.security.enabled: true
xpack.monitoring.enabled: true
xpack.watcher.enabled: true
xpack.security.authc.realms.file.type: file
xpack.security.authc.realms.file.order: 0
xpack.security.authc.realms.file.enabled: false
xpack.security.authc.realms.native1.type: native
xpack.security.authc.realms.native1.order: 1
xpack.security.authc.realms.native1.enabled: true
xpack.security.authc.realms.ldap1.type: ldap
xpack.security.authc.realms.ldap1.order: 2
xpack.security.authc.realms.ldap1.enabled: true
xpack.security.authc.realms.ldap1.url: ldap://ldap.dcma.epicon.com:389
xpack.security.authc.realms.ldap1.bind_dn: cn=ldapsearch,ou=users,o=local,dc=dcmaproxy,dc=epicon,dc=com
xpack.security.authc.realms.ldap1.bind_password: <XXX>
xpack.security.authc.realms.ldap1.user_search.base_dn: o=external,dc=dcmaproxy,dc=epicon,dc=com
xpack.security.authc.realms.ldap1.user_search.attribute: sAMAcountName
xpack.security.authc.realms.ldap1.group_search.base_dn: o=external,dc=dcmaproxy,dc=epicon,dc=com
xpack.security.authc.realms.ldap1.files.role_mapping: /etc/elasticsearch/x-pack/role_mapping.yml
xpack.security.authc.realms.ldap1.unmapped_groups_as_roles: false
node.master: false
node.data: false
tribe.on_conflict: prefer_dc
tribe.dc.cluster.name: epicon_es_dc
tribe.dc.network.host: 192.167.168.95
tribe.dc.discovery.zen.ping.unicast.hosts: ["192.167.168.91", "192.167.168.92", "192.167.168.93", "192.167.168.95"><pre class="notranslate"><code class="notranslate">network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
node.name: ${HOSTNAME}
discovery.zen.minimum_master_nodes: 2
bootstrap.memory_lock: true
indices.fielddata.cache.size: 50%
indices.queries.cache.size: 20%
xpack.security.audit.enabled: true
xpack.security.enabled: true
xpack.monitoring.enabled: true
xpack.watcher.enabled: true
xpack.security.authc.realms.file.type: file
xpack.security.authc.realms.file.order: 0
xpack.security.authc.realms.file.enabled: false
xpack.security.authc.realms.native1.type: native
xpack.security.authc.realms.native1.order: 1
xpack.security.authc.realms.native1.enabled: true
xpack.security.authc.realms.ldap1.type: ldap
xpack.security.authc.realms.ldap1.order: 2
xpack.security.authc.realms.ldap1.enabled: true
xpack.security.authc.realms.ldap1.url: ldap://ldap.dcma.epicon.com:389
xpack.security.authc.realms.ldap1.bind_dn: cn=ldapsearch,ou=users,o=local,dc=dcmaproxy,dc=epicon,dc=com
xpack.security.authc.realms.ldap1.bind_password: <XXX>
xpack.security.authc.realms.ldap1.user_search.base_dn: o=external,dc=dcmaproxy,dc=epicon,dc=com
xpack.security.authc.realms.ldap1.user_search.attribute: sAMAcountName
xpack.security.authc.realms.ldap1.group_search.base_dn: o=external,dc=dcmaproxy,dc=epicon,dc=com
xpack.security.authc.realms.ldap1.files.role_mapping: /etc/elasticsearch/x-pack/role_mapping.yml
xpack.security.authc.realms.ldap1.unmapped_groups_as_roles: false
node.master: false
node.data: false
tribe.on_conflict: prefer_dc
tribe.dc.cluster.name: epicon_es_dc
tribe.dc.network.host: 192.167.168.95
tribe.dc.discovery.zen.ping.unicast.hosts: ["192.167.168.91", "192.167.168.92", "192.167.168.93", "192.167.168.95
</code></pre></div>
<p dir="auto"><strong>Steps to reproduce</strong>:</p>
<ol dir="auto">
<li>Set the ES node as a tribe node as configured above</li>
<li>Enable debug level logging and start the tribe node</li>
<li>Check log</li>
</ol>
<p dir="auto"><strong>Provide logs (if relevant)</strong>:<br>
<a href="https://github.com/elastic/elasticsearch/files/551997/elasticsearch.txt">elasticsearch.txt</a></p> | 0 |
<p dir="auto">When a type's <code class="notranslate">__eq__</code> (or <code class="notranslate">tp_richcompare</code> in C) doesn't understand the other type, it should return NotImplemented so that the other type's <code class="notranslate">__eq__</code> has a chance to be called. Unfortunately, NumPy's ArrayDesrc doesn't respect that convention and raises TypeError instead, making comparisons fragile:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> import numpy as np
>>> class A(object):
... def __eq__(self, other):
... return True
...
>>> dt = np.dtype('i8')
>>> A() == dt
True
>>> dt == A()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: data type not understood"><pre class="notranslate"><code class="notranslate">>>> import numpy as np
>>> class A(object):
... def __eq__(self, other):
... return True
...
>>> dt = np.dtype('i8')
>>> A() == dt
True
>>> dt == A()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: data type not understood
</code></pre></div>
<p dir="auto">It is generally considered bad practice to raise TypeError in a comparison method, and can prevent advanced uses: such as defining a custom type comparable with ArrayDescr, or simply mixing ArrayDescr with other types in e.g. a dictionary.</p>
<p dir="auto">Indeed let's say I use the standard <code class="notranslate">lru_cache</code>, then hash collisions can produce unwanted errors because of the dictionary used internally comparing the keys:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> @functools.lru_cache()
... def f(x): return str(x)
...
>>>
>>> class A(object):
... def __hash__(self):
... return hash(dt)
...
>>> f(dt)
'int64'
>>> f(A())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/antoine/34/lib/python3.4/functools.py", line 446, in wrapper
link = cache_get(key)
TypeError: data type not understood"><pre class="notranslate"><code class="notranslate">>>> @functools.lru_cache()
... def f(x): return str(x)
...
>>>
>>> class A(object):
... def __hash__(self):
... return hash(dt)
...
>>> f(dt)
'int64'
>>> f(A())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/antoine/34/lib/python3.4/functools.py", line 446, in wrapper
link = cache_get(key)
TypeError: data type not understood
</code></pre></div> | <h2 dir="auto">Summary</h2>
<p dir="auto">Make DType objects, their corresponding types, and their string names all compare unequal.</p>
<h2 dir="auto">Historical issue</h2>
<p dir="auto">For some reason, <code class="notranslate">dtype</code> objects and the numpy types they are based off of compare equal. They don't hash equal of course, which goes against Python's docs that say</p>
<blockquote>
<p dir="auto">The only required property is that objects which compare equal have the same hash value…</p>
</blockquote>
<p dir="auto">Can we make them compare unequal? Is there any reason for them to compare equal?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [6]: np.dtype(np.float) == np.float
Out[6]: True"><pre class="notranslate"><code class="notranslate">In [6]: np.dtype(np.float) == np.float
Out[6]: True
</code></pre></div> | 1 |
<p dir="auto">While fixing some project for latest rust nightly (porting to new IO) I got an misleading error because I used a <code class="notranslate">Path</code> in an enum that was used in a vector as function argument.</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::path::Path;
enum SomeEnum {
SomeBool(bool),
SomePath(Path)
}
fn some_function(arg: &mut Vec<SomeEnum>) {
/* some whitespace to demonstrate that the line number is also wrong
*/
}
fn main() {
let mut v = Vec::new();
some_function(&mut v);
}"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>path<span class="pl-kos">::</span><span class="pl-v">Path</span><span class="pl-kos">;</span>
<span class="pl-k">enum</span> <span class="pl-smi">SomeEnum</span> <span class="pl-kos">{</span>
<span class="pl-v">SomeBool</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-v">SomePath</span><span class="pl-kos">(</span><span class="pl-smi">Path</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">some_function</span><span class="pl-kos">(</span><span class="pl-s1">arg</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">Vec</span><span class="pl-kos"><</span><span class="pl-smi">SomeEnum</span><span class="pl-kos">></span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">/* some whitespace to demonstrate that the line number is also wrong</span>
<span class="pl-c"></span>
<span class="pl-c"></span>
<span class="pl-c"></span>
<span class="pl-c"></span>
<span class="pl-c"></span>
<span class="pl-c"></span>
<span class="pl-c"> */</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> v = <span class="pl-smi">Vec</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">some_function</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-k">mut</span> v<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="<anon>:8:1: 17:2 error: the trait `core::marker::Sized` is not implemented for the type `[u8]` [E0277]
<anon>:8 fn some_function(arg: &mut Vec<SomeEnum>) {
<anon>:9 /* some whitespace to demonstrate that the line number is also wrong
<anon>:10
<anon>:11
<anon>:12
<anon>:13
...
<anon>:8:1: 17:2 note: `[u8]` does not have a constant size known at compile-time
<anon>:8 fn some_function(arg: &mut Vec<SomeEnum>) {
<anon>:9 /* some whitespace to demonstrate that the line number is also wrong
<anon>:10
<anon>:11
<anon>:12
<anon>:13
...
error: aborting due to previous error"><pre class="notranslate"><code class="notranslate"><anon>:8:1: 17:2 error: the trait `core::marker::Sized` is not implemented for the type `[u8]` [E0277]
<anon>:8 fn some_function(arg: &mut Vec<SomeEnum>) {
<anon>:9 /* some whitespace to demonstrate that the line number is also wrong
<anon>:10
<anon>:11
<anon>:12
<anon>:13
...
<anon>:8:1: 17:2 note: `[u8]` does not have a constant size known at compile-time
<anon>:8 fn some_function(arg: &mut Vec<SomeEnum>) {
<anon>:9 /* some whitespace to demonstrate that the line number is also wrong
<anon>:10
<anon>:11
<anon>:12
<anon>:13
...
error: aborting due to previous error
</code></pre></div>
<p dir="auto">The error complains about a <code class="notranslate">[u8]</code> but there is no <code class="notranslate">[u8]</code> in the signature. Also the line number of the error message points to the closing bracket of the function but then goes on and prints the first lines of the function.</p>
<p dir="auto">Error was easily solved by replacing Path with PathBuf once it became clear that <code class="notranslate">Path</code> is the culprit.</p>
<p dir="auto"><a href="http://is.gd/yD8S6w" rel="nofollow">http://is.gd/yD8S6w</a></p> | <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::path::Path;
fn f(p: Path) { }"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>path<span class="pl-kos">::</span><span class="pl-v">Path</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-s1">p</span><span class="pl-kos">:</span> <span class="pl-smi">Path</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">produces</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo.rs:3:6: 3:7 error: the trait `core::marker::Sized` is not implemented for the type `[u8]` [E0277]
foo.rs:3 fn f(p: Path) { }
^
foo.rs:3:6: 3:7 note: `[u8]` does not have a constant size known at compile-time
foo.rs:3 fn f(p: Path) { }
^"><pre class="notranslate"><code class="notranslate">foo.rs:3:6: 3:7 error: the trait `core::marker::Sized` is not implemented for the type `[u8]` [E0277]
foo.rs:3 fn f(p: Path) { }
^
foo.rs:3:6: 3:7 note: `[u8]` does not have a constant size known at compile-time
foo.rs:3 fn f(p: Path) { }
^
</code></pre></div>
<p dir="auto">We should give an explicit hint that <code class="notranslate">Path</code> should be passed by reference. Also the error does not mention <code class="notranslate">Path</code> and the type <code class="notranslate">u8</code> does not appear in the program.</p>
<p dir="auto"><strong>UPDATE:</strong> The message now includes a full stack trace of types, but it would be better to start out with the type the user knows about (<code class="notranslate">Path</code>, in this case) and only discuss <code class="notranslate">[u8]</code> last. -- <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikomatsakis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikomatsakis">@nikomatsakis</a></p> | 1 |
<p dir="auto">When converting the TypeScript lifecycle example to Dart, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/adaojunior/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/adaojunior">@adaojunior</a> noticed that the TS & Dart versions generate slightly different events.</p>
<p dir="auto">I'm not sure these differences are significant, but I'm reporting it just in case. I initially interpreted this test as meaning that the Dart UI wasn't updated every time it should be. Now I think it <em>is</em> updated the same way the TS UI is, but that <strong>the TS version has 1 extra pair of after*Checked events</strong>.</p>
<p dir="auto">The source code for both the TS & Dart versions is in <a href="https://github.com/adaojunior/lifecycle-hooks">https://github.com/adaojunior/lifecycle-hooks</a>. To see the diffs when they run:</p>
<ol dir="auto">
<li>
<p dir="auto"><a href="https://angular.io/resources/live-examples/lifecycle-hooks/ts/plnkr.html" rel="nofollow">Right-click here</a> to open a window with the runnable TS sample.</p>
</li>
<li>
<p dir="auto"><a href="https://adaojunior.github.io/lifecycle-hooks" rel="nofollow">Right-click here</a> to open another window with the runnable Dart sample.</p>
</li>
<li>
<p dir="auto">Open the Dart window's console.</p>
</li>
<li>
<p dir="auto">In both windows, click <strong>Create PeekABooComponent</strong>.<br>
The <strong>Dart</strong> UI displays this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#1 onChanges (1): name initialized to "Windstorm"
#1 onInit
#1 afterContentInit
#1 afterContentChecked (1)
#1 afterViewInit
#1 afterViewChecked (1)"><pre class="notranslate"><code class="notranslate">#1 onChanges (1): name initialized to "Windstorm"
#1 onInit
#1 afterContentInit
#1 afterContentChecked (1)
#1 afterViewInit
#1 afterViewChecked (1)
</code></pre></div>
<p dir="auto">Its console displays the same messages, plus 2 more:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
#1 afterContentChecked (2)
#1 afterViewChecked (2)"><pre class="notranslate"><code class="notranslate">...
#1 afterContentChecked (2)
#1 afterViewChecked (2)
</code></pre></div>
<p dir="auto">The TS UI displays these messages:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#1 onChanges (1): name initialized to "Windstorm"
#1 onInit
#1 afterContentInit
#1 afterContentChecked (1)
#1 afterViewInit
#1 afterViewChecked (1)
#1 afterContentChecked (2)
#1 afterViewChecked (2)"><pre class="notranslate"><code class="notranslate">#1 onChanges (1): name initialized to "Windstorm"
#1 onInit
#1 afterContentInit
#1 afterContentChecked (1)
#1 afterViewInit
#1 afterViewChecked (1)
#1 afterContentChecked (2)
#1 afterViewChecked (2)
</code></pre></div>
<p dir="auto">So the Dart and TS logs appear to be the same, but the 2 last events don't make it to the Dart UI (yet).</p>
</li>
<li>
<p dir="auto">In both windows, click <strong>Update Hero</strong>.</p>
<p dir="auto">The Dart UI adds the following lines:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
#1 afterContentChecked (2)
#1 afterViewChecked (2)
#1 onChanges (2): name changed to "Windstorm!"
#1 afterContentChecked (3)
#1 afterViewChecked (3)"><pre class="notranslate"><code class="notranslate">...
#1 afterContentChecked (2)
#1 afterViewChecked (2)
#1 onChanges (2): name changed to "Windstorm!"
#1 afterContentChecked (3)
#1 afterViewChecked (3)
</code></pre></div>
<p dir="auto">The Dart console adds the following lines:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
#1 onChanges (2): name changed to "Windstorm!"
#1 afterContentChecked (3)
#1 afterViewChecked (3)
#1 afterContentChecked (4)
#1 afterViewChecked (4)"><pre class="notranslate"><code class="notranslate">...
#1 onChanges (2): name changed to "Windstorm!"
#1 afterContentChecked (3)
#1 afterViewChecked (3)
#1 afterContentChecked (4)
#1 afterViewChecked (4)
</code></pre></div>
<p dir="auto">The TS UI adds the following lines:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
#1 afterContentChecked (3)
#1 afterViewChecked (3)
#1 onChanges (2): name changed to "Windstorm!"
#1 afterContentChecked (4)
#1 afterViewChecked (4)
#1 afterContentChecked (5)
#1 afterViewChecked (5)"><pre class="notranslate"><code class="notranslate">...
#1 afterContentChecked (3)
#1 afterViewChecked (3)
#1 onChanges (2): name changed to "Windstorm!"
#1 afterContentChecked (4)
#1 afterViewChecked (4)
#1 afterContentChecked (5)
#1 afterViewChecked (5)
</code></pre></div>
</li>
</ol>
<p dir="auto">Each click of <strong>Update Hero</strong> results in 1 onChanges event and 2 (Dart) or 3 (TS) groups of afterContentChecked+afterViewChecked events.</p> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">When using lazy module loading the module constructor it s initialized twice</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">i need normal constructor behavior</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Here is the exemple with DashboardModule constructor called twice</p>
<p dir="auto"><a href="https://plnkr.co/edit/Ag6BPxwKuW3iBWDOMTBV?p=preview" rel="nofollow">https://plnkr.co/edit/Ag6BPxwKuW3iBWDOMTBV?p=preview</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<p dir="auto">Linux mint, Webstorm</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.3.1</li>
</ul>
<ul dir="auto">
<li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li>
</ul>
<ul dir="auto">
<li>
<p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p>
</li>
</ul> | 0 |
<p dir="auto">It might be better in the long term to allow this function to run from anywhere within the deno directory. Something like this would work but depend on there being one parent being named deno:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub fn ts_version() -> String {
let mut manifest_dir =
PathBuf::from(std::env::var_os("CARGO_MANIFEST_DIR").unwrap());
let deno_root = Some(OsStr::new("deno"));
while manifest_dir.file_name() != deno_root && manifest_dir.pop() {}
manifest_dir.push("cli/tsc/00_typescript.js");
std::fs::read_to_string(manifest_dir.into_os_string().to_str().unwrap())
.unwrap()
.lines()
.find(|l| l.contains("ts.version = "))
.expect(
"Failed to find the pattern `ts.version = ` in typescript source code",
)
.chars()
.skip_while(|c| !char::is_numeric(*c))
.take_while(|c| *c != '"')
.collect::<String>()
}"><pre class="notranslate"><code class="notranslate">pub fn ts_version() -> String {
let mut manifest_dir =
PathBuf::from(std::env::var_os("CARGO_MANIFEST_DIR").unwrap());
let deno_root = Some(OsStr::new("deno"));
while manifest_dir.file_name() != deno_root && manifest_dir.pop() {}
manifest_dir.push("cli/tsc/00_typescript.js");
std::fs::read_to_string(manifest_dir.into_os_string().to_str().unwrap())
.unwrap()
.lines()
.find(|l| l.contains("ts.version = "))
.expect(
"Failed to find the pattern `ts.version = ` in typescript source code",
)
.chars()
.skip_while(|c| !char::is_numeric(*c))
.take_while(|c| *c != '"')
.collect::<String>()
}
</code></pre></div> | <p dir="auto">Hey community,</p>
<p dir="auto">I presume it would be nice to have an option flag to <code class="notranslate">deno run</code> to tell that one wants to parse the file as TypeScript even though it doesn't have a <code class="notranslate">.ts</code> extension.</p>
<p dir="auto">Consider this CLI shebang executable script, named <code class="notranslate">hello.ts</code> and <code class="notranslate">hello</code>:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env -S deno run
let s: string = "Hello world"
console.log(s)"><pre class="notranslate">#!/usr/bin/env -S deno run
<span class="pl-k">let</span> <span class="pl-s1">s</span>: <span class="pl-smi">string</span> <span class="pl-c1">=</span> <span class="pl-s">"Hello world"</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">s</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">Trying to run it produces the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./hello.ts
Check file:///tmp/deno-run/hello.ts
Hello world
$ ./hello
error: Uncaught SyntaxError: Unexpected token ':'
let s: string = "Hello world"
^
at <anonymous> (file:///tmp/deno-run/hello:3:6)"><pre class="notranslate"><code class="notranslate">$ ./hello.ts
Check file:///tmp/deno-run/hello.ts
Hello world
$ ./hello
error: Uncaught SyntaxError: Unexpected token ':'
let s: string = "Hello world"
^
at <anonymous> (file:///tmp/deno-run/hello:3:6)
</code></pre></div>
<p dir="auto">As there could be multiple reasons to have a CLI executable named without the <code class="notranslate">.ts</code> extension, I think it would be great to have something like <code class="notranslate">deno run --ts</code> or <code class="notranslate">deno run --language=ts</code> in order to force TypeScript processing of the specified script.</p> | 0 |
<p dir="auto">Kind of related <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40688815" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/2073" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/2073/hovercard" href="https://github.com/facebook/react/issues/2073">#2073</a></p>
<p dir="auto">It seems to me there's a natural correlation between mount and update methods:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="getInitialState => componentWillReceiveProps
(always true) => shouldComponentUpdate
componentWillMount => componentWillUpdate
componentDidMount => componentDidUpdate"><pre class="notranslate"><code class="notranslate">getInitialState => componentWillReceiveProps
(always true) => shouldComponentUpdate
componentWillMount => componentWillUpdate
componentDidMount => componentDidUpdate
</code></pre></div>
<p dir="auto">In many situations you want to have the same code for mount/update, but you have to put it in a shared method and call it from both places. It's hardly common enough that it's an issue, but it seems common enough that it strikes me as a bit odd... perhaps. Just an idea, could it make sense to e.g. get rid of mount altogether and instead have the following (it's extreme perhaps, but just as an example):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// mounting
getInitialState
componentWillReceiveProps(update = false?)
componentWillUpdate(update = false)
componentDidUpdate(update = false)
// updating
componentWillReceiveProps(update = true?)
shouldComponentUpdate
componentWillUpdate(update = true)
componentDidUpdate(update = true)"><pre class="notranslate"><code class="notranslate">// mounting
getInitialState
componentWillReceiveProps(update = false?)
componentWillUpdate(update = false)
componentDidUpdate(update = false)
// updating
componentWillReceiveProps(update = true?)
shouldComponentUpdate
componentWillUpdate(update = true)
componentDidUpdate(update = true)
</code></pre></div>
<p dir="auto">It would unify the life-cycle and move away from mounting being treated as entirely separate from updating, it would then be seen as an exception. There would be less potential for inconsistencies causes by mistake/neglect.</p>
<p dir="auto">I haven't thought this through extensively and bring it up mainly to start a discussion, I know many others have wondered why there isn't a life-cycle method for mount+update.</p> | <p dir="auto">Describe what you were doing when the bug occurred:</p>
<ol dir="auto">
<li>Record a 5 second profile in the React Profiler Tab</li>
<li>Switch the React root in the dropdown</li>
</ol>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.2.0-a8b8ffb89</p>
<p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:162685)<br>
at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:332158)<br>
at sc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:332375)<br>
at fi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59263)<br>
at Hi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:66573)<br>
at lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:104884)<br>
at kc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89467)<br>
at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89392)<br>
at pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:86341)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:45721</p>
<p dir="auto">Component stack: in sc<br>
in div<br>
in div<br>
in _o<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in zi<br>
in Ge<br>
in un<br>
in ba<br>
in Rc</p> | 0 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
In component decorator, <code class="notranslate">selector</code> is unable to select id by <code class="notranslate">hashtag (#)</code></p>
<p dir="auto"><strong>Expected behavior</strong><br>
Component selector should be able to select id by <code class="notranslate">hashtag (#)</code></p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Simply change you component selector by using <code class="notranslate">#id</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component({
selector: '#top-navigation',
templateUrl: './top-navigation.component.html',
styleUrls: ['./top-navigation.component.scss']
})"><pre class="notranslate"><code class="notranslate">@Component({
selector: '#top-navigation',
templateUrl: './top-navigation.component.html',
styleUrls: ['./top-navigation.component.scss']
})
</code></pre></div>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Currently, I need to select it like,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component({
selector: '[id=top-navigation]',
templateUrl: './top-navigation.component.html',
styleUrls: ['./top-navigation.component.scss']
})"><pre class="notranslate"><code class="notranslate">@Component({
selector: '[id=top-navigation]',
templateUrl: './top-navigation.component.html',
styleUrls: ['./top-navigation.component.scss']
})
</code></pre></div>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Ubuntu 14.04, Sublime, Webpack, Apache</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.X<br>
Angular 2.0.0</li>
<li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]<br>
All browsers</li>
<li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br>
TypeScript 2.0.2</li>
</ul> | <p dir="auto"><strong>I'm submitting a:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report"><pre class="notranslate"><code class="notranslate">[x] bug report
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
<code class="notranslate">select: '#my-component'</code> doesn't work.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Given <code class="notranslate"><div id="my-component"></div></code> in a template, <code class="notranslate">select: '#my-component'</code> should work the same, as the following combinations work:<br>
<code class="notranslate">select: 'my-component'</code> works for <code class="notranslate"><my-component></my-component></code><br>
<code class="notranslate">select: [my-component]</code> works for <code class="notranslate"><div my-component></div></code><br>
<code class="notranslate">select: '.my-component'</code> works for <code class="notranslate"><div class="my-component"></div></code></p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
<a href="https://plnkr.co/edit/rbMDTr15R51CVvWHC1V5?p=preview" rel="nofollow">https://plnkr.co/edit/rbMDTr15R51CVvWHC1V5?p=preview</a></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.1</li>
<li><strong>Browser:</strong> [ only tested in Chrome and Firefox ]</li>
<li><strong>Language:</strong> [ TypeScript ]</li>
</ul> | 1 |
<p dir="auto">For example, our builds include the <code class="notranslate">-httptest.serve</code> flag from the <code class="notranslate">net/http/httptest</code> package (pulled in through <code class="notranslate">github.com/stretchr/testify/assert</code>).</p>
<p dir="auto">Files which should probably be excluded from release binaries (but are currently included):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pkg/volume/mock_volume.go
pkg/volume/testing.go
pkg/kubelet/network/testing.go
pkg/kubelet/container/runtime_mock.go
pkg/kubelet/prober/testing.go
pkg/kubelet/cadvisor/cadvisor_mock.go
pkg/kubelet/server/stats/mock_stats_provider.go"><pre class="notranslate"><code class="notranslate">pkg/volume/mock_volume.go
pkg/volume/testing.go
pkg/kubelet/network/testing.go
pkg/kubelet/container/runtime_mock.go
pkg/kubelet/prober/testing.go
pkg/kubelet/cadvisor/cadvisor_mock.go
pkg/kubelet/server/stats/mock_stats_provider.go
</code></pre></div> | <p dir="auto">By default cAdvisor currently gathers stats every 1 second. This is much higher than necessary for most use cases, so we should override the <em>default</em> value to <code class="notranslate">10 seconds</code> in the Kubelet.</p>
<p dir="auto">The flag which needs to be modified is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--housekeeping-interval=1s: Interval between container housekeepings"><pre class="notranslate"><code class="notranslate">--housekeeping-interval=1s: Interval between container housekeepings
</code></pre></div>
<p dir="auto">/cc @kubernetes/goog-node</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mrokitka" rel="nofollow">Mike Rokitka</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5359?redirect=false" rel="nofollow">SPR-5359</a></strong> and commented</p>
<p dir="auto">HTML code generated via Spring's form tag library for checkboxes and radiobuttons is generating invalid HTML id attributes (square brackets to represent array). This appears to work fine for the other form input types, but the HTML is incorrect for checkboxes and radiobuttons.</p>
<p dir="auto">Sample code:</p>
<hr>
<p dir="auto"><c:forEach var="currentTest" items="${testForm.tests}" varStatus="itStatus"></p>
<p dir="auto"><li><br>
<form:checkbox path="tests[${itStatus.index}].copy"/><br>
</li><br>
</c:forEach></p>
<hr>
<p dir="auto">Generates the following HTML for the checkbox:</p>
<p dir="auto"><input id="tests[0].copy1" name="tests[0].copy" type="checkbox" value="true"/><input type="hidden" name="_tests[0].copy" value="on"/></p>
<p dir="auto">Changing the form:checkbox tag to a form:hidden tag renders valid HTML:</p>
<p dir="auto"><input id="tests0.copy" name="tests[0].copy" type="hidden" value="false"/><br>
This appears to be related to this issue: <a href="http://jira.springframework.org/browse/SPR-2380" rel="nofollow">http://jira.springframework.org/browse/SPR-2380</a>?</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=iegoshin" rel="nofollow">Ilya</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5382?redirect=false" rel="nofollow">SPR-5382</a></strong> and commented</p>
<p dir="auto">org.springframework.web.servlet.tags.form.TagIdGenerator which is used by tags checkboxes and radiobuttons doesn't filter out [] and double-quotes from id attribute. It breaks html and javascript for map-based properties. Can be fixed like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public static String nextId(String name, PageContext pageContext) {
String attributeName = PAGE_CONTEXT_ATTRIBUTE_PREFIX + name;
Integer currentCount = (Integer) pageContext.getAttribute(attributeName);
currentCount = (currentCount != null ? new Integer(currentCount.intValue() + 1) : new Integer(1));
pageContext.setAttribute(attributeName, currentCount);
return (StringUtils.deleteAny(name, "[]\"") + currentCount.intValue());
}"><pre class="notranslate"><code class="notranslate">public static String nextId(String name, PageContext pageContext) {
String attributeName = PAGE_CONTEXT_ATTRIBUTE_PREFIX + name;
Integer currentCount = (Integer) pageContext.getAttribute(attributeName);
currentCount = (currentCount != null ? new Integer(currentCount.intValue() + 1) : new Integer(1));
pageContext.setAttribute(attributeName, currentCount);
return (StringUtils.deleteAny(name, "[]\"") + currentCount.intValue());
}
</code></pre></div>
<hr>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398103128" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11537" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11537/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11537">#11537</a> Spring MVC regression: binding to indexed properties is broken</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398102921" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11506" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11506/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11506">#11506</a> form:checkbox tag creates invalid HTML id when bound to indexed property</li>
</ul>
<p dir="auto"><strong>Backported to:</strong> <a href="https://github.com/spring-projects/spring-framework/milestone/68?closed=1">3.0.1</a></p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I 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/Igorbek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Igorbek">@Igorbek</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Igmat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Igmat">@Igmat</a> @Lavoaster</li>
</ul>
</li>
</ul>
<p dir="auto">TS v3.4.3<br>
styled-components v4.2.0<br>
@types/styled-components v4.1.9 and above</p>
<p dir="auto">In every version since v4.1.9 I get a lot of errors about <code class="notranslate">@types/react-native/global.d.ts</code> on build - I've copied a few of these below.</p>
<p dir="auto">I'm using styled-components in a React web project. From digging around I think that these conflicts are caused by react-native declaring types globally that conflict with types in node/the dom.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in [at-loader] ./node_modules/@types/react-native/globals.d.ts:210:5
TS2717: Subsequent property declarations must have the same type. Property 'onloadstart' must be of type '((this: XMLHttpRequest, ev: ProgressEvent) => any) | null', but here has type '((this: XMLHttpRequest, ev: Event) => any) | null'.
ERROR in [at-loader] ./node_modules/@types/react-native/globals.d.ts:211:5
TS2717: Subsequent property declarations must have the same type. Property 'onprogress' must be of type '((this: XMLHttpRequest, ev: ProgressEvent) => any) | null', but here has type '((this: XMLHttpRequest, ev: Event) => any) | null'.
ERROR in [at-loader] ./node_modules/@types/react-native/globals.d.ts:212:5
TS2717: Subsequent property declarations must have the same type. Property 'ontimeout' must be of type '((this: XMLHttpRequest, ev: ProgressEvent) => any) | null', but here has type '((this: XMLHttpRequest, ev: Event) => any) | null'.
ERROR in [at-loader] ./node_modules/@types/react-native/globals.d.ts:243:6
TS2300: Duplicate identifier 'XMLHttpRequestResponseType'.
ERROR in [at-loader] ./node_modules/@types/react-native/index.d.ts:9542:18
TS2717: Subsequent property declarations must have the same type. Property 'geolocation' must be of type 'Geolocation', but here has type 'GeolocationStatic'.
ERROR in [at-loader] ./node_modules/@types/react-native/index.d.ts:9545:11
TS2451: Cannot redeclare block-scoped variable 'navigator'."><pre class="notranslate"><code class="notranslate">ERROR in [at-loader] ./node_modules/@types/react-native/globals.d.ts:210:5
TS2717: Subsequent property declarations must have the same type. Property 'onloadstart' must be of type '((this: XMLHttpRequest, ev: ProgressEvent) => any) | null', but here has type '((this: XMLHttpRequest, ev: Event) => any) | null'.
ERROR in [at-loader] ./node_modules/@types/react-native/globals.d.ts:211:5
TS2717: Subsequent property declarations must have the same type. Property 'onprogress' must be of type '((this: XMLHttpRequest, ev: ProgressEvent) => any) | null', but here has type '((this: XMLHttpRequest, ev: Event) => any) | null'.
ERROR in [at-loader] ./node_modules/@types/react-native/globals.d.ts:212:5
TS2717: Subsequent property declarations must have the same type. Property 'ontimeout' must be of type '((this: XMLHttpRequest, ev: ProgressEvent) => any) | null', but here has type '((this: XMLHttpRequest, ev: Event) => any) | null'.
ERROR in [at-loader] ./node_modules/@types/react-native/globals.d.ts:243:6
TS2300: Duplicate identifier 'XMLHttpRequestResponseType'.
ERROR in [at-loader] ./node_modules/@types/react-native/index.d.ts:9542:18
TS2717: Subsequent property declarations must have the same type. Property 'geolocation' must be of type 'Geolocation', but here has type 'GeolocationStatic'.
ERROR in [at-loader] ./node_modules/@types/react-native/index.d.ts:9545:11
TS2451: Cannot redeclare block-scoped variable 'navigator'.
</code></pre></div>
<p dir="auto">With version 4.1.8 of @types/styled-components, I don't get these errors.</p>
<p dir="auto">I noticed from 4.1.8 -> 4.1.9 package.json incuded <code class="notranslate">@types/react-native</code> in dependencies and this is very likely related, I'd assume.</p>
<p dir="auto">v4.1.8</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "dependencies": {
"@types/node": "*",
"@types/react": "*",
"csstype": "^2.2.0"
},"><pre class="notranslate"><code class="notranslate"> "dependencies": {
"@types/node": "*",
"@types/react": "*",
"csstype": "^2.2.0"
},
</code></pre></div>
<p dir="auto">v4.1.9</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""dependencies": {
"@types/react": "*",
"@types/react-native": "*",
"csstype": "^2.2.0"
},"><pre class="notranslate"><code class="notranslate">"dependencies": {
"@types/react": "*",
"@types/react-native": "*",
"csstype": "^2.2.0"
},
</code></pre></div>
<p dir="auto">I guess I'm fine just sticking on 4.1.8 but just curious as to what the cause of this is? Do I need to change my own typescript config in some way to tell it not to include transitive dependencies on react-native?</p> | <p dir="auto">TLDR;: This issue is intended to raise a discussion regarding possible reorganisation of the React Native type definitions.</p>
<p dir="auto">All the following is mainly written for <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alloy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alloy">@alloy</a>, however it's open for all for the discussion.</p>
<h3 dir="auto">Intro</h3>
<p dir="auto">After spending some time contributing to the React Native definitions I found myself thinking about following big changes that might benefit them. If we can come up to the agreement regarding some of this suggestions we can then split work into chunks and do it together. In other words let's introduce it as small PRs (one component at a time) rather then one huge.</p>
<h3 dir="auto">Remove docs comments</h3>
<p dir="auto">Currently most of the properties/functions definitions are accompanied with docs. As we know comments <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/354cec620daccfa0ad167ba046651fb5fef69e8a/types/react-native/index.d.ts#L3367">always get stale</a>. And even though it might be useful to give a person nice description of what property is about on hover, it would be better to not show description at all then show the wrong one.</p>
<p dir="auto">Since this repository is a peer effort on types it's harder to keep track if docs has changed or not especially when the release schedule for the library is every month. If for code people come to change something because it doesn't work anymore, I guess nobody or almost nobody comes here to change docs.</p>
<p dir="auto">As for my experience I always check official docs to make sure that I will get up to date correct information, which makes comments in the definitions even more useless.</p>
<h3 dir="auto">Remove platform specific properties</h3>
<p dir="auto">Currently there are <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/354cec620daccfa0ad167ba046651fb5fef69e8a/types/react-native/index.d.ts#L3230">platform</a> <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/354cec620daccfa0ad167ba046651fb5fef69e8a/types/react-native/index.d.ts#L3274">specific</a> properties defined for each component which then got merged together with <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/354cec620daccfa0ad167ba046651fb5fef69e8a/types/react-native/index.d.ts#L3294">"common"</a> properties using extension mechanism.</p>
<p dir="auto">First of all sometimes it seems to be impossible to split type definitions. For example for <a href="https://facebook.github.io/react-native/docs/image.html#resizemode" rel="nofollow">union types</a>. It means that we either duplicate definitions for iOS with all described alternatives or <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/354cec620daccfa0ad167ba046651fb5fef69e8a/types/react-native/index.d.ts#L3341">put them under "common" properties</a>. In first case it may lead to errors when type is updated in one place, but not updated in another. In second case it means that we can't clearly separate platform specific definitions.</p>
<p dir="auto">Also sometimes React Native adds support for both platforms, so some property should be moved form platform specific type to "common" type. But since everything work even without it, most of the time it doesn't happen.</p>
<p dir="auto">I might be wrong, but I see no explicit value for consumers of type definitions in having platform specific properties types. Am I missing something?</p>
<h3 dir="auto">Rearrange fields in properties in accordance to docs</h3>
<p dir="auto">It would be much easier to update types for components if order of fields in will follow React Native official documentation. There is no way to enforce it, but we can at least make it so. And I guess it would quite easy for future contributors to spot this pattern and follow it.</p> | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.