text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">When using an ES6 import at the <code class="notranslate">babel-node</code> REPL, it fails.</p>
<p dir="auto">Example sources:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// foo.js
import bar from './bar'
console.log(bar)"><pre class="notranslate"><span class="pl-c">// foo.js</span>
<span class="pl-k">import</span> <span class="pl-s1">bar</span> <span class="pl-k">from</span> <span class="pl-s">'./bar'</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">bar</span><span class="pl-kos">)</span></pre></div>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// bar.js
exports.baz = 1"><pre class="notranslate"><span class="pl-c">// bar.js</span>
<span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">baz</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span></pre></div>
<p dir="auto"><code class="notranslate">babel</code> generates the following code for <code class="notranslate">foo.js</code>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict';
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _bar = require('./bar');
var _bar2 = _interopRequireDefault(_bar);
console.log(_bar2['default']);"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">obj</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">obj</span> <span class="pl-c1">&&</span> <span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">__esModule</span> ? <span class="pl-s1">obj</span> : <span class="pl-kos">{</span> <span class="pl-s">'default'</span>: <span class="pl-s1">obj</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">_bar</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./bar'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_bar2</span> <span class="pl-c1">=</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">_bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">_bar2</span><span class="pl-kos">[</span><span class="pl-s">'default'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Passing the generated code from <code class="notranslate">babel</code> to <code class="notranslate">iojs</code> works fine:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ babel foo.js | iojs
{ baz: 1 }"><pre class="notranslate"><code class="notranslate">$ babel foo.js | iojs
{ baz: 1 }
</code></pre></div>
<p dir="auto">If you run the same module by hand at the REPL, or pipe it in, it fails:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat foo.js | babel-node
> import bar from './bar'
'use strict'
> console.log(bar)
repl:3
console.log(bar);
^
ReferenceError: bar is not defined
at repl:3:13
at Object.exports.runInThisContext (vm.js:54:17)
at _eval (/home/tomxtobin/npm/lib/node_modules/babel/bin/_babel-node:54:13)
at REPLServer.replEval (/home/tomxtobin/npm/lib/node_modules/babel/bin/_babel-node:136:14)
at bound (domain.js:254:14)
at REPLServer.runBound [as eval] (domain.js:267:12)
at REPLServer.<anonymous> (repl.js:309:12)
at emitOne (events.js:77:13)
at REPLServer.emit (events.js:166:7)
at REPLServer.Interface._onLine (readline.js:208:10)"><pre class="notranslate"><code class="notranslate">$ cat foo.js | babel-node
> import bar from './bar'
'use strict'
> console.log(bar)
repl:3
console.log(bar);
^
ReferenceError: bar is not defined
at repl:3:13
at Object.exports.runInThisContext (vm.js:54:17)
at _eval (/home/tomxtobin/npm/lib/node_modules/babel/bin/_babel-node:54:13)
at REPLServer.replEval (/home/tomxtobin/npm/lib/node_modules/babel/bin/_babel-node:136:14)
at bound (domain.js:254:14)
at REPLServer.runBound [as eval] (domain.js:267:12)
at REPLServer.<anonymous> (repl.js:309:12)
at emitOne (events.js:77:13)
at REPLServer.emit (events.js:166:7)
at REPLServer.Interface._onLine (readline.js:208:10)
</code></pre></div>
<p dir="auto">But if you pass the file as an argument to <code class="notranslate">babel-node</code> it works fine:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ babel-node foo.js
{ bar: 1 }"><pre class="notranslate"><code class="notranslate">$ babel-node foo.js
{ bar: 1 }
</code></pre></div>
<p dir="auto">If you keep everything in the REPL on the same line, it also works fine:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> import bar from './bar'; console.log(bar)
{ baz: 1 }
undefined"><pre class="notranslate"><code class="notranslate">> import bar from './bar'; console.log(bar)
{ baz: 1 }
undefined
</code></pre></div>
<p dir="auto">Versions:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ babel --version
5.2.16
$ iojs --version
v2.0.0"><pre class="notranslate"><code class="notranslate">$ babel --version
5.2.16
$ iojs --version
v2.0.0
</code></pre></div> | <p dir="auto">This used to work for me in 4.x, but since updating it doesn't seem like import works interactively any more.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[chris /tmp/aaa]$ npm i kefir
[email protected] node_modules/kefir
[chris /tmp/aaa]$ babel-node --version
5.1.9
[chris /tmp/aaa]$ babel-node
> import Kefir from 'kefir';
'use strict'
> Kefir
ReferenceError: Kefir is not defined
at [object Object]:3:1
at _eval (/usr/local/lib/node_modules/babel/bin/_babel-node:54:13)
at REPLServer.replEval [as eval] (/usr/local/lib/node_modules/babel/bin/_babel-node:136:14)
at Interface.<anonymous> (repl.js:239:12)
at Interface.emit (events.js:95:17)
at Interface._onLine (readline.js:203:10)
at Interface._line (readline.js:532:8)
at Interface._ttyWrite (readline.js:761:14)
at ReadStream.onkeypress (readline.js:100:10)
at ReadStream.emit (events.js:98:17)
> [chris /tmp/aaa]$
[chris /tmp/aaa]$ echo "import Kefir from 'kefir'; console.log(Kefir);"|babel-node
> import Kefir from 'kefir'; console.log(Kefir);
{ DEPRECATION_WARNINGS: true,
Observable: [Function: Observable],
Stream: [Function: Stream],
Property: [Function: Property],
withInterval: [Function],
fromPoll: [Function],
interval: [Function],
sequentially: [Function],
repeatedly: [Function],
later: [Function],
merge: [Function],
concat: [Function],
Pool: [Function: Pool],
pool: [Function],
Bus: [Function: Bus],
bus: [Function],
zip: [Function],
combine: [Function],
sampledBy: [Function],
fromBinder: [Function],
emitter: [Function],
Emitter: [Function: Emitter],
never: [Function],
constant: [Function],
constantError: [Function],
repeat: [Function],
and: [Function],
or: [Function],
fromCallback: [Function],
fromNodeCallback: [Function],
fromPromise: [Function],
fromSubUnsub: [Function],
fromEvent: [Function],
Kefir: [Circular] }
undefined
> [chris /tmp/aaa]$ "><pre class="notranslate"><code class="notranslate">[chris /tmp/aaa]$ npm i kefir
[email protected] node_modules/kefir
[chris /tmp/aaa]$ babel-node --version
5.1.9
[chris /tmp/aaa]$ babel-node
> import Kefir from 'kefir';
'use strict'
> Kefir
ReferenceError: Kefir is not defined
at [object Object]:3:1
at _eval (/usr/local/lib/node_modules/babel/bin/_babel-node:54:13)
at REPLServer.replEval [as eval] (/usr/local/lib/node_modules/babel/bin/_babel-node:136:14)
at Interface.<anonymous> (repl.js:239:12)
at Interface.emit (events.js:95:17)
at Interface._onLine (readline.js:203:10)
at Interface._line (readline.js:532:8)
at Interface._ttyWrite (readline.js:761:14)
at ReadStream.onkeypress (readline.js:100:10)
at ReadStream.emit (events.js:98:17)
> [chris /tmp/aaa]$
[chris /tmp/aaa]$ echo "import Kefir from 'kefir'; console.log(Kefir);"|babel-node
> import Kefir from 'kefir'; console.log(Kefir);
{ DEPRECATION_WARNINGS: true,
Observable: [Function: Observable],
Stream: [Function: Stream],
Property: [Function: Property],
withInterval: [Function],
fromPoll: [Function],
interval: [Function],
sequentially: [Function],
repeatedly: [Function],
later: [Function],
merge: [Function],
concat: [Function],
Pool: [Function: Pool],
pool: [Function],
Bus: [Function: Bus],
bus: [Function],
zip: [Function],
combine: [Function],
sampledBy: [Function],
fromBinder: [Function],
emitter: [Function],
Emitter: [Function: Emitter],
never: [Function],
constant: [Function],
constantError: [Function],
repeat: [Function],
and: [Function],
or: [Function],
fromCallback: [Function],
fromNodeCallback: [Function],
fromPromise: [Function],
fromSubUnsub: [Function],
fromEvent: [Function],
Kefir: [Circular] }
undefined
> [chris /tmp/aaa]$
</code></pre></div> | 1 |
<p dir="auto">The deployed (minimal, trimmed down) app is at:</p>
<p dir="auto"><a href="http://www.baharev.info/sandbox/eventbug/" rel="nofollow">http://www.baharev.info/sandbox/eventbug/</a></p>
<p dir="auto">and the entire source code is at:</p>
<p dir="auto"><a href="https://github.com/baharev/eventbug">https://github.com/baharev/eventbug</a></p>
<p dir="auto">Clicking or touching either square should make the clicked / touched square disappear, but only that square. Everything works as intended on my desktop machine both in Chrome and in Firefox. It also shows the correct behavior in Safari on iOS (and I don't care about IE or Edge).</p>
<p dir="auto">The following triggers the bug in Chrome, either on an Android tablet, or on my desktop machine when emulating a hand-held device. Reload the app, and touch or click the top (blue) square: Both squares disappear, and in the console log I see that <strong>the not clicked, and not touched bottom green square received a spurious mousedown event</strong> (which then deleted it).</p>
<p dir="auto">There is <code class="notranslate">touch-action: none;</code> in the app.css applied on the squares. If I didn't use it, I would get the following warning in Chrome when emulating a hand-held device:</p>
<blockquote>
<p dir="auto">[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See: <a href="https://www.chromestatus.com/features/5093566007214080" rel="nofollow">https://www.chromestatus.com/features/5093566007214080</a></p>
</blockquote>
<p dir="auto">With <code class="notranslate">touch-action: none;</code> (the way it is in the deployed app), this warning goes away.</p>
<ol dir="auto">
<li>Is the ghost mousedown event due to a bug in my code?</li>
<li>Or is it a bug in React?</li>
<li>Or is it a bug in Chrome?</li>
<li>How can I resolve this issue? (I am looking for a workaround if the bug is not in my code.)</li>
</ol> | <p dir="auto">Describe what you were doing when the bug occurred:</p>
<ol dir="auto">
<li>I opened my project ("react": "16.9.0")</li>
<li>Start profiling</li>
<li>Do my actions<br>
4, Stop profiling</li>
</ol>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.7.0-23309eb38</p>
<p dir="auto">Call stack: at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:164715)<br>
at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163705)<br>
at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:166664)<br>
at Ul (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:342328)<br>
at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:62450)<br>
at tl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:71793)<br>
at zl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:113765)<br>
at Ic (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:104502)<br>
at Tc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:104430)<br>
at Dc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:104298)</p>
<p dir="auto">Component stack: at Ul (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:342099)<br>
at div<br>
at div<br>
at div<br>
at Co (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:263571)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:366677<br>
at n (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:276314)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:278724<br>
at div<br>
at div<br>
at Xi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:325177)<br>
at Ge (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:207026)<br>
at sn (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:216342)<br>
at Va (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:293773)<br>
at us (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:371869)</p> | 0 |
<p dir="auto">I'm having an issue with duplicate identifier errors. It appears to stem from having the same definitions listed in multiple places.</p>
<p dir="auto">Let's say that I have a simple node server that utilizes the bluebird promise library. I have bluebird used in the main server code and in a library I wrote used by the server code. The structure looks like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|-- server.ts
|-- tsd.json
|-- typings
|-- lib
|-- mylib.ts
|-- tsd.json
|-- typings"><pre class="notranslate"><code class="notranslate">|-- server.ts
|-- tsd.json
|-- typings
|-- lib
|-- mylib.ts
|-- tsd.json
|-- typings
</code></pre></div>
<p dir="auto">Here is the code for and for <code class="notranslate">mylib.ts</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/// <reference path="./typings/tsd.d.ts"/>
import Promise = require('bluebird')
class MyLib {
}
export = MyLib"><pre class="notranslate"><code class="notranslate">/// <reference path="./typings/tsd.d.ts"/>
import Promise = require('bluebird')
class MyLib {
}
export = MyLib
</code></pre></div>
<p dir="auto">and <code class="notranslate">server.ts</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/// <reference path="./typings/tsd.d.ts"/>
import Promise = require('bluebird')
import MyLib = require('./lib/mylib')
class Server {
}
export = Server"><pre class="notranslate"><code class="notranslate">/// <reference path="./typings/tsd.d.ts"/>
import Promise = require('bluebird')
import MyLib = require('./lib/mylib')
class Server {
}
export = Server
</code></pre></div>
<p dir="auto">As you can see, both <code class="notranslate">server.ts</code> and <code class="notranslate">mylib.ts</code> use the bluebird library. Since <code class="notranslate">server.ts</code> uses <code class="notranslate">mylib.ts</code>, it ends up importing bluebird twice, which results in errors. So when I run</p>
<p dir="auto"><code class="notranslate">tsc server.ts --module commonjs</code></p>
<p dir="auto">I get</p>
<blockquote>
<p dir="auto">lib/typings/bluebird/bluebird.d.ts(705,9): error TS2300: Duplicate identifier 'concurrency'.<br>
lib/typings/bluebird/bluebird.d.ts(708,9): error TS2300: Duplicate identifier 'spread'.<br>
lib/typings/bluebird/bluebird.d.ts(711,9): error TS2300: Duplicate identifier 'suffix'.<br>
typings/bluebird/bluebird.d.ts(705,9): error TS2300: Duplicate identifier 'concurrency'.<br>
typings/bluebird/bluebird.d.ts(708,9): error TS2300: Duplicate identifier 'spread'.<br>
typings/bluebird/bluebird.d.ts(711,9): error TS2300: Duplicate identifier 'suffix'.</p>
</blockquote>
<p dir="auto">Tools like npm seem to be able to handle this situation. The only way I can get typescript to handle it is by having a single <code class="notranslate">tsd.json</code> file and corresponding <code class="notranslate">typings</code> folder at the root of my project and having all the typescript definitions live there. Is that the generally accepted way to structure things?</p> | <p dir="auto">This input results in one "Duplicate identifier" error on the second declaration. it would be helpful to have all of them flagged. this also applies to duplicate implementations incase of functions.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface I {
a
}
interface I {
a
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">I</span> <span class="pl-kos">{</span>
<span class="pl-c1">a</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">I</span> <span class="pl-kos">{</span>
<span class="pl-c1">a</span>
<span class="pl-kos">}</span></pre></div> | 0 |
<p dir="auto">Hi, I found that there are some problems (in my opinion) of the new theme of the <a href="https://pytorch.org/docs/master/" rel="nofollow">documentation</a>:</p>
<ul dir="auto">
<li>The font is too thin compared to the original one.</li>
<li>The background color is too bright compared to the original one.</li>
<li>It is hard to navigate across a long section (ex: <code class="notranslate">torch.nn</code>) without subsections in the left sidebar.</li>
<li>render inline code strangely. ex:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1811303/46128382-d670c400-c265-11e8-9646-1e6fd2bd1b23.png"><img src="https://user-images.githubusercontent.com/1811303/46128382-d670c400-c265-11e8-9646-1e6fd2bd1b23.png" alt="screenshot from 2018-09-27 14-57-34" style="max-width: 100%;"></a></li>
<li>The latex rendering results are strange in the sense that the font is not consistent and some formulas are just not rendered (maybe the latex syntax is not correct or KaTeX doesn't support certain features).</li>
<li>Some code snippets are not rendered properly. ex: (in <code class="notranslate">torch.jit</code>)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1811303/46128883-8f83ce00-c267-11e8-8de3-a79d05b36cef.png"><img src="https://user-images.githubusercontent.com/1811303/46128883-8f83ce00-c267-11e8-8de3-a79d05b36cef.png" alt="screenshot from 2018-09-27 15-10-45" style="max-width: 100%;"></a></li>
</ul>
<p dir="auto">In general, I think the original theme is more readable. Is there anything I can help or some plans to improve the readability?</p>
<p dir="auto">BTW, latex formulas in the new tutorial is extremely small.</p> | <p dir="auto">While the new documentation style looks sleeker, I find its readability awful</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1656541/45916067-4c80bf80-be4f-11e8-9780-f8feaecafd66.png"><img src="https://user-images.githubusercontent.com/1656541/45916067-4c80bf80-be4f-11e8-9780-f8feaecafd66.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I can barely read the text in the grey-on-grey left navbar and the text of the main content is much too thin to be read comfortably.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bdhirsh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bdhirsh">@bdhirsh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jbschlosser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jbschlosser">@jbschlosser</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/anjali411/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/anjali411">@anjali411</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/brianjo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/brianjo">@brianjo</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mruberry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mruberry">@mruberry</a></p> | 1 |
<p dir="auto">In the objects interface, one can instantiate a faceted plot where the faceted column is wrapped. When this results in a non-rectangular grid of axes, there are no xtick labels for the bottom axes that are not on the bottom row. Example code:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import seaborn as sis
import seaborn.objects as so
iris = sns.load_dataset("iris")
(
so.Plot(iris, "sepal_length", 'sepal_width')
.add(so.Dots())
.facet("species", wrap=2)
)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sis</span>
<span class="pl-k">import</span> <span class="pl-s1">seaborn</span>.<span class="pl-s1">objects</span> <span class="pl-k">as</span> <span class="pl-s1">so</span>
<span class="pl-s1">iris</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"iris"</span>)
(
<span class="pl-s1">so</span>.<span class="pl-v">Plot</span>(<span class="pl-s1">iris</span>, <span class="pl-s">"sepal_length"</span>, <span class="pl-s">'sepal_width'</span>)
.<span class="pl-en">add</span>(<span class="pl-s1">so</span>.<span class="pl-v">Dots</span>())
.<span class="pl-en">facet</span>(<span class="pl-s">"species"</span>, <span class="pl-s1">wrap</span><span class="pl-c1">=</span><span class="pl-c1">2</span>)
)</pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13831112/206922314-d6926cb8-74ab-4eac-bf15-9b6d59974adb.png"><img src="https://user-images.githubusercontent.com/13831112/206922314-d6926cb8-74ab-4eac-bf15-9b6d59974adb.png" alt="image" style="max-width: 100%;"></a><br>
Using <code class="notranslate">relplot</code> to generate a similar plot results with a correct plot, that has the x-tick labels for the rightmost axes.</p>
<p dir="auto">Analysis: The objects interface instantiates a plot using a rectangular <code class="notranslate">Figure.subplots</code> call (with shared axes) and then removes the axes that do not correspond to a subset of the faceted variable:<br>
</p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/mwaskom/seaborn/blob/22cdfb0c93f8ec78492d87edb810f10cb7f57a31/seaborn/_core/subplots.py#L199-L208">seaborn/seaborn/_core/subplots.py</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 199 to 208
in
<a data-pjax="true" class="commit-tease-sha" href="/mwaskom/seaborn/commit/22cdfb0c93f8ec78492d87edb810f10cb7f57a31">22cdfb0</a>
</p>
</div>
<div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
<table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">
<tbody><tr class="border-0">
<td id="L199" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="199"></td>
<td id="LC199" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">wrap</span>: </td>
</tr>
<tr class="border-0">
<td id="L200" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="200"></td>
<td id="LC200" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># Remove unused Axes and flatten the rest into a (2D) vector</span> </td>
</tr>
<tr class="border-0">
<td id="L201" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="201"></td>
<td id="LC201" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">axs_flat</span> <span class="pl-c1">=</span> <span class="pl-s1">axs</span>.<span class="pl-en">ravel</span>({<span class="pl-s">"col"</span>: <span class="pl-s">"C"</span>, <span class="pl-s">"row"</span>: <span class="pl-s">"F"</span>}[<span class="pl-s1">self</span>.<span class="pl-s1">wrap_dim</span>]) </td>
</tr>
<tr class="border-0">
<td id="L202" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="202"></td>
<td id="LC202" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">axs</span>, <span class="pl-s1">extra</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">split</span>(<span class="pl-s1">axs_flat</span>, [<span class="pl-s1">self</span>.<span class="pl-s1">n_subplots</span>]) </td>
</tr>
<tr class="border-0">
<td id="L203" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="203"></td>
<td id="LC203" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> <span class="pl-s1">ax</span> <span class="pl-c1">in</span> <span class="pl-s1">extra</span>: </td>
</tr>
<tr class="border-0">
<td id="L204" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="204"></td>
<td id="LC204" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ax</span>.<span class="pl-en">remove</span>() </td>
</tr>
<tr class="border-0">
<td id="L205" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="205"></td>
<td id="LC205" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">wrap_dim</span> <span class="pl-c1">==</span> <span class="pl-s">"col"</span>: </td>
</tr>
<tr class="border-0">
<td id="L206" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="206"></td>
<td id="LC206" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">axs</span> <span class="pl-c1">=</span> <span class="pl-s1">axs</span>[<span class="pl-s1">np</span>.<span class="pl-s1">newaxis</span>, :] </td>
</tr>
<tr class="border-0">
<td id="L207" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="207"></td>
<td id="LC207" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">else</span>: </td>
</tr>
<tr class="border-0">
<td id="L208" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="208"></td>
<td id="LC208" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">axs</span> <span class="pl-c1">=</span> <span class="pl-s1">axs</span>[:, <span class="pl-s1">np</span>.<span class="pl-s1">newaxis</span>] </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">Behind the scenes, <code class="notranslate">Figure.subplots</code> creates a rectangular grid and disables the inner axes' xticklabels (since all axes are shared):<br>
<a href="https://github.com/matplotlib/matplotlib/blob/cc20d3f7bbb18a21683fb499d98b0814546583c6/lib/matplotlib/axes/_base.py#L4587-L4596">https://github.com/matplotlib/matplotlib/blob/cc20d3f7bbb18a21683fb499d98b0814546583c6/lib/matplotlib/axes/_base.py#L4587-L4596</a></p>
<p dir="auto">But the deletion of the extra axes by seaborn doesn't restore the ticks and labels that <code class="notranslate">Figure.subplots</code> removed, and instead only operates on the visibility of the ticks (which are absent at this point due to the axes instantiation):<br>
</p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/mwaskom/seaborn/blob/22cdfb0c93f8ec78492d87edb810f10cb7f57a31/seaborn/_core/plot.py#L1040-L1048">seaborn/seaborn/_core/plot.py</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 1040 to 1048
in
<a data-pjax="true" class="commit-tease-sha" href="/mwaskom/seaborn/commit/22cdfb0c93f8ec78492d87edb810f10cb7f57a31">22cdfb0</a>
</p>
</div>
<div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
<table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">
<tbody><tr class="border-0">
<td id="L1040" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1040"></td>
<td id="LC1040" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">show_tick_labels</span> <span class="pl-c1">=</span> ( </td>
</tr>
<tr class="border-0">
<td id="L1041" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1041"></td>
<td id="LC1041" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">show_axis_label</span> </td>
</tr>
<tr class="border-0">
<td id="L1042" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1042"></td>
<td id="LC1042" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">or</span> <span class="pl-s1">subplot_spec</span>.<span class="pl-en">get</span>(<span class="pl-s">f"share<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">axis</span><span class="pl-kos">}</span></span>"</span>) <span class="pl-c1">not</span> <span class="pl-c1">in</span> ( </td>
</tr>
<tr class="border-0">
<td id="L1043" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1043"></td>
<td id="LC1043" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">True</span>, <span class="pl-s">"all"</span>, {<span class="pl-s">"x"</span>: <span class="pl-s">"col"</span>, <span class="pl-s">"y"</span>: <span class="pl-s">"row"</span>}[<span class="pl-s1">axis</span>] </td>
</tr>
<tr class="border-0">
<td id="L1044" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1044"></td>
<td id="LC1044" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> ) </td>
</tr>
<tr class="border-0">
<td id="L1045" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1045"></td>
<td id="LC1045" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> ) </td>
</tr>
<tr class="border-0">
<td id="L1046" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1046"></td>
<td id="LC1046" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> <span class="pl-s1">group</span> <span class="pl-c1">in</span> (<span class="pl-s">"major"</span>, <span class="pl-s">"minor"</span>): </td>
</tr>
<tr class="border-0">
<td id="L1047" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1047"></td>
<td id="LC1047" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> <span class="pl-s1">t</span> <span class="pl-c1">in</span> <span class="pl-en">getattr</span>(<span class="pl-s1">axis_obj</span>, <span class="pl-s">f"get_<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">group</span><span class="pl-kos">}</span></span>ticklabels"</span>)(): </td>
</tr>
<tr class="border-0">
<td id="L1048" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1048"></td>
<td id="LC1048" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">t</span>.<span class="pl-en">set_visible</span>(<span class="pl-s1">show_tick_labels</span>) </td>
</tr>
</tbody></table>
</div>
</div>
<br>
Expected behavior: the ticks and their labels should be visible for non-last-row bottom axes of non-rectangular wrapped shared facets.<p></p> | <p dir="auto">When axes are shared, "internal" axes have axis and tick labels hidden. This is a good default, but might not always be what you want. It should be configurable somehow (perhaps in <code class="notranslate">Plot.layout</code>?)</p>
<p dir="auto">Additionally, the default is not idea with a "wrapped" figure where the axis is "internal" but all of the axes external to it have been removed. e.g.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(
so.Plot(mpg, x="mpg")
.pair(y=["displacement", "weight", "acceleration"], wrap=2)
.add(so.Dots())
)"><pre class="notranslate">(
<span class="pl-s1">so</span>.<span class="pl-v">Plot</span>(<span class="pl-s1">mpg</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">"mpg"</span>)
.<span class="pl-en">pair</span>(<span class="pl-s1">y</span><span class="pl-c1">=</span>[<span class="pl-s">"displacement"</span>, <span class="pl-s">"weight"</span>, <span class="pl-s">"acceleration"</span>], <span class="pl-s1">wrap</span><span class="pl-c1">=</span><span class="pl-c1">2</span>)
.<span class="pl-en">add</span>(<span class="pl-s1">so</span>.<span class="pl-v">Dots</span>())
)</pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/315810/187003902-aa1ee825-a524-4013-898d-8923d6270b3e.png"><img src="https://user-images.githubusercontent.com/315810/187003902-aa1ee825-a524-4013-898d-8923d6270b3e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">The tick labels are hidden (matplotlib has actually <em>removed</em> them due to axis sharing logic) but the axis label is visible (I actually don't understand why that is; I didn't think we had logic for that but maybe we do). Probably we want either, or both, or tick labels but not axis label, but the current situation is the worst of all possible worlds.</p>
<p dir="auto">Note that this specific situation also has some complex interactions with tight_layout / constrained_layout in terms of how much space is left between the other axes; it might be necessary to remove whichever ends up here "from the layout". Kind of a mess all around. Punting to after v0.12.0.</p> | 1 |
<p dir="auto">Hi, i use javascript to hide the popover,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$('#element').popover('hide');"><pre class="notranslate"><code class="notranslate">$('#element').popover('hide');
</code></pre></div>
<p dir="auto">but i realize that the popover is alway there and but invisible, if had links or button inside the popover and if i click at the same time where the popover was before hidding it, the link and button are all there and clickable but invisible.</p>
<p dir="auto">Try my demo, Hide with the Hide me button.<br>
the link is still there and clickable<br>
<a href="http://jsfiddle.net/onigetoc/eCLAu/2/" rel="nofollow">http://jsfiddle.net/onigetoc/eCLAu/2/</a></p>
<p dir="auto">Hi think modal do the same thing, i got invisible input and textarea who do weird things when i click where they was visible.</p>
<p dir="auto">using modal hide with javascript</p> | <p dir="auto">i searched for an already opened issue but did not found any that was reporting this exact problem.</p>
<p dir="auto">I'm trying to use the destroy method on tooltip (bootstrap v3) but it does not remove the element from the DOM.</p>
<p dir="auto">Any idea ?</p>
<p dir="auto">Fiddle : <a href="http://jsfiddle.net/52VtD/59/" rel="nofollow">http://jsfiddle.net/52VtD/59/</a></p>
<p dir="auto">click on the button to trigger the tooltip destroy method</p> | 1 |
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/michaelgaribaldi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/michaelgaribaldi">@michaelgaribaldi</a> on 2016-10-28T22:32:33Z</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">eos_config</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0
config file = /home/vagrant/iostest/ansible.cfg
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.3.0
config file = /home/vagrant/iostest/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">Using default config</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ubuntu managing Arista</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">In this special case when multiple VLANS are created without a name (or the same name) associated to them, the "show run" of an Arista config puts them in one line such as "vlan 10-11". This breaks the idempotency since it will attempt to add the VLAN again. It will attempt to add VLAN 10 or 11 again, for example. It appears as though during the running config check, the module is parsing for an individual VLAN line with that particualr VLAN.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<ol dir="auto">
<li>
<p dir="auto">Create a task that adds a NEW vlan to an arista switch. Do not add a name to this vlan at this time.</p>
</li>
<li>
<p dir="auto">Run the task again but change make vlan 11 instead of vlan 10</p>
</li>
<li>
<p dir="auto">Run the exact task in step 1...adding vlan 10 to the switch again</p>
</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#eos.yaml
- name: role add vlan using eos_config module
connection: local
eos_config:
lines:
- vlan 10
provider: "{{ cli }}"
register: vlan_created_out
#arista-vlan.yaml
---
- name: playbook - vlan add using eos_config
hosts: eos
gather_facts: no
connection: local
vars_files:
- creds.yaml
roles:
- { role: vlan_add }
"><pre class="notranslate"><code class="notranslate">#eos.yaml
- name: role add vlan using eos_config module
connection: local
eos_config:
lines:
- vlan 10
provider: "{{ cli }}"
register: vlan_created_out
#arista-vlan.yaml
---
- name: playbook - vlan add using eos_config
hosts: eos
gather_facts: no
connection: local
vars_files:
- creds.yaml
roles:
- { role: vlan_add }
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Step 1) Expected output, changed=1 and new vlan 10 created<br>
Step 2) Expected output, changed=1 and new vlan 11 created<br>
Step 3) Expected output, changed=0 and vlan 10 not attempted to be created</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Step 1) Expected output, changed=1 and new vlan 10 created<br>
Step 2) Expected output, changed=1 and new vlan 11 created<br>
Step 3) Expected output, changed=1 and vlan 10 attempted to be created again...you can see when logging AAA commands that the vlan is attempting to be created every time.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate">
</code></pre></div>
<p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="186036486" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/5430" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/5430/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/5430">ansible/ansible-modules-core#5430</a></p> | <p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/michaelgaribaldi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/michaelgaribaldi">@michaelgaribaldi</a> on 2016-10-28T22:32:33Z</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">eos_config</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0
config file = /home/vagrant/iostest/ansible.cfg
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.3.0
config file = /home/vagrant/iostest/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">Using default config</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ubuntu managing Arista</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">In this special case when multiple VLANS are created without a name (or the same name) associated to them, the "show run" of an Arista config puts them in one line such as "vlan 10-11". This breaks the idempotency since it will attempt to add the VLAN again. It will attempt to add VLAN 10 or 11 again, for example. It appears as though during the running config check, the module is parsing for an individual VLAN line with that particualr VLAN.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<ol dir="auto">
<li>
<p dir="auto">Create a task that adds a NEW vlan to an arista switch. Do not add a name to this vlan at this time.</p>
</li>
<li>
<p dir="auto">Run the task again but change make vlan 11 instead of vlan 10</p>
</li>
<li>
<p dir="auto">Run the exact task in step 1...adding vlan 10 to the switch again</p>
</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#eos.yaml
- name: role add vlan using eos_config module
connection: local
eos_config:
lines:
- vlan 10
provider: "{{ cli }}"
register: vlan_created_out
#arista-vlan.yaml
---
- name: playbook - vlan add using eos_config
hosts: eos
gather_facts: no
connection: local
vars_files:
- creds.yaml
roles:
- { role: vlan_add }
"><pre class="notranslate"><code class="notranslate">#eos.yaml
- name: role add vlan using eos_config module
connection: local
eos_config:
lines:
- vlan 10
provider: "{{ cli }}"
register: vlan_created_out
#arista-vlan.yaml
---
- name: playbook - vlan add using eos_config
hosts: eos
gather_facts: no
connection: local
vars_files:
- creds.yaml
roles:
- { role: vlan_add }
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Step 1) Expected output, changed=1 and new vlan 10 created<br>
Step 2) Expected output, changed=1 and new vlan 11 created<br>
Step 3) Expected output, changed=0 and vlan 10 not attempted to be created</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Step 1) Expected output, changed=1 and new vlan 10 created<br>
Step 2) Expected output, changed=1 and new vlan 11 created<br>
Step 3) Expected output, changed=1 and vlan 10 attempted to be created again...you can see when logging AAA commands that the vlan is attempting to be created every time.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate">
</code></pre></div>
<p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="186036486" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/5430" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/5430/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/5430">ansible/ansible-modules-core#5430</a></p> | 1 |
<p dir="auto">deno: 0.2.8<br>
v8: 7.2.502.16<br>
typescript: 3.2.1</p>
<p dir="auto">Run the following in both node and deno:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="new Date().toLocaleString("en-US", {timeZone: "America/Halifax"});
new Date().toLocaleString("en-US", {timeZone: "America/New_York"});
new Date().toLocaleString("en-US", {timeZone: "America/Chicago"});
new Date().toLocaleString("en-US", {timeZone: "America/Denver"});
new Date().toLocaleString("en-US", {timeZone: "America/Los_Angeles"});
new Date().toLocaleString("en-US", {timeZone: "America/Anchorage"});
new Date().toLocaleString("en-US", {timeZone: "Pacific/Honolulu"});"><pre class="notranslate"><code class="notranslate">new Date().toLocaleString("en-US", {timeZone: "America/Halifax"});
new Date().toLocaleString("en-US", {timeZone: "America/New_York"});
new Date().toLocaleString("en-US", {timeZone: "America/Chicago"});
new Date().toLocaleString("en-US", {timeZone: "America/Denver"});
new Date().toLocaleString("en-US", {timeZone: "America/Los_Angeles"});
new Date().toLocaleString("en-US", {timeZone: "America/Anchorage"});
new Date().toLocaleString("en-US", {timeZone: "Pacific/Honolulu"});
</code></pre></div>
<p dir="auto">Deno returns incorrect times. It doesn't appear to support the <a href="https://www.iana.org/time-zones" rel="nofollow">IANA</a> time zones yet.</p> | <p dir="auto">As seen in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="422116599" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1952" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1952/hovercard" href="https://github.com/denoland/deno/issues/1952">#1952</a> / <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="405562913" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1636" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1636/hovercard" href="https://github.com/denoland/deno/issues/1636">#1636</a> ICU needs to be added in Deno build.</p>
<p dir="auto">Switching this flag to true maybe: <a href="https://github.com/denoland/deno/blob/master/.gn#L50">https://github.com/denoland/deno/blob/master/.gn#L50</a> ?</p>
<p dir="auto">ref: <a href="https://v8.dev/docs/i18n" rel="nofollow">https://v8.dev/docs/i18n</a></p> | 1 |
<p dir="auto">I was trying to import numpy but came out with this problem, i tried to reinstall numpy but it's still not working, any ideas?</p>
<p dir="auto">Here's the issue-</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">import numpy<br>
Traceback (most recent call last):<br>
File "/usr/local/lib/python3.5/dist-packages/numpy/core/<strong>init</strong>.py", line 17, in <br>
from . import multiarray<br>
File "/usr/local/lib/python3.5/dist-packages/numpy/core/multiarray.py", line 14, in <br>
from . import overrides<br>
File "/usr/local/lib/python3.5/dist-packages/numpy/core/overrides.py", line 7, in <br>
from numpy.core._multiarray_umath import (<br>
ImportError: /usr/local/lib/python3.5/dist-packages/numpy/core/_multiarray_umath.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: cblas_sgemm</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "<pyshell#0>", line 1, in <br>
import numpy<br>
File "/usr/local/lib/python3.5/dist-packages/numpy/<strong>init</strong>.py", line 142, in <br>
from . import core<br>
File "/usr/local/lib/python3.5/dist-packages/numpy/core/<strong>init</strong>.py", line 47, in <br>
raise ImportError(msg)<br>
ImportError:</p>
<p dir="auto">IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!</p>
<p dir="auto">Importing the numpy c-extensions failed.</p>
<ul dir="auto">
<li>
<p dir="auto">Try uninstalling and reinstalling numpy.</p>
</li>
<li>
<p dir="auto">If you have already done that, then:</p>
<ol dir="auto">
<li>Check that you expected to use Python3.5 from "/usr/bin/python3",<br>
and that you have no directories in your PATH or PYTHONPATH that can<br>
interfere with the Python and numpy version "1.17.2" you're trying to use.</li>
<li>If (1) looks fine, you can open a new issue at<br>
<a href="https://github.com/numpy/numpy/issues">https://github.com/numpy/numpy/issues</a>. Please include details on:
<ul dir="auto">
<li>how you installed Python</li>
<li>how you installed numpy</li>
<li>your operating system</li>
<li>whether or not you have multiple versions of Python installed</li>
<li>if you built from source, your compiler versions and ideally a build log</li>
</ul>
</li>
</ol>
</li>
<li>
<p dir="auto">If you're working with a numpy git repository, try <code class="notranslate">git clean -xdf</code><br>
(removes all files not under version control) and rebuild numpy.</p>
</li>
</ul>
<p dir="auto">Note: this error has many possible causes, so please don't comment on<br>
an existing issue about this - open a new one instead.</p>
<p dir="auto">Original error was: /usr/local/lib/python3.5/dist-packages/numpy/core/_multiarray_umath.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: cblas_sgemm</p> | <p dir="auto">This is on installing numpy on raspberry pi 3. I used the Noobs latest version and so using Raspbian stretch. Python was already installed, and I think numpy was already included. At the time, I think that import numpy was working well.<br>
I installed openCV and it didn't work for a while as I had not put some necessary modules, but finally got it to work. So far so good.<br>
Later I was trying to install matplotlib, and this didn't go very smoothly. I made a number of attempts where the message in the title was already flagged. I finally manage to get the import matplotlib to work, but then numpy stopped importing. Now I cannot import either matplotlib or numpy, despite having uninstalled numpy (pip3 uninstall numpy) and reinstalled:</p>
<p dir="auto">/home/pi/.local/lib/python3.5/site-packages/numpy/tests/test_warnings.py<br>
/home/pi/.local/lib/python3.5/site-packages/numpy/version.py<br>
Proceed (y/n)? y<br>
Successfully uninstalled numpy-1.16.1<br>
pi@raspberrypi:~ $ pip3 install numpy<br>
Collecting numpy<br>
Using cached <a href="https://www.piwheels.org/simple/numpy/numpy-1.16.1-cp35-cp35m-linux_armv7l.whl" rel="nofollow">https://www.piwheels.org/simple/numpy/numpy-1.16.1-cp35-cp35m-linux_armv7l.whl</a><br>
Installing collected packages: numpy<br>
Successfully installed numpy-1.16.1<br>
pi@raspberrypi:~ $</p>
<p dir="auto">Prior to uninstalling numpy, I did try to install without uninstalling, and downloaded the cached file mentioned.</p>
<p dir="auto">Now, I cannot import numpy or matplotlib and for both get a similar error and the message telling me to raise this new issue which I am doing now.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">import numpy<br>
Traceback (most recent call last):<br>
File "/home/pi/.local/lib/python3.5/site-packages/numpy/core/<strong>init</strong>.py", line 16, in <br>
from . import multiarray<br>
File "/home/pi/.local/lib/python3.5/site-packages/numpy/core/multiarray.py", line 12, in <br>
from . import overrides<br>
File "/home/pi/.local/lib/python3.5/site-packages/numpy/core/overrides.py", line 6, in <br>
from numpy.core._multiarray_umath import (<br>
ImportError: /home/pi/.local/lib/python3.5/site-packages/numpy/core/_multiarray_umath.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: cblas_sgemm</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "<pyshell#0>", line 1, in <br>
import numpy<br>
File "/home/pi/.local/lib/python3.5/site-packages/numpy/<strong>init</strong>.py", line 142, in <br>
from . import core<br>
File "/home/pi/.local/lib/python3.5/site-packages/numpy/core/<strong>init</strong>.py", line 47, in <br>
raise ImportError(msg)<br>
ImportError:</p>
<p dir="auto">IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!</p>
<p dir="auto">Importing the multiarray numpy extension module failed. Most<br>
likely you are trying to import a failed build of numpy.<br>
Here is how to proceed:</p>
<ul dir="auto">
<li>If you're working with a numpy git repository, try <code class="notranslate">git clean -xdf</code><br>
(removes all files not under version control) and rebuild numpy.</li>
<li>If you are simply trying to use the numpy version that you have installed:<br>
your installation is broken - please reinstall numpy.</li>
<li>If you have already reinstalled and that did not fix the problem, then:
<ol dir="auto">
<li>
<p dir="auto">Check that you are using the Python you expect (you're using /usr/bin/python3),<br>
and that you have no directories in your PATH or PYTHONPATH that can<br>
interfere with the Python and numpy versions you're trying to use.</p>
</li>
<li>
<p dir="auto">If (1) looks fine, you can open a new issue at<br>
<a href="https://github.com/numpy/numpy/issues">https://github.com/numpy/numpy/issues</a>. Please include details on:</p>
<ul dir="auto">
<li>how you installed Python</li>
<li>how you installed numpy</li>
<li>your operating system</li>
<li>whether or not you have multiple versions of Python installed</li>
<li>if you built from source, your compiler versions and ideally a build log</li>
</ul>
<p dir="auto">Note: this error has many possible causes, so please don't comment on<br>
an existing issue about this - open a new one instead.</p>
</li>
</ol>
</li>
</ul>
<p dir="auto">Original error was: /home/pi/.local/lib/python3.5/site-packages/numpy/core/_multiarray_umath.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: cblas_sgemm</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">import matplotlib<br>
Traceback (most recent call last):<br>
File "/home/pi/.local/lib/python3.5/site-packages/numpy/core/<strong>init</strong>.py", line 16, in <br>
from . import multiarray<br>
File "/home/pi/.local/lib/python3.5/site-packages/numpy/core/multiarray.py", line 12, in <br>
from . import overrides<br>
File "/home/pi/.local/lib/python3.5/site-packages/numpy/core/overrides.py", line 6, in <br>
from numpy.core._multiarray_umath import (<br>
ImportError: /home/pi/.local/lib/python3.5/site-packages/numpy/core/_multiarray_umath.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: cblas_sgemm</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "<pyshell#1>", line 1, in <br>
import matplotlib<br>
File "/home/pi/.local/lib/python3.5/site-packages/matplotlib/<strong>init</strong>.py", line 141, in <br>
from . import cbook, rcsetup<br>
File "/home/pi/.local/lib/python3.5/site-packages/matplotlib/cbook/<strong>init</strong>.py", line 33, in <br>
import numpy as np<br>
File "/home/pi/.local/lib/python3.5/site-packages/numpy/<strong>init</strong>.py", line 142, in <br>
from . import core<br>
File "/home/pi/.local/lib/python3.5/site-packages/numpy/core/<strong>init</strong>.py", line 47, in <br>
raise ImportError(msg)<br>
ImportError:</p>
<p dir="auto">IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!</p>
<p dir="auto">Importing the multiarray numpy extension module failed. Most<br>
likely you are trying to import a failed build of numpy.<br>
Here is how to proceed:</p>
<ul dir="auto">
<li>If you're working with a numpy git repository, try <code class="notranslate">git clean -xdf</code><br>
(removes all files not under version control) and rebuild numpy.</li>
<li>If you are simply trying to use the numpy version that you have installed:<br>
your installation is broken - please reinstall numpy.</li>
<li>If you have already reinstalled and that did not fix the problem, then:
<ol dir="auto">
<li>
<p dir="auto">Check that you are using the Python you expect (you're using /usr/bin/python3),<br>
and that you have no directories in your PATH or PYTHONPATH that can<br>
interfere with the Python and numpy versions you're trying to use.</p>
</li>
<li>
<p dir="auto">If (1) looks fine, you can open a new issue at<br>
<a href="https://github.com/numpy/numpy/issues">https://github.com/numpy/numpy/issues</a>. Please include details on:</p>
<ul dir="auto">
<li>how you installed Python</li>
<li>how you installed numpy</li>
<li>your operating system</li>
<li>whether or not you have multiple versions of Python installed</li>
<li>if you built from source, your compiler versions and ideally a build log</li>
</ul>
<p dir="auto">Note: this error has many possible causes, so please don't comment on<br>
an existing issue about this - open a new one instead.</p>
</li>
</ol>
</li>
</ul>
<p dir="auto">Original error was: /home/pi/.local/lib/python3.5/site-packages/numpy/core/_multiarray_umath.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: cblas_sgemm</p>
<p dir="auto">I hope this helps and that it will eventually contribute to making the installation of these two packages easier in the future.</p>
<p dir="auto">Thanks,</p>
<p dir="auto">Thomas</p> | 1 |
<p dir="auto">From the mailing list:</p>
<p dir="auto">I am referring to the documentation<br>
here: <a href="http://docs.ansible.com/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable" rel="nofollow">http://docs.ansible.com/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable</a></p>
<p dir="auto">When I use vars_files and "-e" (command line) variables together, I get<br>
results that appear to fly in the face of the aforementioned documentation.<br>
Exhibit A:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version
ansible 1.5.3
$ cat test_vars.yml
---
test_var: "from vars_files"
$ cat test.yml
---
- hosts: 127.0.0.1
connection: local
vars_files:
- test_vars.yml
tasks:
- name: Testing variables
debug: msg="{{ test_var }}"
$ ansible-playbook -i test test.yml -e "test_var='from command line'"
PLAY [127.0.0.1] **************************************************************
GATHERING FACTS ***************************************************************
ok: [127.0.0.1]
TASK: [Testing variables] *****************************************************
ok: [127.0.0.1] => {
"msg": "from vars_files"
}
PLAY RECAP ********************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 1.5.3
$ cat test_vars.yml
---
test_var: "from vars_files"
$ cat test.yml
---
- hosts: 127.0.0.1
connection: local
vars_files:
- test_vars.yml
tasks:
- name: Testing variables
debug: msg="{{ test_var }}"
$ ansible-playbook -i test test.yml -e "test_var='from command line'"
PLAY [127.0.0.1] **************************************************************
GATHERING FACTS ***************************************************************
ok: [127.0.0.1]
TASK: [Testing variables] *****************************************************
ok: [127.0.0.1] => {
"msg": "from vars_files"
}
PLAY RECAP ********************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=0
</code></pre></div>
<p dir="auto">Note that according to the docs, -e variables should "always win" but in<br>
this case, they clearly do not.</p> | <h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 1.5.3</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">Variables referenced in tasks (the ones which appear directly in the playbook/are included with <code class="notranslate">include</code> as well as ones in roles) have their value changed across tasks when they are specified both in <code class="notranslate">vars_files</code> and with <code class="notranslate">--extra-vars</code>: the first time a tasks refers to it the value in <code class="notranslate">vars_files</code> is used, and all subsequent tasks get the value passed via <code class="notranslate">--extra-vars</code>.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">my_vars.yml:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
---
some_var: foo"><pre class="notranslate">---
<span class="pl-ent">some_var</span>: <span class="pl-s">foo</span></pre></div>
<p dir="auto">playbook.yml:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
---
- hosts: 127.0.0.1
connection: local
vars_files: [my_vars.yml]
tasks:
- command: echo {{ some_var }}
- command: echo {{ some_var }}
- command: echo {{ some_var }}"><pre class="notranslate">---
- <span class="pl-ent">hosts</span>: <span class="pl-s">127.0.0.1</span>
<span class="pl-ent">connection</span>: <span class="pl-s">local</span>
<span class="pl-ent">vars_files</span>: <span class="pl-s">[my_vars.yml]</span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">command</span>: <span class="pl-s">echo {{ some_var }}</span>
- <span class="pl-ent">command</span>: <span class="pl-s">echo {{ some_var }}</span>
- <span class="pl-ent">command</span>: <span class="pl-s">echo {{ some_var }}</span></pre></div>
<p dir="auto">Then call ansible-playbook with <code class="notranslate">ansible-playbook -e some_var=bar playbook.yml</code>.</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">The <code class="notranslate">echo</code> calls show me "bar" 3 times.</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">The first <code class="notranslate">echo</code> call shows "foo", the other 2 show "bar".</p> | 1 |
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">Three is a bug in FBXLoader with animation .When I run the example webgl_loader_fbx.html,only changing the Samba Dancing.fbx to man.fbx(already attched to this issue.), the animation is different from what opened in 3dmax. The right animation is that the man is walking normally.</p>
<p dir="auto"><a href="https://github.com/mrdoob/three.js/files/3754016/man.zip">man.zip</a></p>
<h5 dir="auto">Three.js version</h5>
<p dir="auto">106dev</p>
<h5 dir="auto">Browser</h5>
<p dir="auto">only tried on chrome and firefox</p>
<h5 dir="auto">OS</h5>
<p dir="auto">windows</p>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">The FBXLoader does not work with many skeleton animations. e.g., from Mixamo.com. One example from Mixamo that fails is the following:</p>
<p dir="auto">Character: WHITECLOWN N HALLIN<br>
Animation: SAMBA DANCING</p>
<p dir="auto">You can get this model by downloading it from Mixamo directly but I have also attached it to this issue.<br>
<a href="https://github.com/mrdoob/three.js/files/2375109/WhiteClownSambaDancing.zip">WhiteClownSambaDancing.zip</a></p>
<p dir="auto">Here is the displayed result using the webgl_loader_fbx.html sample in THREE v96 modified to load the WhiteClownSamaDancing.fbx:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9258904/45424827-4c1d4300-b65d-11e8-89ff-e599e2887b26.png"><img src="https://user-images.githubusercontent.com/9258904/45424827-4c1d4300-b65d-11e8-89ff-e599e2887b26.png" alt="whiteclownsambadancing_fbxloader" style="max-width: 100%;"></a><br>
<em>Screen shot using webgl_loader_fbx.html</em></p>
<p dir="auto">Here is the same FBX file displayed in AutoDesk FBX Review:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9258904/45425263-71f71780-b65e-11e8-8256-11a798ecefef.png"><img src="https://user-images.githubusercontent.com/9258904/45425263-71f71780-b65e-11e8-8256-11a798ecefef.png" alt="whiteclownsambadancing_fbxreview" style="max-width: 100%;"></a><br>
<em>Screen shot using AutoDesk FBX Review</em></p>
<p dir="auto">There are many other Mixamo character/animations pairings that work fine with the FBXLoader but many that do not. It is possible (though not confirmed) that the ones that fail were created with Maya (this has been stated as a possible problem in some other issues).</p>
<p dir="auto">Also, the WhiteClownSambaDancing.fbx file loads correctly in many other software including the Mixamo site itself and <a href="http://www.open3mod.com/" rel="nofollow">http://www.open3mod.com/</a>. The later is fully open source so you can see the exact code they use to perform the node/bone transforms and animations. They actually use AssImp for their conversion and you can see the exact code there. In particular, see the following for their FBX import 3D transform handling:</p>
<p dir="auto"><a href="https://github.com/assimp/assimp/blob/master/code/FBXConverter.cpp#L644">https://github.com/assimp/assimp/blob/master/code/FBXConverter.cpp#L644</a></p>
<p dir="auto">After digging into the FBXLoader code a bit, it seems there may be several areas where the issue could lie:</p>
<ul dir="auto">
<li>There does not seem to be any code to honor the FBX inherit type on the nodes.</li>
<li>There does not seem to be any code to implement rotate/scale pivot points on the nodes (NOT the geometry transforms which are implemented).</li>
</ul>
<p dir="auto">The following code from the AutoDesk FBX SDK may be of some help for implementing both of the above, esp. the code and comments in CalculateGlobalTransform():</p>
<p dir="auto"><a href="http://docs.autodesk.com/FBX/2014/ENU/FBX-SDK-Documentation/index.html?url=cpp_ref/_transformations_2main_8cxx-example.html,topicNumber=cpp_ref__transformations_2main_8cxx_example_htmlfc10a1e1-b18d-4e72-9dc0-70d0f1959f5e" rel="nofollow">AutoDesk FBX source code Transformations/main.cxx</a></p>
<p dir="auto">There are some other THREE.js issues which have not been fully addressed regarding incorrect FBX animations loaded via the FBXLoader (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="248221666" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/11895" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/11895/hovercard" href="https://github.com/mrdoob/three.js/issues/11895">#11895</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="301439158" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/13466" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/13466/hovercard" href="https://github.com/mrdoob/three.js/issues/13466">#13466</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="312925659" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/13821" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/13821/hovercard" href="https://github.com/mrdoob/three.js/issues/13821">#13821</a>). This issue is about improving the FBXLoader, not a particular file or asset pipeline. Please do not suggest use of FBX2GLTF (which just bakes the animations) or other converters.</p>
<p dir="auto">Also, we are willing to provide some help with design and coding, if need be, but doing a full solution with a PR is beyond our bandwidth at this time (ping <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/looeee/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/looeee">@looeee</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Kyle-Larson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Kyle-Larson">@Kyle-Larson</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/takahirox/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/takahirox">@takahirox</a> ?).</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r96</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> | 1 |
<p dir="auto"><code class="notranslate">Version: 1.0.0 OS Version: Microsoft Windows NT 10.0.18362.0 IntPtr Length: 8 x64: True Date: 08/05/2020 08:46:02 Exception: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Timer'. at System.Timers.Timer.set_Enabled(Boolean value) at System.Timers.Timer.Start() at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e) at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot) at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) at System.Windows.Window.SetRootVisual() at System.Windows.Window.SetRootVisualAndUpdateSTC() at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight) at System.Windows.Window.CreateSourceWindow(Boolean duringShow) at System.Windows.Window.CreateSourceWindowDuringShow() at System.Windows.Window.SafeCreateWindowDuringShow() at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</code></p> | <p dir="auto">Popup tells me to give y'all this.</p>
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p>
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.19041.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 07/31/2020 17:29:59<br>
Exception:<br>
System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.UpdateIsVisibleCache()<br>
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br>
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br>
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br>
at System.Windows.Window.SetRootVisual()<br>
at System.Windows.Window.SetRootVisualAndUpdateSTC()<br>
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br>
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br>
at System.Windows.Window.CreateSourceWindowDuringShow()<br>
at System.Windows.Window.SafeCreateWindowDuringShow()<br>
at System.Windows.Window.ShowHelper(Object booleanBox)<br>
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br>
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> | 1 |
<p dir="auto">Hello everybody,</p>
<p dir="auto">I have installed scipy-0.13.1 (compiled with mpif90) with python 2.7.3, but when I try to import :<br>
from scipy.fftpack import fft</p>
<p dir="auto">I have the following error messages :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File "/MYPATH.../lib/python2.7/site-packages/scipy/fftpack/__init__.py", line 97, in <module>
from .basic import *
File "/MYPATH.../lib/python2.7/site-packages/scipy/fftpack/basic.py", line 12, in <module>
from . import _fftpack
ImportError: /MYPATH.../lib/python2.7/site-packages/scipy/fftpack/_fftpack.so: undefined symbol: cost_
nm -g /scinet/bgq/tools/Python/python2.7.3-20131205/lib/python2.7/site-packages/scipy/fftpack/_fftpack.so |grep cost
U cost_
U costi_
U dcost_
U dcosti_"><pre class="notranslate"><code class="notranslate"> File "/MYPATH.../lib/python2.7/site-packages/scipy/fftpack/__init__.py", line 97, in <module>
from .basic import *
File "/MYPATH.../lib/python2.7/site-packages/scipy/fftpack/basic.py", line 12, in <module>
from . import _fftpack
ImportError: /MYPATH.../lib/python2.7/site-packages/scipy/fftpack/_fftpack.so: undefined symbol: cost_
nm -g /scinet/bgq/tools/Python/python2.7.3-20131205/lib/python2.7/site-packages/scipy/fftpack/_fftpack.so |grep cost
U cost_
U costi_
U dcost_
U dcosti_
</code></pre></div>
<p dir="auto">Here is the log of the build if someone wants to have a look at it :<br>
<a href="http://www.physics.utoronto.ca/~brelier/log_build" rel="nofollow">http://www.physics.utoronto.ca/~brelier/log_build</a></p>
<p dir="auto">Thank you for your help,</p>
<p dir="auto">Cheers,</p>
<p dir="auto">Bertrand</p> | <p dir="auto">Hello everybody,</p>
<p dir="auto">I have installed scipy-0.13.1 but I have the following problem :</p>
<p dir="auto">import scipy.special as special<br>
Traceback (most recent call last):<br>
File "", line 1, in <br>
File "python2.6/site-packages/scipy/special/<strong>init</strong>.py", line 531, in <br>
from ._ufuncs import *<br>
ImportError: python2.6/site-packages/scipy/special/<em>ufuncs.so: undefined symbol: hygfz</em></p>
<p dir="auto">I have installed the package with setup.py build and setup.py install --prefix=...</p>
<p dir="auto">Thank you very much for your help,</p>
<p dir="auto">Cheers,</p>
<p dir="auto">Bertrand</p> | 1 |
<p dir="auto">I've noticed that the "no conditional hooks" aspect of the <code class="notranslate">rules-of-hooks</code> eslint rule isn't working inside a <code class="notranslate">React.memo()</code>'ed component. The project is typescript and I'm using the parse from <code class="notranslate">@typescript-eslint/parser</code>, so I'm not sure if the problem is with the rule or with the parser.</p>
<p dir="auto">React version:</p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li>Create a component using <code class="notranslate">React.memo()</code> inside a Typescript project</li>
<li>Add a hook that is called conditionally, e.g.</li>
</ol>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const MyMemoizedComponent = React.memo((props: {}) => {
if (Math.random() > 0.5) {
React.useEffect(() => {}, []);
}
return <div />;
});"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-smi">MyMemoizedComponent</span> <span class="pl-c1">=</span> <span class="pl-smi">React</span><span class="pl-kos">.</span><span class="pl-en">memo</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">props</span>: <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-smi">Math</span><span class="pl-kos">.</span><span class="pl-en">random</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">></span> <span class="pl-c1">0.5</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">React</span><span class="pl-kos">.</span><span class="pl-en">useEffect</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-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-kos"><</span><span class="pl-smi">div</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></pre></div>
<p dir="auto">Link to code example: <a href="https://codesandbox.io/s/no-rules-of-hooks-warning-in-typescript-reactmemo-ei00n?file=/src/index.tsx" rel="nofollow">https://codesandbox.io/s/no-rules-of-hooks-warning-in-typescript-reactmemo-ei00n?file=/src/index.tsx</a></p>
<h2 dir="auto">The current behavior</h2>
<p dir="auto">ESLint does not show any errors.</p>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">ESLint should show an error like <code class="notranslate">React Hook "React.useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render.</code></p> | <p dir="auto">React version:<br>
17.0.1</p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li></li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { useEffect } from 'react'
export default () => {
if (true) return false
useEffect(() => {})
return false
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">useEffect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-c1">false</span>
<span class="pl-en">useEffect</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-k">return</span> <span class="pl-c1">false</span>
<span class="pl-kos">}</span></pre></div>
<ol start="2" dir="auto">
<li>run the linter</li>
</ol>
<h2 dir="auto">The current behavior</h2>
<p dir="auto">No errors</p>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">error React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render. Did you accidentally call a React Hook after an early return?</p>
<p dir="auto">failing test-suite case</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
code: `
export default () => {
if (cond) {
useConditionalHook();
}
}
`,
errors: [conditionalError('useConditionalHook')],
},"><pre class="notranslate"><code class="notranslate">{
code: `
export default () => {
if (cond) {
useConditionalHook();
}
}
`,
errors: [conditionalError('useConditionalHook')],
},
</code></pre></div> | 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/main/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">15.3.1, 16.0.0-beta.8, 9.0.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">MacOS 11.6.1</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<ul dir="auto">
<li></li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">since document mention <code class="notranslate">setContentProtection(true)</code> supports MacOS, I expect it to prevent the window from being captured and took screenshot from.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">u can easy capture screen by the built-in app in macOS<br>
just search <code class="notranslate">screenshot</code> in ur spotlight searcher and take video.<br>
the property has no effect</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I already read about something similar on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="483827532" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/19880" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/19880/hovercard" href="https://github.com/electron/electron/issues/19880">#19880</a> but that issue was about specific app (chrome browser) but mine is macOS built-in screenshot app (and probably all other desktop recording applications).<br>
beside that that issue was for old version of electron and being closed and no one responding to it.<br>
I tried after two years of that issue and it is not fixed after 2 years.<br>
all the solutions and flag settings in that issue were also useless.</p>
<p dir="auto">please, this is important, if u know any alternative solution to handle such thing in electron tell me.</p> | <ul dir="auto">
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: v2.0.3</li>
<li>Operating System (Platform and Version): macOS High Sierra</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong></p>
<p dir="auto">Setting window.setContentProtection(true), should resist the external apps to capture the screen of the electron app</p>
<p dir="auto"><strong>Actual behavior</strong><br>
Quicktime player can capture and record the screen of the electron app, with setContentProtection(true)</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<p dir="auto">Create a new electron project, use setContentProtection(true) on window, capture in mac with quick time player</p> | 1 |
<p dir="auto"><em>Inspired by the <code class="notranslate">@import</code> function of SASS.</em></p>
<p dir="auto">I would like to propose a mechanism for creating partial files, which are not compiled by default, but embedded into files which reference them. It's just like bundling, but with less hassle and in a more unified approach.</p>
<p dir="auto">As a brief example, suppose that we have 4 files:</p>
<ul dir="auto">
<li>index.ts</li>
<li>user.ts</li>
<li>_auth.ts</li>
<li>_position.ts</li>
</ul>
<p dir="auto">The <code class="notranslate">index.ts</code> and <code class="notranslate">user.ts</code> files can reference contents of a partial file by using simple imports. For example, if we want <code class="notranslate">index.ts</code> to reference <code class="notranslate">_auth.ts</code> and <code class="notranslate">_position.ts</code>, use the following code in the non-partial <code class="notranslate">index.ts</code> file:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import auth = require('auth');
import position = require('position');"><pre class="notranslate"><code class="notranslate">import auth = require('auth');
import position = require('position');
</code></pre></div>
<p dir="auto">The content of partial files should be copied and instantly evaluated in their container file. For instance, whether we would also like to use the <code class="notranslate">_position.ts</code> partial file in <code class="notranslate">user.ts</code>, use an import just like above:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import position = require('position');"><pre class="notranslate"><code class="notranslate">import position = require('position');
</code></pre></div>
<p dir="auto">Although this may seem like a regular import, it's basically an include function which copies the partial file's full content at the place desired. That means, partial files should not be reused in multiple containers, but should be used for code organisation purposes. When both <code class="notranslate">index.ts</code> and <code class="notranslate">user.ts</code> are referenced in a HTML file, the content of <code class="notranslate">_position.ts</code> will be duplicated and inserted into the 2 containers separately.</p> | <p dir="auto">Support compiling multiple input .ts files into one external module.</p>
<p dir="auto">Need to determine exactly how the module boundaries are defined when doing this.</p> | 1 |
<p dir="auto">I'm currently trying to compile 1.5.1 using libagg2 2.5.0.1, but unfortunately it fails with errors like <code class="notranslate">"src/agg_workaround.h", line 12: Error: conv_rgba_pre is not a member of agg.</code> so it is obviously not compatible to 2.5.0.1 anymore (but setupext.py says, it is sufficient).</p>
<p dir="auto">Digging around a little bit, I saw, that matplotlib has also an extern/agg24-svn/ but I couldn't find any information about which version it is. Basic idea is to find out about matplotlib's modifications and port it back to the system's libagg2 package, so that both are consistent and matplotlib can continue to use the system's lib instead of duplicating most of it ...</p>
<p dir="auto">So can anyone say, on what exactly extern/agg24-svn/ is based on and what matplotlib team's intention is wrt. its current/future state?</p> | <h3 dir="auto">Bug report</h3>
<p dir="auto">Autoscaling should produce equal margins on both sides of the plotted data. However it does not do so in certain cases.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = 5,3
plt.scatter([.4],[.5])
plt.scatter([.6],[.6])
plt.show()"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = 5,3
plt.scatter([.4],[.5])
plt.scatter([.6],[.6])
plt.show()
</code></pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23121882/37559472-3c6fd598-2a27-11e8-83c3-d0b4946f7e8a.png"><img src="https://user-images.githubusercontent.com/23121882/37559472-3c6fd598-2a27-11e8-83c3-d0b4946f7e8a.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">We would expect to have the same margin on all sides, e.g. the blue dot should be as far away from the lower left corner than the orange dot from the upper right corner.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23121882/37559479-772f7e04-2a27-11e8-94ef-d8394a30dd1d.png"><img src="https://user-images.githubusercontent.com/23121882/37559479-772f7e04-2a27-11e8-94ef-d8394a30dd1d.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Windows 8.1</li>
<li>Matplotlib version: 2.2</li>
<li>Matplotlib backend: Qt4Agg, Qt4Cairo, TkAgg, TkCairo</li>
<li>Python version: 2.7.10</li>
</ul> | 0 |
<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.5.10</li>
<li>Operating System version: 3.10.0-514.26.2.el7.x86_64 GNU/Linux</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>benchmark</li>
</ol>
<h3 dir="auto">Description</h3>
<p dir="auto">在对 Dubbo 应用进行压测时,通过 top -Hp {pid} 和 jstack {pid} 进行查看后,发现 Dubbo 客户端有 4 个线程的 CPU 占用比较高,并且线程均在执行 <code class="notranslate">sun.reflect.generics.parser.SignatureParser.current(SignatureParser.java:95)</code></p>
<h3 dir="auto">Suggestion</h3>
<p dir="auto">把 <code class="notranslate">RpcUtils.getReturnTypes(Invocation)</code> 执行结果的 <code class="notranslate">Method</code> 对象缓存下来,避免每次都调用反射 Api:<br>
例如,用 <code class="notranslate">Map<service, Map<methodName, A>></code> 来缓存,其中 <code class="notranslate">A</code> 中包含 <code class="notranslate">parameterTypes</code> 和 <code class="notranslate">Method</code> 的对应关系</p>
<p dir="auto">具体线程堆栈如下:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""New I/O client worker #1-5" #63 daemon prio=5 os_prio=0 tid=0x00007fc730003000 nid=0x49db runnable [0x00007fc790c13000]
java.lang.Thread.State: RUNNABLE
at sun.reflect.generics.parser.SignatureParser.current(SignatureParser.java:95)
at sun.reflect.generics.parser.SignatureParser.parseZeroOrMoreThrowsSignatures(SignatureParser.java:633)
at sun.reflect.generics.parser.SignatureParser.parseMethodTypeSignature(SignatureParser.java:578)
at sun.reflect.generics.parser.SignatureParser.parseMethodSig(SignatureParser.java:171)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:55)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:43)
at sun.reflect.generics.repository.AbstractRepository.<init>(AbstractRepository.java:74)
at sun.reflect.generics.repository.GenericDeclRepository.<init>(GenericDeclRepository.java:49)
at sun.reflect.generics.repository.ConstructorRepository.<init>(ConstructorRepository.java:51)
at sun.reflect.generics.repository.MethodRepository.<init>(MethodRepository.java:46)
at sun.reflect.generics.repository.MethodRepository.make(MethodRepository.java:59)
at java.lang.reflect.Method.getGenericInfo(Method.java:102)
at java.lang.reflect.Method.getGenericReturnType(Method.java:255)
at com.alibaba.dubbo.rpc.support.RpcUtils.getReturnTypes(RpcUtils.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:79)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:106)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:88)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:120)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:81)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:44)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:133)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
"New I/O client worker #1-4" #62 daemon prio=5 os_prio=0 tid=0x00007fc730001000 nid=0x49da runnable [0x00007fc790c94000]
java.lang.Thread.State: RUNNABLE
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114)
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
at sun.reflect.generics.repository.MethodRepository.getReturnType(MethodRepository.java:68)
at java.lang.reflect.Method.getGenericReturnType(Method.java:255)
at com.alibaba.dubbo.rpc.support.RpcUtils.getReturnTypes(RpcUtils.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:79)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:106)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:88)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:120)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:81)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:44)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:133)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
"New I/O client worker #1-3" #61 daemon prio=5 os_prio=0 tid=0x00007fc73005b800 nid=0x49d9 runnable [0x00007fc790d15000]
java.lang.Thread.State: RUNNABLE
at sun.reflect.generics.parser.SignatureParser.current(SignatureParser.java:95)
at sun.reflect.generics.parser.SignatureParser.parseZeroOrMoreThrowsSignatures(SignatureParser.java:633)
at sun.reflect.generics.parser.SignatureParser.parseMethodTypeSignature(SignatureParser.java:578)
at sun.reflect.generics.parser.SignatureParser.parseMethodSig(SignatureParser.java:171)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:55)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:43)
at sun.reflect.generics.repository.AbstractRepository.<init>(AbstractRepository.java:74)
at sun.reflect.generics.repository.GenericDeclRepository.<init>(GenericDeclRepository.java:49)
at sun.reflect.generics.repository.ConstructorRepository.<init>(ConstructorRepository.java:51)
at sun.reflect.generics.repository.MethodRepository.<init>(MethodRepository.java:46)
at sun.reflect.generics.repository.MethodRepository.make(MethodRepository.java:59)
at java.lang.reflect.Method.getGenericInfo(Method.java:102)
at java.lang.reflect.Method.getGenericReturnType(Method.java:255)
at com.alibaba.dubbo.rpc.support.RpcUtils.getReturnTypes(RpcUtils.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:79)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:106)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:88)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:120)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:81)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:44)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:133)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
"New I/O client worker #1-2" #59 daemon prio=5 os_prio=0 tid=0x00007fc730041000 nid=0x49d7 runnable [0x00007fc790e17000]
java.lang.Thread.State: RUNNABLE
at sun.reflect.generics.parser.SignatureParser.current(SignatureParser.java:95)
at sun.reflect.generics.parser.SignatureParser.parseZeroOrMoreThrowsSignatures(SignatureParser.java:633)
at sun.reflect.generics.parser.SignatureParser.parseMethodTypeSignature(SignatureParser.java:578)
at sun.reflect.generics.parser.SignatureParser.parseMethodSig(SignatureParser.java:171)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:55)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:43)
at sun.reflect.generics.repository.AbstractRepository.<init>(AbstractRepository.java:74)
at sun.reflect.generics.repository.GenericDeclRepository.<init>(GenericDeclRepository.java:49)
at sun.reflect.generics.repository.ConstructorRepository.<init>(ConstructorRepository.java:51)
at sun.reflect.generics.repository.MethodRepository.<init>(MethodRepository.java:46)
at sun.reflect.generics.repository.MethodRepository.make(MethodRepository.java:59)
at java.lang.reflect.Method.getGenericInfo(Method.java:102)
at java.lang.reflect.Method.getGenericReturnType(Method.java:255)
at com.alibaba.dubbo.rpc.support.RpcUtils.getReturnTypes(RpcUtils.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:79)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:106)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:88)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:120)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:81)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:44)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:133)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)"><pre class="notranslate"><code class="notranslate">"New I/O client worker #1-5" #63 daemon prio=5 os_prio=0 tid=0x00007fc730003000 nid=0x49db runnable [0x00007fc790c13000]
java.lang.Thread.State: RUNNABLE
at sun.reflect.generics.parser.SignatureParser.current(SignatureParser.java:95)
at sun.reflect.generics.parser.SignatureParser.parseZeroOrMoreThrowsSignatures(SignatureParser.java:633)
at sun.reflect.generics.parser.SignatureParser.parseMethodTypeSignature(SignatureParser.java:578)
at sun.reflect.generics.parser.SignatureParser.parseMethodSig(SignatureParser.java:171)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:55)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:43)
at sun.reflect.generics.repository.AbstractRepository.<init>(AbstractRepository.java:74)
at sun.reflect.generics.repository.GenericDeclRepository.<init>(GenericDeclRepository.java:49)
at sun.reflect.generics.repository.ConstructorRepository.<init>(ConstructorRepository.java:51)
at sun.reflect.generics.repository.MethodRepository.<init>(MethodRepository.java:46)
at sun.reflect.generics.repository.MethodRepository.make(MethodRepository.java:59)
at java.lang.reflect.Method.getGenericInfo(Method.java:102)
at java.lang.reflect.Method.getGenericReturnType(Method.java:255)
at com.alibaba.dubbo.rpc.support.RpcUtils.getReturnTypes(RpcUtils.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:79)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:106)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:88)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:120)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:81)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:44)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:133)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
"New I/O client worker #1-4" #62 daemon prio=5 os_prio=0 tid=0x00007fc730001000 nid=0x49da runnable [0x00007fc790c94000]
java.lang.Thread.State: RUNNABLE
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114)
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
at sun.reflect.generics.repository.MethodRepository.getReturnType(MethodRepository.java:68)
at java.lang.reflect.Method.getGenericReturnType(Method.java:255)
at com.alibaba.dubbo.rpc.support.RpcUtils.getReturnTypes(RpcUtils.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:79)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:106)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:88)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:120)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:81)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:44)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:133)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
"New I/O client worker #1-3" #61 daemon prio=5 os_prio=0 tid=0x00007fc73005b800 nid=0x49d9 runnable [0x00007fc790d15000]
java.lang.Thread.State: RUNNABLE
at sun.reflect.generics.parser.SignatureParser.current(SignatureParser.java:95)
at sun.reflect.generics.parser.SignatureParser.parseZeroOrMoreThrowsSignatures(SignatureParser.java:633)
at sun.reflect.generics.parser.SignatureParser.parseMethodTypeSignature(SignatureParser.java:578)
at sun.reflect.generics.parser.SignatureParser.parseMethodSig(SignatureParser.java:171)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:55)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:43)
at sun.reflect.generics.repository.AbstractRepository.<init>(AbstractRepository.java:74)
at sun.reflect.generics.repository.GenericDeclRepository.<init>(GenericDeclRepository.java:49)
at sun.reflect.generics.repository.ConstructorRepository.<init>(ConstructorRepository.java:51)
at sun.reflect.generics.repository.MethodRepository.<init>(MethodRepository.java:46)
at sun.reflect.generics.repository.MethodRepository.make(MethodRepository.java:59)
at java.lang.reflect.Method.getGenericInfo(Method.java:102)
at java.lang.reflect.Method.getGenericReturnType(Method.java:255)
at com.alibaba.dubbo.rpc.support.RpcUtils.getReturnTypes(RpcUtils.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:79)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:106)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:88)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:120)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:81)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:44)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:133)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
"New I/O client worker #1-2" #59 daemon prio=5 os_prio=0 tid=0x00007fc730041000 nid=0x49d7 runnable [0x00007fc790e17000]
java.lang.Thread.State: RUNNABLE
at sun.reflect.generics.parser.SignatureParser.current(SignatureParser.java:95)
at sun.reflect.generics.parser.SignatureParser.parseZeroOrMoreThrowsSignatures(SignatureParser.java:633)
at sun.reflect.generics.parser.SignatureParser.parseMethodTypeSignature(SignatureParser.java:578)
at sun.reflect.generics.parser.SignatureParser.parseMethodSig(SignatureParser.java:171)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:55)
at sun.reflect.generics.repository.ConstructorRepository.parse(ConstructorRepository.java:43)
at sun.reflect.generics.repository.AbstractRepository.<init>(AbstractRepository.java:74)
at sun.reflect.generics.repository.GenericDeclRepository.<init>(GenericDeclRepository.java:49)
at sun.reflect.generics.repository.ConstructorRepository.<init>(ConstructorRepository.java:51)
at sun.reflect.generics.repository.MethodRepository.<init>(MethodRepository.java:46)
at sun.reflect.generics.repository.MethodRepository.make(MethodRepository.java:59)
at java.lang.reflect.Method.getGenericInfo(Method.java:102)
at java.lang.reflect.Method.getGenericReturnType(Method.java:255)
at com.alibaba.dubbo.rpc.support.RpcUtils.getReturnTypes(RpcUtils.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:79)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:106)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:88)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:120)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:81)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:44)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:133)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: xxx</li>
<li>Operating System version: xxx</li>
<li>Java version: xxx</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>xxx</li>
<li>xxx</li>
<li>xxx</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">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 |
<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/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" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.5</li>
</ul>
<h3 dir="auto">Confusion</h3>
<p dir="auto">the code below create a <code class="notranslate">connectionMonitor</code> instance, but <code class="notranslate">Start</code> method seems not called</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Override
protected <T> T doRefer(Class<T> serviceType, URL url) throws RpcException {
if (connectionMonitor == null) {
connectionMonitor = new ConnectionMonitor();
}
...
}"><pre class="notranslate"><code class="notranslate">@Override
protected <T> T doRefer(Class<T> serviceType, URL url) throws RpcException {
if (connectionMonitor == null) {
connectionMonitor = new ConnectionMonitor();
}
...
}
</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: CentOS 7.5</li>
<li>Java version: jdk8</li>
<li>spring-cloud-alibaba: 2.2.0-RELEASE</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">配置服务端和消费端的注册中心为nacos:<br>
1.服务端参数:dubbo.protocol.name=dubbo,dubbo.protocol.port=28801,dubbo.scan.base-packages=xx.xx.xx,dubbo.registry.address=nacos://127.0.0.1:8848<br>
2.消费端参数:dubbo.consumer.check=false,dubbo.registry.address=nacos://127.0.0.1:8848<br>
3. 启动服务端和消费端<br>
4.修改服务端dubbo监听端口为: dubbo.protocol.port=28802<br>
5.重启服务端<br>
6. 消费端服务端业务正常。但消费端持续不断每隔1分钟连接服务端旧的28801端口。</p>
<p dir="auto">配置服务端和消费端的注册中心为zookeeper:<br>
1.服务端参数:dubbo.protocol.name=dubbo,dubbo.protocol.port=28801,dubbo.scan.base-packages=xx.xx.xx,dubbo.registry.address=zookeeper://127.0.0.1:2181<br>
2.消费端参数:dubbo.consumer.check=false,dubbo.registry.address=zookeeper://127.0.0.1:2181<br>
3. 启动服务端和消费端<br>
4.修改服务端dubbo监听端口为: dubbo.protocol.port=28802<br>
5.重启服务端<br>
6. 消费端不会连接服务端旧的28801端口。消费端服务端业务正常。</p>
<p dir="auto">以上场景模拟在docker容器中的场景,在docker容器中,微服务经常重新启动,重启微服务以后,其ip地址会发生变化(此处用端口变化模拟地址变化,道理是一样的)。</p>
<p dir="auto">结论:<br>
1、zookeeper作为服务注册中心,没有问题,<br>
2、nacos作为服务注册中心,当服务端掉线(服务实例改变事件)并未处理该通道,造成重连任务不断进行。原因可能是spring-cloud-alibaba没有把服务实例改变消息传递进dubbo,也有可能是dubbo没有处理这个消息</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>Migrated issue, originally created by Adrian (<a href="https://github.com/thiefmaster">@thiefmaster</a>)</strong></p>
<p dir="auto">I have an <code class="notranslate">association_proxy</code> on a set-like relationship. Normal set operations work perfectly when it comes to not adding duplicates, but when I replace the whole set e.g. using <code class="notranslate">foo.bar = set(foo.bar)</code> (in my real application the right side comes from a form) I get errors due to duplicate rows being inserted.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy import *
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import *
Base = declarative_base()
class A(Base):
__tablename__ = 'test_a'
id = Column(Integer, primary_key=True)
b_rel = relationship('B', collection_class=set, cascade='all, delete-orphan')
b = association_proxy('b_rel', 'value', creator=lambda x: B(value=x))
class B(Base):
__tablename__ = 'test_b'
__table_args__ = UniqueConstraint('a_id', 'value'),
id = Column(Integer, primary_key=True)
a_id = Column(Integer, ForeignKey('test_a.id'), nullable=False)
value = Column(String)
e = create_engine('sqlite:///:memory:', echo=True)
# e = create_engine('postgresql:///test', echo=True)
Base.metadata.create_all(e)
# e.execute('TRUNCATE test_a, test_b;')
s = Session(e)
a = A()
a.b = {'x', 'y', 'z'}
s.add(a)
s.commit()
print
print 'adding existing element to set'
a.b.add('x')
s.flush()
print
print 'assigning same items to set'
a.b = set(a.b)
s.flush()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-c1">*</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">associationproxy</span> <span class="pl-k">import</span> <span class="pl-s1">association_proxy</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">declarative</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-c1">*</span>
<span class="pl-v">Base</span> <span class="pl-c1">=</span> <span class="pl-en">declarative_base</span>()
<span class="pl-k">class</span> <span class="pl-v">A</span>(<span class="pl-v">Base</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'test_a'</span>
<span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">b_rel</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">'B'</span>, <span class="pl-s1">collection_class</span><span class="pl-c1">=</span><span class="pl-s1">set</span>, <span class="pl-s1">cascade</span><span class="pl-c1">=</span><span class="pl-s">'all, delete-orphan'</span>)
<span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-en">association_proxy</span>(<span class="pl-s">'b_rel'</span>, <span class="pl-s">'value'</span>, <span class="pl-s1">creator</span><span class="pl-c1">=</span><span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-v">B</span>(<span class="pl-s1">value</span><span class="pl-c1">=</span><span class="pl-s1">x</span>))
<span class="pl-k">class</span> <span class="pl-v">B</span>(<span class="pl-v">Base</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'test_b'</span>
<span class="pl-s1">__table_args__</span> <span class="pl-c1">=</span> <span class="pl-v">UniqueConstraint</span>(<span class="pl-s">'a_id'</span>, <span class="pl-s">'value'</span>),
<span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">a_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-v">ForeignKey</span>(<span class="pl-s">'test_a.id'</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>)
<span class="pl-s1">e</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-s">'sqlite:///:memory:'</span>, <span class="pl-s1">echo</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-c"># e = create_engine('postgresql:///test', echo=True)</span>
<span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">create_all</span>(<span class="pl-s1">e</span>)
<span class="pl-c"># e.execute('TRUNCATE test_a, test_b;')</span>
<span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-v">Session</span>(<span class="pl-s1">e</span>)
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-v">A</span>()
<span class="pl-s1">a</span>.<span class="pl-s1">b</span> <span class="pl-c1">=</span> {<span class="pl-s">'x'</span>, <span class="pl-s">'y'</span>, <span class="pl-s">'z'</span>}
<span class="pl-s1">s</span>.<span class="pl-en">add</span>(<span class="pl-s1">a</span>)
<span class="pl-s1">s</span>.<span class="pl-en">commit</span>()
<span class="pl-s1">print</span>
<span class="pl-k">print</span> <span class="pl-s">'adding existing element to set'</span>
<span class="pl-s1">a</span>.<span class="pl-s1">b</span>.<span class="pl-en">add</span>(<span class="pl-s">'x'</span>)
<span class="pl-s1">s</span>.<span class="pl-en">flush</span>()
<span class="pl-s1">print</span>
<span class="pl-k">print</span> <span class="pl-s">'assigning same items to set'</span>
<span class="pl-s1">a</span>.<span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-en">set</span>(<span class="pl-s1">a</span>.<span class="pl-s1">b</span>)
<span class="pl-s1">s</span>.<span class="pl-en">flush</span>()</pre></div> | <p dir="auto">test case, from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384635415" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3583" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3583/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3583">#3583</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import *
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import *
Base = declarative_base()
class A(Base):
__tablename__ = "test_a"
id = Column(Integer, primary_key=True)
b_rel = relationship(
"B", collection_class=set, cascade="all, delete-orphan"
)
b = association_proxy("b_rel", "value", creator=lambda x: B(value=x))
class B(Base):
__tablename__ = "test_b"
__table_args__ = (UniqueConstraint("a_id", "value"),)
id = Column(Integer, primary_key=True)
a_id = Column(Integer, ForeignKey("test_a.id"), nullable=False)
value = Column(String)
e = create_engine("sqlite:///:memory:", echo=True)
# e = create_engine('postgresql:///test', echo=True)
Base.metadata.create_all(e)
# e.execute('TRUNCATE test_a, test_b;')
s = Session(e)
a = A()
a.b = {"x", "y", "z"}
s.add(a)
s.commit()
print("\nadding existing element to set")
a.b.add("x")
s.flush()
print("\nassigning same items to set")
a.b = set(a.b)
s.flush()
"><pre class="notranslate"><code class="notranslate">from sqlalchemy import *
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import *
Base = declarative_base()
class A(Base):
__tablename__ = "test_a"
id = Column(Integer, primary_key=True)
b_rel = relationship(
"B", collection_class=set, cascade="all, delete-orphan"
)
b = association_proxy("b_rel", "value", creator=lambda x: B(value=x))
class B(Base):
__tablename__ = "test_b"
__table_args__ = (UniqueConstraint("a_id", "value"),)
id = Column(Integer, primary_key=True)
a_id = Column(Integer, ForeignKey("test_a.id"), nullable=False)
value = Column(String)
e = create_engine("sqlite:///:memory:", echo=True)
# e = create_engine('postgresql:///test', echo=True)
Base.metadata.create_all(e)
# e.execute('TRUNCATE test_a, test_b;')
s = Session(e)
a = A()
a.b = {"x", "y", "z"}
s.add(a)
s.commit()
print("\nadding existing element to set")
a.b.add("x")
s.flush()
print("\nassigning same items to set")
a.b = set(a.b)
s.flush()
</code></pre></div>
<p dir="auto">since this issue was added the association proxy has been highly modified</p>
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<p dir="auto">the "clear" here is clumsy and <a href="we">originally thought was</a> the ultimate cause of the original issue in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384626979" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/2637" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/2637/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/2637">#2637</a> <a href="but">it's not</a>. Might be nicer if we had a bulk replace built in for those collections, would emit fewer events.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def __set__(self, obj, values):
if self.owning_class is None:
self.owning_class = type(obj)
if self.scalar:
creator = self.creator and self.creator or self.target_class
target = getattr(obj, self.target_collection)
if target is None:
setattr(obj, self.target_collection, creator(values))
else:
self._scalar_set(target, values)
else:
proxy = self.__get__(obj, None)
if proxy is not values:
proxy.clear()
self._set(proxy, values)"><pre class="notranslate"><code class="notranslate"> def __set__(self, obj, values):
if self.owning_class is None:
self.owning_class = type(obj)
if self.scalar:
creator = self.creator and self.creator or self.target_class
target = getattr(obj, self.target_collection)
if target is None:
setattr(obj, self.target_collection, creator(values))
else:
self._scalar_set(target, values)
else:
proxy = self.__get__(obj, None)
if proxy is not values:
proxy.clear()
self._set(proxy, values)
</code></pre></div> | 1 |
<p dir="auto">Recently, we deployed a ML model with FastAPI, and encountered an issue.</p>
<p dir="auto">The code looks like this.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from ocr_pipeline.model.ocr_wrapper import OcrWrapper
ocr_wrapper = OcrWrapper(**config.model_load_params) # loads 1.5 GB PyTorch model
...
@api.post('/')
async def predict(file: UploadFile = File(...)):
preds = ocr_wrapper.predict(file.file, **config.model_predict_params)
return json.dumps({"data": preds})"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">ocr_pipeline</span>.<span class="pl-s1">model</span>.<span class="pl-s1">ocr_wrapper</span> <span class="pl-k">import</span> <span class="pl-v">OcrWrapper</span>
<span class="pl-s1">ocr_wrapper</span> <span class="pl-c1">=</span> <span class="pl-v">OcrWrapper</span>(<span class="pl-c1">**</span><span class="pl-s1">config</span>.<span class="pl-s1">model_load_params</span>) <span class="pl-c"># loads 1.5 GB PyTorch model</span>
...
<span class="pl-en">@<span class="pl-s1">api</span>.<span class="pl-en">post</span>(<span class="pl-s">'/'</span>)</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">predict</span>(<span class="pl-s1">file</span>: <span class="pl-v">UploadFile</span> <span class="pl-c1">=</span> <span class="pl-v">File</span>(...)):
<span class="pl-s1">preds</span> <span class="pl-c1">=</span> <span class="pl-s1">ocr_wrapper</span>.<span class="pl-en">predict</span>(<span class="pl-s1">file</span>.<span class="pl-s1">file</span>, <span class="pl-c1">**</span><span class="pl-s1">config</span>.<span class="pl-s1">model_predict_params</span>)
<span class="pl-k">return</span> <span class="pl-s1">json</span>.<span class="pl-en">dumps</span>({<span class="pl-s">"data"</span>: <span class="pl-s1">preds</span>})</pre></div>
<p dir="auto">The above written command consumes min. 3GB of RAM.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="gunicorn --workers 2 --worker-class=uvicorn.workers.UvicornWorker app.main:api"><pre class="notranslate">gunicorn --workers 2 --worker-class=uvicorn.workers.UvicornWorker app.main:api</pre></div>
<p dir="auto">Is there any way to scale the number of workers without consuming too much RAM?</p>
<p dir="auto">ENVIRONMENT:<br>
Ubuntu 18.04<br>
Python 3.6.9</p>
<p dir="auto">fastapi==0.61.2<br>
uvicorn==0.12.2<br>
gunicorn==20.0.4<br>
uvloop==0.14.0</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tiangolo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tiangolo">@tiangolo</a></p> | <p dir="auto"><strong>Describe the bug</strong><br>
I have deployed FastAPI which queries the database and returns the results. I made sure closing the DB connection and all. I'm running gunicorn with this line ;<br>
<code class="notranslate">gunicorn -w 8 -k uvicorn.workers.UvicornH11Worker -b 0.0.0.0 app:app --timeout 10</code><br>
So after exposing it to the web, I run a load test which makes 30-40 requests in parallel to the fastapi. And the problem starts here. I'm watching the 'HTOP' in the mean time and I see that RAM usage is always growing, seems like no task is killed after completing it's job. Then I checked the Task numbers, same goes for it too, seems like gunicorn workers do not get killed. After some time RAM usage gets at it's maximum, and starts to throw errors. So I killed the gunicorn app but the thing is processes spawned by main gunicorn proces did not get killed and still using all the memory.</p>
<p dir="auto"><strong>Environment:</strong></p>
<ul dir="auto">
<li>
<p dir="auto">OS: Ubuntu 18.04</p>
</li>
<li>
<p dir="auto">FastAPI Version : 0.38.1</p>
</li>
<li>
<p dir="auto">Python version : 3.7.4</p>
</li>
</ul> | 1 |
<ul dir="auto">
<li>VSCode Version:1</li>
<li>OS Version:10.9.5</li>
</ul>
<p dir="auto">Steps to Reproduce:<br>
I am not sure, but I am attaching the crash report.<br>
<a href="https://github.com/Microsoft/vscode/files/230760/vscode.crashreport.txt">vscode.crashreport.txt</a></p> | <p dir="auto"><del>When searching the command palette, the search is based in exactly what you type, In essence, Code is checking if what's been typed is a substring of the command title.</del></p>
<p dir="auto">It would be great if the command palette search were a bit more fuzzy, i.e. based on the individual words that are input, ignoring punctuation, etc.</p>
<p dir="auto">Atom's command palette search works in this way:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2899448/11696714/054c5f40-9eb6-11e5-84b9-ed2b2eacbb11.png"><img src="https://cloud.githubusercontent.com/assets/2899448/11696714/054c5f40-9eb6-11e5-84b9-ed2b2eacbb11.png" alt="atom" style="max-width: 100%;"></a></p>
<p dir="auto">This would resolve an issue raised on one of my extensions: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="120626452" data-permission-text="Title is private" data-url="https://github.com/wmaurer/vscode-change-case/issues/3" data-hovercard-type="issue" data-hovercard-url="/wmaurer/vscode-change-case/issues/3/hovercard" href="https://github.com/wmaurer/vscode-change-case/issues/3">wmaurer/vscode-change-case#3</a>, and provide a much nicer user experience.</p>
<p dir="auto">EDIT: I've been playing with it more, and in fact Code's search is a bit fuzzier than I had thought, however it's not fuzzy enough. To be honest I can't even figure out the rules, sometimes a search matches something and then I try something similar and it doesn't match.<br>
In any case, it would be great if it could be improved to approach Atom's level of fuzziness. For example with my change-case plugin, I would expect a search for <em>case sep</em> to find the a number of commands, but it doesn't.</p> | 0 |
<p dir="auto">Hello<br>
As presented here:<br>
<a href="http://stackoverflow.com/questions/38454893/error-in-scipy-wilcoxon-signed-rank-test-for-equal-series?noredirect=1#comment64315624_38454893" rel="nofollow">http://stackoverflow.com/questions/38454893/error-in-scipy-wilcoxon-signed-rank-test-for-equal-series?noredirect=1#comment64315624_38454893</a><br>
(without no answer to disprove it as a mistake from me),<br>
I wish to report that maybe there is a problem with the results of scipy.wilcoxon signed rank test;</p>
<p dir="auto">import scipy as sp<br>
x1=[29.39958, 29.21756, 29.350915, 29.34911, 29.212635]<br>
sp.wilcoxon(x1,x1,zero_method="wilcox",correction=True)</p>
<p dir="auto">returns statistic=0.0, pvalue=nan</p>
<p dir="auto">But with zero_method="pratt", it returns statistic=0.0, pvalue=0.043114446783075355 instead.<br>
I think there is a mistake there. The statistics (for z-score, if I am not mistaken) are the same, but the results are different for the p-value, while they should not, actually.<br>
When both series are identical, there should be no good p-value, but this is confident with alpha=0.05.</p>
<p dir="auto">Maybe "pratt" zero_method is wrongly implemented. It is said to be more conservative, but instead it has also constantly given better /lower p-values on a large array of test values.</p> | <p dir="auto">Hello<br>
As presented here:<br>
<a href="http://stackoverflow.com/questions/38454893/error-in-scipy-wilcoxon-signed-rank-test-for-equal-series?noredirect=1#comment64315624_38454893" rel="nofollow">http://stackoverflow.com/questions/38454893/error-in-scipy-wilcoxon-signed-rank-test-for-equal-series?noredirect=1#comment64315624_38454893</a><br>
(without no answer to disprove it as a mistake from me),<br>
I wish to report that maybe there is a problem with the results of scipy.wilcoxon signed rank test;</p>
<p dir="auto">import scipy as sp<br>
x1=[29.39958, 29.21756, 29.350915, 29.34911, 29.212635]<br>
sp.wilcoxon(x1,x1,zero_method="wilcox",correction=True)<br>
returns statistic=0.0, pvalue=nan</p>
<p dir="auto">But with zero_method="pratt", it returns statistic=0.0, pvalue=0.043114446783075355 instead.<br>
I think there is a mistake there. The statistics (for z-score, if I am not mistaken) are the same, but the results are different for the p-value, while they should not, actually.<br>
When both series are identical, there should be no good p-value, but this is confident with alpha=0.05.</p>
<p dir="auto">Maybe "pratt" zero_method is wrongly implemented. It is said to be more conservative, but instead it has also constantly given better /lower p-values on a large array of test values.</p>
<p dir="auto"><strong>edit</strong> josef</p>
<p dir="auto">It looks like there are two issues</p>
<ul dir="auto">
<li>corner case when all differences are zero needs special handling to return nan p-value</li>
<li>current implementation of Pratt method is wrong if there are "zeros", if (x == y).sum() > 0</li>
</ul> | 1 |
<p dir="auto"><code class="notranslate">skipchars</code> took a 5x preformance hit (for the benchmark we have in BaseBenchmarks) presumably after the introduction of locks on the <code class="notranslate">write</code> calls.</p>
<p dir="auto">Perhaps we can lock outside of the loop and write without a lock and finally unlock it when we are done?</p> | <p dir="auto">I'm noticing an order-of-magnitude slowdown in a custom function to parse "sample list" files (one ASCII value per line) to Float32 arrays. Any ideas what could be causing this?</p>
<p dir="auto">Offending function here: <a href="https://github.com/jpjones76/SeisIO.jl/blob/master/src/Utils/Parsing/streams.jl">https://github.com/jpjones76/SeisIO.jl/blob/master/src/Utils/Parsing/streams.jl</a></p>
<p dir="auto">Affects my ASCII readers for SLIST and Lennartz SLIST files.</p>
<p dir="auto">Before 1.3.0, <code class="notranslate">X[i] = stream_float(io, 0x00)</code> was 2-3x faster than <code class="notranslate">v = readline(io); X[i] = parse(Float32, v)</code>. Now <code class="notranslate">stream_float</code> is 4x slower than <code class="notranslate">readline</code> + <code class="notranslate">parse</code>. I actually need the old speeds if possible, so any alternate syntax suggestions would be welcomed.</p>
<p dir="auto">MWE</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="using Pkg; Pkg.add("BenchmarkTools"); Pkg.add("SeisIO")
run(`wget https://github.com/jpjones76/SeisIO-TestData/raw/master/SampleFiles/ASCII/0215162000.c00`)
using BenchmarkTools
import SeisIO:stream_float
io = open("0215162000.c00", "r")
nx = 225000
X = zeros(Float32, nx)
@benchmark (seekstart($io); readline($io); @inbounds for i in 1:$nx; $X[i] = stream_float($io, 0x00); end)"><pre class="notranslate"><code class="notranslate">using Pkg; Pkg.add("BenchmarkTools"); Pkg.add("SeisIO")
run(`wget https://github.com/jpjones76/SeisIO-TestData/raw/master/SampleFiles/ASCII/0215162000.c00`)
using BenchmarkTools
import SeisIO:stream_float
io = open("0215162000.c00", "r")
nx = 225000
X = zeros(Float32, nx)
@benchmark (seekstart($io); readline($io); @inbounds for i in 1:$nx; $X[i] = stream_float($io, 0x00); end)
</code></pre></div>
<p dir="auto">Example outputs follow. I benchmarked this on a Dell laptop running Ubuntu 18.04 (bionic), kernel 5.0.0-37-generic, CPU Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz, 16 GB RAM.</p>
<p dir="auto">Julia 1.0.5</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="BenchmarkTools.Trial:
memory estimate: 272 bytes
allocs estimate: 2
--------------
minimum time: 25.533 ms (0.00% GC)
median time: 25.701 ms (0.00% GC)
mean time: 25.867 ms (0.00% GC)
maximum time: 30.592 ms (0.00% GC)
--------------
samples: 194
evals/sample: 1"><pre class="notranslate"><code class="notranslate">BenchmarkTools.Trial:
memory estimate: 272 bytes
allocs estimate: 2
--------------
minimum time: 25.533 ms (0.00% GC)
median time: 25.701 ms (0.00% GC)
mean time: 25.867 ms (0.00% GC)
maximum time: 30.592 ms (0.00% GC)
--------------
samples: 194
evals/sample: 1
</code></pre></div>
<p dir="auto">Julia 1.2.0:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" memory estimate: 272 bytes
allocs estimate: 2
--------------
minimum time: 24.738 ms (0.00% GC)
median time: 24.850 ms (0.00% GC)
mean time: 24.910 ms (0.00% GC)
maximum time: 27.172 ms (0.00% GC)
--------------
samples: 201
evals/sample: 1"><pre lang="BenchmarkTools.Trial:" class="notranslate"><code class="notranslate"> memory estimate: 272 bytes
allocs estimate: 2
--------------
minimum time: 24.738 ms (0.00% GC)
median time: 24.850 ms (0.00% GC)
mean time: 24.910 ms (0.00% GC)
maximum time: 27.172 ms (0.00% GC)
--------------
samples: 201
evals/sample: 1
</code></pre></div>
<p dir="auto">Julia 1.3.0:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="BenchmarkTools.Trial:
memory estimate: 272 bytes
allocs estimate: 2
--------------
minimum time: 236.738 ms (0.00% GC)
median time: 237.059 ms (0.00% GC)
mean time: 237.833 ms (0.00% GC)
maximum time: 245.997 ms (0.00% GC)
--------------
samples: 22
evals/sample: 1"><pre class="notranslate"><code class="notranslate">BenchmarkTools.Trial:
memory estimate: 272 bytes
allocs estimate: 2
--------------
minimum time: 236.738 ms (0.00% GC)
median time: 237.059 ms (0.00% GC)
mean time: 237.833 ms (0.00% GC)
maximum time: 245.997 ms (0.00% GC)
--------------
samples: 22
evals/sample: 1
</code></pre></div> | 1 |
<p dir="auto">I used time series line chart to display the data trending, but the value was shifted by 1 day, e.g. the value on 2016-05-01 was 23801, but actually the value was plotted on 2016-04-30. Will you help to investigate it or give some suggestions. Thanks a lot.</p>
<p dir="auto">the data exported by caravel:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1047330/17760267/249bf15c-6531-11e6-91ca-a20383f593d9.png"><img src="https://cloud.githubusercontent.com/assets/1047330/17760267/249bf15c-6531-11e6-91ca-a20383f593d9.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">the plot actually made by caravel:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1047330/17760285/4c999c40-6531-11e6-8cc7-18e4f666fbe2.png"><img src="https://cloud.githubusercontent.com/assets/1047330/17760285/4c999c40-6531-11e6-8cc7-18e4f666fbe2.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">It looks like there's an off by one in the month visualization. If i do this kind of query:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="select foo, COUNT(distinct bar) from baz and EXTRACT(month FROM "date") =2 and EXTRACT(year FROM "date") = 2015 group by foobar;"><pre class="notranslate"><code class="notranslate">select foo, COUNT(distinct bar) from baz and EXTRACT(month FROM "date") =2 and EXTRACT(year FROM "date") = 2015 group by foobar;
</code></pre></div>
<p dir="auto">I see the count numbers to match the "2015-01" column while i expect it to be "2015-02" instead. If i export the csv i see data correctly with a "2015-02-01" timestamp.</p>
<p dir="auto">Reproduced both in 0.9.1 and 0.10.0.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.7</li>
<li>Operating System version: Window 64x</li>
<li>Java version: 1.8</li>
<li>Tomcat version: 8.0.11</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>enable Rest Protocol using <strong><dubbo:protocol name="rest" server="tomcat"></strong>, the point is using tomcat as WebContainer;</li>
<li>annotate one service's implementation class with <strong>@DubboService(protocol = "rest")</strong>;</li>
<li>start dubbo container and send one http request to it;</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">I should get http response by PostMan.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">PostMan said : the connection is refused。It seems that the Application never listen on the given port .</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.5</li>
<li>Operating System version: Windows 10 Pro</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">See into the logs and always get dubbo=2.0.2 in Url format, wrong? design?</p>
<p dir="auto">I get below code in Version<br>
<code class="notranslate"> // Dubbo RPC protocol version, for compatibility, it must not be between 2.0.10 ~ 2.6.2 public static final String DEFAULT_DUBBO_PROTOCOL_VERSION = "2.0.2"; // Dubbo implementation version, usually is jar version. private static final String VERSION = getVersion(Version.class, "");</code></p> | 0 |
<p dir="auto">It is similar to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="385718821" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/9553" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/9553/hovercard" href="https://github.com/scipy/scipy/issues/9553">#9553</a>. rank_filter function gives wrong result if input and output parameters are the same.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
import scipy.ndimage as ndi
a = np.zeros((3,3))
a[:,0] = 1
print(ndi.rank_filter(a, rank=6, size=3, mode='constant'))
print(ndi.rank_filter(a, rank=6, size=3, mode='constant', output=a))
[[0. 0. 0.]
[1. 1. 0.]
[0. 0. 0.]]
[[0. 0. 0.]
[0. 0. 0.]
[0. 0. 0.]]"><pre class="notranslate"><code class="notranslate">import numpy as np
import scipy.ndimage as ndi
a = np.zeros((3,3))
a[:,0] = 1
print(ndi.rank_filter(a, rank=6, size=3, mode='constant'))
print(ndi.rank_filter(a, rank=6, size=3, mode='constant', output=a))
[[0. 0. 0.]
[1. 1. 0.]
[0. 0. 0.]]
[[0. 0. 0.]
[0. 0. 0.]
[0. 0. 0.]]
</code></pre></div>
<h3 dir="auto">Scipy/Numpy/Python version information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.1.0 1.15.4 sys.version_info(major=3, minor=7, micro=1, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.1.0 1.15.4 sys.version_info(major=3, minor=7, micro=1, releaselevel='final', serial=0)
</code></pre></div> | <p dir="auto">Maybe the problem is following<br>
...<br>
<em>tmp = grey_erosion(tmp, size, footprint, structure, output, mode, cval, origin)</em><br>
tmp and input is the same now<br>
so<br>
<em>numpy.subtract(tmp, input, out=tmp)</em><br>
gives zero</p>
<p dir="auto">Thank you</p> | 1 |
<h3 dir="auto">Background:</h3>
<p dir="auto">I am an author of a golang project called <a href="https://github.com/osdevisnot/sorvor">sorvor</a> and I wish to distribute golang binaries using NPM so that consumers do not have to install separate toolchain to get sorvor.</p>
<p dir="auto">To achieve this, I've published prebuilt platform specific native binaries to NPM via below packages:<br>
<a href="https://www.npmjs.com/package/sorvor-darwin-64" rel="nofollow">https://www.npmjs.com/package/sorvor-darwin-64</a><br>
<a href="https://www.npmjs.com/package/sorvor-darwin-arm64" rel="nofollow">https://www.npmjs.com/package/sorvor-darwin-arm64</a><br>
<a href="https://www.npmjs.com/package/sorvor-freebsd-64" rel="nofollow">https://www.npmjs.com/package/sorvor-freebsd-64</a><br>
<a href="https://www.npmjs.com/package/sorvor-freebsd-arm64" rel="nofollow">https://www.npmjs.com/package/sorvor-freebsd-arm64</a><br>
<a href="https://www.npmjs.com/package/sorvor-linux-32" rel="nofollow">https://www.npmjs.com/package/sorvor-linux-32</a><br>
<a href="https://www.npmjs.com/package/sorvor-linux-64" rel="nofollow">https://www.npmjs.com/package/sorvor-linux-64</a><br>
<a href="https://www.npmjs.com/package/sorvor-linux-arm" rel="nofollow">https://www.npmjs.com/package/sorvor-linux-arm</a><br>
<a href="https://www.npmjs.com/package/sorvor-linux-arm64" rel="nofollow">https://www.npmjs.com/package/sorvor-linux-arm64</a><br>
<a href="https://www.npmjs.com/package/sorvor-windows-32" rel="nofollow">https://www.npmjs.com/package/sorvor-windows-32</a><br>
<a href="https://www.npmjs.com/package/sorvor-windows-64" rel="nofollow">https://www.npmjs.com/package/sorvor-windows-64</a></p>
<p dir="auto">I am expecting user's to have a single NPM dependency in their <code class="notranslate">package.json</code> for the main package:<br>
<a href="https://www.npmjs.com/package/sorvor" rel="nofollow">https://www.npmjs.com/package/sorvor</a></p>
<p dir="auto">The main package lists all the native packages as optional dependencies so that and NPM can install appropriate optional dependency for a given platform.</p>
<h3 dir="auto">Current Behavior:</h3>
<p dir="auto">NPM v7.x installs all optional dependencies without checking current OS and CPU arch.</p>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">NPM v7.x should install optional dependencies only for current OS and CPU arch.</p>
<p dir="auto">Note: This works correctly with NPM v6.x</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<p dir="auto">run <code class="notranslate">npm install --save-dev sorvor</code></p>
<h3 dir="auto">Environment:</h3>
<ul dir="auto">
<li>OS: Darwin x86_64</li>
<li>Node: 15.9.0</li>
<li>NPM: 7.5.3</li>
</ul>
<h3 dir="auto">Related Issues:</h3>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="533427558" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/558" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/558/hovercard" href="https://github.com/npm/cli/issues/558">#558</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="521697861" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/475" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/475/hovercard" href="https://github.com/npm/cli/issues/475">#475</a></p> | <h3 dir="auto">Current Behavior:</h3>
<p dir="auto">I tested installing a git dependency which has either <code class="notranslate">prepare</code> or <code class="notranslate">prepack</code> script with npm CLI v7.0.0-beta.12 and confirmed the following behaviors.</p>
<ul dir="auto">
<li>a package with a <code class="notranslate">prepare</code> script: <code class="notranslate">devDependencies</code> are <strong>NOT</strong> installed but the <code class="notranslate">prepare</code> script is executed</li>
<li>a package with a <code class="notranslate">prepack</code> script: <code class="notranslate">devDependencies</code> are <strong>NOT</strong> installed and the <code class="notranslate">prepack</code> script is <strong>NOT</strong> executed</li>
</ul>
<h3 dir="auto">Expected Behavior:</h3>
<ul dir="auto">
<li>a package with a <code class="notranslate">prepare</code> script: <code class="notranslate">devDependencies</code> are installed and the <code class="notranslate">prepare</code> script is executed</li>
<li>a package with a <code class="notranslate">prepack</code> script: <code class="notranslate">devDependencies</code> are installed and the <code class="notranslate">prepack</code> script is executed
<ul dir="auto">
<li>Though I've not found any document saying that <code class="notranslate">devDependencies</code> are installed when installing a git dependency with a <code class="notranslate">prepack</code> script and actually <a href="https://github.com/npm/cli/issues/1229" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/1229/hovercard">they are not installed even when npm CLI v6 is used</a>, I believe npm should install them since running a <code class="notranslate">prepack</code> script without installing <code class="notranslate">devDependencies</code> does not make sense.</li>
</ul>
</li>
</ul>
<h3 dir="auto">Steps To Reproduce:</h3>
<p dir="auto"><code class="notranslate">prepare</code>:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// https://github.com/kimamula/prepare-test/blob/master/package.json
{
"name": "prepare-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "tsc"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"typescript": "^4.0.3"
}
}"><pre class="notranslate"><span class="pl-ii">// https://github.com/kimamula/prepare-test/blob/master/package.json</span>
{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>prepare-test<span class="pl-pds">"</span></span>,
<span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"description"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"main"</span>: <span class="pl-s"><span class="pl-pds">"</span>index.js<span class="pl-pds">"</span></span>,
<span class="pl-ent">"scripts"</span>: {
<span class="pl-ent">"test"</span>: <span class="pl-s"><span class="pl-pds">"</span>echo <span class="pl-cce">\"</span>Error: no test specified<span class="pl-cce">\"</span> && exit 1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"prepare"</span>: <span class="pl-s"><span class="pl-pds">"</span>tsc<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"keywords"</span>: [],
<span class="pl-ent">"author"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"license"</span>: <span class="pl-s"><span class="pl-pds">"</span>ISC<span class="pl-pds">"</span></span>,
<span class="pl-ent">"devDependencies"</span>: {
<span class="pl-ent">"typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.0.3<span class="pl-pds">"</span></span>
}
}</pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ npm install github:kimamula/prepare-test
npm ERR! code 127
npm ERR! git dep preparation failed
npm ERR! command /Users/kenji/.nodenv/versions/12.18.3/bin/node /Users/kenji/.nodenv/versions/12.18.3/lib/node_modules/npm/bin/npm-cli.js install --only=dev --prod --ignore-prepublish --no-progress --no-save --cache=/Users/kenji/.npm/_cacache --prefer-offline=false --prefer-online=false --offline=false --before=
npm ERR! > [email protected] prepare
npm ERR! > tsc
npm ERR! npm WARN invalid config before="" set in command line options
npm ERR! npm WARN invalid config Must be one of: null, valid Date string
npm ERR! sh: tsc: command not found
npm ERR! npm ERR! code 127
npm ERR! npm ERR! path /Users/kenji/.npm/_cacache/tmp/git-clone-a73f300b
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c tsc
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /Users/kenji/.npm/_cacache/_logs/2020-09-27T06_13_19_941Z-debug.log
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kenji/.npm/_logs/2020-09-27T06_13_19_972Z-debug.log"><pre class="notranslate">$ npm install github:kimamula/prepare-test
npm ERR<span class="pl-k">!</span> code 127
npm ERR<span class="pl-k">!</span> git dep preparation failed
npm ERR<span class="pl-k">!</span> <span class="pl-c1">command</span> /Users/kenji/.nodenv/versions/12.18.3/bin/node /Users/kenji/.nodenv/versions/12.18.3/lib/node_modules/npm/bin/npm-cli.js install --only=dev --prod --ignore-prepublish --no-progress --no-save --cache=/Users/kenji/.npm/_cacache --prefer-offline=false --prefer-online=false --offline=false --before=
npm ERR<span class="pl-k">!</span> <span class="pl-k">></span> [email protected] prepare
npm ERR<span class="pl-k">!</span> <span class="pl-k">></span> tsc
npm ERR<span class="pl-k">!</span> npm WARN invalid config before=<span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> <span class="pl-c1">set</span> <span class="pl-k">in</span> <span class="pl-c1">command</span> line options
npm ERR<span class="pl-k">!</span> npm WARN invalid config Must be one of: null, valid Date string
npm ERR<span class="pl-k">!</span> sh: tsc: <span class="pl-c1">command</span> not found
npm ERR<span class="pl-k">!</span> npm ERR<span class="pl-k">!</span> code 127
npm ERR<span class="pl-k">!</span> npm ERR<span class="pl-k">!</span> path /Users/kenji/.npm/_cacache/tmp/git-clone-a73f300b
npm ERR<span class="pl-k">!</span> npm ERR<span class="pl-k">!</span> <span class="pl-c1">command</span> failed
npm ERR<span class="pl-k">!</span> npm ERR<span class="pl-k">!</span> <span class="pl-c1">command</span> sh -c tsc
npm ERR<span class="pl-k">!</span>
npm ERR<span class="pl-k">!</span> npm ERR<span class="pl-k">!</span> A <span class="pl-c1">complete</span> log of this run can be found in:
npm ERR<span class="pl-k">!</span> npm ERR<span class="pl-k">!</span> /Users/kenji/.npm/_cacache/_logs/2020-09-27T06_13_19_941Z-debug.log
npm ERR<span class="pl-k">!</span> A <span class="pl-c1">complete</span> log of this run can be found in:
npm ERR<span class="pl-k">!</span> /Users/kenji/.npm/_logs/2020-09-27T06_13_19_972Z-debug.log</pre></div>
<p dir="auto"><code class="notranslate">prepack</code>:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// https://github.com/kimamula/prepack-test/blob/master/package.json
{
"name": "prepack-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepack": "tsc"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"typescript": "^4.0.3"
}
}"><pre class="notranslate"><span class="pl-ii">// https://github.com/kimamula/prepack-test/blob/master/package.json</span>
{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>prepack-test<span class="pl-pds">"</span></span>,
<span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"description"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"main"</span>: <span class="pl-s"><span class="pl-pds">"</span>index.js<span class="pl-pds">"</span></span>,
<span class="pl-ent">"scripts"</span>: {
<span class="pl-ent">"test"</span>: <span class="pl-s"><span class="pl-pds">"</span>echo <span class="pl-cce">\"</span>Error: no test specified<span class="pl-cce">\"</span> && exit 1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"prepack"</span>: <span class="pl-s"><span class="pl-pds">"</span>tsc<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"keywords"</span>: [],
<span class="pl-ent">"author"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"license"</span>: <span class="pl-s"><span class="pl-pds">"</span>ISC<span class="pl-pds">"</span></span>,
<span class="pl-ent">"devDependencies"</span>: {
<span class="pl-ent">"typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.0.3<span class="pl-pds">"</span></span>
}
}</pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ npm install github:kimamula/prepack-test
changed 1 package, and audited 1 package in 6s
found 0 vulnerabilities"><pre class="notranslate">$ npm install github:kimamula/prepack-test
changed 1 package, and audited 1 package <span class="pl-k">in</span> 6s
found 0 vulnerabilities</pre></div>
<p dir="auto">-> <code class="notranslate">tsc</code> should generate <code class="notranslate">index.js</code> file, but it's not generated.</p>
<h3 dir="auto">Environment:</h3>
<ul dir="auto">
<li>OS: macOS 10.15.6</li>
<li>Node: 12.18.3</li>
<li>npm: 7.0.0-beta.12</li>
</ul> | 0 |
<p dir="auto">I think some times we need to write things like this, but obviously the auto formatting doesn't support this style well enough (actually it destroys manually formatted code):</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="promise
.then(() => returnAnotherPromise())
.then(() => {
// do something...
})
.then(() => {
// do some other thing...
});"><pre class="notranslate"><span class="pl-s1">promise</span>
<span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-en">returnAnotherPromise</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">then</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-c">// do something...</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">then</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-c">// do some other thing...</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Because the style below doesn't seem to be acceptable.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="promise.then(() => returnAnotherPromise()).then(() => returnAnotherPromise()).then(() => {
//...
});"><pre class="notranslate"><span class="pl-s1">promise</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-en">returnAnotherPromise</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">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-en">returnAnotherPromise</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">then</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-c">//...</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I find there's quite a lot bugs related to auto formatting, maybe a thorough test procedure should be designed?</p> | <p dir="auto">I have the following code:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" query(id: number) {
return this.$http
.get('/api/Entity/' + id)
.then(function (data) {
return data.data; // (a)
}); // (b)
}"><pre class="notranslate"> <span class="pl-en">query</span><span class="pl-kos">(</span><span class="pl-s1">id</span>: <span class="pl-s1">number</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$http</span>
<span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/api/Entity/'</span> <span class="pl-c1">+</span> <span class="pl-s1">id</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">;</span> <span class="pl-c">// (a)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// (b)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">When I type the semi-colon at point (a), it gets correctly indented. When a type a semi-colon at point (b), both lines get 4 columns to the left, which is the same output when a format the whole document.</p>
<p dir="auto">I must add it gets on my nerves.</p>
<p dir="auto">Any way to avoid it? Tks</p> | 1 |
<p dir="auto">Consider:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo(x)
y = convert(Vector{Float64},x)
y[1] = 10.0
return y
end
julia> x = [1,2,3]
3-element Array{Int64,1}:
1
2
3
julia> foo(x)
3-element Array{Float64,1}:
10.0
2.0
3.0
julia> x
3-element Array{Int64,1}:
1
2
3
julia> x = [1.,2.,3.]
3-element Array{Float64,1}:
1.0
2.0
3.0
julia> foo(x)
3-element Array{Float64,1}:
10.0
2.0
3.0
julia> x
3-element Array{Float64,1}:
10.0
2.0
3.0"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span>(x)
y <span class="pl-k">=</span> <span class="pl-c1">convert</span>(Vector{Float64},x)
y[<span class="pl-c1">1</span>] <span class="pl-k">=</span> <span class="pl-c1">10.0</span>
<span class="pl-k">return</span> y
<span class="pl-k">end</span>
julia<span class="pl-k">></span> x <span class="pl-k">=</span> [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>]
<span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Int64,<span class="pl-c1">1</span>}<span class="pl-k">:</span>
<span class="pl-c1">1</span>
<span class="pl-c1">2</span>
<span class="pl-c1">3</span>
julia<span class="pl-k">></span> <span class="pl-c1">foo</span>(x)
<span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Float64,<span class="pl-c1">1</span>}<span class="pl-k">:</span>
<span class="pl-c1">10.0</span>
<span class="pl-c1">2.0</span>
<span class="pl-c1">3.0</span>
julia<span class="pl-k">></span> x
<span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Int64,<span class="pl-c1">1</span>}<span class="pl-k">:</span>
<span class="pl-c1">1</span>
<span class="pl-c1">2</span>
<span class="pl-c1">3</span>
julia<span class="pl-k">></span> x <span class="pl-k">=</span> [<span class="pl-c1">1.</span>,<span class="pl-c1">2.</span>,<span class="pl-c1">3.</span>]
<span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Float64,<span class="pl-c1">1</span>}<span class="pl-k">:</span>
<span class="pl-c1">1.0</span>
<span class="pl-c1">2.0</span>
<span class="pl-c1">3.0</span>
julia<span class="pl-k">></span> <span class="pl-c1">foo</span>(x)
<span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Float64,<span class="pl-c1">1</span>}<span class="pl-k">:</span>
<span class="pl-c1">10.0</span>
<span class="pl-c1">2.0</span>
<span class="pl-c1">3.0</span>
julia<span class="pl-k">></span> x
<span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Float64,<span class="pl-c1">1</span>}<span class="pl-k">:</span>
<span class="pl-c1">10.0</span>
<span class="pl-c1">2.0</span>
<span class="pl-c1">3.0</span></pre></div>
<p dir="auto">The input is modified in one case, and not the other, which is in the realms of "scary". One (The?) solution is to always do a copy, even if the type matches, for mutable types.</p> | <p dir="auto">this is an umbrella issue for tracking known issues with switching to LLVM35 as default. please edit this post or add a comment below. close when someone edits <code class="notranslate">deps/Versions.make</code> to <del><code class="notranslate">3.6.0</code></del> <code class="notranslate">3.7.0</code></p>
<p dir="auto">current known issues:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> requires editing deps/Versions.make - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125800095" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/14623" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/14623/hovercard" href="https://github.com/JuliaLang/julia/pull/14623">#14623</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="39789408" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/7910" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/7910/hovercard" href="https://github.com/JuliaLang/julia/issues/7910">#7910</a> (<a href="http://reviews.llvm.org/D6961" rel="nofollow">upstream patch</a> committed to 3.7 -- only an issue on Mac)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> figure out performance regression (perhaps only run passes once <del>(requires writing a <code class="notranslate">TargetMachine</code> wrapper and overloading <code class="notranslate">addPassesToEmitMC</code>)</del> (requires changes to LLVM to expose passes))</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> requires leaving behind LLVM33</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> would eliminate content from the "fixed in LLVM 3.5" issue label</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="41171385" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/8137" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/8137/hovercard" href="https://github.com/JuliaLang/julia/issues/8137">#8137</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="48613003" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/8999" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/8999/hovercard" href="https://github.com/JuliaLang/julia/issues/8999">#8999</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51424119" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/9280" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/9280/hovercard" href="https://github.com/JuliaLang/julia/issues/9280">#9280</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51882263" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/9339" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/9339/hovercard" href="https://github.com/JuliaLang/julia/issues/9339">#9339</a> <del>(LLVM36-only issue)</del></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="55996164" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/9967" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/9967/hovercard" href="https://github.com/JuliaLang/julia/issues/9967">#9967</a> (fixed in LLVM36)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="59502482" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/10377" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/10377/hovercard" href="https://github.com/JuliaLang/julia/issues/10377">#10377</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="59712802" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/10394" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/10394/hovercard" href="https://github.com/JuliaLang/julia/issues/10394">#10394</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="72480548" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/11085" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/11085/hovercard" href="https://github.com/JuliaLang/julia/issues/11085">#11085</a> linalg/arnoldi test on win64</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="72464823" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/11083" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/11083/hovercard" href="https://github.com/JuliaLang/julia/issues/11083">#11083</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="68233081" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/10806" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/10806/hovercard" href="https://github.com/JuliaLang/julia/issues/10806">#10806</a></del> (afaict, this is a non-fatal issue in valgrind. jwn)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="70869528" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/11003" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/11003/hovercard" href="https://github.com/JuliaLang/julia/issues/11003">#11003</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="106224074" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/13106" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/13106/hovercard" href="https://github.com/JuliaLang/julia/issues/13106">#13106</a></del> (this issue is a non-fatal performance regression. jwn)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> re-disable FPO</li>
</ul>
<p dir="auto">related:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="39001785" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/7779" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/7779/hovercard" href="https://github.com/JuliaLang/julia/issues/7779">#7779</a> coverage flags are broken with LLVM 3.5 on master</li>
</ul>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Keno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Keno">@Keno</a></p> | 0 |
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/blevine/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/blevine">@blevine</a>: 'This is expands on the issue I originally raised here: <a href="https://groups.google.com/d/topic/neo4j/-Ml0NDjKDQA/discussion" rel="nofollow">https://groups.google.com/d/topic/neo4j/-Ml0NDjKDQA/discussion</a></p>
<p dir="auto">Environment:</p>
<ul dir="auto">
<li>Neo4j Community 1.8RC1</li>
<li>Ubuntu 12.04</li>
<li>Oracle JDK 1.6.0_32</li>
</ul>
<p dir="auto">I've come up with a relatively easy way to reproduce this issue without requiring you to replicate my Node.js environment.</p>
<p dir="auto">I was able to reproduce the problem fairly easily by running an Apache Benchmark (ab) script that issued a "delete all nodes" Cypher query repeatedly and concurrently:</p>
<p dir="auto">ab -c 10 -n 10000 -v3 -T "application/json" -p delete.json <a href="http://localhost:747" rel="nofollow">http://localhost:747</a><br>
4/db/data/cypher</p>
<p dir="auto">The delete .json file looks like:</p>
<p dir="auto">{<br>
"query" : "start n = node(*) DELETE n"<br>
}</p>
<p dir="auto">Instructions for reproducing the problem:</p>
<ol dir="auto">
<li>Bring up the neo4j console in a browser and navigate to the Data Browser tab. Be ready to start clicking the "+ Node" button to create new Nodes.</li>
<li>Start the ab script and immediately start clicking the "+Node" button repeatedly while the ab script is working to delete all nodes.</li>
</ol>
<p dir="auto">Eventually, the ab script will start reporting errors of the form shown below. You can of course, increase the run time of the ab script if the problem doesn't appear right away. For me, it appeared after about 2 seconds. After that point, the "delete all nodes" query will continue to return this error.</p>
<p dir="auto">I also noticed some additional interesting behavior after this error occurred:</p>
<ol dir="auto">
<li>The console said that there were 24 nodes, but 'start n = node(*) return count(n)' returned 26.</li>
<li>The query 'start n = node(*) return n' produced an error: <em>"Node[214] not found. This can be because someone else deleted ..."</em> (note that Node 214 also appears in the original error below)</li>
</ol>
<p dir="auto">Error produced:</p>
<p dir="auto">{<br>
"message" : "NodeRecord[214] not in use",<br>
"exception" : "InvalidRecordException",<br>
"stacktrace" : [ "org.neo4j.kernel.impl.nioneo.store.NodeStore.getRecord(NodeStore.java:199)", "org.neo4j.kernel.impl.nioneo.store.NodeStore.getRecord(NodeStore.java:79)", "org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.nodeDelete(WriteTransaction.java:661)", "org.neo4j.kernel.impl.persistence.PersistenceManager.nodeDelete(PersistenceManager.java:134)", "org.neo4j.kernel.impl.core.NodeManager.deleteNode(NodeManager.java:922)", "org.neo4j.kernel.impl.core.NodeImpl.delete(NodeImpl.java:282)", "org.neo4j.kernel.impl.core.NodeProxy.delete(NodeProxy.java:67)", "org.neo4j.cypher.internal.mutation.DeleteEntityAction.org$neo4j$cypher$internal$mutation$DeleteEntityAction$$delete(DeleteEntityAction.scala:50)", "org.neo4j.cypher.internal.mutation.DeleteEntityAction.exec(DeleteEntityAction.scala:34)", "org.neo4j.cypher.internal.mutation.DeleteEntityAction.exec(DeleteEntityAction.scala:30)", "org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe.org$neo4j$cypher$internal$pipes$ExecuteUpdateCommandsPipe$$exec(ExecuteUpdateCommandsPipe.scala:52)", "org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe$$anonfun$org$neo4j$cypher$internal$pipes$ExecuteUpdateCommandsPipe$$executeMutationCommands$1$$anonfun$apply$1.apply(ExecuteUpdateCommandsPipe.scala:43)", "org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe$$anonfun$org$neo4j$cypher$internal$pipes$ExecuteUpdateCommandsPipe$$executeMutationCommands$1$$anonfun$apply$1.apply(ExecuteUpdateCommandsPipe.scala:43)", "scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)", "scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)", "scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)", "scala.collection.immutable.List.foreach(List.scala:45<br>
....</p>
<p dir="auto">'</p> | <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/blevine/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/blevine">@blevine</a>: 'Environment:<br>
Neo4j Communit 1.8GA<br>
Ubuntu 12.04<br>
Oracle JDK 1.6.0_32-b05<br>
Node.js/node-neo4j driver</p>
<p dir="auto">This problem is most likely related to issue <a href="https://github.com/neo4j/community/issues/872">#872</a>. After running a similar test for a while, I see the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""Node[1877] concurrently deleted while loading its relationships?""><pre class="notranslate"><code class="notranslate">"Node[1877] concurrently deleted while loading its relationships?"
</code></pre></div>
<p dir="auto">as a result of the following 'delete all' query:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="start n = node(*) match n-[r?]-() delete r,n"><pre class="notranslate"><code class="notranslate">start n = node(*) match n-[r?]-() delete r,n
</code></pre></div>
<p dir="auto">At this point all attempts to execute that query (both programmatically and from the Data Browser) result in the same error. Nothing appears in the log related to this error.</p>
<p dir="auto">I then went to the Data Browser and was able to view Node 1877 although all of its properties had been deleted. I then restarted the server after which Node 1877 disappeared (according to the Data Browser). I was then able to issue the 'delete all' query successfully.'</p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">We are having issues with duplication in the result set in one of our instances running 2.1.3.</p>
<p dir="auto">The topology is (task:Task)-[:HAS_STATE]->(state:TaskState) where the task has a unique ID, and the cardinality of the HAS_STATE is 1:1 (one state connected to the task via HAS_STATE):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/398184/4893303/d3fc4176-63bf-11e4-8159-847b877652b3.png"><img src="https://cloud.githubusercontent.com/assets/398184/4893303/d3fc4176-63bf-11e4-8159-847b877652b3.png" alt="single-result" style="max-width: 100%;"></a></p>
<p dir="auto">However, when queried for the state, it returns two exact duplicate rows. You can see that the id() of the relationship is the same:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/398184/4893312/dd0c36b8-63bf-11e4-9c2a-9a6f7ee4d390.png"><img src="https://cloud.githubusercontent.com/assets/398184/4893312/dd0c36b8-63bf-11e4-9c2a-9a6f7ee4d390.png" alt="duplicate-row-rel-id" style="max-width: 100%;"></a></p>
<p dir="auto">Doing a distinct brings it to the correct result of one row.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/398184/4893314/e220422a-63bf-11e4-94c7-9f1ffc98fba4.png"><img src="https://cloud.githubusercontent.com/assets/398184/4893314/e220422a-63bf-11e4-94c7-9f1ffc98fba4.png" alt="results-with-distinct" style="max-width: 100%;"></a></p>
<p dir="auto">However the weirdest part is that once the instance is restarted, the problem goes away:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/398184/4893315/e7922098-63bf-11e4-9c6a-506665330660.png"><img src="https://cloud.githubusercontent.com/assets/398184/4893315/e7922098-63bf-11e4-9c6a-506665330660.png" alt="after-restart" style="max-width: 100%;"></a></p>
<p dir="auto">I'm thinking this might be an issue with the cache, but there is no sure way in which we can reproduce it. Any input that might help for reproducing the issue or have you ever experienced this issue before?</p>
<p dir="auto">Thanks</p> | <p dir="auto">This is similar to a closed issue for 4.4.0 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1082179033" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/12800" data-hovercard-type="issue" data-hovercard-url="/neo4j/neo4j/issues/12800/hovercard" href="https://github.com/neo4j/neo4j/issues/12800">#12800</a>), which indicated the problem was fixed in the next version. I suspect 4.4.14 qualifies as the next version, so perhaps the cause of this issue is different. Perhaps also relevant: I'm attempting to create the database on an external 5 TB HDD, and the source files (~670 GB of .tsv's) are on an internal 2 TB HDD. I previously attempted to create the database on a separate internal SDD, but the drive filled all-the-way up, so I wanted to use the largest storage device available.</p>
<p dir="auto">To help us understand your issue, please specify important details, primarily:</p>
<ul dir="auto">
<li>
<p dir="auto">Neo4j version: 4.4.14</p>
</li>
<li>
<p dir="auto">Operating system: Ubuntu 20.04</p>
</li>
<li>
<p dir="auto">API/Driver: neo4j-admin import</p>
</li>
<li>
<p dir="auto"><strong>Steps to reproduce</strong></p>
</li>
<li>
<ol dir="auto">
<li>Execute the import command:</li>
</ol>
</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./bin/neo4j-admin import --skip-bad-relationships=true \
--database=oaone \
--skip-duplicate-nodes \
--ignore-empty-strings=true \
--verbose --delimiter='\t' \
--nodes=author=import/../../../neo4jdata/import/header_files/header_ent_auth.tsv,"import/../../../neo4jdata/import/.*authors_\d.*tsv" \
--nodes=concept=import/../../../neo4jdata/import/header_files/header_ent_cncpt.tsv,"import/../../../neo4jdata/import/.*concept_\d.*tsv" \
--nodes=institution=import/../../../neo4jdata/import/header_files/header_ent_inst.tsv,"import/../../../neo4jdata/import/.*\d_institutions_\d+.*tsv" \
--nodes=work=import/../../../neo4jdata/import/header_files/header_ent_wrks.tsv,"import/../../../neo4jdata/import/.*\d_works_\d.*tsv" \
--relationships=affiliation=import/../../../neo4jdata/import/header_files/header_rel_affil.tsv,"import/../../../neo4jdata/import/.*affiliations_\d.*tsv" \
--relationships=authorship=import/../../../neo4jdata/import/header_files/header_rel_authshps.tsv,"import/../../../neo4jdata/import/.*authorships_\d.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_ancest-cncpt.tsv,"import/../../../neo4jdata/import/.*ancestor-concepts_\d.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_auth_cncpt.tsv,"import/../../../neo4jdata/import/.*authors_concepts_\d.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_inst_cncpt.tsv,"import/../../../neo4jdata/import/.*institutions_concepts_\d+.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_rel_cncpts.tsv,"import/../../../neo4jdata/import/.*related-concepts_\d.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_insts.tsv,"import/../../../neo4jdata/import/.*related_institutions_\d.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_wrks.tsv,"import/../../../neo4jdata/import/.*related_works_\d+.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_wrks_cncpts.tsv,"import/../../../neo4jdata/import/.*work_concepts_\d.*tsv""><pre class="notranslate"><code class="notranslate">./bin/neo4j-admin import --skip-bad-relationships=true \
--database=oaone \
--skip-duplicate-nodes \
--ignore-empty-strings=true \
--verbose --delimiter='\t' \
--nodes=author=import/../../../neo4jdata/import/header_files/header_ent_auth.tsv,"import/../../../neo4jdata/import/.*authors_\d.*tsv" \
--nodes=concept=import/../../../neo4jdata/import/header_files/header_ent_cncpt.tsv,"import/../../../neo4jdata/import/.*concept_\d.*tsv" \
--nodes=institution=import/../../../neo4jdata/import/header_files/header_ent_inst.tsv,"import/../../../neo4jdata/import/.*\d_institutions_\d+.*tsv" \
--nodes=work=import/../../../neo4jdata/import/header_files/header_ent_wrks.tsv,"import/../../../neo4jdata/import/.*\d_works_\d.*tsv" \
--relationships=affiliation=import/../../../neo4jdata/import/header_files/header_rel_affil.tsv,"import/../../../neo4jdata/import/.*affiliations_\d.*tsv" \
--relationships=authorship=import/../../../neo4jdata/import/header_files/header_rel_authshps.tsv,"import/../../../neo4jdata/import/.*authorships_\d.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_ancest-cncpt.tsv,"import/../../../neo4jdata/import/.*ancestor-concepts_\d.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_auth_cncpt.tsv,"import/../../../neo4jdata/import/.*authors_concepts_\d.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_inst_cncpt.tsv,"import/../../../neo4jdata/import/.*institutions_concepts_\d+.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_rel_cncpts.tsv,"import/../../../neo4jdata/import/.*related-concepts_\d.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_insts.tsv,"import/../../../neo4jdata/import/.*related_institutions_\d.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_wrks.tsv,"import/../../../neo4jdata/import/.*related_works_\d+.*tsv" \
--relationships=similar=import/../../../neo4jdata/import/header_files/header_rel_wrks_cncpts.tsv,"import/../../../neo4jdata/import/.*work_concepts_\d.*tsv"
</code></pre></div>
<ul dir="auto">
<li>
<p dir="auto">Expected behavior<br>
Creation of database</p>
</li>
<li>
<p dir="auto">Actual behavior<br>
Import failed</p>
</li>
</ul>
<p dir="auto">BASH PRINTOUTS:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Available resources:
Total machine memory: 755.8GiB
Free machine memory: 654.9GiB
Max heap memory : 29.97GiB
Processors: 72
Configured max memory: 653.2GiB
High-IO: false
Type normalization:
Property type of 'latitude' normalized from 'float' --> 'double' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_inst.tsv
Property type of 'longitude' normalized from 'float' --> 'double' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_inst.tsv
Property type of 'cited_by_count' normalized from 'int' --> 'long' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_inst.tsv
Property type of 'cited_by_count' normalized from 'int' --> 'long' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_wrks.tsv
Property type of 'cited_by_count' normalized from 'int' --> 'long' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_auth.tsv
Property type of 'level' normalized from 'int' --> 'long' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_cncpt.tsv
Property type of 'score' normalized from 'float' --> 'double' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_rel_auth_cncpt.tsv
Property type of 'score' normalized from 'float' --> 'double' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_rel_inst_cncpt.tsv
Property type of 'score' normalized from 'float' --> 'double' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_rel_rel_cncpts.tsv
Nodes, started 2022-11-21 13:18:07.041+0000
[*Nodes:0B/s 2.792GiB-------------------------------------------------------------------------] 239M ∆80.0KCritical error occurred! Shutting down the import...
[*Nodes:0B/s 2.799GiB-------------------------------------------------------------------------] 241M ∆ 300K
IMPORT FAILED in 14m 25s 379ms.
Data statistics is not available.
Peak memory usage: 0B"><pre class="notranslate"><code class="notranslate">Available resources:
Total machine memory: 755.8GiB
Free machine memory: 654.9GiB
Max heap memory : 29.97GiB
Processors: 72
Configured max memory: 653.2GiB
High-IO: false
Type normalization:
Property type of 'latitude' normalized from 'float' --> 'double' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_inst.tsv
Property type of 'longitude' normalized from 'float' --> 'double' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_inst.tsv
Property type of 'cited_by_count' normalized from 'int' --> 'long' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_inst.tsv
Property type of 'cited_by_count' normalized from 'int' --> 'long' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_wrks.tsv
Property type of 'cited_by_count' normalized from 'int' --> 'long' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_auth.tsv
Property type of 'level' normalized from 'int' --> 'long' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_ent_cncpt.tsv
Property type of 'score' normalized from 'float' --> 'double' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_rel_auth_cncpt.tsv
Property type of 'score' normalized from 'float' --> 'double' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_rel_inst_cncpt.tsv
Property type of 'score' normalized from 'float' --> 'double' in /media/neo4j_5TB/neo4j-community-4.4.14/import/../../../neo4jdata/import/header_files/header_rel_rel_cncpts.tsv
Nodes, started 2022-11-21 13:18:07.041+0000
[*Nodes:0B/s 2.792GiB-------------------------------------------------------------------------] 239M ∆80.0KCritical error occurred! Shutting down the import...
[*Nodes:0B/s 2.799GiB-------------------------------------------------------------------------] 241M ∆ 300K
IMPORT FAILED in 14m 25s 379ms.
Data statistics is not available.
Peak memory usage: 0B
</code></pre></div>
<p dir="auto">Additionally, include (as appropriate) log-files, stacktraces, and other debug output.</p>
<p dir="auto">DEBUG.LOG CONTENTS</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2022-11-21 12:53:18.089+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Record format not configured, selected default: RecordFormat:PageAlignedV4_3[AF4.3.0]
2022-11-21 12:53:19.056+0000 INFO [o.n.i.b.ImportLogic] Import starting
2022-11-21 13:09:11.234+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Record format not configured, selected default: RecordFormat:PageAlignedV4_3[AF4.3.0]
2022-11-21 13:09:11.960+0000 INFO [o.n.i.b.ImportLogic] Import starting
2022-11-21 13:09:38.811+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Record format not configured, selected default: RecordFormat:PageAlignedV4_3[AF4.3.0]
2022-11-21 13:16:23.601+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Record format not configured, selected default: RecordFormat:PageAlignedV4_3[AF4.3.0]
2022-11-21 13:16:24.324+0000 INFO [o.n.i.b.ImportLogic] Import starting
2022-11-21 13:30:49.720+0000 INFO [o.n.i.b.ImportLogic] Import failed, took 14m 25s 379ms. Data statistics is not available."><pre class="notranslate"><code class="notranslate">2022-11-21 12:53:18.089+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Record format not configured, selected default: RecordFormat:PageAlignedV4_3[AF4.3.0]
2022-11-21 12:53:19.056+0000 INFO [o.n.i.b.ImportLogic] Import starting
2022-11-21 13:09:11.234+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Record format not configured, selected default: RecordFormat:PageAlignedV4_3[AF4.3.0]
2022-11-21 13:09:11.960+0000 INFO [o.n.i.b.ImportLogic] Import starting
2022-11-21 13:09:38.811+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Record format not configured, selected default: RecordFormat:PageAlignedV4_3[AF4.3.0]
2022-11-21 13:16:23.601+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Record format not configured, selected default: RecordFormat:PageAlignedV4_3[AF4.3.0]
2022-11-21 13:16:24.324+0000 INFO [o.n.i.b.ImportLogic] Import starting
2022-11-21 13:30:49.720+0000 INFO [o.n.i.b.ImportLogic] Import failed, took 14m 25s 379ms. Data statistics is not available.
</code></pre></div> | 0 |
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>path_provider getApplicationDocumentsDirectory() is throwing an unhandled exception on android</li>
</ol>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'dart:io';
import 'package:path_provider/path_provider.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
String _appdir = "";
Future<String> getAppDir() async {
// Uncaught exception thrown here!
Directory dir = await getApplicationDocumentsDirectory();
return dir.path;
}
@override
void initState() async {
// TODO: implement initState
super.initState();
String temp = await getAppDir();
setState(() {
_appdir = temp;
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(_appdir),
],
),
),
);
}
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'dart:io'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:path_provider/path_provider.dart'</span>;
<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-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>(
title<span class="pl-k">:</span> <span class="pl-s">'Flutter Demo'</span>,
theme<span class="pl-k">:</span> <span class="pl-c1">ThemeData</span>(
primarySwatch<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.blue,
),
home<span class="pl-k">:</span> <span class="pl-c1">MyHomePage</span>(title<span class="pl-k">:</span> <span class="pl-s">'Flutter Demo Home Page'</span>),
);
}
}
<span class="pl-k">class</span> <span class="pl-c1">MyHomePage</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> {
<span class="pl-c1">MyHomePage</span>({<span class="pl-c1">Key</span> key, <span class="pl-c1">this</span>.title}) <span class="pl-k">:</span> <span class="pl-c1">super</span>(key<span class="pl-k">:</span> key);
<span class="pl-k">final</span> <span class="pl-c1">String</span> title;
<span class="pl-k">@override</span>
<span class="pl-c1">_MyHomePageState</span> <span class="pl-en">createState</span>() <span class="pl-k">=></span> <span class="pl-c1">_MyHomePageState</span>();
}
<span class="pl-k">class</span> <span class="pl-c1">_MyHomePageState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span><<span class="pl-c1">MyHomePage</span>> {
<span class="pl-c1">String</span> _appdir <span class="pl-k">=</span> <span class="pl-s">""</span>;
<span class="pl-c1">Future</span><<span class="pl-c1">String</span>> <span class="pl-en">getAppDir</span>() <span class="pl-k">async</span> {
<span class="pl-c">// Uncaught exception thrown here!</span>
<span class="pl-c1">Directory</span> dir <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-en">getApplicationDocumentsDirectory</span>();
<span class="pl-k">return</span> dir.path;
}
<span class="pl-k">@override</span>
<span class="pl-k">void</span> <span class="pl-en">initState</span>() <span class="pl-k">async</span> {
<span class="pl-c">// TODO: implement initState</span>
<span class="pl-c1">super</span>.<span class="pl-en">initState</span>();
<span class="pl-c1">String</span> temp <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-en">getAppDir</span>();
<span class="pl-en">setState</span>(() {
_appdir <span class="pl-k">=</span> temp;
});
}
<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">Scaffold</span>(
appBar<span class="pl-k">:</span> <span class="pl-c1">AppBar</span>(
title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(widget.title),
),
body<span class="pl-k">:</span> <span class="pl-c1">Center</span>(
child<span class="pl-k">:</span> <span class="pl-c1">Column</span>(
mainAxisAlignment<span class="pl-k">:</span> <span class="pl-c1">MainAxisAlignment</span>.center,
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">Text</span>(_appdir),
],
),
),
);
}
}</pre></div>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ +60 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[ +107 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ +1 ms] origin/beta
[ ] executing: [C:\flutter\] git rev-parse --abbrev-ref HEAD
[ +51 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ ] executing: [C:\flutter\] git ls-remote --get-url origin
[ +51 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] executing: [C:\flutter\] git log -n 1 --pretty=format:%H
[ +53 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] d8cbb80206db06d151206f8b599b7dde5a386a2d
[ ] executing: [C:\flutter\] git log -n 1 --pretty=format:%ar
[ +50 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 2 weeks ago
[ ] executing: [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[ +57 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v0.10.2-0-gd8cbb8020
[ +212 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb devices -l
[ +27 ms] Exit code 0 from: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb devices -l
[ ] List of devices attached
emulator-5554 device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:3
[ +289 ms] Found plugin path_provider at C:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-0.4.1\
[ +102 ms] Found plugin path_provider at C:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-0.4.1\
[ +92 ms] C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell getprop
[ +81 ms] ro.hardware = ranchu
[ +837 ms] Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
[ +33 ms] Using gradle from C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\gradlew.bat.
[ +9 ms] executing: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\gradlew.bat -v
[+1035 ms]
------------------------------------------------------------
Gradle 4.10.2
------------------------------------------------------------
Build time: 2018-09-19 18:10:15 UTC
Revision: b4d8d5d170bb4ba516e88d7fe5647e2323d791dd
Kotlin DSL: 1.0-rc-6
Kotlin: 1.2.61
Groovy: 2.4.15
Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM: 1.8.0_191 (Oracle Corporation 25.191-b12)
OS: Windows 10 10.0 amd64
Resolving dependencies...
[ +1 ms] executing: [C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\] C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\gradlew.bat app:properties
[+2064 ms]
> Task :app:properties
------------------------------------------------------------
Project :app
------------------------------------------------------------
INTERNAL__CHECKED_MINIMUM_PLUGIN_VERSIONS: true
allprojects: [project ':app']
android: com.android.build.gradle.internal.dsl.BaseAppModuleExtension_Decorated@2fdbf65b
androidDependencies: task ':app:androidDependencies'
ant: org.gradle.api.internal.project.DefaultAntBuilder@661618ee
antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@5e12a09a
archivesBaseName: app
artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@444662a9
asDynamicObject: DynamicObject for project ':app'
assemble: task ':app:assemble'
assembleAndroidTest: task ':app:assembleAndroidTest'
assembleDebug: task ':app:assembleDebug'
assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest'
assembleDebugUnitTest: task ':app:assembleDebugUnitTest'
assembleDynamicProfile: task ':app:assembleDynamicProfile'
assembleDynamicProfileUnitTest: task ':app:assembleDynamicProfileUnitTest'
assembleDynamicRelease: task ':app:assembleDynamicRelease'
assembleDynamicReleaseUnitTest: task ':app:assembleDynamicReleaseUnitTest'
assembleProfile: task ':app:assembleProfile'
assembleProfileUnitTest: task ':app:assembleProfileUnitTest'
assembleRelease: task ':app:assembleRelease'
assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest'
baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@34df3d54
buildDebugPreBundle: task ':app:buildDebugPreBundle'
buildDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app
buildDynamicProfilePreBundle: task ':app:buildDynamicProfilePreBundle'
buildDynamicReleasePreBundle: task ':app:buildDynamicReleasePreBundle'
buildFile: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\app\build.gradle
buildOutputs: BaseVariantOutput container
buildPath: :
buildProfilePreBundle: task ':app:buildProfilePreBundle'
buildReleasePreBundle: task ':app:buildReleasePreBundle'
buildScriptSource: org.gradle.groovy.scripts.TextResourceScriptSource@62588249
buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@2905e8e8
bundle: task ':app:bundle'
bundleDebug: task ':app:bundleDebug'
bundleDebugAndroidTestResources: task ':app:bundleDebugAndroidTestResources'
bundleDebugResources: task ':app:bundleDebugResources'
bundleDynamicProfile: task ':app:bundleDynamicProfile'
bundleDynamicProfileResources: task ':app:bundleDynamicProfileResources'
bundleDynamicRelease: task ':app:bundleDynamicRelease'
bundleDynamicReleaseResources: task ':app:bundleDynamicReleaseResources'
bundleProfile: task ':app:bundleProfile'
bundleProfileResources: task ':app:bundleProfileResources'
bundleRelease: task ':app:bundleRelease'
bundleReleaseResources: task ':app:bundleReleaseResources'
check: task ':app:check'
checkDebugAndroidTestClasspath: task ':app:checkDebugAndroidTestClasspath'
checkDebugClasspath: task ':app:checkDebugClasspath'
checkDebugLibraries: task ':app:checkDebugLibraries'
checkDebugManifest: task ':app:checkDebugManifest'
checkDynamicProfileClasspath: task ':app:checkDynamicProfileClasspath'
checkDynamicProfileLibraries: task ':app:checkDynamicProfileLibraries'
checkDynamicProfileManifest: task ':app:checkDynamicProfileManifest'
checkDynamicReleaseClasspath: task ':app:checkDynamicReleaseClasspath'
checkDynamicReleaseLibraries: task ':app:checkDynamicReleaseLibraries'
checkDynamicReleaseManifest: task ':app:checkDynamicReleaseManifest'
checkProfileClasspath: task ':app:checkProfileClasspath'
checkProfileLibraries: task ':app:checkProfileLibraries'
checkProfileManifest: task ':app:checkProfileManifest'
checkReleaseClasspath: task ':app:checkReleaseClasspath'
checkReleaseLibraries: task ':app:checkReleaseLibraries'
checkReleaseManifest: task ':app:checkReleaseManifest'
childProjects: {}
class: class org.gradle.api.internal.project.DefaultProject_Decorated
classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@5ea1944b
cleanBuildCache: task ':app:cleanBuildCache'
compileDebugAidl: task ':app:compileDebugAidl'
compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl'
compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac'
compileDebugAndroidTestKotlin: task ':app:compileDebugAndroidTestKotlin'
compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk'
compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript'
compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders'
compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources'
compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac'
compileDebugKotlin: task ':app:compileDebugKotlin'
compileDebugNdk: task ':app:compileDebugNdk'
compileDebugRenderscript: task ':app:compileDebugRenderscript'
compileDebugShaders: task ':app:compileDebugShaders'
compileDebugSources: task ':app:compileDebugSources'
compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac'
compileDebugUnitTestKotlin: task ':app:compileDebugUnitTestKotlin'
compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources'
compileDynamicProfileAidl: task ':app:compileDynamicProfileAidl'
compileDynamicProfileJavaWithJavac: task ':app:compileDynamicProfileJavaWithJavac'
compileDynamicProfileKotlin: task ':app:compileDynamicProfileKotlin'
compileDynamicProfileNdk: task ':app:compileDynamicProfileNdk'
compileDynamicProfileRenderscript: task ':app:compileDynamicProfileRenderscript'
compileDynamicProfileShaders: task ':app:compileDynamicProfileShaders'
compileDynamicProfileSources: task ':app:compileDynamicProfileSources'
compileDynamicProfileUnitTestJavaWithJavac: task ':app:compileDynamicProfileUnitTestJavaWithJavac'
compileDynamicProfileUnitTestKotlin: task ':app:compileDynamicProfileUnitTestKotlin'
compileDynamicProfileUnitTestSources: task ':app:compileDynamicProfileUnitTestSources'
compileDynamicReleaseAidl: task ':app:compileDynamicReleaseAidl'
compileDynamicReleaseJavaWithJavac: task ':app:compileDynamicReleaseJavaWithJavac'
compileDynamicReleaseKotlin: task ':app:compileDynamicReleaseKotlin'
compileDynamicReleaseNdk: task ':app:compileDynamicReleaseNdk'
compileDynamicReleaseRenderscript: task ':app:compileDynamicReleaseRenderscript'
compileDynamicReleaseShaders: task ':app:compileDynamicReleaseShaders'
compileDynamicReleaseSources: task ':app:compileDynamicReleaseSources'
compileDynamicReleaseUnitTestJavaWithJavac: task ':app:compileDynamicReleaseUnitTestJavaWithJavac'
compileDynamicReleaseUnitTestKotlin: task ':app:compileDynamicReleaseUnitTestKotlin'
compileDynamicReleaseUnitTestSources: task ':app:compileDynamicReleaseUnitTestSources'
compileLint: task ':app:compileLint'
compileProfileAidl: task ':app:compileProfileAidl'
compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac'
compileProfileKotlin: task ':app:compileProfileKotlin'
compileProfileNdk: task ':app:compileProfileNdk'
compileProfileRenderscript: task ':app:compileProfileRenderscript'
compileProfileShaders: task ':app:compileProfileShaders'
compileProfileSources: task ':app:compileProfileSources'
compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac'
compileProfileUnitTestKotlin: task ':app:compileProfileUnitTestKotlin'
compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources'
compileReleaseAidl: task ':app:compileReleaseAidl'
compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac'
compileReleaseKotlin: task ':app:compileReleaseKotlin'
compileReleaseNdk: task ':app:compileReleaseNdk'
compileReleaseRenderscript: task ':app:compileReleaseRenderscript'
compileReleaseShaders: task ':app:compileReleaseShaders'
compileReleaseSources: task ':app:compileReleaseSources'
compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac'
compileReleaseUnitTestKotlin: task ':app:compileReleaseUnitTestKotlin'
compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources'
components: SoftwareComponentInternal set
configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@13592756
configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@35b5a5be
configurations: configuration container
connectedAndroidTest: task ':app:connectedAndroidTest'
connectedCheck: task ':app:connectedCheck'
connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest'
consumeConfigAttr: task ':app:consumeConfigAttr'
convention: org.gradle.api.internal.plugins.DefaultConvention@33f15948
copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
copyFlutterAssetsDynamicProfile: task ':app:copyFlutterAssetsDynamicProfile'
copyFlutterAssetsDynamicRelease: task ':app:copyFlutterAssetsDynamicRelease'
copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile'
copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease'
createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests'
createDynamicProfileCompatibleScreenManifests: task ':app:createDynamicProfileCompatibleScreenManifests'
createDynamicReleaseCompatibleScreenManifests: task ':app:createDynamicReleaseCompatibleScreenManifests'
createMockableJar: task ':app:createMockableJar'
createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests'
createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests'
defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@612080b1
defaultTasks: []
deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@3b997854
dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@2319a2cc
dependencyLocking: org.gradle.internal.locking.DefaultDependencyLockingHandler_Decorated@1a1b94fe
depth: 1
description: null
deviceAndroidTest: task ':app:deviceAndroidTest'
deviceCheck: task ':app:deviceCheck'
displayName: project ':app'
distsDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\distributions
distsDirName: distributions
docsDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\docs
docsDirName: docs
ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@7f5baa04
extensions: org.gradle.api.internal.plugins.DefaultConvention@33f15948
extractApksForDebug: task ':app:extractApksForDebug'
extractApksForDynamicProfile: task ':app:extractApksForDynamicProfile'
extractApksForDynamicRelease: task ':app:extractApksForDynamicRelease'
extractApksForProfile: task ':app:extractApksForProfile'
extractApksForRelease: task ':app:extractApksForRelease'
extractProguardFiles: task ':app:extractProguardFiles'
fileOperations: org.gradle.api.internal.file.DefaultFileOperations@f703663
fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@6111ea83
flutter: FlutterExtension_Decorated@27eb2e3b
flutterBuildDebug: task ':app:flutterBuildDebug'
flutterBuildDynamicProfile: task ':app:flutterBuildDynamicProfile'
flutterBuildDynamicRelease: task ':app:flutterBuildDynamicRelease'
flutterBuildProfile: task ':app:flutterBuildProfile'
flutterBuildRelease: task ':app:flutterBuildRelease'
flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets'
generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig'
generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues'
generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources'
generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources'
generateDebugAssets: task ':app:generateDebugAssets'
generateDebugBuildConfig: task ':app:generateDebugBuildConfig'
generateDebugFeatureMetadata: task ':app:generateDebugFeatureMetadata'
generateDebugFeatureTransitiveDeps: task ':app:generateDebugFeatureTransitiveDeps'
generateDebugResValues: task ':app:generateDebugResValues'
generateDebugResources: task ':app:generateDebugResources'
generateDebugSources: task ':app:generateDebugSources'
generateDebugUnitTestAssets: task ':app:generateDebugUnitTestAssets'
generateDebugUnitTestResources: task ':app:generateDebugUnitTestResources'
generateDebugUnitTestSources: task ':app:generateDebugUnitTestSources'
generateDynamicProfileAssets: task ':app:generateDynamicProfileAssets'
generateDynamicProfileBuildConfig: task ':app:generateDynamicProfileBuildConfig'
generateDynamicProfileFeatureMetadata: task ':app:generateDynamicProfileFeatureMetadata'
generateDynamicProfileFeatureTransitiveDeps: task ':app:generateDynamicProfileFeatureTransitiveDeps'
generateDynamicProfileResValues: task ':app:generateDynamicProfileResValues'
generateDynamicProfileResources: task ':app:generateDynamicProfileResources'
generateDynamicProfileSources: task ':app:generateDynamicProfileSources'
generateDynamicProfileUnitTestAssets: task ':app:generateDynamicProfileUnitTestAssets'
generateDynamicProfileUnitTestResources: task ':app:generateDynamicProfileUnitTestResources'
generateDynamicProfileUnitTestSources: task ':app:generateDynamicProfileUnitTestSources'
generateDynamicReleaseAssets: task ':app:generateDynamicReleaseAssets'
generateDynamicReleaseBuildConfig: task ':app:generateDynamicReleaseBuildConfig'
generateDynamicReleaseFeatureMetadata: task ':app:generateDynamicReleaseFeatureMetadata'
generateDynamicReleaseFeatureTransitiveDeps: task ':app:generateDynamicReleaseFeatureTransitiveDeps'
generateDynamicReleaseResValues: task ':app:generateDynamicReleaseResValues'
generateDynamicReleaseResources: task ':app:generateDynamicReleaseResources'
generateDynamicReleaseSources: task ':app:generateDynamicReleaseSources'
generateDynamicReleaseUnitTestAssets: task ':app:generateDynamicReleaseUnitTestAssets'
generateDynamicReleaseUnitTestResources: task ':app:generateDynamicReleaseUnitTestResources'
generateDynamicReleaseUnitTestSources: task ':app:generateDynamicReleaseUnitTestSources'
generateProfileAssets: task ':app:generateProfileAssets'
generateProfileBuildConfig: task ':app:generateProfileBuildConfig'
generateProfileFeatureMetadata: task ':app:generateProfileFeatureMetadata'
generateProfileFeatureTransitiveDeps: task ':app:generateProfileFeatureTransitiveDeps'
generateProfileResValues: task ':app:generateProfileResValues'
generateProfileResources: task ':app:generateProfileResources'
generateProfileSources: task ':app:generateProfileSources'
generateProfileUnitTestAssets: task ':app:generateProfileUnitTestAssets'
generateProfileUnitTestResources: task ':app:generateProfileUnitTestResources'
generateProfileUnitTestSources: task ':app:generateProfileUnitTestSources'
generateReleaseAssets: task ':app:generateReleaseAssets'
generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig'
generateReleaseFeatureMetadata: task ':app:generateReleaseFeatureMetadata'
generateReleaseFeatureTransitiveDeps: task ':app:generateReleaseFeatureTransitiveDeps'
generateReleaseResValues: task ':app:generateReleaseResValues'
generateReleaseResources: task ':app:generateReleaseResources'
generateReleaseSources: task ':app:generateReleaseSources'
generateReleaseUnitTestAssets: task ':app:generateReleaseUnitTestAssets'
generateReleaseUnitTestResources: task ':app:generateReleaseUnitTestResources'
generateReleaseUnitTestSources: task ':app:generateReleaseUnitTestSources'
gradle: build 'android'
group: android
identityPath: :app
inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@5c2bb48
installDebug: task ':app:installDebug'
installDebugAndroidTest: task ':app:installDebugAndroidTest'
installDynamicProfile: task ':app:installDynamicProfile'
installDynamicRelease: task ':app:installDynamicRelease'
installProfile: task ':app:installProfile'
installRelease: task ':app:installRelease'
java: org.gradle.api.plugins.internal.DefaultJavaPluginExtension_Decorated@b0f46bd
javaPreCompileDebug: task ':app:javaPreCompileDebug'
javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest'
javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest'
javaPreCompileDynamicProfile: task ':app:javaPreCompileDynamicProfile'
javaPreCompileDynamicProfileUnitTest: task ':app:javaPreCompileDynamicProfileUnitTest'
javaPreCompileDynamicRelease: task ':app:javaPreCompileDynamicRelease'
javaPreCompileDynamicReleaseUnitTest: task ':app:javaPreCompileDynamicReleaseUnitTest'
javaPreCompileProfile: task ':app:javaPreCompileProfile'
javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest'
javaPreCompileRelease: task ':app:javaPreCompileRelease'
javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest'
kotlin: org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension_Decorated@6524e0ad
kotlin_version: 1.2.71
layout: org.gradle.api.internal.file.DefaultProjectLayout@1b4090c4
libsDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\libs
libsDirName: libs
lint: task ':app:lint'
lintDebug: task ':app:lintDebug'
lintDynamicProfile: task ':app:lintDynamicProfile'
lintDynamicRelease: task ':app:lintDynamicRelease'
lintFix: task ':app:lintFix'
lintProfile: task ':app:lintProfile'
lintRelease: task ':app:lintRelease'
lintVitalRelease: task ':app:lintVitalRelease'
listenerBuildOperationDecorator: org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator@bc8701f
logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@78a7b26b
logging: org.gradle.internal.logging.services.DefaultLoggingManager@7a03f575
mainApkListPersistenceDebug: task ':app:mainApkListPersistenceDebug'
mainApkListPersistenceDebugAndroidTest: task ':app:mainApkListPersistenceDebugAndroidTest'
mainApkListPersistenceDynamicProfile: task ':app:mainApkListPersistenceDynamicProfile'
mainApkListPersistenceDynamicRelease: task ':app:mainApkListPersistenceDynamicRelease'
mainApkListPersistenceProfile: task ':app:mainApkListPersistenceProfile'
mainApkListPersistenceRelease: task ':app:mainApkListPersistenceRelease'
makeApkFromBundleForDebug: task ':app:makeApkFromBundleForDebug'
makeApkFromBundleForDynamicProfile: task ':app:makeApkFromBundleForDynamicProfile'
makeApkFromBundleForDynamicRelease: task ':app:makeApkFromBundleForDynamicRelease'
makeApkFromBundleForProfile: task ':app:makeApkFromBundleForProfile'
makeApkFromBundleForRelease: task ':app:makeApkFromBundleForRelease'
mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets'
mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders'
mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources'
mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders'
mergeDebugAssets: task ':app:mergeDebugAssets'
mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders'
mergeDebugResources: task ':app:mergeDebugResources'
mergeDebugShaders: task ':app:mergeDebugShaders'
mergeDynamicProfileAssets: task ':app:mergeDynamicProfileAssets'
mergeDynamicProfileJniLibFolders: task ':app:mergeDynamicProfileJniLibFolders'
mergeDynamicProfileResources: task ':app:mergeDynamicProfileResources'
mergeDynamicProfileShaders: task ':app:mergeDynamicProfileShaders'
mergeDynamicReleaseAssets: task ':app:mergeDynamicReleaseAssets'
mergeDynamicReleaseJniLibFolders: task ':app:mergeDynamicReleaseJniLibFolders'
mergeDynamicReleaseResources: task ':app:mergeDynamicReleaseResources'
mergeDynamicReleaseShaders: task ':app:mergeDynamicReleaseShaders'
mergeProfileAssets: task ':app:mergeProfileAssets'
mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders'
mergeProfileResources: task ':app:mergeProfileResources'
mergeProfileShaders: task ':app:mergeProfileShaders'
mergeReleaseAssets: task ':app:mergeReleaseAssets'
mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders'
mergeReleaseResources: task ':app:mergeReleaseResources'
mergeReleaseShaders: task ':app:mergeReleaseShaders'
modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@38e05310
modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@73a95201
module: org.gradle.api.internal.artifacts.ProjectBackedModule@2476fad7
name: app
normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@27393278
objects: org.gradle.api.internal.model.DefaultObjectFactory@6fb9e608
org.gradle.jvmargs: -Xmx1536M
packageAppClassesDebug: task ':app:packageAppClassesDebug'
packageAppClassesDebugAndroidTest: task ':app:packageAppClassesDebugAndroidTest'
packageAppClassesDebugUnitTest: task ':app:packageAppClassesDebugUnitTest'
packageAppClassesDynamicProfile: task ':app:packageAppClassesDynamicProfile'
packageAppClassesDynamicProfileUnitTest: task ':app:packageAppClassesDynamicProfileUnitTest'
packageAppClassesDynamicRelease: task ':app:packageAppClassesDynamicRelease'
packageAppClassesDynamicReleaseUnitTest: task ':app:packageAppClassesDynamicReleaseUnitTest'
packageAppClassesProfile: task ':app:packageAppClassesProfile'
packageAppClassesProfileUnitTest: task ':app:packageAppClassesProfileUnitTest'
packageAppClassesRelease: task ':app:packageAppClassesRelease'
packageAppClassesReleaseUnitTest: task ':app:packageAppClassesReleaseUnitTest'
packageDebug: task ':app:packageDebug'
packageDebugAndroidTest: task ':app:packageDebugAndroidTest'
packageDebugBundle: task ':app:packageDebugBundle'
packageDebugUniversalApk: task ':app:packageDebugUniversalApk'
packageDynamicProfile: task ':app:packageDynamicProfile'
packageDynamicProfileBundle: task ':app:packageDynamicProfileBundle'
packageDynamicProfileUniversalApk: task ':app:packageDynamicProfileUniversalApk'
packageDynamicRelease: task ':app:packageDynamicRelease'
packageDynamicReleaseBundle: task ':app:packageDynamicReleaseBundle'
packageDynamicReleaseUniversalApk: task ':app:packageDynamicReleaseUniversalApk'
packageProfile: task ':app:packageProfile'
packageProfileBundle: task ':app:packageProfileBundle'
packageProfileUniversalApk: task ':app:packageProfileUniversalApk'
packageRelease: task ':app:packageRelease'
packageReleaseBundle: task ':app:packageReleaseBundle'
packageReleaseUniversalApk: task ':app:packageReleaseUniversalApk'
parent: root project 'android'
parentIdentifier: root project 'android'
path: :app
pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@a741ed7
plugins: [org.gradle.api.plugins.HelpTasksPlugin@30b6b45a, com.android.build.gradle.api.AndroidBasePlugin@5e72fac6, org.gradle.language.base.plugins.LifecycleBasePlugin@7e5bcea6, org.gradle.api.plugins.BasePlugin@5473e51c, org.gradle.api.plugins.ReportingBasePlugin@51628fac, org.gradle.api.plugins.JavaBasePlugin@188ffb8c, com.android.build.gradle.AppPlugin@380138c5, org.jetbrains.kotlin.gradle.plugin.KotlinAndroidPluginWrapper@731161dc, FlutterPlugin@36cb9ffd]
preBuild: task ':app:preBuild'
preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild'
preDebugBuild: task ':app:preDebugBuild'
preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild'
preDynamicProfileBuild: task ':app:preDynamicProfileBuild'
preDynamicProfileUnitTestBuild: task ':app:preDynamicProfileUnitTestBuild'
preDynamicReleaseBuild: task ':app:preDynamicReleaseBuild'
preDynamicReleaseUnitTestBuild: task ':app:preDynamicReleaseUnitTestBuild'
preProfileBuild: task ':app:preProfileBuild'
preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild'
preReleaseBuild: task ':app:preReleaseBuild'
preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild'
prepareLintJar: task ':app:prepareLintJar'
processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes'
processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest'
processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources'
processDebugJavaRes: task ':app:processDebugJavaRes'
processDebugManifest: task ':app:processDebugManifest'
processDebugResources: task ':app:processDebugResources'
processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes'
processDynamicProfileJavaRes: task ':app:processDynamicProfileJavaRes'
processDynamicProfileManifest: task ':app:processDynamicProfileManifest'
processDynamicProfileResources: task ':app:processDynamicProfileResources'
processDynamicProfileUnitTestJavaRes: task ':app:processDynamicProfileUnitTestJavaRes'
processDynamicReleaseJavaRes: task ':app:processDynamicReleaseJavaRes'
processDynamicReleaseManifest: task ':app:processDynamicReleaseManifest'
processDynamicReleaseResources: task ':app:processDynamicReleaseResources'
processDynamicReleaseUnitTestJavaRes: task ':app:processDynamicReleaseUnitTestJavaRes'
processOperations: org.gradle.api.internal.file.DefaultFileOperations@f703663
processProfileJavaRes: task ':app:processProfileJavaRes'
processProfileManifest: task ':app:processProfileManifest'
processProfileResources: task ':app:processProfileResources'
processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes'
processReleaseJavaRes: task ':app:processReleaseJavaRes'
processReleaseManifest: task ':app:processReleaseManifest'
processReleaseResources: task ':app:processReleaseResources'
processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes'
project: project ':app'
projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@517f4133
projectDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\app
projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@60899cc9
projectPath: :app
projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@186e0e85
properties: {...}
providers: org.gradle.api.internal.provider.DefaultProviderFactory@ea5418f
reportBuildArtifactsDebug: task ':app:reportBuildArtifactsDebug'
reportBuildArtifactsDynamicProfile: task ':app:reportBuildArtifactsDynamicProfile'
reportBuildArtifactsDynamicRelease: task ':app:reportBuildArtifactsDynamicRelease'
reportBuildArtifactsProfile: task ':app:reportBuildArtifactsProfile'
reportBuildArtifactsRelease: task ':app:reportBuildArtifactsRelease'
reportSourceSetTransformAndroidTest: task ':app:reportSourceSetTransformAndroidTest'
reportSourceSetTransformAndroidTestDebug: task ':app:reportSourceSetTransformAndroidTestDebug'
reportSourceSetTransformDebug: task ':app:reportSourceSetTransformDebug'
reportSourceSetTransformDynamicProfile: task ':app:reportSourceSetTransformDynamicProfile'
reportSourceSetTransformDynamicRelease: task ':app:reportSourceSetTransformDynamicRelease'
reportSourceSetTransformMain: task ':app:reportSourceSetTransformMain'
reportSourceSetTransformProfile: task ':app:reportSourceSetTransformProfile'
reportSourceSetTransformRelease: task ':app:reportSourceSetTransformRelease'
reportSourceSetTransformTest: task ':app:reportSourceSetTransformTest'
reportSourceSetTransformTestDebug: task ':app:reportSourceSetTransformTestDebug'
reportSourceSetTransformTestDynamicProfile: task ':app:reportSourceSetTransformTestDynamicProfile'
reportSourceSetTransformTestDynamicRelease: task ':app:reportSourceSetTransformTestDynamicRelease'
reportSourceSetTransformTestProfile: task ':app:reportSourceSetTransformTestProfile'
reportSourceSetTransformTestRelease: task ':app:reportSourceSetTransformTestRelease'
reporting: org.gradle.api.reporting.ReportingExtension_Decorated@72b05e02
reportsDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\reports
repositories: repository container
resolveConfigAttr: task ':app:resolveConfigAttr'
resourceLoader: org.gradle.internal.resource.transfer.DefaultUriTextResourceLoader@596dffbe
resources: org.gradle.api.internal.resources.DefaultResourceHandler@752e5f8e
rootDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android
rootProject: root project 'android'
script: false
scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@1ddc7d88
scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@6d6c707f
serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@5b4af263
services: ProjectScopeServices
signingReport: task ':app:signingReport'
sourceCompatibility: 1.8
sourceSets: SourceSet container
splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug'
splitsDiscoveryTaskDynamicProfile: task ':app:splitsDiscoveryTaskDynamicProfile'
splitsDiscoveryTaskDynamicRelease: task ':app:splitsDiscoveryTaskDynamicRelease'
splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile'
splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease'
standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@7a03f575
state: project state 'EXECUTED'
status: integration
subprojects: []
targetCompatibility: 1.8
tasks: task set
test: task ':app:test'
testDebugUnitTest: task ':app:testDebugUnitTest'
testDynamicProfileUnitTest: task ':app:testDynamicProfileUnitTest'
testDynamicReleaseUnitTest: task ':app:testDynamicReleaseUnitTest'
testProfileUnitTest: task ':app:testProfileUnitTest'
testReleaseUnitTest: task ':app:testReleaseUnitTest'
testReportDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\reports\tests
testReportDirName: tests
testResultsDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\test-results
testResultsDirName: test-results
transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug'
transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest'
transformClassesWithDexBuilderForDynamicProfile: task ':app:transformClassesWithDexBuilderForDynamicProfile'
transformClassesWithDexBuilderForDynamicRelease: task ':app:transformClassesWithDexBuilderForDynamicRelease'
transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile'
transformClassesWithDexBuilderForRelease: task ':app:transformClassesWithDexBuilderForRelease'
transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug'
transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest'
transformDexArchiveWithDexMergerForDynamicProfile: task ':app:transformDexArchiveWithDexMergerForDynamicProfile'
transformDexArchiveWithDexMergerForDynamicRelease: task ':app:transformDexArchiveWithDexMergerForDynamicRelease'
transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile'
transformDexArchiveWithDexMergerForRelease: task ':app:transformDexArchiveWithDexMergerForRelease'
transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'
transformDexArchiveWithExternalLibsDexMergerForDynamicProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicProfile'
transformDexArchiveWithExternalLibsDexMergerForDynamicRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicRelease'
transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile'
transformDexArchiveWithExternalLibsDexMergerForRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForRelease'
transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug'
transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest'
transformNativeLibsWithMergeJniLibsForDynamicProfile: task ':app:transformNativeLibsWithMergeJniLibsForDynamicProfile'
transformNativeLibsWithMergeJniLibsForDynamicRelease: task ':app:transformNativeLibsWithMergeJniLibsForDynamicRelease'
transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile'
transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease'
transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug'
transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest'
transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest'
transformResourcesWithMergeJavaResForDynamicProfile: task ':app:transformResourcesWithMergeJavaResForDynamicProfile'
transformResourcesWithMergeJavaResForDynamicProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicProfileUnitTest'
transformResourcesWithMergeJavaResForDynamicRelease: task ':app:transformResourcesWithMergeJavaResForDynamicRelease'
transformResourcesWithMergeJavaResForDynamicReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicReleaseUnitTest'
transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile'
transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest'
transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease'
transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest'
uninstallAll: task ':app:uninstallAll'
uninstallDebug: task ':app:uninstallDebug'
uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest'
uninstallDynamicProfile: task ':app:uninstallDynamicProfile'
uninstallDynamicRelease: task ':app:uninstallDynamicRelease'
uninstallProfile: task ':app:uninstallProfile'
uninstallRelease: task ':app:uninstallRelease'
validateSigningDebug: task ':app:validateSigningDebug'
validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest'
validateSigningDynamicProfile: task ':app:validateSigningDynamicProfile'
validateSigningDynamicRelease: task ':app:validateSigningDynamicRelease'
validateSigningProfile: task ':app:validateSigningProfile'
validateSigningRelease: task ':app:validateSigningRelease'
version: unspecified
writeDebugApplicationId: task ':app:writeDebugApplicationId'
writeDynamicProfileApplicationId: task ':app:writeDynamicProfileApplicationId'
writeDynamicReleaseApplicationId: task ':app:writeDynamicReleaseApplicationId'
writeProfileApplicationId: task ':app:writeProfileApplicationId'
writeReleaseApplicationId: task ':app:writeReleaseApplicationId'
1 actionable task: 1 executed
[ +7 ms] executing: [C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\] C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\gradlew.bat app:tasks --all
[+2044 ms]
> Task :app:tasks
------------------------------------------------------------
All tasks runnable from project :app
------------------------------------------------------------
Android tasks
-------------
androidDependencies - Displays the Android dependencies of the project.
signingReport - Displays the signing info for each variant.
sourceSets - Prints out all the source sets defined in this project.
Build tasks
-----------
assemble - Assembles all variants of all applications and secondary packages.
assembleAndroidTest - Assembles all the Test applications.
assembleDebug - Assembles all Debug builds.
assembleDynamicProfile - Assembles all DynamicProfile builds.
assembleDynamicRelease - Assembles all DynamicRelease builds.
assembleProfile - Assembles all Profile builds.
assembleRelease - Assembles all Release builds.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
bundleDebug - Creates all Debug bundles.
bundleDynamicProfile - Creates all DynamicProfile bundles.
bundleDynamicRelease - Creates all DynamicRelease bundles.
bundleProfile - Creates all Profile bundles.
bundleRelease - Creates all Release bundles.
clean - Deletes the build directory.
cleanBuildCache - Deletes the build cache directory.
compileDebugAndroidTestSources
compileDebugSources
compileDebugUnitTestSources
compileDynamicProfileSources
compileDynamicProfileUnitTestSources
compileDynamicReleaseSources
compileDynamicReleaseUnitTestSources
compileProfileSources
compileProfileUnitTestSources
compileReleaseSources
compileReleaseUnitTestSources
Cleanup tasks
-------------
lintFix - Runs lint on all variants and applies any safe suggestions to the source code.
Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in project ':app'.
components - Displays the components produced by project ':app'. [incubating]
dependencies - Displays all dependencies declared in project ':app'.
dependencyInsight - Displays the insight into a specific dependency in project ':app'.
dependentComponents - Displays the dependent components of components in project ':app'. [incubating]
help - Displays a help message.
model - Displays the configuration model of project ':app'. [incubating]
projects - Displays the sub-projects of project ':app'.
properties - Displays the properties of project ':app'.
tasks - Displays the tasks runnable from project ':app'.
Install tasks
-------------
installDebug - Installs the Debug build.
installDebugAndroidTest - Installs the android (on device) tests for the Debug build.
installDynamicProfile - Installs the DynamicProfile build.
installDynamicRelease - Installs the DynamicRelease build.
installProfile - Installs the Profile build.
installRelease - Installs the Release build.
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build.
uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.
uninstallDynamicProfile - Uninstalls the DynamicProfile build.
uninstallDynamicRelease - Uninstalls the DynamicRelease build.
uninstallProfile - Uninstalls the Profile build.
uninstallRelease - Uninstalls the Release build.
Verification tasks
------------------
check - Runs all checks.
connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices.
connectedCheck - Runs all device checks on currently connected devices.
connectedDebugAndroidTest - Installs and runs the tests for debug on connected devices.
deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers.
deviceCheck - Runs all device checks using Device Providers and Test Servers.
lint - Runs lint on all variants.
lintDebug - Runs lint on the Debug build.
lintDynamicProfile - Runs lint on the DynamicProfile build.
lintDynamicRelease - Runs lint on the DynamicRelease build.
lintProfile - Runs lint on the Profile build.
lintRelease - Runs lint on the Release build.
lintVitalRelease - Runs lint on just the fatal issues in the release build.
test - Run unit tests for all variants.
testDebugUnitTest - Run unit tests for the debug build.
testDynamicProfileUnitTest - Run unit tests for the dynamicProfile build.
testDynamicReleaseUnitTest - Run unit tests for the dynamicRelease build.
testProfileUnitTest - Run unit tests for the profile build.
testReleaseUnitTest - Run unit tests for the release build.
Other tasks
-----------
assembleDebugAndroidTest
assembleDebugUnitTest
assembleDynamicProfileUnitTest
assembleDynamicReleaseUnitTest
assembleProfileUnitTest
assembleReleaseUnitTest
buildDebugPreBundle
buildDynamicProfilePreBundle
buildDynamicReleasePreBundle
buildProfilePreBundle
buildReleasePreBundle
bundle
bundleDebugAndroidTestResources
bundleDebugResources
bundleDynamicProfileResources
bundleDynamicReleaseResources
bundleProfileResources
bundleReleaseResources
checkDebugAndroidTestClasspath
checkDebugClasspath
checkDebugLibraries
checkDebugManifest
checkDynamicProfileClasspath
checkDynamicProfileLibraries
checkDynamicProfileManifest
checkDynamicReleaseClasspath
checkDynamicReleaseLibraries
checkDynamicReleaseManifest
checkProfileClasspath
checkProfileLibraries
checkProfileManifest
checkReleaseClasspath
checkReleaseLibraries
checkReleaseManifest
compileDebugAidl
compileDebugAndroidTestAidl
compileDebugAndroidTestJavaWithJavac
compileDebugAndroidTestKotlin - Compiles the debugAndroidTest kotlin.
compileDebugAndroidTestNdk
compileDebugAndroidTestRenderscript
compileDebugAndroidTestShaders
compileDebugJavaWithJavac
compileDebugKotlin - Compiles the debug kotlin.
compileDebugNdk
compileDebugRenderscript
compileDebugShaders
compileDebugUnitTestJavaWithJavac
compileDebugUnitTestKotlin - Compiles the debugUnitTest kotlin.
compileDynamicProfileAidl
compileDynamicProfileJavaWithJavac
compileDynamicProfileKotlin - Compiles the dynamicProfile kotlin.
compileDynamicProfileNdk
compileDynamicProfileRenderscript
compileDynamicProfileShaders
compileDynamicProfileUnitTestJavaWithJavac
compileDynamicProfileUnitTestKotlin - Compiles the dynamicProfileUnitTest kotlin.
compileDynamicReleaseAidl
compileDynamicReleaseJavaWithJavac
compileDynamicReleaseKotlin - Compiles the dynamicRelease kotlin.
compileDynamicReleaseNdk
compileDynamicReleaseRenderscript
compileDynamicReleaseShaders
compileDynamicReleaseUnitTestJavaWithJavac
compileDynamicReleaseUnitTestKotlin - Compiles the dynamicReleaseUnitTest kotlin.
compileLint
compileProfileAidl
compileProfileJavaWithJavac
compileProfileKotlin - Compiles the profile kotlin.
compileProfileNdk
compileProfileRenderscript
compileProfileShaders
compileProfileUnitTestJavaWithJavac
compileProfileUnitTestKotlin - Compiles the profileUnitTest kotlin.
compileReleaseAidl
compileReleaseJavaWithJavac
compileReleaseKotlin - Compiles the release kotlin.
compileReleaseNdk
compileReleaseRenderscript
compileReleaseShaders
compileReleaseUnitTestJavaWithJavac
compileReleaseUnitTestKotlin - Compiles the releaseUnitTest kotlin.
consumeConfigAttr
copyFlutterAssetsDebug
copyFlutterAssetsDynamicProfile
copyFlutterAssetsDynamicRelease
copyFlutterAssetsProfile
copyFlutterAssetsRelease
createDebugCompatibleScreenManifests
createDynamicProfileCompatibleScreenManifests
createDynamicReleaseCompatibleScreenManifests
createMockableJar
createProfileCompatibleScreenManifests
createReleaseCompatibleScreenManifests
extractApksForDebug
extractApksForDynamicProfile
extractApksForDynamicRelease
extractApksForProfile
extractApksForRelease
extractProguardFiles
flutterBuildDebug
flutterBuildDynamicProfile
flutterBuildDynamicRelease
flutterBuildProfile
flutterBuildRelease
flutterBuildX86Jar
generateDebugAndroidTestAssets
generateDebugAndroidTestBuildConfig
generateDebugAndroidTestResources
generateDebugAndroidTestResValues
generateDebugAndroidTestSources
generateDebugAssets
generateDebugBuildConfig
generateDebugFeatureMetadata
generateDebugFeatureTransitiveDeps
generateDebugResources
generateDebugResValues
generateDebugSources
generateDebugUnitTestAssets
generateDebugUnitTestResources
generateDebugUnitTestSources
generateDynamicProfileAssets
generateDynamicProfileBuildConfig
generateDynamicProfileFeatureMetadata
generateDynamicProfileFeatureTransitiveDeps
generateDynamicProfileResources
generateDynamicProfileResValues
generateDynamicProfileSources
generateDynamicProfileUnitTestAssets
generateDynamicProfileUnitTestResources
generateDynamicProfileUnitTestSources
generateDynamicReleaseAssets
generateDynamicReleaseBuildConfig
generateDynamicReleaseFeatureMetadata
generateDynamicReleaseFeatureTransitiveDeps
generateDynamicReleaseResources
generateDynamicReleaseResValues
generateDynamicReleaseSources
generateDynamicReleaseUnitTestAssets
generateDynamicReleaseUnitTestResources
generateDynamicReleaseUnitTestSources
generateProfileAssets
generateProfileBuildConfig
generateProfileFeatureMetadata
generateProfileFeatureTransitiveDeps
generateProfileResources
generateProfileResValues
generateProfileSources
generateProfileUnitTestAssets
generateProfileUnitTestResources
generateProfileUnitTestSources
generateReleaseAssets
generateReleaseBuildConfig
generateReleaseFeatureMetadata
generateReleaseFeatureTransitiveDeps
generateReleaseResources
generateReleaseResValues
generateReleaseSources
generateReleaseUnitTestAssets
generateReleaseUnitTestResources
generateReleaseUnitTestSources
javaPreCompileDebug
javaPreCompileDebugAndroidTest
javaPreCompileDebugUnitTest
javaPreCompileDynamicProfile
javaPreCompileDynamicProfileUnitTest
javaPreCompileDynamicRelease
javaPreCompileDynamicReleaseUnitTest
javaPreCompileProfile
javaPreCompileProfileUnitTest
javaPreCompileRelease
javaPreCompileReleaseUnitTest
mainApkListPersistenceDebug
mainApkListPersistenceDebugAndroidTest
mainApkListPersistenceDynamicProfile
mainApkListPersistenceDynamicRelease
mainApkListPersistenceProfile
mainApkListPersistenceRelease
makeApkFromBundleForDebug
makeApkFromBundleForDynamicProfile
makeApkFromBundleForDynamicRelease
makeApkFromBundleForProfile
makeApkFromBundleForRelease
mergeDebugAndroidTestAssets
mergeDebugAndroidTestJniLibFolders
mergeDebugAndroidTestResources
mergeDebugAndroidTestShaders
mergeDebugAssets
mergeDebugJniLibFolders
mergeDebugResources
mergeDebugShaders
mergeDynamicProfileAssets
mergeDynamicProfileJniLibFolders
mergeDynamicProfileResources
mergeDynamicProfileShaders
mergeDynamicReleaseAssets
mergeDynamicReleaseJniLibFolders
mergeDynamicReleaseResources
mergeDynamicReleaseShaders
mergeProfileAssets
mergeProfileJniLibFolders
mergeProfileResources
mergeProfileShaders
mergeReleaseAssets
mergeReleaseJniLibFolders
mergeReleaseResources
mergeReleaseShaders
packageAppClassesDebug
packageAppClassesDebugAndroidTest
packageAppClassesDebugUnitTest
packageAppClassesDynamicProfile
packageAppClassesDynamicProfileUnitTest
packageAppClassesDynamicRelease
packageAppClassesDynamicReleaseUnitTest
packageAppClassesProfile
packageAppClassesProfileUnitTest
packageAppClassesRelease
packageAppClassesReleaseUnitTest
packageDebug
packageDebugAndroidTest
packageDebugBundle
packageDebugUniversalApk
packageDynamicProfile
packageDynamicProfileBundle
packageDynamicProfileUniversalApk
packageDynamicRelease
packageDynamicReleaseBundle
packageDynamicReleaseUniversalApk
packageProfile
packageProfileBundle
packageProfileUniversalApk
packageRelease
packageReleaseBundle
packageReleaseUniversalApk
preBuild
preDebugAndroidTestBuild
preDebugBuild
preDebugUnitTestBuild
preDynamicProfileBuild
preDynamicProfileUnitTestBuild
preDynamicReleaseBuild
preDynamicReleaseUnitTestBuild
prepareLintJar
preProfileBuild
preProfileUnitTestBuild
preReleaseBuild
preReleaseUnitTestBuild
processDebugAndroidTestJavaRes
processDebugAndroidTestManifest
processDebugAndroidTestResources
processDebugJavaRes
processDebugManifest
processDebugResources
processDebugUnitTestJavaRes
processDynamicProfileJavaRes
processDynamicProfileManifest
processDynamicProfileResources
processDynamicProfileUnitTestJavaRes
processDynamicReleaseJavaRes
processDynamicReleaseManifest
processDynamicReleaseResources
processDynamicReleaseUnitTestJavaRes
processProfileJavaRes
processProfileManifest
processProfileResources
processProfileUnitTestJavaRes
processReleaseJavaRes
processReleaseManifest
processReleaseResources
processReleaseUnitTestJavaRes
reportBuildArtifactsDebug
reportBuildArtifactsDynamicProfile
reportBuildArtifactsDynamicRelease
reportBuildArtifactsProfile
reportBuildArtifactsRelease
reportSourceSetTransformAndroidTest
reportSourceSetTransformAndroidTestDebug
reportSourceSetTransformDebug
reportSourceSetTransformDynamicProfile
reportSourceSetTransformDynamicRelease
reportSourceSetTransformMain
reportSourceSetTransformProfile
reportSourceSetTransformRelease
reportSourceSetTransformTest
reportSourceSetTransformTestDebug
reportSourceSetTransformTestDynamicProfile
reportSourceSetTransformTestDynamicRelease
reportSourceSetTransformTestProfile
reportSourceSetTransformTestRelease
resolveConfigAttr
splitsDiscoveryTaskDebug
splitsDiscoveryTaskDynamicProfile
splitsDiscoveryTaskDynamicRelease
splitsDiscoveryTaskProfile
splitsDiscoveryTaskRelease
transformClassesWithDexBuilderForDebug
transformClassesWithDexBuilderForDebugAndroidTest
transformClassesWithDexBuilderForDynamicProfile
transformClassesWithDexBuilderForDynamicRelease
transformClassesWithDexBuilderForProfile
transformClassesWithDexBuilderForRelease
transformDexArchiveWithDexMergerForDebug
transformDexArchiveWithDexMergerForDebugAndroidTest
transformDexArchiveWithDexMergerForDynamicProfile
transformDexArchiveWithDexMergerForDynamicRelease
transformDexArchiveWithDexMergerForProfile
transformDexArchiveWithDexMergerForRelease
transformDexArchiveWithExternalLibsDexMergerForDebug
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest
transformDexArchiveWithExternalLibsDexMergerForDynamicProfile
transformDexArchiveWithExternalLibsDexMergerForDynamicRelease
transformDexArchiveWithExternalLibsDexMergerForProfile
transformDexArchiveWithExternalLibsDexMergerForRelease
transformNativeLibsWithMergeJniLibsForDebug
transformNativeLibsWithMergeJniLibsForDebugAndroidTest
transformNativeLibsWithMergeJniLibsForDynamicProfile
transformNativeLibsWithMergeJniLibsForDynamicRelease
transformNativeLibsWithMergeJniLibsForProfile
transformNativeLibsWithMergeJniLibsForRelease
transformResourcesWithMergeJavaResForDebug
transformResourcesWithMergeJavaResForDebugAndroidTest
transformResourcesWithMergeJavaResForDebugUnitTest
transformResourcesWithMergeJavaResForDynamicProfile
transformResourcesWithMergeJavaResForDynamicProfileUnitTest
transformResourcesWithMergeJavaResForDynamicRelease
transformResourcesWithMergeJavaResForDynamicReleaseUnitTest
transformResourcesWithMergeJavaResForProfile
transformResourcesWithMergeJavaResForProfileUnitTest
transformResourcesWithMergeJavaResForRelease
transformResourcesWithMergeJavaResForReleaseUnitTest
validateSigningDebug
validateSigningDebugAndroidTest
validateSigningDynamicProfile
validateSigningDynamicRelease
validateSigningProfile
validateSigningRelease
writeDebugApplicationId
writeDynamicProfileApplicationId
writeDynamicReleaseApplicationId
writeProfileApplicationId
writeReleaseApplicationId
Rules
-----
Pattern: clean<TaskName>: Cleans the output files of a task.
Pattern: build<ConfigurationName>: Assembles the artifacts of a configuration.
Pattern: upload<ConfigurationName>: Assembles and uploads the artifacts belonging to a configuration.
1 actionable task: 1 executed
[ +12 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\build-tools\28.0.3\aapt dump xmltree C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\outputs\apk\app.apk AndroidManifest.xml
[ +14 ms] Exit code 0 from: C:\Users\Barry\AppData\Local\Android\sdk\build-tools\28.0.3\aapt dump xmltree C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\outputs\apk\app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: package="com.example.getappdocdirtest" (Raw: "com.example.getappdocdirtest")
A: platformBuildVersionCode=(type 0x10)0x1
A: platformBuildVersionName="1.0.0" (Raw: "1.0.0")
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=24)
A: android:label(0x01010001)="get_app_doc_dir_test" (Raw: "get_app_doc_dir_test")
A: android:icon(0x01010002)=@0x7f020000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
E: activity (line=29)
A: android:theme(0x01010000)=@0x7f030000
A: android:name(0x01010003)="com.example.getappdocdirtest.MainActivity" (Raw: "com.example.getappdocdirtest.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=43)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: intent-filter (line=47)
E: action (line=48)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=50)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
[ +6 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell -x logcat -v time -t 1
[ +56 ms] Exit code 0 from: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell -x logcat -v time -t 1
[ ] --------- beginning of main
11-11 18:19:00.024 D/hwcomposer( 1436): hw_composer sent 6 syncs in 60s
[ +3 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell -x logcat -v time
[ +447 ms] DependencyChecker: nothing is modified after 2018-11-11 18:08:28.000.
[ +4 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb version
[ +24 ms] Android Debug Bridge version 1.0.40
Version 4986621
Installed as C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb.EXE
[ +4 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb start-server
[ +40 ms] Building APK
Gradle task 'assembleDebug'...
[ +16 ms] executing: [C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\] C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\gradlew.bat -q -Ptarget=C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+3119 ms] calculateSha: LocalDirectory: 'C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\outputs\apk'/app.apk
[ +403 ms] Built build\app\outputs\apk\debug\app-debug.apk.
[ +1 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\build-tools\28.0.3\aapt dump xmltree C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\outputs\apk\app.apk AndroidManifest.xml
[ +12 ms] Exit code 0 from: C:\Users\Barry\AppData\Local\Android\sdk\build-tools\28.0.3\aapt dump xmltree C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\outputs\apk\app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: package="com.example.getappdocdirtest" (Raw: "com.example.getappdocdirtest")
A: platformBuildVersionCode=(type 0x10)0x1
A: platformBuildVersionName="1.0.0" (Raw: "1.0.0")
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=24)
A: android:label(0x01010001)="get_app_doc_dir_test" (Raw: "get_app_doc_dir_test")
A: android:icon(0x01010002)=@0x7f020000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
E: activity (line=29)
A: android:theme(0x01010000)=@0x7f030000
A: android:name(0x01010003)="com.example.getappdocdirtest.MainActivity" (Raw: "com.example.getappdocdirtest.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=43)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: intent-filter (line=47)
E: action (line=48)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=50)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
[ ] Stopping app 'app.apk' on Android SDK built for x86.
[ ] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell am force-stop com.example.getappdocdirtest
[ +77 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell pm list packages com.example.getappdocdirtest
[ +683 ms] package:com.example.getappdocdirtest
[ +3 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.getappdocdirtest.sha1
[ +48 ms] f0c53ee680662d6275858610e4fc6242ac29c534
[ ] Latest build already installed.
[ ] Android SDK built for x86 startApp
[ +1 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true com.example.getappdocdirtest/com.example.getappdocdirtest.MainActivity
[ +87 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.getappdocdirtest/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[ +582 ms] Observatory URL on device: http://127.0.0.1:47907/
[ +1 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 forward tcp:0 tcp:47907
[ +34 ms] 50482
[ ] Forwarded host port 50482 to device port 47907 for Observatory
[ +8 ms] Connecting to service protocol: http://127.0.0.1:50482/
[ +598 ms] Successfully connected to service protocol: http://127.0.0.1:50482/
[ +6 ms] getVM: {}
[ +22 ms] getIsolate: {isolateId: isolates/669701415}
[ +7 ms] _flutter.listViews: {isolateId: isolates/669701415}
[ +120 ms] DevFS: Creating new filesystem on the device (null)
[ ] _createDevFS: {fsName: get_app_doc_dir_test}
[ +59 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.getappdocdirtest/cache/get_app_doc_dir_testJJYAVC/get_app_doc_dir_test/)
[ +2 ms] Updating assets
Syncing files to device Android SDK built for x86...
[ +317 ms] DevFS: Starting sync from LocalDirectory: 'C:\Users\Barry\IdeaProjects\get_app_doc_dir_test'
[ ] Scanning project files
[ +9 ms] Scanning package files
[ +131 ms] Scanning asset files
[ ] Scanning for deleted files
[ +75 ms] Compiling dart to kernel with 441 updated files
[ +14 ms] C:\flutter\bin\cache\dart-sdk\bin\dart C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build\app.dill.track.dill --packages C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\.packages --track-widget-creation
[ +419 ms] I/flutter ( 1018): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
[ +11 ms] I/flutter ( 1018): The following assertion was thrown building Builder:
[ ] I/flutter ( 1018): _MyHomePageState.initState() returned a Future.
[ ] I/flutter ( 1018): State.initState() must be a void method without an `async` keyword.
[ ] I/flutter ( 1018): Rather than awaiting on asynchronous work directly inside of initState,
[ ] I/flutter ( 1018): call a separate method to do this work without awaiting it.
[ +21 ms] I/flutter ( 1018):
[ ] I/flutter ( 1018): When the exception was thrown, this was the stack:
[ +46 ms] I/flutter ( 1018): #0 StatefulElement._firstBuild.<anonymous closure> (package:flutter/src/widgets/framework.dart:3794:11)
[ +1 ms] I/flutter ( 1018): #1 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3802:8)
[ +1 ms] I/flutter ( 1018): #2 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #3 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #4 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #5 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #6 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #7 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #8 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #9 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #10 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #11 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #12 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #13 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #14 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #15 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #17 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ +1 ms] I/flutter ( 1018): #18 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ +1 ms] I/flutter ( 1018): #19 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ +1 ms] I/flutter ( 1018): #20 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #21 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #23 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #24 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #25 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #26 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #27 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #28 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #29 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #30 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #31 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #32 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ +3 ms] I/flutter ( 1018): #33 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ +2 ms] I/flutter ( 1018): #34 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #35 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #36 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #37 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #41 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #42 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #43 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #44 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #46 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #47 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #49 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #50 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #51 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #52 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #53 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #54 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #55 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #56 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #58 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #59 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #60 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #61 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #62 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #63 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #64 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #65 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #66 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #67 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #68 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #69 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #71 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #72 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #75 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #76 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #77 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #78 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #79 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #80 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ +1 ms] I/flutter ( 1018): #81 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #82 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #83 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #84 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #85 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ +2 ms] I/flutter ( 1018): #87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #88 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #89 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #90 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #91 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #92 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ +1 ms] I/flutter ( 1018): #93 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4905:32)
[ ] I/flutter ( 1018): #94 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ +1 ms] I/flutter ( 1018): #95 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #96 _TheatreElement.mount (package:flutter/src/widgets/overlay.dart:493:16)
[ ] I/flutter ( 1018): #97 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #98 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #99 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #100 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #101 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #102 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #103 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #104 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #105 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #106 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #107 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #108 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #109 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #110 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #111 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #112 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #113 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #114 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #115 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #116 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #117 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #118 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #119 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #120 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #121 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #122 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #123 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #124 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #125 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #126 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #127 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ +2 ms] I/flutter ( 1018): #128 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #129 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #130 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #131 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #132 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #133 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #134 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #135 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #136 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #137 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #138 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #139 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #140 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ +335 ms] D/ ( 1018): HostConnection::get() New Host Connection established 0x9e218780, tid 1038
[ +30 ms] D/EGL_emulation( 1018): eglMakeCurrent: 0x9e007ec0: ver 3 0 (tinfo 0x9e2032c0)
[ +48 ms] D/skia ( 1018): Program linking failed.
[ +6 ms] E/emuglGLESv2_enc( 1018): device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glLinkProgram:1441 GL error 0x501
[ +4 ms] F/libc ( 1018): /buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed
[ ] F/libc ( 1018): Fatal signal 6 (SIGABRT), code -6 in tid 1038 (1.gpu), pid 1018 (etappdocdirtest)
[ +47 ms] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[ ] Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.007/4586646:user/release-keys'
[ ] Revision: '0'
[ ] ABI: 'x86'
[ ] pid: 1018, tid: 1038, name: 1.gpu >>> com.example.getappdocdirtest <<<
[ ] signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
[ +6 ms] Abort message: '/buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed'
[ ] eax 00000000 ebx 000003fa ecx 0000040e edx 00000006
[ ] esi a8325638 edi 000003fa
[ ] xcs 00000073 xds 0000007b xes 0000007b xfs 0000003b xss 0000007b
[ ] eip aa832ac4 ebp 8b422004 esp 8b421fa8 flags 00000286
[ +17 ms] backtrace:
[ ] #00 pc 00000ac4 [vdso:aa832000] (__kernel_vsyscall+16)
[ ] #01 pc 0001edf8 /system/lib/libc.so (syscall+40)
[ ] #02 pc 0001f073 /system/lib/libc.so (abort+115)
[ ] #03 pc 0001f528 /system/lib/libc.so (__assert2+56)
[ ] #04 pc 0062ef04 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #05 pc 0062f377 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #06 pc 0062f179 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #07 pc 0062e7be /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #08 pc 0062e713 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #09 pc 00631c48 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #10 pc 00631c80 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #11 pc 007ea41a /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #12 pc 007e5d66 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #13 pc 007e747b /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #14 pc 00771588 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #15 pc 00773824 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #16 pc 007a5df1 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #17 pc 007802fd /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #18 pc 007801d0 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #19 pc 0076d297 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #20 pc 0076d7d8 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #21 pc 007fa23b /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #22 pc 007fa14b /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #23 pc 006bf399 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #24 pc 009ebcb0 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #25 pc 0069a281 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #26 pc 006a0c03 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #27 pc 006a1066 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #28 pc 006a1324 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #29 pc 006a0f15 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #30 pc 006a1256 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #31 pc 0066a615 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #32 pc 0066a560 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #33 pc 0066c6a0 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #34 pc 00014af7 /system/lib/libutils.so (android::SimpleLooperCallback::handleEvent(int, int, void*)+39)
[ ] #35 pc 00015936 /system/lib/libutils.so (android::Looper::pollInner(int)+982)
[ ] #36 pc 000154d6 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+118)
[ ] #37 pc 0000ff10 /system/lib/libandroid.so (ALooper_pollOnce+96)
[ ] #38 pc 0066c7a3 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #39 pc 00668d86 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #40 pc 0066ae7b /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #41 pc 00071445 /system/lib/libc.so (__pthread_start(void*)+53)
[ ] #42 pc 000205db /system/lib/libc.so (__start_thread+75)
[ ] #43 pc 0001ec16 /system/lib/libc.so (__bionic_clone+70)
[ +895 ms] Service protocol connection closed.
[ +1 ms] Lost connection to device.
[ +467 ms] Updating files
[ +51 ms] DevFS sync failed. Lost connection to device: SocketException: Write failed (OS Error: An established connection was aborted by the software in your host machine.
, errno = 10053), address = 127.0.0.1, port = 50496
"><pre class="notranslate"><code class="notranslate">[ +60 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[ +107 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ +1 ms] origin/beta
[ ] executing: [C:\flutter\] git rev-parse --abbrev-ref HEAD
[ +51 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ ] executing: [C:\flutter\] git ls-remote --get-url origin
[ +51 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] executing: [C:\flutter\] git log -n 1 --pretty=format:%H
[ +53 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] d8cbb80206db06d151206f8b599b7dde5a386a2d
[ ] executing: [C:\flutter\] git log -n 1 --pretty=format:%ar
[ +50 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 2 weeks ago
[ ] executing: [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[ +57 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v0.10.2-0-gd8cbb8020
[ +212 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb devices -l
[ +27 ms] Exit code 0 from: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb devices -l
[ ] List of devices attached
emulator-5554 device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:3
[ +289 ms] Found plugin path_provider at C:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-0.4.1\
[ +102 ms] Found plugin path_provider at C:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-0.4.1\
[ +92 ms] C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell getprop
[ +81 ms] ro.hardware = ranchu
[ +837 ms] Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
[ +33 ms] Using gradle from C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\gradlew.bat.
[ +9 ms] executing: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\gradlew.bat -v
[+1035 ms]
------------------------------------------------------------
Gradle 4.10.2
------------------------------------------------------------
Build time: 2018-09-19 18:10:15 UTC
Revision: b4d8d5d170bb4ba516e88d7fe5647e2323d791dd
Kotlin DSL: 1.0-rc-6
Kotlin: 1.2.61
Groovy: 2.4.15
Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM: 1.8.0_191 (Oracle Corporation 25.191-b12)
OS: Windows 10 10.0 amd64
Resolving dependencies...
[ +1 ms] executing: [C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\] C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\gradlew.bat app:properties
[+2064 ms]
> Task :app:properties
------------------------------------------------------------
Project :app
------------------------------------------------------------
INTERNAL__CHECKED_MINIMUM_PLUGIN_VERSIONS: true
allprojects: [project ':app']
android: com.android.build.gradle.internal.dsl.BaseAppModuleExtension_Decorated@2fdbf65b
androidDependencies: task ':app:androidDependencies'
ant: org.gradle.api.internal.project.DefaultAntBuilder@661618ee
antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@5e12a09a
archivesBaseName: app
artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@444662a9
asDynamicObject: DynamicObject for project ':app'
assemble: task ':app:assemble'
assembleAndroidTest: task ':app:assembleAndroidTest'
assembleDebug: task ':app:assembleDebug'
assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest'
assembleDebugUnitTest: task ':app:assembleDebugUnitTest'
assembleDynamicProfile: task ':app:assembleDynamicProfile'
assembleDynamicProfileUnitTest: task ':app:assembleDynamicProfileUnitTest'
assembleDynamicRelease: task ':app:assembleDynamicRelease'
assembleDynamicReleaseUnitTest: task ':app:assembleDynamicReleaseUnitTest'
assembleProfile: task ':app:assembleProfile'
assembleProfileUnitTest: task ':app:assembleProfileUnitTest'
assembleRelease: task ':app:assembleRelease'
assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest'
baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@34df3d54
buildDebugPreBundle: task ':app:buildDebugPreBundle'
buildDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app
buildDynamicProfilePreBundle: task ':app:buildDynamicProfilePreBundle'
buildDynamicReleasePreBundle: task ':app:buildDynamicReleasePreBundle'
buildFile: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\app\build.gradle
buildOutputs: BaseVariantOutput container
buildPath: :
buildProfilePreBundle: task ':app:buildProfilePreBundle'
buildReleasePreBundle: task ':app:buildReleasePreBundle'
buildScriptSource: org.gradle.groovy.scripts.TextResourceScriptSource@62588249
buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@2905e8e8
bundle: task ':app:bundle'
bundleDebug: task ':app:bundleDebug'
bundleDebugAndroidTestResources: task ':app:bundleDebugAndroidTestResources'
bundleDebugResources: task ':app:bundleDebugResources'
bundleDynamicProfile: task ':app:bundleDynamicProfile'
bundleDynamicProfileResources: task ':app:bundleDynamicProfileResources'
bundleDynamicRelease: task ':app:bundleDynamicRelease'
bundleDynamicReleaseResources: task ':app:bundleDynamicReleaseResources'
bundleProfile: task ':app:bundleProfile'
bundleProfileResources: task ':app:bundleProfileResources'
bundleRelease: task ':app:bundleRelease'
bundleReleaseResources: task ':app:bundleReleaseResources'
check: task ':app:check'
checkDebugAndroidTestClasspath: task ':app:checkDebugAndroidTestClasspath'
checkDebugClasspath: task ':app:checkDebugClasspath'
checkDebugLibraries: task ':app:checkDebugLibraries'
checkDebugManifest: task ':app:checkDebugManifest'
checkDynamicProfileClasspath: task ':app:checkDynamicProfileClasspath'
checkDynamicProfileLibraries: task ':app:checkDynamicProfileLibraries'
checkDynamicProfileManifest: task ':app:checkDynamicProfileManifest'
checkDynamicReleaseClasspath: task ':app:checkDynamicReleaseClasspath'
checkDynamicReleaseLibraries: task ':app:checkDynamicReleaseLibraries'
checkDynamicReleaseManifest: task ':app:checkDynamicReleaseManifest'
checkProfileClasspath: task ':app:checkProfileClasspath'
checkProfileLibraries: task ':app:checkProfileLibraries'
checkProfileManifest: task ':app:checkProfileManifest'
checkReleaseClasspath: task ':app:checkReleaseClasspath'
checkReleaseLibraries: task ':app:checkReleaseLibraries'
checkReleaseManifest: task ':app:checkReleaseManifest'
childProjects: {}
class: class org.gradle.api.internal.project.DefaultProject_Decorated
classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@5ea1944b
cleanBuildCache: task ':app:cleanBuildCache'
compileDebugAidl: task ':app:compileDebugAidl'
compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl'
compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac'
compileDebugAndroidTestKotlin: task ':app:compileDebugAndroidTestKotlin'
compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk'
compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript'
compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders'
compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources'
compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac'
compileDebugKotlin: task ':app:compileDebugKotlin'
compileDebugNdk: task ':app:compileDebugNdk'
compileDebugRenderscript: task ':app:compileDebugRenderscript'
compileDebugShaders: task ':app:compileDebugShaders'
compileDebugSources: task ':app:compileDebugSources'
compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac'
compileDebugUnitTestKotlin: task ':app:compileDebugUnitTestKotlin'
compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources'
compileDynamicProfileAidl: task ':app:compileDynamicProfileAidl'
compileDynamicProfileJavaWithJavac: task ':app:compileDynamicProfileJavaWithJavac'
compileDynamicProfileKotlin: task ':app:compileDynamicProfileKotlin'
compileDynamicProfileNdk: task ':app:compileDynamicProfileNdk'
compileDynamicProfileRenderscript: task ':app:compileDynamicProfileRenderscript'
compileDynamicProfileShaders: task ':app:compileDynamicProfileShaders'
compileDynamicProfileSources: task ':app:compileDynamicProfileSources'
compileDynamicProfileUnitTestJavaWithJavac: task ':app:compileDynamicProfileUnitTestJavaWithJavac'
compileDynamicProfileUnitTestKotlin: task ':app:compileDynamicProfileUnitTestKotlin'
compileDynamicProfileUnitTestSources: task ':app:compileDynamicProfileUnitTestSources'
compileDynamicReleaseAidl: task ':app:compileDynamicReleaseAidl'
compileDynamicReleaseJavaWithJavac: task ':app:compileDynamicReleaseJavaWithJavac'
compileDynamicReleaseKotlin: task ':app:compileDynamicReleaseKotlin'
compileDynamicReleaseNdk: task ':app:compileDynamicReleaseNdk'
compileDynamicReleaseRenderscript: task ':app:compileDynamicReleaseRenderscript'
compileDynamicReleaseShaders: task ':app:compileDynamicReleaseShaders'
compileDynamicReleaseSources: task ':app:compileDynamicReleaseSources'
compileDynamicReleaseUnitTestJavaWithJavac: task ':app:compileDynamicReleaseUnitTestJavaWithJavac'
compileDynamicReleaseUnitTestKotlin: task ':app:compileDynamicReleaseUnitTestKotlin'
compileDynamicReleaseUnitTestSources: task ':app:compileDynamicReleaseUnitTestSources'
compileLint: task ':app:compileLint'
compileProfileAidl: task ':app:compileProfileAidl'
compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac'
compileProfileKotlin: task ':app:compileProfileKotlin'
compileProfileNdk: task ':app:compileProfileNdk'
compileProfileRenderscript: task ':app:compileProfileRenderscript'
compileProfileShaders: task ':app:compileProfileShaders'
compileProfileSources: task ':app:compileProfileSources'
compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac'
compileProfileUnitTestKotlin: task ':app:compileProfileUnitTestKotlin'
compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources'
compileReleaseAidl: task ':app:compileReleaseAidl'
compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac'
compileReleaseKotlin: task ':app:compileReleaseKotlin'
compileReleaseNdk: task ':app:compileReleaseNdk'
compileReleaseRenderscript: task ':app:compileReleaseRenderscript'
compileReleaseShaders: task ':app:compileReleaseShaders'
compileReleaseSources: task ':app:compileReleaseSources'
compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac'
compileReleaseUnitTestKotlin: task ':app:compileReleaseUnitTestKotlin'
compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources'
components: SoftwareComponentInternal set
configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@13592756
configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@35b5a5be
configurations: configuration container
connectedAndroidTest: task ':app:connectedAndroidTest'
connectedCheck: task ':app:connectedCheck'
connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest'
consumeConfigAttr: task ':app:consumeConfigAttr'
convention: org.gradle.api.internal.plugins.DefaultConvention@33f15948
copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
copyFlutterAssetsDynamicProfile: task ':app:copyFlutterAssetsDynamicProfile'
copyFlutterAssetsDynamicRelease: task ':app:copyFlutterAssetsDynamicRelease'
copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile'
copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease'
createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests'
createDynamicProfileCompatibleScreenManifests: task ':app:createDynamicProfileCompatibleScreenManifests'
createDynamicReleaseCompatibleScreenManifests: task ':app:createDynamicReleaseCompatibleScreenManifests'
createMockableJar: task ':app:createMockableJar'
createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests'
createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests'
defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@612080b1
defaultTasks: []
deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@3b997854
dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@2319a2cc
dependencyLocking: org.gradle.internal.locking.DefaultDependencyLockingHandler_Decorated@1a1b94fe
depth: 1
description: null
deviceAndroidTest: task ':app:deviceAndroidTest'
deviceCheck: task ':app:deviceCheck'
displayName: project ':app'
distsDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\distributions
distsDirName: distributions
docsDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\docs
docsDirName: docs
ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@7f5baa04
extensions: org.gradle.api.internal.plugins.DefaultConvention@33f15948
extractApksForDebug: task ':app:extractApksForDebug'
extractApksForDynamicProfile: task ':app:extractApksForDynamicProfile'
extractApksForDynamicRelease: task ':app:extractApksForDynamicRelease'
extractApksForProfile: task ':app:extractApksForProfile'
extractApksForRelease: task ':app:extractApksForRelease'
extractProguardFiles: task ':app:extractProguardFiles'
fileOperations: org.gradle.api.internal.file.DefaultFileOperations@f703663
fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@6111ea83
flutter: FlutterExtension_Decorated@27eb2e3b
flutterBuildDebug: task ':app:flutterBuildDebug'
flutterBuildDynamicProfile: task ':app:flutterBuildDynamicProfile'
flutterBuildDynamicRelease: task ':app:flutterBuildDynamicRelease'
flutterBuildProfile: task ':app:flutterBuildProfile'
flutterBuildRelease: task ':app:flutterBuildRelease'
flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets'
generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig'
generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues'
generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources'
generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources'
generateDebugAssets: task ':app:generateDebugAssets'
generateDebugBuildConfig: task ':app:generateDebugBuildConfig'
generateDebugFeatureMetadata: task ':app:generateDebugFeatureMetadata'
generateDebugFeatureTransitiveDeps: task ':app:generateDebugFeatureTransitiveDeps'
generateDebugResValues: task ':app:generateDebugResValues'
generateDebugResources: task ':app:generateDebugResources'
generateDebugSources: task ':app:generateDebugSources'
generateDebugUnitTestAssets: task ':app:generateDebugUnitTestAssets'
generateDebugUnitTestResources: task ':app:generateDebugUnitTestResources'
generateDebugUnitTestSources: task ':app:generateDebugUnitTestSources'
generateDynamicProfileAssets: task ':app:generateDynamicProfileAssets'
generateDynamicProfileBuildConfig: task ':app:generateDynamicProfileBuildConfig'
generateDynamicProfileFeatureMetadata: task ':app:generateDynamicProfileFeatureMetadata'
generateDynamicProfileFeatureTransitiveDeps: task ':app:generateDynamicProfileFeatureTransitiveDeps'
generateDynamicProfileResValues: task ':app:generateDynamicProfileResValues'
generateDynamicProfileResources: task ':app:generateDynamicProfileResources'
generateDynamicProfileSources: task ':app:generateDynamicProfileSources'
generateDynamicProfileUnitTestAssets: task ':app:generateDynamicProfileUnitTestAssets'
generateDynamicProfileUnitTestResources: task ':app:generateDynamicProfileUnitTestResources'
generateDynamicProfileUnitTestSources: task ':app:generateDynamicProfileUnitTestSources'
generateDynamicReleaseAssets: task ':app:generateDynamicReleaseAssets'
generateDynamicReleaseBuildConfig: task ':app:generateDynamicReleaseBuildConfig'
generateDynamicReleaseFeatureMetadata: task ':app:generateDynamicReleaseFeatureMetadata'
generateDynamicReleaseFeatureTransitiveDeps: task ':app:generateDynamicReleaseFeatureTransitiveDeps'
generateDynamicReleaseResValues: task ':app:generateDynamicReleaseResValues'
generateDynamicReleaseResources: task ':app:generateDynamicReleaseResources'
generateDynamicReleaseSources: task ':app:generateDynamicReleaseSources'
generateDynamicReleaseUnitTestAssets: task ':app:generateDynamicReleaseUnitTestAssets'
generateDynamicReleaseUnitTestResources: task ':app:generateDynamicReleaseUnitTestResources'
generateDynamicReleaseUnitTestSources: task ':app:generateDynamicReleaseUnitTestSources'
generateProfileAssets: task ':app:generateProfileAssets'
generateProfileBuildConfig: task ':app:generateProfileBuildConfig'
generateProfileFeatureMetadata: task ':app:generateProfileFeatureMetadata'
generateProfileFeatureTransitiveDeps: task ':app:generateProfileFeatureTransitiveDeps'
generateProfileResValues: task ':app:generateProfileResValues'
generateProfileResources: task ':app:generateProfileResources'
generateProfileSources: task ':app:generateProfileSources'
generateProfileUnitTestAssets: task ':app:generateProfileUnitTestAssets'
generateProfileUnitTestResources: task ':app:generateProfileUnitTestResources'
generateProfileUnitTestSources: task ':app:generateProfileUnitTestSources'
generateReleaseAssets: task ':app:generateReleaseAssets'
generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig'
generateReleaseFeatureMetadata: task ':app:generateReleaseFeatureMetadata'
generateReleaseFeatureTransitiveDeps: task ':app:generateReleaseFeatureTransitiveDeps'
generateReleaseResValues: task ':app:generateReleaseResValues'
generateReleaseResources: task ':app:generateReleaseResources'
generateReleaseSources: task ':app:generateReleaseSources'
generateReleaseUnitTestAssets: task ':app:generateReleaseUnitTestAssets'
generateReleaseUnitTestResources: task ':app:generateReleaseUnitTestResources'
generateReleaseUnitTestSources: task ':app:generateReleaseUnitTestSources'
gradle: build 'android'
group: android
identityPath: :app
inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@5c2bb48
installDebug: task ':app:installDebug'
installDebugAndroidTest: task ':app:installDebugAndroidTest'
installDynamicProfile: task ':app:installDynamicProfile'
installDynamicRelease: task ':app:installDynamicRelease'
installProfile: task ':app:installProfile'
installRelease: task ':app:installRelease'
java: org.gradle.api.plugins.internal.DefaultJavaPluginExtension_Decorated@b0f46bd
javaPreCompileDebug: task ':app:javaPreCompileDebug'
javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest'
javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest'
javaPreCompileDynamicProfile: task ':app:javaPreCompileDynamicProfile'
javaPreCompileDynamicProfileUnitTest: task ':app:javaPreCompileDynamicProfileUnitTest'
javaPreCompileDynamicRelease: task ':app:javaPreCompileDynamicRelease'
javaPreCompileDynamicReleaseUnitTest: task ':app:javaPreCompileDynamicReleaseUnitTest'
javaPreCompileProfile: task ':app:javaPreCompileProfile'
javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest'
javaPreCompileRelease: task ':app:javaPreCompileRelease'
javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest'
kotlin: org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension_Decorated@6524e0ad
kotlin_version: 1.2.71
layout: org.gradle.api.internal.file.DefaultProjectLayout@1b4090c4
libsDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\libs
libsDirName: libs
lint: task ':app:lint'
lintDebug: task ':app:lintDebug'
lintDynamicProfile: task ':app:lintDynamicProfile'
lintDynamicRelease: task ':app:lintDynamicRelease'
lintFix: task ':app:lintFix'
lintProfile: task ':app:lintProfile'
lintRelease: task ':app:lintRelease'
lintVitalRelease: task ':app:lintVitalRelease'
listenerBuildOperationDecorator: org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator@bc8701f
logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@78a7b26b
logging: org.gradle.internal.logging.services.DefaultLoggingManager@7a03f575
mainApkListPersistenceDebug: task ':app:mainApkListPersistenceDebug'
mainApkListPersistenceDebugAndroidTest: task ':app:mainApkListPersistenceDebugAndroidTest'
mainApkListPersistenceDynamicProfile: task ':app:mainApkListPersistenceDynamicProfile'
mainApkListPersistenceDynamicRelease: task ':app:mainApkListPersistenceDynamicRelease'
mainApkListPersistenceProfile: task ':app:mainApkListPersistenceProfile'
mainApkListPersistenceRelease: task ':app:mainApkListPersistenceRelease'
makeApkFromBundleForDebug: task ':app:makeApkFromBundleForDebug'
makeApkFromBundleForDynamicProfile: task ':app:makeApkFromBundleForDynamicProfile'
makeApkFromBundleForDynamicRelease: task ':app:makeApkFromBundleForDynamicRelease'
makeApkFromBundleForProfile: task ':app:makeApkFromBundleForProfile'
makeApkFromBundleForRelease: task ':app:makeApkFromBundleForRelease'
mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets'
mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders'
mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources'
mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders'
mergeDebugAssets: task ':app:mergeDebugAssets'
mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders'
mergeDebugResources: task ':app:mergeDebugResources'
mergeDebugShaders: task ':app:mergeDebugShaders'
mergeDynamicProfileAssets: task ':app:mergeDynamicProfileAssets'
mergeDynamicProfileJniLibFolders: task ':app:mergeDynamicProfileJniLibFolders'
mergeDynamicProfileResources: task ':app:mergeDynamicProfileResources'
mergeDynamicProfileShaders: task ':app:mergeDynamicProfileShaders'
mergeDynamicReleaseAssets: task ':app:mergeDynamicReleaseAssets'
mergeDynamicReleaseJniLibFolders: task ':app:mergeDynamicReleaseJniLibFolders'
mergeDynamicReleaseResources: task ':app:mergeDynamicReleaseResources'
mergeDynamicReleaseShaders: task ':app:mergeDynamicReleaseShaders'
mergeProfileAssets: task ':app:mergeProfileAssets'
mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders'
mergeProfileResources: task ':app:mergeProfileResources'
mergeProfileShaders: task ':app:mergeProfileShaders'
mergeReleaseAssets: task ':app:mergeReleaseAssets'
mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders'
mergeReleaseResources: task ':app:mergeReleaseResources'
mergeReleaseShaders: task ':app:mergeReleaseShaders'
modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@38e05310
modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@73a95201
module: org.gradle.api.internal.artifacts.ProjectBackedModule@2476fad7
name: app
normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@27393278
objects: org.gradle.api.internal.model.DefaultObjectFactory@6fb9e608
org.gradle.jvmargs: -Xmx1536M
packageAppClassesDebug: task ':app:packageAppClassesDebug'
packageAppClassesDebugAndroidTest: task ':app:packageAppClassesDebugAndroidTest'
packageAppClassesDebugUnitTest: task ':app:packageAppClassesDebugUnitTest'
packageAppClassesDynamicProfile: task ':app:packageAppClassesDynamicProfile'
packageAppClassesDynamicProfileUnitTest: task ':app:packageAppClassesDynamicProfileUnitTest'
packageAppClassesDynamicRelease: task ':app:packageAppClassesDynamicRelease'
packageAppClassesDynamicReleaseUnitTest: task ':app:packageAppClassesDynamicReleaseUnitTest'
packageAppClassesProfile: task ':app:packageAppClassesProfile'
packageAppClassesProfileUnitTest: task ':app:packageAppClassesProfileUnitTest'
packageAppClassesRelease: task ':app:packageAppClassesRelease'
packageAppClassesReleaseUnitTest: task ':app:packageAppClassesReleaseUnitTest'
packageDebug: task ':app:packageDebug'
packageDebugAndroidTest: task ':app:packageDebugAndroidTest'
packageDebugBundle: task ':app:packageDebugBundle'
packageDebugUniversalApk: task ':app:packageDebugUniversalApk'
packageDynamicProfile: task ':app:packageDynamicProfile'
packageDynamicProfileBundle: task ':app:packageDynamicProfileBundle'
packageDynamicProfileUniversalApk: task ':app:packageDynamicProfileUniversalApk'
packageDynamicRelease: task ':app:packageDynamicRelease'
packageDynamicReleaseBundle: task ':app:packageDynamicReleaseBundle'
packageDynamicReleaseUniversalApk: task ':app:packageDynamicReleaseUniversalApk'
packageProfile: task ':app:packageProfile'
packageProfileBundle: task ':app:packageProfileBundle'
packageProfileUniversalApk: task ':app:packageProfileUniversalApk'
packageRelease: task ':app:packageRelease'
packageReleaseBundle: task ':app:packageReleaseBundle'
packageReleaseUniversalApk: task ':app:packageReleaseUniversalApk'
parent: root project 'android'
parentIdentifier: root project 'android'
path: :app
pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@a741ed7
plugins: [org.gradle.api.plugins.HelpTasksPlugin@30b6b45a, com.android.build.gradle.api.AndroidBasePlugin@5e72fac6, org.gradle.language.base.plugins.LifecycleBasePlugin@7e5bcea6, org.gradle.api.plugins.BasePlugin@5473e51c, org.gradle.api.plugins.ReportingBasePlugin@51628fac, org.gradle.api.plugins.JavaBasePlugin@188ffb8c, com.android.build.gradle.AppPlugin@380138c5, org.jetbrains.kotlin.gradle.plugin.KotlinAndroidPluginWrapper@731161dc, FlutterPlugin@36cb9ffd]
preBuild: task ':app:preBuild'
preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild'
preDebugBuild: task ':app:preDebugBuild'
preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild'
preDynamicProfileBuild: task ':app:preDynamicProfileBuild'
preDynamicProfileUnitTestBuild: task ':app:preDynamicProfileUnitTestBuild'
preDynamicReleaseBuild: task ':app:preDynamicReleaseBuild'
preDynamicReleaseUnitTestBuild: task ':app:preDynamicReleaseUnitTestBuild'
preProfileBuild: task ':app:preProfileBuild'
preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild'
preReleaseBuild: task ':app:preReleaseBuild'
preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild'
prepareLintJar: task ':app:prepareLintJar'
processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes'
processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest'
processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources'
processDebugJavaRes: task ':app:processDebugJavaRes'
processDebugManifest: task ':app:processDebugManifest'
processDebugResources: task ':app:processDebugResources'
processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes'
processDynamicProfileJavaRes: task ':app:processDynamicProfileJavaRes'
processDynamicProfileManifest: task ':app:processDynamicProfileManifest'
processDynamicProfileResources: task ':app:processDynamicProfileResources'
processDynamicProfileUnitTestJavaRes: task ':app:processDynamicProfileUnitTestJavaRes'
processDynamicReleaseJavaRes: task ':app:processDynamicReleaseJavaRes'
processDynamicReleaseManifest: task ':app:processDynamicReleaseManifest'
processDynamicReleaseResources: task ':app:processDynamicReleaseResources'
processDynamicReleaseUnitTestJavaRes: task ':app:processDynamicReleaseUnitTestJavaRes'
processOperations: org.gradle.api.internal.file.DefaultFileOperations@f703663
processProfileJavaRes: task ':app:processProfileJavaRes'
processProfileManifest: task ':app:processProfileManifest'
processProfileResources: task ':app:processProfileResources'
processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes'
processReleaseJavaRes: task ':app:processReleaseJavaRes'
processReleaseManifest: task ':app:processReleaseManifest'
processReleaseResources: task ':app:processReleaseResources'
processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes'
project: project ':app'
projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@517f4133
projectDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\app
projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@60899cc9
projectPath: :app
projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@186e0e85
properties: {...}
providers: org.gradle.api.internal.provider.DefaultProviderFactory@ea5418f
reportBuildArtifactsDebug: task ':app:reportBuildArtifactsDebug'
reportBuildArtifactsDynamicProfile: task ':app:reportBuildArtifactsDynamicProfile'
reportBuildArtifactsDynamicRelease: task ':app:reportBuildArtifactsDynamicRelease'
reportBuildArtifactsProfile: task ':app:reportBuildArtifactsProfile'
reportBuildArtifactsRelease: task ':app:reportBuildArtifactsRelease'
reportSourceSetTransformAndroidTest: task ':app:reportSourceSetTransformAndroidTest'
reportSourceSetTransformAndroidTestDebug: task ':app:reportSourceSetTransformAndroidTestDebug'
reportSourceSetTransformDebug: task ':app:reportSourceSetTransformDebug'
reportSourceSetTransformDynamicProfile: task ':app:reportSourceSetTransformDynamicProfile'
reportSourceSetTransformDynamicRelease: task ':app:reportSourceSetTransformDynamicRelease'
reportSourceSetTransformMain: task ':app:reportSourceSetTransformMain'
reportSourceSetTransformProfile: task ':app:reportSourceSetTransformProfile'
reportSourceSetTransformRelease: task ':app:reportSourceSetTransformRelease'
reportSourceSetTransformTest: task ':app:reportSourceSetTransformTest'
reportSourceSetTransformTestDebug: task ':app:reportSourceSetTransformTestDebug'
reportSourceSetTransformTestDynamicProfile: task ':app:reportSourceSetTransformTestDynamicProfile'
reportSourceSetTransformTestDynamicRelease: task ':app:reportSourceSetTransformTestDynamicRelease'
reportSourceSetTransformTestProfile: task ':app:reportSourceSetTransformTestProfile'
reportSourceSetTransformTestRelease: task ':app:reportSourceSetTransformTestRelease'
reporting: org.gradle.api.reporting.ReportingExtension_Decorated@72b05e02
reportsDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\reports
repositories: repository container
resolveConfigAttr: task ':app:resolveConfigAttr'
resourceLoader: org.gradle.internal.resource.transfer.DefaultUriTextResourceLoader@596dffbe
resources: org.gradle.api.internal.resources.DefaultResourceHandler@752e5f8e
rootDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android
rootProject: root project 'android'
script: false
scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@1ddc7d88
scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@6d6c707f
serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@5b4af263
services: ProjectScopeServices
signingReport: task ':app:signingReport'
sourceCompatibility: 1.8
sourceSets: SourceSet container
splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug'
splitsDiscoveryTaskDynamicProfile: task ':app:splitsDiscoveryTaskDynamicProfile'
splitsDiscoveryTaskDynamicRelease: task ':app:splitsDiscoveryTaskDynamicRelease'
splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile'
splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease'
standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@7a03f575
state: project state 'EXECUTED'
status: integration
subprojects: []
targetCompatibility: 1.8
tasks: task set
test: task ':app:test'
testDebugUnitTest: task ':app:testDebugUnitTest'
testDynamicProfileUnitTest: task ':app:testDynamicProfileUnitTest'
testDynamicReleaseUnitTest: task ':app:testDynamicReleaseUnitTest'
testProfileUnitTest: task ':app:testProfileUnitTest'
testReleaseUnitTest: task ':app:testReleaseUnitTest'
testReportDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\reports\tests
testReportDirName: tests
testResultsDir: C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\test-results
testResultsDirName: test-results
transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug'
transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest'
transformClassesWithDexBuilderForDynamicProfile: task ':app:transformClassesWithDexBuilderForDynamicProfile'
transformClassesWithDexBuilderForDynamicRelease: task ':app:transformClassesWithDexBuilderForDynamicRelease'
transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile'
transformClassesWithDexBuilderForRelease: task ':app:transformClassesWithDexBuilderForRelease'
transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug'
transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest'
transformDexArchiveWithDexMergerForDynamicProfile: task ':app:transformDexArchiveWithDexMergerForDynamicProfile'
transformDexArchiveWithDexMergerForDynamicRelease: task ':app:transformDexArchiveWithDexMergerForDynamicRelease'
transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile'
transformDexArchiveWithDexMergerForRelease: task ':app:transformDexArchiveWithDexMergerForRelease'
transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'
transformDexArchiveWithExternalLibsDexMergerForDynamicProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicProfile'
transformDexArchiveWithExternalLibsDexMergerForDynamicRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicRelease'
transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile'
transformDexArchiveWithExternalLibsDexMergerForRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForRelease'
transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug'
transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest'
transformNativeLibsWithMergeJniLibsForDynamicProfile: task ':app:transformNativeLibsWithMergeJniLibsForDynamicProfile'
transformNativeLibsWithMergeJniLibsForDynamicRelease: task ':app:transformNativeLibsWithMergeJniLibsForDynamicRelease'
transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile'
transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease'
transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug'
transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest'
transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest'
transformResourcesWithMergeJavaResForDynamicProfile: task ':app:transformResourcesWithMergeJavaResForDynamicProfile'
transformResourcesWithMergeJavaResForDynamicProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicProfileUnitTest'
transformResourcesWithMergeJavaResForDynamicRelease: task ':app:transformResourcesWithMergeJavaResForDynamicRelease'
transformResourcesWithMergeJavaResForDynamicReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicReleaseUnitTest'
transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile'
transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest'
transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease'
transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest'
uninstallAll: task ':app:uninstallAll'
uninstallDebug: task ':app:uninstallDebug'
uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest'
uninstallDynamicProfile: task ':app:uninstallDynamicProfile'
uninstallDynamicRelease: task ':app:uninstallDynamicRelease'
uninstallProfile: task ':app:uninstallProfile'
uninstallRelease: task ':app:uninstallRelease'
validateSigningDebug: task ':app:validateSigningDebug'
validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest'
validateSigningDynamicProfile: task ':app:validateSigningDynamicProfile'
validateSigningDynamicRelease: task ':app:validateSigningDynamicRelease'
validateSigningProfile: task ':app:validateSigningProfile'
validateSigningRelease: task ':app:validateSigningRelease'
version: unspecified
writeDebugApplicationId: task ':app:writeDebugApplicationId'
writeDynamicProfileApplicationId: task ':app:writeDynamicProfileApplicationId'
writeDynamicReleaseApplicationId: task ':app:writeDynamicReleaseApplicationId'
writeProfileApplicationId: task ':app:writeProfileApplicationId'
writeReleaseApplicationId: task ':app:writeReleaseApplicationId'
1 actionable task: 1 executed
[ +7 ms] executing: [C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\] C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\gradlew.bat app:tasks --all
[+2044 ms]
> Task :app:tasks
------------------------------------------------------------
All tasks runnable from project :app
------------------------------------------------------------
Android tasks
-------------
androidDependencies - Displays the Android dependencies of the project.
signingReport - Displays the signing info for each variant.
sourceSets - Prints out all the source sets defined in this project.
Build tasks
-----------
assemble - Assembles all variants of all applications and secondary packages.
assembleAndroidTest - Assembles all the Test applications.
assembleDebug - Assembles all Debug builds.
assembleDynamicProfile - Assembles all DynamicProfile builds.
assembleDynamicRelease - Assembles all DynamicRelease builds.
assembleProfile - Assembles all Profile builds.
assembleRelease - Assembles all Release builds.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
bundleDebug - Creates all Debug bundles.
bundleDynamicProfile - Creates all DynamicProfile bundles.
bundleDynamicRelease - Creates all DynamicRelease bundles.
bundleProfile - Creates all Profile bundles.
bundleRelease - Creates all Release bundles.
clean - Deletes the build directory.
cleanBuildCache - Deletes the build cache directory.
compileDebugAndroidTestSources
compileDebugSources
compileDebugUnitTestSources
compileDynamicProfileSources
compileDynamicProfileUnitTestSources
compileDynamicReleaseSources
compileDynamicReleaseUnitTestSources
compileProfileSources
compileProfileUnitTestSources
compileReleaseSources
compileReleaseUnitTestSources
Cleanup tasks
-------------
lintFix - Runs lint on all variants and applies any safe suggestions to the source code.
Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in project ':app'.
components - Displays the components produced by project ':app'. [incubating]
dependencies - Displays all dependencies declared in project ':app'.
dependencyInsight - Displays the insight into a specific dependency in project ':app'.
dependentComponents - Displays the dependent components of components in project ':app'. [incubating]
help - Displays a help message.
model - Displays the configuration model of project ':app'. [incubating]
projects - Displays the sub-projects of project ':app'.
properties - Displays the properties of project ':app'.
tasks - Displays the tasks runnable from project ':app'.
Install tasks
-------------
installDebug - Installs the Debug build.
installDebugAndroidTest - Installs the android (on device) tests for the Debug build.
installDynamicProfile - Installs the DynamicProfile build.
installDynamicRelease - Installs the DynamicRelease build.
installProfile - Installs the Profile build.
installRelease - Installs the Release build.
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build.
uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.
uninstallDynamicProfile - Uninstalls the DynamicProfile build.
uninstallDynamicRelease - Uninstalls the DynamicRelease build.
uninstallProfile - Uninstalls the Profile build.
uninstallRelease - Uninstalls the Release build.
Verification tasks
------------------
check - Runs all checks.
connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices.
connectedCheck - Runs all device checks on currently connected devices.
connectedDebugAndroidTest - Installs and runs the tests for debug on connected devices.
deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers.
deviceCheck - Runs all device checks using Device Providers and Test Servers.
lint - Runs lint on all variants.
lintDebug - Runs lint on the Debug build.
lintDynamicProfile - Runs lint on the DynamicProfile build.
lintDynamicRelease - Runs lint on the DynamicRelease build.
lintProfile - Runs lint on the Profile build.
lintRelease - Runs lint on the Release build.
lintVitalRelease - Runs lint on just the fatal issues in the release build.
test - Run unit tests for all variants.
testDebugUnitTest - Run unit tests for the debug build.
testDynamicProfileUnitTest - Run unit tests for the dynamicProfile build.
testDynamicReleaseUnitTest - Run unit tests for the dynamicRelease build.
testProfileUnitTest - Run unit tests for the profile build.
testReleaseUnitTest - Run unit tests for the release build.
Other tasks
-----------
assembleDebugAndroidTest
assembleDebugUnitTest
assembleDynamicProfileUnitTest
assembleDynamicReleaseUnitTest
assembleProfileUnitTest
assembleReleaseUnitTest
buildDebugPreBundle
buildDynamicProfilePreBundle
buildDynamicReleasePreBundle
buildProfilePreBundle
buildReleasePreBundle
bundle
bundleDebugAndroidTestResources
bundleDebugResources
bundleDynamicProfileResources
bundleDynamicReleaseResources
bundleProfileResources
bundleReleaseResources
checkDebugAndroidTestClasspath
checkDebugClasspath
checkDebugLibraries
checkDebugManifest
checkDynamicProfileClasspath
checkDynamicProfileLibraries
checkDynamicProfileManifest
checkDynamicReleaseClasspath
checkDynamicReleaseLibraries
checkDynamicReleaseManifest
checkProfileClasspath
checkProfileLibraries
checkProfileManifest
checkReleaseClasspath
checkReleaseLibraries
checkReleaseManifest
compileDebugAidl
compileDebugAndroidTestAidl
compileDebugAndroidTestJavaWithJavac
compileDebugAndroidTestKotlin - Compiles the debugAndroidTest kotlin.
compileDebugAndroidTestNdk
compileDebugAndroidTestRenderscript
compileDebugAndroidTestShaders
compileDebugJavaWithJavac
compileDebugKotlin - Compiles the debug kotlin.
compileDebugNdk
compileDebugRenderscript
compileDebugShaders
compileDebugUnitTestJavaWithJavac
compileDebugUnitTestKotlin - Compiles the debugUnitTest kotlin.
compileDynamicProfileAidl
compileDynamicProfileJavaWithJavac
compileDynamicProfileKotlin - Compiles the dynamicProfile kotlin.
compileDynamicProfileNdk
compileDynamicProfileRenderscript
compileDynamicProfileShaders
compileDynamicProfileUnitTestJavaWithJavac
compileDynamicProfileUnitTestKotlin - Compiles the dynamicProfileUnitTest kotlin.
compileDynamicReleaseAidl
compileDynamicReleaseJavaWithJavac
compileDynamicReleaseKotlin - Compiles the dynamicRelease kotlin.
compileDynamicReleaseNdk
compileDynamicReleaseRenderscript
compileDynamicReleaseShaders
compileDynamicReleaseUnitTestJavaWithJavac
compileDynamicReleaseUnitTestKotlin - Compiles the dynamicReleaseUnitTest kotlin.
compileLint
compileProfileAidl
compileProfileJavaWithJavac
compileProfileKotlin - Compiles the profile kotlin.
compileProfileNdk
compileProfileRenderscript
compileProfileShaders
compileProfileUnitTestJavaWithJavac
compileProfileUnitTestKotlin - Compiles the profileUnitTest kotlin.
compileReleaseAidl
compileReleaseJavaWithJavac
compileReleaseKotlin - Compiles the release kotlin.
compileReleaseNdk
compileReleaseRenderscript
compileReleaseShaders
compileReleaseUnitTestJavaWithJavac
compileReleaseUnitTestKotlin - Compiles the releaseUnitTest kotlin.
consumeConfigAttr
copyFlutterAssetsDebug
copyFlutterAssetsDynamicProfile
copyFlutterAssetsDynamicRelease
copyFlutterAssetsProfile
copyFlutterAssetsRelease
createDebugCompatibleScreenManifests
createDynamicProfileCompatibleScreenManifests
createDynamicReleaseCompatibleScreenManifests
createMockableJar
createProfileCompatibleScreenManifests
createReleaseCompatibleScreenManifests
extractApksForDebug
extractApksForDynamicProfile
extractApksForDynamicRelease
extractApksForProfile
extractApksForRelease
extractProguardFiles
flutterBuildDebug
flutterBuildDynamicProfile
flutterBuildDynamicRelease
flutterBuildProfile
flutterBuildRelease
flutterBuildX86Jar
generateDebugAndroidTestAssets
generateDebugAndroidTestBuildConfig
generateDebugAndroidTestResources
generateDebugAndroidTestResValues
generateDebugAndroidTestSources
generateDebugAssets
generateDebugBuildConfig
generateDebugFeatureMetadata
generateDebugFeatureTransitiveDeps
generateDebugResources
generateDebugResValues
generateDebugSources
generateDebugUnitTestAssets
generateDebugUnitTestResources
generateDebugUnitTestSources
generateDynamicProfileAssets
generateDynamicProfileBuildConfig
generateDynamicProfileFeatureMetadata
generateDynamicProfileFeatureTransitiveDeps
generateDynamicProfileResources
generateDynamicProfileResValues
generateDynamicProfileSources
generateDynamicProfileUnitTestAssets
generateDynamicProfileUnitTestResources
generateDynamicProfileUnitTestSources
generateDynamicReleaseAssets
generateDynamicReleaseBuildConfig
generateDynamicReleaseFeatureMetadata
generateDynamicReleaseFeatureTransitiveDeps
generateDynamicReleaseResources
generateDynamicReleaseResValues
generateDynamicReleaseSources
generateDynamicReleaseUnitTestAssets
generateDynamicReleaseUnitTestResources
generateDynamicReleaseUnitTestSources
generateProfileAssets
generateProfileBuildConfig
generateProfileFeatureMetadata
generateProfileFeatureTransitiveDeps
generateProfileResources
generateProfileResValues
generateProfileSources
generateProfileUnitTestAssets
generateProfileUnitTestResources
generateProfileUnitTestSources
generateReleaseAssets
generateReleaseBuildConfig
generateReleaseFeatureMetadata
generateReleaseFeatureTransitiveDeps
generateReleaseResources
generateReleaseResValues
generateReleaseSources
generateReleaseUnitTestAssets
generateReleaseUnitTestResources
generateReleaseUnitTestSources
javaPreCompileDebug
javaPreCompileDebugAndroidTest
javaPreCompileDebugUnitTest
javaPreCompileDynamicProfile
javaPreCompileDynamicProfileUnitTest
javaPreCompileDynamicRelease
javaPreCompileDynamicReleaseUnitTest
javaPreCompileProfile
javaPreCompileProfileUnitTest
javaPreCompileRelease
javaPreCompileReleaseUnitTest
mainApkListPersistenceDebug
mainApkListPersistenceDebugAndroidTest
mainApkListPersistenceDynamicProfile
mainApkListPersistenceDynamicRelease
mainApkListPersistenceProfile
mainApkListPersistenceRelease
makeApkFromBundleForDebug
makeApkFromBundleForDynamicProfile
makeApkFromBundleForDynamicRelease
makeApkFromBundleForProfile
makeApkFromBundleForRelease
mergeDebugAndroidTestAssets
mergeDebugAndroidTestJniLibFolders
mergeDebugAndroidTestResources
mergeDebugAndroidTestShaders
mergeDebugAssets
mergeDebugJniLibFolders
mergeDebugResources
mergeDebugShaders
mergeDynamicProfileAssets
mergeDynamicProfileJniLibFolders
mergeDynamicProfileResources
mergeDynamicProfileShaders
mergeDynamicReleaseAssets
mergeDynamicReleaseJniLibFolders
mergeDynamicReleaseResources
mergeDynamicReleaseShaders
mergeProfileAssets
mergeProfileJniLibFolders
mergeProfileResources
mergeProfileShaders
mergeReleaseAssets
mergeReleaseJniLibFolders
mergeReleaseResources
mergeReleaseShaders
packageAppClassesDebug
packageAppClassesDebugAndroidTest
packageAppClassesDebugUnitTest
packageAppClassesDynamicProfile
packageAppClassesDynamicProfileUnitTest
packageAppClassesDynamicRelease
packageAppClassesDynamicReleaseUnitTest
packageAppClassesProfile
packageAppClassesProfileUnitTest
packageAppClassesRelease
packageAppClassesReleaseUnitTest
packageDebug
packageDebugAndroidTest
packageDebugBundle
packageDebugUniversalApk
packageDynamicProfile
packageDynamicProfileBundle
packageDynamicProfileUniversalApk
packageDynamicRelease
packageDynamicReleaseBundle
packageDynamicReleaseUniversalApk
packageProfile
packageProfileBundle
packageProfileUniversalApk
packageRelease
packageReleaseBundle
packageReleaseUniversalApk
preBuild
preDebugAndroidTestBuild
preDebugBuild
preDebugUnitTestBuild
preDynamicProfileBuild
preDynamicProfileUnitTestBuild
preDynamicReleaseBuild
preDynamicReleaseUnitTestBuild
prepareLintJar
preProfileBuild
preProfileUnitTestBuild
preReleaseBuild
preReleaseUnitTestBuild
processDebugAndroidTestJavaRes
processDebugAndroidTestManifest
processDebugAndroidTestResources
processDebugJavaRes
processDebugManifest
processDebugResources
processDebugUnitTestJavaRes
processDynamicProfileJavaRes
processDynamicProfileManifest
processDynamicProfileResources
processDynamicProfileUnitTestJavaRes
processDynamicReleaseJavaRes
processDynamicReleaseManifest
processDynamicReleaseResources
processDynamicReleaseUnitTestJavaRes
processProfileJavaRes
processProfileManifest
processProfileResources
processProfileUnitTestJavaRes
processReleaseJavaRes
processReleaseManifest
processReleaseResources
processReleaseUnitTestJavaRes
reportBuildArtifactsDebug
reportBuildArtifactsDynamicProfile
reportBuildArtifactsDynamicRelease
reportBuildArtifactsProfile
reportBuildArtifactsRelease
reportSourceSetTransformAndroidTest
reportSourceSetTransformAndroidTestDebug
reportSourceSetTransformDebug
reportSourceSetTransformDynamicProfile
reportSourceSetTransformDynamicRelease
reportSourceSetTransformMain
reportSourceSetTransformProfile
reportSourceSetTransformRelease
reportSourceSetTransformTest
reportSourceSetTransformTestDebug
reportSourceSetTransformTestDynamicProfile
reportSourceSetTransformTestDynamicRelease
reportSourceSetTransformTestProfile
reportSourceSetTransformTestRelease
resolveConfigAttr
splitsDiscoveryTaskDebug
splitsDiscoveryTaskDynamicProfile
splitsDiscoveryTaskDynamicRelease
splitsDiscoveryTaskProfile
splitsDiscoveryTaskRelease
transformClassesWithDexBuilderForDebug
transformClassesWithDexBuilderForDebugAndroidTest
transformClassesWithDexBuilderForDynamicProfile
transformClassesWithDexBuilderForDynamicRelease
transformClassesWithDexBuilderForProfile
transformClassesWithDexBuilderForRelease
transformDexArchiveWithDexMergerForDebug
transformDexArchiveWithDexMergerForDebugAndroidTest
transformDexArchiveWithDexMergerForDynamicProfile
transformDexArchiveWithDexMergerForDynamicRelease
transformDexArchiveWithDexMergerForProfile
transformDexArchiveWithDexMergerForRelease
transformDexArchiveWithExternalLibsDexMergerForDebug
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest
transformDexArchiveWithExternalLibsDexMergerForDynamicProfile
transformDexArchiveWithExternalLibsDexMergerForDynamicRelease
transformDexArchiveWithExternalLibsDexMergerForProfile
transformDexArchiveWithExternalLibsDexMergerForRelease
transformNativeLibsWithMergeJniLibsForDebug
transformNativeLibsWithMergeJniLibsForDebugAndroidTest
transformNativeLibsWithMergeJniLibsForDynamicProfile
transformNativeLibsWithMergeJniLibsForDynamicRelease
transformNativeLibsWithMergeJniLibsForProfile
transformNativeLibsWithMergeJniLibsForRelease
transformResourcesWithMergeJavaResForDebug
transformResourcesWithMergeJavaResForDebugAndroidTest
transformResourcesWithMergeJavaResForDebugUnitTest
transformResourcesWithMergeJavaResForDynamicProfile
transformResourcesWithMergeJavaResForDynamicProfileUnitTest
transformResourcesWithMergeJavaResForDynamicRelease
transformResourcesWithMergeJavaResForDynamicReleaseUnitTest
transformResourcesWithMergeJavaResForProfile
transformResourcesWithMergeJavaResForProfileUnitTest
transformResourcesWithMergeJavaResForRelease
transformResourcesWithMergeJavaResForReleaseUnitTest
validateSigningDebug
validateSigningDebugAndroidTest
validateSigningDynamicProfile
validateSigningDynamicRelease
validateSigningProfile
validateSigningRelease
writeDebugApplicationId
writeDynamicProfileApplicationId
writeDynamicReleaseApplicationId
writeProfileApplicationId
writeReleaseApplicationId
Rules
-----
Pattern: clean<TaskName>: Cleans the output files of a task.
Pattern: build<ConfigurationName>: Assembles the artifacts of a configuration.
Pattern: upload<ConfigurationName>: Assembles and uploads the artifacts belonging to a configuration.
1 actionable task: 1 executed
[ +12 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\build-tools\28.0.3\aapt dump xmltree C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\outputs\apk\app.apk AndroidManifest.xml
[ +14 ms] Exit code 0 from: C:\Users\Barry\AppData\Local\Android\sdk\build-tools\28.0.3\aapt dump xmltree C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\outputs\apk\app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: package="com.example.getappdocdirtest" (Raw: "com.example.getappdocdirtest")
A: platformBuildVersionCode=(type 0x10)0x1
A: platformBuildVersionName="1.0.0" (Raw: "1.0.0")
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=24)
A: android:label(0x01010001)="get_app_doc_dir_test" (Raw: "get_app_doc_dir_test")
A: android:icon(0x01010002)=@0x7f020000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
E: activity (line=29)
A: android:theme(0x01010000)=@0x7f030000
A: android:name(0x01010003)="com.example.getappdocdirtest.MainActivity" (Raw: "com.example.getappdocdirtest.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=43)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: intent-filter (line=47)
E: action (line=48)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=50)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
[ +6 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell -x logcat -v time -t 1
[ +56 ms] Exit code 0 from: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell -x logcat -v time -t 1
[ ] --------- beginning of main
11-11 18:19:00.024 D/hwcomposer( 1436): hw_composer sent 6 syncs in 60s
[ +3 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell -x logcat -v time
[ +447 ms] DependencyChecker: nothing is modified after 2018-11-11 18:08:28.000.
[ +4 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb version
[ +24 ms] Android Debug Bridge version 1.0.40
Version 4986621
Installed as C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb.EXE
[ +4 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb start-server
[ +40 ms] Building APK
Gradle task 'assembleDebug'...
[ +16 ms] executing: [C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\] C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\android\gradlew.bat -q -Ptarget=C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+3119 ms] calculateSha: LocalDirectory: 'C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\outputs\apk'/app.apk
[ +403 ms] Built build\app\outputs\apk\debug\app-debug.apk.
[ +1 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\build-tools\28.0.3\aapt dump xmltree C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\outputs\apk\app.apk AndroidManifest.xml
[ +12 ms] Exit code 0 from: C:\Users\Barry\AppData\Local\Android\sdk\build-tools\28.0.3\aapt dump xmltree C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\build\app\outputs\apk\app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: package="com.example.getappdocdirtest" (Raw: "com.example.getappdocdirtest")
A: platformBuildVersionCode=(type 0x10)0x1
A: platformBuildVersionName="1.0.0" (Raw: "1.0.0")
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=24)
A: android:label(0x01010001)="get_app_doc_dir_test" (Raw: "get_app_doc_dir_test")
A: android:icon(0x01010002)=@0x7f020000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
E: activity (line=29)
A: android:theme(0x01010000)=@0x7f030000
A: android:name(0x01010003)="com.example.getappdocdirtest.MainActivity" (Raw: "com.example.getappdocdirtest.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=43)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: intent-filter (line=47)
E: action (line=48)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=50)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
[ ] Stopping app 'app.apk' on Android SDK built for x86.
[ ] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell am force-stop com.example.getappdocdirtest
[ +77 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell pm list packages com.example.getappdocdirtest
[ +683 ms] package:com.example.getappdocdirtest
[ +3 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.getappdocdirtest.sha1
[ +48 ms] f0c53ee680662d6275858610e4fc6242ac29c534
[ ] Latest build already installed.
[ ] Android SDK built for x86 startApp
[ +1 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true com.example.getappdocdirtest/com.example.getappdocdirtest.MainActivity
[ +87 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.getappdocdirtest/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[ +582 ms] Observatory URL on device: http://127.0.0.1:47907/
[ +1 ms] executing: C:\Users\Barry\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 forward tcp:0 tcp:47907
[ +34 ms] 50482
[ ] Forwarded host port 50482 to device port 47907 for Observatory
[ +8 ms] Connecting to service protocol: http://127.0.0.1:50482/
[ +598 ms] Successfully connected to service protocol: http://127.0.0.1:50482/
[ +6 ms] getVM: {}
[ +22 ms] getIsolate: {isolateId: isolates/669701415}
[ +7 ms] _flutter.listViews: {isolateId: isolates/669701415}
[ +120 ms] DevFS: Creating new filesystem on the device (null)
[ ] _createDevFS: {fsName: get_app_doc_dir_test}
[ +59 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.getappdocdirtest/cache/get_app_doc_dir_testJJYAVC/get_app_doc_dir_test/)
[ +2 ms] Updating assets
Syncing files to device Android SDK built for x86...
[ +317 ms] DevFS: Starting sync from LocalDirectory: 'C:\Users\Barry\IdeaProjects\get_app_doc_dir_test'
[ ] Scanning project files
[ +9 ms] Scanning package files
[ +131 ms] Scanning asset files
[ ] Scanning for deleted files
[ +75 ms] Compiling dart to kernel with 441 updated files
[ +14 ms] C:\flutter\bin\cache\dart-sdk\bin\dart C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build\app.dill.track.dill --packages C:\Users\Barry\IdeaProjects\get_app_doc_dir_test\.packages --track-widget-creation
[ +419 ms] I/flutter ( 1018): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
[ +11 ms] I/flutter ( 1018): The following assertion was thrown building Builder:
[ ] I/flutter ( 1018): _MyHomePageState.initState() returned a Future.
[ ] I/flutter ( 1018): State.initState() must be a void method without an `async` keyword.
[ ] I/flutter ( 1018): Rather than awaiting on asynchronous work directly inside of initState,
[ ] I/flutter ( 1018): call a separate method to do this work without awaiting it.
[ +21 ms] I/flutter ( 1018):
[ ] I/flutter ( 1018): When the exception was thrown, this was the stack:
[ +46 ms] I/flutter ( 1018): #0 StatefulElement._firstBuild.<anonymous closure> (package:flutter/src/widgets/framework.dart:3794:11)
[ +1 ms] I/flutter ( 1018): #1 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3802:8)
[ +1 ms] I/flutter ( 1018): #2 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #3 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #4 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #5 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #6 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #7 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #8 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #9 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #10 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #11 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #12 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #13 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #14 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #15 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #17 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ +1 ms] I/flutter ( 1018): #18 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ +1 ms] I/flutter ( 1018): #19 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ +1 ms] I/flutter ( 1018): #20 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #21 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #23 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #24 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #25 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #26 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #27 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #28 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #29 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #30 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #31 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #32 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ +3 ms] I/flutter ( 1018): #33 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ +2 ms] I/flutter ( 1018): #34 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #35 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #36 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #37 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #41 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #42 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #43 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #44 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #46 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #47 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #49 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #50 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #51 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #52 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #53 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #54 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #55 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #56 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #58 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #59 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #60 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #61 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #62 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #63 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #64 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #65 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #66 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #67 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #68 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #69 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #71 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #72 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #75 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #76 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #77 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #78 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #79 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #80 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ +1 ms] I/flutter ( 1018): #81 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #82 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #83 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #84 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #85 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ +2 ms] I/flutter ( 1018): #87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #88 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #89 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #90 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #91 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #92 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ +1 ms] I/flutter ( 1018): #93 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4905:32)
[ ] I/flutter ( 1018): #94 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ +1 ms] I/flutter ( 1018): #95 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #96 _TheatreElement.mount (package:flutter/src/widgets/overlay.dart:493:16)
[ ] I/flutter ( 1018): #97 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #98 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #99 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #100 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #101 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #102 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #103 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #104 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #105 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #106 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #107 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #108 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #109 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #110 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #111 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #112 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #113 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #114 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #115 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #116 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #117 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #118 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #119 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #120 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #121 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #122 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #123 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #124 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #125 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
[ ] I/flutter ( 1018): #126 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #127 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ +2 ms] I/flutter ( 1018): #128 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #129 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #130 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #131 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3809:11)
[ ] I/flutter ( 1018): #132 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #133 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #134 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ ] I/flutter ( 1018): #135 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
[ ] I/flutter ( 1018): #136 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
[ ] I/flutter ( 1018): #137 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
[ ] I/flutter ( 1018): #138 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
[ ] I/flutter ( 1018): #139 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
[ ] I/flutter ( 1018): #140 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
[ +335 ms] D/ ( 1018): HostConnection::get() New Host Connection established 0x9e218780, tid 1038
[ +30 ms] D/EGL_emulation( 1018): eglMakeCurrent: 0x9e007ec0: ver 3 0 (tinfo 0x9e2032c0)
[ +48 ms] D/skia ( 1018): Program linking failed.
[ +6 ms] E/emuglGLESv2_enc( 1018): device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glLinkProgram:1441 GL error 0x501
[ +4 ms] F/libc ( 1018): /buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed
[ ] F/libc ( 1018): Fatal signal 6 (SIGABRT), code -6 in tid 1038 (1.gpu), pid 1018 (etappdocdirtest)
[ +47 ms] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[ ] Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.007/4586646:user/release-keys'
[ ] Revision: '0'
[ ] ABI: 'x86'
[ ] pid: 1018, tid: 1038, name: 1.gpu >>> com.example.getappdocdirtest <<<
[ ] signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
[ +6 ms] Abort message: '/buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed'
[ ] eax 00000000 ebx 000003fa ecx 0000040e edx 00000006
[ ] esi a8325638 edi 000003fa
[ ] xcs 00000073 xds 0000007b xes 0000007b xfs 0000003b xss 0000007b
[ ] eip aa832ac4 ebp 8b422004 esp 8b421fa8 flags 00000286
[ +17 ms] backtrace:
[ ] #00 pc 00000ac4 [vdso:aa832000] (__kernel_vsyscall+16)
[ ] #01 pc 0001edf8 /system/lib/libc.so (syscall+40)
[ ] #02 pc 0001f073 /system/lib/libc.so (abort+115)
[ ] #03 pc 0001f528 /system/lib/libc.so (__assert2+56)
[ ] #04 pc 0062ef04 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #05 pc 0062f377 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #06 pc 0062f179 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #07 pc 0062e7be /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #08 pc 0062e713 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #09 pc 00631c48 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #10 pc 00631c80 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #11 pc 007ea41a /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #12 pc 007e5d66 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #13 pc 007e747b /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #14 pc 00771588 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #15 pc 00773824 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #16 pc 007a5df1 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #17 pc 007802fd /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #18 pc 007801d0 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #19 pc 0076d297 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #20 pc 0076d7d8 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #21 pc 007fa23b /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #22 pc 007fa14b /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #23 pc 006bf399 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #24 pc 009ebcb0 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #25 pc 0069a281 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #26 pc 006a0c03 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #27 pc 006a1066 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #28 pc 006a1324 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #29 pc 006a0f15 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #30 pc 006a1256 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #31 pc 0066a615 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #32 pc 0066a560 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #33 pc 0066c6a0 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #34 pc 00014af7 /system/lib/libutils.so (android::SimpleLooperCallback::handleEvent(int, int, void*)+39)
[ ] #35 pc 00015936 /system/lib/libutils.so (android::Looper::pollInner(int)+982)
[ ] #36 pc 000154d6 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+118)
[ ] #37 pc 0000ff10 /system/lib/libandroid.so (ALooper_pollOnce+96)
[ ] #38 pc 0066c7a3 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #39 pc 00668d86 /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #40 pc 0066ae7b /data/app/com.example.getappdocdirtest-W_Ha9KdK57uE2_23Zpg7QQ==/lib/x86/libflutter.so (offset 0x5c7000)
[ ] #41 pc 00071445 /system/lib/libc.so (__pthread_start(void*)+53)
[ ] #42 pc 000205db /system/lib/libc.so (__start_thread+75)
[ ] #43 pc 0001ec16 /system/lib/libc.so (__bionic_clone+70)
[ +895 ms] Service protocol connection closed.
[ +1 ms] Lost connection to device.
[ +467 ms] Updating files
[ +51 ms] DevFS sync failed. Lost connection to device: SocketException: Write failed (OS Error: An established connection was aborted by the software in your host machine.
, errno = 10053), address = 127.0.0.1, port = 50496
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing get_app_doc_dir_test...
No issues found! (ran in 2.6s)
"><pre class="notranslate"><code class="notranslate">Analyzing get_app_doc_dir_test...
No issues found! (ran in 2.6s)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] Flutter (Channel beta, v0.10.2, on Microsoft Windows [Version 10.0.17134.345], locale en-GB)
• Flutter version 0.10.2 at c:\flutter
• Framework revision d8cbb80206 (2 weeks ago), 2018-10-26 01:30:21 -0400
• Engine revision 6c2ade9fa2
• Dart version 2.1.0-dev.8.0.flutter-bf26f760b1
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:\Users\Barry\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
• Java version Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
• All Android licenses accepted.
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
[√] IntelliJ IDEA Ultimate Edition (version 2018.2)
• IntelliJ at C:\Users\Barry\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\182.4892.20
• Flutter plugin version 30.0.2
• Dart plugin version 182.5124
[√] VS Code, 32-bit edition
• VS Code at C:\Program Files (x86)\Microsoft VS Code
• Flutter extension version 2.18.0
[√] VS Code, 64-bit edition (version 1.27.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 2.18.0
[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">[√] Flutter (Channel beta, v0.10.2, on Microsoft Windows [Version 10.0.17134.345], locale en-GB)
• Flutter version 0.10.2 at c:\flutter
• Framework revision d8cbb80206 (2 weeks ago), 2018-10-26 01:30:21 -0400
• Engine revision 6c2ade9fa2
• Dart version 2.1.0-dev.8.0.flutter-bf26f760b1
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:\Users\Barry\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
• Java version Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
• All Android licenses accepted.
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
[√] IntelliJ IDEA Ultimate Edition (version 2018.2)
• IntelliJ at C:\Users\Barry\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\182.4892.20
• Flutter plugin version 30.0.2
• Dart plugin version 182.5124
[√] VS Code, 32-bit edition
• VS Code at C:\Program Files (x86)\Microsoft VS Code
• Flutter extension version 2.18.0
[√] VS Code, 64-bit edition (version 1.27.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 2.18.0
[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
! Doctor found issues in 1 category.
</code></pre></div> | <h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Add an admob bottom banner.</li>
<li>Add a floating action button to the scaffold.</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1326504/35255268-145225e2-ffa3-11e7-8eb6-0a5a2fa06e93.png"><img width="399" alt="screen shot 2018-01-22 at 6 33 40 pm" src="https://user-images.githubusercontent.com/1326504/35255268-145225e2-ffa3-11e7-8eb6-0a5a2fa06e93.png" style="max-width: 100%;"></a></p>
<p dir="auto">The Scaffold does not take into account the height of the advertising when positioning the advertising like it does with the snackbar.</p>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="brandons-mbp:economy branflake2267$ flutter doctor
[✓] Flutter (on Mac OS X 10.13.2 17C205, locale en-US, channel master)
• Flutter version unknown at /Users/branflake2267/git/flutter
• Framework revision 7ffcce84a2 (3 days ago), 2018-01-19 14:59:16 -0800
• Engine revision e45eb692b1
• Tools Dart version 2.0.0-dev.16.0
• Engine Dart version 2.0.0-edge.93d8c9fe2a2c22dc95ec85866af108cfab71ad06
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
• Android SDK at /Users/branflake2267/Library/Android/sdk
• Android NDK at /Users/branflake2267/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.3.1
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio 3.0.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.3.1)
• Flutter plugin version 20.0.3
• Dart plugin version 173.3942.31
[✓] IntelliJ IDEA Community Edition (version 2017.2.5)
• Flutter plugin version 17.0
• Dart plugin version 172.4155.35
[✓] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)"><pre class="notranslate"><code class="notranslate">brandons-mbp:economy branflake2267$ flutter doctor
[✓] Flutter (on Mac OS X 10.13.2 17C205, locale en-US, channel master)
• Flutter version unknown at /Users/branflake2267/git/flutter
• Framework revision 7ffcce84a2 (3 days ago), 2018-01-19 14:59:16 -0800
• Engine revision e45eb692b1
• Tools Dart version 2.0.0-dev.16.0
• Engine Dart version 2.0.0-edge.93d8c9fe2a2c22dc95ec85866af108cfab71ad06
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
• Android SDK at /Users/branflake2267/Library/Android/sdk
• Android NDK at /Users/branflake2267/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.3.1
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio 3.0.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.3.1)
• Flutter plugin version 20.0.3
• Dart plugin version 173.3942.31
[✓] IntelliJ IDEA Community Edition (version 2017.2.5)
• Flutter plugin version 17.0
• Dart plugin version 172.4155.35
[✓] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
</code></pre></div> | 0 |
<ul dir="auto">
<li>VSCode Version: 1.0.0</li>
<li>OS Version: 10.11.4</li>
</ul>
<p dir="auto">Using mocha, es6 and chai with vs code does not debug properly.</p>
<ol dir="auto">
<li>Breakpoints in tests do not work properly, they may fire but in wrong place.</li>
<li>Value inspector does not show local variables defined using let</li>
<li>Debugging ES6 files, local variables do not show nor can you view values of function parameters.</li>
</ol>
<p dir="auto">Steps to Reproduce:</p>
<p dir="auto">See attached file.</p>
<p dir="auto">set breakpoint in calc.js.<br>
when breakpoint hits and you hover over it shows nothing.<br>
typing "value1" in the console states undefined.</p>
<p dir="auto">set breakpoint in test that will call the calc function, a breakpoint hits but not on breakpoint position.<br>
also can not see local values.<br>
<a href="https://github.com/Microsoft/vscode/files/234769/test.zip">test.zip</a></p> | <ul dir="auto">
<li>VSCode Version: 1.0.0</li>
<li>OS Version: Mac OS 10.11.3</li>
</ul>
<p dir="auto">Setup Steps:</p>
<ol dir="auto">
<li>Download and expand <a href="https://github.com/Microsoft/vscode/files/233815/NodeJsWithBabelDebuggingExample.ZIP">NodeJsWithBabelDebuggingExample.ZIP</a><br>
into a local folder.</li>
<li>Open the Terminal and point it to the folder from Step 1.</li>
<li>Run <code class="notranslate">npm install</code> (to install the Babel dependencies).</li>
<li>Run <code class="notranslate">npm start</code> (to demonstrate that the project is working Node program) which should produce a few lines of output and no errors.</li>
</ol>
<p dir="auto">Steps to Reproduce (on Mac OS):</p>
<ol dir="auto">
<li>In VS Code, open the folder created in the steps above.</li>
<li>Press F5 to start debugging the program.</li>
<li>Observe the debugger break at line 1 of ./index.js, which is a comment. (This is the first sign of trouble.)</li>
<li>Repeatedly press F10 (to step) and observe the debugger break on various other lines of ./index.js that have nothing to do with the code being executed.</li>
</ol>
<p dir="auto">Apparently, the inline source map generated by Babel is either being missed, ignored, or misinterpreted. It is also possible that the source map may be faulty, but seeing as a similar setup using other tools (such as Chrome Dev Tools) results in accurate debugging (and only when the source map is supplied) suggests that this is not the case.</p>
<p dir="auto">Btw, VS Code gives zero feedback (as far as I can see) as to whether a source map was found and/or is being used, making it almost impossible to diagnose this type of trouble.</p>
<p dir="auto">A few questions:</p>
<ol dir="auto">
<li>Have a done something wrong in this setup? Is there something wrong or missing in my launch.json or package.json (where the Babel settings are)?</li>
<li>Are there some diagnostics that I can enable in VS Code to help determine what is going wrong?</li>
<li>Should I even expect to be able to successfully perform source-level debugging of dynamically-transpiled code with VS Code like this, or not? (Other tools can do it, so I will be disappointed if this is not a supported use-case for VS Code.)</li>
</ol>
<p dir="auto">The VS Code web pages (<a href="https://code.visualstudio.com/docs/editor/debugging" rel="nofollow">https://code.visualstudio.com/docs/editor/debugging</a>) certainly make this sound like I should reasonably expect debugging to work:</p>
<blockquote>
<p dir="auto">Source maps can be generated with two kinds of inlining:</p>
<ul dir="auto">
<li>Inlined source maps: the generated JavaScript file contains the source map as a data URI at the end (instead of referencing the source map through a file URI).</li>
<li>Inlined source: the source map contains the original source (instead of referencing the source through a path).</li>
</ul>
<p dir="auto">VS Code supports both the inlined source maps and the inlined source.</p>
</blockquote>
<p dir="auto">As far as I know, setting <code class="notranslate">{ "sourceMaps": "inline" }</code> in the Babel configuration (which this project does via package.json) adheres to the first case ("inlined source maps") which the above quote from the VS Code web pages seems to suggest is supported.</p>
<p dir="auto">Thanks.</p> | 1 |
<pre class="notranslate">Change cadcd534d525 broke the freebsd-amd64 build:
<a href="http://godashboard.appspot.com/log/86327d8b97ad440e9c7edcb115129297adf10d52fbad21ef1aa9d0a8f29f7210" rel="nofollow">http://godashboard.appspot.com/log/86327d8b97ad440e9c7edcb115129297adf10d52fbad21ef1aa9d0a8f29f7210</a>
gopack grc _test/http.a _gotest_.6
2011/04/06 07:13:54 http: invalid Content-Length of "intentional gibberish"
sent
--- FAIL: http_test.Test304Responses (0.00 seconds)
expected no TransferEncoding; got [chunked]
got unexpected body "127.0.0.1:32341"
FAIL
gotest: "./6.out -test.short=true -test.timeout=120" failed: exit status 1
Except that test never such a reply, suggesting the Get(ts.URL) in that test is re-using
the DefaultTransport and getting a response from the wrong server. :(</pre> | <p dir="auto">by <strong>zhaihj233</strong>:</p>
<pre class="notranslate">var base int64 = int64(header.IndexLength + 0x01)
for i := 0; i < int(header.Length); i++ {
mbuffer := make([]byte, indexs[i].length)
f.ReadAt(mbuffer, int64(indexs[i].offset)+base)
}
In this example, f is *os.File which point to a localfile. "indexs" is an
index array which records offset and length of the data in f.
What is the expected output?
mbuffer should be collected by GC.
What do you see instead?
Memory usage continues raising, even adding runtime.GC() can not do any help
Which compiler are you using (5g, 6g, 8g, gccgo)?
8g
Which operating system are you using?
Windows 7 x64
Which version are you using? (run 'go version')
GO VER 1.0.2
Please provide any additional information below.
When compiling the same program with 6g, everything seems to be fine.</pre> | 0 |
<p dir="auto">According to the documents, as well as the behavior of previous versions, <code class="notranslate">JULIA_LOAD_PATH</code> shall append to <code class="notranslate">LOAD_PATH</code> instead of replace it, however, with Julia 1.0.1, this is not the case. Below is a minimal example, (<code class="notranslate">julia-1.0</code> is just an alias to my Juila 1.0.1 installation, I have multiple versions on the system).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ julia-1.0 -e '@show LOAD_PATH'
LOAD_PATH = ["@", "@v#.#", "@stdlib"]
$ JULIA_LOAD_PATH=/usr/local/julia julia-1.0 -e '@show LOAD_PATH'
LOAD_PATH = ["/usr/local/julia"]"><pre class="notranslate"><code class="notranslate">$ julia-1.0 -e '@show LOAD_PATH'
LOAD_PATH = ["@", "@v#.#", "@stdlib"]
$ JULIA_LOAD_PATH=/usr/local/julia julia-1.0 -e '@show LOAD_PATH'
LOAD_PATH = ["/usr/local/julia"]
</code></pre></div> | <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" _
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0-dev.1116 (2016-10-25 02:18 UTC)
_/ |\__'_|_|_|\__'_| | Commit 9a2f0f1* (10 days old master)
|__/ | x86_64-pc-linux-gnu
julia> (==).(Real[1],[2])
1-element Array{Real,1}:
false
julia> Real[1].==[2]
1-element BitArray{1}:
false"><pre class="notranslate"> _
_ _ <span class="pl-c1">_</span>(_)_ <span class="pl-k">|</span> A fresh approach to technical computing
(_) <span class="pl-k">|</span> (_) (_) <span class="pl-k">|</span> Documentation<span class="pl-k">:</span> http<span class="pl-k">:</span><span class="pl-k">//</span>docs<span class="pl-k">.</span>julialang<span class="pl-k">.</span>org
_ _ _<span class="pl-k">|</span> <span class="pl-k">|</span>_ __ _ <span class="pl-k">|</span> Type <span class="pl-s"><span class="pl-pds">"</span>?help<span class="pl-pds">"</span></span> <span class="pl-k">for</span> help.
<span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span><span class="pl-k">/</span> <span class="pl-s"><span class="pl-pds"><span class="pl-c1">_</span>`</span> | |</span>
<span class="pl-s"> | | |_| | | | (_| | | Version 0.6.0-dev.1116 (2016-10-25 02:18 UTC)</span>
<span class="pl-s"> _/ |<span class="pl-cce">\_</span>_'_|_|_|<span class="pl-cce">\_</span>_'_| | Commit 9a2f0f1* (10 days old master)</span>
<span class="pl-s">|__/ | x86_64-pc-linux-gnu</span>
<span class="pl-s"></span>
<span class="pl-s">julia> (==).(Real[1],[2])</span>
<span class="pl-s">1-element Array{Real,1}:</span>
<span class="pl-s"> false</span>
<span class="pl-s"></span>
<span class="pl-s">julia> Real[1].==[2]</span>
<span class="pl-s">1-element BitArray{1}:</span>
<span class="pl-s"> false</span></pre></div>
<p dir="auto">Shouldn't both return the same type? Preferably a <code class="notranslate">BitArray</code>.</p> | 0 |
<p dir="auto">Hello,</p>
<p dir="auto">I have the same bug as this user.</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/47423172/tensorflow-why-does-avg-pool-ignore-one-stride-dimension" rel="nofollow">https://stackoverflow.com/questions/47423172/tensorflow-why-does-avg-pool-ignore-one-stride-dimension</a></p>
<p dir="auto">My version is uo-to-date</p>
<p dir="auto">Have I written custom code: Yes<br>
OS Platform and Distribution: Linux Mint 18.3, codename "Sylvia"<br>
TensorFlow installed from Tensorflow Website<br>
TensorFlow version 14.1.0<br>
Bazel version N/A<br>
CUDA/cuDNN version N/A<br>
GPU model and memory GeForce 940MX<br>
Exact command to reproduce: see link</p> | <h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: Yes</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:Linux Ubuntu 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: binary (conda-tensorflow-gpu)</li>
<li><strong>TensorFlow version (use command below)</strong>: <code class="notranslate">b'unknown' 1.3.0</code></li>
<li><strong>Python version</strong>: 3.6</li>
<li><strong>Bazel version (if compiling from source)</strong>: N/A</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: N/A</li>
<li><strong>CUDA/cuDNN version</strong>: 9/7</li>
<li><strong>GPU model and memory</strong>: GeForce GTX 1050 Ti</li>
<li><strong>Exact command to reproduce</strong>:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
x = tf.get_variable('x', shape=(100, 32, 32, 64),
initializer=tf.constant_initializer(5), dtype=tf.float32)
ksize = (1, 2, 2, 2)
strides = (1, 2, 2, 2)
max_pool = tf.nn.max_pool(x, ksize, strides, padding='SAME')
avg_pool = tf.nn.avg_pool(x, ksize, strides, padding='SAME')
print(max_pool.shape)
print(avg_pool.shape)"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
x = tf.get_variable('x', shape=(100, 32, 32, 64),
initializer=tf.constant_initializer(5), dtype=tf.float32)
ksize = (1, 2, 2, 2)
strides = (1, 2, 2, 2)
max_pool = tf.nn.max_pool(x, ksize, strides, padding='SAME')
avg_pool = tf.nn.avg_pool(x, ksize, strides, padding='SAME')
print(max_pool.shape)
print(avg_pool.shape)
</code></pre></div>
<p dir="auto">The unexpected output is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(100, 16, 16, 32)
(100, 16, 16, 64)"><pre class="notranslate"><code class="notranslate">(100, 16, 16, 32)
(100, 16, 16, 64)
</code></pre></div>
<p dir="auto">It says <a href="https://github.com/Hvass-Labs/TensorFlow-Tutorials/issues/19#issuecomment-274249942" data-hovercard-type="issue" data-hovercard-url="/Hvass-Labs/TensorFlow-Tutorials/issues/19/hovercard">here</a> that first and last stride dimension must be 1, but apparently it isn't implemented like this. If this is a feature, there should be consistent behaviour and documentation.</p>
<p dir="auto">Link to StackOverflow question: <a href="https://stackoverflow.com/q/47423172/2397253" rel="nofollow">https://stackoverflow.com/q/47423172/2397253</a></p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=pedrosans" rel="nofollow">Pedro Santos</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5120?redirect=false" rel="nofollow">SPR-5120</a></strong> and commented</p>
<p dir="auto">The spring scanner functionality do not work when I create my ApplicationContext from a EJB managed by JBoss. I do test the same spring application context on diferents enviroments. Just on a managed EJB on a JBoos it is not workin.</p>
<p dir="auto">EJB code<br>
appContext = new GenericApplicationContext();<br>
ClassPathBeanDefinitionScanner scanner = new ClassPathBeanDefinitionScanner(appContext);<br>
scanner.scan("com");<br>
appContext.refresh();</p>
<p dir="auto">Annotated class<br>
<code class="notranslate">@Service</code><br>
public class TransactionService {</p>
<p dir="auto">Exception<br>
ERROR: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionService' is defined</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.5</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/15061/jboss-as-sprint-int-5.0.0.GA.jar" rel="nofollow">jboss-as-sprint-int-5.0.0.GA.jar</a> (<em>35.76 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15612/jboss-spring-int-vfs.jar" rel="nofollow">jboss-spring-int-vfs.jar</a> (<em>14.52 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15382/vfs.patch" rel="nofollow">vfs.patch</a> (<em>12.14 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15386/vfs-fixes-2.patch" rel="nofollow">vfs-fixes-2.patch</a> (<em>15.39 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15387/vfs-fixes-3.patch" rel="nofollow">vfs-fixes-3.patch</a> (<em>15.66 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="398097684" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10814" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10814/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10814">#10814</a> JBoss AS 5.0 VFS handling (SPR-5120) backport 2.5.X (<em><strong>"is depended on by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398099428" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11051" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11051/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11051">#11051</a> Context Scanning doesnt work in Jboss 5 (<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="398092231" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10013" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10013/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10013">#10013</a> PathMatchingResourcePatternResolver.determineRootDir fails for jar on JBoss</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398095266" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10454" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10454/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10454">#10454</a> PersistenceUnitReader#determinePersistenceUnitRootUrl returns wrong root url on JBoss 5, causing no detection of entity beans</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/184f63f68951ed1c199dddc27a6a266f09e9e0ce/hovercard" href="https://github.com/spring-projects/spring-framework/commit/184f63f68951ed1c199dddc27a6a266f09e9e0ce"><tt>184f63f</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/10c30f0315b41cd3168a7d6c8b984a12f49c62b1/hovercard" href="https://github.com/spring-projects/spring-framework/commit/10c30f0315b41cd3168a7d6c8b984a12f49c62b1"><tt>10c30f0</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/64c46d48bb916bc52ff2f38b4f5d4a9ffb5b794c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/64c46d48bb916bc52ff2f38b4f5d4a9ffb5b794c"><tt>64c46d4</tt></a></p>
<p dir="auto">24 votes, 34 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mavarazy" rel="nofollow">Anton Oparin</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9409?redirect=false" rel="nofollow">SPR-9409</a></strong> and commented</p>
<p dir="auto">RESTTemplate receives JSON response in ISO-8859-1 encoding, and forwards it to MappingJacksonHttpMessageConverter, which can process only UTF-8 encoding.</p>
<p dir="auto">Looking at other MessageConverters they use encoding from HttpRequest, which should also be done in MappingJacksonHttpMessageConverter.</p>
<p dir="auto">From my point of view this should be a part of generic logic, and not to be duplicated in every HttpMessageConverter.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p> | 0 |
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<p dir="auto">this patch begins to provide this behavior. However a lazyloader from an expired object emits a second unnecessary load (or an unnecessary join, depending on how you look at it), and polymorphic loading breaks entirely, probably due to an incompatibility with the partial joined inheritance loader.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff -r cfdc41c75ce2e2228d71733212bbaca0fe17ce35 lib/sqlalchemy/orm/state.py
--- a/lib/sqlalchemy/orm/state.py Mon Apr 05 13:16:29 2010 -0400
+++ b/lib/sqlalchemy/orm/state.py Mon Apr 05 15:43:40 2010 -0400
@@ -262,9 +262,10 @@
if kw.get('passive') is attributes.PASSIVE_NO_FETCH:
return attributes.PASSIVE_NO_RESULT
- toload = self.expired_attributes.\
- intersection(self.unmodified)
-
+ toload = self.expired_attributes.intersection(self.unmodified).union(
+ self.unloaded.intersection(self.expire_on_missing)
+ )
+
self.manager.deferred_scalar_loader(self, toload)
# if the loader failed, or this
@@ -277,6 +278,10 @@
return ATTR_WAS_SET
@property
+ def expire_on_missing(self):
+ return set(key for key in self.manager if self.manager[key](key).impl.expire_missing)
+
+ @property
def unmodified(self):
"""Return the set of keys which have no uncommitted changes"""
diff -r cfdc41c75ce2e2228d71733212bbaca0fe17ce35 test/orm/test_expire.py
--- a/test/orm/test_expire.py Mon Apr 05 13:16:29 2010 -0400
+++ b/test/orm/test_expire.py Mon Apr 05 15:43:40 2010 -0400
@@ -425,17 +425,7 @@
assert len(u.addresses) == 2
@testing.resolve_artifact_names
- def test_joinedload_props_dontload(self):
- # relationships currently have to load separately from scalar instances.
- # the use case is: expire "addresses". then access it. lazy load
- # fires off to load "addresses", but needs foreign key or primary key
- # attributes in order to lazy load; hits those attributes, such as
- # below it hits "u.id". "u.id" triggers full unexpire operation,
- # joinedloads addresses since lazy='joined'. this is all wihtin lazy load
- # which fires unconditionally; so an unnecessary joinedload (or
- # lazyload) was issued. would prefer not to complicate lazyloading to
- # "figure out" that the operation should be aborted right now.
-
+ def test_joinedload_props_load(self):
mapper(User, users, properties={
'addresses':relationship(Address, backref='user', lazy='joined'),
})
@@ -444,11 +434,30 @@
u = sess.query(User).get(8)
sess.expire(u)
u.id
- assert 'addresses' not in u.__dict__
+ assert 'addresses' in u.__dict__
u.addresses
assert 'addresses' in u.__dict__
@testing.resolve_artifact_names
+ def test_joinedload_props_load_two(self):
+ mapper(User, users, properties={
+ 'addresses':relationship(Address, backref='user', lazy='joined'),
+ })
+ mapper(Address, addresses)
+ sess = create_session()
+ u = sess.query(User).get(8)
+ sess.expire(u)
+
+ # current bug: u.addresses unexpires attributes,
+ # eagerlaods u.addresses. lazyloader for u.addresses
+ # then runs anyway.
+ def go():
+ u.addresses
+ assert 'addresses' in u.__dict__
+ assert 'id' in u.__dict__
+ self.assert_sql_count(testing.db, go, 1)
+
+ @testing.resolve_artifact_names
def test_expire_synonym(self):
mapper(User, users, properties={
'uname': sa.orm.synonym('name')"><pre class="notranslate"><code class="notranslate">diff -r cfdc41c75ce2e2228d71733212bbaca0fe17ce35 lib/sqlalchemy/orm/state.py
--- a/lib/sqlalchemy/orm/state.py Mon Apr 05 13:16:29 2010 -0400
+++ b/lib/sqlalchemy/orm/state.py Mon Apr 05 15:43:40 2010 -0400
@@ -262,9 +262,10 @@
if kw.get('passive') is attributes.PASSIVE_NO_FETCH:
return attributes.PASSIVE_NO_RESULT
- toload = self.expired_attributes.\
- intersection(self.unmodified)
-
+ toload = self.expired_attributes.intersection(self.unmodified).union(
+ self.unloaded.intersection(self.expire_on_missing)
+ )
+
self.manager.deferred_scalar_loader(self, toload)
# if the loader failed, or this
@@ -277,6 +278,10 @@
return ATTR_WAS_SET
@property
+ def expire_on_missing(self):
+ return set(key for key in self.manager if self.manager[key](key).impl.expire_missing)
+
+ @property
def unmodified(self):
"""Return the set of keys which have no uncommitted changes"""
diff -r cfdc41c75ce2e2228d71733212bbaca0fe17ce35 test/orm/test_expire.py
--- a/test/orm/test_expire.py Mon Apr 05 13:16:29 2010 -0400
+++ b/test/orm/test_expire.py Mon Apr 05 15:43:40 2010 -0400
@@ -425,17 +425,7 @@
assert len(u.addresses) == 2
@testing.resolve_artifact_names
- def test_joinedload_props_dontload(self):
- # relationships currently have to load separately from scalar instances.
- # the use case is: expire "addresses". then access it. lazy load
- # fires off to load "addresses", but needs foreign key or primary key
- # attributes in order to lazy load; hits those attributes, such as
- # below it hits "u.id". "u.id" triggers full unexpire operation,
- # joinedloads addresses since lazy='joined'. this is all wihtin lazy load
- # which fires unconditionally; so an unnecessary joinedload (or
- # lazyload) was issued. would prefer not to complicate lazyloading to
- # "figure out" that the operation should be aborted right now.
-
+ def test_joinedload_props_load(self):
mapper(User, users, properties={
'addresses':relationship(Address, backref='user', lazy='joined'),
})
@@ -444,11 +434,30 @@
u = sess.query(User).get(8)
sess.expire(u)
u.id
- assert 'addresses' not in u.__dict__
+ assert 'addresses' in u.__dict__
u.addresses
assert 'addresses' in u.__dict__
@testing.resolve_artifact_names
+ def test_joinedload_props_load_two(self):
+ mapper(User, users, properties={
+ 'addresses':relationship(Address, backref='user', lazy='joined'),
+ })
+ mapper(Address, addresses)
+ sess = create_session()
+ u = sess.query(User).get(8)
+ sess.expire(u)
+
+ # current bug: u.addresses unexpires attributes,
+ # eagerlaods u.addresses. lazyloader for u.addresses
+ # then runs anyway.
+ def go():
+ u.addresses
+ assert 'addresses' in u.__dict__
+ assert 'id' in u.__dict__
+ self.assert_sql_count(testing.db, go, 1)
+
+ @testing.resolve_artifact_names
def test_expire_synonym(self):
mapper(User, users, properties={
'uname': sa.orm.synonym('name')
</code></pre></div> | <p dir="auto">How do we avoid session.bulk_update_mappings() generating WHERE clause with table name prefixed to the column name? Is this a bug?</p>
<p dir="auto">Please refer to the MCVE posted by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zzzeek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zzzeek">@zzzeek</a> at:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="517867451" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/4963" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/4963/hovercard?comment_id=549948846&comment_type=issue_comment" href="https://github.com/sqlalchemy/sqlalchemy/issues/4963#issuecomment-549948846">#4963 (comment)</a></p>
<p dir="auto">Following is the debug of running the same:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2021-05-06 15:01:06,697 INFO sqlalchemy.engine.base.Engine select version()
2021-05-06 15:01:06,698 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,702 INFO sqlalchemy.engine.base.Engine select current_schema()
2021-05-06 15:01:06,702 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,706 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
2021-05-06 15:01:06,706 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,708 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
2021-05-06 15:01:06,708 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,710 INFO sqlalchemy.engine.base.Engine show standard_conforming_strings
2021-05-06 15:01:06,710 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,714 INFO sqlalchemy.engine.base.Engine select relname from pg_class c join pg_namespace n on n.oid=c.relnamespace where pg_catalog.pg_table_is_visible(c.oid) and relname=%(name)s
2021-05-06 15:01:06,714 INFO sqlalchemy.engine.base.Engine {'name': 'test'}
2021-05-06 15:01:06,718 INFO sqlalchemy.engine.base.Engine
CREATE TABLE test (
test_id SERIAL NOT NULL,
col_1 INTEGER,
col_2 INTEGER,
PRIMARY KEY (test_id)
)
2021-05-06 15:01:06,718 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,724 INFO sqlalchemy.engine.base.Engine COMMIT
2021-05-06 15:01:06,728 INFO sqlalchemy.engine.base.Engine BEGIN (implicit)
2021-05-06 15:01:06,729 INFO sqlalchemy.engine.base.Engine INSERT INTO test (test_id, col_1, col_2) VALUES (%(test_id)s, %(col_1)s, %(col_2)s)
2021-05-06 15:01:06,729 INFO sqlalchemy.engine.base.Engine ({'test_id': 1, 'col_1': 1, 'col_2': None}, {'test_id': 2, 'col_1': 2, 'col_2': None}, {'test_id': 3, 'col_1': 3, 'col_2': None})
2021-05-06 15:01:06,737 INFO sqlalchemy.engine.base.Engine COMMIT
2021-05-06 15:01:06,742 INFO sqlalchemy.engine.base.Engine BEGIN (implicit)
2021-05-06 15:01:06,742 INFO sqlalchemy.engine.base.Engine UPDATE test SET col_1=%(col_1)s, col_2=%(col_2)s WHERE test.test_id = %(test_test_id)s
2021-05-06 15:01:06,743 INFO sqlalchemy.engine.base.Engine ({'col_1': 1, 'col_2': -1, 'test_test_id': 1}, {'col_1': 2, 'col_2': -2, 'test_test_id': 2}, {'col_1': 3, 'col_2': -3, 'test_test_id': 3})
2021-05-06 15:01:06,751 INFO sqlalchemy.engine.base.Engine SELECT test.col_1 AS test_col_1, test.col_2 AS test_col_2
FROM test
2021-05-06 15:01:06,751 INFO sqlalchemy.engine.base.Engine {}
Process finished with exit code 0"><pre class="notranslate"><code class="notranslate">2021-05-06 15:01:06,697 INFO sqlalchemy.engine.base.Engine select version()
2021-05-06 15:01:06,698 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,702 INFO sqlalchemy.engine.base.Engine select current_schema()
2021-05-06 15:01:06,702 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,706 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
2021-05-06 15:01:06,706 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,708 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
2021-05-06 15:01:06,708 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,710 INFO sqlalchemy.engine.base.Engine show standard_conforming_strings
2021-05-06 15:01:06,710 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,714 INFO sqlalchemy.engine.base.Engine select relname from pg_class c join pg_namespace n on n.oid=c.relnamespace where pg_catalog.pg_table_is_visible(c.oid) and relname=%(name)s
2021-05-06 15:01:06,714 INFO sqlalchemy.engine.base.Engine {'name': 'test'}
2021-05-06 15:01:06,718 INFO sqlalchemy.engine.base.Engine
CREATE TABLE test (
test_id SERIAL NOT NULL,
col_1 INTEGER,
col_2 INTEGER,
PRIMARY KEY (test_id)
)
2021-05-06 15:01:06,718 INFO sqlalchemy.engine.base.Engine {}
2021-05-06 15:01:06,724 INFO sqlalchemy.engine.base.Engine COMMIT
2021-05-06 15:01:06,728 INFO sqlalchemy.engine.base.Engine BEGIN (implicit)
2021-05-06 15:01:06,729 INFO sqlalchemy.engine.base.Engine INSERT INTO test (test_id, col_1, col_2) VALUES (%(test_id)s, %(col_1)s, %(col_2)s)
2021-05-06 15:01:06,729 INFO sqlalchemy.engine.base.Engine ({'test_id': 1, 'col_1': 1, 'col_2': None}, {'test_id': 2, 'col_1': 2, 'col_2': None}, {'test_id': 3, 'col_1': 3, 'col_2': None})
2021-05-06 15:01:06,737 INFO sqlalchemy.engine.base.Engine COMMIT
2021-05-06 15:01:06,742 INFO sqlalchemy.engine.base.Engine BEGIN (implicit)
2021-05-06 15:01:06,742 INFO sqlalchemy.engine.base.Engine UPDATE test SET col_1=%(col_1)s, col_2=%(col_2)s WHERE test.test_id = %(test_test_id)s
2021-05-06 15:01:06,743 INFO sqlalchemy.engine.base.Engine ({'col_1': 1, 'col_2': -1, 'test_test_id': 1}, {'col_1': 2, 'col_2': -2, 'test_test_id': 2}, {'col_1': 3, 'col_2': -3, 'test_test_id': 3})
2021-05-06 15:01:06,751 INFO sqlalchemy.engine.base.Engine SELECT test.col_1 AS test_col_1, test.col_2 AS test_col_2
FROM test
2021-05-06 15:01:06,751 INFO sqlalchemy.engine.base.Engine {}
Process finished with exit code 0
</code></pre></div>
<p dir="auto"><strong>Versions</strong></p>
<ul dir="auto">
<li>OS: MacOS Catalina</li>
<li>Python: 3.6</li>
<li>SQLAlchemy: 1.3.15</li>
<li>Database: Postgres</li>
<li>DBAPI:</li>
</ul>
<p dir="auto">Duplicating my comment at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="517867451" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/4963" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/4963/hovercard?comment_id=833903725&comment_type=issue_comment" href="https://github.com/sqlalchemy/sqlalchemy/issues/4963#issuecomment-833903725">#4963 (comment)</a> below:</p>
<p dir="auto">Here is the exact line:</p>
<p dir="auto"><code class="notranslate">2021-05-06 15:01:06,742 INFO sqlalchemy.engine.base.Engine UPDATE test SET col_1=%(col_1)s, col_2=%(col_2)s WHERE test.test_id = %(test_test_id)s</code></p>
<p dir="auto">When I tried changing the PK to id instead of test_id, the where clause changed to:</p>
<p dir="auto"><code class="notranslate">WHERE test.id = %(test_id)s</code></p>
<p dir="auto">In both the cases, the bulk update fails because of mismatching column names. Even with introducing a name attribute as below, the issue still persists.</p>
<p dir="auto"><code class="notranslate">test_id = Column(Integer, name="test_id", nullable=False, primary_key=True)</code></p>
<p dir="auto">Am I missing something?</p> | 0 |
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> @code_typed true ^ -1
CodeInfo(
1 ─ %1 = Base.slt_int(p, 0)::Bool
└── goto #5 if not %1
2 ─ %3 = Base.not_int(x)::Bool
└── goto #4 if not %3
3 ─ invoke Base.throw_domerr_powbysq(_2::Bool, _3::Int64)::Union{}
└── unreachable
4 ─ nothing::Nothing
5 ┄ %8 = (p === 0)::Bool
│ %9 = Base.or_int(%8, x)::Bool
└── goto #6
6 ─ return %9
) => Bool
# as expected
julia> a = true ^ 1; println(a, " ", typeof(a))
true Bool
# ???
julia> a = true ^ -1; println(a, " ", typeof(a))
1.0 Float64
# strangely, these forms work
julia> a = true ^ Int64(-1); println(a, " ", typeof(a))
true Bool
julia> a = true ^ -Int64(1); println(a, " ", typeof(a))
true Bool"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-c1">@code_typed</span> <span class="pl-c1">true</span> <span class="pl-k">^</span> <span class="pl-k">-</span><span class="pl-c1">1</span>
<span class="pl-c1">CodeInfo</span>(
<span class="pl-c1">1</span> ─ <span class="pl-k">%</span><span class="pl-c1">1</span> <span class="pl-k">=</span> Base<span class="pl-k">.</span><span class="pl-c1">slt_int</span>(p, <span class="pl-c1">0</span>)<span class="pl-k">::</span><span class="pl-c1">Bool</span>
└── goto <span class="pl-c"><span class="pl-c">#</span>5 if not %1</span>
<span class="pl-c1">2</span> ─ <span class="pl-k">%</span><span class="pl-c1">3</span> <span class="pl-k">=</span> Base<span class="pl-k">.</span><span class="pl-c1">not_int</span>(x)<span class="pl-k">::</span><span class="pl-c1">Bool</span>
└── goto <span class="pl-c"><span class="pl-c">#</span>4 if not %3</span>
<span class="pl-c1">3</span> ─ invoke Base<span class="pl-k">.</span><span class="pl-c1">throw_domerr_powbysq</span>(_2<span class="pl-k">::</span><span class="pl-c1">Bool</span>, _3<span class="pl-k">::</span><span class="pl-c1">Int64</span>)<span class="pl-k">::</span><span class="pl-c1">Union{}</span>
└── unreachable
<span class="pl-c1">4</span> ─ <span class="pl-c1">nothing</span><span class="pl-k">::</span><span class="pl-c1">Nothing</span>
<span class="pl-c1">5</span> ┄ <span class="pl-k">%</span><span class="pl-c1">8</span> <span class="pl-k">=</span> (p <span class="pl-k">===</span> <span class="pl-c1">0</span>)<span class="pl-k">::</span><span class="pl-c1">Bool</span>
│ <span class="pl-k">%</span><span class="pl-c1">9</span> <span class="pl-k">=</span> Base<span class="pl-k">.</span><span class="pl-c1">or_int</span>(<span class="pl-k">%</span><span class="pl-c1">8</span>, x)<span class="pl-k">::</span><span class="pl-c1">Bool</span>
└── goto <span class="pl-c"><span class="pl-c">#</span>6</span>
<span class="pl-c1">6</span> ─ <span class="pl-k">return</span> <span class="pl-k">%</span><span class="pl-c1">9</span>
) <span class="pl-k">=></span> Bool
<span class="pl-c"><span class="pl-c">#</span> as expected</span>
julia<span class="pl-k">></span> a <span class="pl-k">=</span> <span class="pl-c1">true</span> <span class="pl-k">^</span> <span class="pl-c1">1</span>; <span class="pl-c1">println</span>(a, <span class="pl-s"><span class="pl-pds">"</span> <span class="pl-pds">"</span></span>, <span class="pl-c1">typeof</span>(a))
<span class="pl-c1">true</span> Bool
<span class="pl-c"><span class="pl-c">#</span> ???</span>
julia<span class="pl-k">></span> a <span class="pl-k">=</span> <span class="pl-c1">true</span> <span class="pl-k">^</span> <span class="pl-k">-</span><span class="pl-c1">1</span>; <span class="pl-c1">println</span>(a, <span class="pl-s"><span class="pl-pds">"</span> <span class="pl-pds">"</span></span>, <span class="pl-c1">typeof</span>(a))
<span class="pl-c1">1.0</span> Float64
<span class="pl-c"><span class="pl-c">#</span> strangely, these forms work</span>
julia<span class="pl-k">></span> a <span class="pl-k">=</span> <span class="pl-c1">true</span> <span class="pl-k">^</span> <span class="pl-c1">Int64</span>(<span class="pl-k">-</span><span class="pl-c1">1</span>); <span class="pl-c1">println</span>(a, <span class="pl-s"><span class="pl-pds">"</span> <span class="pl-pds">"</span></span>, <span class="pl-c1">typeof</span>(a))
<span class="pl-c1">true</span> Bool
julia<span class="pl-k">></span> a <span class="pl-k">=</span> <span class="pl-c1">true</span> <span class="pl-k">^</span> <span class="pl-k">-</span><span class="pl-c1">Int64</span>(<span class="pl-c1">1</span>); <span class="pl-c1">println</span>(a, <span class="pl-s"><span class="pl-pds">"</span> <span class="pl-pds">"</span></span>, <span class="pl-c1">typeof</span>(a))
<span class="pl-c1">true</span> Bool</pre></div> | <p dir="auto">Cross-posting from discourse: <a href="https://discourse.julialang.org/t/incorrect-results-from-which-and-code-warntype-for-literal-powers/2630" rel="nofollow">https://discourse.julialang.org/t/incorrect-results-from-which-and-code-warntype-for-literal-powers/2630</a></p>
<p dir="auto">I'm trying to use the new literal exponent behavior introduced in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="206335084" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/20530" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/20530/hovercard" href="https://github.com/JuliaLang/julia/pull/20530">#20530</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="211863927" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/20889" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/20889/hovercard" href="https://github.com/JuliaLang/julia/pull/20889">#20889</a>. I think I'm correctly overloading <code class="notranslate">literal_pow</code>, but various macros like <code class="notranslate">@which</code>, <code class="notranslate">@code_warntype</code> and others all seem to be showing me the wrong behavior.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> versioninfo()
Julia Version 0.6.0-pre.alpha.136
Commit 6eeabd8 (2017-03-13 00:18 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i7-2860QM CPU @ 2.50GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, sandybridge)
julia> immutable MyType
x::Int
end
julia> import Base: literal_pow
julia> literal_pow(^, m::MyType, ::Type{Val{p}}) where p = m.x + p
literal_pow (generic function with 6 methods)
julia> m = MyType(1)
MyType(1)
julia> m^2
3"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-c1">versioninfo</span>()
Julia Version <span class="pl-c1">0.6</span>.<span class="pl-c1">0</span><span class="pl-k">-</span>pre<span class="pl-k">.</span>alpha.<span class="pl-c1">136</span>
Commit <span class="pl-c1">6</span>eeabd8 (<span class="pl-c1">2017</span><span class="pl-k">-</span><span class="pl-c1">03</span><span class="pl-k">-</span><span class="pl-c1">13</span> <span class="pl-c1">00</span><span class="pl-k">:</span><span class="pl-c1">18</span> UTC)
Platform Info<span class="pl-k">:</span>
OS<span class="pl-k">:</span> macOS (x86_64<span class="pl-k">-</span>apple<span class="pl-k">-</span>darwin13.<span class="pl-c1">4.0</span>)
CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Core</span>(TM) i7<span class="pl-k">-</span><span class="pl-c1">2860</span>QM CPU @ <span class="pl-c1">2.50</span>GHz
WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span>
BLAS<span class="pl-k">:</span> libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK<span class="pl-k">:</span> libopenblas64_
LIBM<span class="pl-k">:</span> libopenlibm
LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">3.9</span>.<span class="pl-c1">1</span> (ORCJIT, sandybridge)
julia<span class="pl-k">></span> immutable MyType
x<span class="pl-k">::</span><span class="pl-c1">Int</span>
<span class="pl-k">end</span>
julia<span class="pl-k">></span> <span class="pl-k">import</span> Base<span class="pl-k">:</span> literal_pow
julia<span class="pl-k">></span> <span class="pl-en">literal_pow</span>(<span class="pl-k">^</span>, m<span class="pl-k">::</span><span class="pl-c1">MyType</span>, <span class="pl-k">::</span><span class="pl-c1">Type{Val{p}}</span>) <span class="pl-k">where</span> p <span class="pl-k">=</span> m<span class="pl-k">.</span>x <span class="pl-k">+</span> p
literal_pow (generic <span class="pl-k">function</span> with <span class="pl-c1">6</span> methods)
julia<span class="pl-k">></span> m <span class="pl-k">=</span> <span class="pl-c1">MyType</span>(<span class="pl-c1">1</span>)
<span class="pl-c1">MyType</span>(<span class="pl-c1">1</span>)
julia<span class="pl-k">></span> m<span class="pl-k">^</span><span class="pl-c1">2</span>
<span class="pl-c1">3</span></pre></div>
<p dir="auto">That's all good so far. But none of the introspection macros seem to work for <code class="notranslate">m^2</code>:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> @which m^2
^(x, p::Integer) in Base at intfuncs.jl:196
julia> @code_warntype m^2
Variables:
#self#::Base.#^
x::MyType
p::Int64
Body:
begin
return $(Expr(:invoke, MethodInstance for power_by_squaring(::MyType, ::Int64), :(Base.power_by_squaring), :(x), :(p)))
end::Any
julia> @code_lowered m^2
CodeInfo(:(begin
nothing
return (Base.power_by_squaring)(x, p)
end))
julia> using Base.Test
julia> @inferred m^2
ERROR: MethodError: no method matching *(::MyType, ::MyType)
Closest candidates are:
*(::Any, ::Any, ::Any, ::Any...) at operators.jl:424
Stacktrace:
[1] power_by_squaring(::MyType, ::Int64) at ./intfuncs.jl:166
[2] ^(::MyType, ::Int64) at ./intfuncs.jl:196"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-c1">@which</span> m<span class="pl-k">^</span><span class="pl-c1">2</span>
<span class="pl-k">^</span>(x, p<span class="pl-k">::</span><span class="pl-c1">Integer</span>) <span class="pl-k">in</span> Base at intfuncs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">196</span>
julia<span class="pl-k">></span> <span class="pl-c1">@code_warntype</span> m<span class="pl-k">^</span><span class="pl-c1">2</span>
Variables<span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span>self#::Base.#^</span>
x<span class="pl-k">::</span><span class="pl-c1">MyType</span>
p<span class="pl-k">::</span><span class="pl-c1">Int64</span>
Body<span class="pl-k">:</span>
<span class="pl-k">begin</span>
<span class="pl-k">return</span> <span class="pl-k">$</span>(<span class="pl-c1">Expr</span>(<span class="pl-c1">:invoke</span>, MethodInstance <span class="pl-k">for</span> <span class="pl-c1">power_by_squaring</span>(<span class="pl-k">::</span><span class="pl-c1">MyType</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>), :(Base<span class="pl-k">.</span>power_by_squaring), :(x), :(p)))
<span class="pl-k">end</span><span class="pl-k">::</span><span class="pl-c1">Any</span>
julia<span class="pl-k">></span> <span class="pl-c1">@code_lowered</span> m<span class="pl-k">^</span><span class="pl-c1">2</span>
<span class="pl-c1">CodeInfo</span>(:(<span class="pl-k">begin</span>
<span class="pl-c1">nothing</span>
<span class="pl-k">return</span> (Base<span class="pl-k">.</span>power_by_squaring)(x, p)
<span class="pl-k">end</span>))
julia<span class="pl-k">></span> <span class="pl-k">using</span> Base<span class="pl-k">.</span>Test
julia<span class="pl-k">></span> <span class="pl-c1">@inferred</span> m<span class="pl-k">^</span><span class="pl-c1">2</span>
ERROR<span class="pl-k">:</span> MethodError<span class="pl-k">:</span> no method matching <span class="pl-k">*</span>(<span class="pl-k">::</span><span class="pl-c1">MyType</span>, <span class="pl-k">::</span><span class="pl-c1">MyType</span>)
Closest candidates are<span class="pl-k">:</span>
<span class="pl-k">*</span>(<span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Any...</span>) at operators<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">424</span>
Stacktrace<span class="pl-k">:</span>
[<span class="pl-c1">1</span>] <span class="pl-c1">power_by_squaring</span>(<span class="pl-k">::</span><span class="pl-c1">MyType</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>intfuncs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">166</span>
[<span class="pl-c1">2</span>] <span class="pl-k">^</span>(<span class="pl-k">::</span><span class="pl-c1">MyType</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>intfuncs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">196</span></pre></div>
<p dir="auto">are the special lowering rules not being applied inside these macros?</p> | 1 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="318464008" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/11137" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/11137/hovercard" href="https://github.com/matplotlib/matplotlib/pull/11137">#11137</a> deprecated the kwargs <code class="notranslate">*min/*max</code> of <code class="notranslate">set_*lim</code> (after some disussion there and in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="325690991" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/11293" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/11293/hovercard" href="https://github.com/matplotlib/matplotlib/pull/11293">#11293</a>).</p>
<p dir="auto"><a href="https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.axis.html" rel="nofollow">Axes.axis</a> uses the <code class="notranslate">*min</code>, <code class="notranslate">*max</code> parameter names as well. Currently, this does not support <code class="notranslate">left, right, bottom, top</code> at all.</p>
<p dir="auto">This is an inconsistency within the current API, and if we're serious with the change <code class="notranslate">Axes.axis()</code> whould have to be changes as well.</p> | <h3 dir="auto">Bug report</h3>
<p dir="auto">I wrote a little script that creates graphs with matplotlib library, unfortunately, I am getting the exception below when I run that code... I couldn't find any documentation about how to fix it..</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests
import logging
import datetime
import time
from time import sleep
import sys
import paramiko
import csv
import re
import threading
import optparse
import json
import os
import shutil
import matplotlib
matplotlib.use('agg')
from matplotlib import pyplot as plt
from matplotlib import style
import numpy as np
#TODO -
'''
1. Creating graphs every hour
2. run script with NEO process + sending REST API in background+ generating reports.
3. sending the graphs via email
'''
#consts
global_csv_path = str(os.path.abspath(__file__)).split("script")[0] + "csv" + os.sep
global_graphs_path = str(os.path.abspath(__file__)).split("script")[0] + "graphs" + os.sep
global_ram_path = os.path.join(global_csv_path, 'RestAPI_loop_ram.csv')
global_cpu_path = os.path.join(global_csv_path, 'RestAPI_loop_cpu.csv')
global_requests_path = os.path.join(global_csv_path, 'RestAPI_loop_requests.csv')
counter = 0
stop = False
total = 0
ufm_processes_name_list = ['mysqld','opensm','ModelMain','periodic_report_runner','unhealthy_ports_main','ibpm','UFMHealthConfiguration']
def create_ufm_health_report(ip, username, password):
counter = 1
url = 'http://$ip/ufmRest/reports/Fabric_Health'
url = url.replace('$ip',ip)
ufm_payload =r"""
{
"duplicate_nodes": true,
"map_guids_desc": false,
"ufm_alarms": true,
"sm_state": true,
"firmware": true,
"cables": false,
"non_opt_links": true,
"non_opt_speed_width": true,
"link_speed": "ALL",
"link_width": "ALL",
"eye_open": false,
"duplicate_zero_and_lids": true
}
"""
while not stop:
logging.info( str(counter) + "# Sending Fabric Health Report...")
r = requests.post(url = url, auth=(username, password), data=ufm_payload)
if str(r.status_code) == '202':
logging.info("Fabric Health succeeded... ")
else:
logging.error("Fabric Health Failed... status code equals {}".format(str(r.status_code)))
counter+=1
def creating_directory(path):
logging.debug("Start to create directory inside " + str(path))
#Try to remove backslash from the end:
path = path.rstrip()
try:
if os.path.exists(path):
shutil.rmtree(path)
os.mkdir(path)
except OSError as ex:
logging.error("Creation of the directory failed" +str(ex))
sys.exit(1)
else:
logging.info("Successfully created the directory %s " % path)
def findRegex(output, regex_search):
pattern =re.compile(pattern=regex_search)
matches_list = pattern.findall(source=output)
if len(matches_list) > 0:
logging.debug("Regex:" + regex_search + " Was found!")
return matches_list
else:
logging.critical("Regex was not found!:" + regex_search )
return []
def createshell(ssh):
shell = ssh.invoke_shell()
shell.settimeout(0.5)
shell.recv(1024)
#time.sleep(10)
return shell
def run_par_cmd(cmd, expect, shell):
'''
:param shell:
:param cmd: cmd command like ' show version'
:param expect: string to look for like '
:return: 0 if the expected string was found in output.
'''
# sleeping for 3 seconds to the command will be executed after shell prompt is printed.
shell.send(cmd + '\n')
out = ''
while True:
try:
tmp = shell.recv(1024)
if not tmp:
break
except Exception as e:
break
out += tmp.decode("utf-8")
ansi_escape = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
out = ansi_escape.sub('', out)
if expect not in out:
return (1, out)
return (0, out)
def SSHConnect(ip,username, passowrd):
ssh = paramiko.SSHClient()
logging.info(msg="Open SSH Client to :" + str(ip))
try:
ssh.set_missing_host_key_policy(policy=paramiko.AutoAddPolicy())
ssh.connect(ip, port=22, username=username, password=passowrd, allow_agent=False, look_for_keys=False)
except Exception as ex:
logging.error(msg="SSH Client wasn't established!")
sys.exit(0)
return ssh
def ChangeToShellMode(shell):
#result should be '0'
result = run_enable_configure_terminal(shell)
if int(result) != 0:
logging.error("Can't run \'_shell\' command..\n" + "exiting")
exit(1)
else:
command = "_shell"
expect = '~]#'
try:
logging.info("Changing UFM APL from CLI Mode to SHELL mode")
result, output = run_par_cmd(cmd=command, expect=expect, shell=shell)
except Exception as ex:
logging.error("Got Exception while trying to change for SHELL mode" + str(ex))
if int(result) == 0:
logging.info("_shell command was executed successfully!")
else:
logging.error("couldn't find expected output while running shell command..\nPlease make sure License is installed!")
def get_ram_total_used(output, regex_ram, counter):
matches = findRegex(output, regex_ram)
if matches:
cpu_value_total, cpu_value_used = matches[0][2], matches[0][4]
logging.info(str(counter) + "# RAM value is :\t" + str((float(cpu_value_used)/float(cpu_value_total))*100)+'%')
return float(cpu_value_used)/float(cpu_value_total)
else:
logging.error("Couldn't retrived RAM usage according to given regex!")
return -1
def GetRAMUsage(shell ,counter):
command = r"""free -t"""
expected = 'total'
mode ='a'
regex_ram = r'([Total:]{6})(\s*)(\d*)(\s*)(\d*)'
if counter == 0:
mode = 'w'
#file = os.path.realpath(__file__) + os.sep + '..' + os.sep + os.path.join('csv' , 'RestAPI_loop_ram.csv')
with open(global_ram_path, mode, newline='') as csvfile:
fieldnames = ['iteration number', 'RAM']
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
time_started = datetime.datetime.now()
try:
logging.info("Measuring RAM USage...")
result, output = run_par_cmd(cmd=command, expect=expected, shell=shell)
except Exception as ex:
logging.error("Got Exception while trying to retrieve RAM utilization , " + str(ex))
print('Error on line {}'.format(sys.exc_info()[-1].tb_lineno), type(ex).__name__, ex)
else:
if int(result) == 0:
logging.debug( str(counter) +"# get RAM command was executed successfully!")
else:
logging.error("couldn't find expected output while running \'free -t\' command..\n")
print("expected: " + expected + '\n' +"Output : \n" + output+'\n\n')
return None
ram_total = str(get_ram_total_used(output, regex_ram, counter))
if str(ram_total) == '-1' :
logging.error("Couldn't calculate RAM usage")
return None
else:
writer.writerow({'iteration number': counter, 'RAM': str(float(ram_total)*100)})
csvfile.close()
def GetCPUUsage(shell, counter):
command = r"""grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}'"""
expected = '%'
regex = r'[0-1]{1}\.{1}[0-9]*'
mode ='a'
if counter == 0:
mode = 'w'
#file = os.path.realpath(__file__) + os.sep + '..' + os.sep + os.path.join( 'csv', 'RestAPI_loop_cpu.csv')
with open(global_cpu_path ,mode=mode, newline='') as csvfile:
fieldnames = ['iteration number', 'CPU']
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
time_started = datetime.datetime.now()
try:
logging.info("Measuring CPU USage...")
result, output = run_par_cmd(cmd=command, expect=expected, shell=shell)
except Exception as ex:
logging.error("Got Exception while trying to retrieve CPU utilization , " + str(ex))
else:
if int(result) == 0:
logging.debug("CPU command was executed successfully!")
else:
logging.error("couldn't find expected output while running CPU command..")
return None
cpu_value = findRegex(output ,regex)
if cpu_value:
cpu_value_flt = float(cpu_value[0])
if 0.0 <= cpu_value_flt <= 100.0:
#if cpu_value_str <= 100.0 and cpu_value_str >= 0.0:
logging.info( str(counter)+ "# CPU usage is:\t " + str(cpu_value_flt) + '%')
writer.writerow({'iteration number': str(counter), 'CPU': str(cpu_value_flt*100)})
else:
logging.error("Not Matched Regex!\nCouldn't retrevied CPU usage according to given regex!")
else:
logging.error("Couldn't retrieved CPU usage!")
csvfile.close()
def messurement_host_performance(shells, loops):
i = 0
lst = []
while stop == False:
try:
logging.debug("Running CPU/RAM performance test #"+ str(i))
t1 = threading.Thread(target=GetCPUUsage, args=(shells[0],i))
t2 = threading.Thread(target=GetRAMUsage, args=(shells[1],i))
t1.start()
t2.start()
t1.join()
t2.join()
i+=1
except Exception as ex:
logging.error("Exception on starting thread" + ex)
logging.info("Performance measurement is completed!")
def run_enable_configure_terminal(shell):
commandsList = ['enable' , 'configure terminal']
expectedList = ['#', '(config)']
for cmd,expect in zip(commandsList,expectedList):
result, output = run_par_cmd(cmd=cmd, expect=expect, shell=shell)
if ((int(result) == 0 )and (len(output) > 0 )):
logging.info(cmd+ " command run successfully")
else:
logging.error("can't run "+cmd+" command")
sys.exit(1)
return False
def get_vmsize_of_process_by_process_id(shell, process_vm):
cmd = 'cat /proc/x/status'
cmd = str(cmd).replace('x',process_vm)
expected = 'VmSize'
regex_search='(VmSize:)(\s*)(\d*)(\s*)(kB)'
vm_size = None
result, output = run_par_cmd(cmd, expected,shell)
if ((int(result) == 0) and (len(output) > 0)):
logging.info(cmd + " command run successfully")
else:
logging.error("can't run " + cmd + " command")
sys.exit(1)
matches = findRegex(output, regex_search)
if matches:
vm_size = str(matches[0][2])
else:
logging.error("No matches were found for vmsize")
return vm_size
def continue_loop(counter,started_time, loops, time):
if time is not None:
if (started_time + datetime.timedelta(hours=int(time)) > datetime.datetime.now()):
return True
else:
return False
else:
if loops is not None:
if (int(counter) < int(loops)):
return True
else:
return False
def send_ufm_rest_get_pkey(shell, ip, username, password, private_key_path,certificate_path):
url = r'http://ip/ufmRest/resources/pkeys'
url = url.replace('ip',ip)
payload = r'''{
"pkey": "0x1",
"index0": false,
"ip_over_ib": true,
"membership": "full",
"guids": [
"98039b0300671ec0"
]
}'''
s = requests.session()
s.auth = (username, password)
if ((private_key_path is not None) and (certificate_path is not None)):
# Using SSL certification
s.cert = (certificate_path, private_key_path)
else:
logging.info("Using Basic Authentication")
try:
logging.info("creating new pkey with rest request ")
r = s.post(url=url, data=payload)
except Exception as e:
logging.error("exception in UFM rest request")
logging.info("creating new pkey with rest request was send successfully.")
return r
def run_rest_in_loop(shell,ip, prodcut_type, loops,time, username, password, private_key_path, certificate_path):
counter = 0
success = 0
time_started = datetime.datetime.now()
#file = os.path.realpath(__file__) + os.sep +'..' + os.sep + os.path.join('csv', 'RestAPI_loop_requests.csv')
with open(global_requests_path, 'w', newline='') as csvfile:
fieldnames = ['iteration number', 'time', 'Response Code', 'Succeeded']
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
while continue_loop(counter,time_started,loops,time):
request_send_time = datetime.datetime.now()
logging.info(str(counter) + "# sending Rest request")
counter += 1
try:
if (prodcut_type == 'ufm'):
r = send_ufm_rest_get_pkey(shell,ip,username,password,private_key_path,certificate_path)
elif (prodcut_type == 'neo'):
r = send_neo_ports_rest_api(ip)
#TODO - missing UFM Aplliance Rest
except Exception as ex:
logging.error("Exception on sending REST request" + str(counter) + "\n" + str(ex))
sys.exit(1)
request_end_time = datetime.datetime.now()
total_requst_time = str(request_end_time - request_send_time)
request_status_code = r.status_code
if (str(r.status_code) == '200'):
success += 1
writer.writerow(
{'iteration number': str(counter), 'time': str(time_started), 'Response Code': str(request_status_code),
'Succeeded': 'Yes'})
logging.info("Total time for request #" + str(counter) + " is\t\t\t " + total_requst_time)
else:
logging.error("Request # " + str(counter) + " Failed!" + "Status Code is: " + str(request_status_code))
writer.writerow(
{'iteration number': counter, 'time': total_requst_time, 'Response Code': request_status_code,
'Succeeded': 'No'})
csvfile.close()
end_time = datetime.datetime.now()
total_time = end_time - time_started
logging.info("Total time for " + str(counter) + ' loops' + " was\t\t\t" + str(total_time) + "\t\tNumber of Success Requests:\t " + str(success) + "/" + str(counter))
global stop
stop = True
def virtual_memory_of_processes(shell, loops, product_type):
base_regex = r"""(\s{3,6})(\d{4,6})(\s{3,6})(\d*)(\s*)(\d*)(.*)(ufm/)(.*)"""
global ufm_processes_name_list
logging.debug(" Running ps -ef command to check running processes")
expected = product_type
command = 'ps -ef | grep '+ product_type
i=0
while stop == False:
try:
result, output = run_par_cmd(cmd=command, expect=expected, shell=shell)
except Exception as ex:
logging.error("exception in ps -ef command")
if int(result) != -1:
for process_name in ufm_processes_name_list:
regex_search = base_regex + '('+process_name + ')'
matches = findRegex(output, regex_search)
if matches:
process_vm = str(matches[0][1])
vm_size = get_vmsize_of_process_by_process_id(shell, process_vm)
logging.info( str(i) + "# virtual memory of " + str(process_name) + " = " + str(vm_size))
write_process_to_csv(i, process_name,vm_size)
else:
logging.error("couldn't find process virtual memory according to given regex")
i += 1
else:
logging.error("couldn't find expected result in ps -ef command")
def get_product_name_by_url(url):
if int(str(url).find('ufm')) != -1:
return 'ufm'
elif int(str(url).find('neo')) != -1:
return 'neo'
else:
return -1
def create_graphs():
global ufm_processes_name_list
logging.info("Creating Graphs for processes")
dt = str(datetime.datetime.now()).split(".")[0].replace(" ","_").replace(":","-")
#Creating sub folder for graphs_time
current_graph_folder = global_graphs_path + dt + os.sep
creating_directory(current_graph_folder)
for process_name in ufm_processes_name_list:
filename = global_csv_path + 'RestAPI_loop_' + str(process_name) + '.csv'
create_graph(filename, str(process_name), 'VMSize(kb)','iterations',current_graph_folder,process_name )
logging.info("Creating Graphs for processes completed successfully")
logging.info("Creating Graphs for CPU/RAM usage")
for name in ('ram','cpu'):
filename = global_csv_path + 'RestAPI_loop_' + name + '.csv'
create_graph(filename, str(name), name +'(%)','iterations',current_graph_folder,name)
def write_process_to_csv(i, process_name,process_vm):
#csv_path = os.path.realpath(__file__) + os.sep + '..' + os.sep + os.path.join('csv')
filename = global_csv_path + 'RestAPI_loop_' + str(process_name)+ '.csv'
mode = 'a'
if i == 0:
mode = 'w'
try:
logging.debug("Trying to open " + filename + " to write data")
with open(file=filename, mode=mode, newline='') as csvfile:
fieldnames = ['iteration number', 'VMSize']
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
writer.writerow({'iteration number': i, 'VMSize': process_vm})
except Exception as ex:
logging.error("exception while writing data into" + filename)
csvfile.close()
def thread_manager(shells,ip, product_type, loops,time, username, password, private_key_path, certificate_path,fabric_health):
logging.info("starting new thread: CPU/RAM Performance")
t1 = threading.Thread(target=messurement_host_performance, args=(shells, loops))
logging.info("Starting new thread: REST requests in loop")
t2 = threading.Thread(target=run_rest_in_loop, args=(shells[2],ip, product_type, loops,time, username, password, private_key_path, certificate_path))
logging.info("Measuring Processes virtual memory")
#product_type = get_product_name_by_url(url)
t3 = threading.Thread(target=virtual_memory_of_processes, args=(shells[3], loops, product_type))
logging.info("Measuring Processes virtual memory")
if str(fabric_health) == 'yes':
t4 = threading.Thread(target=create_ufm_health_report, args=(ip, username, password))
logging.info("Starting Fabric health Reports")
t4.start()
t5 = threading.Thread(target=graphs_scheduler, args=())
logging.info("start Thread to for creating graphs every one hour")
t1.start()
t2.start()
t3.start()
t5.start()
t1.join(timeout=300)
t2.join(timeout=300)
t3.join(timeout=300)
if str(fabric_health) == 'yes':
t4.join(timeout=300)
logging.info("Threads are joined!")
def send_neo_ports_rest_api(neo_ip):
url = r'http://ip/neo/resources/ports?_=1543846564166&tz=Asia/Jerusalem'
url = url.replace("ip", neo_ip)
cookie = {"session":".eJyrVopPK0otzlCyKikqTdVRis9MUbKqVlJIUrJS8guJyooMSTeJrEqv8HdJyY4Mycj2D3et9HfJNvILycnwC3c1jQqPrIrK8rVVqgXqLUgtyk3MS80rgZlWWpxaBDZRKTElNzNPqRYAE_clcg.DubaoQ.I0UVeS061HEHVhzFeOqLobiNhTk"}
payload = {"_":"1543846564166","tz":"Asia/Jerusalem"}
logging.info("sending rest request for getting all ports #")
try:
r = requests.get(url= url, cookies=cookie, payload=payload)
except Exception as e:
logging.error("exception when sending rest API to NEO for getting all ports")
return
logging.info("Rest request for NEO succeeded.")
return r
def create_graph(filepath ,title, ylabel, xlabel, current_graph_folder, process_name):
style.use('ggplot')
try:
#filepath =
#C:\Users\arielwe\PycharmProjects\SecurityProject\Rest_Loop_CPU_RAM\csv\RestAPI_loop_mysqld.csv
#C:\Users\arielwe\PycharmProjects\SecurityProject\Rest_Loop_CPU_RAM\rest_loop_loading\csv\RestAPI_loop_mysqld.csv
#C:\Users\arielwe\PycharmProjects\SecurityProject\Rest_Loop_CPU_RAM\rest_loop_loading\csv\RestAPI_loop_mysqld.csv'
x,y = np.loadtxt(filepath, unpack=True, delimiter=',')
except Exception as ex:
print(ex)
plt.title(title)
plt.ylabel(ylabel)
plt.xlabel(xlabel)
plt.plot(x,y)
full_graph_path =current_graph_folder + process_name + ".png"
plt.savefig(full_graph_path)
plt.close()
def graphs_scheduler():
sleep(10)
global counter
global stop
counter+=1
if stop != False:
return None
else:
threading.Timer(60,graphs_scheduler).start()
logging.info("Creating Graphs #" + str(counter) + ": time is " +str(datetime.datetime.now()))
create_graphs()
def get_payload_for_request(payload):
with open(payload) as json_data:
try:
logging.info("Parsing json payload from file...")
json_obj = json.load(json_data)
except Exception as ex:
logging.error("Couldn't parse file to json object")
sys.exit(1)
logging.info("json file parsed successfully")
json_data.close()
return json_obj
def DisplayOptions():
#TODO- fix useage
usage = r"""usage: python memory_tester.py [options] arg1 arg2\n"
Example: python memory_tester.py
--product ufm
-- ip 10.209.27.110
--time 48
--loops 500
--pkey alice.key
--certificate alice.cert.pem
"""
parser = optparse.OptionParser(usage=usage)
parser.add_option("--product", dest="type", help="product type [ufm/ufmapl/neo]")
parser.add_option("--ip", dest="ip", help="ip address of the machine")
parser.add_option("--time", dest="time", help="total time for script to run in hours ")
parser.add_option("--loops", dest="loops", help="number of REST calls in loop [Optional]")
parser.add_option("--pkey", dest="private_key_path", help="private key path for SSL client certification [Optional]")
parser.add_option("--certificate", dest="certificate_path", help="certificate path for SSL client certification [Optional]")
parser.add_option("--fabric_health", dest="fabric_health", help="sending REST API calls to create UFM fabric health report [Optional]")
(options, args) = parser.parse_args()
if ((options.type is None) or (options.ip is None) or (options.time is None)):
logging.error("Missing parameters for script...exiting\n")
sys.exit(1)
return options
def getIPfromURL(url):
regex_url=r'\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b'
ip = findRegex(output=url,regex_search=regex_url)
if not ip:
logging.error("Couldn't retreived ip from URL")
sys.exit(1)
else:
logging.info("IP is: " + str(ip))
return ip[0]
def get_username_password(credentials):
splited = str(credentials).split(':')
username, password = splited[0], splited[1]
password.replace(':','')
return username, password
def isShellMode(shell):
cmd = '\n'
expected = ['>']
for cmd, expect in zip(cmd, expected):
result, output = run_par_cmd(cmd=cmd, expect=expect, shell=shell)
if ((int(result) == 0) and (len(output) > 0)):
logging.debug(cmd + "working in Shell Mode equal true")
return True
else:
logging.debug(cmd + "working in Shell Mode equal false")
return False
def get_credentials_from_product_type(type):
logging.info("Checking product type and set correct credentails")
if type == 'ufm':
logging.info("Product is UFM-IB")
return ('admin','****')
elif type == 'neo':
logging.info("Product is NEO")
return ('admin','****')
elif type == 'ufmapl':
logging.info("Product is UFM-Appliance")
return ('admin','*****')
def main():
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(levelname)-8s %(message)s',
datefmt='%m-%d %H:%M',
filemode='w')
options = DisplayOptions()
creating_directory(global_csv_path)
creating_directory(global_graphs_path)
#TODO - Add argparse for NEO/UFM/APL
#ip = getIPfromURL(options.url)
#username, password = get_username_password(options.credentials)
type,ip, loops ,time, private_key_path,certificate_path, fabric_health= \
options.type, options.ip ,options.loops, options.time, options.private_key_path, options.certificate_path, options.fabric_health
username, password = get_credentials_from_product_type(type)
#payload_obj = get_payload_for_request(payload)
#TODO - Currently supports only appliance machine
shells = []
for i in range(5):
if type == 'ufmapl':
ssh = SSHConnect(ip=ip, username='admin', passowrd='admin')
else:
ssh = SSHConnect(ip=ip, username='root', passowrd='****')
shells.append(createshell(ssh=ssh))
if type == 'ufmapl':
if isShellMode(shells[i]):
ChangeToShellMode(shell=shells[i])
thread_manager(shells,ip, type, loops,time, username, password, private_key_path, certificate_path,fabric_health)
logging.info("Graphs are located under " + global_graphs_path )
logging.info("Script is completed")
if __name__ == '__main__':
main()
**Actual outcome**
<!--The output produced by the above code, which may be a screenshot, console output, etc.-->
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span>
<span class="pl-k">import</span> <span class="pl-s1">logging</span>
<span class="pl-k">import</span> <span class="pl-s1">datetime</span>
<span class="pl-k">import</span> <span class="pl-s1">time</span>
<span class="pl-k">from</span> <span class="pl-s1">time</span> <span class="pl-k">import</span> <span class="pl-s1">sleep</span>
<span class="pl-k">import</span> <span class="pl-s1">sys</span>
<span class="pl-k">import</span> <span class="pl-s1">paramiko</span>
<span class="pl-k">import</span> <span class="pl-s1">csv</span>
<span class="pl-k">import</span> <span class="pl-s1">re</span>
<span class="pl-k">import</span> <span class="pl-s1">threading</span>
<span class="pl-k">import</span> <span class="pl-s1">optparse</span>
<span class="pl-k">import</span> <span class="pl-s1">json</span>
<span class="pl-k">import</span> <span class="pl-s1">os</span>
<span class="pl-k">import</span> <span class="pl-s1">shutil</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-s1">matplotlib</span>.<span class="pl-en">use</span>(<span class="pl-s">'agg'</span>)
<span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">style</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-c">#TODO -</span>
<span class="pl-s">'''</span>
<span class="pl-s">1. Creating graphs every hour</span>
<span class="pl-s">2. run script with NEO process + sending REST API in background+ generating reports. </span>
<span class="pl-s">3. sending the graphs via email </span>
<span class="pl-s">'''</span>
<span class="pl-c">#consts</span>
<span class="pl-s1">global_csv_path</span> <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">abspath</span>(<span class="pl-s1">__file__</span>)).<span class="pl-en">split</span>(<span class="pl-s">"script"</span>)[<span class="pl-c1">0</span>] <span class="pl-c1">+</span> <span class="pl-s">"csv"</span> <span class="pl-c1">+</span> <span class="pl-s1">os</span>.<span class="pl-s1">sep</span>
<span class="pl-s1">global_graphs_path</span> <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">abspath</span>(<span class="pl-s1">__file__</span>)).<span class="pl-en">split</span>(<span class="pl-s">"script"</span>)[<span class="pl-c1">0</span>] <span class="pl-c1">+</span> <span class="pl-s">"graphs"</span> <span class="pl-c1">+</span> <span class="pl-s1">os</span>.<span class="pl-s1">sep</span>
<span class="pl-s1">global_ram_path</span> <span class="pl-c1">=</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">join</span>(<span class="pl-s1">global_csv_path</span>, <span class="pl-s">'RestAPI_loop_ram.csv'</span>)
<span class="pl-s1">global_cpu_path</span> <span class="pl-c1">=</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">join</span>(<span class="pl-s1">global_csv_path</span>, <span class="pl-s">'RestAPI_loop_cpu.csv'</span>)
<span class="pl-s1">global_requests_path</span> <span class="pl-c1">=</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">join</span>(<span class="pl-s1">global_csv_path</span>, <span class="pl-s">'RestAPI_loop_requests.csv'</span>)
<span class="pl-s1">counter</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>
<span class="pl-s1">stop</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span>
<span class="pl-s1">total</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>
<span class="pl-s1">ufm_processes_name_list</span> <span class="pl-c1">=</span> [<span class="pl-s">'mysqld'</span>,<span class="pl-s">'opensm'</span>,<span class="pl-s">'ModelMain'</span>,<span class="pl-s">'periodic_report_runner'</span>,<span class="pl-s">'unhealthy_ports_main'</span>,<span class="pl-s">'ibpm'</span>,<span class="pl-s">'UFMHealthConfiguration'</span>]
<span class="pl-k">def</span> <span class="pl-en">create_ufm_health_report</span>(<span class="pl-s1">ip</span>, <span class="pl-s1">username</span>, <span class="pl-s1">password</span>):
<span class="pl-s1">counter</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span>
<span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s">'http://$ip/ufmRest/reports/Fabric_Health'</span>
<span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s1">url</span>.<span class="pl-en">replace</span>(<span class="pl-s">'$ip'</span>,<span class="pl-s1">ip</span>)
<span class="pl-s1">ufm_payload</span> <span class="pl-c1">=</span><span class="pl-s">r"""</span>
<span class="pl-s"> {</span>
<span class="pl-s"> "duplicate_nodes": true,</span>
<span class="pl-s"> "map_guids_desc": false,</span>
<span class="pl-s"> "ufm_alarms": true,</span>
<span class="pl-s"> "sm_state": true,</span>
<span class="pl-s"> "firmware": true,</span>
<span class="pl-s"> "cables": false,</span>
<span class="pl-s"> "non_opt_links": true,</span>
<span class="pl-s"> "non_opt_speed_width": true,</span>
<span class="pl-s"> "link_speed": "ALL",</span>
<span class="pl-s"> "link_width": "ALL",</span>
<span class="pl-s"> "eye_open": false,</span>
<span class="pl-s"> "duplicate_zero_and_lids": true</span>
<span class="pl-s"> }</span>
<span class="pl-s"> """</span>
<span class="pl-k">while</span> <span class="pl-c1">not</span> <span class="pl-s1">stop</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>( <span class="pl-en">str</span>(<span class="pl-s1">counter</span>) <span class="pl-c1">+</span> <span class="pl-s">"# Sending Fabric Health Report..."</span>)
<span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">post</span>(<span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s1">url</span>, <span class="pl-s1">auth</span><span class="pl-c1">=</span>(<span class="pl-s1">username</span>, <span class="pl-s1">password</span>), <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">ufm_payload</span>)
<span class="pl-k">if</span> <span class="pl-en">str</span>(<span class="pl-s1">r</span>.<span class="pl-s1">status_code</span>) <span class="pl-c1">==</span> <span class="pl-s">'202'</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Fabric Health succeeded... "</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Fabric Health Failed... status code equals {}"</span>.<span class="pl-en">format</span>(<span class="pl-en">str</span>(<span class="pl-s1">r</span>.<span class="pl-s1">status_code</span>)))
<span class="pl-s1">counter</span><span class="pl-c1">+=</span><span class="pl-c1">1</span>
<span class="pl-k">def</span> <span class="pl-en">creating_directory</span>(<span class="pl-s1">path</span>):
<span class="pl-s1">logging</span>.<span class="pl-en">debug</span>(<span class="pl-s">"Start to create directory inside "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">path</span>))
<span class="pl-c">#Try to remove backslash from the end:</span>
<span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span>.<span class="pl-en">rstrip</span>()
<span class="pl-k">try</span>:
<span class="pl-k">if</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">exists</span>(<span class="pl-s1">path</span>):
<span class="pl-s1">shutil</span>.<span class="pl-en">rmtree</span>(<span class="pl-s1">path</span>)
<span class="pl-s1">os</span>.<span class="pl-en">mkdir</span>(<span class="pl-s1">path</span>)
<span class="pl-k">except</span> <span class="pl-v">OSError</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Creation of the directory failed"</span> <span class="pl-c1">+</span><span class="pl-en">str</span>(<span class="pl-s1">ex</span>))
<span class="pl-s1">sys</span>.<span class="pl-en">exit</span>(<span class="pl-c1">1</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Successfully created the directory %s "</span> <span class="pl-c1">%</span> <span class="pl-s1">path</span>)
<span class="pl-k">def</span> <span class="pl-en">findRegex</span>(<span class="pl-s1">output</span>, <span class="pl-s1">regex_search</span>):
<span class="pl-s1">pattern</span> <span class="pl-c1">=</span><span class="pl-s1">re</span>.<span class="pl-en">compile</span>(<span class="pl-s1">pattern</span><span class="pl-c1">=</span><span class="pl-s1">regex_search</span>)
<span class="pl-s1">matches_list</span> <span class="pl-c1">=</span> <span class="pl-s1">pattern</span>.<span class="pl-en">findall</span>(<span class="pl-s1">source</span><span class="pl-c1">=</span><span class="pl-s1">output</span>)
<span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">matches_list</span>) <span class="pl-c1">></span> <span class="pl-c1">0</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">debug</span>(<span class="pl-s">"Regex:"</span> <span class="pl-c1">+</span> <span class="pl-s1">regex_search</span> <span class="pl-c1">+</span> <span class="pl-s">" Was found!"</span>)
<span class="pl-k">return</span> <span class="pl-s1">matches_list</span>
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">critical</span>(<span class="pl-s">"Regex was not found!:"</span> <span class="pl-c1">+</span> <span class="pl-s1">regex_search</span> )
<span class="pl-k">return</span> []
<span class="pl-k">def</span> <span class="pl-en">createshell</span>(<span class="pl-s1">ssh</span>):
<span class="pl-s1">shell</span> <span class="pl-c1">=</span> <span class="pl-s1">ssh</span>.<span class="pl-en">invoke_shell</span>()
<span class="pl-s1">shell</span>.<span class="pl-en">settimeout</span>(<span class="pl-c1">0.5</span>)
<span class="pl-s1">shell</span>.<span class="pl-en">recv</span>(<span class="pl-c1">1024</span>)
<span class="pl-c">#time.sleep(10)</span>
<span class="pl-k">return</span> <span class="pl-s1">shell</span>
<span class="pl-k">def</span> <span class="pl-en">run_par_cmd</span>(<span class="pl-s1">cmd</span>, <span class="pl-s1">expect</span>, <span class="pl-s1">shell</span>):
<span class="pl-s">'''</span>
<span class="pl-s"></span>
<span class="pl-s"> :param shell:</span>
<span class="pl-s"> :param cmd: cmd command like ' show version'</span>
<span class="pl-s"> :param expect: string to look for like '</span>
<span class="pl-s"> :return: 0 if the expected string was found in output.</span>
<span class="pl-s"> '''</span>
<span class="pl-c"># sleeping for 3 seconds to the command will be executed after shell prompt is printed.</span>
<span class="pl-s1">shell</span>.<span class="pl-en">send</span>(<span class="pl-s1">cmd</span> <span class="pl-c1">+</span> <span class="pl-s">'<span class="pl-cce">\n</span>'</span>)
<span class="pl-s1">out</span> <span class="pl-c1">=</span> <span class="pl-s">''</span>
<span class="pl-k">while</span> <span class="pl-c1">True</span>:
<span class="pl-k">try</span>:
<span class="pl-s1">tmp</span> <span class="pl-c1">=</span> <span class="pl-s1">shell</span>.<span class="pl-en">recv</span>(<span class="pl-c1">1024</span>)
<span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">tmp</span>:
<span class="pl-k">break</span>
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">e</span>:
<span class="pl-k">break</span>
<span class="pl-s1">out</span> <span class="pl-c1">+=</span> <span class="pl-s1">tmp</span>.<span class="pl-en">decode</span>(<span class="pl-s">"utf-8"</span>)
<span class="pl-s1">ansi_escape</span> <span class="pl-c1">=</span> <span class="pl-s1">re</span>.<span class="pl-en">compile</span>(<span class="pl-s">r'\x1B\[[0-?]*[ -/]*[@-~]'</span>)
<span class="pl-s1">out</span> <span class="pl-c1">=</span> <span class="pl-s1">ansi_escape</span>.<span class="pl-en">sub</span>(<span class="pl-s">''</span>, <span class="pl-s1">out</span>)
<span class="pl-k">if</span> <span class="pl-s1">expect</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">out</span>:
<span class="pl-k">return</span> (<span class="pl-c1">1</span>, <span class="pl-s1">out</span>)
<span class="pl-k">return</span> (<span class="pl-c1">0</span>, <span class="pl-s1">out</span>)
<span class="pl-k">def</span> <span class="pl-v">SSHConnect</span>(<span class="pl-s1">ip</span>,<span class="pl-s1">username</span>, <span class="pl-s1">passowrd</span>):
<span class="pl-s1">ssh</span> <span class="pl-c1">=</span> <span class="pl-s1">paramiko</span>.<span class="pl-v">SSHClient</span>()
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s1">msg</span><span class="pl-c1">=</span><span class="pl-s">"Open SSH Client to :"</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">ip</span>))
<span class="pl-k">try</span>:
<span class="pl-s1">ssh</span>.<span class="pl-en">set_missing_host_key_policy</span>(<span class="pl-s1">policy</span><span class="pl-c1">=</span><span class="pl-s1">paramiko</span>.<span class="pl-v">AutoAddPolicy</span>())
<span class="pl-s1">ssh</span>.<span class="pl-en">connect</span>(<span class="pl-s1">ip</span>, <span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-c1">22</span>, <span class="pl-s1">username</span><span class="pl-c1">=</span><span class="pl-s1">username</span>, <span class="pl-s1">password</span><span class="pl-c1">=</span><span class="pl-s1">passowrd</span>, <span class="pl-s1">allow_agent</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">look_for_keys</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s1">msg</span><span class="pl-c1">=</span><span class="pl-s">"SSH Client wasn't established!"</span>)
<span class="pl-s1">sys</span>.<span class="pl-en">exit</span>(<span class="pl-c1">0</span>)
<span class="pl-k">return</span> <span class="pl-s1">ssh</span>
<span class="pl-k">def</span> <span class="pl-v">ChangeToShellMode</span>(<span class="pl-s1">shell</span>):
<span class="pl-c">#result should be '0'</span>
<span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-en">run_enable_configure_terminal</span>(<span class="pl-s1">shell</span>)
<span class="pl-k">if</span> <span class="pl-en">int</span>(<span class="pl-s1">result</span>) <span class="pl-c1">!=</span> <span class="pl-c1">0</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Can't run <span class="pl-cce">\'</span>_shell<span class="pl-cce">\'</span> command..<span class="pl-cce">\n</span>"</span> <span class="pl-c1">+</span> <span class="pl-s">"exiting"</span>)
<span class="pl-en">exit</span>(<span class="pl-c1">1</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">command</span> <span class="pl-c1">=</span> <span class="pl-s">"_shell"</span>
<span class="pl-s1">expect</span> <span class="pl-c1">=</span> <span class="pl-s">'~]#'</span>
<span class="pl-k">try</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Changing UFM APL from CLI Mode to SHELL mode"</span>)
<span class="pl-s1">result</span>, <span class="pl-s1">output</span> <span class="pl-c1">=</span> <span class="pl-en">run_par_cmd</span>(<span class="pl-s1">cmd</span><span class="pl-c1">=</span><span class="pl-s1">command</span>, <span class="pl-s1">expect</span><span class="pl-c1">=</span><span class="pl-s1">expect</span>, <span class="pl-s1">shell</span><span class="pl-c1">=</span><span class="pl-s1">shell</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Got Exception while trying to change for SHELL mode"</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">ex</span>))
<span class="pl-k">if</span> <span class="pl-en">int</span>(<span class="pl-s1">result</span>) <span class="pl-c1">==</span> <span class="pl-c1">0</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"_shell command was executed successfully!"</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"couldn't find expected output while running shell command..<span class="pl-cce">\n</span>Please make sure License is installed!"</span>)
<span class="pl-k">def</span> <span class="pl-en">get_ram_total_used</span>(<span class="pl-s1">output</span>, <span class="pl-s1">regex_ram</span>, <span class="pl-s1">counter</span>):
<span class="pl-s1">matches</span> <span class="pl-c1">=</span> <span class="pl-en">findRegex</span>(<span class="pl-s1">output</span>, <span class="pl-s1">regex_ram</span>)
<span class="pl-k">if</span> <span class="pl-s1">matches</span>:
<span class="pl-s1">cpu_value_total</span>, <span class="pl-s1">cpu_value_used</span> <span class="pl-c1">=</span> <span class="pl-s1">matches</span>[<span class="pl-c1">0</span>][<span class="pl-c1">2</span>], <span class="pl-s1">matches</span>[<span class="pl-c1">0</span>][<span class="pl-c1">4</span>]
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-en">str</span>(<span class="pl-s1">counter</span>) <span class="pl-c1">+</span> <span class="pl-s">"# RAM value is :<span class="pl-cce">\t</span>"</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>((<span class="pl-en">float</span>(<span class="pl-s1">cpu_value_used</span>)<span class="pl-c1">/</span><span class="pl-en">float</span>(<span class="pl-s1">cpu_value_total</span>))<span class="pl-c1">*</span><span class="pl-c1">100</span>)<span class="pl-c1">+</span><span class="pl-s">'%'</span>)
<span class="pl-k">return</span> <span class="pl-en">float</span>(<span class="pl-s1">cpu_value_used</span>)<span class="pl-c1">/</span><span class="pl-en">float</span>(<span class="pl-s1">cpu_value_total</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Couldn't retrived RAM usage according to given regex!"</span>)
<span class="pl-k">return</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>
<span class="pl-k">def</span> <span class="pl-v">GetRAMUsage</span>(<span class="pl-s1">shell</span> ,<span class="pl-s1">counter</span>):
<span class="pl-s1">command</span> <span class="pl-c1">=</span> <span class="pl-s">r"""free -t"""</span>
<span class="pl-s1">expected</span> <span class="pl-c1">=</span> <span class="pl-s">'total'</span>
<span class="pl-s1">mode</span> <span class="pl-c1">=</span><span class="pl-s">'a'</span>
<span class="pl-s1">regex_ram</span> <span class="pl-c1">=</span> <span class="pl-s">r'([Total:]{6})(\s*)(\d*)(\s*)(\d*)'</span>
<span class="pl-k">if</span> <span class="pl-s1">counter</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span>:
<span class="pl-s1">mode</span> <span class="pl-c1">=</span> <span class="pl-s">'w'</span>
<span class="pl-c">#file = os.path.realpath(__file__) + os.sep + '..' + os.sep + os.path.join('csv' , 'RestAPI_loop_ram.csv')</span>
<span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s1">global_ram_path</span>, <span class="pl-s1">mode</span>, <span class="pl-s1">newline</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-k">as</span> <span class="pl-s1">csvfile</span>:
<span class="pl-s1">fieldnames</span> <span class="pl-c1">=</span> [<span class="pl-s">'iteration number'</span>, <span class="pl-s">'RAM'</span>]
<span class="pl-s1">writer</span> <span class="pl-c1">=</span> <span class="pl-s1">csv</span>.<span class="pl-v">DictWriter</span>(<span class="pl-s1">csvfile</span>, <span class="pl-s1">fieldnames</span><span class="pl-c1">=</span><span class="pl-s1">fieldnames</span>)
<span class="pl-s1">time_started</span> <span class="pl-c1">=</span> <span class="pl-s1">datetime</span>.<span class="pl-s1">datetime</span>.<span class="pl-en">now</span>()
<span class="pl-k">try</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Measuring RAM USage..."</span>)
<span class="pl-s1">result</span>, <span class="pl-s1">output</span> <span class="pl-c1">=</span> <span class="pl-en">run_par_cmd</span>(<span class="pl-s1">cmd</span><span class="pl-c1">=</span><span class="pl-s1">command</span>, <span class="pl-s1">expect</span><span class="pl-c1">=</span><span class="pl-s1">expected</span>, <span class="pl-s1">shell</span><span class="pl-c1">=</span><span class="pl-s1">shell</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Got Exception while trying to retrieve RAM utilization , "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">ex</span>))
<span class="pl-en">print</span>(<span class="pl-s">'Error on line {}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">sys</span>.<span class="pl-en">exc_info</span>()[<span class="pl-c1">-</span><span class="pl-c1">1</span>].<span class="pl-s1">tb_lineno</span>), <span class="pl-en">type</span>(<span class="pl-s1">ex</span>).<span class="pl-s1">__name__</span>, <span class="pl-s1">ex</span>)
<span class="pl-k">else</span>:
<span class="pl-k">if</span> <span class="pl-en">int</span>(<span class="pl-s1">result</span>) <span class="pl-c1">==</span> <span class="pl-c1">0</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">debug</span>( <span class="pl-en">str</span>(<span class="pl-s1">counter</span>) <span class="pl-c1">+</span><span class="pl-s">"# get RAM command was executed successfully!"</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"couldn't find expected output while running <span class="pl-cce">\'</span>free -t<span class="pl-cce">\'</span> command..<span class="pl-cce">\n</span>"</span>)
<span class="pl-en">print</span>(<span class="pl-s">"expected: "</span> <span class="pl-c1">+</span> <span class="pl-s1">expected</span> <span class="pl-c1">+</span> <span class="pl-s">'<span class="pl-cce">\n</span>'</span> <span class="pl-c1">+</span><span class="pl-s">"Output : <span class="pl-cce">\n</span>"</span> <span class="pl-c1">+</span> <span class="pl-s1">output</span><span class="pl-c1">+</span><span class="pl-s">'<span class="pl-cce">\n</span><span class="pl-cce">\n</span>'</span>)
<span class="pl-k">return</span> <span class="pl-c1">None</span>
<span class="pl-s1">ram_total</span> <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-en">get_ram_total_used</span>(<span class="pl-s1">output</span>, <span class="pl-s1">regex_ram</span>, <span class="pl-s1">counter</span>))
<span class="pl-k">if</span> <span class="pl-en">str</span>(<span class="pl-s1">ram_total</span>) <span class="pl-c1">==</span> <span class="pl-s">'-1'</span> :
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Couldn't calculate RAM usage"</span>)
<span class="pl-k">return</span> <span class="pl-c1">None</span>
<span class="pl-k">else</span>:
<span class="pl-s1">writer</span>.<span class="pl-en">writerow</span>({<span class="pl-s">'iteration number'</span>: <span class="pl-s1">counter</span>, <span class="pl-s">'RAM'</span>: <span class="pl-en">str</span>(<span class="pl-en">float</span>(<span class="pl-s1">ram_total</span>)<span class="pl-c1">*</span><span class="pl-c1">100</span>)})
<span class="pl-s1">csvfile</span>.<span class="pl-en">close</span>()
<span class="pl-k">def</span> <span class="pl-v">GetCPUUsage</span>(<span class="pl-s1">shell</span>, <span class="pl-s1">counter</span>):
<span class="pl-s1">command</span> <span class="pl-c1">=</span> <span class="pl-s">r"""grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}'"""</span>
<span class="pl-s1">expected</span> <span class="pl-c1">=</span> <span class="pl-s">'%'</span>
<span class="pl-s1">regex</span> <span class="pl-c1">=</span> <span class="pl-s">r'[0-1]{1}\.{1}[0-9]*'</span>
<span class="pl-s1">mode</span> <span class="pl-c1">=</span><span class="pl-s">'a'</span>
<span class="pl-k">if</span> <span class="pl-s1">counter</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span>:
<span class="pl-s1">mode</span> <span class="pl-c1">=</span> <span class="pl-s">'w'</span>
<span class="pl-c">#file = os.path.realpath(__file__) + os.sep + '..' + os.sep + os.path.join( 'csv', 'RestAPI_loop_cpu.csv')</span>
<span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s1">global_cpu_path</span> ,<span class="pl-s1">mode</span><span class="pl-c1">=</span><span class="pl-s1">mode</span>, <span class="pl-s1">newline</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-k">as</span> <span class="pl-s1">csvfile</span>:
<span class="pl-s1">fieldnames</span> <span class="pl-c1">=</span> [<span class="pl-s">'iteration number'</span>, <span class="pl-s">'CPU'</span>]
<span class="pl-s1">writer</span> <span class="pl-c1">=</span> <span class="pl-s1">csv</span>.<span class="pl-v">DictWriter</span>(<span class="pl-s1">csvfile</span>, <span class="pl-s1">fieldnames</span><span class="pl-c1">=</span><span class="pl-s1">fieldnames</span>)
<span class="pl-s1">time_started</span> <span class="pl-c1">=</span> <span class="pl-s1">datetime</span>.<span class="pl-s1">datetime</span>.<span class="pl-en">now</span>()
<span class="pl-k">try</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Measuring CPU USage..."</span>)
<span class="pl-s1">result</span>, <span class="pl-s1">output</span> <span class="pl-c1">=</span> <span class="pl-en">run_par_cmd</span>(<span class="pl-s1">cmd</span><span class="pl-c1">=</span><span class="pl-s1">command</span>, <span class="pl-s1">expect</span><span class="pl-c1">=</span><span class="pl-s1">expected</span>, <span class="pl-s1">shell</span><span class="pl-c1">=</span><span class="pl-s1">shell</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Got Exception while trying to retrieve CPU utilization , "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">ex</span>))
<span class="pl-k">else</span>:
<span class="pl-k">if</span> <span class="pl-en">int</span>(<span class="pl-s1">result</span>) <span class="pl-c1">==</span> <span class="pl-c1">0</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">debug</span>(<span class="pl-s">"CPU command was executed successfully!"</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"couldn't find expected output while running CPU command.."</span>)
<span class="pl-k">return</span> <span class="pl-c1">None</span>
<span class="pl-s1">cpu_value</span> <span class="pl-c1">=</span> <span class="pl-en">findRegex</span>(<span class="pl-s1">output</span> ,<span class="pl-s1">regex</span>)
<span class="pl-k">if</span> <span class="pl-s1">cpu_value</span>:
<span class="pl-s1">cpu_value_flt</span> <span class="pl-c1">=</span> <span class="pl-en">float</span>(<span class="pl-s1">cpu_value</span>[<span class="pl-c1">0</span>])
<span class="pl-k">if</span> <span class="pl-c1">0.0</span> <span class="pl-c1"><=</span> <span class="pl-s1">cpu_value_flt</span> <span class="pl-c1"><=</span> <span class="pl-c1">100.0</span>:
<span class="pl-c">#if cpu_value_str <= 100.0 and cpu_value_str >= 0.0:</span>
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>( <span class="pl-en">str</span>(<span class="pl-s1">counter</span>)<span class="pl-c1">+</span> <span class="pl-s">"# CPU usage is:<span class="pl-cce">\t</span> "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">cpu_value_flt</span>) <span class="pl-c1">+</span> <span class="pl-s">'%'</span>)
<span class="pl-s1">writer</span>.<span class="pl-en">writerow</span>({<span class="pl-s">'iteration number'</span>: <span class="pl-en">str</span>(<span class="pl-s1">counter</span>), <span class="pl-s">'CPU'</span>: <span class="pl-en">str</span>(<span class="pl-s1">cpu_value_flt</span><span class="pl-c1">*</span><span class="pl-c1">100</span>)})
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Not Matched Regex!<span class="pl-cce">\n</span>Couldn't retrevied CPU usage according to given regex!"</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Couldn't retrieved CPU usage!"</span>)
<span class="pl-s1">csvfile</span>.<span class="pl-en">close</span>()
<span class="pl-k">def</span> <span class="pl-en">messurement_host_performance</span>(<span class="pl-s1">shells</span>, <span class="pl-s1">loops</span>):
<span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>
<span class="pl-s1">lst</span> <span class="pl-c1">=</span> []
<span class="pl-k">while</span> <span class="pl-s1">stop</span> <span class="pl-c1">==</span> <span class="pl-c1">False</span>:
<span class="pl-k">try</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">debug</span>(<span class="pl-s">"Running CPU/RAM performance test #"</span><span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">i</span>))
<span class="pl-s1">t1</span> <span class="pl-c1">=</span> <span class="pl-s1">threading</span>.<span class="pl-v">Thread</span>(<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-v">GetCPUUsage</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>(<span class="pl-s1">shells</span>[<span class="pl-c1">0</span>],<span class="pl-s1">i</span>))
<span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-s1">threading</span>.<span class="pl-v">Thread</span>(<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-v">GetRAMUsage</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>(<span class="pl-s1">shells</span>[<span class="pl-c1">1</span>],<span class="pl-s1">i</span>))
<span class="pl-s1">t1</span>.<span class="pl-en">start</span>()
<span class="pl-s1">t2</span>.<span class="pl-en">start</span>()
<span class="pl-s1">t1</span>.<span class="pl-en">join</span>()
<span class="pl-s1">t2</span>.<span class="pl-en">join</span>()
<span class="pl-s1">i</span><span class="pl-c1">+=</span><span class="pl-c1">1</span>
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Exception on starting thread"</span> <span class="pl-c1">+</span> <span class="pl-s1">ex</span>)
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Performance measurement is completed!"</span>)
<span class="pl-k">def</span> <span class="pl-en">run_enable_configure_terminal</span>(<span class="pl-s1">shell</span>):
<span class="pl-s1">commandsList</span> <span class="pl-c1">=</span> [<span class="pl-s">'enable'</span> , <span class="pl-s">'configure terminal'</span>]
<span class="pl-s1">expectedList</span> <span class="pl-c1">=</span> [<span class="pl-s">'#'</span>, <span class="pl-s">'(config)'</span>]
<span class="pl-k">for</span> <span class="pl-s1">cmd</span>,<span class="pl-s1">expect</span> <span class="pl-c1">in</span> <span class="pl-en">zip</span>(<span class="pl-s1">commandsList</span>,<span class="pl-s1">expectedList</span>):
<span class="pl-s1">result</span>, <span class="pl-s1">output</span> <span class="pl-c1">=</span> <span class="pl-en">run_par_cmd</span>(<span class="pl-s1">cmd</span><span class="pl-c1">=</span><span class="pl-s1">cmd</span>, <span class="pl-s1">expect</span><span class="pl-c1">=</span><span class="pl-s1">expect</span>, <span class="pl-s1">shell</span><span class="pl-c1">=</span><span class="pl-s1">shell</span>)
<span class="pl-k">if</span> ((<span class="pl-en">int</span>(<span class="pl-s1">result</span>) <span class="pl-c1">==</span> <span class="pl-c1">0</span> )<span class="pl-c1">and</span> (<span class="pl-en">len</span>(<span class="pl-s1">output</span>) <span class="pl-c1">></span> <span class="pl-c1">0</span> )):
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s1">cmd</span><span class="pl-c1">+</span> <span class="pl-s">" command run successfully"</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"can't run "</span><span class="pl-c1">+</span><span class="pl-s1">cmd</span><span class="pl-c1">+</span><span class="pl-s">" command"</span>)
<span class="pl-s1">sys</span>.<span class="pl-en">exit</span>(<span class="pl-c1">1</span>)
<span class="pl-k">return</span> <span class="pl-c1">False</span>
<span class="pl-k">def</span> <span class="pl-en">get_vmsize_of_process_by_process_id</span>(<span class="pl-s1">shell</span>, <span class="pl-s1">process_vm</span>):
<span class="pl-s1">cmd</span> <span class="pl-c1">=</span> <span class="pl-s">'cat /proc/x/status'</span>
<span class="pl-s1">cmd</span> <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">cmd</span>).<span class="pl-en">replace</span>(<span class="pl-s">'x'</span>,<span class="pl-s1">process_vm</span>)
<span class="pl-s1">expected</span> <span class="pl-c1">=</span> <span class="pl-s">'VmSize'</span>
<span class="pl-s1">regex_search</span><span class="pl-c1">=</span><span class="pl-s">'(VmSize:)(\s*)(\d*)(\s*)(kB)'</span>
<span class="pl-s1">vm_size</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span>
<span class="pl-s1">result</span>, <span class="pl-s1">output</span> <span class="pl-c1">=</span> <span class="pl-en">run_par_cmd</span>(<span class="pl-s1">cmd</span>, <span class="pl-s1">expected</span>,<span class="pl-s1">shell</span>)
<span class="pl-k">if</span> ((<span class="pl-en">int</span>(<span class="pl-s1">result</span>) <span class="pl-c1">==</span> <span class="pl-c1">0</span>) <span class="pl-c1">and</span> (<span class="pl-en">len</span>(<span class="pl-s1">output</span>) <span class="pl-c1">></span> <span class="pl-c1">0</span>)):
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s1">cmd</span> <span class="pl-c1">+</span> <span class="pl-s">" command run successfully"</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"can't run "</span> <span class="pl-c1">+</span> <span class="pl-s1">cmd</span> <span class="pl-c1">+</span> <span class="pl-s">" command"</span>)
<span class="pl-s1">sys</span>.<span class="pl-en">exit</span>(<span class="pl-c1">1</span>)
<span class="pl-s1">matches</span> <span class="pl-c1">=</span> <span class="pl-en">findRegex</span>(<span class="pl-s1">output</span>, <span class="pl-s1">regex_search</span>)
<span class="pl-k">if</span> <span class="pl-s1">matches</span>:
<span class="pl-s1">vm_size</span> <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">matches</span>[<span class="pl-c1">0</span>][<span class="pl-c1">2</span>])
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"No matches were found for vmsize"</span>)
<span class="pl-k">return</span> <span class="pl-s1">vm_size</span>
<span class="pl-k">def</span> <span class="pl-en">continue_loop</span>(<span class="pl-s1">counter</span>,<span class="pl-s1">started_time</span>, <span class="pl-s1">loops</span>, <span class="pl-s1">time</span>):
<span class="pl-k">if</span> <span class="pl-s1">time</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>:
<span class="pl-k">if</span> (<span class="pl-s1">started_time</span> <span class="pl-c1">+</span> <span class="pl-s1">datetime</span>.<span class="pl-en">timedelta</span>(<span class="pl-s1">hours</span><span class="pl-c1">=</span><span class="pl-en">int</span>(<span class="pl-s1">time</span>)) <span class="pl-c1">></span> <span class="pl-s1">datetime</span>.<span class="pl-s1">datetime</span>.<span class="pl-en">now</span>()):
<span class="pl-k">return</span> <span class="pl-c1">True</span>
<span class="pl-k">else</span>:
<span class="pl-k">return</span> <span class="pl-c1">False</span>
<span class="pl-k">else</span>:
<span class="pl-k">if</span> <span class="pl-s1">loops</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>:
<span class="pl-k">if</span> (<span class="pl-en">int</span>(<span class="pl-s1">counter</span>) <span class="pl-c1"><</span> <span class="pl-en">int</span>(<span class="pl-s1">loops</span>)):
<span class="pl-k">return</span> <span class="pl-c1">True</span>
<span class="pl-k">else</span>:
<span class="pl-k">return</span> <span class="pl-c1">False</span>
<span class="pl-k">def</span> <span class="pl-en">send_ufm_rest_get_pkey</span>(<span class="pl-s1">shell</span>, <span class="pl-s1">ip</span>, <span class="pl-s1">username</span>, <span class="pl-s1">password</span>, <span class="pl-s1">private_key_path</span>,<span class="pl-s1">certificate_path</span>):
<span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s">r'http://ip/ufmRest/resources/pkeys'</span>
<span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s1">url</span>.<span class="pl-en">replace</span>(<span class="pl-s">'ip'</span>,<span class="pl-s1">ip</span>)
<span class="pl-s1">payload</span> <span class="pl-c1">=</span> <span class="pl-s">r'''{</span>
<span class="pl-s"> "pkey": "0x1",</span>
<span class="pl-s"> "index0": false,</span>
<span class="pl-s"> "ip_over_ib": true,</span>
<span class="pl-s"> "membership": "full",</span>
<span class="pl-s"> "guids": [</span>
<span class="pl-s"> "98039b0300671ec0"</span>
<span class="pl-s"> ]</span>
<span class="pl-s">}'''</span>
<span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">session</span>()
<span class="pl-s1">s</span>.<span class="pl-s1">auth</span> <span class="pl-c1">=</span> (<span class="pl-s1">username</span>, <span class="pl-s1">password</span>)
<span class="pl-k">if</span> ((<span class="pl-s1">private_key_path</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>) <span class="pl-c1">and</span> (<span class="pl-s1">certificate_path</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>)):
<span class="pl-c"># Using SSL certification</span>
<span class="pl-s1">s</span>.<span class="pl-s1">cert</span> <span class="pl-c1">=</span> (<span class="pl-s1">certificate_path</span>, <span class="pl-s1">private_key_path</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Using Basic Authentication"</span>)
<span class="pl-k">try</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"creating new pkey with rest request "</span>)
<span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>.<span class="pl-en">post</span>(<span class="pl-s1">url</span><span class="pl-c1">=</span><span class="pl-s1">url</span>, <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">payload</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">e</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"exception in UFM rest request"</span>)
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"creating new pkey with rest request was send successfully."</span>)
<span class="pl-k">return</span> <span class="pl-s1">r</span>
<span class="pl-k">def</span> <span class="pl-en">run_rest_in_loop</span>(<span class="pl-s1">shell</span>,<span class="pl-s1">ip</span>, <span class="pl-s1">prodcut_type</span>, <span class="pl-s1">loops</span>,<span class="pl-s1">time</span>, <span class="pl-s1">username</span>, <span class="pl-s1">password</span>, <span class="pl-s1">private_key_path</span>, <span class="pl-s1">certificate_path</span>):
<span class="pl-s1">counter</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>
<span class="pl-s1">success</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>
<span class="pl-s1">time_started</span> <span class="pl-c1">=</span> <span class="pl-s1">datetime</span>.<span class="pl-s1">datetime</span>.<span class="pl-en">now</span>()
<span class="pl-c">#file = os.path.realpath(__file__) + os.sep +'..' + os.sep + os.path.join('csv', 'RestAPI_loop_requests.csv')</span>
<span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s1">global_requests_path</span>, <span class="pl-s">'w'</span>, <span class="pl-s1">newline</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-k">as</span> <span class="pl-s1">csvfile</span>:
<span class="pl-s1">fieldnames</span> <span class="pl-c1">=</span> [<span class="pl-s">'iteration number'</span>, <span class="pl-s">'time'</span>, <span class="pl-s">'Response Code'</span>, <span class="pl-s">'Succeeded'</span>]
<span class="pl-s1">writer</span> <span class="pl-c1">=</span> <span class="pl-s1">csv</span>.<span class="pl-v">DictWriter</span>(<span class="pl-s1">csvfile</span>, <span class="pl-s1">fieldnames</span><span class="pl-c1">=</span><span class="pl-s1">fieldnames</span>)
<span class="pl-k">while</span> <span class="pl-en">continue_loop</span>(<span class="pl-s1">counter</span>,<span class="pl-s1">time_started</span>,<span class="pl-s1">loops</span>,<span class="pl-s1">time</span>):
<span class="pl-s1">request_send_time</span> <span class="pl-c1">=</span> <span class="pl-s1">datetime</span>.<span class="pl-s1">datetime</span>.<span class="pl-en">now</span>()
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-en">str</span>(<span class="pl-s1">counter</span>) <span class="pl-c1">+</span> <span class="pl-s">"# sending Rest request"</span>)
<span class="pl-s1">counter</span> <span class="pl-c1">+=</span> <span class="pl-c1">1</span>
<span class="pl-k">try</span>:
<span class="pl-k">if</span> (<span class="pl-s1">prodcut_type</span> <span class="pl-c1">==</span> <span class="pl-s">'ufm'</span>):
<span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-en">send_ufm_rest_get_pkey</span>(<span class="pl-s1">shell</span>,<span class="pl-s1">ip</span>,<span class="pl-s1">username</span>,<span class="pl-s1">password</span>,<span class="pl-s1">private_key_path</span>,<span class="pl-s1">certificate_path</span>)
<span class="pl-k">elif</span> (<span class="pl-s1">prodcut_type</span> <span class="pl-c1">==</span> <span class="pl-s">'neo'</span>):
<span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-en">send_neo_ports_rest_api</span>(<span class="pl-s1">ip</span>)
<span class="pl-c">#TODO - missing UFM Aplliance Rest</span>
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Exception on sending REST request"</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">counter</span>) <span class="pl-c1">+</span> <span class="pl-s">"<span class="pl-cce">\n</span>"</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">ex</span>))
<span class="pl-s1">sys</span>.<span class="pl-en">exit</span>(<span class="pl-c1">1</span>)
<span class="pl-s1">request_end_time</span> <span class="pl-c1">=</span> <span class="pl-s1">datetime</span>.<span class="pl-s1">datetime</span>.<span class="pl-en">now</span>()
<span class="pl-s1">total_requst_time</span> <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">request_end_time</span> <span class="pl-c1">-</span> <span class="pl-s1">request_send_time</span>)
<span class="pl-s1">request_status_code</span> <span class="pl-c1">=</span> <span class="pl-s1">r</span>.<span class="pl-s1">status_code</span>
<span class="pl-k">if</span> (<span class="pl-en">str</span>(<span class="pl-s1">r</span>.<span class="pl-s1">status_code</span>) <span class="pl-c1">==</span> <span class="pl-s">'200'</span>):
<span class="pl-s1">success</span> <span class="pl-c1">+=</span> <span class="pl-c1">1</span>
<span class="pl-s1">writer</span>.<span class="pl-en">writerow</span>(
{<span class="pl-s">'iteration number'</span>: <span class="pl-en">str</span>(<span class="pl-s1">counter</span>), <span class="pl-s">'time'</span>: <span class="pl-en">str</span>(<span class="pl-s1">time_started</span>), <span class="pl-s">'Response Code'</span>: <span class="pl-en">str</span>(<span class="pl-s1">request_status_code</span>),
<span class="pl-s">'Succeeded'</span>: <span class="pl-s">'Yes'</span>})
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Total time for request #"</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">counter</span>) <span class="pl-c1">+</span> <span class="pl-s">" is<span class="pl-cce">\t</span><span class="pl-cce">\t</span><span class="pl-cce">\t</span> "</span> <span class="pl-c1">+</span> <span class="pl-s1">total_requst_time</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Request # "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">counter</span>) <span class="pl-c1">+</span> <span class="pl-s">" Failed!"</span> <span class="pl-c1">+</span> <span class="pl-s">"Status Code is: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">request_status_code</span>))
<span class="pl-s1">writer</span>.<span class="pl-en">writerow</span>(
{<span class="pl-s">'iteration number'</span>: <span class="pl-s1">counter</span>, <span class="pl-s">'time'</span>: <span class="pl-s1">total_requst_time</span>, <span class="pl-s">'Response Code'</span>: <span class="pl-s1">request_status_code</span>,
<span class="pl-s">'Succeeded'</span>: <span class="pl-s">'No'</span>})
<span class="pl-s1">csvfile</span>.<span class="pl-en">close</span>()
<span class="pl-s1">end_time</span> <span class="pl-c1">=</span> <span class="pl-s1">datetime</span>.<span class="pl-s1">datetime</span>.<span class="pl-en">now</span>()
<span class="pl-s1">total_time</span> <span class="pl-c1">=</span> <span class="pl-s1">end_time</span> <span class="pl-c1">-</span> <span class="pl-s1">time_started</span>
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Total time for "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">counter</span>) <span class="pl-c1">+</span> <span class="pl-s">' loops'</span> <span class="pl-c1">+</span> <span class="pl-s">" was<span class="pl-cce">\t</span><span class="pl-cce">\t</span><span class="pl-cce">\t</span>"</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">total_time</span>) <span class="pl-c1">+</span> <span class="pl-s">"<span class="pl-cce">\t</span><span class="pl-cce">\t</span>Number of Success Requests:<span class="pl-cce">\t</span> "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">success</span>) <span class="pl-c1">+</span> <span class="pl-s">"/"</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">counter</span>))
<span class="pl-k">global</span> <span class="pl-s1">stop</span>
<span class="pl-s1">stop</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-k">def</span> <span class="pl-en">virtual_memory_of_processes</span>(<span class="pl-s1">shell</span>, <span class="pl-s1">loops</span>, <span class="pl-s1">product_type</span>):
<span class="pl-s1">base_regex</span> <span class="pl-c1">=</span> <span class="pl-s">r"""(\s{3,6})(\d{4,6})(\s{3,6})(\d*)(\s*)(\d*)(.*)(ufm/)(.*)"""</span>
<span class="pl-k">global</span> <span class="pl-s1">ufm_processes_name_list</span>
<span class="pl-s1">logging</span>.<span class="pl-en">debug</span>(<span class="pl-s">" Running ps -ef command to check running processes"</span>)
<span class="pl-s1">expected</span> <span class="pl-c1">=</span> <span class="pl-s1">product_type</span>
<span class="pl-s1">command</span> <span class="pl-c1">=</span> <span class="pl-s">'ps -ef | grep '</span><span class="pl-c1">+</span> <span class="pl-s1">product_type</span>
<span class="pl-s1">i</span><span class="pl-c1">=</span><span class="pl-c1">0</span>
<span class="pl-k">while</span> <span class="pl-s1">stop</span> <span class="pl-c1">==</span> <span class="pl-c1">False</span>:
<span class="pl-k">try</span>:
<span class="pl-s1">result</span>, <span class="pl-s1">output</span> <span class="pl-c1">=</span> <span class="pl-en">run_par_cmd</span>(<span class="pl-s1">cmd</span><span class="pl-c1">=</span><span class="pl-s1">command</span>, <span class="pl-s1">expect</span><span class="pl-c1">=</span><span class="pl-s1">expected</span>, <span class="pl-s1">shell</span><span class="pl-c1">=</span><span class="pl-s1">shell</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"exception in ps -ef command"</span>)
<span class="pl-k">if</span> <span class="pl-en">int</span>(<span class="pl-s1">result</span>) <span class="pl-c1">!=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>:
<span class="pl-k">for</span> <span class="pl-s1">process_name</span> <span class="pl-c1">in</span> <span class="pl-s1">ufm_processes_name_list</span>:
<span class="pl-s1">regex_search</span> <span class="pl-c1">=</span> <span class="pl-s1">base_regex</span> <span class="pl-c1">+</span> <span class="pl-s">'('</span><span class="pl-c1">+</span><span class="pl-s1">process_name</span> <span class="pl-c1">+</span> <span class="pl-s">')'</span>
<span class="pl-s1">matches</span> <span class="pl-c1">=</span> <span class="pl-en">findRegex</span>(<span class="pl-s1">output</span>, <span class="pl-s1">regex_search</span>)
<span class="pl-k">if</span> <span class="pl-s1">matches</span>:
<span class="pl-s1">process_vm</span> <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">matches</span>[<span class="pl-c1">0</span>][<span class="pl-c1">1</span>])
<span class="pl-s1">vm_size</span> <span class="pl-c1">=</span> <span class="pl-en">get_vmsize_of_process_by_process_id</span>(<span class="pl-s1">shell</span>, <span class="pl-s1">process_vm</span>)
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>( <span class="pl-en">str</span>(<span class="pl-s1">i</span>) <span class="pl-c1">+</span> <span class="pl-s">"# virtual memory of "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">process_name</span>) <span class="pl-c1">+</span> <span class="pl-s">" = "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">vm_size</span>))
<span class="pl-en">write_process_to_csv</span>(<span class="pl-s1">i</span>, <span class="pl-s1">process_name</span>,<span class="pl-s1">vm_size</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"couldn't find process virtual memory according to given regex"</span>)
<span class="pl-s1">i</span> <span class="pl-c1">+=</span> <span class="pl-c1">1</span>
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"couldn't find expected result in ps -ef command"</span>)
<span class="pl-k">def</span> <span class="pl-en">get_product_name_by_url</span>(<span class="pl-s1">url</span>):
<span class="pl-k">if</span> <span class="pl-en">int</span>(<span class="pl-en">str</span>(<span class="pl-s1">url</span>).<span class="pl-en">find</span>(<span class="pl-s">'ufm'</span>)) <span class="pl-c1">!=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>:
<span class="pl-k">return</span> <span class="pl-s">'ufm'</span>
<span class="pl-k">elif</span> <span class="pl-en">int</span>(<span class="pl-en">str</span>(<span class="pl-s1">url</span>).<span class="pl-en">find</span>(<span class="pl-s">'neo'</span>)) <span class="pl-c1">!=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>:
<span class="pl-k">return</span> <span class="pl-s">'neo'</span>
<span class="pl-k">else</span>:
<span class="pl-k">return</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>
<span class="pl-k">def</span> <span class="pl-en">create_graphs</span>():
<span class="pl-k">global</span> <span class="pl-s1">ufm_processes_name_list</span>
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Creating Graphs for processes"</span>)
<span class="pl-s1">dt</span> <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">datetime</span>.<span class="pl-s1">datetime</span>.<span class="pl-en">now</span>()).<span class="pl-en">split</span>(<span class="pl-s">"."</span>)[<span class="pl-c1">0</span>].<span class="pl-en">replace</span>(<span class="pl-s">" "</span>,<span class="pl-s">"_"</span>).<span class="pl-en">replace</span>(<span class="pl-s">":"</span>,<span class="pl-s">"-"</span>)
<span class="pl-c">#Creating sub folder for graphs_time</span>
<span class="pl-s1">current_graph_folder</span> <span class="pl-c1">=</span> <span class="pl-s1">global_graphs_path</span> <span class="pl-c1">+</span> <span class="pl-s1">dt</span> <span class="pl-c1">+</span> <span class="pl-s1">os</span>.<span class="pl-s1">sep</span>
<span class="pl-en">creating_directory</span>(<span class="pl-s1">current_graph_folder</span>)
<span class="pl-k">for</span> <span class="pl-s1">process_name</span> <span class="pl-c1">in</span> <span class="pl-s1">ufm_processes_name_list</span>:
<span class="pl-s1">filename</span> <span class="pl-c1">=</span> <span class="pl-s1">global_csv_path</span> <span class="pl-c1">+</span> <span class="pl-s">'RestAPI_loop_'</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">process_name</span>) <span class="pl-c1">+</span> <span class="pl-s">'.csv'</span>
<span class="pl-en">create_graph</span>(<span class="pl-s1">filename</span>, <span class="pl-en">str</span>(<span class="pl-s1">process_name</span>), <span class="pl-s">'VMSize(kb)'</span>,<span class="pl-s">'iterations'</span>,<span class="pl-s1">current_graph_folder</span>,<span class="pl-s1">process_name</span> )
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Creating Graphs for processes completed successfully"</span>)
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Creating Graphs for CPU/RAM usage"</span>)
<span class="pl-k">for</span> <span class="pl-s1">name</span> <span class="pl-c1">in</span> (<span class="pl-s">'ram'</span>,<span class="pl-s">'cpu'</span>):
<span class="pl-s1">filename</span> <span class="pl-c1">=</span> <span class="pl-s1">global_csv_path</span> <span class="pl-c1">+</span> <span class="pl-s">'RestAPI_loop_'</span> <span class="pl-c1">+</span> <span class="pl-s1">name</span> <span class="pl-c1">+</span> <span class="pl-s">'.csv'</span>
<span class="pl-en">create_graph</span>(<span class="pl-s1">filename</span>, <span class="pl-en">str</span>(<span class="pl-s1">name</span>), <span class="pl-s1">name</span> <span class="pl-c1">+</span><span class="pl-s">'(%)'</span>,<span class="pl-s">'iterations'</span>,<span class="pl-s1">current_graph_folder</span>,<span class="pl-s1">name</span>)
<span class="pl-k">def</span> <span class="pl-en">write_process_to_csv</span>(<span class="pl-s1">i</span>, <span class="pl-s1">process_name</span>,<span class="pl-s1">process_vm</span>):
<span class="pl-c">#csv_path = os.path.realpath(__file__) + os.sep + '..' + os.sep + os.path.join('csv')</span>
<span class="pl-s1">filename</span> <span class="pl-c1">=</span> <span class="pl-s1">global_csv_path</span> <span class="pl-c1">+</span> <span class="pl-s">'RestAPI_loop_'</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">process_name</span>)<span class="pl-c1">+</span> <span class="pl-s">'.csv'</span>
<span class="pl-s1">mode</span> <span class="pl-c1">=</span> <span class="pl-s">'a'</span>
<span class="pl-k">if</span> <span class="pl-s1">i</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span>:
<span class="pl-s1">mode</span> <span class="pl-c1">=</span> <span class="pl-s">'w'</span>
<span class="pl-k">try</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">debug</span>(<span class="pl-s">"Trying to open "</span> <span class="pl-c1">+</span> <span class="pl-s1">filename</span> <span class="pl-c1">+</span> <span class="pl-s">" to write data"</span>)
<span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s1">file</span><span class="pl-c1">=</span><span class="pl-s1">filename</span>, <span class="pl-s1">mode</span><span class="pl-c1">=</span><span class="pl-s1">mode</span>, <span class="pl-s1">newline</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-k">as</span> <span class="pl-s1">csvfile</span>:
<span class="pl-s1">fieldnames</span> <span class="pl-c1">=</span> [<span class="pl-s">'iteration number'</span>, <span class="pl-s">'VMSize'</span>]
<span class="pl-s1">writer</span> <span class="pl-c1">=</span> <span class="pl-s1">csv</span>.<span class="pl-v">DictWriter</span>(<span class="pl-s1">csvfile</span>, <span class="pl-s1">fieldnames</span><span class="pl-c1">=</span><span class="pl-s1">fieldnames</span>)
<span class="pl-s1">writer</span>.<span class="pl-en">writerow</span>({<span class="pl-s">'iteration number'</span>: <span class="pl-s1">i</span>, <span class="pl-s">'VMSize'</span>: <span class="pl-s1">process_vm</span>})
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"exception while writing data into"</span> <span class="pl-c1">+</span> <span class="pl-s1">filename</span>)
<span class="pl-s1">csvfile</span>.<span class="pl-en">close</span>()
<span class="pl-k">def</span> <span class="pl-en">thread_manager</span>(<span class="pl-s1">shells</span>,<span class="pl-s1">ip</span>, <span class="pl-s1">product_type</span>, <span class="pl-s1">loops</span>,<span class="pl-s1">time</span>, <span class="pl-s1">username</span>, <span class="pl-s1">password</span>, <span class="pl-s1">private_key_path</span>, <span class="pl-s1">certificate_path</span>,<span class="pl-s1">fabric_health</span>):
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"starting new thread: CPU/RAM Performance"</span>)
<span class="pl-s1">t1</span> <span class="pl-c1">=</span> <span class="pl-s1">threading</span>.<span class="pl-v">Thread</span>(<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">messurement_host_performance</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>(<span class="pl-s1">shells</span>, <span class="pl-s1">loops</span>))
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Starting new thread: REST requests in loop"</span>)
<span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-s1">threading</span>.<span class="pl-v">Thread</span>(<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">run_rest_in_loop</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>(<span class="pl-s1">shells</span>[<span class="pl-c1">2</span>],<span class="pl-s1">ip</span>, <span class="pl-s1">product_type</span>, <span class="pl-s1">loops</span>,<span class="pl-s1">time</span>, <span class="pl-s1">username</span>, <span class="pl-s1">password</span>, <span class="pl-s1">private_key_path</span>, <span class="pl-s1">certificate_path</span>))
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Measuring Processes virtual memory"</span>)
<span class="pl-c">#product_type = get_product_name_by_url(url)</span>
<span class="pl-s1">t3</span> <span class="pl-c1">=</span> <span class="pl-s1">threading</span>.<span class="pl-v">Thread</span>(<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">virtual_memory_of_processes</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>(<span class="pl-s1">shells</span>[<span class="pl-c1">3</span>], <span class="pl-s1">loops</span>, <span class="pl-s1">product_type</span>))
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Measuring Processes virtual memory"</span>)
<span class="pl-k">if</span> <span class="pl-en">str</span>(<span class="pl-s1">fabric_health</span>) <span class="pl-c1">==</span> <span class="pl-s">'yes'</span>:
<span class="pl-s1">t4</span> <span class="pl-c1">=</span> <span class="pl-s1">threading</span>.<span class="pl-v">Thread</span>(<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">create_ufm_health_report</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>(<span class="pl-s1">ip</span>, <span class="pl-s1">username</span>, <span class="pl-s1">password</span>))
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Starting Fabric health Reports"</span>)
<span class="pl-s1">t4</span>.<span class="pl-en">start</span>()
<span class="pl-s1">t5</span> <span class="pl-c1">=</span> <span class="pl-s1">threading</span>.<span class="pl-v">Thread</span>(<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">graphs_scheduler</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>())
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"start Thread to for creating graphs every one hour"</span>)
<span class="pl-s1">t1</span>.<span class="pl-en">start</span>()
<span class="pl-s1">t2</span>.<span class="pl-en">start</span>()
<span class="pl-s1">t3</span>.<span class="pl-en">start</span>()
<span class="pl-s1">t5</span>.<span class="pl-en">start</span>()
<span class="pl-s1">t1</span>.<span class="pl-en">join</span>(<span class="pl-s1">timeout</span><span class="pl-c1">=</span><span class="pl-c1">300</span>)
<span class="pl-s1">t2</span>.<span class="pl-en">join</span>(<span class="pl-s1">timeout</span><span class="pl-c1">=</span><span class="pl-c1">300</span>)
<span class="pl-s1">t3</span>.<span class="pl-en">join</span>(<span class="pl-s1">timeout</span><span class="pl-c1">=</span><span class="pl-c1">300</span>)
<span class="pl-k">if</span> <span class="pl-en">str</span>(<span class="pl-s1">fabric_health</span>) <span class="pl-c1">==</span> <span class="pl-s">'yes'</span>:
<span class="pl-s1">t4</span>.<span class="pl-en">join</span>(<span class="pl-s1">timeout</span><span class="pl-c1">=</span><span class="pl-c1">300</span>)
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Threads are joined!"</span>)
<span class="pl-k">def</span> <span class="pl-en">send_neo_ports_rest_api</span>(<span class="pl-s1">neo_ip</span>):
<span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s">r'http://ip/neo/resources/ports?_=1543846564166&tz=Asia/Jerusalem'</span>
<span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s1">url</span>.<span class="pl-en">replace</span>(<span class="pl-s">"ip"</span>, <span class="pl-s1">neo_ip</span>)
<span class="pl-s1">cookie</span> <span class="pl-c1">=</span> {<span class="pl-s">"session"</span>:<span class="pl-s">".eJyrVopPK0otzlCyKikqTdVRis9MUbKqVlJIUrJS8guJyooMSTeJrEqv8HdJyY4Mycj2D3et9HfJNvILycnwC3c1jQqPrIrK8rVVqgXqLUgtyk3MS80rgZlWWpxaBDZRKTElNzNPqRYAE_clcg.DubaoQ.I0UVeS061HEHVhzFeOqLobiNhTk"</span>}
<span class="pl-s1">payload</span> <span class="pl-c1">=</span> {<span class="pl-s">"_"</span>:<span class="pl-s">"1543846564166"</span>,<span class="pl-s">"tz"</span>:<span class="pl-s">"Asia/Jerusalem"</span>}
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"sending rest request for getting all ports #"</span>)
<span class="pl-k">try</span>:
<span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s1">url</span><span class="pl-c1">=</span> <span class="pl-s1">url</span>, <span class="pl-s1">cookies</span><span class="pl-c1">=</span><span class="pl-s1">cookie</span>, <span class="pl-s1">payload</span><span class="pl-c1">=</span><span class="pl-s1">payload</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">e</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"exception when sending rest API to NEO for getting all ports"</span>)
<span class="pl-k">return</span>
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Rest request for NEO succeeded."</span>)
<span class="pl-k">return</span> <span class="pl-s1">r</span>
<span class="pl-k">def</span> <span class="pl-en">create_graph</span>(<span class="pl-s1">filepath</span> ,<span class="pl-s1">title</span>, <span class="pl-s1">ylabel</span>, <span class="pl-s1">xlabel</span>, <span class="pl-s1">current_graph_folder</span>, <span class="pl-s1">process_name</span>):
<span class="pl-s1">style</span>.<span class="pl-en">use</span>(<span class="pl-s">'ggplot'</span>)
<span class="pl-k">try</span>:
<span class="pl-c">#filepath =</span>
<span class="pl-c">#C:\Users\arielwe\PycharmProjects\SecurityProject\Rest_Loop_CPU_RAM\csv\RestAPI_loop_mysqld.csv</span>
<span class="pl-c">#C:\Users\arielwe\PycharmProjects\SecurityProject\Rest_Loop_CPU_RAM\rest_loop_loading\csv\RestAPI_loop_mysqld.csv</span>
<span class="pl-c">#C:\Users\arielwe\PycharmProjects\SecurityProject\Rest_Loop_CPU_RAM\rest_loop_loading\csv\RestAPI_loop_mysqld.csv'</span>
<span class="pl-s1">x</span>,<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">loadtxt</span>(<span class="pl-s1">filepath</span>, <span class="pl-s1">unpack</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">delimiter</span><span class="pl-c1">=</span><span class="pl-s">','</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-en">print</span>(<span class="pl-s1">ex</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s1">title</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">ylabel</span>(<span class="pl-s1">ylabel</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">xlabel</span>(<span class="pl-s1">xlabel</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>,<span class="pl-s1">y</span>)
<span class="pl-s1">full_graph_path</span> <span class="pl-c1">=</span><span class="pl-s1">current_graph_folder</span> <span class="pl-c1">+</span> <span class="pl-s1">process_name</span> <span class="pl-c1">+</span> <span class="pl-s">".png"</span>
<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s1">full_graph_path</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">close</span>()
<span class="pl-k">def</span> <span class="pl-en">graphs_scheduler</span>():
<span class="pl-en">sleep</span>(<span class="pl-c1">10</span>)
<span class="pl-k">global</span> <span class="pl-s1">counter</span>
<span class="pl-k">global</span> <span class="pl-s1">stop</span>
<span class="pl-s1">counter</span><span class="pl-c1">+=</span><span class="pl-c1">1</span>
<span class="pl-k">if</span> <span class="pl-s1">stop</span> <span class="pl-c1">!=</span> <span class="pl-c1">False</span>:
<span class="pl-k">return</span> <span class="pl-c1">None</span>
<span class="pl-k">else</span>:
<span class="pl-s1">threading</span>.<span class="pl-v">Timer</span>(<span class="pl-c1">60</span>,<span class="pl-s1">graphs_scheduler</span>).<span class="pl-en">start</span>()
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Creating Graphs #"</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">counter</span>) <span class="pl-c1">+</span> <span class="pl-s">": time is "</span> <span class="pl-c1">+</span><span class="pl-en">str</span>(<span class="pl-s1">datetime</span>.<span class="pl-s1">datetime</span>.<span class="pl-en">now</span>()))
<span class="pl-en">create_graphs</span>()
<span class="pl-k">def</span> <span class="pl-en">get_payload_for_request</span>(<span class="pl-s1">payload</span>):
<span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s1">payload</span>) <span class="pl-k">as</span> <span class="pl-s1">json_data</span>:
<span class="pl-k">try</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Parsing json payload from file..."</span>)
<span class="pl-s1">json_obj</span> <span class="pl-c1">=</span> <span class="pl-s1">json</span>.<span class="pl-en">load</span>(<span class="pl-s1">json_data</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Couldn't parse file to json object"</span>)
<span class="pl-s1">sys</span>.<span class="pl-en">exit</span>(<span class="pl-c1">1</span>)
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"json file parsed successfully"</span>)
<span class="pl-s1">json_data</span>.<span class="pl-en">close</span>()
<span class="pl-k">return</span> <span class="pl-s1">json_obj</span>
<span class="pl-k">def</span> <span class="pl-v">DisplayOptions</span>():
<span class="pl-c">#TODO- fix useage</span>
<span class="pl-s1">usage</span> <span class="pl-c1">=</span> <span class="pl-s">r"""usage: python memory_tester.py [options] arg1 arg2\n" </span>
<span class="pl-s"> Example: python memory_tester.py </span>
<span class="pl-s"> --product ufm</span>
<span class="pl-s"> -- ip 10.209.27.110</span>
<span class="pl-s"> --time 48</span>
<span class="pl-s"> --loops 500</span>
<span class="pl-s"> --pkey alice.key </span>
<span class="pl-s"> --certificate alice.cert.pem</span>
<span class="pl-s"> """</span>
<span class="pl-s1">parser</span> <span class="pl-c1">=</span> <span class="pl-s1">optparse</span>.<span class="pl-v">OptionParser</span>(<span class="pl-s1">usage</span><span class="pl-c1">=</span><span class="pl-s1">usage</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_option</span>(<span class="pl-s">"--product"</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">"type"</span>, <span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">"product type [ufm/ufmapl/neo]"</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_option</span>(<span class="pl-s">"--ip"</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">"ip"</span>, <span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">"ip address of the machine"</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_option</span>(<span class="pl-s">"--time"</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">"time"</span>, <span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">"total time for script to run in hours "</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_option</span>(<span class="pl-s">"--loops"</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">"loops"</span>, <span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">"number of REST calls in loop [Optional]"</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_option</span>(<span class="pl-s">"--pkey"</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">"private_key_path"</span>, <span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">"private key path for SSL client certification [Optional]"</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_option</span>(<span class="pl-s">"--certificate"</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">"certificate_path"</span>, <span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">"certificate path for SSL client certification [Optional]"</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_option</span>(<span class="pl-s">"--fabric_health"</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">"fabric_health"</span>, <span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">"sending REST API calls to create UFM fabric health report [Optional]"</span>)
(<span class="pl-s1">options</span>, <span class="pl-s1">args</span>) <span class="pl-c1">=</span> <span class="pl-s1">parser</span>.<span class="pl-en">parse_args</span>()
<span class="pl-k">if</span> ((<span class="pl-s1">options</span>.<span class="pl-s1">type</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>) <span class="pl-c1">or</span> (<span class="pl-s1">options</span>.<span class="pl-s1">ip</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>) <span class="pl-c1">or</span> (<span class="pl-s1">options</span>.<span class="pl-s1">time</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>)):
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Missing parameters for script...exiting<span class="pl-cce">\n</span>"</span>)
<span class="pl-s1">sys</span>.<span class="pl-en">exit</span>(<span class="pl-c1">1</span>)
<span class="pl-k">return</span> <span class="pl-s1">options</span>
<span class="pl-k">def</span> <span class="pl-en">getIPfromURL</span>(<span class="pl-s1">url</span>):
<span class="pl-s1">regex_url</span><span class="pl-c1">=</span><span class="pl-s">r'\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b'</span>
<span class="pl-s1">ip</span> <span class="pl-c1">=</span> <span class="pl-en">findRegex</span>(<span class="pl-s1">output</span><span class="pl-c1">=</span><span class="pl-s1">url</span>,<span class="pl-s1">regex_search</span><span class="pl-c1">=</span><span class="pl-s1">regex_url</span>)
<span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">ip</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">"Couldn't retreived ip from URL"</span>)
<span class="pl-s1">sys</span>.<span class="pl-en">exit</span>(<span class="pl-c1">1</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"IP is: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-s1">ip</span>))
<span class="pl-k">return</span> <span class="pl-s1">ip</span>[<span class="pl-c1">0</span>]
<span class="pl-k">def</span> <span class="pl-en">get_username_password</span>(<span class="pl-s1">credentials</span>):
<span class="pl-s1">splited</span> <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">credentials</span>).<span class="pl-en">split</span>(<span class="pl-s">':'</span>)
<span class="pl-s1">username</span>, <span class="pl-s1">password</span> <span class="pl-c1">=</span> <span class="pl-s1">splited</span>[<span class="pl-c1">0</span>], <span class="pl-s1">splited</span>[<span class="pl-c1">1</span>]
<span class="pl-s1">password</span>.<span class="pl-en">replace</span>(<span class="pl-s">':'</span>,<span class="pl-s">''</span>)
<span class="pl-k">return</span> <span class="pl-s1">username</span>, <span class="pl-s1">password</span>
<span class="pl-k">def</span> <span class="pl-en">isShellMode</span>(<span class="pl-s1">shell</span>):
<span class="pl-s1">cmd</span> <span class="pl-c1">=</span> <span class="pl-s">'<span class="pl-cce">\n</span>'</span>
<span class="pl-s1">expected</span> <span class="pl-c1">=</span> [<span class="pl-s">'>'</span>]
<span class="pl-k">for</span> <span class="pl-s1">cmd</span>, <span class="pl-s1">expect</span> <span class="pl-c1">in</span> <span class="pl-en">zip</span>(<span class="pl-s1">cmd</span>, <span class="pl-s1">expected</span>):
<span class="pl-s1">result</span>, <span class="pl-s1">output</span> <span class="pl-c1">=</span> <span class="pl-en">run_par_cmd</span>(<span class="pl-s1">cmd</span><span class="pl-c1">=</span><span class="pl-s1">cmd</span>, <span class="pl-s1">expect</span><span class="pl-c1">=</span><span class="pl-s1">expect</span>, <span class="pl-s1">shell</span><span class="pl-c1">=</span><span class="pl-s1">shell</span>)
<span class="pl-k">if</span> ((<span class="pl-en">int</span>(<span class="pl-s1">result</span>) <span class="pl-c1">==</span> <span class="pl-c1">0</span>) <span class="pl-c1">and</span> (<span class="pl-en">len</span>(<span class="pl-s1">output</span>) <span class="pl-c1">></span> <span class="pl-c1">0</span>)):
<span class="pl-s1">logging</span>.<span class="pl-en">debug</span>(<span class="pl-s1">cmd</span> <span class="pl-c1">+</span> <span class="pl-s">"working in Shell Mode equal true"</span>)
<span class="pl-k">return</span> <span class="pl-c1">True</span>
<span class="pl-k">else</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">debug</span>(<span class="pl-s1">cmd</span> <span class="pl-c1">+</span> <span class="pl-s">"working in Shell Mode equal false"</span>)
<span class="pl-k">return</span> <span class="pl-c1">False</span>
<span class="pl-k">def</span> <span class="pl-en">get_credentials_from_product_type</span>(<span class="pl-s1">type</span>):
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Checking product type and set correct credentails"</span>)
<span class="pl-k">if</span> <span class="pl-s1">type</span> <span class="pl-c1">==</span> <span class="pl-s">'ufm'</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Product is UFM-IB"</span>)
<span class="pl-k">return</span> (<span class="pl-s">'admin'</span>,<span class="pl-s">'****'</span>)
<span class="pl-k">elif</span> <span class="pl-s1">type</span> <span class="pl-c1">==</span> <span class="pl-s">'neo'</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Product is NEO"</span>)
<span class="pl-k">return</span> (<span class="pl-s">'admin'</span>,<span class="pl-s">'****'</span>)
<span class="pl-k">elif</span> <span class="pl-s1">type</span> <span class="pl-c1">==</span> <span class="pl-s">'ufmapl'</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Product is UFM-Appliance"</span>)
<span class="pl-k">return</span> (<span class="pl-s">'admin'</span>,<span class="pl-s">'*****'</span>)
<span class="pl-k">def</span> <span class="pl-en">main</span>():
<span class="pl-s1">logging</span>.<span class="pl-en">basicConfig</span>(<span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-s1">logging</span>.<span class="pl-v">INFO</span>,
<span class="pl-s1">format</span><span class="pl-c1">=</span><span class="pl-s">'%(asctime)s %(levelname)-8s %(message)s'</span>,
<span class="pl-s1">datefmt</span><span class="pl-c1">=</span><span class="pl-s">'%m-%d %H:%M'</span>,
<span class="pl-s1">filemode</span><span class="pl-c1">=</span><span class="pl-s">'w'</span>)
<span class="pl-s1">options</span> <span class="pl-c1">=</span> <span class="pl-v">DisplayOptions</span>()
<span class="pl-en">creating_directory</span>(<span class="pl-s1">global_csv_path</span>)
<span class="pl-en">creating_directory</span>(<span class="pl-s1">global_graphs_path</span>)
<span class="pl-c">#TODO - Add argparse for NEO/UFM/APL</span>
<span class="pl-c">#ip = getIPfromURL(options.url)</span>
<span class="pl-c">#username, password = get_username_password(options.credentials)</span>
<span class="pl-s1">type</span>,<span class="pl-s1">ip</span>, <span class="pl-s1">loops</span> ,<span class="pl-s1">time</span>, <span class="pl-s1">private_key_path</span>,<span class="pl-s1">certificate_path</span>, <span class="pl-s1">fabric_health</span><span class="pl-c1">=</span> \
<span class="pl-s1">options</span>.<span class="pl-s1">type</span>, <span class="pl-s1">options</span>.<span class="pl-s1">ip</span> ,<span class="pl-s1">options</span>.<span class="pl-s1">loops</span>, <span class="pl-s1">options</span>.<span class="pl-s1">time</span>, <span class="pl-s1">options</span>.<span class="pl-s1">private_key_path</span>, <span class="pl-s1">options</span>.<span class="pl-s1">certificate_path</span>, <span class="pl-s1">options</span>.<span class="pl-s1">fabric_health</span>
<span class="pl-s1">username</span>, <span class="pl-s1">password</span> <span class="pl-c1">=</span> <span class="pl-en">get_credentials_from_product_type</span>(<span class="pl-s1">type</span>)
<span class="pl-c">#payload_obj = get_payload_for_request(payload)</span>
<span class="pl-c">#TODO - Currently supports only appliance machine</span>
<span class="pl-s1">shells</span> <span class="pl-c1">=</span> []
<span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">5</span>):
<span class="pl-k">if</span> <span class="pl-s1">type</span> <span class="pl-c1">==</span> <span class="pl-s">'ufmapl'</span>:
<span class="pl-s1">ssh</span> <span class="pl-c1">=</span> <span class="pl-v">SSHConnect</span>(<span class="pl-s1">ip</span><span class="pl-c1">=</span><span class="pl-s1">ip</span>, <span class="pl-s1">username</span><span class="pl-c1">=</span><span class="pl-s">'admin'</span>, <span class="pl-s1">passowrd</span><span class="pl-c1">=</span><span class="pl-s">'admin'</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">ssh</span> <span class="pl-c1">=</span> <span class="pl-v">SSHConnect</span>(<span class="pl-s1">ip</span><span class="pl-c1">=</span><span class="pl-s1">ip</span>, <span class="pl-s1">username</span><span class="pl-c1">=</span><span class="pl-s">'root'</span>, <span class="pl-s1">passowrd</span><span class="pl-c1">=</span><span class="pl-s">'****'</span>)
<span class="pl-s1">shells</span>.<span class="pl-en">append</span>(<span class="pl-en">createshell</span>(<span class="pl-s1">ssh</span><span class="pl-c1">=</span><span class="pl-s1">ssh</span>))
<span class="pl-k">if</span> <span class="pl-s1">type</span> <span class="pl-c1">==</span> <span class="pl-s">'ufmapl'</span>:
<span class="pl-k">if</span> <span class="pl-en">isShellMode</span>(<span class="pl-s1">shells</span>[<span class="pl-s1">i</span>]):
<span class="pl-v">ChangeToShellMode</span>(<span class="pl-s1">shell</span><span class="pl-c1">=</span><span class="pl-s1">shells</span>[<span class="pl-s1">i</span>])
<span class="pl-en">thread_manager</span>(<span class="pl-s1">shells</span>,<span class="pl-s1">ip</span>, <span class="pl-s1">type</span>, <span class="pl-s1">loops</span>,<span class="pl-s1">time</span>, <span class="pl-s1">username</span>, <span class="pl-s1">password</span>, <span class="pl-s1">private_key_path</span>, <span class="pl-s1">certificate_path</span>,<span class="pl-s1">fabric_health</span>)
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Graphs are located under "</span> <span class="pl-c1">+</span> <span class="pl-s1">global_graphs_path</span> )
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"Script is completed"</span>)
<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>:
<span class="pl-en">main</span>()
<span class="pl-c1">**</span><span class="pl-v">Actual</span> <span class="pl-s1">outcome</span><span class="pl-c1">**</span>
<span class="pl-c1"><</span>!<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-v">The</span> <span class="pl-s1">output</span> <span class="pl-s1">produced</span> <span class="pl-s1">by</span> <span class="pl-s1">the</span> <span class="pl-s1">above</span> <span class="pl-s1">code</span>, <span class="pl-s1">which</span> <span class="pl-s1">may</span> <span class="pl-s1">be</span> <span class="pl-s1">a</span> <span class="pl-s1">screenshot</span>, <span class="pl-s1">console</span> <span class="pl-s1">output</span>, <span class="pl-s1">etc</span>.<span class="pl-c1">-</span><span class="pl-c1">-></span></pre></div>
<h1 dir="auto">If applicable, paste the console output here</h1>
<p dir="auto">running command: memory_tester.py --fabric_health yes --product ufm --ip 10.209.27.119 --time 1 --pkey C:\Users\arielwe\Desktop\SecurityProject\RESTAPI_loop_files\alice.key --certificate C:\Users\arielwe\Desktop\SecurityProject\RESTAPI_loop_files\alice.cert.pem</p>
<p dir="auto">output:<br>
12-06 10:18 INFO creating new pkey with rest request was send successfully.<br>
12-06 10:18 INFO Fabric Health succeeded...<br>
12-06 10:18 INFO 1117# Sending Fabric Health Report...<br>
12-06 10:18 INFO Total time for request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10164601" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1692" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/1692/hovercard" href="https://github.com/matplotlib/matplotlib/issues/1692">#1692</a> is 0:00:00.176482<br>
12-06 10:18 INFO 1692# sending Rest request<br>
12-06 10:18 INFO creating new pkey with rest request<br>
12-06 10:18 INFO creating new pkey with rest request was send successfully.<br>
12-06 10:18 INFO Fabric Health succeeded...<br>
12-06 10:18 INFO 1118# Sending Fabric Health Report...<br>
12-06 10:18 INFO Total time for request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10165861" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1693" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/1693/hovercard" href="https://github.com/matplotlib/matplotlib/issues/1693">#1693</a> is 0:00:00.120330<br>
12-06 10:18 INFO 1693# sending Rest request<br>
12-06 10:18 INFO creating new pkey with rest request<br>
Exception ignored in: <generator object _process_plot_var_args._getdefaults.. at 0x0EE81930><br>
Traceback (most recent call last):<br>
File "C:\Users\arielwe\PycharmProjects\SecurityProject\venv\lib\site-packages\matplotlib\axes_base.py", line 262, in <br>
for k in prop_keys):<br>
SystemError: error return without exception set<br>
12-06 10:18 INFO creating new pkey with rest request was send successfully.<br>
Exception ignored in: <generator object Transform._iter_break_from_left_to_right at 0x14E07840><br>
Traceback (most recent call last):<br>
File "C:\Users\arielwe\PycharmProjects\SecurityProject\venv\lib\site-packages\matplotlib\transforms.py", line 1302, in _iter_break_from_left_to_right<br>
12-06 10:18 INFO Total time for request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10165947" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1694" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/1694/hovercard" href="https://github.com/matplotlib/matplotlib/pull/1694">#1694</a> is 0:00:00.096263<br>
12-06 10:18 INFO 1694# sending Rest request<br>
12-06 10:18 INFO creating new pkey with rest request<br>
12-06 10:18 INFO Fabric Health succeeded...<br>
12-06 10:18 INFO 1119# Sending Fabric Health Report...<br>
yield IdentityTransform(), self<br>
SystemError: error return without exception set<br>
Exception ignored in: <generator object CompositeGenericTransform._iter_break_from_left_to_right at 0x0E68A750><br>
Traceback (most recent call last):<br>
File "C:\Users\arielwe\PycharmProjects\SecurityProject\venv\lib\site-packages\matplotlib\transforms.py", line 2409, in _iter_break_from_left_to_right<br>
yield left, right + self._b<br>
SystemError: error return without exception set<br>
12-06 10:18 INFO creating new pkey with rest request was send successfully.<br>
12-06 10:18 INFO Total time for request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10218592" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1695" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/1695/hovercard" href="https://github.com/matplotlib/matplotlib/pull/1695">#1695</a> is 0:00:00.096264<br>
12-06 10:18 INFO 1695# sending Rest request<br>
12-06 10:18 INFO creating new pkey with rest request<br>
12-06 10:18 INFO Fabric Health succeeded...<br>
12-06 10:18 INFO 1120# Sending Fabric Health Report...<br>
12-06 10:18 INFO creating new pkey with rest request was send successfully.<br>
12-06 10:18 INFO Total time for request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10244322" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1696" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/1696/hovercard" href="https://github.com/matplotlib/matplotlib/pull/1696">#1696</a> is 0:00:00.110302<br>
12-06 10:18 INFO 1696# sending Rest request<br>
12-06 10:18 INFO creating new pkey with rest request<br>
12-06 10:18 INFO Fabric Health succeeded...<br>
12-06 10:18 INFO 1121# Sending Fabric Health Report...<br>
12-06 10:18 INFO 264# CPU usage is: 0.00725173%<br>
12-06 10:18 INFO creating new pkey with rest request was send successfully.<br>
12-06 10:18 INFO 264# RAM value is : 7.162979808958611%<br>
12-06 10:18 INFO Total time for request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10246367" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1697" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/1697/hovercard" href="https://github.com/matplotlib/matplotlib/pull/1697">#1697</a> is 0:00:00.126346<br>
12-06 10:18 INFO 1697# sending Rest request<br>
12-06 10:18 INFO creating new pkey with rest request<br>
12-06 10:18 INFO Measuring CPU USage...<br>
12-06 10:18 INFO Measuring RAM USage...<br>
12-06 10:18 INFO cat /proc/2767/status command run successfully<br>
12-06 10:18 INFO 34# virtual memory of mysqld = 12244<br>
12-06 10:18 INFO Fabric Health succeeded...<br>
12-06 10:18 INFO 1122# Sending Fabric Health Report...<br>
12-06 10:18 INFO creating new pkey with rest request was send successfully.<br>
12-06 10:18 INFO Total time for request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10247172" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1698" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/1698/hovercard" href="https://github.com/matplotlib/matplotlib/pull/1698">#1698</a> is 0:00:00.113308<br>
12-06 10:18 INFO 1698# sending Rest request<br>
12-06 10:18 INFO creating new pkey with rest request<br>
Exception ignored in: <generator object broadcast_arrays.. at 0x0FE2E540><br>
Traceback (most recent call last):<br>
File "C:\Users\arielwe\PycharmProjects\SecurityProject\venv\lib\site-packages\numpy\lib\stride_tricks.py", line 254, in <br>
if all(array.shape == shape for array in args):<br>
SystemError: error return without exception set<br>
Exception ignored in: <generator object broadcast_arrays.. at 0x0C992600><br>
Traceback (most recent call last):<br>
File "C:\Users\arielwe\PycharmProjects\SecurityProject\venv\lib\site-packages\numpy\lib\stride_tricks.py", line 254, in <br>
if all(array.shape == shape for array in args):<br>
SystemError: error return without exception set<br>
12-06 10:18 INFO 1703# sending Rest request<br>
12-06 10:18 INFO creating new pkey with rest request<br>
File "C:\Users\arielwe\PycharmProjects\SecurityProject\venv\lib\site-packages\matplotlib\ticker.py", line 690, in <br>
if abs_min // 10 ** oom != abs_max // 10 ** oom)<br>
SystemError: error return without exception set<br>
12-06 10:18 INFO Fabric Health succeeded...</p> | 0 |
<h4 dir="auto">Description</h4>
<p dir="auto">I have the same error as indicated on stack overflow (<a href="https://stackoverflow.com/questions/43964166/imp-module-is-deprecated-in-favour-of-importlib" rel="nofollow">https://stackoverflow.com/questions/43964166/imp-module-is-deprecated-in-favour-of-importlib</a>)<br>
And, Khushhalm's answer on this page does fix the problem; but I'm wondering if this could be fixed permanently. Thanks.</p>
<p dir="auto">importing sklearn modules ..</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.base import BaseEstimator, TransformerMixin"><pre class="notranslate"><code class="notranslate">from sklearn.base import BaseEstimator, TransformerMixin
</code></pre></div>
<p dir="auto">generates this error</p>
<p dir="auto">/usr/local/lib/python3.6/dist-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<p dir="auto">starting the Python terminal and entering the following</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.base import BaseEstimator, TransformerMixin"><pre class="notranslate"><code class="notranslate">from sklearn.base import BaseEstimator, TransformerMixin
</code></pre></div>
<p dir="auto">generates this error</p>
<p dir="auto">/usr/local/lib/python3.6/dist-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses</p>
<h4 dir="auto">Expected Results</h4>
<p dir="auto">No error is thrown.</p>
<h4 dir="auto">Actual Results</h4>
<p dir="auto">/usr/local/lib/python3.6/dist-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses</p>
<h4 dir="auto">Versions</h4>
<h2 dir="auto">System</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python: 3.6.6 (default, Sep 12 2018, 18:26:19) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]"><pre class="notranslate"><code class="notranslate">python: 3.6.6 (default, Sep 12 2018, 18:26:19) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]
</code></pre></div>
<p dir="auto">executable: /usr/local/bin/python<br>
machine: Linux-4.4.0-137-generic-x86_64-with-Ubuntu-18.04-bionic</p>
<h2 dir="auto">BLAS</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="macros:"><pre class="notranslate"><code class="notranslate">macros:
</code></pre></div>
<p dir="auto">lib_dirs:<br>
cblas_libs: cblas</p>
<h2 dir="auto">Python deps</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" pip: 18.1"><pre class="notranslate"><code class="notranslate"> pip: 18.1
</code></pre></div>
<p dir="auto">setuptools: 39.0.1<br>
sklearn: 0.20.0<br>
numpy: 1.15.2<br>
scipy: 1.1.0<br>
Cython: 0.29<br>
pandas: 0.23.4</p> | <p dir="auto">Imagine you had a lot of columns, but that some of those columns never changed or were duplicated due to any number of circumstances. You might not even notice that you have these useless columns. It would be nice to have an optional preprocessing function that warns you about columns that would add no new information to the training, and optionally, trim those columns. Algorithms like <code class="notranslate">build_tree</code> still have to consider those columns, and it gets expensive. Apologies if this is not the place for my comment.</p> | 0 |
<p dir="auto">This is a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="120770764" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/5662" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/5662/hovercard" href="https://github.com/angular/angular/issues/5662">#5662</a> but I'm still creating this issue as it happens with Angular 2.0 RC1.</p>
<p dir="auto">Here's the error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Chrome 51.0.2704 (Windows 7 0.0.0): Executed 0 of 3 SUCCESS (0 secs / 0 secs)
Chrome 51.0.2704 (Windows 7 0.0.0): Executed 2 of 3 SUCCESS (0 secs / 0.02 secs)
ERROR: 'Potentially unhandled rejection [2] Failed to load /app/app.component.html (WARNING: non-Error used)'"><pre class="notranslate"><code class="notranslate">Chrome 51.0.2704 (Windows 7 0.0.0): Executed 0 of 3 SUCCESS (0 secs / 0 secs)
Chrome 51.0.2704 (Windows 7 0.0.0): Executed 2 of 3 SUCCESS (0 secs / 0.02 secs)
ERROR: 'Potentially unhandled rejection [2] Failed to load /app/app.component.html (WARNING: non-Error used)'
</code></pre></div> | <p dir="auto">Suppose you have this class hierarchy<br>
A<br>
|<br>
B<br>
and A implements OnInit but B does not explicitly declare that it implements OnInit, only that it extends A. Then angular will (incorrectly) not call ngOnInit when it creates an instance of B.</p> | 0 |
<h3 dir="auto">System information (version)</h3>
<ul dir="auto">
<li>OpenCV => 4.1.1</li>
<li>Operating System / Platform => Windows 64 Bit</li>
<li>Compiler => Qt Qreator</li>
</ul>
<h3 dir="auto">Detailed description</h3>
<p dir="auto">I've trained a custom Tensorflow-Model (completely from scratch, no transfer-training) and I can predict my Model inside my training framework (tensorpack) without any issues. Now I want to deploy my Model into openCV to use it in my main project. I know that the following steps have to be made to succesfully load my model into openCV:</p>
<ol dir="auto">
<li>Freeze the Graph and generate a frozenGraph.pb with tf.optimize_for_inference // DONE</li>
<li>Generate a config.pbtxt File with tf.train.write_graph(frozenGraph, asText=True) // DONE</li>
</ol>
<p dir="auto">However, I cannot load my model into openCV. I've tried differenct approaches and always get an exception. However, the exceptions differs based on the following factors:</p>
<p dir="auto"><strong>A.</strong> Net ub6net = readNetFromTensorflow (model) // ONLY PB FILE</p>
<p dir="auto"><strong>A.1 - optimize_for_inference disabled:</strong> Input Node not found Exception<br>
<strong>A.2 - optimize_for_inference enabled:</strong> nodesMapIt != nodesMap.end() in func sortByExecutionOrder</p>
<p dir="auto"><strong>B.</strong> Net ub6net = readNetFromTensorflow (model, config) // PB and PBTXT</p>
<p dir="auto"><strong>B.1 - optimize_for_inference disabled:</strong> Assertion failed in function 'addConstNodes'<br>
<strong>B.2 - optimize_for_inference enabled:</strong> Assertion failed in function 'addConstNodes'</p>
<hr>
<p dir="auto">It does not seem to make a difference if I use optimize_for_inference when I read the network with the pbtxt and pb File, I get the same Exception in both cases.</p>
<p dir="auto"><strong>My Code to generate the pb and pbtxt file:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# -*- coding: utf-8 -*-
# File: export.py
import tensorflow as tf
from tensorflow.python.framework import graph_util
from tensorflow.python.platform import gfile
from tensorflow.python.tools import optimize_for_inference_lib
from ..compat import is_tfv2, tfv1
from ..input_source import PlaceholderInput
from ..tfutils.common import get_tensors_by_names, get_tf_version_tuple
from ..tfutils.tower import PredictTowerContext
from ..utils import logger
__all__ = ['ModelExporter']
class ModelExporter(object):
"""Export models for inference."""
def __init__(self, config):
"""Initialise the export process.
Args:
config (PredictConfig): the config to use.
The graph will be built with the tower function defined by this `PredictConfig`.
Then the input / output names will be used to export models for inference.
"""
super(ModelExporter, self).__init__()
self.config = config
def export_compact(self, filename, optimize=True, toco_compatible=False):
"""Create a self-contained inference-only graph and write final graph (in pb format) to disk.
Args:
filename (str): path to the output graph
optimize (bool): whether to use TensorFlow's `optimize_for_inference`
to prune and optimize the graph. This does not work on all types of graphs.
toco_compatible (bool): See TensorFlow's
`optimize_for_inference
<https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/optimize_for_inference.py>`_
for details. Only available after TF 1.8.
"""
if toco_compatible:
assert optimize, "toco_compatible is only effective when optimize=True!"
self.graph = self.config._maybe_create_graph()
with self.graph.as_default():
input = PlaceholderInput()
input.setup(self.config.input_signature)
with PredictTowerContext(''):
self.config.tower_func(*input.get_input_tensors())
input_tensors = get_tensors_by_names(self.config.input_names)
output_tensors = get_tensors_by_names(self.config.output_names)
self.config.session_init._setup_graph()
# we cannot use "self.config.session_creator.create_session()" here since it finalizes the graph
sess = tfv1.Session(config=tfv1.ConfigProto(allow_soft_placement=True))
self.config.session_init._run_init(sess)
dtypes = [n.dtype for n in input_tensors]
# freeze variables to constants
frozen_graph_def = graph_util.convert_variables_to_constants(
sess,
self.graph.as_graph_def(),
[n.name[:-2] for n in output_tensors],
variable_names_whitelist=None,
variable_names_blacklist=None)
# prune unused nodes from graph
if optimize:
toco_args = () if get_tf_version_tuple() < (1, 8) else (toco_compatible, )
frozen_graph_def = optimize_for_inference_lib.optimize_for_inference(
frozen_graph_def,
[n.name[:-2] for n in input_tensors],
[n.name[:-2] for n in output_tensors],
[dtype.as_datatype_enum for dtype in dtypes],
*toco_args)
tf.train.write_graph(frozen_graph_def, filename, 'ub6_model.pb', as_text=False)
logger.info("Output graph written to {}.".format(filename))
tf.train.write_graph(frozen_graph_def, filename, 'ub6_config.pbtxt', as_text=True)
logger.info("Output graph written to {}.".format(filename))"><pre class="notranslate"><code class="notranslate"># -*- coding: utf-8 -*-
# File: export.py
import tensorflow as tf
from tensorflow.python.framework import graph_util
from tensorflow.python.platform import gfile
from tensorflow.python.tools import optimize_for_inference_lib
from ..compat import is_tfv2, tfv1
from ..input_source import PlaceholderInput
from ..tfutils.common import get_tensors_by_names, get_tf_version_tuple
from ..tfutils.tower import PredictTowerContext
from ..utils import logger
__all__ = ['ModelExporter']
class ModelExporter(object):
"""Export models for inference."""
def __init__(self, config):
"""Initialise the export process.
Args:
config (PredictConfig): the config to use.
The graph will be built with the tower function defined by this `PredictConfig`.
Then the input / output names will be used to export models for inference.
"""
super(ModelExporter, self).__init__()
self.config = config
def export_compact(self, filename, optimize=True, toco_compatible=False):
"""Create a self-contained inference-only graph and write final graph (in pb format) to disk.
Args:
filename (str): path to the output graph
optimize (bool): whether to use TensorFlow's `optimize_for_inference`
to prune and optimize the graph. This does not work on all types of graphs.
toco_compatible (bool): See TensorFlow's
`optimize_for_inference
<https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/optimize_for_inference.py>`_
for details. Only available after TF 1.8.
"""
if toco_compatible:
assert optimize, "toco_compatible is only effective when optimize=True!"
self.graph = self.config._maybe_create_graph()
with self.graph.as_default():
input = PlaceholderInput()
input.setup(self.config.input_signature)
with PredictTowerContext(''):
self.config.tower_func(*input.get_input_tensors())
input_tensors = get_tensors_by_names(self.config.input_names)
output_tensors = get_tensors_by_names(self.config.output_names)
self.config.session_init._setup_graph()
# we cannot use "self.config.session_creator.create_session()" here since it finalizes the graph
sess = tfv1.Session(config=tfv1.ConfigProto(allow_soft_placement=True))
self.config.session_init._run_init(sess)
dtypes = [n.dtype for n in input_tensors]
# freeze variables to constants
frozen_graph_def = graph_util.convert_variables_to_constants(
sess,
self.graph.as_graph_def(),
[n.name[:-2] for n in output_tensors],
variable_names_whitelist=None,
variable_names_blacklist=None)
# prune unused nodes from graph
if optimize:
toco_args = () if get_tf_version_tuple() < (1, 8) else (toco_compatible, )
frozen_graph_def = optimize_for_inference_lib.optimize_for_inference(
frozen_graph_def,
[n.name[:-2] for n in input_tensors],
[n.name[:-2] for n in output_tensors],
[dtype.as_datatype_enum for dtype in dtypes],
*toco_args)
tf.train.write_graph(frozen_graph_def, filename, 'ub6_model.pb', as_text=False)
logger.info("Output graph written to {}.".format(filename))
tf.train.write_graph(frozen_graph_def, filename, 'ub6_config.pbtxt', as_text=True)
logger.info("Output graph written to {}.".format(filename))
</code></pre></div>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto"><strong>Update:</strong> Model-Files are in my comment below</p>
<p dir="auto"><strong>My OpenCV Code:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include <opencv2/dnn.hpp>
String model = "Path/ub6_model.pb";
String config = "Path/ub6_config.pbtxt";
Net ub6net = cv::dnn::readNetFromTensorflow(model, config);
// Net ub6net = cv::dnn::readNetFromTensorflow(model);
ub6net.setPreferableBackend(DNN_BACKEND_OPENCV);
ub6.net.setPreferableTarget(DNN_TARGET_CPU);"><pre class="notranslate"><code class="notranslate">#include <opencv2/dnn.hpp>
String model = "Path/ub6_model.pb";
String config = "Path/ub6_config.pbtxt";
Net ub6net = cv::dnn::readNetFromTensorflow(model, config);
// Net ub6net = cv::dnn::readNetFromTensorflow(model);
ub6net.setPreferableBackend(DNN_BACKEND_OPENCV);
ub6.net.setPreferableTarget(DNN_TARGET_CPU);
</code></pre></div> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => :3..4.3 / tried 4.0 alpha as well</li>
<li>Operating System / Platform => :ubuntu 16</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I successfully transported some of ssd model trained in tensorflow and listed <a href="https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md">here</a> as per instruction given <a href="https://github.com/opencv/opencv/wiki/TensorFlow-Object-Detection-API">here</a>. I tried generating config file for ssd_mobilenet_v1_fpn_coco model.I am getting error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File "/home/admin-pc/object_detection_eval/obj_det/tf_text_graph_ssd.py", line 30, in createSSDGraph
ssd_anchor_generator = config['anchor_generator'][0]['ssd_anchor_generator'][0]
KeyError: 'ssd_anchor_generator'"><pre class="notranslate"><code class="notranslate"> File "/home/admin-pc/object_detection_eval/obj_det/tf_text_graph_ssd.py", line 30, in createSSDGraph
ssd_anchor_generator = config['anchor_generator'][0]['ssd_anchor_generator'][0]
KeyError: 'ssd_anchor_generator'
</code></pre></div>
<p dir="auto">when i checked there is multiple_anchor_generator rather than ssd_anchor_generator with different hyper param . Should i have to modify tf_text_graph_ssd.py , will this serve purpose?. Any specific suggestions or help appreciated . Thanks in advance</p>
<h5 dir="auto">Steps to reproduce</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python tf_text_graph_ssd.py --input /path/to/model.pb --config /path/to/pipeline.config --output 'graph.pbtxt'
"><pre class="notranslate"><code class="notranslate">python tf_text_graph_ssd.py --input /path/to/model.pb --config /path/to/pipeline.config --output 'graph.pbtxt'
</code></pre></div>
<p dir="auto">--></p> | 0 |
<pre class="notranslate">At the package-level, all (non-imported) identifiers are immediately in package scope
which permits self-referential declarations.
This is important for type declarations; e.g.:
type List struct{
elem int
next *List
}
a) For type declarations, certain recursive constructs would lead to
"infinitely" sized types and are obviously impossible and invalid; e.g.:
type T [n]T
type S struct{field S}
type I interface{I}
The spec should specify the exact rules for these (straight-forward) cases.
b) There are pathological cases of self-referential declarations, typically involving
constant expressions referring used as length value of array declarations, whith the
constant expressopns referring to the yet-to-be declared variable/type. E.g.:
<a href="http://play.golang.org/p/h9KlMctIqD" rel="nofollow">http://play.golang.org/p/h9KlMctIqD</a>
<a href="http://play.golang.org/p/Ybsig_M8oF" rel="nofollow">http://play.golang.org/p/Ybsig_M8oF</a>
<a href="http://play.golang.org/p/akqH5uMoOD" rel="nofollow">http://play.golang.org/p/akqH5uMoOD</a>
etc.
(see also <a href="https://golang.org/issue/7525" rel="nofollow">issue #7525</a>).
It would be nice if we specify if/how these cases are valid/invalid, or perhaps exclude
them more categorically. While these are all pathological cases, a clear rule would
inform how much effort needs to go into a language implementation/compiler. At this
point, all three front-ends (gc, gccgo. go/types) tend to do different things.</pre> | <pre class="notranslate">The spec says "An interface type T may not embed itself or any interface type that
embeds T, recursively.", but nothing like this is mentioned for structs.
(A struct containing itself would obviously need infty memory, but the spec should
probably still explicitly mention that these are illegal while a struct containing a
pointer to itself is fine</pre> | 1 |
<h2 dir="auto">Bug Report</h2>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">master - <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/shardingsphere/commit/b31a5439e0c608ee9a735aadb426ed03b1e98a42/hovercard" href="https://github.com/apache/shardingsphere/commit/b31a5439e0c608ee9a735aadb426ed03b1e98a42"><tt>b31a543</tt></a></p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">ShardingSphere-Proxy MySQL</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Batched update succeed.</p>
<h3 dir="auto">Actual behavior</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception in thread "main" java.sql.SQLException: Unsupported command: [COM_SET_OPTION]
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3978)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3914)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2530)
at com.mysql.jdbc.MysqlIO.disableMultiQueries(MysqlIO.java:3670)
at com.mysql.jdbc.PreparedStatement.executePreparedBatchAsMultiStatement(PreparedStatement.java:1492)
at com.mysql.jdbc.PreparedStatement.executeBatchInternal(PreparedStatement.java:1303)
at com.mysql.jdbc.StatementImpl.executeBatch(StatementImpl.java:970)
at icu.wwj.MySQLBatchedUpdate.main(MySQLBatchedUpdate.java:18)"><pre class="notranslate"><code class="notranslate">Exception in thread "main" java.sql.SQLException: Unsupported command: [COM_SET_OPTION]
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3978)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3914)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2530)
at com.mysql.jdbc.MysqlIO.disableMultiQueries(MysqlIO.java:3670)
at com.mysql.jdbc.PreparedStatement.executePreparedBatchAsMultiStatement(PreparedStatement.java:1492)
at com.mysql.jdbc.PreparedStatement.executeBatchInternal(PreparedStatement.java:1303)
at com.mysql.jdbc.StatementImpl.executeBatch(StatementImpl.java:970)
at icu.wwj.MySQLBatchedUpdate.main(MySQLBatchedUpdate.java:18)
</code></pre></div>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">MySQL JDBC driver enable <code class="notranslate">rewriteBatchedStatements=true</code>.</p>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="try (Connection connection = DriverManager.getConnection("jdbc:mysql://127.0.0.1:13306/sbtest?useSSL=false&rewriteBatchedStatements=true", "root", "root")) {
connection.setAutoCommit(false);
try (PreparedStatement preparedStatement = connection.prepareStatement("update sbtest2 set k=k+1 where id = ?")) {
for (int i = 0; i < 10; i++) {
preparedStatement.setInt(1, i + 1);
preparedStatement.addBatch();
}
preparedStatement.executeBatch();
}
connection.rollback();
}
"><pre class="notranslate"><span class="pl-k">try</span> (<span class="pl-smi">Connection</span> <span class="pl-s1">connection</span> = <span class="pl-smi">DriverManager</span>.<span class="pl-en">getConnection</span>(<span class="pl-s">"jdbc:mysql://127.0.0.1:13306/sbtest?useSSL=false&rewriteBatchedStatements=true"</span>, <span class="pl-s">"root"</span>, <span class="pl-s">"root"</span>)) {
<span class="pl-s1">connection</span>.<span class="pl-en">setAutoCommit</span>(<span class="pl-c1">false</span>);
<span class="pl-k">try</span> (<span class="pl-smi">PreparedStatement</span> <span class="pl-s1">preparedStatement</span> = <span class="pl-s1">connection</span>.<span class="pl-en">prepareStatement</span>(<span class="pl-s">"update sbtest2 set k=k+1 where id = ?"</span>)) {
<span class="pl-k">for</span> (<span class="pl-smi">int</span> <span class="pl-s1">i</span> = <span class="pl-c1">0</span>; <span class="pl-s1">i</span> < <span class="pl-c1">10</span>; <span class="pl-s1">i</span>++) {
<span class="pl-s1">preparedStatement</span>.<span class="pl-en">setInt</span>(<span class="pl-c1">1</span>, <span class="pl-s1">i</span> + <span class="pl-c1">1</span>);
<span class="pl-s1">preparedStatement</span>.<span class="pl-en">addBatch</span>();
}
<span class="pl-s1">preparedStatement</span>.<span class="pl-en">executeBatch</span>();
}
<span class="pl-s1">connection</span>.<span class="pl-en">rollback</span>();
}</pre></div>
<h3 dir="auto">How</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Supports COM_SET_OPTION.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Handle multi-statements update in COM_QUERY executor.</li>
</ul> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35563513/60227720-eb48b980-98c2-11e9-83d8-e4f7ba6ae4be.png"><img src="https://user-images.githubusercontent.com/35563513/60227720-eb48b980-98c2-11e9-83d8-e4f7ba6ae4be.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35563513/60227726-f00d6d80-98c2-11e9-81a0-bc72b9cce4e0.png"><img src="https://user-images.githubusercontent.com/35563513/60227726-f00d6d80-98c2-11e9-81a0-bc72b9cce4e0.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35563513/60227750-04ea0100-98c3-11e9-9132-1ffbea66e650.png"><img src="https://user-images.githubusercontent.com/35563513/60227750-04ea0100-98c3-11e9-9132-1ffbea66e650.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">I'm new to Julia. I wonder why the loop in the following code isn't unrolled.<br>
The operator '*' here is pure and have no side effects. I've checked @code_native for the same code with native types and it's looks it's unrolled correctly.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function test(n::Int, count::Int)
A = rand(n, n)
x = rand(n)
y = zeros(n)
tic()
for i = 1 : count
y = A * x
end
toq()
return y
end"><pre class="notranslate"><code class="notranslate">function test(n::Int, count::Int)
A = rand(n, n)
x = rand(n)
y = zeros(n)
tic()
for i = 1 : count
y = A * x
end
toq()
return y
end
</code></pre></div>
<p dir="auto">lang: Julia v3.11<br>
OS: Windows/Linux</p> | <p dir="auto">This seems inconsistent and undesirable:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> a = fill(1)
0-dimensional Array{Int64, 0}:
1
julia> Float64.(a)
1.0
julia> map(Float64, a)
0-dimensional Array{Float64, 0}:
1.0"><pre class="notranslate">julia<span class="pl-k">></span> a <span class="pl-k">=</span> <span class="pl-c1">fill</span>(<span class="pl-c1">1</span>)
<span class="pl-c1">0</span><span class="pl-k">-</span>dimensional Array{Int64, <span class="pl-c1">0</span>}<span class="pl-k">:</span>
<span class="pl-c1">1</span>
julia<span class="pl-k">></span> <span class="pl-c1">Float64</span>.(a)
<span class="pl-c1">1.0</span>
julia<span class="pl-k">></span> <span class="pl-c1">map</span>(Float64, a)
<span class="pl-c1">0</span><span class="pl-k">-</span>dimensional Array{Float64, <span class="pl-c1">0</span>}<span class="pl-k">:</span>
<span class="pl-c1">1.0</span></pre></div> | 0 |
<p dir="auto"><strong>Migrated issue, originally created by Wichert Akkerman (<a href="https://github.com/wichert">@wichert</a>)</strong></p>
<p dir="auto">I need to build a trigram index for a set of columns in PostgreSQL. The SQL statement looks like this:</p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CREATE INDEX trgm_idx ON my_table USING gist
(language, (coalesce(col1, '') || ' ' || coalesce(col2, '')) gist_trgm_ops);"><pre class="notranslate"><span class="pl-k">CREATE</span> <span class="pl-k">INDEX</span> <span class="pl-en">trgm_idx</span> <span class="pl-k">ON</span> my_table USING gist
(language, (coalesce(col1, <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>) <span class="pl-k">||</span> <span class="pl-s"><span class="pl-pds">'</span> <span class="pl-pds">'</span></span> <span class="pl-k">||</span> coalesce(col2, <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>)) gist_trgm_ops);</pre></div>
<p dir="auto">My attempt to do this using SQLAlchemy looks like this:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="schema.Index('trgm_idx',
Mytable.language,
(func.coalesce(Mytable.col1, '') + ' ' + func.coalesce(MyTable.col2, '')).label('foo'),
postgresql_ops={
'foo': 'pg_trgm',
},
postgresql_using='gist')"><pre class="notranslate"><span class="pl-s1">schema</span>.<span class="pl-v">Index</span>(<span class="pl-s">'trgm_idx'</span>,
<span class="pl-v">Mytable</span>.<span class="pl-s1">language</span>,
(<span class="pl-s1">func</span>.<span class="pl-en">coalesce</span>(<span class="pl-v">Mytable</span>.<span class="pl-s1">col1</span>, <span class="pl-s">''</span>) <span class="pl-c1">+</span> <span class="pl-s">' '</span> <span class="pl-c1">+</span> <span class="pl-s1">func</span>.<span class="pl-en">coalesce</span>(<span class="pl-v">MyTable</span>.<span class="pl-s1">col2</span>, <span class="pl-s">''</span>)).<span class="pl-en">label</span>(<span class="pl-s">'foo'</span>),
<span class="pl-s1">postgresql_ops</span><span class="pl-c1">=</span>{
<span class="pl-s">'foo'</span>: <span class="pl-s">'pg_trgm'</span>,
},
<span class="pl-s1">postgresql_using</span><span class="pl-c1">=</span><span class="pl-s">'gist'</span>)</pre></div>
<p dir="auto">I use <code class="notranslate">label()</code> just to get a key I can pass to <code class="notranslate">postgresql_ops</code>. Unfortunately this does not work. This is the generated SQL:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE INDEX trgm_idx ON my_table USING gist (language, (coalesce(col1, '') || ' ' || coalesce(col2, '')))"><pre class="notranslate"><code class="notranslate">CREATE INDEX trgm_idx ON my_table USING gist (language, (coalesce(col1, '') || ' ' || coalesce(col2, '')))
</code></pre></div>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/3432/issue3432.py">issue3432.py</a> | <a href="../wiki/imported_issue_attachments/3432/test.py">test.py</a></p> | <p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<p dir="auto">this works in general, but fails on at least the Postgresql dialect because it is linking each expression to a column. See <a href="https://bitbucket.org/zzzeek/alembic/issue/222/support-functional-indexes-with" rel="nofollow">https://bitbucket.org/zzzeek/alembic/issue/222/support-functional-indexes-with</a> for how alembic works around this.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import *
from sqlalchemy.schema import CreateIndex
from sqlalchemy.dialects import postgresql
m = MetaData()
t = Table('x', m)
idx = Index('foo', text("lower(c)"))
idx._set_parent(t)
print CreateIndex(idx).compile(dialect=postgresql.dialect())"><pre class="notranslate"><code class="notranslate">from sqlalchemy import *
from sqlalchemy.schema import CreateIndex
from sqlalchemy.dialects import postgresql
m = MetaData()
t = Table('x', m)
idx = Index('foo', text("lower(c)"))
idx._set_parent(t)
print CreateIndex(idx).compile(dialect=postgresql.dialect())
</code></pre></div>
<p dir="auto">output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE INDEX foo ON x ()"><pre class="notranslate"><code class="notranslate">CREATE INDEX foo ON x ()
</code></pre></div>
<p dir="auto">Index should be a lot more forgiving for indexes that have non-column expressions in it, and we should also provide for a "table" keyword.</p> | 1 |
<p dir="auto">Issues like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="200861457" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/774" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/774/hovercard" href="https://github.com/vercel/next.js/issues/774">#774</a> & <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="205090071" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/972" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/972/hovercard" href="https://github.com/vercel/next.js/issues/972">#972</a> are fine <strong>as long as the new entry-point can have vendors & <code class="notranslate">commons.js</code> extracted the same as <code class="notranslate">main.js</code></strong>.</p>
<p dir="auto">Resolving this <em>requires exporting a different webpack config</em>, but the signature <strong>requires</strong> <code class="notranslate">return config;</code>, as <code class="notranslate">return [config, otherEntryConfig];</code> fails.</p>
<p dir="auto">If an array of configs were supported by default, having separate build targets (e.g. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="209446314" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/1245" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/1245/hovercard" href="https://github.com/vercel/next.js/issues/1245">#1245</a>) & entry-points could be possible.</p> | <p dir="auto">Sometime that error show in log, I don't know when or how that error show up, it just show up random<br>
It seem like I do something wrong but I don't know what</p>
<ul dir="auto">
<li>[ x] 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">Not show error on random time</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Show error on random time</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Just run and watch the log</p>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>5</td>
</tr>
<tr>
<td>node</td>
<td>9.1.0</td>
</tr>
<tr>
<td>OS</td>
<td>manjaro linux</td>
</tr>
<tr>
<td>browser</td>
<td></td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<h1 dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398609917" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/57563" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/57563/hovercard" href="https://github.com/rust-lang/rust/issues/57563">#57563</a> | new meta tracking issue</h1>
<h1 dir="auto">Old content</h1>
<p dir="auto">Tracking issue for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="58978017" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rfcs/issues/911" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rfcs/pull/911/hovercard" href="https://github.com/rust-lang/rfcs/pull/911">rust-lang/rfcs#911</a>.</p>
<p dir="auto">This issue has been closed in favor of more targeted issues:</p>
<ul dir="auto">
<li><del>Locals, assignments, destructuring: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="303168194" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/48821" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/48821/hovercard" href="https://github.com/rust-lang/rust/issues/48821">#48821</a></del></li>
<li>Integration with patterns: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="395037294" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/57240" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/57240/hovercard" href="https://github.com/rust-lang/rust/issues/57240">#57240</a></li>
<li>Floating points: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="395038037" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/57241" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/57241/hovercard" href="https://github.com/rust-lang/rust/issues/57241">#57241</a></li>
<li>Panics: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="337617984" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/51999" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/51999/hovercard" href="https://github.com/rust-lang/rust/issues/51999">#51999</a></li>
<li>Loops: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="337620059" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/52000" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/52000/hovercard" href="https://github.com/rust-lang/rust/issues/52000">#52000</a></li>
<li>Control flow: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="306280648" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/49146" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/49146/hovercard" href="https://github.com/rust-lang/rust/issues/49146">#49146</a></li>
<li>Comparing raw pointers: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="347313841" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/53020" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/53020/hovercard" href="https://github.com/rust-lang/rust/issues/53020">#53020</a></li>
<li>Dereferencing raw pointers: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="337100233" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/51911" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/51911/hovercard" href="https://github.com/rust-lang/rust/issues/51911">#51911</a></li>
<li>Raw pointer to <code class="notranslate">usize</code> casts: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="337099702" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/51910" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/51910/hovercard" href="https://github.com/rust-lang/rust/issues/51910">#51910</a></li>
<li>Union field accesses: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="337098440" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/51909" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/51909/hovercard" href="https://github.com/rust-lang/rust/issues/51909">#51909</a></li>
<li>Warnings on long running evaluations: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="314407263" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/49980" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/49980/hovercard" href="https://github.com/rust-lang/rust/issues/49980">#49980</a></li>
<li>Constant propagation not causing errors: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="104952103" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/28238" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/28238/hovercard" href="https://github.com/rust-lang/rust/issues/28238">#28238</a></li>
<li><code class="notranslate">&mut T</code> references and borrows: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="396130639" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/57349" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/57349/hovercard" href="https://github.com/rust-lang/rust/issues/57349">#57349</a></li>
</ul>
<p dir="auto">Things to be done before stabilizing:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Reach final decision :P</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">const unsafe fn</code> declaration order <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="111885634" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/29107" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/29107/hovercard" href="https://github.com/rust-lang/rust/issues/29107">#29107</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> write docs</li>
</ul>
<p dir="auto">CTFE = <a href="https://en.wikipedia.org/wiki/Compile_time_function_execution" rel="nofollow">https://en.wikipedia.org/wiki/Compile_time_function_execution</a></p> | <p dir="auto">Since <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="33823161" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/14293" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/14293/hovercard" href="https://github.com/rust-lang/rust/pull/14293">#14293</a> I have added the dummy lang items for the weak linking in my projects (or I am unable to build static libs). Now static libs are defining <code class="notranslate">rust_eh_personality</code> and <code class="notranslate">rust_stack_exhausted</code> which is causing linker errors due to duplicate definitions.</p>
<p dir="auto">Note: This is only for static libs, rlibs are fine. See travis log here <a href="https://travis-ci.org/bharrisau/zinc/jobs/25774156" rel="nofollow">https://travis-ci.org/bharrisau/zinc/jobs/25774156</a></p> | 0 |
<p dir="auto">The <code class="notranslate">type_overflow</code> lint does not catch integral literals larger than <code class="notranslate">i64::MAX</code>. I have to assume the problem is the overflow happens when generating the AST, and the lint operates on the AST, so it can't tell that it overflowed.</p>
<p dir="auto">Example:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="println!("{}", 9223372036854775808i64);
// prints -9223372036854775808
println!("{}", 18446744073709551615i64);
// prints -1"><pre class="notranslate"><span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, <span class="pl-c1">9223372036854775808i64</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// prints -9223372036854775808</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, <span class="pl-c1">18446744073709551615i64</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// prints -1</span></pre></div>
<p dir="auto">It does manage to catch <code class="notranslate">18446744073709551616</code>, which is a parse error ("int literal is too large"). This is <code class="notranslate">u64::MAX + 1</code>, so the parser can definitively tell it's too large even though it doesn't know which integral type is being used.</p> | <p dir="auto">As per a FIXME in syntax::parse::lexer, check (maybe in the parser, definitely somewhere earlier than trans) that 32-bit and 64-bit floating-point literals are in the right range.</p> | 1 |
<h2 dir="auto">Bug Report</h2>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">5.1.1</p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">ShardingSphere-JDBC</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Just a simple query sql with interval sharding algorithm config like below:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="shardingsphere:
rules:
sharding:
default-database-strategy:
none:
default-table-strategy:
none:
sharding-algorithms:
sharding-by-month:
type: INTERVAL
props:
datetime-pattern: "yyyy-MM-dd HH:mm:ss"
datetime-lower: "2022-06-01 00:00:00"
datetime-upper: "2022-12-01 00:00:00"
sharding-suffix-pattern: "yyyyMM"
datetime-interval-amount: 1
datetime-interval-unit: "months""><pre class="notranslate"><code class="notranslate">shardingsphere:
rules:
sharding:
default-database-strategy:
none:
default-table-strategy:
none:
sharding-algorithms:
sharding-by-month:
type: INTERVAL
props:
datetime-pattern: "yyyy-MM-dd HH:mm:ss"
datetime-lower: "2022-06-01 00:00:00"
datetime-upper: "2022-12-01 00:00:00"
sharding-suffix-pattern: "yyyyMM"
datetime-interval-amount: 1
datetime-interval-unit: "months"
</code></pre></div>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="select id, username from user_info where created_time > '2022-05-01 00:00:00' "><pre class="notranslate"><span class="pl-k">select</span> id, username <span class="pl-k">from</span> user_info <span class="pl-k">where</span> created_time <span class="pl-k">></span> <span class="pl-s"><span class="pl-pds">'</span>2022-05-01 00:00:00<span class="pl-pds">'</span></span> </pre></div>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">exec sharding failure, Method threw 'java.time.format.DateTimeParseException' exception. Text '2022-05-22T15:06:54' could not be parsed at index 10</p>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">IntervalShardingAlgorithm#hasIntersection calc range lower and upper endpoint called <code class="notranslate">range.lowerEndpoint().toString()</code>, the output result format will be "yyyy-MM-dd'T'HH:mm:ss.SSS" that with T char in middle and not match the config props "datetime-pattern: yyyy-MM-dd HH:mm:ss",it cause parseDateTime exec failure.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" private boolean hasIntersection(final Range<LocalDateTime> calculateRange, final Range<Comparable<?>> range) {
LocalDateTime lower = range.hasLowerBound() ? parseDateTime(**range.lowerEndpoint().toString()**) : dateTimeLower;
LocalDateTime upper = range.hasUpperBound() ? parseDateTime(**range.upperEndpoint().toString()**) : dateTimeUpper;
BoundType lowerBoundType = range.hasLowerBound() ? range.lowerBoundType() : BoundType.CLOSED;
BoundType upperBoundType = range.hasUpperBound() ? range.upperBoundType() : BoundType.CLOSED;
Range<LocalDateTime> dateTimeRange = Range.range(lower, lowerBoundType, upper, upperBoundType);
return calculateRange.isConnected(dateTimeRange) && !calculateRange.intersection(dateTimeRange).isEmpty();
}
private LocalDateTime parseDateTime(final String value) {
return **LocalDateTime.parse(value.substring(0, dateTimePatternLength), dateTimeFormatter);**
}
"><pre class="notranslate"><code class="notranslate"> private boolean hasIntersection(final Range<LocalDateTime> calculateRange, final Range<Comparable<?>> range) {
LocalDateTime lower = range.hasLowerBound() ? parseDateTime(**range.lowerEndpoint().toString()**) : dateTimeLower;
LocalDateTime upper = range.hasUpperBound() ? parseDateTime(**range.upperEndpoint().toString()**) : dateTimeUpper;
BoundType lowerBoundType = range.hasLowerBound() ? range.lowerBoundType() : BoundType.CLOSED;
BoundType upperBoundType = range.hasUpperBound() ? range.upperBoundType() : BoundType.CLOSED;
Range<LocalDateTime> dateTimeRange = Range.range(lower, lowerBoundType, upper, upperBoundType);
return calculateRange.isConnected(dateTimeRange) && !calculateRange.intersection(dateTimeRange).isEmpty();
}
private LocalDateTime parseDateTime(final String value) {
return **LocalDateTime.parse(value.substring(0, dateTimePatternLength), dateTimeFormatter);**
}
</code></pre></div>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<p dir="auto">none</p>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<p dir="auto">none</p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>For English only</strong>, other languages will not accept.</p>
<p dir="auto">Before report a bug, make sure you have:</p>
<ul dir="auto">
<li>Searched open and closed <a href="https://github.com/sharding-sphere/sharding-sphere/issues">GitHub issues</a>.</li>
<li>Read documentation: <a href="http://shardingsphere.io/document/current/en/overview/" rel="nofollow">ShardingSphere Doc</a>.</li>
</ul>
<p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br>
If no response <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">4.0.0-RC1</p>
<h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">Sharding-JDBC</p>
<h3 dir="auto">Expected behavior</h3>
<h4 dir="auto">Logic SQL</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSERT INTO `DEMO_USER` (`id`,`name`,`age`,`tags`,`NICK_NAME_TT4`,`ENCRYPT_TEST`,`key`,`acc1`,`acc2`,`localDate`,`createdAt`,`updatedAt`,`deletedAt`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?) "><pre class="notranslate"><code class="notranslate">INSERT INTO `DEMO_USER` (`id`,`name`,`age`,`tags`,`NICK_NAME_TT4`,`ENCRYPT_TEST`,`key`,`acc1`,`acc2`,`localDate`,`createdAt`,`updatedAt`,`deletedAt`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)
</code></pre></div>
<h4 dir="auto">Expected SQL</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSERT INTO `DEMO_USER3` (`id`,`name`,`age`,`tags`,`NICK_NAME_TT4`,`ENCRYPT_TEST`,`key`,`acc1`,`acc2`,`localDate`,`createdAt`,`updatedAt`,`deletedAt`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?) "><pre class="notranslate"><code class="notranslate">INSERT INTO `DEMO_USER3` (`id`,`name`,`age`,`tags`,`NICK_NAME_TT4`,`ENCRYPT_TEST`,`key`,`acc1`,`acc2`,`localDate`,`createdAt`,`updatedAt`,`deletedAt`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)
</code></pre></div>
<h3 dir="auto">Actual behavior</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" INSERT INTO `DEMO_USER3` (id, name, age, tags, NICK_NAME_TT4, ENCRYPT_TEST, key, acc1, acc2, localDate, createdAt, updatedAt, deletedAt) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) "><pre class="notranslate"><code class="notranslate"> INSERT INTO `DEMO_USER3` (id, name, age, tags, NICK_NAME_TT4, ENCRYPT_TEST, key, acc1, acc2, localDate, createdAt, updatedAt, deletedAt) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
</code></pre></div>
<h3 dir="auto">Reason analyze (If you can)</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="spring
shardingsphere:
datasource:
names: ds0
ds0:
type: com.zaxxer.hikari.HikariDataSource
# driverClassName: com.mysql.cj.jdbc.Driver
jdbcUrl: jdbc:mysql://${db.host}:${db.port}/${db.schema}?useUnicode=true&characterEncoding=utf8&useSSL=false
username: ${db.username}
password: ${db.password}
sharding:
tables:
DEMO_USER:
actual-data-nodes: ds0.DEMO_USER$->{0..4}
table-strategy:
inline:
sharding-column: age
algorithm-expression: DEMO_USER$->{age % 5}
props:
sql:
show: true"><pre class="notranslate"><code class="notranslate">spring
shardingsphere:
datasource:
names: ds0
ds0:
type: com.zaxxer.hikari.HikariDataSource
# driverClassName: com.mysql.cj.jdbc.Driver
jdbcUrl: jdbc:mysql://${db.host}:${db.port}/${db.schema}?useUnicode=true&characterEncoding=utf8&useSSL=false
username: ${db.username}
password: ${db.password}
sharding:
tables:
DEMO_USER:
actual-data-nodes: ds0.DEMO_USER$->{0..4}
table-strategy:
inline:
sharding-column: age
algorithm-expression: DEMO_USER$->{age % 5}
props:
sql:
show: true
</code></pre></div>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="!@#$`2019-05-30 15:39:31,785`[//]`INFO `main`ShardingSphere-SQL`Rule Type: sharding
!@#$`2019-05-30 15:39:31,785`[//]`INFO `main`ShardingSphere-SQL`Logic SQL: INSERT INTO `DEMO_USER` (`id`,`name`,`age`,`tags`,`NICK_NAME_TT4`,`ENCRYPT_TEST`,`key`,`acc1`,`acc2`,`localDate`,`createdAt`,`updatedAt`,`deletedAt`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)
!@#$`2019-05-30 15:39:31,785`[//]`INFO `main`ShardingSphere-SQL`SQLStatement: InsertStatement(super=DMLStatement(super=AbstractSQLStatement(type=DML, tables=Tables(tables=[Table(name=DEMO_USER, alias=Optional.absent())]), routeConditions=Conditions(orCondition=OrCondition(andConditions=[AndCondition(conditions=[Condition(column=Column(name=age, tableName=DEMO_USER), operator=EQUAL, compareOperator=null, positionValueMap={}, positionIndexMap={0=2})])])), encryptConditions=Conditions(orCondition=OrCondition(andConditions=[])), sqlTokens=[TableToken(tableName=DEMO_USER, quoteCharacter=BACK_QUOTE, schemaNameLength=0), SQLToken(startIndex=24)], parametersIndex=13, logicSQL=INSERT INTO `DEMO_USER` (`id`,`name`,`age`,`tags`,`NICK_NAME_TT4`,`ENCRYPT_TEST`,`key`,`acc1`,`acc2`,`localDate`,`createdAt`,`updatedAt`,`deletedAt`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)), deleteStatement=false, updateTableAlias={}, updateColumnValues={}, whereStartIndex=0, whereStopIndex=0, whereParameterStartIndex=0, whereParameterEndIndex=0), columnNames=[id, name, age, tags, NICK_NAME_TT4, ENCRYPT_TEST, key, acc1, acc2, localDate, createdAt, updatedAt, deletedAt], values=[InsertValue(columnValues=[org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@142918a0, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@745cf754, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@25bc65ab, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@6eab92f3, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@321b7b9e, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@21eedcde, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@67396475, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@55b74e6b, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@3c1908c8, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@6bc62bb9, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@47f0e078, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@28db2afb, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@5c703860])])
!@#$`2019-05-30 15:39:31,786`[//]`INFO `main`ShardingSphere-SQL`Actual SQL: ds0 ::: INSERT INTO `DEMO_USER3` (id, name, age, tags, NICK_NAME_TT4, ENCRYPT_TEST, key, acc1, acc2, localDate, createdAt, updatedAt, deletedAt) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ::: [U57345@abc, goTmtbNosOdrALL3PQIqOA==, 2333, ivo9Lm8d4771fu2hfAO5vw==, alkaksdjflk, fSPTMmlED6BMfs57Dhwpug==, adf-key, 12.5744334, 1112.578867, 2019-05-30, 1559201970400, 1559201970400, -1]
"><pre class="notranslate"><code class="notranslate">!@#$`2019-05-30 15:39:31,785`[//]`INFO `main`ShardingSphere-SQL`Rule Type: sharding
!@#$`2019-05-30 15:39:31,785`[//]`INFO `main`ShardingSphere-SQL`Logic SQL: INSERT INTO `DEMO_USER` (`id`,`name`,`age`,`tags`,`NICK_NAME_TT4`,`ENCRYPT_TEST`,`key`,`acc1`,`acc2`,`localDate`,`createdAt`,`updatedAt`,`deletedAt`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)
!@#$`2019-05-30 15:39:31,785`[//]`INFO `main`ShardingSphere-SQL`SQLStatement: InsertStatement(super=DMLStatement(super=AbstractSQLStatement(type=DML, tables=Tables(tables=[Table(name=DEMO_USER, alias=Optional.absent())]), routeConditions=Conditions(orCondition=OrCondition(andConditions=[AndCondition(conditions=[Condition(column=Column(name=age, tableName=DEMO_USER), operator=EQUAL, compareOperator=null, positionValueMap={}, positionIndexMap={0=2})])])), encryptConditions=Conditions(orCondition=OrCondition(andConditions=[])), sqlTokens=[TableToken(tableName=DEMO_USER, quoteCharacter=BACK_QUOTE, schemaNameLength=0), SQLToken(startIndex=24)], parametersIndex=13, logicSQL=INSERT INTO `DEMO_USER` (`id`,`name`,`age`,`tags`,`NICK_NAME_TT4`,`ENCRYPT_TEST`,`key`,`acc1`,`acc2`,`localDate`,`createdAt`,`updatedAt`,`deletedAt`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)), deleteStatement=false, updateTableAlias={}, updateColumnValues={}, whereStartIndex=0, whereStopIndex=0, whereParameterStartIndex=0, whereParameterEndIndex=0), columnNames=[id, name, age, tags, NICK_NAME_TT4, ENCRYPT_TEST, key, acc1, acc2, localDate, createdAt, updatedAt, deletedAt], values=[InsertValue(columnValues=[org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@142918a0, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@745cf754, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@25bc65ab, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@6eab92f3, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@321b7b9e, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@21eedcde, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@67396475, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@55b74e6b, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@3c1908c8, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@6bc62bb9, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@47f0e078, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@28db2afb, org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@5c703860])])
!@#$`2019-05-30 15:39:31,786`[//]`INFO `main`ShardingSphere-SQL`Actual SQL: ds0 ::: INSERT INTO `DEMO_USER3` (id, name, age, tags, NICK_NAME_TT4, ENCRYPT_TEST, key, acc1, acc2, localDate, createdAt, updatedAt, deletedAt) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ::: [U57345@abc, goTmtbNosOdrALL3PQIqOA==, 2333, ivo9Lm8d4771fu2hfAO5vw==, alkaksdjflk, fSPTMmlED6BMfs57Dhwpug==, adf-key, 12.5744334, 1112.578867, 2019-05-30, 1559201970400, 1559201970400, -1]
</code></pre></div> | 0 |
<p dir="auto">This is the first time I've actually spent much time playing around with rust, so I probably just wrote some code that was very unexpected for the compiler. Here's the backtrace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="src/eg05.rs:53:13: 53:19 error: internal compiler error: debuginfo::create_local_var_metadata() - Referenced variable location is not an alloca!
src/eg05.rs:53 let s_rect = Some(surface.get_rect());
^~~~~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:123
stack backtrace:
1: 0x7f91ec606110 - sys::backtrace::write::h4bab949887dac0c7zat
2: 0x7f91ec625f10 - failure::on_fail::h441e5a1820cd6786srz
3: 0x7f91ec59be70 - rt::unwind::begin_unwind_inner::h486e1ba2aedf0a36w5y
4: 0x7f91e7698ca0 - rt::unwind::begin_unwind::h10348708083188279757
5: 0x7f91e7698c30 - diagnostic::SpanHandler::span_bug::h76fa8d3c461a05c4bJF
6: 0x7f91ea56ba00 - session::Session::span_bug::hfc0762eee9d950b53jn
7: 0x7f91eb49a3d0 - middle::pat_util::pat_bindings::closure.48467
8: 0x7f91e7661f50 - ast_util::walk_pat::hd8c3c64961fdf7a2TkC
9: 0x7f91eb387620 - trans::controlflow::trans_block::h12d1b1c29fe0d7cbcYd
10: 0x7f91eb3cc5b0 - trans::expr::trans_rvalue_stmt_unadjusted::hd28699d545991297KUi
11: 0x7f91eb386ec0 - trans::expr::trans_into::h3c3710e6ca2ca88dLzh
12: 0x7f91eb3862a0 - trans::controlflow::trans_stmt_semi::h2c62833a881b1b43jXd
13: 0x7f91eb387620 - trans::controlflow::trans_block::h12d1b1c29fe0d7cbcYd
14: 0x7f91eb4441a0 - trans::base::trans_closure::h99f933ea6f1e01c5BYt
15: 0x7f91eb37bd90 - trans::base::trans_fn::hf71ee8d58ecc6d28q9t
16: 0x7f91eb3770e0 - trans::base::trans_item::hc39398da93f34132Swu
17: 0x7f91eb44bf10 - trans::base::trans_crate::hbaaa84f58ddebf49vsv
18: 0x7f91ecb572d0 - driver::phase_4_translate_to_llvm::h491e2dead8eb9d7fcFa
19: 0x7f91ecb371e0 - driver::compile_input::hc83f8f50017addacvba
20: 0x7f91ecc7dbb0 - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h10576259651718141556
21: 0x7f91ecc7c970 - rt::unwind::try::try_fn::h9568114966234907229
22: 0x7f91ec68b440 - rust_try_inner
23: 0x7f91ec68b430 - rust_try
24: 0x7f91ecc7ccc0 - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h7353494892923989973
25: 0x7f91ec615890 - sys::thread::thread_start::hd8a164ae33ed6e55u3v
26: 0x7f91e6eb3fe0 - start_thread
27: 0x7f91ec243819 - __clone
28: 0x0 - <unknown>
Could not compile `sdl2-examples`."><pre class="notranslate"><code class="notranslate">src/eg05.rs:53:13: 53:19 error: internal compiler error: debuginfo::create_local_var_metadata() - Referenced variable location is not an alloca!
src/eg05.rs:53 let s_rect = Some(surface.get_rect());
^~~~~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:123
stack backtrace:
1: 0x7f91ec606110 - sys::backtrace::write::h4bab949887dac0c7zat
2: 0x7f91ec625f10 - failure::on_fail::h441e5a1820cd6786srz
3: 0x7f91ec59be70 - rt::unwind::begin_unwind_inner::h486e1ba2aedf0a36w5y
4: 0x7f91e7698ca0 - rt::unwind::begin_unwind::h10348708083188279757
5: 0x7f91e7698c30 - diagnostic::SpanHandler::span_bug::h76fa8d3c461a05c4bJF
6: 0x7f91ea56ba00 - session::Session::span_bug::hfc0762eee9d950b53jn
7: 0x7f91eb49a3d0 - middle::pat_util::pat_bindings::closure.48467
8: 0x7f91e7661f50 - ast_util::walk_pat::hd8c3c64961fdf7a2TkC
9: 0x7f91eb387620 - trans::controlflow::trans_block::h12d1b1c29fe0d7cbcYd
10: 0x7f91eb3cc5b0 - trans::expr::trans_rvalue_stmt_unadjusted::hd28699d545991297KUi
11: 0x7f91eb386ec0 - trans::expr::trans_into::h3c3710e6ca2ca88dLzh
12: 0x7f91eb3862a0 - trans::controlflow::trans_stmt_semi::h2c62833a881b1b43jXd
13: 0x7f91eb387620 - trans::controlflow::trans_block::h12d1b1c29fe0d7cbcYd
14: 0x7f91eb4441a0 - trans::base::trans_closure::h99f933ea6f1e01c5BYt
15: 0x7f91eb37bd90 - trans::base::trans_fn::hf71ee8d58ecc6d28q9t
16: 0x7f91eb3770e0 - trans::base::trans_item::hc39398da93f34132Swu
17: 0x7f91eb44bf10 - trans::base::trans_crate::hbaaa84f58ddebf49vsv
18: 0x7f91ecb572d0 - driver::phase_4_translate_to_llvm::h491e2dead8eb9d7fcFa
19: 0x7f91ecb371e0 - driver::compile_input::hc83f8f50017addacvba
20: 0x7f91ecc7dbb0 - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h10576259651718141556
21: 0x7f91ecc7c970 - rt::unwind::try::try_fn::h9568114966234907229
22: 0x7f91ec68b440 - rust_try_inner
23: 0x7f91ec68b430 - rust_try
24: 0x7f91ecc7ccc0 - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h7353494892923989973
25: 0x7f91ec615890 - sys::thread::thread_start::hd8a164ae33ed6e55u3v
26: 0x7f91e6eb3fe0 - start_thread
27: 0x7f91ec243819 - __clone
28: 0x0 - <unknown>
Could not compile `sdl2-examples`.
</code></pre></div>
<p dir="auto">I was playing with <a href="https://github.com/jdeseno/rs-sdl2-examples">these examples</a>, specifically I was modifying example 5. Here is the (very broken, probably terrible code, sorry) diff of eg05.rs that shows the state the file was in when Rust broke.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/src/eg05.rs b/src/eg05.rs
index 39c26fd..88632fa 100644
--- a/src/eg05.rs
+++ b/src/eg05.rs
@@ -3,6 +3,8 @@ extern crate sdl2;
use sdl2::video::{WindowPos, Window, OPENGL};
use sdl2::event::{Event, poll_event};
use sdl2::surface::{Surface};
+use sdl2::rect::Rect;
+use std::io::timer::sleep;
fn main() {
sdl2::init(sdl2::INIT_EVERYTHING);
@@ -31,12 +33,14 @@ fn main() {
};
let _ = renderer.clear();
- // Display the texture.
- // Omitting the src & dst Rect arguments will cause our image to stretch across the entire buffer.
- // Try passing Some(surface.get_rect()) for src & dst instead of None & see how things change.
- let _ = renderer.copy(&texture, None, None);
+ let s_rect = Some(surface.get_rect());
+ let z_rect = Some(Rect::new(120,80,128,114));
+ println!("s_rect: {}", s_rect);
+ let _ = renderer.copy(&texture, s_rect, z_rect);
let _ = renderer.present();
+ let mut x = 120;
+
// loop until we receive a QuitEvent
'event : loop {
@@ -44,6 +48,14 @@ fn main() {
Event::Quit(_) => break 'event,
_ => continue
}
+ sleep(std::time::duration::Duration::milliseconds(200));
+ let _ = renderer.clear();
+ let s_rect = Some(surface.get_rect());
+ let z_rect = Some(Rect::new(x,80,128,114));
+ println!("s_rect: {}", s_rect);
+ let _ = renderer.copy(&texture, s_rect, z_rect);
+ let _ = renderer.present();
+ x += 30;
}
sdl2::quit();"><pre class="notranslate"><code class="notranslate">diff --git a/src/eg05.rs b/src/eg05.rs
index 39c26fd..88632fa 100644
--- a/src/eg05.rs
+++ b/src/eg05.rs
@@ -3,6 +3,8 @@ extern crate sdl2;
use sdl2::video::{WindowPos, Window, OPENGL};
use sdl2::event::{Event, poll_event};
use sdl2::surface::{Surface};
+use sdl2::rect::Rect;
+use std::io::timer::sleep;
fn main() {
sdl2::init(sdl2::INIT_EVERYTHING);
@@ -31,12 +33,14 @@ fn main() {
};
let _ = renderer.clear();
- // Display the texture.
- // Omitting the src & dst Rect arguments will cause our image to stretch across the entire buffer.
- // Try passing Some(surface.get_rect()) for src & dst instead of None & see how things change.
- let _ = renderer.copy(&texture, None, None);
+ let s_rect = Some(surface.get_rect());
+ let z_rect = Some(Rect::new(120,80,128,114));
+ println!("s_rect: {}", s_rect);
+ let _ = renderer.copy(&texture, s_rect, z_rect);
let _ = renderer.present();
+ let mut x = 120;
+
// loop until we receive a QuitEvent
'event : loop {
@@ -44,6 +48,14 @@ fn main() {
Event::Quit(_) => break 'event,
_ => continue
}
+ sleep(std::time::duration::Duration::milliseconds(200));
+ let _ = renderer.clear();
+ let s_rect = Some(surface.get_rect());
+ let z_rect = Some(Rect::new(x,80,128,114));
+ println!("s_rect: {}", s_rect);
+ let _ = renderer.copy(&texture, s_rect, z_rect);
+ let _ = renderer.present();
+ x += 30;
}
sdl2::quit();
</code></pre></div>
<p dir="auto">And here is the requested version info for rust:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 0.13.0-nightly (fea5aa656 2014-12-30 00:42:13 +0000)
binary: rustc
commit-hash: fea5aa656ff4349f4d3e1fea1447d26986762ae1
commit-date: 2014-12-30 00:42:13 +0000
host: x86_64-unknown-linux-gnu
release: 0.13.0-nightly"><pre class="notranslate"><code class="notranslate">rustc 0.13.0-nightly (fea5aa656 2014-12-30 00:42:13 +0000)
binary: rustc
commit-hash: fea5aa656ff4349f4d3e1fea1447d26986762ae1
commit-date: 2014-12-30 00:42:13 +0000
host: x86_64-unknown-linux-gnu
release: 0.13.0-nightly
</code></pre></div>
<p dir="auto">I'm using rust on a 64-bit Acer C720P Chromebook, with Ubuntu 14.10 running in a chroot.</p> | <p dir="auto">This little program causes a compiler panic:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
return;
let a = "";
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> a = <span class="pl-s">""</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">The error message is the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: debuginfo::create_local_var_metadata() - Referenced variable location is not an alloca!
thread 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/diagnostic.rs:123
stack backtrace:
1: 0x1110d3460 - sys::backtrace::write::hd64c72d07de40cf8tbt
2: 0x1110f3817 - failure::on_fail::h646e1201dbb0ef3bNhz
3: 0x11106570a - rt::unwind::begin_unwind_inner::hec294e47b94ba78aiZy
4: 0x10ef6fc57 - rt::unwind::begin_unwind::h558350071601703502
5: 0x10ef6fbe4 - diagnostic::SpanHandler::span_bug::he3912bc404042fc4LQF
6: 0x10e40930d - session::Session::span_bug::h5801ed3acd26a48eY4l
7: 0x10dbbfa8e - middle::pat_util::pat_bindings::closure.48598
8: 0x10ef3a3f1 - ast_util::walk_pat::hbe1ce29526693031GsC
9: 0x10daafca0 - trans::controlflow::trans_block::h956d3c669c21aa441Vd
10: 0x10db6c487 - trans::base::trans_closure::h98002b90cdeb7941jSt
11: 0x10daa4326 - trans::base::trans_fn::h68450a8b056829a432t
12: 0x10da9faec - trans::base::trans_item::h8a58a6cf2c6184c8Vnu
13: 0x10db72f18 - trans::base::trans_crate::h35254e15f256e4f14iv
14: 0x10d870560 - driver::phase_4_translate_to_llvm::h2943144b3698b013mDa
15: 0x10d8478b3 - driver::compile_input::hd01e9035001db87cwba
16: 0x10d9e5d54 - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h356901253070274503
17: 0x10d9e2670 - rt::unwind::try::try_fn::h13338831715023405046
18: 0x11115b029 - rust_try_inner
19: 0x11115b016 - rust_try
20: 0x10d9e2d6b - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h15972762549593096795
21: 0x1110e2de4 - sys::thread::thread_start::h719786e0e5fa53d4b1v
22: 0x7fff8e9742fc - _pthread_body
23: 0x7fff8e974279 - _pthread_body"><pre class="notranslate"><code class="notranslate">error: internal compiler error: debuginfo::create_local_var_metadata() - Referenced variable location is not an alloca!
thread 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/diagnostic.rs:123
stack backtrace:
1: 0x1110d3460 - sys::backtrace::write::hd64c72d07de40cf8tbt
2: 0x1110f3817 - failure::on_fail::h646e1201dbb0ef3bNhz
3: 0x11106570a - rt::unwind::begin_unwind_inner::hec294e47b94ba78aiZy
4: 0x10ef6fc57 - rt::unwind::begin_unwind::h558350071601703502
5: 0x10ef6fbe4 - diagnostic::SpanHandler::span_bug::he3912bc404042fc4LQF
6: 0x10e40930d - session::Session::span_bug::h5801ed3acd26a48eY4l
7: 0x10dbbfa8e - middle::pat_util::pat_bindings::closure.48598
8: 0x10ef3a3f1 - ast_util::walk_pat::hbe1ce29526693031GsC
9: 0x10daafca0 - trans::controlflow::trans_block::h956d3c669c21aa441Vd
10: 0x10db6c487 - trans::base::trans_closure::h98002b90cdeb7941jSt
11: 0x10daa4326 - trans::base::trans_fn::h68450a8b056829a432t
12: 0x10da9faec - trans::base::trans_item::h8a58a6cf2c6184c8Vnu
13: 0x10db72f18 - trans::base::trans_crate::h35254e15f256e4f14iv
14: 0x10d870560 - driver::phase_4_translate_to_llvm::h2943144b3698b013mDa
15: 0x10d8478b3 - driver::compile_input::hd01e9035001db87cwba
16: 0x10d9e5d54 - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h356901253070274503
17: 0x10d9e2670 - rt::unwind::try::try_fn::h13338831715023405046
18: 0x11115b029 - rust_try_inner
19: 0x11115b016 - rust_try
20: 0x10d9e2d6b - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h15972762549593096795
21: 0x1110e2de4 - sys::thread::thread_start::h719786e0e5fa53d4b1v
22: 0x7fff8e9742fc - _pthread_body
23: 0x7fff8e974279 - _pthread_body
</code></pre></div> | 1 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-iterate-with-javascript-for-loops" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-iterate-with-javascript-for-loops</a> has an issue. The initial code has a comment as <code class="notranslate">//...using a "for loop" like above.</code> but there is no for loop in the initial code. Please add the for loop example on the left panel to the above of the initial code.</p> | <p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-iterate-with-javascript-for-loops" rel="nofollow">http://freecodecamp.com/challenges/waypoint-iterate-with-javascript-for-loops</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">var myArray = [];<br>
//Push the numbers zero through four to myArray using a “for loop" like above.</p>
<p dir="auto">As per bug title</p> | 1 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/525" rel="nofollow">http://projects.scipy.org/scipy/ticket/525</a> on 2007-10-29 by trac user ice999, assigned to unknown.</em></p>
<p dir="auto">Versions:[[BR]][[BR]]</p>
<p dir="auto">WinXP pro 5.1.2600 SP1[[BR]][[BR]]</p>
<p dir="auto">python 2.5.1 win32 binary[[BR]]<br>
ipython-0.8.1.win32 binary[[BR]]<br>
matplotlib-0.90.1.win32-py2.5 binary[[BR]]<br>
numpy-1.0.3.1.win32-py2.5 binary[[BR]]<br>
pyreadline-1.3.win32 binary[[BR]]<br>
pywin32-210.win32-py2.5 binary[[BR]]<br>
scipy-0.6.0.win32-py2.5 binary[[BR]]<br>
[[BR]]<br>
[[BR]]<br>
Error context:[[BR]]<br>
[[BR]]<br>
from numpy import matrix[[BR]]<br>
from scipy.linalg import det[[BR]]<br>
[[BR]]<br>
A = matrix([[1,1,1],[4,4,3],[7,8,5]])[[BR]]<br>
print det(A) ## Here det fails!![[BR]][[BR]][[BR]]</p> | <p dir="auto"><em>Note from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mdhaber/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mdhaber">@mdhaber</a>: This is a deep issue that is slated to be addressed as part of <a href="https://chanzuckerberg.com/eoss/proposals/scipy-fundamental-tools-for-biomedical-research/" rel="nofollow">this project</a>. Before composing a PR related to this issue, please comment below or - even better - consider resolving another <a href="https://github.com/scipy/scipy/issues">open issue</a>!</em></p>
<p dir="auto">I think that the docstring of the scipy.stat.mean.cdf "the cumulative distribution function of the mean distribution." doesnot match with the scipy documentation. The <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.norm.html#scipy.stats.norm" rel="nofollow">documentation page</a> of the <code class="notranslate">scipy.stats.norm.cdf</code> indicates that the second argument is<br>
location. Yet, the docstring saying that it is the 3rd argument.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import scipy
scipy.stats.norm.cdf?"><pre class="notranslate"><code class="notranslate">import scipy
scipy.stats.norm.cdf?
</code></pre></div>
<h3 dir="auto">The docstring of the scipt.stats.mean.cdf</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Signature: scipy.stats.norm.cdf(x, *args, **kwds)
Docstring:
Cumulative distribution function of the given RV.
Parameters
x : array_like
quantiles
arg1, arg2, arg3,... : array_like
The shape parameter(s) for the distribution (see docstring of the
instance object for more information)
loc : array_like, optional
location parameter (default=0)
scale : array_like, optional
scale parameter (default=1)
Returns
cdf : ndarray
Cumulative distribution function evaluated at `x`
File: ~/anaconda3/lib/python3.7/site-packages/scipy/stats/_distn_infrastructure.py
Type: method"><pre class="notranslate"><code class="notranslate">Signature: scipy.stats.norm.cdf(x, *args, **kwds)
Docstring:
Cumulative distribution function of the given RV.
Parameters
x : array_like
quantiles
arg1, arg2, arg3,... : array_like
The shape parameter(s) for the distribution (see docstring of the
instance object for more information)
loc : array_like, optional
location parameter (default=0)
scale : array_like, optional
scale parameter (default=1)
Returns
cdf : ndarray
Cumulative distribution function evaluated at `x`
File: ~/anaconda3/lib/python3.7/site-packages/scipy/stats/_distn_infrastructure.py
Type: method
</code></pre></div>
<h3 dir="auto">Scipy/Numpy/Python version information:</h3>
<p dir="auto">1.2.1 1.16.2 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)</p> | 0 |
<h2 dir="auto">Screenshot</h2>
<ol dir="auto">
<li></li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4623644/213430694-443b257a-64a5-4cb2-80ed-eaa66a4d35c9.png"><img src="https://user-images.githubusercontent.com/4623644/213430694-443b257a-64a5-4cb2-80ed-eaa66a4d35c9.png" alt="image" style="max-width: 100%;"></a></p>
<ol start="2" dir="auto">
<li></li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4623644/213430939-4d5c00e3-7577-435e-a9c8-de6a54ec54f8.png"><img src="https://user-images.githubusercontent.com/4623644/213430939-4d5c00e3-7577-435e-a9c8-de6a54ec54f8.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">[drag & drop image(s) here!]</p>
<h2 dir="auto">Description</h2>
<p dir="auto">Look at these two screenshots, imagine your browser switching from one to the other 4 times per seconds.</p>
<p dir="auto">(I didn't manage to capture a video).</p>
<p dir="auto">Resizing the screen doesn't change anything.</p>
<p dir="auto">This is completely driving people mad :)</p> | <details open="" class="details-reset border rounded-2">
<summary class="px-3 py-2">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-camera-video">
<path d="M16 3.75v8.5a.75.75 0 0 1-1.136.643L11 10.575v.675A1.75 1.75 0 0 1 9.25 13h-7.5A1.75 1.75 0 0 1 0 11.25v-6.5C0 3.784.784 3 1.75 3h7.5c.966 0 1.75.784 1.75 1.75v.675l3.864-2.318A.75.75 0 0 1 16 3.75Zm-6.5 1a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-6.5ZM11 8.825l3.5 2.1v-5.85l-3.5 2.1Z"></path>
</svg>
<span aria-label="Video description superset_hmm.mov" class="m-1">superset_hmm.mov</span>
<span class="dropdown-caret"></span>
</summary>
<video src="https://user-images.githubusercontent.com/5566843/207159358-9e2fba12-0cda-405a-9e56-4801387c0748.mov" data-canonical-src="https://user-images.githubusercontent.com/5566843/207159358-9e2fba12-0cda-405a-9e56-4801387c0748.mov" controls="controls" muted="muted" class="d-block rounded-bottom-2 border-top width-fit" style="max-height:640px; min-height: 200px">
</video>
</details>
<p dir="auto">See video where both vertical and horizontal scroll for the table is flashing initially, but is sometimes fixed when we click "Aggregate" and then switch back to "Raw Records". Doesn't always fix it however</p>
<h4 dir="auto">How to reproduce the bug</h4>
<p dir="auto">Go to any Superset Table UI and select a column, then scrollbar starts flashing</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">No flashing</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">See video</p>
<h3 dir="auto">Environment</h3>
<p dir="auto">(please complete the following information):</p>
<ul dir="auto">
<li>browser type and version: Chrome Version 107.0.5304.110 (Official Build) (arm64)</li>
<li>python version: <code class="notranslate">python --version</code>: Python 3.10.8</li>
<li>any feature flags active: none</li>
</ul>
<h3 dir="auto">Checklist</h3>
<p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul> | 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/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" checked=""> 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.1</li>
<li>Operating System version: Windows 10 Version 1903</li>
<li>Java version: 1.8.0</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>create 'provider' project</li>
<li>create interface.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56564818-7d8dc200-65e1-11e9-8e5e-827253472f8b.png"><img src="https://user-images.githubusercontent.com/25575562/56564818-7d8dc200-65e1-11e9-8e5e-827253472f8b.png" alt="image" style="max-width: 100%;"></a></li>
<li>create class implements step2 interface<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56564933-b9c12280-65e1-11e9-9dee-7f1bf1ed99ed.png"><img src="https://user-images.githubusercontent.com/25575562/56564933-b9c12280-65e1-11e9-9dee-7f1bf1ed99ed.png" alt="image" style="max-width: 100%;"></a></li>
<li>application.properties file add<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56564980-d78e8780-65e1-11e9-8e9d-ba3505d62d4c.png"><img src="https://user-images.githubusercontent.com/25575562/56564980-d78e8780-65e1-11e9-8e9d-ba3505d62d4c.png" alt="image" style="max-width: 100%;"></a></li>
<li>boot file add ‘@EnableAutoConfiguration’ annotation<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56565159-508ddf00-65e2-11e9-9bda-ddccd7819afe.png"><img src="https://user-images.githubusercontent.com/25575562/56565159-508ddf00-65e2-11e9-9bda-ddccd7819afe.png" alt="image" style="max-width: 100%;"></a></li>
<li>create 'consumer' project</li>
<li>copy step2 interface to project<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56565251-8b901280-65e2-11e9-9fa3-8b6e7ed65333.png"><img src="https://user-images.githubusercontent.com/25575562/56565251-8b901280-65e2-11e9-9fa3-8b6e7ed65333.png" alt="image" style="max-width: 100%;"></a></li>
<li>boot file add ‘@EnableAutoConfiguration’ annotation<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56565376-cb56fa00-65e2-11e9-8a54-6b76d2e539f9.png"><img src="https://user-images.githubusercontent.com/25575562/56565376-cb56fa00-65e2-11e9-8a54-6b76d2e539f9.png" alt="image" style="max-width: 100%;"></a></li>
<li>user <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a> annotation injection interface<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56565422-e590d800-65e2-11e9-9ee6-ad630a15b46f.png"><img src="https://user-images.githubusercontent.com/25575562/56565422-e590d800-65e2-11e9-9ee6-ad630a15b46f.png" alt="image" style="max-width: 100%;"></a></li>
<li>run</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">success call 'provider' project function</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">throw exception:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-04-23 16:20:47.605 ERROR 2380 --- [nio-9185-exec-5] scms.viSvc.service.SpViCaseService : caseNo:1904231620475912,Failed to invoke remote method: add, provider: dubbo://192.0.0.66:12345/scms.viSvc.service.SpViCaseServiceInterface?application=scms.viSvc&default.lazy=false&default.sticky=false&dubbo=2.0.2&group=test&interface=scms.viSvc.service.SpViCaseServiceInterface&lazy=false&methods=add&pid=2380&qos.enable=false&register.ip=192.0.0.66&revision=1.0.0&side=consumer&sticky=false&timestamp=1556007474371&version=1.0.0, cause: org.apache.dubbo.remoting.RemotingException: Not found exported service: test/scms.viSvc.service.SpViCaseServiceInterface:1.0.0:12345 in [a/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345, test/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.0.0.66:54541 --> provider: /192.0.0.66:12345, message:RpcInvocation [methodName=add, parameterTypes=[class java.lang.String], arguments=[{}], attachments={path=scms.viSvc.service.SpViCaseServiceInterface, input=462, dubbo=2.0.2, interface=scms.viSvc.service.SpViCaseServiceInterface, version=1.0.0, group=test}]
org.apache.dubbo.remoting.RemotingException: Not found exported service: test/scms.viSvc.service.SpViCaseServiceInterface:1.0.0:12345 in [a/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345, test/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.0.0.66:54541 --> provider: /192.0.0.66:12345, message:RpcInvocation [methodName=add, parameterTypes=[class java.lang.String], arguments=[{}], attachments={path=scms.viSvc.service.SpViCaseServiceInterface, input=462, dubbo=2.0.2, interface=scms.viSvc.service.SpViCaseServiceInterface, version=1.0.0, group=test}]
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:248)
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:102)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:103)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:200)
at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)"><pre class="notranslate"><code class="notranslate">2019-04-23 16:20:47.605 ERROR 2380 --- [nio-9185-exec-5] scms.viSvc.service.SpViCaseService : caseNo:1904231620475912,Failed to invoke remote method: add, provider: dubbo://192.0.0.66:12345/scms.viSvc.service.SpViCaseServiceInterface?application=scms.viSvc&default.lazy=false&default.sticky=false&dubbo=2.0.2&group=test&interface=scms.viSvc.service.SpViCaseServiceInterface&lazy=false&methods=add&pid=2380&qos.enable=false&register.ip=192.0.0.66&revision=1.0.0&side=consumer&sticky=false&timestamp=1556007474371&version=1.0.0, cause: org.apache.dubbo.remoting.RemotingException: Not found exported service: test/scms.viSvc.service.SpViCaseServiceInterface:1.0.0:12345 in [a/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345, test/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.0.0.66:54541 --> provider: /192.0.0.66:12345, message:RpcInvocation [methodName=add, parameterTypes=[class java.lang.String], arguments=[{}], attachments={path=scms.viSvc.service.SpViCaseServiceInterface, input=462, dubbo=2.0.2, interface=scms.viSvc.service.SpViCaseServiceInterface, version=1.0.0, group=test}]
org.apache.dubbo.remoting.RemotingException: Not found exported service: test/scms.viSvc.service.SpViCaseServiceInterface:1.0.0:12345 in [a/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345, test/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.0.0.66:54541 --> provider: /192.0.0.66:12345, message:RpcInvocation [methodName=add, parameterTypes=[class java.lang.String], arguments=[{}], attachments={path=scms.viSvc.service.SpViCaseServiceInterface, input=462, dubbo=2.0.2, interface=scms.viSvc.service.SpViCaseServiceInterface, version=1.0.0, group=test}]
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:248)
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:102)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:103)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:200)
at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
</code></pre></div>
<p dir="auto">'provider' project and 'consumer' project thow same exception.<br>
how to fix it?</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/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.1-SNAPSHOT</li>
<li>Operating System version: MacOS 10.14</li>
<li>Java version: 1.8</li>
</ul>
<p dir="auto">I find some member fields of ConfigCenterConfig are annotated by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/parameter/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/parameter">@parameter</a>, and the 'useKeyAsProperty' property of the annotation is set 'false'.<br>
For example, the 'check' member field is annotated by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/parameter/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/parameter">@parameter</a>, and its key is "config.check", but the 'useKeyAsProperty' is false.<br>
So the key of this field in URL's parameters is 'check' because the 'useKeyAsProperty' is false, but in config center configuration class like ApolloDynamicConfiguration, the class use 'config.check' to get the property from parameters of URL.<br>
So I think we should adjust the setting.<br>
How about set the 'useKeyAsProperty' to true ?<br>
I want to listen others' proposals.</p>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">config</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<dubbo:configcenter address:xxx check="false"/>"><pre class="notranslate"><<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">configcenter</span> address:xxx <span class="pl-e">check</span>=<span class="pl-s"><span class="pl-pds">"</span>false<span class="pl-pds">"</span></span>/></pre></div>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">the key in url's parameters should be "config.check", because in apollo dynamic configuration class, it use the key to get the check property<br>
What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">the key in parameters is check</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">I have a video with 25 fps and 50 tbr, when i capture video the output is not as expected,<br>
Observations:<br>
1.set CV_CAP_PROP_POS_FRAMES to some position and start to capture, the captured frame won't match the actual frame (at that time) pos/time when i watch the video using vlc player<br>
2.The number of frames captured is less than the frames captured directly using ffmpeg. Many frames at the start are missing<br>
You can download the video from the specified link,<br>
<a href="https://drive.google.com/open?id=1RPvNcaiMTNWTA8Pi5MOMT1i07FmPiFXR" rel="nofollow">https://drive.google.com/open?id=1RPvNcaiMTNWTA8Pi5MOMT1i07FmPiFXR</a></p>
<p dir="auto">How to simulate:<br>
1.Dump all the frames using video capture from the beginning without using set position.</p>
<p dir="auto">handler = cv2.VideoCapture()<br>
fd = handler.open(filename)<br>
ret,frame=handler.read()<br>
index = 0<br>
while frame is not None:<br>
cv2.imwrite(str(index)+".jpg",frame)<br>
ret,frame=handler.read()<br>
index+=1</p>
<p dir="auto">2.Set frame position to 5840 and try to match the frame dumped now and the previous one without set.</p>
<p dir="auto">handler = cv2.VideoCapture()<br>
fd = handler.open(filename)<br>
ret,frame=handler.read()<br>
handler.set(cv2.CAP_PROP_POS_FRAMES, 5340)<br>
ret,frame=handler.read()<br>
cv2.imwrite("using_set_"+str(5340)+".jpg",frame)</p>
<p dir="auto">Output [5340.jpg] is not same as [using_set_5340.jpg]</p> | <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 |
<p dir="auto">Which is a big deal if you want to check access on many paths when generating a menu.<br>
Typically you would Request::create('link path here') and then pass this request down to your access checkers before displaying it.</p>
<p dir="auto">The drupal issue this comes from <a href="https://drupal.org/node/2078855" rel="nofollow">https://drupal.org/node/2078855</a></p>
<p dir="auto">Running the test on <a href="https://drupal.org/node/2078855#comment-7837631" rel="nofollow">https://drupal.org/node/2078855#comment-7837631</a> on PHP5.5 is faster (0.885 instead of 1.239) but still the introduced method there is 3 times faster.</p>
<p dir="auto">Come up with a solution here, because i am pretty sure this will be a common problem to many sites not just Drupal.</p> | <p dir="auto">Hi,</p>
<p dir="auto">I am using Symfony2.0.0,</p>
<p dir="auto">I am working through the demo in The Book, and trying to generate the Hello Bundle.</p>
<p dir="auto">When I try to generate the bundle by using the following command in my Terminal:</p>
<p dir="auto">"php app/console generate:bundle --namespace=Acme/HelloBundle --format=yml"</p>
<p dir="auto">but instead of giving me on-screen instructions, I get the following error:</p>
<p dir="auto">"Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /Symfony/app/console on line 7"</p>
<p dir="auto">I have literally installed Symfony2, configured my database through the on-screen instructions, and set up permissions as directed in The Book</p>
<p dir="auto">This is the first thing I have attempted since that point</p>
<p dir="auto">Do I have to manually set up a database table? Or should that auto-generate as part of the bundle? I wondered if that is why the parse error occurred</p>
<p dir="auto">Thanks in advance<br>
Barry</p> | 0 |
<p dir="auto">If you render the repeated fields individually, e.g. form_row(field_name.first) and form_row(field_name.second), the fields will each be rendered an additional time when using form_rest(form).</p>
<p dir="auto">Hope this helps!</p> | <h3 dir="auto">Assume this scenario</h3>
<ol dir="auto">
<li>The symfony application registers a listener with "prototype" scope in the service container</li>
<li>The application uses <code class="notranslate">TraceableEventDispatcher</code></li>
<li>The application is dispatching the event which is listened by the service defined in step 1</li>
</ol>
<h3 dir="auto">What is problematic</h3>
<p dir="auto"><code class="notranslate">TraceableEventDispatcher</code> is trying to replace the original listener with the new <code class="notranslate">WrappedListener</code>.<br>
The dispatcher correctly adds the new <code class="notranslate">WrappedListener</code>.<br>
But it fails to remove the original listener.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">The listener's method is invoked twice:</p>
<ul dir="auto">
<li>first call is in the <code class="notranslate">WrappedListener</code></li>
<li>second call is in the original listener</li>
</ul>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Only one event is dispatched so only one invocation of the listener's method is expected.</p> | 0 |
<p dir="auto">I'm working in Jupyter/IPython to plot an amount of Words per Day, but am having trouble using datetimes with Regplot. The issues seems to be somewhat akin to <a href="https://github.com/mwaskom/seaborn/issues/257" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/257/hovercard">#257</a>, though I'm not quite sure of the difference between lmplot and regplot in this regard.</p>
<p dir="auto">A minimal working example, without datetimes but simple timestamps:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="%matplotlib inline
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.dates as dates
import seaborn as sns
import time
import datetime
import radar
sns.set(style="whitegrid", color_codes=True)
data = pd.DataFrame([])
for i in np.arange(1, 10):
date = radar.random_datetime(start='2016-05-20', stop='2016-05-25')
data = data.append(pd.DataFrame({'Date': time.mktime(date.timetuple()), 'Words': i + 100}, index=[0]), ignore_index=True)
points = plt.scatter(x = data['Date'], y = data["Words"], c=data["Words"], s=75, cmap="BrBG")
plt.colorbar(points)
sns.regplot(x = data['Date'], y = data["Words"], data=data, scatter=False, color='r')"><pre class="notranslate"><code class="notranslate">%matplotlib inline
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.dates as dates
import seaborn as sns
import time
import datetime
import radar
sns.set(style="whitegrid", color_codes=True)
data = pd.DataFrame([])
for i in np.arange(1, 10):
date = radar.random_datetime(start='2016-05-20', stop='2016-05-25')
data = data.append(pd.DataFrame({'Date': time.mktime(date.timetuple()), 'Words': i + 100}, index=[0]), ignore_index=True)
points = plt.scatter(x = data['Date'], y = data["Words"], c=data["Words"], s=75, cmap="BrBG")
plt.colorbar(points)
sns.regplot(x = data['Date'], y = data["Words"], data=data, scatter=False, color='r')
</code></pre></div>
<p dir="auto">Which renders a scatterplot with an overlaid regression-line. With the dates as datetimes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="points = plt.scatter(x = pd.to_datetime(data['Date'], unit='s').dt.to_pydatetime(), y = data["Words"], c=data["Words"], s=75, cmap="BrBG")
plt.colorbar(points)
sns.regplot(x = pd.to_datetime(data['Date'], unit='s').dt.to_pydatetime(), y = data["Words"], data=data, scatter=False, color='r')"><pre class="notranslate"><code class="notranslate">points = plt.scatter(x = pd.to_datetime(data['Date'], unit='s').dt.to_pydatetime(), y = data["Words"], c=data["Words"], s=75, cmap="BrBG")
plt.colorbar(points)
sns.regplot(x = pd.to_datetime(data['Date'], unit='s').dt.to_pydatetime(), y = data["Words"], data=data, scatter=False, color='r')
</code></pre></div>
<p dir="auto">However, this latter code fails with the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-7-d6488afe3dcb> in <module>()
1 points = plt.scatter(x = pd.to_datetime(data['Date'], unit='s').dt.to_pydatetime(), y = data["Words"], c=data["Words"], s=75, cmap="BrBG")
2 plt.colorbar(points)
----> 3 sns.regplot(x = pd.to_datetime(data['Date'], unit='s').dt.to_pydatetime(), y = data["Words"], data=data, scatter=False, color='r')
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in regplot(x, y, data, x_estimator, x_bins, x_ci, scatter, fit_reg, ci, n_boot, units, order, logistic, lowess, robust, logx, x_partial, y_partial, truncate, dropna, x_jitter, y_jitter, label, color, marker, scatter_kws, line_kws, ax)
777 scatter_kws["marker"] = marker
778 line_kws = {} if line_kws is None else copy.copy(line_kws)
--> 779 plotter.plot(ax, scatter_kws, line_kws)
780 return ax
781
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in plot(self, ax, scatter_kws, line_kws)
330 self.scatterplot(ax, scatter_kws)
331 if self.fit_reg:
--> 332 self.lineplot(ax, line_kws)
333
334 # Label the axes
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in lineplot(self, ax, kws)
375
376 # Fit the regression model
--> 377 grid, yhat, err_bands = self.fit_regression(ax)
378
379 # Get set default aesthetics
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in fit_regression(self, ax, x_range, grid)
207 yhat, yhat_boots = self.fit_logx(grid)
208 else:
--> 209 yhat, yhat_boots = self.fit_fast(grid)
210
211 # Compute the confidence interval at each grid point
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in fit_fast(self, grid)
222 grid = np.c_[np.ones(len(grid)), grid]
223 reg_func = lambda _x, _y: np.linalg.pinv(_x).dot(_y)
--> 224 yhat = grid.dot(reg_func(X, y))
225 if self.ci is None:
226 return yhat, None
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in <lambda>(_x, _y)
221 X, y = np.c_[np.ones(len(self.x)), self.x], self.y
222 grid = np.c_[np.ones(len(grid)), grid]
--> 223 reg_func = lambda _x, _y: np.linalg.pinv(_x).dot(_y)
224 yhat = grid.dot(reg_func(X, y))
225 if self.ci is None:
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\numpy\linalg\linalg.py in pinv(a, rcond)
1614 a, wrap = _makearray(a)
1615 _assertNoEmpty2d(a)
-> 1616 a = a.conjugate()
1617 u, s, vt = svd(a, 0)
1618 m = u.shape[0]
AttributeError: 'datetime.datetime' object has no attribute 'conjugate'"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-7-d6488afe3dcb> in <module>()
1 points = plt.scatter(x = pd.to_datetime(data['Date'], unit='s').dt.to_pydatetime(), y = data["Words"], c=data["Words"], s=75, cmap="BrBG")
2 plt.colorbar(points)
----> 3 sns.regplot(x = pd.to_datetime(data['Date'], unit='s').dt.to_pydatetime(), y = data["Words"], data=data, scatter=False, color='r')
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in regplot(x, y, data, x_estimator, x_bins, x_ci, scatter, fit_reg, ci, n_boot, units, order, logistic, lowess, robust, logx, x_partial, y_partial, truncate, dropna, x_jitter, y_jitter, label, color, marker, scatter_kws, line_kws, ax)
777 scatter_kws["marker"] = marker
778 line_kws = {} if line_kws is None else copy.copy(line_kws)
--> 779 plotter.plot(ax, scatter_kws, line_kws)
780 return ax
781
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in plot(self, ax, scatter_kws, line_kws)
330 self.scatterplot(ax, scatter_kws)
331 if self.fit_reg:
--> 332 self.lineplot(ax, line_kws)
333
334 # Label the axes
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in lineplot(self, ax, kws)
375
376 # Fit the regression model
--> 377 grid, yhat, err_bands = self.fit_regression(ax)
378
379 # Get set default aesthetics
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in fit_regression(self, ax, x_range, grid)
207 yhat, yhat_boots = self.fit_logx(grid)
208 else:
--> 209 yhat, yhat_boots = self.fit_fast(grid)
210
211 # Compute the confidence interval at each grid point
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in fit_fast(self, grid)
222 grid = np.c_[np.ones(len(grid)), grid]
223 reg_func = lambda _x, _y: np.linalg.pinv(_x).dot(_y)
--> 224 yhat = grid.dot(reg_func(X, y))
225 if self.ci is None:
226 return yhat, None
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\seaborn\linearmodels.py in <lambda>(_x, _y)
221 X, y = np.c_[np.ones(len(self.x)), self.x], self.y
222 grid = np.c_[np.ones(len(grid)), grid]
--> 223 reg_func = lambda _x, _y: np.linalg.pinv(_x).dot(_y)
224 yhat = grid.dot(reg_func(X, y))
225 if self.ci is None:
C:\Python\WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\lib\site-packages\numpy\linalg\linalg.py in pinv(a, rcond)
1614 a, wrap = _makearray(a)
1615 _assertNoEmpty2d(a)
-> 1616 a = a.conjugate()
1617 u, s, vt = svd(a, 0)
1618 m = u.shape[0]
AttributeError: 'datetime.datetime' object has no attribute 'conjugate'
</code></pre></div>
<p dir="auto">Though the scatterplot does render with the datetimes well-formatted, also on its own. Is there some special method for using datetimes with regplot, or a way to use the timestamps but still format the labels on the x-axis?</p> | <p dir="auto">I would like to use <code class="notranslate">lmplot</code> to visualize polling data for multiple candidates as demonstrated in <a href="http://nbviewer.ipython.org/gist/bwbensonjr/acd185a4b742368baf36" rel="nofollow">this notebook</a>, but I get <code class="notranslate">TypeError: invalid type promotion</code>.</p>
<p dir="auto">I can convert the dates to a <code class="notranslate">Days</code> integer, but then I don't get the date-based axis labels I want. This kind of use of dates is handled transparently when I use R and ggplot2.</p>
<p dir="auto">Here is the code inline:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd
import seaborn as sns
import StringIO
DATA = """Date,Candidate,Percent
2014-06-01,Smith,43
2014-06-01,Perkins,33
2014-06-05,Smith,44
2014-06-05,Perkins,31
2014-06-10,Smith,49
2014-06-10,Perkins,28
2014-06-12,Smith,49
2014-06-12,Perkins,25
2014-06-19,Smith,49
2014-06-19,Perkins,27"""
df = pd.read_csv(StringIO.StringIO(DATA), parse_dates=["Date"])
# This gives the TypeError
sns.lmplot("Date", "Percent", df, hue="Candidate")
# Converting the date objects to an integer works, but gives
# an innapropriately formatted table.
df["Day"] = df["Date"].map(lambda d: d.day)
sns.lmplot("Day", "Percent", df, hue="Candidate")"><pre class="notranslate"><code class="notranslate">import pandas as pd
import seaborn as sns
import StringIO
DATA = """Date,Candidate,Percent
2014-06-01,Smith,43
2014-06-01,Perkins,33
2014-06-05,Smith,44
2014-06-05,Perkins,31
2014-06-10,Smith,49
2014-06-10,Perkins,28
2014-06-12,Smith,49
2014-06-12,Perkins,25
2014-06-19,Smith,49
2014-06-19,Perkins,27"""
df = pd.read_csv(StringIO.StringIO(DATA), parse_dates=["Date"])
# This gives the TypeError
sns.lmplot("Date", "Percent", df, hue="Candidate")
# Converting the date objects to an integer works, but gives
# an innapropriately formatted table.
df["Day"] = df["Date"].map(lambda d: d.day)
sns.lmplot("Day", "Percent", df, hue="Candidate")
</code></pre></div> | 1 |
<p dir="auto">I have found that <code class="notranslate">lstsq</code> is sometimes throwing an exception; this is causing major problems because it's used in things like sklearn's <code class="notranslate">LinearRegression</code> class. I've included below a particular very simplified repro, but there appear to be an unpredictable but somewhat widespread set of circumstances that can trigger this bug.</p>
<h4 dir="auto">Reproducing code example:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
import numpy as np
from scipy.linalg import lstsq
n = 9 # doesn't repro for n<=8
# Generate covariates and outcomes
X = np.arange(n).reshape(-1,1)
Y = X
# plot anything with dashed lines (doesn't repro with default line style!)
plt.plot([1,2], [3,4], '--')
lstsq(X,Y)"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt
import numpy as np
from scipy.linalg import lstsq
n = 9 # doesn't repro for n<=8
# Generate covariates and outcomes
X = np.arange(n).reshape(-1,1)
Y = X
# plot anything with dashed lines (doesn't repro with default line style!)
plt.plot([1,2], [3,4], '--')
lstsq(X,Y)
</code></pre></div>
<h4 dir="auto">Error message</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
12 plt.plot([1,2], [3,4], '--')
13
---> 14 lstsq(X,Y)
c:\Users\kebatt\source\repos\ProjectAliceCore\automl_venv\lib\site-packages\scipy\linalg\basic.py in lstsq(a, b, cond, overwrite_a, overwrite_b, check_finite, lapack_driver)
1222 if info < 0:
1223 raise ValueError('illegal value in %d-th argument of internal %s'
-> 1224 % (-info, lapack_driver))
1225 resids = np.asarray([], dtype=x.dtype)
1226 if m > n:
ValueError: illegal value in 4-th argument of internal None"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
12 plt.plot([1,2], [3,4], '--')
13
---> 14 lstsq(X,Y)
c:\Users\kebatt\source\repos\ProjectAliceCore\automl_venv\lib\site-packages\scipy\linalg\basic.py in lstsq(a, b, cond, overwrite_a, overwrite_b, check_finite, lapack_driver)
1222 if info < 0:
1223 raise ValueError('illegal value in %d-th argument of internal %s'
-> 1224 % (-info, lapack_driver))
1225 resids = np.asarray([], dtype=x.dtype)
1226 if m > n:
ValueError: illegal value in 4-th argument of internal None
</code></pre></div>
<h4 dir="auto">Scipy/Numpy/Python version information:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.5.2 1.19.2 sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">1.5.2 1.19.2 sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)
</code></pre></div>
<p dir="auto">I am running Windows 10 version 2004, so I assume this is at least somewhat related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="650672204" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/16744" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/16744/hovercard" href="https://github.com/numpy/numpy/issues/16744">numpy/numpy#16744</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="682444304" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/12747" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/12747/hovercard" href="https://github.com/scipy/scipy/issues/12747">#12747</a>, etc., but the manifestation is different.</p> | <p dir="auto">I have found that <code class="notranslate">lstsq</code> is sometimes unexpectedly throwing an exception; this is causing major problems because it's used in things like sklearn's <code class="notranslate">LinearRegression</code> class. I've included below a particular very simplified repro, but there appear to be an unpredictable but somewhat widespread set of circumstances that can trigger this bug.</p>
<h4 dir="auto">Reproducing code example:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
import numpy as np
from scipy.linalg import lstsq
n = 9 # doesn't repro for n<=8
# Generate covariates and outcomes
X = np.arange(n).reshape(-1,1)
Y = X
# plot anything with dashed lines (doesn't repro with default line style!)
plt.plot([1,2], [3,4], '--')
lstsq(X,Y)"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt
import numpy as np
from scipy.linalg import lstsq
n = 9 # doesn't repro for n<=8
# Generate covariates and outcomes
X = np.arange(n).reshape(-1,1)
Y = X
# plot anything with dashed lines (doesn't repro with default line style!)
plt.plot([1,2], [3,4], '--')
lstsq(X,Y)
</code></pre></div>
<h4 dir="auto">Error message</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
12 plt.plot([1,2], [3,4], '--')
13
---> 14 lstsq(X,Y)
c:\Users\kebatt\source\repos\ProjectAliceCore\automl_venv\lib\site-packages\scipy\linalg\basic.py in lstsq(a, b, cond, overwrite_a, overwrite_b, check_finite, lapack_driver)
1222 if info < 0:
1223 raise ValueError('illegal value in %d-th argument of internal %s'
-> 1224 % (-info, lapack_driver))
1225 resids = np.asarray([], dtype=x.dtype)
1226 if m > n:
ValueError: illegal value in 4-th argument of internal None"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
12 plt.plot([1,2], [3,4], '--')
13
---> 14 lstsq(X,Y)
c:\Users\kebatt\source\repos\ProjectAliceCore\automl_venv\lib\site-packages\scipy\linalg\basic.py in lstsq(a, b, cond, overwrite_a, overwrite_b, check_finite, lapack_driver)
1222 if info < 0:
1223 raise ValueError('illegal value in %d-th argument of internal %s'
-> 1224 % (-info, lapack_driver))
1225 resids = np.asarray([], dtype=x.dtype)
1226 if m > n:
ValueError: illegal value in 4-th argument of internal None
</code></pre></div>
<h4 dir="auto">Scipy/Numpy/Python version information:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.5.2 1.19.2 sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">1.5.2 1.19.2 sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)
</code></pre></div>
<p dir="auto">I am running Windows 10 version 2004, so I assume this is at least somewhat related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="650672204" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/16744" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/16744/hovercard" href="https://github.com/numpy/numpy/issues/16744">numpy/numpy#16744</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="682444304" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/12747" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/12747/hovercard" href="https://github.com/scipy/scipy/issues/12747">#12747</a>, etc., but the manifestation is different.</p> | 1 |
<p dir="auto">AnnouncerTest seems to be failing pretty regularly in TravisCI these days.</p>
<p dir="auto">Specifically <code class="notranslate">AnnouncerTest.testSessionKilled</code> will often fail when checking the data in ZK</p> | <p dir="auto">io.druid.curator.announcement.AnnouncerTest<br>
testSessionKilled(io.druid.curator.announcement.AnnouncerTest) Time elapsed: 2.233 sec <<< FAILURE!<br>
java.lang.AssertionError: expected null, but was:<10,10,1451284237249,1451284237249,0,0,0,95111363629613057,25,0,10</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>
Radio button only fires the onChange event once for each option.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template: <a href="https://jsfiddle.net/84v837e9/" rel="nofollow">https://jsfiddle.net/84v837e9/</a>).</strong></p>
<p dir="auto">Demo code: <a href="https://jsfiddle.net/84v837e9/154/" rel="nofollow">https://jsfiddle.net/84v837e9/154/</a></p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
Radio button should fire the onChange event whenever value is changed.</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></p>
<p dir="auto">Current latest version (15.6.1)</p> | <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>
In React 15.6.1, this behaviour is changed; In 15.5.4, it fires the change event reliably.</p>
<p dir="auto">15.6.1 - <a href="https://codesandbox.io/embed/VPA42ZnRo" rel="nofollow">https://codesandbox.io/embed/VPA42ZnRo</a><br>
15.5.4 - <a href="https://codesandbox.io/embed/JZ0mnE5oy" rel="nofollow">https://codesandbox.io/embed/JZ0mnE5oy</a></p>
<p dir="auto">You'll need to have the console open to get the debugger statement.</p>
<p dir="auto">In 15.6.1, the first change fires, but all subsequent changes do not fire. In 15.5.4, all changes fire.</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></p>
<p dir="auto">React 15.6.1 vs React 15.5.4; Chrome latest stable.</p> | 1 |
<p dir="auto">Choose one: is this a bug report or feature request? <strong>feature request</strong></p>
<h3 dir="auto">Input Code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyComponent extends React.Component {
// ...
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MyComponent</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span> <span class="pl-kos">{</span>
<span class="pl-c">// ...</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"plugins": [ [ "transform-es2015-classes", { inline: true, loose: true } ] ]
}"><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">"transform-es2015-classes"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">inline</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">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>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Ideally, instead of inserting an <code class="notranslate">inherits</code> function into the scope, the code from the <code class="notranslate">inherits</code> function would be inserted into the compiled class function</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var MyComponent = function(_reactComponent) {
MyComponent.prototype = Object.create(_reactComponent.prototype);
MyComponent.prototype.constructor = MyComponent;
MyComponent.__proto__ = _reactComponent;
function MyComponent { ... };
return MyComponent;
}(React.Component);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">MyComponent</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">_reactComponent</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-v">MyComponent</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-s1">_reactComponent</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-v">MyComponent</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-c1">constructor</span> <span class="pl-c1">=</span> <span class="pl-v">MyComponent</span><span class="pl-kos">;</span>
<span class="pl-v">MyComponent</span><span class="pl-kos">.</span><span class="pl-c1">__proto__</span> <span class="pl-c1">=</span> <span class="pl-s1">_reactComponent</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-v">MyComponent</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-v">MyComponent</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">My basic testing (using the Rollup REPL) seems to imply that that would successfully be tree shaken. However, that is only true for the loose inherits, the full inherits still would not be tree shaken.</p>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">An <code class="notranslate">inherits</code> function is inserted into the scope and called within the compiled class.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var inherits = function(subClass, superClass) { ... };
var MyComponent = function(_reactComponent) {
inherits(MyComponent, _reactComponent);
function MyComponent { ... };
return MyComponent;
}(React.Component);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-en">inherits</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">subClass</span><span class="pl-kos">,</span> <span class="pl-s1">superClass</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> ... <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-v">MyComponent</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">_reactComponent</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">inherits</span><span class="pl-kos">(</span><span class="pl-v">MyComponent</span><span class="pl-kos">,</span> <span class="pl-s1">_reactComponent</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-v">MyComponent</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-v">MyComponent</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Possible Solution</h3>
<p dir="auto">We could pass an <code class="notranslate">inline: true</code> option to the <code class="notranslate">transform-es2015-classes</code> plugin and it would inline the inherits code instead of inserting the helper function into the scope and calling that.</p>
<p dir="auto">I'm not familiar enough with Babel to say whether adding an option to the plugin is a viable solution. Instead, this might have to be done with a separate plugin.</p>
<h3 dir="auto">Context</h3>
<p dir="auto">I was experimenting with moving a project (React Router) to a single file build. Currently, our <code class="notranslate">main</code> and <code class="notranslate">module</code> builds are just the compiled files from our source. This allows users to cherry pick imports so that their bundles only include the files that they want. If we were to switch to a single file, users obviously could no longer cherry pick, so we would want to make our exports tree shake-able to have feature parity.</p>
<p dir="auto">This isn't a React specific problem, but since React now encourages using <code class="notranslate">class <C> extends React.Component</code>, any React component package that does so will have this issue.</p> | <h3 dir="auto">Feature request</h3>
<p dir="auto">Minifiers like Uglify try to remove dead code from minified builds.<br>
To completely remove a declaration, they have to prove that it is side-effect free.<br>
Unfortunately in JS this is often not possible as pretty much anything can have arbitrary effects.</p>
<p dir="auto">An important issue is that ES5 emit for <code class="notranslate">class</code> can't easily be determined to be side-effect free.<br>
As a result, tree-shaking is ineffective. In simple words: no class is removed from the output, even if it is never used.</p>
<p dir="auto">A very simple solution could be to have a hint for the minifier, inside a special comment.<br>
If the emit added a <code class="notranslate">/*#__PURE__*/</code> comment at the beginning of ES5 classes it could easily be detected and removed by Uglify.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var V6Engine = /*#__PURE__*/(function () {
function V6Engine() {
}
V6Engine.prototype.toString = function () {
return 'V6';
};
return V6Engine;
}());"><pre class="notranslate"><code class="notranslate">var V6Engine = /*#__PURE__*/(function () {
function V6Engine() {
}
V6Engine.prototype.toString = function () {
return 'V6';
};
return V6Engine;
}());
</code></pre></div>
<p dir="auto">This is an important enhancement that can dramatically reduce the size of unused code, especially in large libraries.<br>
Uglify|JS already supports this annotation: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="203844934" data-permission-text="Title is private" data-url="https://github.com/mishoo/UglifyJS/issues/1448" data-hovercard-type="pull_request" data-hovercard-url="/mishoo/UglifyJS/pull/1448/hovercard" href="https://github.com/mishoo/UglifyJS/pull/1448">mishoo/UglifyJS#1448</a><br>
Original UglifyJS discussion: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="172331650" data-permission-text="Title is private" data-url="https://github.com/mishoo/UglifyJS/issues/1261" data-hovercard-type="issue" data-hovercard-url="/mishoo/UglifyJS/issues/1261/hovercard" href="https://github.com/mishoo/UglifyJS/issues/1261">mishoo/UglifyJS#1261</a><br>
For reference, implementation details are here: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/mishoo/UglifyJS/commit/1e51586996ae4fdac68a8ea597c20ab170809c43/hovercard" href="https://github.com/mishoo/UglifyJS/commit/1e51586996ae4fdac68a8ea597c20ab170809c43">mishoo/UglifyJS@<tt>1e51586</tt></a></p>
<p dir="auto">The issue was originally raised at Webpack: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="171022058" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/2867" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/2867/hovercard" href="https://github.com/webpack/webpack/issues/2867">webpack/webpack#2867</a></p> | 1 |
<p dir="auto">**I'm submitting a bug report.</p>
<p dir="auto"><strong>Current behavior</strong><br>
Calling markAsTouched on a FormGroup doesn't mark their children controls as touched.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Calling markAsTouched on a FormGroup should set the touched flag of their children controls. Actually, the opposite method, markAsUntouched, is affecting the children controls.</p>
<p dir="auto">Why markAsTouched doesn't work the same way?</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Repro:<br>
<a href="http://plnkr.co/edit/CgjaYHgfzdEqCyTCud8N?p=preview" rel="nofollow">http://plnkr.co/edit/CgjaYHgfzdEqCyTCud8N?p=preview</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
I have some styles that rely on the touched state. In some cases and need to set manually the touched state for all the controls, for example, after the user clicks on the save button.</p>
<ul dir="auto">
<li><strong>Angular version:</strong><br>
2.1</li>
</ul> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report
[x] feature request"><pre class="notranslate"><code class="notranslate">[x] bug report
[x] feature request
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
There are <code class="notranslate">markAs</code> methods that can manipulate a form's internal validation state. These are highly useful. However, they propagate to children only sometimes.</p>
<p dir="auto">The following methods also mark their children:<br>
<code class="notranslate">markAsUnTouched</code><br>
<code class="notranslate">markAsPristine</code></p>
<p dir="auto">These methods do <strong>not</strong> mark their children:<br>
<code class="notranslate">markAsTouched</code><br>
<code class="notranslate">markAsDirty</code></p>
<p dir="auto">I'm not even sure what this method is for...<br>
<code class="notranslate">markAsPending</code></p>
<p dir="auto"><strong>Expected behavior</strong><br>
All methods to mark validation should interact with their groups either always or optionally.</p>
<p dir="auto">Alternatively, some basic iteration machinery should be introduced so that we may instrument our own state changes easily.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
For example; I want to show validation when loading a record from the DB but I would prefer not to show validation when creating a new record. It would be convenient to to mark everything as dirty or at least touched (as my validation would key off of those states) at the form level.</p>
<p dir="auto">Conceptually, considering the semantic meaning of <code class="notranslate">FormGroup</code>, it seems if a parent control is marked as dirty that would indicate the children are dirty as well. The same reasoning which was originally used to implement <code class="notranslate">reset()</code> and the other <code class="notranslate">markAs</code> functions that handle their children.</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0</li>
<li><strong>Browser:</strong> all</li>
<li><strong>Language:</strong> all</li>
</ul> | 1 |
<p dir="auto">My current use case is a twitter post like edit box which highlights certain words with a different color. eg:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/86928/30236910-46c5dcf0-9543-11e7-98ee-75ea04be8f56.png"><img src="https://user-images.githubusercontent.com/86928/30236910-46c5dcf0-9543-11e7-98ee-75ea04be8f56.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">When calling the method "jumpTo" on the <code class="notranslate">ScrollController</code>, the <code class="notranslate">ListView</code> builds every item between the current position and the "scrollTo" position;</p>
<p dir="auto">This code snippet shows the problem. In the log, it will print every item , from 0 to 10000, wich takes a loooong time to run and freezes the entire application.</p>
<p dir="auto">The desired behavior should be the list building only the last elements of the list.</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class TestListViewBuilder extends StatelessWidget {
final _values = List.generate(10000, (index) => index);
final _controller = ScrollController();
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
RaisedButton(
child: Text("Go to bottom"),
onPressed: () {
_controller.jumpTo(_controller.position.maxScrollExtent);
},
),
Expanded(
child: ListView.builder(
controller: _controller,
itemBuilder: (context, index) {
print("Building index $index");
return ListTile(title: Text("Index $index"));
},
itemCount: _values.length,
),
),
],
);
}
}
"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">TestListViewBuilder</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> {
<span class="pl-k">final</span> _values <span class="pl-k">=</span> <span class="pl-c1">List</span>.<span class="pl-en">generate</span>(<span class="pl-c1">10000</span>, (index) <span class="pl-k">=></span> index);
<span class="pl-k">final</span> _controller <span class="pl-k">=</span> <span class="pl-c1">ScrollController</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">Column</span>(
children<span class="pl-k">:</span> <span class="pl-k"><</span><span class="pl-c1">Widget</span><span class="pl-k">></span>[
<span class="pl-c1">RaisedButton</span>(
child<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">"Go to bottom"</span>),
onPressed<span class="pl-k">:</span> () {
_controller.<span class="pl-en">jumpTo</span>(_controller.position.maxScrollExtent);
},
),
<span class="pl-c1">Expanded</span>(
child<span class="pl-k">:</span> <span class="pl-c1">ListView</span>.<span class="pl-en">builder</span>(
controller<span class="pl-k">:</span> _controller,
itemBuilder<span class="pl-k">:</span> (context, index) {
<span class="pl-en">print</span>(<span class="pl-s">"Building index $<span class="pl-v">index</span>"</span>);
<span class="pl-k">return</span> <span class="pl-c1">ListTile</span>(title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">"Index $<span class="pl-v">index</span>"</span>));
},
itemCount<span class="pl-k">:</span> _values.length,
),
),
],
);
}
}
</pre></div>
<p dir="auto">Flutter doctor:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] Flutter (Channel unknown, v0.11.9, on Microsoft Windows [versão 10.0.17134.407], locale pt-BR)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[√] Android Studio (version 3.2)
[√] IntelliJ IDEA Community Edition (version 2018.3)
[√] Connected device (1 available)
• No issues found!"><pre class="notranslate"><code class="notranslate">[√] Flutter (Channel unknown, v0.11.9, on Microsoft Windows [versão 10.0.17134.407], locale pt-BR)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[√] Android Studio (version 3.2)
[√] IntelliJ IDEA Community Edition (version 2018.3)
[√] Connected device (1 available)
• No issues found!
</code></pre></div> | 0 |
<p dir="auto">I am running a spider with Scrapy but after it finishes crawling it can't seem to terminate. Log stats just recursively report that it is scraping 0 pages/minute. When I try to quit with Ctrl-C, it fails to shut down gracefully and I have to quit forcefully with Ctrl-C again. Any clue what is happening?</p>
<p dir="auto">After completing a scrape, I just get output like this:</p>
<blockquote>
<p dir="auto">2017-08-24 11:13:45 [scrapy.extensions.logstats] INFO: Crawled 60 pages (at 0 pages/min), scraped 54 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-24 11:14:45 [scrapy.extensions.logstats] INFO: Crawled 60 pages (at 0 pages/min), scraped 54 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-24 11:15:45 [scrapy.extensions.logstats] INFO: Crawled 60 pages (at 0 pages/min), scraped 54 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-24 11:16:45 [scrapy.extensions.logstats] INFO: Crawled 60 pages (at 0 pages/min), scraped 54 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-24 11:17:45 [scrapy.extensions.logstats] INFO: Crawled 60 pages (at 0 pages/min), scraped 54 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-24 11:18:45 [scrapy.extensions.logstats] INFO: Crawled 60 pages (at 0 pages/min), scraped 54 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-24 11:19:45 [scrapy.extensions.logstats] INFO: Crawled 60 pages (at 0 pages/min), scraped 54 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-24 11:20:45 [scrapy.extensions.logstats] INFO: Crawled 60 pages (at 0 pages/min), scraped 54 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-24 11:21:45 [scrapy.extensions.logstats] INFO: Crawled 60 pages (at 0 pages/min), scraped 54 items (at 0 items/min)</p>
</blockquote>
<p dir="auto">which continues indefinitely.</p>
<p dir="auto">My spider goes to a page that contains a list of links over multiple pages. It visits the first page, extracts the links (using the request meta trick to pass some information along while following the link), and then goes to the next page of links.</p>
<p dir="auto">A second parser extracts information from the individual pages.</p>
<p dir="auto">I don't see any error messages, and the job performs successfully; it just fails to end. This is a problem because I would like to use a script to call the job to run multiple times on different pages (same structure, different information), but the since the first job never finishes I can't ever get to the next set of pages to scrape.</p>
<p dir="auto">The <code class="notranslate">parse(self, response)</code> method yields two types of information.</p>
<ol dir="auto">
<li>
<p dir="auto">For each link on the page, visit the page to extract more information.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" request = scrapy.Request(item['url'], callback=self.parse_transcript)
request.meta['item'] = item
yield request"><pre class="notranslate"><code class="notranslate"> request = scrapy.Request(item['url'], callback=self.parse_transcript)
request.meta['item'] = item
yield request
</code></pre></div>
</li>
<li>
<p dir="auto">If there is another page of links, get link and increment page number by 1 using regex.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" while data['count'] > 0:
next_page = re.sub('(?<=page=)(\d+)', lambda x: str(int(x.group(0)) + 1), response.url)
yield Request(next_page)"><pre class="notranslate"><code class="notranslate"> while data['count'] > 0:
next_page = re.sub('(?<=page=)(\d+)', lambda x: str(int(x.group(0)) + 1), response.url)
yield Request(next_page)
</code></pre></div>
</li>
</ol>
<p dir="auto">I checked the engine status using the telnet extension. I'm not sure how to interpret this information though.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> est()
Execution engine status
time()-engine.start_time : 10746.1215799
engine.has_capacity() : False
len(engine.downloader.active) : 0
engine.scraper.is_idle() : False
engine.spider.name : transcripts
engine.spider_is_idle(engine.spider) : False
engine.slot.closing : <Deferred at 0x10d8fda28>
len(engine.slot.inprogress) : 4
len(engine.slot.scheduler.dqs or []) : 0
len(engine.slot.scheduler.mqs) : 0
len(engine.scraper.slot.queue) : 0
len(engine.scraper.slot.active) : 4
engine.scraper.slot.active_size : 31569
engine.scraper.slot.itemproc_size : 0
engine.scraper.slot.needs_backout() : False"><pre class="notranslate"><code class="notranslate">>>> est()
Execution engine status
time()-engine.start_time : 10746.1215799
engine.has_capacity() : False
len(engine.downloader.active) : 0
engine.scraper.is_idle() : False
engine.spider.name : transcripts
engine.spider_is_idle(engine.spider) : False
engine.slot.closing : <Deferred at 0x10d8fda28>
len(engine.slot.inprogress) : 4
len(engine.slot.scheduler.dqs or []) : 0
len(engine.slot.scheduler.mqs) : 0
len(engine.scraper.slot.queue) : 0
len(engine.scraper.slot.active) : 4
engine.scraper.slot.active_size : 31569
engine.scraper.slot.itemproc_size : 0
engine.scraper.slot.needs_backout() : False
</code></pre></div>
<p dir="auto">I tried raising an exception to close the spider after it reached the end of the links, but this prematurely stopped the spider from being able to visit all of the links that were scrapped. Further, the engine still appeared to hang after closing the spider.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="while data['count'] > 0:
next_page = re.sub('(?<=page=)(\d+)', lambda x: str(int(x.group(0)) + 1), response.url)
yield Request(next_page)
else:
raise CloseSpider('End of transcript history has been reached.')"><pre class="notranslate"><code class="notranslate">while data['count'] > 0:
next_page = re.sub('(?<=page=)(\d+)', lambda x: str(int(x.group(0)) + 1), response.url)
yield Request(next_page)
else:
raise CloseSpider('End of transcript history has been reached.')
</code></pre></div>
<p dir="auto">I also tried using the CLOSESPIDER_TIMEOUT extension, but to no avail. The spider appears to close properly, but the engine remains idling indefinitely.</p>
<blockquote>
<p dir="auto">2017-08-30 11:20:44 [scrapy.extensions.logstats] INFO: Crawled 48 pages (at 9 pages/min), scraped 42 items (at 9 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-30 11:23:44 [scrapy.extensions.logstats] INFO: Crawled 48 pages (at 0 pages/min), scraped 42 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-30 11:24:44 [scrapy.extensions.logstats] INFO: Crawled 48 pages (at 0 pages/min), scraped 42 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-30 11:25:44 [scrapy.core.engine] INFO: Closing spider (closespider_timeout)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-30 11:25:44 [scrapy.extensions.logstats] INFO: Crawled 48 pages (at 0 pages/min), scraped 42 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-30 11:28:44 [scrapy.extensions.logstats] INFO: Crawled 48 pages (at 0 pages/min), scraped 42 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-30 11:29:44 [scrapy.extensions.logstats] INFO: Crawled 48 pages (at 0 pages/min), scraped 42 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-30 11:32:44 [scrapy.extensions.logstats] INFO: Crawled 48 pages (at 0 pages/min), scraped 42 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">^C2017-08-30 11:33:31 [scrapy.crawler] INFO: Received SIGINT, shutting down gracefully. Send again to force</p>
</blockquote>
<blockquote>
<p dir="auto">2017-08-30 11:41:44 [scrapy.extensions.logstats] INFO: Crawled 48 pages (at 0 pages/min), scraped 42 items (at 0 items/min)</p>
</blockquote>
<blockquote>
<p dir="auto">^C2017-08-30 11:45:52 [scrapy.crawler] INFO: Received SIGINT twice, forcing unclean shutdown</p>
</blockquote> | <p dir="auto">Errors exists about the Twisted when installing scrapy in window by using pip install scrapy. Any one know how to fix it.</p>
<blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" copying src\twisted\internet\test\_yieldfromtests.py.3only -> build\lib.win32-2.7\twisted\internet\test
creating build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\chain.pem -> build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\not-a-certificate -> build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing1.pem -> build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing2-duplicate.pem -> build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing2.pem -> build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\mail\test\rfc822.message -> build\lib.win32-2.7\twisted\mail\test
copying src\twisted\python\test\_deprecatetests.py.3only -> build\lib.win32-2.7\twisted\python\test
copying src\twisted\words\im\instancemessenger.glade -> build\lib.win32-2.7\twisted\words\im
copying src\twisted\words\xish\xpathparser.g -> build\lib.win32-2.7\twisted\words\xish
running build_ext
building 'twisted.test.raiser' extension
error: INCLUDE environment variable is empty
----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\thomas~1\\appdata\\local\\temp\\pip-build-3oirm6\\Twisted\\setup.py';
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
install --record c:\users\thomas~1\appdata\local\temp\pip-xvbgd2-record\install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in c:\users\thomas~1\appdata\local\temp\pip-build-3oirm6\Twisted\"><pre class="notranslate"><code class="notranslate"> copying src\twisted\internet\test\_yieldfromtests.py.3only -> build\lib.win32-2.7\twisted\internet\test
creating build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\chain.pem -> build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\not-a-certificate -> build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing1.pem -> build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing2-duplicate.pem -> build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing2.pem -> build\lib.win32-2.7\twisted\internet\test\fake_CAs
copying src\twisted\mail\test\rfc822.message -> build\lib.win32-2.7\twisted\mail\test
copying src\twisted\python\test\_deprecatetests.py.3only -> build\lib.win32-2.7\twisted\python\test
copying src\twisted\words\im\instancemessenger.glade -> build\lib.win32-2.7\twisted\words\im
copying src\twisted\words\xish\xpathparser.g -> build\lib.win32-2.7\twisted\words\xish
running build_ext
building 'twisted.test.raiser' extension
error: INCLUDE environment variable is empty
----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\thomas~1\\appdata\\local\\temp\\pip-build-3oirm6\\Twisted\\setup.py';
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
install --record c:\users\thomas~1\appdata\local\temp\pip-xvbgd2-record\install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in c:\users\thomas~1\appdata\local\temp\pip-build-3oirm6\Twisted\
</code></pre></div>
</blockquote> | 0 |
<p dir="auto">I'm working at a .php file and vs code crush at random, freeze is a more accurate description, wen i'm typing, open files, all i can say it's a behavior witch appeared after the last update. And i've noticed that intellisense remain opened long after i've finished typing the function. Yes i have the warning: "Cannot validate the php file. The php program was not found. Use the 'php.validate.executablePath' setting to configure the location of 'php'".<br>
Didn't try with other type of files to see if this issue appear.<br>
My version of SO: Microsoft Windows [Version 10.0.10586]<br>
VSCode version:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5724331/11379022/cf16ec3a-92f6-11e5-8c4e-d69cf57b3fc9.png"><img src="https://cloud.githubusercontent.com/assets/5724331/11379022/cf16ec3a-92f6-11e5-8c4e-d69cf57b3fc9.png" alt="vscodever" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5724331/11378856/f2b813cc-92f5-11e5-931e-b66a0860692b.png"><img src="https://cloud.githubusercontent.com/assets/5724331/11378856/f2b813cc-92f5-11e5-931e-b66a0860692b.png" alt="vscodecrush" style="max-width: 100%;"></a></p> | <p dir="auto">Sometimes editor just freeze. Kill task helps only. Have this problem at work and home.<br>
I noticed that this started after latest update (0.10.1).</p>
<p dir="auto">Working in PHP files.</p>
<p dir="auto">Windows 10 64.</p> | 1 |
<p dir="auto">When I try to navigate in commits React Dev Tools Profiler I get this error:<br>
"Commit tree does not contain fiber 8562."<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8399579/80387189-bad50180-887e-11ea-860a-3821b2d9603c.png"><img src="https://user-images.githubusercontent.com/8399579/80387189-bad50180-887e-11ea-860a-3821b2d9603c.png" alt="Screen Shot 2020-04-27 at 12 00 23" style="max-width: 100%;"></a></p>
<p dir="auto">DevTools version: 4.6.0-6cceaeb67</p>
<p dir="auto">Component stack: in ec<br>
in div<br>
in div<br>
in div<br>
in So<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in rl<br>
in Ze<br>
in fn<br>
in Ga<br>
in _s</p> | <p dir="auto">Describe what you were doing when the bug occurred:</p>
<ol dir="auto">
<li>when I start profiler from my login screen</li>
<li>when I go to any route I stop the profiler it get error cannot debug profiler</li>
</ol>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.11.0-39713716aa</p>
<p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20532:21)<br>
at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20377:26)<br>
at ProfilingCache_ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20951:11)<br>
at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35462:33)<br>
at Rh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13245:7)<br>
at Ci (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13944:7)<br>
at uk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16725:86)<br>
at tk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16245:11)<br>
at qk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16237:23)<br>
at jk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16221:5)</p>
<p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35445:34)<br>
at div<br>
at div<br>
at div<br>
at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29121:3)<br>
at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37243:34)<br>
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30035:5)<br>
at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30157:5)<br>
at div<br>
at div<br>
at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34264:3)<br>
at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25356:3)<br>
at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25963:3)<br>
at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30300:3)<br>
at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37639:3)</p> | 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.0</li>
<li>Operating System / Platform => Windows 7 x64</li>
<li>Compiler => mingw 7.3.0 x64</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Segfault when I try to transfer any args to kernel args method (While opencl is working when I use cv::UMat in the algorithms like cv::normalize, cv::reduce etc..) May be is there any algorithm in opencv to reduce Mat by 8 column groups?</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Using Qt 5.12.2 :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include <opencv2/core/core.hpp>
#include <opencv2/core/ocl.hpp>
#include <opencv2/opencv.hpp>
QString kernelName = "column_reduce";
QString kernelSrc = QStringLiteral(
"__kernel void column_reduce "
"(__global float8* img_in, __global float* img_out, int width, __local float8* tmp)"
"{ "
" const int2 pos_global = {get_global_id(0), get_global_id(1)}; "
" const int pos_1d_global = pos_global.x * width + pos_global.y; "
" const int2 pos = {get_local_id(0), get_local_id(1)}; "
" const int pos_1d = pos.x * width + pos.y; "
" tmp[pos_1d] = img_in[pos_1d_global]; "
" barrier(CLK_LOCAL_MEM_FENCE); "
" float8 cols = tmp[pos_1d]; "
" float sum = cols.s0 + cols.s1 + cols.s2 + cols.s3 + "
" cols.s4 + cols.s5 + cols.s6 + cols.s7; "
" barrier(CLK_LOCAL_MEM_FENCE); "
" img_out[pos_1d_global] = sum; "
"} ");
cv::ocl::Kernel kernel(kernelName.toUtf8().constData(),
cv::ocl::ProgramSource(kernelSrc.toUtf8().constData()));
assert(! kernel.empty());
cv::Mat src = cv::Mat(100, 128/*divide on 8*/, CV_32F, cv::Scalar(1));
UMat src_umat = src.getUMat(cv::ACCESS_READ);
Mat _dst = Mat(src.rows, src.cols, src.type());
UMat dst_umat = _dst.getUMat(cv::ACCESS_RW);
ocl::KernelArg srcarg = ocl::KernelArg::ReadOnly(src_umat),
temparg = ocl::KernelArg::WriteOnlyNoSize(dst_umat);
kernel.args(srcarg, temparg); // << cause segfault"><pre class="notranslate"><code class="notranslate">#include <opencv2/core/core.hpp>
#include <opencv2/core/ocl.hpp>
#include <opencv2/opencv.hpp>
QString kernelName = "column_reduce";
QString kernelSrc = QStringLiteral(
"__kernel void column_reduce "
"(__global float8* img_in, __global float* img_out, int width, __local float8* tmp)"
"{ "
" const int2 pos_global = {get_global_id(0), get_global_id(1)}; "
" const int pos_1d_global = pos_global.x * width + pos_global.y; "
" const int2 pos = {get_local_id(0), get_local_id(1)}; "
" const int pos_1d = pos.x * width + pos.y; "
" tmp[pos_1d] = img_in[pos_1d_global]; "
" barrier(CLK_LOCAL_MEM_FENCE); "
" float8 cols = tmp[pos_1d]; "
" float sum = cols.s0 + cols.s1 + cols.s2 + cols.s3 + "
" cols.s4 + cols.s5 + cols.s6 + cols.s7; "
" barrier(CLK_LOCAL_MEM_FENCE); "
" img_out[pos_1d_global] = sum; "
"} ");
cv::ocl::Kernel kernel(kernelName.toUtf8().constData(),
cv::ocl::ProgramSource(kernelSrc.toUtf8().constData()));
assert(! kernel.empty());
cv::Mat src = cv::Mat(100, 128/*divide on 8*/, CV_32F, cv::Scalar(1));
UMat src_umat = src.getUMat(cv::ACCESS_READ);
Mat _dst = Mat(src.rows, src.cols, src.type());
UMat dst_umat = _dst.getUMat(cv::ACCESS_RW);
ocl::KernelArg srcarg = ocl::KernelArg::ReadOnly(src_umat),
temparg = ocl::KernelArg::WriteOnlyNoSize(dst_umat);
kernel.args(srcarg, temparg); // << cause segfault
</code></pre></div>
<p dir="auto">Error signature:<br>
APPCRASH<br>
module with error: amdocl64.dll<br>
module with error version: 10.0.2766.5<br>
exception code: c0000005<br>
exception offset: 00000000002f1619<br>
os ver: 6.1.7601.2.1.0.256.48<br>
lang code: 1049<br>
additional info 1: 3dd5<br>
additional info 2: 3dd52932c27223cd65366d12942569bf<br>
additional info 3: ec76<br>
additional info 4: ec76e410f94e0c815bd57985ba687292<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3767353/61537289-7428c000-aa3f-11e9-83a2-8a61d30ceae6.png"><img src="https://user-images.githubusercontent.com/3767353/61537289-7428c000-aa3f-11e9-83a2-8a61d30ceae6.png" alt="OclError" style="max-width: 100%;"></a></p> | <p dir="auto">CMake Error: The following variables are used in this project, but they are set to NOTFOUND.<br>
Please set them or make sure they are set and tested correctly in the CMake files:<br>
CUDA_CUDA_LIBRARY (ADVANCED)<br>
linked by target "example_gpu_alpha_comp" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_bgfg_segm" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_cascadeclassifier" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_cascadeclassifier_nvidia_api" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_driver_api_multi" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_driver_api_stereo_multi" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_farneback_optical_flow" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_generalized_hough" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_hog" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_houghlines" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_morphology" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_multi" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_opengl" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_optical_flow" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_opticalflow_nvidia_api" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_pyrlk_optical_flow" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_stereo_match" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_stereo_multi" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_super_resolution" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_surf_keypoint_matcher" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_video_reader" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu<br>
linked by target "example_gpu_video_writer" in directory /home/shravankumar/apps/opencv-3.2.0/samples/gpu</p>
<p dir="auto">-- Configuring incomplete, errors occurred!</p> | 0 |
<p dir="auto">If I use MultiIndex columns and if a level happens to have empty values for all columns, the saved CSV file cannot be read. I expected to recover the dataframe from the saved CSV perfectly.</p>
<p dir="auto">I believe <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="29277874" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/6618" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/6618/hovercard" href="https://github.com/pandas-dev/pandas/issues/6618">#6618</a> might be related, because this is somehow related to how Pandas uses an empty data row to separate column names and actual data when using MultiIndex columns.</p>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<p dir="auto">This works as expected:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: pd.DataFrame({('a','b'): [1, 2], ('c','d'): [3, 4]}).to_csv('temp.csv', index=False)
In [2]: pd.read_csv('temp.csv', header=[0,1])
Out[2]:
a c
b d
0 1 3
1 2 4"><pre lang="ipython" class="notranslate"><code class="notranslate">In [1]: pd.DataFrame({('a','b'): [1, 2], ('c','d'): [3, 4]}).to_csv('temp.csv', index=False)
In [2]: pd.read_csv('temp.csv', header=[0,1])
Out[2]:
a c
b d
0 1 3
1 2 4
</code></pre></div>
<p dir="auto">However, if a level is empty (i.e., all columns are <code class="notranslate">''</code> on that level), it doesn't work:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [3]: pd.DataFrame({('a',''): [1, 2], ('c',''): [3, 4]}).to_csv('temp.csv', index=False)
In [4]: pd.read_csv('temp.csv', header=[0,1])
---------------------------------------------------------------------------
CParserError Traceback (most recent call last)
<ipython-input-73-9f097e07e5a9> in <module>()
----> 1 pd.read_csv('temp.csv', header=[0,1])
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision)
527 skip_blank_lines=skip_blank_lines)
528
--> 529 return _read(filepath_or_buffer, kwds)
530
531 parser_f.__name__ = name
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds)
293
294 # Create the parser.
--> 295 parser = TextFileReader(filepath_or_buffer, **kwds)
296
297 if (nrows is not None) and (chunksize is not None):
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in __init__(self, f, engine, **kwds)
610 self.options['has_index_names'] = kwds['has_index_names']
611
--> 612 self._make_engine(self.engine)
613
614 def _get_options_with_defaults(self, engine):
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in _make_engine(self, engine)
745 def _make_engine(self, engine='c'):
746 if engine == 'c':
--> 747 self._engine = CParserWrapper(self.f, **self.options)
748 else:
749 if engine == 'python':
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in __init__(self, src, **kwds)
1132 self._extract_multi_indexer_columns(
1133 self._reader.header, self.index_names, self.col_names,
-> 1134 passed_names
1135 )
1136 )
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in _extract_multi_indexer_columns(self, header, index_names, col_names, passed_names)
906 "Passed header=[%s] are too many rows for this "
907 "multi_index of columns"
--> 908 % ','.join([str(x) for x in self.header])
909 )
910
CParserError: Passed header=[0,1] are too many rows for this multi_index of columns"><pre lang="ipython" class="notranslate"><code class="notranslate">In [3]: pd.DataFrame({('a',''): [1, 2], ('c',''): [3, 4]}).to_csv('temp.csv', index=False)
In [4]: pd.read_csv('temp.csv', header=[0,1])
---------------------------------------------------------------------------
CParserError Traceback (most recent call last)
<ipython-input-73-9f097e07e5a9> in <module>()
----> 1 pd.read_csv('temp.csv', header=[0,1])
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision)
527 skip_blank_lines=skip_blank_lines)
528
--> 529 return _read(filepath_or_buffer, kwds)
530
531 parser_f.__name__ = name
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds)
293
294 # Create the parser.
--> 295 parser = TextFileReader(filepath_or_buffer, **kwds)
296
297 if (nrows is not None) and (chunksize is not None):
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in __init__(self, f, engine, **kwds)
610 self.options['has_index_names'] = kwds['has_index_names']
611
--> 612 self._make_engine(self.engine)
613
614 def _get_options_with_defaults(self, engine):
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in _make_engine(self, engine)
745 def _make_engine(self, engine='c'):
746 if engine == 'c':
--> 747 self._engine = CParserWrapper(self.f, **self.options)
748 else:
749 if engine == 'python':
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in __init__(self, src, **kwds)
1132 self._extract_multi_indexer_columns(
1133 self._reader.header, self.index_names, self.col_names,
-> 1134 passed_names
1135 )
1136 )
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in _extract_multi_indexer_columns(self, header, index_names, col_names, passed_names)
906 "Passed header=[%s] are too many rows for this "
907 "multi_index of columns"
--> 908 % ','.join([str(x) for x in self.header])
909 )
910
CParserError: Passed header=[0,1] are too many rows for this multi_index of columns
</code></pre></div>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">Expected that the empty columns are read correctly because I had explicitly specified the rows to use as column index:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" a c
0 1 3
1 2 4"><pre class="notranslate"><code class="notranslate"> a c
0 1 3
1 2 4
</code></pre></div>
<h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.2-gnu-1
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_DK.UTF-8
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.10.1
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: 1.4
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.0
sqlalchemy: 1.0.12
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.2-gnu-1
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_DK.UTF-8
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.10.1
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: 1.4
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.0
sqlalchemy: 1.0.12
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: None
</code></pre></div> | <p dir="auto">Many timeseries-related functions have a <code class="notranslate">freq</code> argument that accepts strings representing some offset value. The specific valid options are apparently known as "offset aliases." Not exactly intuitive search terms but I did eventually find <a href="https://github.com/pydata/pandas/blob/master/doc/source/timeseries.rst">https://github.com/pydata/pandas/blob/master/doc/source/timeseries.rst</a> which lists the valid aliases.</p>
<p dir="auto">I can understand why it's suboptimal to list all valid aliases in the docstring of every function with a <code class="notranslate">freq</code> argument but it's also frustrating for users to be told "use one of these" without being told what "these" are. Can a balance be struck?</p>
<p dir="auto">Perhaps the aliases are already defined in some docstring and I have not found them. In this case, adding a "see here for valid aliases" would probably be sufficient. If they are not, however, what would be the best way of incorporating them?</p> | 0 |
<ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Windows 10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Setup code like screenshot:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/215033/14267492/6f6ccb54-fb03-11e5-854d-cf8fdfb9e678.png"><img src="https://cloud.githubusercontent.com/assets/215033/14267492/6f6ccb54-fb03-11e5-854d-cf8fdfb9e678.png" alt="hwhlc" style="max-width: 100%;"></a></li>
<li>Notice the unnecessary values in the intellisense</li>
</ol> | <p dir="auto">See attached screen shot, I have many snippets defined and they are the only entries that show up when I auto complete inside an object literal, which is weird imho:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/900690/11789872/1c19940e-a299-11e5-9ce8-d36a5289feb3.png"><img width="512" alt="screen shot 2015-12-14 at 19 29 35" src="https://cloud.githubusercontent.com/assets/900690/11789872/1c19940e-a299-11e5-9ce8-d36a5289feb3.png" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">Hi! I am using Atom on a Linux (Ubuntu) machine and I have spanish (es-ES) layout on my keyboard.<br>
When writting code everything is ok, but with commands, the Key Binding Resolver console is showing bas results.</p>
<p dir="auto">I suspect it is showing what the key combination would be for an (EN) keyboard layout. For example if I press (SHIFT) - , it show < symbol. But this is not correct in a spanish keyboard, we have ; there. So looks that it is taking waht is is suposed to be in that key, not what the system is actually passing.</p> | <p dir="auto">Regarding: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35671020" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/2600" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/2600/hovercard" href="https://github.com/atom/atom/issues/2600">atom/atom#2600</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kevinsawicki/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kevinsawicki">@kevinsawicki</a></p>
<p dir="auto">Compare US and (for example)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5219415/3278897/1a409fec-f3db-11e3-8818-37f183c2184e.png"><img src="https://cloud.githubusercontent.com/assets/5219415/3278897/1a409fec-f3db-11e3-8818-37f183c2184e.png" alt="800px-kb_us-international svg" style="max-width: 100%;"></a></p>
<p dir="auto">German keyboard layout<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5219415/3278895/1819be56-f3db-11e3-9fce-4082d5effb20.png"><img src="https://cloud.githubusercontent.com/assets/5219415/3278895/1819be56-f3db-11e3-9fce-4082d5effb20.png" alt="800px-kb_germany svg" style="max-width: 100%;"></a></p>
<p dir="auto">I think its easy to see why <a href="https://github.com/atom/atom-keymap/blob/b896a16c2b2d21a0a0b8404527879b50e0adcdaa/src/helpers.coffee#L12-L75">src/helpers.coffee</a> is destined to fail horribly.</p>
<p dir="auto">One example to demonstrate: I try to Toggle comments using <code class="notranslate">Ctrl-/</code>. For that I would have to press <code class="notranslate">Ctrl-Shift-7</code> as you can see above. It registers <code class="notranslate">Ctrl-?</code>.</p>
<p dir="auto">I don't know how, but your script somehow catches my <code class="notranslate">Ctrl-Shift-7</code> (which would be <code class="notranslate">shift+55</code>) and makes it an <code class="notranslate">?</code> (<code class="notranslate">191</code>) where it should make it an <code class="notranslate">&</code>.</p>
<p dir="auto"><strong>Edit:</strong> What is that; If I press <code class="notranslate">#</code> on my keyboard it gets resolved to <code class="notranslate">3</code> in the keybinding resolver, but inserted correctly into the text. Something is very very wrong here! <g-emoji class="g-emoji" alias="scream" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f631.png">😱</g-emoji></p> | 1 |
<p dir="auto">The weekly build with nightly wheels from numpy and pandas<br>
has failed. Check the logs for any updates that need to be<br>
made in matplotlib.<br>
<a href="https://github.com/matplotlib/matplotlib/actions/runs/2680570274">https://github.com/matplotlib/matplotlib/actions/runs/2680570274</a></p> | <p dir="auto"><a href="https://matplotlib.org/Matplotlib.pdf" rel="nofollow">https://matplotlib.org/Matplotlib.pdf</a> page 20 (bottom of the page)</p>
<blockquote>
<p dir="auto">To save plots using the non-interactive backends, use the <code class="notranslate">matplotlib.pyplot</code>.<br>
<code class="notranslate">savefig('filename')</code> method.</p>
</blockquote>
<p dir="auto">written twice.</p> | 0 |
<p dir="auto">Please add some document why we add following configuration to less. check <a href="https://github.com/zeit/next.js/issues/7957#issuecomment-563046084" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/7957/hovercard">https://github.com/zeit/next.js/issues/7957</a> for details, I also create a <a href="https://github.com/videni/with-ant-design-less">reproduction demo</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (isServer) {
const antStyles = /antd\/.*?\/style.*?/;
const origExternals = [...config.externals];
config.externals = [
(context, request, callback) => {
if (request.match(antStyles)) {
return callback();
};
if (typeof origExternals[0] === 'function') {
origExternals[0](context, request, callback);
} else {
callback()
}
},
...(typeof origExternals[0] === 'function' ? [] : origExternals),
];
config.module.rules.unshift({
test: antStyles,
use: 'null-loader',
});
}"><pre class="notranslate"><code class="notranslate">if (isServer) {
const antStyles = /antd\/.*?\/style.*?/;
const origExternals = [...config.externals];
config.externals = [
(context, request, callback) => {
if (request.match(antStyles)) {
return callback();
};
if (typeof origExternals[0] === 'function') {
origExternals[0](context, request, callback);
} else {
callback()
}
},
...(typeof origExternals[0] === 'function' ? [] : origExternals),
];
config.module.rules.unshift({
test: antStyles,
use: 'null-loader',
});
}
</code></pre></div>
<ol dir="auto">
<li>Why less files of <code class="notranslate">Antd</code> matching <code class="notranslate">/antd\/.*?\/style.*?/</code> are excluded from server webpack?</li>
<li>Why they are excluded by webpack externals option, exclude them again by null-loader?</li>
<li>Since they are excluded why they are still loaded? that is why I have following error.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Users/john/www/acme-admin-ui/node_modules/antd/lib/style/index.less:1
@import './themes/index';
^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:718:23)
at Module._extensions..js (internal/modules/cjs/loader.js:785:10)
at Object.require.extensions.<computed> [as .js] (/Users/john/www/acme-admin-ui/node_modules/ts-node/src/index.ts:529:44)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:681:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/Users/john/www/acme-admin-ui/node_modules/antd/lib/layout/style/layout/style/index.jsx:1:1)
at Module._compile (internal/modules/cjs/loader.js:774:30)
at Module._extensions..js (internal/modules/cjs/loader.js:785:10)
at Object.require.extensions.<computed> [as .js] (/Users/john/www/acme-admin-ui/node_modules/ts-node/src/index.ts:529:44)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:681:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/Users/john/www/acme-admin-ui/node_modules/@ant-design/pro-layout/lib/BasicLayout.js:10:1)"><pre class="notranslate"><code class="notranslate">/Users/john/www/acme-admin-ui/node_modules/antd/lib/style/index.less:1
@import './themes/index';
^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:718:23)
at Module._extensions..js (internal/modules/cjs/loader.js:785:10)
at Object.require.extensions.<computed> [as .js] (/Users/john/www/acme-admin-ui/node_modules/ts-node/src/index.ts:529:44)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:681:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/Users/john/www/acme-admin-ui/node_modules/antd/lib/layout/style/layout/style/index.jsx:1:1)
at Module._compile (internal/modules/cjs/loader.js:774:30)
at Module._extensions..js (internal/modules/cjs/loader.js:785:10)
at Object.require.extensions.<computed> [as .js] (/Users/john/www/acme-admin-ui/node_modules/ts-node/src/index.ts:529:44)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:681:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/Users/john/www/acme-admin-ui/node_modules/@ant-design/pro-layout/lib/BasicLayout.js:10:1)
</code></pre></div>
<p dir="auto">@ant-design/pro-layout/lib/BasicLayout.js</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("antd/lib/layout/style"); //@ant-design/pro-layout/lib/BasicLayout.js:10:1. this line requires layout style which is supposed to be excluded by webpack, `antd/lib/layout/style` matches the regular expression above, so "@import" should not be resolved.
var _layout = _interopRequireDefault(require("antd/lib/layout"));
require("./BasicLayout.less");"><pre class="notranslate"><code class="notranslate">"use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("antd/lib/layout/style"); //@ant-design/pro-layout/lib/BasicLayout.js:10:1. this line requires layout style which is supposed to be excluded by webpack, `antd/lib/layout/style` matches the regular expression above, so "@import" should not be resolved.
var _layout = _interopRequireDefault(require("antd/lib/layout"));
require("./BasicLayout.less");
</code></pre></div>
<p dir="auto">I did everything as the example, it doesn't work in my enviroment, I search several hours, still don't figure out.</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Asset files in <code class="notranslate">static</code> fold should be available on URL <code class="notranslate">http://hostname/static/filename</code>. For example, file <code class="notranslate">static/hello.txt</code> should be accessible by URL <code class="notranslate">http://hostname/static/hello.txt</code>.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Requesting static file gets a 404 page.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Create minimal next app with <code class="notranslate">next.js</code> v2.4.8</li>
<li>add one txt file <code class="notranslate">foo.txt</code> in <code class="notranslate">static</code> folder</li>
<li>Try to access this txt file in browser by <code class="notranslate">http://localhost/static/foo.txt</code>.</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">This bug happens in v2.4.8 but not in v2.4.7. It looks this bug is introduced by <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/vercel/next.js/commit/c03c86ee5e316ab3672101209f17677c5e6ca9f6/hovercard" href="https://github.com/vercel/next.js/commit/c03c86ee5e316ab3672101209f17677c5e6ca9f6"><tt>c03c86e</tt></a> . The build actually fails but it is still published as v2.4.8.</p>
<p dir="auto">For the time being, I have to lock version on 2.4.6 or 2.4.7.</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>2.4.8</td>
</tr>
<tr>
<td>node</td>
<td>v6.9.2</td>
</tr>
<tr>
<td>OS</td>
<td>MacOS 10.12.5 (16F73)</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 59</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">Trying the new "docker_login" task against RHEL 7.1 server (Docker 1.7.1). Error message says:</p>
<p dir="auto">"your version of docker-py is outdated: pip install docker-py>=1.1.0"</p>
<p dir="auto">This might be a comeback from issue on RHEL/CentOS from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="97050808" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/1792" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/1792/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/1792">ansible/ansible-modules-core#1792</a>, but I am not sure. In that case it was just a matter of figuring out the "docker-python" version that fit the docker engine at hand.</p>
<p dir="auto">Got a few production servers on RHEL 7.1 (Docker 1.7.1). No version of "docker-python" seems to fit.</p>
<p dir="auto">Querying repos for available versions:</p>
<p dir="auto">repoquery --show-duplicates docker-py*</p>
<p dir="auto">Results in:</p>
<p dir="auto">docker-python-0:0.7.1-37.el7.x86_64<br>
docker-python-0:1.0.0-21.el7.x86_64<br>
docker-python-0:1.0.0-22.el7.x86_64<br>
docker-python-0:1.0.0-35.el7.x86_64<br>
docker-python-0:1.0.0-53.el7.x86_64<br>
docker-python-0:1.4.0-108.el7.x86_64<br>
docker-python-0:1.4.0-115.el7.x86_64</p>
<p dir="auto">This is on RHEL 7.1 and Docker 1.7.1. I can try later on CentOS 7.2 and Docker 1.8.2.</p>
<p dir="auto">BTW, I can't use "pip" on my servers (at least now right now).</p> | <h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">Feature Idea</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">lineinfile module</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.2.0"><pre class="notranslate"><code class="notranslate">ansible 2.0.2.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">lineinfile will only replace the last occur of the regex. This doesn't provide a solution for cases where there are duplicate lines and you want to replace the line that is not the last occurrence.<br>
The feature suggestion is to add a COUNT option to indicate which occurrence of the regex should be considered a match ( rather than just the last one ). Default value for COUNT could be -1 to indicate last occurence by default so this update doesn't effect the current module behavior.<br>
Thank you for your consideration.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<h5 dir="auto">EXPECTED RESULTS</h5>
<h5 dir="auto">ACTUAL RESULTS</h5> | 0 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1014" rel="nofollow">http://projects.scipy.org/numpy/ticket/1014</a> on 2009-02-20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wesm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wesm">@wesm</a>, assigned to unknown.</em></p>
<p dir="auto">This error is very unintuitive for end-users, arrays formed from SQL query results can frequently end up as object arrays by accident.</p>
<p dir="auto">In [15]: arr = np.random.randn(100).astype(object)</p>
<h2 dir="auto">In [16]: np.log(arr)</h2>
<p dir="auto">AttributeError Traceback (most recent call last)</p>
<p dir="auto">H:\workspace\Python\src in ()</p>
<p dir="auto">AttributeError: log</p>
<p dir="auto">Same AttributeError is raised for other ufuncs</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1013" rel="nofollow">http://projects.scipy.org/numpy/ticket/1013</a> on 2009-02-20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wesm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wesm">@wesm</a>, assigned to unknown.</em></p>
<p dir="auto">This error is very unintuitive for end-users, arrays formed from SQL query results can frequently end up as object arrays by accident.</p>
<p dir="auto">In [15]: arr = np.random.randn(100).astype(object)</p>
<h2 dir="auto">In [16]: np.log(arr)</h2>
<p dir="auto">AttributeError Traceback (most recent call last)</p>
<p dir="auto">H:\workspace\Python\src in ()</p>
<p dir="auto">AttributeError: log</p>
<p dir="auto">Same AttributeError is raised for other ufuncs</p> | 1 |
<p dir="auto">Please answer these questions before submitting your issue. Thanks!<br>
开源不易,我们希望将精力放在完成新功能和解决有价值的问题上,为了让大家的配合更具有效率,请填写以下列出的全部问题</p>
<h3 dir="auto">Which version of Sharding-Jdbc do you using?(您使用的Sharding-Jdbc版本为?)</h3>
<p dir="auto">2.0.2</p>
<h3 dir="auto">Expected behavior (您预期的结果是)</h3>
<p dir="auto">ddl只在master执行</p>
<h3 dir="auto">Actual behavior (实际运行的结果是)</h3>
<p dir="auto">ddl在master & slave均有执行</p>
<h3 dir="auto">Steps to reproduce the behavior (可重现问题的操作步骤)</h3>
<p dir="auto">很简单的做法,比如你执行一个创建tables的脚本,检查发现master与slave均有创建。</p>
<h3 dir="auto">Please provide the reproduce example codes (such as github link),otherwise we will label the issue as Invalid and close it.(为了节省复现问题的时间,请务必提供可重现的代码,否则我们会将issue直接标记为invalid并关闭)</h3>
<p dir="auto">Code should based on <a href="https://github.com/shardingjdbc/sharding-jdbc-example">https://github.com/shardingjdbc/sharding-jdbc-example</a><br>
(代码请基于 <a href="https://github.com/shardingjdbc/sharding-jdbc-example%EF%BC%89">https://github.com/shardingjdbc/sharding-jdbc-example)</a></p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>For English only</strong>, other languages will not accept.</p>
<p dir="auto">Before report a bug, make sure you have:</p>
<ul dir="auto">
<li>Searched open and closed <a href="https://github.com/sharding-sphere/sharding-sphere/issues">GitHub issues</a>.</li>
<li>Read documentation: <a href="http://shardingsphere.io/document/current/en/overview/" rel="nofollow">ShardingSphere Doc</a>.</li>
</ul>
<p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br>
If no response <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">3.1.0</p>
<h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">Sharding-JDBC</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">no error</p>
<h3 dir="auto">Actual behavior</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR 3054 (HY000): Unknown exception: java.lang.Integer cannot be cast to java.lang.String"><pre class="notranslate"><code class="notranslate">ERROR 3054 (HY000): Unknown exception: java.lang.Integer cannot be cast to java.lang.String
</code></pre></div>
<h3 dir="auto">Reason analyze (If you can)</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<ol dir="auto">
<li>configure a string column A as sharding column.</li>
<li>select * from x where A='abc';</li>
<li>error</li>
</ol>
<p dir="auto">my preciseAlgorithmClass:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public class StringHash128By30Char implements PreciseShardingAlgorithm<String> {
private PartitionByString partitionByString = new PartitionByString(128, ":30");
@Override
public String doSharding(Collection<String> availableTargetNames, PreciseShardingValue<String> shardingValue) {
for (String availableTargetName : availableTargetNames) {
Integer calculate = partitionByString.calculate(shardingValue.getValue());
String suffix = String.format("_%03d", calculate);
if (availableTargetName.endsWith(suffix)) {
return availableTargetName;
}
}
throw new UnsupportedOperationException("sharding value:" + shardingValue);
}
}"><pre class="notranslate"><code class="notranslate">public class StringHash128By30Char implements PreciseShardingAlgorithm<String> {
private PartitionByString partitionByString = new PartitionByString(128, ":30");
@Override
public String doSharding(Collection<String> availableTargetNames, PreciseShardingValue<String> shardingValue) {
for (String availableTargetName : availableTargetNames) {
Integer calculate = partitionByString.calculate(shardingValue.getValue());
String suffix = String.format("_%03d", calculate);
if (availableTargetName.endsWith(suffix)) {
return availableTargetName;
}
}
throw new UnsupportedOperationException("sharding value:" + shardingValue);
}
}
</code></pre></div>
<p dir="auto">I debug and find shardingValue.value=-1</p>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> | 0 |
<p dir="auto">According to semver, only non-breaking changes are supposed to go into minor and patch version releases. With the release of 16.4, you have made breaking changes to <code class="notranslate">getDerivedStateFromProps</code>. Our entire codebase, running perfectly on 16.3.2 is a dumpster fire as soon as we raise that dependency to 16.4.</p>
<p dir="auto">The only thing in your CHANGELOG about this <em>breaking</em> change is:</p>
<blockquote>
<p dir="auto">Properly call getDerivedStateFromProps() regardless of the reason for re-rendering. (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/acdlite/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/acdlite">@acdlite</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="313087680" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/12600" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/12600/hovercard" href="https://github.com/facebook/react/pull/12600">#12600</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="322993706" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/12802" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/12802/hovercard" href="https://github.com/facebook/react/pull/12802">#12802</a>)</p>
</blockquote>
<p dir="auto">Please revert this change and save it for 17.0.0, or provide proper documentation to what this change actually entails so that its use can be adjusted by those who have already implemented <code class="notranslate">getDerivedStateFromProps</code>.</p> | <p dir="auto">Currently in React 16.8.6, we get this error when changing the state in a affected useEffect,<br>
<code class="notranslate">Invariant Violation: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.</code></p>
<p dir="auto">Now it can of course happen also in useEffects and it could be nice to have this message updated mention something about the "dangerous" combination of useStates and useEffects.</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: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<h1 dir="auto">Expected behavior</h1>
<h1 dir="auto">Actual behavior</h1>
<h1 dir="auto">Screenshots</h1> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">From what I've seen Keyboard Manager does not allow to remap key combination to a single key or the other way around. I found this strange. For example, I like to have left, down, up, right arrows mapped to <ctrl-h>, <ctrl-j>, <ctrl-k>, <ctrl-l> in vim style. I use AutoHotkey for this purpose, but I'd be nice to do this in PowerToys. Also, I am mapping CapsLock key to a key combination.</p>
<p dir="auto">My suggestion is to allow mapping anything into anything.</p>
<p dir="auto">Also, it'd be nice to have an option if you want previous function removed or just duplicated.</p> | 0 |
<h3 dir="auto">Website or app</h3>
<p dir="auto"><a href="https://github.com/BlakeMack/quiz-app-react">https://github.com/BlakeMack/quiz-app-react</a></p>
<h3 dir="auto">Repro steps</h3>
<p dir="auto">-As soon as the < App/> component is rendered (as soon as the application is loaded) I get the Element 3 error above, which stays consistent throughout every state change in my application<br>
start<br>
quizdata<br>
score<br>
isScored<br>
But I am not getting any console errors and the app is working as expected, but I have no access to my react components or any visibility of the state changes occurring within the app</p>
<h3 dir="auto">How often does this bug happen?</h3>
<p dir="auto">Every time</p>
<h3 dir="auto">DevTools package (automated)</h3>
<p dir="auto">react-devtools-extensions</p>
<h3 dir="auto">DevTools version (automated)</h3>
<p dir="auto">4.27.0-bd2ad89a4</p>
<h3 dir="auto">Error message (automated)</h3>
<p dir="auto">Element "3" not found</p>
<h3 dir="auto">Error call stack (automated)</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39558:15"><pre lang="text" class="notranslate"><code class="notranslate">at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39558:15
</code></pre></div>
<h3 dir="auto">Error component stack (automated)</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40933:3)
at Suspense
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39237:5)
at div
at InspectedElementErrorBoundaryWrapper (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39771:3)
at NativeStyleContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:42429:3)
at div
at div
at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35080:3)
at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37705:3)
at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44505:52)
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39237:5)
at div
at div
at ThemeProvider (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39409:3)
at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39439:5)
at div
at div
at div
at ThemeProvider (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39409:3)
at TimelineContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44686:3)
at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44115:3)
at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31940:3)
at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32584:3)
at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39834:3)
at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56039:3)"><pre lang="text" class="notranslate"><code class="notranslate">at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40933:3)
at Suspense
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39237:5)
at div
at InspectedElementErrorBoundaryWrapper (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39771:3)
at NativeStyleContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:42429:3)
at div
at div
at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35080:3)
at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37705:3)
at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44505:52)
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39237:5)
at div
at div
at ThemeProvider (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39409:3)
at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39439:5)
at div
at div
at div
at ThemeProvider (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39409:3)
at TimelineContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44686:3)
at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44115:3)
at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31940:3)
at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32584:3)
at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39834:3)
at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56039:3)
</code></pre></div>
<h3 dir="auto">GitHub query string (automated)</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="https://api.github.com/search/issues?q=Element not found in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react"><pre lang="text" class="notranslate"><code class="notranslate">https://api.github.com/search/issues?q=Element not found in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react
</code></pre></div> | <p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">feature</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></p>
<p dir="auto">React 16.3</p>
<p dir="auto">Just wanted to put an idea out here for feedback to see if this would be something useful. I've been using the new context API a bit and noticed myself repeating a pattern. A lot of my components look something like:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const MyContext = React.createContext('foo');
const MyComponent = ({ ownProp }) => (
<MyContext.Consumer>
{ myProp => <div>{ myProp }{ ownProp }</div>
</MyContext.Consumer>
);
export default MyComponent;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">MyContext</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createContext</span><span class="pl-kos">(</span><span class="pl-s">'foo'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-v">MyComponent</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> ownProp <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-v">MyContext</span><span class="pl-kos">.</span><span class="pl-v">Consumer</span><span class="pl-c1">></span>
<span class="pl-kos">{</span> <span class="pl-s1">myProp</span> <span class="pl-c1">=></span> <span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span><span class="pl-kos">{</span> <span class="pl-s1">myProp</span> <span class="pl-kos">}</span><span class="pl-kos">{</span> <span class="pl-s1">ownProp</span> <span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span>MyContext.Consumer>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">MyComponent</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">This got me to wondering. What if the Consumer could be exposed as a HOC?</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const MyContext = React.createContext('foo');
const MyComponent = ({ myProp, ownProp }) => (
<div>{ myProp }{ ownProp }</div>
);
export default MyContext.isConsumedBy(MyComponent);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">MyContext</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createContext</span><span class="pl-kos">(</span><span class="pl-s">'foo'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-v">MyComponent</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> myProp<span class="pl-kos">,</span> ownProp <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span><span class="pl-kos">{</span> <span class="pl-s1">myProp</span> <span class="pl-kos">}</span><span class="pl-kos">{</span> <span class="pl-s1">ownProp</span> <span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">MyContext</span><span class="pl-kos">.</span><span class="pl-en">isConsumedBy</span><span class="pl-kos">(</span><span class="pl-v">MyComponent</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">This is similar to <code class="notranslate">connect</code> from redux or <code class="notranslate">withRouter</code> from react-router in which the context value(s) are being injected by a HOC. I can write my own HOC to do this using the existing Consumer component from the Context API - but thought I'd put this out here for possible inclusion in the API itself.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const isConsumedBy = Wrapped => props => (
<MyContext.Consumer>
{ myProp => <Wrapped myProp={myProp} {...props} /> }
</MyContext.Consumer>
);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">isConsumedBy</span> <span class="pl-c1">=</span> <span class="pl-v">Wrapped</span> <span class="pl-c1">=></span> <span class="pl-s1">props</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-v">MyContext</span><span class="pl-kos">.</span><span class="pl-v">Consumer</span><span class="pl-c1">></span>
<span class="pl-kos">{</span> <span class="pl-s1">myProp</span> <span class="pl-c1">=></span> <span class="pl-c1"><</span><span class="pl-ent">Wrapped</span> <span class="pl-c1">myProp</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">myProp</span><span class="pl-kos">}</span> <span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">></span> <span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-v">MyContext</span><span class="pl-kos">.</span><span class="pl-v">Consumer</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Thoughts?</p> | 0 |
<p dir="auto">Hi, can i disable extension, just like atom?</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4654826/15665259/9618acc2-273c-11e6-80b6-ff5136410cd8.PNG"><img src="https://cloud.githubusercontent.com/assets/4654826/15665259/9618acc2-273c-11e6-80b6-ff5136410cd8.PNG" alt="file" style="max-width: 100%;"></a></p> | <p dir="auto">When looking for problems with intellisense (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132458036" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2850" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2850/hovercard" href="https://github.com/microsoft/vscode/issues/2850">#2850</a>) I wanted to clean up my config by disabling all extensions. However they can only be deleted.</p>
<p dir="auto">This would be a generally useful option in case extensions are causing problems.</p>
<h2 dir="auto"></h2>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/joaomoreno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/joaomoreno">@joaomoreno</a></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Figure out format to store extensions disablement in settings</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Move extension scanning to Renderer (with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/joaomoreno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/joaomoreno">@joaomoreno</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Ignore disabled extensions when scanning for them at runtime</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide UI for enabling / disabling an extension for a workspace or globally</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Telemetry</li>
</ul> | 1 |
<p dir="auto">This could be implemented as <code class="notranslate">dist1.kldiv(dist2)</code> (provided <code class="notranslate">type(dist1) == type(dist2)</code>) or something similar. KL divergence is a very useful diagnostic for policy gradient algorithms in general and some have a KL divergence penalty as part of their objective function (<a href="https://arxiv.org/pdf/1707.02286.pdf" rel="nofollow">e.g.</a>), so I think this would be useful to have.</p>
<p dir="auto"><del>Also, the documentation mentions an <a href="http://pytorch.org/docs/master/distributions.html#torch.distributions.Distribution.entropy" rel="nofollow">entropy()</a> method but doing dir(torch.distributions.Distribution) on my installation shows no such method. Is that correct?</del></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>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">When tensors are on cpu, following program acts correctly.</p>
<p dir="auto"># adding 1.0 to a[0] twice<br>
DEVICE = torch.device("cpu")<br>
a = torch.zeros((3), device=DEVICE)<br>
a.index_put_([torch.tensor([0, 0], device=DEVICE)], torch.tensor(1., device=DEVICE), accumulate=True)</p>
<blockquote>
<p dir="auto">tensor([2., 0., 0.])</p>
</blockquote>
<p dir="auto">But on gpu,<br>
DEVICE = torch.device("cuda:0")<br>
a = torch.zeros((3), device=DEVICE)<br>
a.index_put_([torch.tensor([0, 0], device=DEVICE)], torch.tensor(1., device=DEVICE), accumulate=True)</p>
<blockquote>
<p dir="auto">RuntimeError: linearIndex.numel()<em>sliceSize</em>nElemBefore == value.numel() INTERNAL ASSERT FAILED at /opt/conda/conda-bld/pytorch_1587428398394/work/aten/src/ATen/native/cuda/Indexing.cu:220, please report a bug to PyTorch. number of flattened indices did not match number of elements in the value tensor21</p>
</blockquote>
<p dir="auto">It seems adding single value torch.tensor(1.) at multiple indices torch.tensor([0, 0]) is supperted on cpu, but not on gpu.<br>
I could add multiple values torch.tensor([1., 1.]) at multiple indices torch.tensor([0, 0]) bath on cpu and on gpu.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">PyTorch version: 1.5.0<br>
Is debug build: No<br>
CUDA used to build PyTorch: 10.1</p>
<p dir="auto">OS: Ubuntu 18.04.4 LTS<br>
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0<br>
CMake version: version 3.10.2</p>
<p dir="auto">Python version: 3.7<br>
Is CUDA available: Yes<br>
CUDA runtime version: Could not collect<br>
GPU models and configuration: GPU 0: GeForce GTX 1080<br>
Nvidia driver version: 418.87.00<br>
cuDNN version: Could not collect</p>
<p dir="auto">Versions of relevant libraries:<br>
[pip3] numpy==1.18.4<br>
[pip3] torch==1.5.0<br>
[conda] blas 1.0 mkl<br>
[conda] cudatoolkit 10.1.243 h6bb024c_0<br>
[conda] mkl 2020.0 166<br>
[conda] mkl-service 2.3.0 py37he904b0f_0<br>
[conda] mkl_fft 1.0.15 py37ha843d7b_0<br>
[conda] mkl_random 1.1.0 py37hd6b4f25_0<br>
[conda] numpy 1.16.6 pypi_0 pypi<br>
[conda] numpydoc 0.9.2 py_0<br>
[conda] pytorch 1.5.0 py3.7_cuda10.1.243_cudnn7.6.3_0 pytorch<br>
[conda] torchvision 0.6.0 py37_cu101 pytorch</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mruberry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mruberry">@mruberry</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kurtamohler/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kurtamohler">@kurtamohler</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/brianjo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/brianjo">@brianjo</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jlin27/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jlin27">@jlin27</a></p> | 0 |
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.3.0 (latest released)</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">Lets say we have series of tasks, currently we executing task B , if the scheduler process gets killed, then worker thats running task B continues to run and we start the scheduler again and task B was still running because of worker is not killed, then task B would be started for second time with attempt 2, not considering the earlier process.</p>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">when scheduler is killed it should kill worker process or scheduler is restarted it will should able to link back.</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">step1. create task that run for long time. here is example with bashoperator.<br>
CUSTOM_JOB = BashOperator(<br>
task_id='CUSTOM_JOB',<br>
bash_command=' for (( i= 1; ; i++)); do echo "Pres CTRL+C to stop... for $i"; sleep 1; if [ $i -gt 200 ]; then exit 0; fi; done',<br>
)</p>
<p dir="auto">step 2. make sure airflow scheduler is runing and trigger the dag.</p>
<p dir="auto">step 3. kill the airflow scheduler process in mid way of task execution</p>
<p dir="auto">step 4: start the airflow scheduler back again, now you will be see two instance of task running parallely.</p>
<p dir="auto">it will marked as complete once the task instance scheduled by previous scheduler compeletes.</p>
<p dir="auto">[2022-05-05, 13:50:13 UTC] {subprocess.py:92} INFO - Pres CTRL+C to stop... for 164<br>
[2022-05-05, 13:50:14 UTC] {subprocess.py:92} INFO - Pres CTRL+C to stop... for 165<br>
[2022-05-05, 13:50:14 UTC] {local_task_job.py:220} WARNING - <strong>State of this instance has been externally set to success. Terminating instance.</strong><br>
[2022-05-05, 13:50:14 UTC] {process_utils.py:125} INFO - Sending Signals.SIGTERM to group 9365. PIDs of all processes in the group: [9396, 30772, 9365]</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">redhat 7.9</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Other</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/apache/airflow/blob/7490c6b8109adcc5aec517fc8d39cfc31912d92f/airflow/www/yarn.lock#L4208-L4211">airflow/airflow/www/yarn.lock</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 4208 to 4211
in
<a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/7490c6b8109adcc5aec517fc8d39cfc31912d92f">7490c6b</a>
</p>
</div>
<div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
<table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">
<tbody><tr class="border-0">
<td id="L4208" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="4208"></td>
<td id="LC4208" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-ent">jquery@>=1.7, jquery@>=3.4.0, "jquery@^1.8.3 || ^2.0 || ^3.0"</span>: </td>
</tr>
<tr class="border-0">
<td id="L4209" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="4209"></td>
<td id="LC4209" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">version "3.4.1"</span> </td>
</tr>
<tr class="border-0">
<td id="L4210" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="4210"></td>
<td id="LC4210" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2"</span> </td>
</tr>
<tr class="border-0">
<td id="L4211" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="4211"></td>
<td id="LC4211" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">integrity sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw==</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto"><a title="CVE-2020-11023" data-hovercard-type="advisory" data-hovercard-url="/advisories/GHSA-jpcq-cgw6-v4j6/hovercard" href="https://github.com/advisories/GHSA-jpcq-cgw6-v4j6">CVE-2020-11023</a> <a title="CVE-2020-11022" data-hovercard-type="advisory" data-hovercard-url="/advisories/GHSA-gxr4-xjj5-5px2/hovercard" href="https://github.com/advisories/GHSA-gxr4-xjj5-5px2">CVE-2020-11022</a></p>
<p dir="auto">Recommended upgrade version:3.5.0</p> | 0 |
<p dir="auto">Hi! I'm trying to use ThreeJS and the VRMLLoader to display vrml files generated by Catia. I just duplicated your example and tried to load my file. Console shows this message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: angles is undefined VRMLLoader.js:125"><pre class="notranslate"><code class="notranslate">TypeError: angles is undefined VRMLLoader.js:125
</code></pre></div>
<p dir="auto"><a href="https://gist.github.com/a5e/717b699636555de77103">here is the file</a></p>
<p dir="auto">Is it because the loader is not fully implemented or because of the exported file ?</p>
<p dir="auto">EDIT: I also have the following notices and I'm not sure if it is due to browsers not supporting PVRTC or 3js implementation ?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""THREE.WebGLRenderer: PVRTC compressed textures not supported."
"THREE.WebGLRenderer: min max blend equations not supported.""><pre class="notranslate"><code class="notranslate">"THREE.WebGLRenderer: PVRTC compressed textures not supported."
"THREE.WebGLRenderer: min max blend equations not supported."
</code></pre></div> | <p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/mrdoob/three.js/blob/97cab20e90ab6188b9bc10af13d5be406f0b8854/examples/js/loaders/TDSLoader.js#L53-L60">three.js/examples/js/loaders/TDSLoader.js</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 53 to 60
in
<a data-pjax="true" class="commit-tease-sha" href="/mrdoob/three.js/commit/97cab20e90ab6188b9bc10af13d5be406f0b8854">97cab20</a>
</p>
</div>
<div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
<table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">
<tbody><tr class="border-0">
<td id="L53" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="53"></td>
<td id="LC53" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">var</span> <span class="pl-s1">loader</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">FileLoader</span><span class="pl-kos">(</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">manager</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L54" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="54"></td>
<td id="LC54" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L55" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="55"></td>
<td id="LC55" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">loader</span><span class="pl-kos">.</span><span class="pl-en">setResponseType</span><span class="pl-kos">(</span> <span class="pl-s">'arraybuffer'</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L56" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="56"></td>
<td id="LC56" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L57" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="57"></td>
<td id="LC57" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">loader</span><span class="pl-kos">.</span><span class="pl-en">setPath</span><span class="pl-kos">(</span> <span class="pl-s1">path</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L58" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="58"></td>
<td id="LC58" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L59" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="59"></td>
<td id="LC59" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">loader</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">(</span> <span class="pl-s1">url</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span> <span class="pl-s1">data</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> </td>
</tr>
<tr class="border-0">
<td id="L60" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="60"></td>
<td id="LC60" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cnspaha/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cnspaha">@cnspaha</a> I don't think you should <code class="notranslate">loader.setPath( path );</code> at L57, it result in the loader duplicating the base path when trying to load the mesh file.</p>
<p dir="auto">(i.e. loading 'file:///some/path/mesh.3ds' result in the loader trying to load 'file:///some/path/file:///some/path/mesh.3ds' )</p> | 0 |
<p dir="auto">In console, these are the error messages displayed. Files downloaded from bootstrap site 09/17/2013.</p>
<p dir="auto">CSS3111: <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/font-face/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/font-face">@font-face</a> encountered unknown error.<br>
glyphicons-halflings-regular.eot<br>
CSS3112: <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/font-face/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/font-face">@font-face</a> failed WOFF integrity check.<br>
glyphicons-halflings-regular.woff<br>
CSS3111: <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/font-face/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/font-face">@font-face</a> encountered unknown error.<br>
glyphicons-halflings-regular.ttf</p> | <p dir="auto">When using a customized version of Bootstrap 3.0 the Glyph icons don't work. The font file sizes differ from the "normal" version.</p> | 1 |
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p>
<p dir="auto">func.max and func.min do not convert result object to correct datetime object.</p>
<p dir="auto">---<a href="testcase.py">testcase.py</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import sqlalchemy as sqa
import datetime
db = sqa.create_engine("sqlite://")
metadata = sqa.BoundMetaData(db)
#metadata.engine.echo = True # debug output
events_table = sqa.Table('events', metadata,
sqa.Column('id', sqa.Integer, primary_key=True),
sqa.Column('name', sqa.String(255)),
sqa.Column('datetime', sqa.DateTime),
)
events_table.create()
i = events_table.insert()
name = "just-a-name"
i.execute(name = name, datetime = datetime.datetime(2007, 7, 26, 10, 23, 44))
i.execute(name = name, datetime = datetime.datetime(2007, 7, 26, 12, 43, 44))
i.execute(name = name, datetime = datetime.datetime(2007, 7, 26, 17, 23, 34))
i.execute(name = name, datetime = datetime.datetime(2007, 7, 26, 22, 54, 23))
i.execute(name = name, datetime = datetime.datetime(2007, 7, 26, 23, 00, 18))
date = "2007-07-26"
test1 = sqa.select(
[events_table.c.datetime](events_table.c.datetime),
(sqa.func.date(events_table.c.datetime) == date) &
(events_table.c.name == name)
).execute().fetchone()
print "--"
print test1
print type(test1)
print type(test1[0](0))
print "-"
test2 = sqa.select(
[sqa.func.max(events_table.c.datetime)](sqa.func.max(events_table.c.datetime)),
(sqa.func.date(events_table.c.datetime) == date) &
(events_table.c.name == name)
).execute().fetchone()
print test2
print type(test2)
print type(test2[0](0))"><pre class="notranslate"><code class="notranslate">import sqlalchemy as sqa
import datetime
db = sqa.create_engine("sqlite://")
metadata = sqa.BoundMetaData(db)
#metadata.engine.echo = True # debug output
events_table = sqa.Table('events', metadata,
sqa.Column('id', sqa.Integer, primary_key=True),
sqa.Column('name', sqa.String(255)),
sqa.Column('datetime', sqa.DateTime),
)
events_table.create()
i = events_table.insert()
name = "just-a-name"
i.execute(name = name, datetime = datetime.datetime(2007, 7, 26, 10, 23, 44))
i.execute(name = name, datetime = datetime.datetime(2007, 7, 26, 12, 43, 44))
i.execute(name = name, datetime = datetime.datetime(2007, 7, 26, 17, 23, 34))
i.execute(name = name, datetime = datetime.datetime(2007, 7, 26, 22, 54, 23))
i.execute(name = name, datetime = datetime.datetime(2007, 7, 26, 23, 00, 18))
date = "2007-07-26"
test1 = sqa.select(
[events_table.c.datetime](events_table.c.datetime),
(sqa.func.date(events_table.c.datetime) == date) &
(events_table.c.name == name)
).execute().fetchone()
print "--"
print test1
print type(test1)
print type(test1[0](0))
print "-"
test2 = sqa.select(
[sqa.func.max(events_table.c.datetime)](sqa.func.max(events_table.c.datetime)),
(sqa.func.date(events_table.c.datetime) == date) &
(events_table.c.name == name)
).execute().fetchone()
print test2
print type(test2)
print type(test2[0](0))
</code></pre></div>
<hr>
<p dir="auto">---<a href="testcase.py">output</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(datetime.datetime(2007, 7, 26, 10, 23, 44),)
<class 'sqlalchemy.engine.base.RowProxy'>
<type 'datetime.datetime'>
-
(u'2007-07-26 23:00:18.0',)
<class 'sqlalchemy.engine.base.RowProxy'>
<type 'unicode'>"><pre class="notranslate"><code class="notranslate">(datetime.datetime(2007, 7, 26, 10, 23, 44),)
<class 'sqlalchemy.engine.base.RowProxy'>
<type 'datetime.datetime'>
-
(u'2007-07-26 23:00:18.0',)
<class 'sqlalchemy.engine.base.RowProxy'>
<type 'unicode'>
</code></pre></div>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/707/testcase.py">testcase.py</a></p> | <p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p>
<p dir="auto">As posted here: <a href="http://groups.google.com/group/sqlalchemy/browse_thread/thread/d4c0f163f1f414e4" rel="nofollow">http://groups.google.com/group/sqlalchemy/browse_thread/thread/d4c0f163f1f414e4</a></p>
<p dir="auto">When you do a multiple-row insert, such as:</p>
<p dir="auto"><code class="notranslate">users.insert().execute(</code><br>
<code class="notranslate">{'user_id':6, 'user_name':'jack', 'password':'asdfasdf'},</code><br>
<code class="notranslate">{'user_id':7, 'user_name':'ed'},</code><br>
<code class="notranslate">{'user_id':8, 'user_name':'scott', 'password':'fadsfads'},</code><br>
<code class="notranslate">{'user_id':9, 'user_name':'bob'},</code><br>
<code class="notranslate">)</code></p>
<p dir="auto">...the 'password' field for the second and fourth rows, rather than<br>
being set to None or raising an error, take the first row's password<br>
value.<br>
While it is somewhat slack not to provide all the columns for each<br>
row, SA shouldn't really duplicate the first row's values, nei?</p>
<hr>
<p dir="auto">thats actually a huge pain in the butt to fix because there is an<br>
implicit behavior behind:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" `users.insert().execute({'a':1, 'b':2, 'c'3}, {<dict2>}, {<dict3>}, ...) `"><pre class="notranslate"><code class="notranslate"> `users.insert().execute({'a':1, 'b':2, 'c'3}, {<dict2>}, {<dict3>}, ...) `
</code></pre></div>
<p dir="auto">in that its the same as saying:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" `users.insert(values={'a':1, 'b':2, 'c'3}).execute({'a':1, 'b':2, 'c'3}, {<dict2>}, {<dict3>}, ...) `"><pre class="notranslate"><code class="notranslate"> `users.insert(values={'a':1, 'b':2, 'c'3}).execute({'a':1, 'b':2, 'c'3}, {<dict2>}, {<dict3>}, ...) `
</code></pre></div>
<p dir="auto">i.e. the statement is compiled against the parameters in the first<br>
element of execute arguments. so they take place for subsequent<br>
execute arguments that dont override them.</p>
<p dir="auto">awareness would have to be added to ClauseElement/ANSICompiler to<br>
differentiate between compiled-in parameters and compiled-in<br>
parameters that came from execute params, and compiled.get_params()<br>
would have to check the incoming params against the original execute-<br>
params and raise an error if keys dont match.</p>
<hr>
<ul dir="auto">
<li>Mel C</li>
</ul> | 0 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
I have created the file <code class="notranslate">.babelrc</code> in the root of my React native project and install all related node_modules related to that. Go to definition with VSC with any of these paths not working. I have provided example below in the file with the supported attached png.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { getMediaAll } from 'actions/categories';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">getMediaAll</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'actions/categories'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong><br>
When I import any variable with the file path defined with the below parameters it should to go the definition with VSC.</p>
<p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong></p>
<ul dir="auto">
<li>Filename: <code class="notranslate">.babelrc</code></li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"plugins": [
[
"module-resolver",
{
"root": ["./src"],
"extensions": [".js", ".ios.js", ".android.js"],
"alias": {
"assets": "./src/assets",
"components": "./src/components",
"config": "./src/config",
"navigation": "./src/navigation",
"atoms": "./src/atoms",
"actions": "./src/redux/actions",
"reducers": "./src/redux/reducers",
"screens": "./src/screens",
"services": "./src/services",
"theme": "./src/theme"
}
}
]
]
}"><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">"module-resolver"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">"root"</span>: <span class="pl-kos">[</span><span class="pl-s">"./src"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"extensions"</span>: <span class="pl-kos">[</span><span class="pl-s">".js"</span><span class="pl-kos">,</span> <span class="pl-s">".ios.js"</span><span class="pl-kos">,</span> <span class="pl-s">".android.js"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"alias"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"assets"</span>: <span class="pl-s">"./src/assets"</span><span class="pl-kos">,</span>
<span class="pl-s">"components"</span>: <span class="pl-s">"./src/components"</span><span class="pl-kos">,</span>
<span class="pl-s">"config"</span>: <span class="pl-s">"./src/config"</span><span class="pl-kos">,</span>
<span class="pl-s">"navigation"</span>: <span class="pl-s">"./src/navigation"</span><span class="pl-kos">,</span>
<span class="pl-s">"atoms"</span>: <span class="pl-s">"./src/atoms"</span><span class="pl-kos">,</span>
<span class="pl-s">"actions"</span>: <span class="pl-s">"./src/redux/actions"</span><span class="pl-kos">,</span>
<span class="pl-s">"reducers"</span>: <span class="pl-s">"./src/redux/reducers"</span><span class="pl-kos">,</span>
<span class="pl-s">"screens"</span>: <span class="pl-s">"./src/screens"</span><span class="pl-kos">,</span>
<span class="pl-s">"services"</span>: <span class="pl-s">"./src/services"</span><span class="pl-kos">,</span>
<span class="pl-s">"theme"</span>: <span class="pl-s">"./src/theme"</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>Environment</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" System:
OS: macOS 10.15.1
Binaries:
Node: 10.16.3 - /usr/local/bin/node
npm: 6.11.3 - ~/.npm-packages/bin/npm
npmPackages:
babel: ^6.23.0 => 6.23.0
babel-plugin-module-alias: ^1.6.0 => 1.6.0
babel-plugin-module-resolver: ^3.2.0 => 3.2.0
babel-plugin-transform-remove-console: 6.9.4 => 6.9.4
babel-preset-expo: ^8.0.0 => 8.0.0
react-native: https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz => 0.61.4 "><pre class="notranslate"><code class="notranslate"> System:
OS: macOS 10.15.1
Binaries:
Node: 10.16.3 - /usr/local/bin/node
npm: 6.11.3 - ~/.npm-packages/bin/npm
npmPackages:
babel: ^6.23.0 => 6.23.0
babel-plugin-module-alias: ^1.6.0 => 1.6.0
babel-plugin-module-resolver: ^3.2.0 => 3.2.0
babel-plugin-transform-remove-console: 6.9.4 => 6.9.4
babel-preset-expo: ^8.0.0 => 8.0.0
react-native: https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz => 0.61.4
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5234185/75135928-1103b800-5709-11ea-996b-c40dfea3bae4.png"><img src="https://user-images.githubusercontent.com/5234185/75135928-1103b800-5709-11ea-996b-c40dfea3bae4.png" alt="Github-Babelrc" style="max-width: 100%;"></a></p> | <p dir="auto">I deconstructed my Create-React-App with Webpack 4 & Babel 7. The first time I ran the command "npm run build" it worked and created a new build folder. Now after the first time I am trying to run the command again and I am getting the error blow.</p>
<p dir="auto">ERROR in ./src/index.js Module build failed (from ./node_modules/babel-loader/lib/index.js):</p>
<p dir="auto">I searched for the solution but all I could find was babel versions discrepancy in Package.json file, something that I don't seem to have.</p> | 0 |
<ul dir="auto">
<li>Electron version: 1.3.0</li>
<li>Operating system: OS X 10.11.6</li>
</ul>
<p dir="auto"><a href="https://gist.github.com/schmod/654df9ae9f37f82848f8891359bf5e60">OS X Crash report</a></p>
<p dir="auto">Electron hard-crashes when running the following snippet:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="webContents.isDevToolsOpened(); // true
var wsd = "/Users/schmod/path/to/a/directory";
try {
webContents.removeWorkSpace( wsd );
} catch (e) {}
webContents.addWorkSpace( wsd );"><pre class="notranslate"><code class="notranslate">webContents.isDevToolsOpened(); // true
var wsd = "/Users/schmod/path/to/a/directory";
try {
webContents.removeWorkSpace( wsd );
} catch (e) {}
webContents.addWorkSpace( wsd );
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1102667/17144299/443d130c-5324-11e6-995d-bd9fd4179997.png"><img src="https://cloud.githubusercontent.com/assets/1102667/17144299/443d130c-5324-11e6-995d-bd9fd4179997.png" alt="screenshot 2016-07-25 11 27 01" style="max-width: 100%;"></a></p>
<p dir="auto">Adding a folder to the workspace via the UI also causes a crash.</p>
<p dir="auto">See also: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="167395222" data-permission-text="Title is private" data-url="https://github.com/s-a/iron-node/issues/114" data-hovercard-type="issue" data-hovercard-url="/s-a/iron-node/issues/114/hovercard" href="https://github.com/s-a/iron-node/issues/114">s-a/iron-node#114</a></p> | <ul dir="auto">
<li>Electron version: 1.3.0</li>
<li>Operating system: Kubuntu 16.04</li>
</ul> | 1 |
<p dir="auto">Simple steps to reproduce:<br>
Run this script:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function test(a: number, b: number): number{
return a + b;
}
test(, 5);"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s1">a</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">b</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span>: <span class="pl-smi">number</span><span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-s1">b</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">,</span> <span class="pl-c1">5</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Then, after run, we receive empty error.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: "><pre class="notranslate"><code class="notranslate">error:
</code></pre></div> | <p dir="auto">With the following code I get almost no output.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {
serve,
} from "https://deno.land/std/http/server.ts";
const s = serve({
port: 8000
});
for await (const req of s) {
let lolomo:
}"><pre class="notranslate"><code class="notranslate">import {
serve,
} from "https://deno.land/std/http/server.ts";
const s = serve({
port: 8000
});
for await (const req of s) {
let lolomo:
}
</code></pre></div>
<p dir="auto">Here is me running the script</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> deno run -A index.ts
error: "><pre class="notranslate"><code class="notranslate">> deno run -A index.ts
error:
</code></pre></div> | 1 |
<p dir="auto">INFO: this is related to getbootstrap.com main site</p>
<p dir="auto">Please make top menu fixed.<br>
I belive that many people use it as reference and read styling, components and other there, so when you need fast swwitch you need to scroll to top of page for change :)</p>
<p dir="auto">NHF :) <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji></p> | <p dir="auto">Please make de docs navbar fixed again. I use it extensively and it was very nice to quickly change sections in the documentation. Now I have to scroll, and scroll and scroll....</p> | 1 |
<p dir="auto">THE CODE IS CORRECT BUT IT WONT ACCEPT IT AND ALLOW ME TO PASS, MULTIPLE USERS IN CHAT ARE HAVING THIS ISSUE</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<script>
$(document).ready(function() {
$("#target1").css("color", "red");
});
</script>
<!-- Only change code above this line. -->
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>"><pre class="notranslate"><code class="notranslate"><script>
$(document).ready(function() {
$("#target1").css("color", "red");
});
</script>
<!-- Only change code above this line. -->
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
</code></pre></div> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-hex-code-for-specific-colors?solution=%3Cstyle%3E%0A%20%20body%20%7B%0A%20%20%20%20background-color%3A%20%23000000%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A" rel="nofollow">Waypoint: Use Hex Code for Specific Colors</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My answer is correct but wrongly flagged as erroneous.<br>
My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<style>
body {
background-color: #000000;
}
</style>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-ent">body</span> {
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>000000</span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span></pre></div> | 1 |
<p dir="auto">code:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub fn str_join(strs: &[AsRef<str>], join: str) -> String {
strs.iter().fold(String::new(), |mut acc, s| {
if !acc.is_empty() { acc.push_str(join); }
acc.push_str(s);
acc
});
}
fn main() {}"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">str_join</span><span class="pl-kos">(</span><span class="pl-s1">strs</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-smi">AsRef</span><span class="pl-kos"><</span><span class="pl-smi">str</span><span class="pl-kos">></span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">join</span><span class="pl-kos">:</span> <span class="pl-smi">str</span><span class="pl-kos">)</span> -> <span class="pl-smi">String</span> <span class="pl-kos">{</span>
strs<span class="pl-kos">.</span><span class="pl-en">iter</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">fold</span><span class="pl-kos">(</span><span class="pl-smi">String</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-k">mut</span> acc<span class="pl-kos">,</span> s| <span class="pl-kos">{</span>
<span class="pl-k">if</span> !acc<span class="pl-kos">.</span><span class="pl-en">is_empty</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> acc<span class="pl-kos">.</span><span class="pl-en">push_str</span><span class="pl-kos">(</span>join<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
acc<span class="pl-kos">.</span><span class="pl-en">push_str</span><span class="pl-kos">(</span>s<span class="pl-kos">)</span><span class="pl-kos">;</span>
acc
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<anon>:2:10: 2:16 error: no method named `iter` found for type `&[core::convert::AsRef<str>]` in the current scope
<anon>:2 strs.iter().fold(String::new(), |mut acc, s| {
^~~~~~
<anon>:2:10: 2:16 note: the method `iter` exists but the following trait bounds were not satisfied: `core::convert::AsRef<str> : core::marker::Sized`, `core::convert::AsRef<str> : core::marker::Sized`
<anon>:1:38: 1:42 error: the trait `core::marker::Sized` is not implemented for the type `str` [E0277]
<anon>:1 pub fn str_join(strs: &[AsRef<str>], join: str) -> String {
^~~~
<anon>:1:38: 1:42 note: `str` does not have a constant size known at compile-time
<anon>:1 pub fn str_join(strs: &[AsRef<str>], join: str) -> String {
^~~~
<anon>:3:13: 3:27 error: the type of this value must be known in this context
<anon>:3 if !acc.is_empty() { acc.push_str(join); }
^~~~~~~~~~~~~~
note: in expansion of closure expansion
<anon>:2:37: 6:6 note: expansion site
error: aborting due to 3 previous errors
playpen: application terminated with error code 101"><pre class="notranslate"><code class="notranslate"><anon>:2:10: 2:16 error: no method named `iter` found for type `&[core::convert::AsRef<str>]` in the current scope
<anon>:2 strs.iter().fold(String::new(), |mut acc, s| {
^~~~~~
<anon>:2:10: 2:16 note: the method `iter` exists but the following trait bounds were not satisfied: `core::convert::AsRef<str> : core::marker::Sized`, `core::convert::AsRef<str> : core::marker::Sized`
<anon>:1:38: 1:42 error: the trait `core::marker::Sized` is not implemented for the type `str` [E0277]
<anon>:1 pub fn str_join(strs: &[AsRef<str>], join: str) -> String {
^~~~
<anon>:1:38: 1:42 note: `str` does not have a constant size known at compile-time
<anon>:1 pub fn str_join(strs: &[AsRef<str>], join: str) -> String {
^~~~
<anon>:3:13: 3:27 error: the type of this value must be known in this context
<anon>:3 if !acc.is_empty() { acc.push_str(join); }
^~~~~~~~~~~~~~
note: in expansion of closure expansion
<anon>:2:37: 6:6 note: expansion site
error: aborting due to 3 previous errors
playpen: application terminated with error code 101
</code></pre></div>
<p dir="auto">in particular, the 'not satisifed' trait bounds has two duplicated results:</p>
<blockquote>
<p dir="auto">note: the method <code class="notranslate">iter</code> exists but the following trait bounds were not satisfied: <code class="notranslate">core::convert::AsRef<str> : core::marker::Sized</code>, `core::convert::AsRef : core::marker::Sized``</p>
</blockquote>
<p dir="auto">this currently happens on the beta and nightly release channels (stable doesn't display this message at all)</p>
<p dir="auto"><a href="http://is.gd/iEs3Nq" rel="nofollow">playpen link</a></p> | <p dir="auto">At present, fd_set is defined as libnative::io::c::fd_set, on both Windows and Linux. However, I can't use this, as it's not made "pub mod c" in <a href="https://github.com/rust-lang/rust/blob/8bb34a3146e6ba4bc7902a85de90cf4f8064ace0/src/libnative/io/mod.rs">mod.rs</a>.</p>
<p dir="auto">I'm writing a binding from a C network-related library (libircclient) to Rust, and would like fd_set to be available without having to duplicate effort.</p> | 0 |
<p dir="auto">I have a simple panel with four button groups in a fluid grid system, but they keep detaching one from another when I try to scale down the parent. Is there any way of fixing this?<br>
EDIT: Basically what I want is the groups to stay together. <del>And also there is another bug with this, that is if I have a button with icon only, it gets smaller that the button with text and/or icon. In the fiddle there is no such a bug i.e. it doesn't show up IDK why. Notice on the picture my quick little dirty way of fixing it with a dot after the OK glyph. Here is a picture of that: <a href="http://i.imgur.com/MelvudM.png" rel="nofollow">http://i.imgur.com/MelvudM.png</a></del></p>
<p dir="auto">Fiddle: <a href="http://jsfiddle.net/Jy7e6/3/" rel="nofollow">http://jsfiddle.net/Jy7e6/3/</a></p> | <p dir="auto">I am not sure if it should be fixed or not. If I use grouped action buttons in a <code class="notranslate"><td></code> without specified width it will look like in example above.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/bc8ce0008533168cd6308e78ab077468e361698ea57d6050ac5dc98f95adf8bd/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3538393835312f3939343231352f32363032643036612d303961392d313165332d383939622d3461303262666635363761392e706e67"><img src="https://camo.githubusercontent.com/bc8ce0008533168cd6308e78ab077468e361698ea57d6050ac5dc98f95adf8bd/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3538393835312f3939343231352f32363032643036612d303961392d313165332d383939622d3461303262666635363761392e706e67" alt="untitled" data-canonical-src="https://f.cloud.github.com/assets/589851/994215/2602d06a-09a9-11e3-899b-4a02bff567a9.png" style="max-width: 100%;"></a></p>
<p dir="auto">Tried to apply <code class="notranslate">white-space: nowrap</code> or removing a space between <code class="notranslate"><button></code> tags but it didn't help.</p> | 1 |
<h3 dir="auto">System Info</h3>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version: 4.25.1</li>
<li>Platform: Linux-5.15.0-58-generic-x86_64-with-glibc2.35</li>
<li>Python version: 3.9.13</li>
<li>Huggingface_hub version: 0.10.0</li>
<li>PyTorch version (GPU?): 1.12.1.post201 (False)</li>
<li>Tensorflow version (GPU?): not installed (NA)</li>
<li>Flax version (CPU?/GPU?/TPU?): 0.6.3 (cpu)</li>
<li>Jax version: 0.4.1</li>
<li>JaxLib version: 0.4.1</li>
<li>Using GPU in script?: No</li>
<li>Using distributed or parallel set-up in script?: No</li>
</ul>
<h3 dir="auto">Who can help?</h3>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rooa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rooa">@rooa</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patrickvonplaten/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patrickvonplaten">@patrickvonplaten</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patil-suraj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patil-suraj">@patil-suraj</a></p>
<h3 dir="auto">Information</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The official example scripts</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own modified scripts</li>
</ul>
<h3 dir="auto">Tasks</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own task or dataset (give details below)</li>
</ul>
<h3 dir="auto">Reproduction</h3>
<p dir="auto">The CodeGen tokenizer seems to remove the newline symbol in certain scenarios.<br>
In particular, <code class="notranslate">decode(encode(text))</code> does not always equal the original <code class="notranslate">text</code>.<br>
The following is the smallest example that reproduces the error but other text examples will have this issue as well.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from transformers import CodeGenTokenizer
# other checkpoints in the CodeGen series have the same issue
tokenizer = CodeGenTokenizer.from_pretrained("Salesforce/codegen-350M-multi")
# new line (10), space (32), space (32)
text = "\n "
print([ord(c) for c in text])
# output: [10, 32, 32]
encoded = tokenizer.encode(text)
print(encoded)
# output: [50286]
decoded = tokenizer.decode(encoded)
print([ord(c) for c in decoded])
# actual: [32, 32]
# expected: [10, 32, 32]"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">transformers</span> <span class="pl-k">import</span> <span class="pl-v">CodeGenTokenizer</span>
<span class="pl-c"># other checkpoints in the CodeGen series have the same issue</span>
<span class="pl-s1">tokenizer</span> <span class="pl-c1">=</span> <span class="pl-v">CodeGenTokenizer</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">"Salesforce/codegen-350M-multi"</span>)
<span class="pl-c"># new line (10), space (32), space (32)</span>
<span class="pl-s1">text</span> <span class="pl-c1">=</span> <span class="pl-s">"<span class="pl-cce">\n</span> "</span>
<span class="pl-en">print</span>([<span class="pl-en">ord</span>(<span class="pl-s1">c</span>) <span class="pl-k">for</span> <span class="pl-s1">c</span> <span class="pl-c1">in</span> <span class="pl-s1">text</span>])
<span class="pl-c"># output: [10, 32, 32]</span>
<span class="pl-s1">encoded</span> <span class="pl-c1">=</span> <span class="pl-s1">tokenizer</span>.<span class="pl-en">encode</span>(<span class="pl-s1">text</span>)
<span class="pl-en">print</span>(<span class="pl-s1">encoded</span>)
<span class="pl-c"># output: [50286]</span>
<span class="pl-s1">decoded</span> <span class="pl-c1">=</span> <span class="pl-s1">tokenizer</span>.<span class="pl-en">decode</span>(<span class="pl-s1">encoded</span>)
<span class="pl-en">print</span>([<span class="pl-en">ord</span>(<span class="pl-s1">c</span>) <span class="pl-k">for</span> <span class="pl-s1">c</span> <span class="pl-c1">in</span> <span class="pl-s1">decoded</span>])
<span class="pl-c"># actual: [32, 32]</span>
<span class="pl-c"># expected: [10, 32, 32]</span></pre></div>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Expected: the decoded string is equal to the original string.<br>
Actual: the decoded string is missing the leading new line symbol.</p> | <h3 dir="auto">System Info</h3>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version: 4.24.0</li>
<li>Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.31</li>
<li>Python version: 3.10.8</li>
<li>Huggingface_hub version: 0.11.1</li>
<li>PyTorch version (GPU?): 1.13.1 (True)</li>
<li>Tensorflow version (GPU?): not installed (NA)</li>
<li>Flax version (CPU?/GPU?/TPU?): not installed (NA)</li>
<li>Jax version: not installed</li>
<li>JaxLib version: not installed</li>
<li>Using GPU in script?: no</li>
<li>Using distributed or parallel set-up in script?: no</li>
</ul>
<h3 dir="auto">Who can help?</h3>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ArthurZucker/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ArthurZucker">@ArthurZucker</a></p>
<h3 dir="auto">Information</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The official example scripts</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own modified scripts</li>
</ul>
<h3 dir="auto">Tasks</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own task or dataset (give details below)</li>
</ul>
<h3 dir="auto">Reproduction</h3>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>load a <code class="notranslate">PreTrainedTokenizer</code> that contains <code class="notranslate">unique_no_split_tokens</code>, e.g. <code class="notranslate">EleutherAI/gpt-j-6B</code>.</li>
</ol>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tokenizer = transformers.GPT2Tokenizer.from_pretrained('EleutherAI/gpt-j-6B')"><pre class="notranslate"><span class="pl-s1">tokenizer</span> <span class="pl-c1">=</span> <span class="pl-s1">transformers</span>.<span class="pl-v">GPT2Tokenizer</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">'EleutherAI/gpt-j-6B'</span>)</pre></div>
<ol start="2" dir="auto">
<li>use the tokenizer to split a string that contains a <code class="notranslate">unique_no_split_tokens</code>, e.g. <code class="notranslate">" <|extratoken_1|> "</code>.</li>
</ol>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="print(tokenizer(" <|extratoken_1|> ").input_ids)"><pre class="notranslate"><span class="pl-en">print</span>(<span class="pl-en">tokenizer</span>(<span class="pl-s">" <|extratoken_1|> "</span>).<span class="pl-s1">input_ids</span>)</pre></div>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">The tokenizer splits the string into 3 tokens (<code class="notranslate">" "</code>, <code class="notranslate">"<|extratoken_1|>"</code> and <code class="notranslate">" "</code>), and gives their ids (<code class="notranslate">[220, 50257, 220]</code>). This is the behavior of <code class="notranslate">PreTrainedTokenizerFast</code>.</p>
<p dir="auto">But the actual behavior is that the <code class="notranslate">PreTrainedTokenizer</code> only gives the id of <code class="notranslate">"<|extratoken_1|>"</code>, i.e. <code class="notranslate">50257</code></p> | 1 |
<p dir="auto">After changes in my code, deno panics every time.<br>
Full log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'main' panicked at 'Cached source file doesn't exist', cli/program_state.rs:206:8
stack backtrace:
0: 0x55a1a896ad83 - std::backtrace_rs::backtrace::libunwind::trace::h577ea05e9ca4629a
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/libunwind.rs:96
1: 0x55a1a896ad83 - std::backtrace_rs::backtrace::trace_unsynchronized::h50b9b72b84c7dd56
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/mod.rs:66
2: 0x55a1a896ad83 - std::sys_common::backtrace::_print_fmt::h6541cf9823837fac
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:79
3: 0x55a1a896ad83 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf64fbff071026df5
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:58
4: 0x55a1a86001ac - core::fmt::write::h9ddafa4860d8adff
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/fmt/mod.rs:1082
5: 0x55a1a896a5b6 - std::io::Write::write_fmt::h1d2ee292d2b65481
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/io/mod.rs:1514
6: 0x55a1a8969f40 - std::sys_common::backtrace::_print::ha25f9ff5080d886d
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:61
7: 0x55a1a8969f40 - std::sys_common::backtrace::print::h213e8aa8dc5405c0
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:48
8: 0x55a1a8969f40 - std::panicking::default_hook::{{closure}}::h6482fae49ef9d963
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:200
9: 0x55a1a8969638 - std::panicking::default_hook::he30ad7589e0970f9
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:219
10: 0x55a1a8969638 - std::panicking::rust_panic_with_hook::haa1ed36ada4ffb03
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:569
11: 0x55a1a89692d8 - std::panicking::begin_panic_handler::{{closure}}::h7001af1bb21aeaeb
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:476
12: 0x55a1a89692a4 - std::sys_common::backtrace::__rust_end_short_backtrace::h39910f557f5f2367
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:153
13: 0x55a1a896925d - rust_begin_unwind
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475
14: 0x55a1a85fd880 - core::panicking::panic_fmt::h4e2659771ebc78eb
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:85
15: 0x55a1a86048c2 - core::option::expect_failed::hd5a1da3a6b6bbb34
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/option.rs:1213
16: 0x55a1a8444c63 - core::option::Option<T>::expect::hb09dbc765aa5ae29
17: 0x55a1a84ba4a4 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hdde66c28789f890e
18: 0x55a1a8615e08 - <core::pin::Pin<P> as core::future::future::Future>::poll::hdcc7cb1733f8f646
19: 0x55a1a8615603 - <deno_core::modules::RecursiveModuleLoad as futures_core::stream::Stream>::poll_next::he006242bd12754af
20: 0x55a1a84b5264 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h9b3f326a1b645f86
21: 0x55a1a84b7d8b - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hc92eb54ac15f0a05
22: 0x55a1a85a29ad - deno::run_command::{{closure}}::h2731d1858f4ccaf6
23: 0x55a1a84b409b - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h84023c1f02b7ced5
24: 0x55a1a8477192 - tokio::runtime::Runtime::block_on::h7148315b848bf24b
25: 0x55a1a85ac551 - deno::main::hfcf455f2df1a44ec
26: 0x55a1a8414495 - std::sys_common::backtrace::__rust_begin_short_backtrace::hcc04b8b81d5e1708
27: 0x55a1a85b3494 - main
28: 0x7f505d635b97 - __libc_start_main
29: 0x55a1a838333a - _start
30: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">thread 'main' panicked at 'Cached source file doesn't exist', cli/program_state.rs:206:8
stack backtrace:
0: 0x55a1a896ad83 - std::backtrace_rs::backtrace::libunwind::trace::h577ea05e9ca4629a
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/libunwind.rs:96
1: 0x55a1a896ad83 - std::backtrace_rs::backtrace::trace_unsynchronized::h50b9b72b84c7dd56
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/mod.rs:66
2: 0x55a1a896ad83 - std::sys_common::backtrace::_print_fmt::h6541cf9823837fac
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:79
3: 0x55a1a896ad83 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf64fbff071026df5
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:58
4: 0x55a1a86001ac - core::fmt::write::h9ddafa4860d8adff
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/fmt/mod.rs:1082
5: 0x55a1a896a5b6 - std::io::Write::write_fmt::h1d2ee292d2b65481
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/io/mod.rs:1514
6: 0x55a1a8969f40 - std::sys_common::backtrace::_print::ha25f9ff5080d886d
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:61
7: 0x55a1a8969f40 - std::sys_common::backtrace::print::h213e8aa8dc5405c0
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:48
8: 0x55a1a8969f40 - std::panicking::default_hook::{{closure}}::h6482fae49ef9d963
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:200
9: 0x55a1a8969638 - std::panicking::default_hook::he30ad7589e0970f9
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:219
10: 0x55a1a8969638 - std::panicking::rust_panic_with_hook::haa1ed36ada4ffb03
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:569
11: 0x55a1a89692d8 - std::panicking::begin_panic_handler::{{closure}}::h7001af1bb21aeaeb
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:476
12: 0x55a1a89692a4 - std::sys_common::backtrace::__rust_end_short_backtrace::h39910f557f5f2367
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:153
13: 0x55a1a896925d - rust_begin_unwind
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475
14: 0x55a1a85fd880 - core::panicking::panic_fmt::h4e2659771ebc78eb
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:85
15: 0x55a1a86048c2 - core::option::expect_failed::hd5a1da3a6b6bbb34
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/option.rs:1213
16: 0x55a1a8444c63 - core::option::Option<T>::expect::hb09dbc765aa5ae29
17: 0x55a1a84ba4a4 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hdde66c28789f890e
18: 0x55a1a8615e08 - <core::pin::Pin<P> as core::future::future::Future>::poll::hdcc7cb1733f8f646
19: 0x55a1a8615603 - <deno_core::modules::RecursiveModuleLoad as futures_core::stream::Stream>::poll_next::he006242bd12754af
20: 0x55a1a84b5264 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h9b3f326a1b645f86
21: 0x55a1a84b7d8b - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hc92eb54ac15f0a05
22: 0x55a1a85a29ad - deno::run_command::{{closure}}::h2731d1858f4ccaf6
23: 0x55a1a84b409b - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h84023c1f02b7ced5
24: 0x55a1a8477192 - tokio::runtime::Runtime::block_on::h7148315b848bf24b
25: 0x55a1a85ac551 - deno::main::hfcf455f2df1a44ec
26: 0x55a1a8414495 - std::sys_common::backtrace::__rust_begin_short_backtrace::hcc04b8b81d5e1708
27: 0x55a1a85b3494 - main
28: 0x7f505d635b97 - __libc_start_main
29: 0x55a1a838333a - _start
30: 0x0 - <unknown>
</code></pre></div>
<p dir="auto">Deno version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno 1.5.1
v8 8.7.220.3
typescript 4.0.3"><pre class="notranslate"><code class="notranslate">deno 1.5.1
v8 8.7.220.3
typescript 4.0.3
</code></pre></div>
<p dir="auto">I tried restore changes but again the same errors.<br>
Also I tried <code class="notranslate">deno cache -r --unstable -c tsconfig.json startup.t</code> but still panic.<br>
In last case I resolved my problem by downgrading deno to version 1.5.0 then run my application and OK without errors.<br>
Again I upgraded to latest version and OK without errors.</p> | <p dir="auto">I am aware of the --reload flag, but would it make sense to include a version of a lockfile that is only updated with the --reload? I am hesitant to create this issue because if the dependencies are pulled in with URLs then it's irrelevant due to the fact that the cache becomes the source of truth, but would it make sense?</p> | 0 |
<p dir="auto">It would be great to have either the (old) FileReader API or the new Promise based Blob methods "text", "arrayBuffer" and "stream".</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">blob.text()</code> - <code class="notranslate">promise<String></code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">blob.arrayBuffer()</code> - <code class="notranslate">promise<ArrayBuffer></code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">blob.stream()</code> - <code class="notranslate">Dom.ReadableStream</code></li>
</ul> | 1 |
<h5 dir="auto">Issue Type:</h5>
<ul dir="auto">
<li>Bug Report</li>
<li>Bugfix Pull Request</li>
</ul>
<h5 dir="auto">Ansible Version:</h5>
<ul dir="auto">
<li>1.9.4</li>
</ul>
<h5 dir="auto">Ansible Configuration:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
inventory=inventory"><pre class="notranslate"><code class="notranslate">[defaults]
inventory=inventory
</code></pre></div>
<h5 dir="auto">Environment:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./inventory/g
./host_vars/h1
./host_vars/h2
./playbook.yml"><pre class="notranslate"><code class="notranslate">./inventory/g
./host_vars/h1
./host_vars/h2
./playbook.yml
</code></pre></div>
<h5 dir="auto">Summary:</h5>
<p dir="auto">host_vars are not loaded when using inventory directory and --limit flag</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#./inventory/g
h1
h2"><pre class="notranslate"><code class="notranslate">#./inventory/g
h1
h2
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#./host_vars/h1
---
key: h1"><pre class="notranslate"><code class="notranslate">#./host_vars/h1
---
key: h1
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#./host_vars/h2
---
key: h2"><pre class="notranslate"><code class="notranslate">#./host_vars/h2
---
key: h2
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#./playbook.yml
---
- name: test host_vars includes
gather_facts: no
hosts: all
tasks:
- debug: var=hostvars['h1'].key
- debug: var=hostvars['h2'].key"><pre class="notranslate"><code class="notranslate">#./playbook.yml
---
- name: test host_vars includes
gather_facts: no
hosts: all
tasks:
- debug: var=hostvars['h1'].key
- debug: var=hostvars['h2'].key
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook playbook.yml -l h1"><pre class="notranslate"><code class="notranslate">ansible-playbook playbook.yml -l h1
</code></pre></div>
<h5 dir="auto">Expected Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [test host_vars includes] ************************************************
TASK: [debug var=hostvars['h1'].key] ******************************************
ok: [h1] => {
"var": {
"hostvars['h1'].key": "h1"
}
}
TASK: [debug var=hostvars['h2'].key] ******************************************
ok: [h1] => {
"var": {
"hostvars['h2'].key": "h2"
}
}
PLAY RECAP ********************************************************************
h1 : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [test host_vars includes] ************************************************
TASK: [debug var=hostvars['h1'].key] ******************************************
ok: [h1] => {
"var": {
"hostvars['h1'].key": "h1"
}
}
TASK: [debug var=hostvars['h2'].key] ******************************************
ok: [h1] => {
"var": {
"hostvars['h2'].key": "h2"
}
}
PLAY RECAP ********************************************************************
h1 : ok=2 changed=0 unreachable=0 failed=0
</code></pre></div>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [test host_vars includes] ************************************************
TASK: [debug var=hostvars['h1'].key] ******************************************
ok: [h1] => {
"var": {
"hostvars['h1'].key": "h1"
}
}
TASK: [debug var=hostvars['h2'].key] ******************************************
ok: [h1] => {
"var": {
"hostvars['h2'].key": "{{hostvars['h2'].key}}"
}
}
PLAY RECAP ********************************************************************
h1 : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [test host_vars includes] ************************************************
TASK: [debug var=hostvars['h1'].key] ******************************************
ok: [h1] => {
"var": {
"hostvars['h1'].key": "h1"
}
}
TASK: [debug var=hostvars['h2'].key] ******************************************
ok: [h1] => {
"var": {
"hostvars['h2'].key": "{{hostvars['h2'].key}}"
}
}
PLAY RECAP ********************************************************************
h1 : ok=2 changed=0 unreachable=0 failed=0
</code></pre></div> | <p dir="auto">This bug report is a result investigating <a href="https://groups.google.com/forum/#!searchin/ansible-project/limit$20hostvars$20/ansible-project/ZZ12KPiOE2s/rfdotpnmKgAJ" rel="nofollow">https://groups.google.com/forum/#!searchin/ansible-project/limit$20hostvars$20/ansible-project/ZZ12KPiOE2s/rfdotpnmKgAJ</a> .</p>
<p dir="auto">It turns out that the host_vars/ directory must be relative to the inventory file <em>when the host is not included in --limit</em>. Ansible can define any such requirement, but note that it is inconsistent to be more liberal with the placement of the host_vars directory when a file is not excluded with --limit (i.e., if the host is included in the run, either the directory relative to the playbook can be used, or the directory relative to the inventory file).</p>
<p dir="auto">To reproduce, see the project in <a href="http://feliksik.nl/ansible-limit.tgz" rel="nofollow">http://feliksik.nl/ansible-limit.tgz</a> structure, which structure looks as follows (modify inventory to your environment, of course).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".
├── host_vars
│ └── outlimit
├── inventory
├── playbook.yml
└── sub
└── inventory -> ../inventory"><pre class="notranslate"><code class="notranslate">.
├── host_vars
│ └── outlimit
├── inventory
├── playbook.yml
└── sub
└── inventory -> ../inventory
</code></pre></div>
<p dir="auto">There is the following calls possible:<br>
root1) ansible-playbook -i inventory playbook.yml --limit inlimit<br>
root2) ansible-playbook -i inventory playbook.yml --limit inlimit,outlimit<br>
sub1) ansible-playbook -i sub/inventory playbook.yml --limit inlimit<br>
sub2) ansible-playbook -i sub/inventory playbook.yml --limit inlimit,outlimit</p>
<p dir="auto">Expected behaviour:</p>
<ul dir="auto">
<li>if root2 works, then root1 should also work</li>
<li>if sub2 works (i.e. it is legal for the host_vars directory to not be in the same directory as the inventory file), then sub1 should also work.</li>
</ul>
<p dir="auto">Actual behavior:</p>
<ul dir="auto">
<li>root1 works</li>
<li>root2 works</li>
<li>sub1 <strong>fails</strong>!</li>
<li>sub2 works</li>
</ul> | 1 |
<p dir="auto">When my server returns a 400 response with text, the xhr backend does not route this through to the error observer, and instead calls the success path.</p>
<p dir="auto">I am porting a service from angular 1 to angular 2, and this was not a problem in angular 1, nor is it a problem with rxjs-dom, which I am using in the meantime.</p>
<p dir="auto">Affected area:<br>
<a href="https://github.com/angular/angular/blob/master/modules/angular2/src/http/backends/xhr_backend.ts#L41">https://github.com/angular/angular/blob/master/modules/angular2/src/http/backends/xhr_backend.ts#L41</a></p>
<p dir="auto">What rxjs-dom does and I think angular 2 should do similarly:<br>
<a href="https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/src/ajax/ajax.js#L76">https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/src/ajax/ajax.js#L76</a></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><br>
Test Repo - <a href="https://github.com/mildfuzz/angular-mockError">https://github.com/mildfuzz/angular-mockError</a></p>
<p dir="auto">I am unable to test predicted HTTP error responses. Mockbackend can either send a response with an error code (which my app treats as a successful response in the test environment, but as an error in real world)</p>
<p dir="auto">I am unable to send status codes with an error response in my tests, so I can not test any error handling my application might implements.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
at least one of the defined test cases passes</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Test Repo - <a href="https://github.com/mildfuzz/angular-mockError">https://github.com/mildfuzz/angular-mockError</a></p>
<p dir="auto">this is a re-opening of issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139123794" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/7471" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/7471/hovercard" href="https://github.com/angular/angular/issues/7471">#7471</a>, which was closed due to lack of repro steps.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
To be able to test all responses</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
OsX</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.X<br>
Angular 2.1.0</p>
</li>
<li>
<p dir="auto"><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>
Chrome 54</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> TypeScript 2.0.3</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.9.1</p>
</li>
</ul> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.