text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">Methods in Dates have a habit of causing ambiguities for packages that define new AbstractArray types, e.g., <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="171066945" data-permission-text="Title is private" data-url="https://github.com/JuliaArrays/StaticArrays.jl/issues/18" data-hovercard-type="issue" data-hovercard-url="/JuliaArrays/StaticArrays.jl/issues/18/hovercard" href="https://github.com/JuliaArrays/StaticArrays.jl/issues/18">JuliaArrays/StaticArrays.jl#18</a> where nearly half of the ambiguities are due to Dates-related methods. The problem, in a nutshell, is that Dates specializes several AbstractArray methods on the element type whereas packages tend to specialize on the container type.</p>
<p dir="auto">Getting rid of such ambiguity warnings, back in the days of 0.4-dev, was the final trigger for introducing <code class="notranslate">promote_op</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="96957776" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/12292" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/12292/hovercard" href="https://github.com/JuliaLang/julia/pull/12292">#12292</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="97953320" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/12370" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/12370/hovercard" href="https://github.com/JuliaLang/julia/pull/12370">#12370</a>); now that we've gotten rid of it, it would be lovely to see whether we can reduce the ambiguity-causing footprint of Dates even further.</p>
<p dir="auto">Now that ambiguities are silent until called this is not as crucial as it once was, but ideally we'd like to move to a world where packages can include <code class="notranslate">detect_ambiguities</code> as part of their tests.</p> | <p dir="auto">Dates redefines <code class="notranslate">+(::Array{Date}, Date...) = .+</code>, meaning that array + scalar doesn't throw an error.</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/JuliaLang/julia/blob/f8d82ccba81223c9d0d43e4077acb2a208bedc7a/stdlib/Dates/src/arithmetic.jl#L94">julia/stdlib/Dates/src/arithmetic.jl</a>
</p>
<p class="mb-0 color-fg-muted">
Line 94
in
<a data-pjax="true" class="commit-tease-sha" href="/JuliaLang/julia/commit/f8d82ccba81223c9d0d43e4077acb2a208bedc7a">f8d82cc</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="L94" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="94"></td>
<td id="LC94" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> (<span class="pl-k">-</span>)(x<span class="pl-k">::</span><span class="pl-c1">AbstractArray{T}</span>, y<span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-k">where</span> {T<span class="pl-k"><:</span><span class="pl-c1">TimeType</span>} <span class="pl-k">=</span> x <span class="pl-k">.-</span> y </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">This should probably be deprecated for consistency.</p> | 1 |
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong><br>
Optional chaining operators being removed which causes a runtime errors.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">env.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const env = {}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-s1">env</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">index.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { env } from './env';
console.log(env.foo?.bar)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">env</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./env'</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">env</span><span class="pl-kos">.</span><span class="pl-c1">foo</span><span class="pl-kos">?.</span><span class="pl-c1">bar</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">config</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { resolve } = require("path");
module.exports = {
devtool: false,
mode: "development",
entry: "./index.js",
target: ["web", "es2020"],
node: false,
};"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> resolve <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"path"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">devtool</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">mode</span>: <span class="pl-s">"development"</span><span class="pl-kos">,</span>
<span class="pl-c1">entry</span>: <span class="pl-s">"./index.js"</span><span class="pl-kos">,</span>
<span class="pl-c1">target</span>: <span class="pl-kos">[</span><span class="pl-s">"web"</span><span class="pl-kos">,</span> <span class="pl-s">"es2020"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">node</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Output</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/*!******************!*\
!*** ./index.js ***!
\******************/
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _env__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./env */ "./env.js");
console.log(_env__WEBPACK_IMPORTED_MODULE_0__.env.foo.bar)
})();"><pre class="notranslate"><span class="pl-c">/*!******************!*\</span>
<span class="pl-c"> !*** ./index.js ***!</span>
<span class="pl-c"> \******************/</span>
<span class="pl-s1">__webpack_require__</span><span class="pl-kos">.</span><span class="pl-en">r</span><span class="pl-kos">(</span><span class="pl-s1">__webpack_exports__</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">/* harmony import */</span> <span class="pl-k">var</span> <span class="pl-s1">_env__WEBPACK_IMPORTED_MODULE_0__</span> <span class="pl-c1">=</span> <span class="pl-en">__webpack_require__</span><span class="pl-kos">(</span><span class="pl-c">/*! ./env */</span> <span class="pl-s">"./env.js"</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">_env__WEBPACK_IMPORTED_MODULE_0__</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">foo</span><span class="pl-kos">.</span><span class="pl-c1">bar</span><span class="pl-kos">)</span>
<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>What is the expected behavior?</strong><br>
Operator is retained.</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 5.65.0<br>
Node.js version: 14.18.1<br>
Operating System: darwin x64<br>
Additional tools:</p> | <h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">Webpack incorrectly compiles <code class="notranslate">x?.value</code> to <code class="notranslate">(something).value</code> when <code class="notranslate">x</code> is something that's been imported.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">webpack.config.js:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = {
entry: "./index.js",
target: "web",
};"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">entry</span>: <span class="pl-s">"./index.js"</span><span class="pl-kos">,</span>
<span class="pl-c1">target</span>: <span class="pl-s">"web"</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">index.js:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import x from './x.js';
console.log(`optional value is: ${x?.value}`);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">x</span> <span class="pl-k">from</span> <span class="pl-s">'./x.js'</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`optional value is: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">x</span><span class="pl-kos">?.</span><span class="pl-c1">value</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">x.js:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default undefined;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Produces dist/main.js:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(()=>{"use strict";console.log(`optional value is: ${(void 0).value}`)})();"><pre class="notranslate"><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-s">"use strict"</span><span class="pl-kos">;</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`optional value is: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-kos">(</span><span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">which leads to <code class="notranslate">TypeError: Cannot read property 'value' of undefined</code> at runtime.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">The <code class="notranslate">?</code> should be retained or converted to a ternary operator.</p>
<p dir="auto">When <code class="notranslate">import x from './x.js';</code> is removed and replaced with <code class="notranslate">const x = (() => void console)();</code> (something complicated enough that webpack doesn't completely constant-fold it), the output is:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(()=>{const o=void console;console.log(`optional value is: ${o?.value}`)})();"><pre class="notranslate"><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">const</span> <span class="pl-s1">o</span><span class="pl-c1">=</span><span class="pl-k">void</span> <span class="pl-smi">console</span><span class="pl-kos">;</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`optional value is: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">o</span><span class="pl-kos">?.</span><span class="pl-c1">value</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">which is as expected (the <code class="notranslate">?</code> is retained).</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: latest, 5.27.2<br>
Node.js version: v15.9.0<br>
Operating System: macOS 11.2.2</p> | 1 |
<p dir="auto">Maybe its time to support stylus <a href="https://github.com/LearnBoost/stylus">https://github.com/LearnBoost/stylus</a></p>
<p dir="auto">Many users like me use stylus in projects and they want to have bootstrap stylus in project</p>
<p dir="auto">Everyone know why stylus is much better of less</p>
<p dir="auto">You maybe use less only for simple mixins/variables But developers ...</p>
<p dir="auto">We import bootstrap.styl and change config and ... and compile prefix free with nib and ....</p>
<p dir="auto">Ee have 3 choose</p>
<ol dir="auto">
<li>Complete rewrite less files in stylus and don't support less any more, its can be fast as posible, there is good repo in github that converted bootstrap to stylus.</li>
<li>Support stylus too, maybe new brach or something else and continue backward compatibility.</li>
<li>Create new project in twitter org and developers can update it as a separate process.<br>
and you don't need to think about it, we keep it update.<br>
and some day you see it will be much popular.</li>
</ol>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fat">@fat</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mdo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mdo">@mdo</a> I hope you more thinking about this request before close immediately.</p> | <p dir="auto">Carousel does not start sliding to the next one after 5 seconds until after I click to the next slide. Only then does the timer start. What am I missing?</p> | 0 |
<p dir="auto">I often find myself doing some quick-and-dirty plotting, and wishing there was a simple, one-step, easy-to-remember way to set the default figsize for all matplotlib plots.</p>
<p dir="auto">I imagine something very light-weight like <code class="notranslate">sns.set(figsize=(2, 4))</code> or <code class="notranslate">sns.set_figsize(2, 4)</code>.</p>
<p dir="auto">iPython actually has this already as <code class="notranslate">IPython.core.pylabtools.figsize(sizex, sizey)</code>.</p>
<p dir="auto">I can submit a pull request pretty easily, but I wanted to ask you opinion first.</p> | <h2 dir="auto">sns.set_theme(style="ticks")<br>
sns.pairplot(df)</h2>
<p dir="auto">AttributeError Traceback (most recent call last)<br>
in <br>
----> 1 sns.set_theme(style="ticks")<br>
2 sns.pairplot(df)</p>
<p dir="auto"><strong>AttributeError: module 'seaborn' has no attribute 'set_theme'</strong></p>
<p dir="auto">I have got this error while using seaborn.</p> | 0 |
<p dir="auto">Some folders/projects, even in safe mode, just search forever and ever. Other folders work just fine since<br>
Started happening with 0.191</p>
<p dir="auto">What can I provide for more info?<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5841107/7163955/eb288d2a-e351-11e4-81ac-fbe6db8323fc.png"><img src="https://cloud.githubusercontent.com/assets/5841107/7163955/eb288d2a-e351-11e4-81ac-fbe6db8323fc.png" alt="ingest - atom 2015-04-15 09-29-24" style="max-width: 100%;"></a></p> | <p dir="auto">Searching a folder that contains some broken symlinks:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ENOENT: no such file or directory, stat '/Users/kevin/github/atom/node_modules/temp/node_modules/.bin/rimraf'
at Error (native)
at fs.statSync (fs.js:846:18)
at Object.fs.statSync (ATOM_SHELL_ASAR.js:206:16)
at Object.realpathSync (fs.js:1456:12)
at Object.fs.realpathSync (ATOM_SHELL_ASAR.js:243:29)
at PathScanner.module.exports.PathScanner.stat (/Applications/Atom.app/Contents/Resources/app/node_modules/scandal/lib/path-scanner.js:89:16)
at PathScanner.module.exports.PathScanner.processFile (/Applications/Atom.app/Contents/Resources/app/node_modules/scandal/lib/path-scanner.js:74:19)
at /Applications/Atom.app/Contents/Resources/app/node_modules/scandal/lib/path-scanner.js:52:17
at FSReqWrap.oncomplete (fs.js:77:15)"><pre class="notranslate"><code class="notranslate">ENOENT: no such file or directory, stat '/Users/kevin/github/atom/node_modules/temp/node_modules/.bin/rimraf'
at Error (native)
at fs.statSync (fs.js:846:18)
at Object.fs.statSync (ATOM_SHELL_ASAR.js:206:16)
at Object.realpathSync (fs.js:1456:12)
at Object.fs.realpathSync (ATOM_SHELL_ASAR.js:243:29)
at PathScanner.module.exports.PathScanner.stat (/Applications/Atom.app/Contents/Resources/app/node_modules/scandal/lib/path-scanner.js:89:16)
at PathScanner.module.exports.PathScanner.processFile (/Applications/Atom.app/Contents/Resources/app/node_modules/scandal/lib/path-scanner.js:74:19)
at /Applications/Atom.app/Contents/Resources/app/node_modules/scandal/lib/path-scanner.js:52:17
at FSReqWrap.oncomplete (fs.js:77:15)
</code></pre></div> | 1 |
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">ThreeJs ThreeMF loader is blocking the UI while upzipping the 3MF file.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="try {
zip = new JSZip( data ); // eslint-disable-line no-undef
} catch ( e ) {
if ( e instanceof ReferenceError ) {
console.error( 'THREE.3MFLoader: jszip missing and file is compressed.' );
return null;
}
}"><pre class="notranslate"><span class="pl-k">try</span> <span class="pl-kos">{</span>
<span class="pl-s1">zip</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">JSZip</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-c">// eslint-disable-line no-undef</span>
<span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span> <span class="pl-s1">e</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">e</span> <span class="pl-k">instanceof</span> <span class="pl-v">ReferenceError</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">error</span><span class="pl-kos">(</span> <span class="pl-s">'THREE.3MFLoader: jszip missing and file is compressed.'</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-c1">null</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">According the the <a href="https://stuk.github.io/jszip/documentation/howto/read_zip.html" rel="nofollow">JSZip documenation</a> I assume it would be better to unzip the container asynchronously not to block the UI.</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li>[x ] Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r120</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> | <p dir="auto">As discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="227275148" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/11301" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/11301/hovercard" href="https://github.com/mrdoob/three.js/issues/11301">#11301</a> one of the main problems that we have in WebVR, although is annoying in non-VR experiences too, is blocking the main thread while loading assets.</p>
<p dir="auto">With the recent implementation on <a href="https://blog.mozvr.com/link-traversal/" rel="nofollow">link traversal</a> in the browser non-blocking loading is a must to ensure a satisfying user experience. If you jump from one page to another and the target page start to load assets blocking the mainthread, it will block the render function so no frames will be submitted to the headset and after a small period of grace the browser will kick us out from VR and it will require the user to take out the headset, click enter VR again (user gesture required to do so) and go back to the experience.</p>
<p dir="auto">Currently we can see two implementations of non-blocking loading of OBJ files:</p>
<ul dir="auto">
<li>
<p dir="auto">(1) Using webworkers to parse the obj file and then return the data back to the main thread <a href="https://threejs.org/docs/index.html#examples/loaders/WWOBJLoader2" rel="nofollow">WWOBJLoader</a>:<br>
Here the parsing is done concurrently and you could have several workers at the same time. The main drawback is that once you've loaded the data you need to send the payload back to the mainthread to reconstruct the THREE objects instances and that part could block the main thread:<br>
<a href="https://github.com/kaisalmen/WWOBJLoader/blob/master/src/loaders/WWOBJLoader2.js#L312-L423">https://github.com/kaisalmen/WWOBJLoader/blob/master/src/loaders/WWOBJLoader2.js#L312-L423</a></p>
</li>
<li>
<p dir="auto">(2) Mainthread promise with deferred parsing using setTimeOut:<a href="https://github.com/facebook/react-vr/tree/master/ReactVR/js/Loaders/WavefrontOBJ">Oculus ReactVR</a>: This loader keeps reading lines using small time slots to prevent blocking the main thread by calling setTimeout: <a href="https://github.com/facebook/react-vr/blob/master/ReactVR/js/Loaders/WavefrontOBJ/OBJParser.js#L281-L298">https://github.com/facebook/react-vr/blob/master/ReactVR/js/Loaders/WavefrontOBJ/OBJParser.js#L281-L298</a><br>
With this approach the loading will be slower as we're just parsing some lines on each time slot, but the advantage is that once the parsing is completed, we'll have the THREE objects ready to use without any additional overhead.</p>
</li>
</ul>
<p dir="auto">Both has their pros and cons and I'm honestly not an expert of webworkers to evalute that implementation but It's an interesting discussion that ideally would lead to a generic module that could be used to port the loaders to a non-blocking version.</p>
<p dir="auto">Any suggestions?</p>
<p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikearmstrong001/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikearmstrong001">@mikearmstrong001</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kaisalmen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kaisalmen">@kaisalmen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/delapuente/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/delapuente">@delapuente</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spite/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spite">@spite</a></p> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/14143381/11647047/8a811808-9d18-11e5-8d6b-519891f228a9.png"><img width="276" alt="screen shot 2015-12-07 at 7 27 07 pm" src="https://cloud.githubusercontent.com/assets/14143381/11647047/8a811808-9d18-11e5-8d6b-519891f228a9.png" style="max-width: 100%;"></a></p>
Challenge [Waypoint: Add Font Awesome Icons to all of our Buttons](http://www.freecodecamp.com/challenges/waypoint-add-font-awesome-icons-to-all-of-our-buttons) has an issue.
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7</code>.
Please describe how to reproduce this issue, and include links to screenshots if possible.
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
h2 {
font-family: Lobster, Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
</style>
<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
</div>
</div>
<img src="http://bit.ly/fcc-running-cats" class="img-responsive">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i>Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger"><i class="fa fa-trash"></i>Delete</button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">http://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-ent">h2</span> {
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace;
}
.<span class="pl-c1">thick-green-border</span> {
<span class="pl-c1">border-color</span><span class="pl-kos">:</span> green;
<span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>;
<span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-8</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-4</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">img-responsive thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">http://bit.ly/fcc-running-cats</span>" <span class="pl-c1">class</span>="<span class="pl-s">img-responsive</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-4</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-primary</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-thumbs-up</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">i</span><span class="pl-kos">></span> Like<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-4</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-info</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-info-circle</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">i</span><span class="pl-kos">></span>Info<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-4</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-danger</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-trash</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">i</span><span class="pl-kos">></span>Delete<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Things cats <span class="pl-kos"><</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">text-danger</span>"<span class="pl-kos">></span>love:<span class="pl-kos"></</span><span class="pl-ent">span</span><span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>cat nip<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>laser pointers<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>lasagna<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Top 3 things cats hate:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>flea treatment<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>thunder<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>other cats<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">></span> Indoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">></span> Outdoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Loving<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Lazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Crazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">></span>Submit<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">form</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div> | <p dir="auto">Hmm, I don't know why, but I am getting issues with the preview layout in the bootstrap section.<br>
First in the buttons section : <a href="http://prntscr.com/89uesz" rel="nofollow">http://prntscr.com/89uesz</a></p>
<p dir="auto">Then in the check box section: <a href="http://prntscr.com/89ujcq" rel="nofollow">http://prntscr.com/89ujcq</a></p>
<p dir="auto">I am sure there is no error with my code, but still I am pasting the code for it here</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
h2 {
font-family: Lobster, Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
</style>
<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
</div>
</div>
<img src="http://bit.ly/fcc-running-cats" class="img-responsive">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Crazy</label>
</div>
</div>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>"><pre class="notranslate"><code class="notranslate"><link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
h2 {
font-family: Lobster, Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
</style>
<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
</div>
</div>
<img src="http://bit.ly/fcc-running-cats" class="img-responsive">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Crazy</label>
</div>
</div>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
</code></pre></div> | 1 |
<p dir="auto">by <strong>Ekspluati</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
1. Run all.bash on localized version of Windows.
What is the expected output?
No error from the program
What do you see instead?
--- cd ../doc/progs
helloworld3 failed: "hello, world can't open file; err=MA☼A☼ritettyA☼ polkua
ei lA¶ydy." is not "hello, world can't open file; err=no such file or
directory"
cannot create 8.out.exe
Which compiler are you using (5g, 6g, 8g, gccgo)?
8g
Which operating system are you using?
Windows 7 (Finnish)
Which revision are you using? (hg identify)
4d4e7adab561 tip
Please provide any additional information below.
"MA☼A☼ritettyA☼ polkua ei lA¶ydy." and "no such file or
directory" are the same error message but in different languages.</pre> | <p dir="auto">by <strong>jkinner</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
1. 6g DayOfWeek.go
2. 6g test.go
3. 6l test.6
What is the expected output? What do you see instead?
Expected: Successful creation of 6.out
Seen:
(13) DATA
extratype·DayOfWeek.DayStructPublic+0(/8,$go.string·"DayStructPublic"+0(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA
extratype·DayOfWeek.DayStructPublic+8(/8,$go.string·"DayOfWeek"+0(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA
extratype·DayOfWeek.DayStructPublic+16/8,$extratype·DayOfWeek.DayStructPublic+3
MHeapMap_Preallocate: multiple initialization
(13) DATA
type·DayOfWeek.DayStruct+0(SB)/8,$type·*runtime.StructType+0(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA
type·DayOfWeek.DayStruct+8(SB)/8,$type·DayOfWeek.DayStruct+16(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA type·DayOfWeek.DayStruct+16(SB)/8,$8
MHeapMap_Preallocate: multiple initialization
(13) DATA type·DayOfWeek.DayStruct+24(SB)/4,$687931978
MHeapMap_Preallocate: multiple initialization
(13) DATA type·DayOfWeek.DayStruct+28(SB)/1,$1
MHeapMap_Preallocate: multiple initialization
(13) DATA type·DayOfWeek.DayStruct+29(SB)/1,$8
MHeapMap_Preallocate: multiple initialization
(13) DATA type·DayOfWeek.DayStruct+30(SB)/1,$8
MHeapMap_Preallocate: multiple initialization
(13) DATA
type·DayOfWeek.DayStruct+32(SB)/8,$go.string·"DayOfWeek.DayStruct"+0(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA
type·DayOfWeek.DayStruct+40(SB)/8,$extratype·DayOfWeek.DayStruct+0(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA
type·DayOfWeek.DayStruct+48(SB)/8,$type·DayOfWeek.DayStruct+64(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA type·DayOfWeek.DayStruct+56(SB)/4,$1
MHeapMap_Preallocate: multiple initialization
(13) DATA type·DayOfWeek.DayStruct+60(SB)/4,$1
MHeapMap_Preallocate: multiple initialization
(13) DATA type·DayOfWeek.DayStruct+64(SB)/8,$go.string·"dow"+0(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA
type·DayOfWeek.DayStruct+72(SB)/8,$go.string·"DayOfWeek"+0(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA
type·DayOfWeek.DayStruct+80(SB)/8,$type·DayOfWeek.dayOfWeek+0(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA
extratype·DayOfWeek.dayOfWeek+0(SB)/8,$go.string·"dayOfWeek"+0(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA
extratype·DayOfWeek.dayOfWeek+8(SB)/8,$go.string·"DayOfWeek"+0(SB)
MHeapMap_Preallocate: multiple initialization
(13) DATA
extratype·DayOfWeek.dayOfWeek+16(SB)/8,$extratype·DayOfWeek.dayOfWeek+32(SB)
MHeapMap_Preallocate: multiple initialization
too many errors
What is your $GOOS? $GOARCH?
darwin/amd64
Which revision are you sync'ed to? (hg log -l 1)
changeset: 3975:b51fd2d6c160
tag: tip
user: Kevin Ballard <[email protected]>
date: Tue Nov 10 20:05:24 2009 -0800
summary: Implement new emacs command M-x gofmt
Please provide any additional information below.
Uncommenting the "bugFix" line in DayOfWeek.go will resolve the link error.
Note that there is code in this test case that should cause a compiler
error in test.go, so the test case may need to be adjusted if that bug is
fixed.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/87/0/DayOfWeek.go" rel="nofollow">DayOfWeek.go</a> (179 bytes)</li>
<li><a href="https://storage.googleapis.com/go-attachment/87/0/test.go" rel="nofollow">test.go</a> (180 bytes)</li>
</ol> | 0 |
<p dir="auto">It would be nice if I could color-code folders and files, just like you can in macOS. How about a powertoy for this?</p> | <h2 dir="auto">ℹ Computer information</h2>
<ul dir="auto">
<li>Windows build number: [run "winver"] 20175</li>
<li>PowerToys version: 0.20.0</li>
<li>PowerToy module: n/a</li>
</ul>
<h2 dir="auto">📝 Provide detailed reproduction steps (if any)</h2>
<p dir="auto">After updating, the installer asked if I wanted to restart Windows Explorer.<br>
I picked Yes, and Explorer closed but it did not start again.</p>
<h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3>
<p dir="auto">Explorer would relaunch itself.</p>
<h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3>
<p dir="auto">Explorer closed (taskbar/desktop). Launching task manager, I discovered that a folder window appeared to still be open (it was minimized when Explorer closed, and was not visible on my desktop). I used Task Manager to close it, then manually ran explorer.exe to relaunch the taskbar process.</p> | 0 |
<p dir="auto"><code class="notranslate">~/jax$ python3 tests/host_callback_test.py</code> fails with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ RUN ] CallJaxTest.test_jax_grad
2021-04-15 00:16:53.333864: E external/org_tensorflow/tensorflow/compiler/xla/status_macros.cc:56] Internal: RET_CHECK failure (external/org_tensorflow/tensorflow/compiler/xla/service/gpu/outfeed_thunk.cc:80) ShapeUtil::Equal(source_slices_[index].shape, output_shape) Mismatch between outfeed output buffer shape u32[2]{0} and outfeed source buffer shape f32[]"><pre class="notranslate"><code class="notranslate">[ RUN ] CallJaxTest.test_jax_grad
2021-04-15 00:16:53.333864: E external/org_tensorflow/tensorflow/compiler/xla/status_macros.cc:56] Internal: RET_CHECK failure (external/org_tensorflow/tensorflow/compiler/xla/service/gpu/outfeed_thunk.cc:80) ShapeUtil::Equal(source_slices_[index].shape, output_shape) Mismatch between outfeed output buffer shape u32[2]{0} and outfeed source buffer shape f32[]
</code></pre></div>
<p dir="auto"><code class="notranslate">Mismatch between outfeed output buffer shape u32[2]{0} and outfeed source buffer shape f32[]</code></p>
<p dir="auto">All test cases seem to fail this way. It's a little hard to tell because after a few test cases run and fail with this, the test will just hang until you kill it (probably because computations are blocked waiting for infeed).</p>
<p dir="auto">I haven't dug into this at all, but for now I'm planning to disable all of host_callback_test on multi-GPU platforms in order to make our test suite runnable on multi-GPU (since right now it hangs).</p> | <p dir="auto">Please:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate requests.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Describe your goal, and if possible provide a code snippet with a motivating example.</li>
</ul>
<p dir="auto">Hi all,</p>
<p dir="auto">Whilst working on a recent project I realised that scipy.stats.multinomial doesn't have a jax.scipy implementation.</p>
<p dir="auto">I thought it'd be worthwhile to implement as well as a decent first contribution.</p>
<p dir="auto">I think I'm largely done on the work <a href="https://github.com/harryjulian/jax/tree/scipy.stats.multinomial">here</a> but thought to make an issue before making a PR.</p>
<p dir="auto">Is there any reason this hasn't been implemented thus far?</p> | 0 |
<p dir="auto">I understand that this has been brought up(as formatter options, but i think it would include this) before, but please read what I have to say as I believe I have newer and more solid reasoning for this change.</p>
<p dir="auto">Since a meta/config file(<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="510351149" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3179" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3179/hovercard" href="https://github.com/denoland/deno/issues/3179">#3179</a>) is on the Q3 2021 Roadmap and Q3 is coming soon, I'd like to bring up adding space amount customizations:</p>
<p dir="auto">I've decided to bring this up as an issue instead of in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="510351149" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3179" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3179/hovercard" href="https://github.com/denoland/deno/issues/3179">#3179</a> itself because <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="510351149" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3179" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3179/hovercard" href="https://github.com/denoland/deno/issues/3179">#3179</a> in particular seems to be targeted at putting current configuration options into a file, and the discussion in that issue seems to have mostly went to a config file format.</p>
<p dir="auto">The reason I am bringing this up in the first place is that I don't use <code class="notranslate">deno fmt</code> because I am unable to make it format my code with 4 spaces, I will be focusing on that:</p>
<h2 dir="auto">Reasoning</h2>
<ul dir="auto">
<li>
<p dir="auto">It doesn't make any sense to not allow customizations for such a simple option that has no reason for being as they are in the current settings, the defaults can still be whatever it is now, but it wouldn't hurt anyone to have an option for 4 spaces that, in my experience. doesn't even impact readability.</p>
</li>
<li>
<p dir="auto">It is not some obscure formatting option that is only used by a few people(like having semicolons after a functions closing bracket), it is a formatting option that a lot of people want, like, and want to be able to use with <code class="notranslate">deno fmt</code></p>
</li>
<li>
<p dir="auto">This wouldn't really change a lot(if anything) in terms of consistency, most people will still use the default, if someone wants to use 4 spaces they will either: 1. Adapt to 2 spaces because they don't have the option; or 2. Use 4 spaces anyway with some other formatter(I've seen projects like this) or manually(me); Not having this option makes people's lives harder(having to adapt to 2 spaces or use a different tool) at no real benefit since there's always going to be projects with 2 spaces and 4 spaces.</p>
</li>
<li>
<p dir="auto">A few people have brought up the option of using Prettier, dprint by itself, or writing my own formatter, I do not want to do that personally and I wouldn't really expect someone if they were working on a project of mine to install prettier or dprint or my own formatter. I understand that the "adapt or go" philosophy(which is whats happening here) is not wanted in the Deno community, and as such, it should not be wanted in the toolchain either, especially as it is a simple change that is wanted by many.</p>
</li>
<li>
<p dir="auto">Some have brought up the argument that it wastes company time and money to decide on formatting options, I do not think this holds up, because it is 1 simple option and as such would not take very long to decide on.</p>
</li>
<li>
<p dir="auto">I do not believe that making this change would force the core team to include small things as an option in <code class="notranslate">deno fmt</code>, because most things in <code class="notranslate">deno fmt</code> are reasonable and have a good reason for them being as they are. If this is wanted and eventually merged, it will be up to core and others to decide if similar options shall get in. Although I do not believe making these kind of decisions will be necessary because there are not many other things that have no reason to be as they are.</p>
</li>
<li>
<p dir="auto">Deno is supposed to be a one-stop shop for all JavaScript needs this, alienizing people like this is not a good way to achieve that goal and make people use Deno as the one-stop shop for their JS needs, this also feeds into my earlier reasoning regarding using prettier or dprint.</p>
</li>
</ul>
<h2 dir="auto">Prior Art</h2>
<ul dir="auto">
<li>I understand that Deno likes following other projects such as Rust or Go in it's decisions, so I will be listing a few formatters that allow this option, or has other changes that fixes this problem:
<ul dir="auto">
<li><code class="notranslate">gofmt</code>: Formats using tabs, this fixes this problem and also allows for better accesibility</li>
<li><code class="notranslate">rustfmt</code>: Has 4 spaces by default, allows changing this amount in <code class="notranslate">rustfmt.toml</code> file</li>
<li>Prettier: Allows changing spaces in a <code class="notranslate">.prettierc</code> file</li>
</ul>
</li>
</ul>
<h2 dir="auto">Development/Meeting Time</h2>
<p dir="auto">A few people on discord have brought up the topic of (core's) wasting development and/or meeting time on such simple and opinionated things:</p>
<ul dir="auto">
<li>I am willing to implement this myself, if that is what is needed, and if a PR implementing that will get accepted.</li>
<li>A meta/config file is already going to be discussed due to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="510351149" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3179" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3179/hovercard" href="https://github.com/denoland/deno/issues/3179">#3179</a> being on the Q3 Roadmap, and it is a simple addition to that, so I do not think it will take long to discuss.</li>
</ul>
<h2 dir="auto">Discord</h2>
<p dir="auto">I have created a thread on discord in the <code class="notranslate">#dev-fmt</code> channel where there was some discussion related to this:</p>
<p dir="auto"><a href="https://discord.com/channels/684898665143206084/870438916136771614/870438917860651028" rel="nofollow">https://discord.com/channels/684898665143206084/870438916136771614/870438917860651028</a></p> | <p dir="auto">I really like the idea of "one formatting style". People spend too much time on these matters. I also currently use two spaces for JavaScript files as it is the Prettier default.</p>
<p dir="auto">But thinking more about the accessibility issues with defaulting to a small indent size, deno should reconsider.</p>
<p dir="auto">Ref: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="489059120" data-permission-text="Title is private" data-url="https://github.com/stylelint/stylelint/issues/4246" data-hovercard-type="issue" data-hovercard-url="/stylelint/stylelint/issues/4246/hovercard" href="https://github.com/stylelint/stylelint/issues/4246">stylelint/stylelint#4246</a><br>
<a href="https://www.reddit.com/r/javascript/comments/c8drjo/nobody_talks_about_the_real_reason_to_use_tabs/" rel="nofollow">https://www.reddit.com/r/javascript/comments/c8drjo/nobody_talks_about_the_real_reason_to_use_tabs/</a></p>
<p dir="auto">It is hard to read code when it is scrunched to one side. We have less of a need for a small indent size given the move from callbacks to async/await.</p>
<p dir="auto">Given the above, I'd like to see <code class="notranslate">deno fmt</code> consider defaulting to use tabs before 1.0. When editing a file with tabs, the user can choose whether an indent should visually be displayed as 2, 4, or even 8 spaces. Tabs would also be more consistent with <code class="notranslate">go fmt</code> which the tool is clearly inspired from. I'm not interested in starting a holy war on this though.</p>
<p dir="auto">I'd also like to see the ability to set the <code class="notranslate">deno fmt</code> CLI arguments as environment variables so users could use <code class="notranslate">deno fmt</code> if they strongly disagree with the defaults.</p> | 1 |
<p dir="auto">Here is my interceptor</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="axios.interceptors.response.use((response) => {
return response
}, function (error) {
// Do something with response error
if (error.response.status === 401) {
auth.logout()
router.replace('/login')
}
return Promise.reject(error)
})"><pre class="notranslate"><code class="notranslate">axios.interceptors.response.use((response) => {
return response
}, function (error) {
// Do something with response error
if (error.response.status === 401) {
auth.logout()
router.replace('/login')
}
return Promise.reject(error)
})
</code></pre></div>
<p dir="auto">During this call which returns a 401, the interceptor is not triggered. I can catch the reject() where I called method.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="axios.get('/api/employees/')
.then(response => {
commit('SET_EMPLOYEE_LIST', response.data)
resolve(response)
})
.catch(err => reject(err))"><pre class="notranslate"><code class="notranslate">axios.get('/api/employees/')
.then(response => {
commit('SET_EMPLOYEE_LIST', response.data)
resolve(response)
})
.catch(err => reject(err))
</code></pre></div>
<ul dir="auto">
<li>axios version: v0.16.2</li>
<li>Environment: chrome 59, windows 10</li>
</ul> | <p dir="auto">#### Summary</p>
<p dir="auto">I searched through all the issues and double checked the ones referenced in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="218798071" data-permission-text="Title is private" data-url="https://github.com/axios/axios/issues/812" data-hovercard-type="issue" data-hovercard-url="/axios/axios/issues/812/hovercard" href="https://github.com/axios/axios/issues/812">#812</a> but my problem seems to be different.</p>
<p dir="auto">My problem is that creating an instance does not copy over or use the interceptors added to the global Axios.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Axios from "axios";
Axios.interceptors.request.use((config) => {
console.log("Global Interceptor")
return config;
});
const axiosInstance = () => {
let instance = Axios.create();
console.log(Axios.interceptors.request); // Has 1
console.log(instance.interceptors.request); // Has 0
return instance;
}
axiosInstance().post("/test", { testing: "data" }); // Doesn't output "Global Interceptor"
Axios.post("/test", { testing: "data" }); // Outputs "Global Interceptor""><pre class="notranslate"><code class="notranslate">import Axios from "axios";
Axios.interceptors.request.use((config) => {
console.log("Global Interceptor")
return config;
});
const axiosInstance = () => {
let instance = Axios.create();
console.log(Axios.interceptors.request); // Has 1
console.log(instance.interceptors.request); // Has 0
return instance;
}
axiosInstance().post("/test", { testing: "data" }); // Doesn't output "Global Interceptor"
Axios.post("/test", { testing: "data" }); // Outputs "Global Interceptor"
</code></pre></div>
<p dir="auto">#### Context</p>
<ul dir="auto">
<li>Axios version: 0.16.2</li>
<li>Environment: Webpack 2.6.1, Chrome Canary 61.0.3147.0, Mac OS X</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/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.<br>
But I think that this issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="276196840" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/3319" data-hovercard-type="pull_request" data-hovercard-url="/vercel/next.js/pull/3319/hovercard" href="https://github.com/vercel/next.js/pull/3319">#3319</a> can be related and maybe solve the problem.</li>
</ul>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Based on what I have:<br>
I have a folder estructure working with <code class="notranslate">yarn workspaces</code> with multiple workspaces like:</p>
<p dir="auto">|-- packages<br>
|-- .babelrc<br>
..<br>
..<br>
..<br>
|----- shared<br>
|-------- components // named @org/components<br>
|-------- utils // named @org/utils<br>
|----- web<br>
|------- app // named @org/mainApp<br>
|--------- src<br>
|------------ next.config.js<br>
|------------ .babelrc<br>
|----------- pages<br>
....<br>
...<br>
|------- otherPackage // named @org/otherPackage</p>
<p dir="auto">Where <code class="notranslate">app</code> folder is a next.js app that <strong>import</strong> code from the other components.</p>
<p dir="auto">The dev mode of next is run from root folder using <code class="notranslate">npm run web</code> that call <code class="notranslate">next packages/web/app/src</code> to allow next to found the pages folder (and <code class="notranslate">next.config.js</code> and <code class="notranslate">.babelrc</code> )</p>
<p dir="auto">After run and start compiling, and get the "success" mensaje, some errors arise in the console on web loaded.<br>
Errors referring to the use of <code class="notranslate">type</code> and <code class="notranslate">import</code> keywords in the files that comes from the imported modules (modules named as <code class="notranslate">@org/</code> that lives inside the same repo but (maybe) in other workspaces).</p>
<p dir="auto">This means that next webpack configuration is not transpiling the imported files. (the <code class="notranslate">babel-plugin-transform-flow-strip-types</code> is installed in packages/web/app and also in the root folder)</p>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Should not have any error with the imported files and works as expected (no problem with es6 and flow).</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Create a project with yarn workspaces activated</li>
<li>Create at least two workspaces</li>
<li>Create a package inside a workspace that run with next</li>
<li>Import file from other workspaces</li>
</ol>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.2.3</td>
</tr>
<tr>
<td>node</td>
<td>9.3.0</td>
</tr>
<tr>
<td>OS</td>
<td>macosx</td>
</tr>
<tr>
<td>browser</td>
<td>safari/chrome</td>
</tr>
<tr>
<td>yarn</td>
<td>1.3.2</td>
</tr>
</tbody>
</table> | <p dir="auto">After configuring next with a webpack function it seems that the function gets called twice during all builds which results in ForkTsCheckerWebpackPlugin running lint/ts checks twice (in my setup).</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Create a next config with a webpack function which console.logs something</li>
<li>Run the app and see the message log twice.</li>
</ol>
<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>canary</td>
</tr>
<tr>
<td>node</td>
<td>6.11.5</td>
</tr>
<tr>
<td>OS</td>
<td>macosx</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">I am trying to call <code class="notranslate">setState({ flash: false })</code> followed by <code class="notranslate">setState({ flash: 'up' })</code> which should remove the flash class from the DOM element and add it again, therefore triggering the css animation defined on that class (it only works the first time).</p>
<p dir="auto">This is not working as expected, unless I introduce some timeouts. The first time the class is added, the animation is triggered. But subsequent calls to <code class="notranslate">componentWillReceiveProps</code> fail to trigger the animation. I'm not sure if this is an issue with the way React updates the DOM or an inherent limitation of CSS animations. I know React has some specialised utilities for animations but I'd rather keep the code below if there's any way to fix it.</p>
<p dir="auto">Stat.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React, { Component } from 'react'
import { Link } from 'react-router'
import styles from './Stat.scss'
export default class Stat extends Component {
constructor(props) {
super(props)
this.state = {
flash: false,
}
}
componentWillReceiveProps(nextProps) {
if (nextProps.count !== this.props.count) {
const flash = nextProps.count > this.props.count
? 'Up'
: 'Down'
this.setState({ flash: false }, () => {
this.setState({ flash })
})
}
}
render() {
const { count, name, href } = this.props
const { flash } = this.state
const flashClass = flash ? styles[`flash${flash}`] : ''
return (
<Link to={href} className="stat-link">
<div className={`stat-number ${flashClass}`}>
{count}
</div>
<div className="stat-label">{name}</div>
</Link>
)
}
}
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-v">Component</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Link</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react-router'</span>
<span class="pl-k">import</span> <span class="pl-s1">styles</span> <span class="pl-k">from</span> <span class="pl-s">'./Stat.scss'</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">class</span> <span class="pl-v">Stat</span> <span class="pl-k">extends</span> <span class="pl-v">Component</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</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-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">flash</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-en">componentWillReceiveProps</span><span class="pl-kos">(</span><span class="pl-s1">nextProps</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">nextProps</span><span class="pl-kos">.</span><span class="pl-c1">count</span> <span class="pl-c1">!==</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">count</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">flash</span> <span class="pl-c1">=</span> <span class="pl-s1">nextProps</span><span class="pl-kos">.</span><span class="pl-c1">count</span> <span class="pl-c1">></span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">count</span>
? <span class="pl-s">'Up'</span>
: <span class="pl-s">'Down'</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">flash</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> flash <span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> count<span class="pl-kos">,</span> name<span class="pl-kos">,</span> href <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> flash <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span>
<span class="pl-k">const</span> <span class="pl-s1">flashClass</span> <span class="pl-c1">=</span> <span class="pl-s1">flash</span> ? <span class="pl-s1">styles</span><span class="pl-kos">[</span><span class="pl-s">`flash<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">flash</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">]</span> : <span class="pl-s">''</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">Link</span> <span class="pl-c1">to</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">href</span><span class="pl-kos">}</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"stat-link"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s">`stat-number <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">flashClass</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">}</span><span class="pl-c1">></span>
<span class="pl-kos">{</span><span class="pl-s1">count</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-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"stat-label"</span><span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-s1">name</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><span class="pl-ent">Link</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">Stat.scss</p>
<div class="highlight highlight-source-css-scss notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$highlight-up-color: green;
$highlight-down-color: red;
@keyframes highlight-up {
0% {
color: $highlight-up-color;
}
100% {
color: default;
}
}
@keyframes highlight-down {
0% {
color: $highlight-down-color;
}
100% {
color: default;
}
}
.flashUp {
animation: highlight-up 2s;
}
.flashDown {
animation: highlight-down 2s;
}
"><pre class="notranslate"><span class="pl-v">$highlight-up-color</span>: <span class="pl-c1">green</span>;
<span class="pl-v">$highlight-down-color</span>: <span class="pl-c1">red</span>;
<span class="pl-k">@keyframes</span> <span class="pl-en">highlight-up</span> {
<span class="pl-e">0%</span> {
<span class="pl-c1"><span class="pl-c1">color</span></span>: <span class="pl-v">$highlight-up-color</span>;
}
<span class="pl-e">100%</span> {
<span class="pl-c1"><span class="pl-c1">color</span></span>: <span class="pl-c1">default</span>;
}
}
<span class="pl-k">@keyframes</span> <span class="pl-en">highlight-down</span> {
<span class="pl-e">0%</span> {
<span class="pl-c1"><span class="pl-c1">color</span></span>: <span class="pl-v">$highlight-down-color</span>;
}
<span class="pl-e">100%</span> {
<span class="pl-c1"><span class="pl-c1">color</span></span>: <span class="pl-c1">default</span>;
}
}
<span class="pl-e">.flashUp</span> {
<span class="pl-c1"><span class="pl-c1">animation</span></span>: highlight<span class="pl-c1">-</span>up <span class="pl-c1">2<span class="pl-k">s</span></span>;
}
<span class="pl-e">.flashDown</span> {
<span class="pl-c1"><span class="pl-c1">animation</span></span>: highlight<span class="pl-c1">-</span>down <span class="pl-c1">2<span class="pl-k">s</span></span>;
}
</pre></div> | <h3 dir="auto">Website or app</h3>
<p dir="auto"><a href="https://codesandbox.io/s/blissful-raman-2on7k2" rel="nofollow">https://codesandbox.io/s/blissful-raman-2on7k2</a></p>
<h3 dir="auto">Repro steps</h3>
<ol dir="auto">
<li>Create a react app</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yarn create react-app test-react
cd test-react
yarn start"><pre class="notranslate"><code class="notranslate">yarn create react-app test-react
cd test-react
yarn start
</code></pre></div>
<ol start="2" dir="auto">
<li>Create <code class="notranslate">.env.development</code> file in root.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="HTTPS=true
PORT=4100
BROWSER=none"><pre class="notranslate"><code class="notranslate">HTTPS=true
PORT=4100
BROWSER=none
</code></pre></div>
<ol start="3" dir="auto">
<li>Visit <a href="https://localhost:4100/" rel="nofollow">https://localhost:4100/</a> in Chrome v100.0.4896.127</li>
<li>Open React Devtools by inspecting page, some times it shows <code class="notranslate">Components</code> tab but in large application it does not show the <code class="notranslate">Components</code> tab. If it shows the tab the error message is sent to dev tools every second.</li>
<li>See error message in chrome://extensions/</li>
<li>This is not reproducible in Firefox v99.0.1.</li>
</ol>
<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"><em>No response</em></p>
<h3 dir="auto">DevTools version (automated)</h3>
<p dir="auto"><code class="notranslate">4.24.3 (3/30/2022)</code></p>
<h3 dir="auto">Error message (automated)</h3>
<p dir="auto"><code class="notranslate">Error in event handler: Error: Attempting to use a disconnected port object</code></p>
<h3 dir="auto">Error call stack (automated)</h3>
<p dir="auto"><code class="notranslate">build/background.js:139 (lOne)</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "/build/";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 115);
/******/ })
/************************************************************************/
/******/ ({
/***/ 115:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* global chrome */
const ports = {};
const IS_FIREFOX = navigator.userAgent.indexOf('Firefox') >= 0;
chrome.runtime.onConnect.addListener(function (port) {
let tab = null;
let name = null;
if (isNumeric(port.name)) {
tab = port.name;
name = 'devtools';
installContentScript(+port.name);
} else {
tab = port.sender.tab.id;
name = 'content-script';
}
if (!ports[tab]) {
ports[tab] = {
devtools: null,
'content-script': null
};
}
ports[tab][name] = port;
if (ports[tab].devtools && ports[tab]['content-script']) {
doublePipe(ports[tab].devtools, ports[tab]['content-script']);
}
});
function isNumeric(str) {
return +str + '' === str;
}
function installContentScript(tabId) {
chrome.tabs.executeScript(tabId, {
file: '/build/contentScript.js'
}, function () {});
}
function doublePipe(one, two) {
one.onMessage.addListener(lOne);
function lOne(message) {
two.postMessage(message);
}
two.onMessage.addListener(lTwo);
function lTwo(message) {
one.postMessage(message);
}
function shutdown() {
one.onMessage.removeListener(lOne);
two.onMessage.removeListener(lTwo);
one.disconnect();
two.disconnect();
}
one.onDisconnect.addListener(shutdown);
two.onDisconnect.addListener(shutdown);
}
function setIconAndPopup(reactBuildType, tabId) {
chrome.browserAction.setIcon({
tabId: tabId,
path: {
'16': 'icons/16-' + reactBuildType + '.png',
'32': 'icons/32-' + reactBuildType + '.png',
'48': 'icons/48-' + reactBuildType + '.png',
'128': 'icons/128-' + reactBuildType + '.png'
}
});
chrome.browserAction.setPopup({
tabId: tabId,
popup: 'popups/' + reactBuildType + '.html'
});
}
function isRestrictedBrowserPage(url) {
return !url || new URL(url).protocol === 'chrome:';
}
function checkAndHandleRestrictedPageIfSo(tab) {
if (tab && isRestrictedBrowserPage(tab.url)) {
setIconAndPopup('restricted', tab.id);
}
} // update popup page of any existing open tabs, if they are restricted browser pages.
// we can't update for any other types (prod,dev,outdated etc)
// as the content script needs to be injected at document_start itself for those kinds of detection
// TODO: Show a different popup page(to reload current page probably) for old tabs, opened before the extension is installed
if (!IS_FIREFOX) {
chrome.tabs.query({}, tabs => tabs.forEach(checkAndHandleRestrictedPageIfSo));
chrome.tabs.onCreated.addListener((tabId, changeInfo, tab) => checkAndHandleRestrictedPageIfSo(tab));
} // Listen to URL changes on the active tab and update the DevTools icon.
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
if (IS_FIREFOX) {
// We don't properly detect protected URLs in Firefox at the moment.
// However we can reset the DevTools icon to its loading state when the URL changes.
// It will be updated to the correct icon by the onMessage callback below.
if (tab.active && changeInfo.status === 'loading') {
setIconAndPopup('disabled', tabId);
}
} else {
// Don't reset the icon to the loading state for Chrome or Edge.
// The onUpdated callback fires more frequently for these browsers,
// often after onMessage has been called.
checkAndHandleRestrictedPageIfSo(tab);
}
});
chrome.runtime.onMessage.addListener((request, sender) => {
var _request$payload, _ports$id;
const tab = sender.tab;
if (tab) {
const id = tab.id; // This is sent from the hook content script.
// It tells us a renderer has attached.
if (request.hasDetectedReact) {
// We use browserAction instead of pageAction because this lets us
// display a custom default popup when React is *not* detected.
// It is specified in the manifest.
setIconAndPopup(request.reactBuildType, id);
} else {
switch ((_request$payload = request.payload) === null || _request$payload === void 0 ? void 0 : _request$payload.type) {
case 'fetch-file-with-cache-complete':
case 'fetch-file-with-cache-error':
// Forward the result of fetch-in-page requests back to the extension.
const devtools = (_ports$id = ports[id]) === null || _ports$id === void 0 ? void 0 : _ports$id.devtools;
if (devtools) {
devtools.postMessage(request);
}
break;
}
}
}
});
/***/ })
/******/ });"><pre class="notranslate"><code class="notranslate">/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "/build/";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 115);
/******/ })
/************************************************************************/
/******/ ({
/***/ 115:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* global chrome */
const ports = {};
const IS_FIREFOX = navigator.userAgent.indexOf('Firefox') >= 0;
chrome.runtime.onConnect.addListener(function (port) {
let tab = null;
let name = null;
if (isNumeric(port.name)) {
tab = port.name;
name = 'devtools';
installContentScript(+port.name);
} else {
tab = port.sender.tab.id;
name = 'content-script';
}
if (!ports[tab]) {
ports[tab] = {
devtools: null,
'content-script': null
};
}
ports[tab][name] = port;
if (ports[tab].devtools && ports[tab]['content-script']) {
doublePipe(ports[tab].devtools, ports[tab]['content-script']);
}
});
function isNumeric(str) {
return +str + '' === str;
}
function installContentScript(tabId) {
chrome.tabs.executeScript(tabId, {
file: '/build/contentScript.js'
}, function () {});
}
function doublePipe(one, two) {
one.onMessage.addListener(lOne);
function lOne(message) {
two.postMessage(message);
}
two.onMessage.addListener(lTwo);
function lTwo(message) {
one.postMessage(message);
}
function shutdown() {
one.onMessage.removeListener(lOne);
two.onMessage.removeListener(lTwo);
one.disconnect();
two.disconnect();
}
one.onDisconnect.addListener(shutdown);
two.onDisconnect.addListener(shutdown);
}
function setIconAndPopup(reactBuildType, tabId) {
chrome.browserAction.setIcon({
tabId: tabId,
path: {
'16': 'icons/16-' + reactBuildType + '.png',
'32': 'icons/32-' + reactBuildType + '.png',
'48': 'icons/48-' + reactBuildType + '.png',
'128': 'icons/128-' + reactBuildType + '.png'
}
});
chrome.browserAction.setPopup({
tabId: tabId,
popup: 'popups/' + reactBuildType + '.html'
});
}
function isRestrictedBrowserPage(url) {
return !url || new URL(url).protocol === 'chrome:';
}
function checkAndHandleRestrictedPageIfSo(tab) {
if (tab && isRestrictedBrowserPage(tab.url)) {
setIconAndPopup('restricted', tab.id);
}
} // update popup page of any existing open tabs, if they are restricted browser pages.
// we can't update for any other types (prod,dev,outdated etc)
// as the content script needs to be injected at document_start itself for those kinds of detection
// TODO: Show a different popup page(to reload current page probably) for old tabs, opened before the extension is installed
if (!IS_FIREFOX) {
chrome.tabs.query({}, tabs => tabs.forEach(checkAndHandleRestrictedPageIfSo));
chrome.tabs.onCreated.addListener((tabId, changeInfo, tab) => checkAndHandleRestrictedPageIfSo(tab));
} // Listen to URL changes on the active tab and update the DevTools icon.
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
if (IS_FIREFOX) {
// We don't properly detect protected URLs in Firefox at the moment.
// However we can reset the DevTools icon to its loading state when the URL changes.
// It will be updated to the correct icon by the onMessage callback below.
if (tab.active && changeInfo.status === 'loading') {
setIconAndPopup('disabled', tabId);
}
} else {
// Don't reset the icon to the loading state for Chrome or Edge.
// The onUpdated callback fires more frequently for these browsers,
// often after onMessage has been called.
checkAndHandleRestrictedPageIfSo(tab);
}
});
chrome.runtime.onMessage.addListener((request, sender) => {
var _request$payload, _ports$id;
const tab = sender.tab;
if (tab) {
const id = tab.id; // This is sent from the hook content script.
// It tells us a renderer has attached.
if (request.hasDetectedReact) {
// We use browserAction instead of pageAction because this lets us
// display a custom default popup when React is *not* detected.
// It is specified in the manifest.
setIconAndPopup(request.reactBuildType, id);
} else {
switch ((_request$payload = request.payload) === null || _request$payload === void 0 ? void 0 : _request$payload.type) {
case 'fetch-file-with-cache-complete':
case 'fetch-file-with-cache-error':
// Forward the result of fetch-in-page requests back to the extension.
const devtools = (_ports$id = ports[id]) === null || _ports$id === void 0 ? void 0 : _ports$id.devtools;
if (devtools) {
devtools.postMessage(request);
}
break;
}
}
}
});
/***/ })
/******/ });
</code></pre></div>
<h3 dir="auto">Error component stack (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">GitHub query string (automated)</h3>
<p dir="auto"><em>No response</em></p> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="interface OverloadedMethod {
(a:string): Object;
(a:number): void;
}
const bar : string|number = 0;
const foo : OverloadedMethod = null;
foo(bar) // red squiggles here under bar: Argument of type 'string | number' is not assignable to 'string'. Type 'string | number' is not assignable to 'number'"><pre class="notranslate"><code class="notranslate">interface OverloadedMethod {
(a:string): Object;
(a:number): void;
}
const bar : string|number = 0;
const foo : OverloadedMethod = null;
foo(bar) // red squiggles here under bar: Argument of type 'string | number' is not assignable to 'string'. Type 'string | number' is not assignable to 'number'
</code></pre></div>
<p dir="auto">This is a minimal example of where typescript complains that <code class="notranslate">bar</code> cannot unify with any of the individual methods on <code class="notranslate">foo</code>, even though it could reasonable deduce that since there's only one implementation of said method, that <code class="notranslate">(a:string|number) : Object|void</code> is a perfectly cromulent alternative.</p>
<p dir="auto">Looks like this is a consequence of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118539367" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/5766" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/5766/hovercard" href="https://github.com/microsoft/TypeScript/issues/5766">#5766</a> and it rears it head when dealing w/ Express routing's d.ts.</p> | <p dir="auto">The type guard <code class="notranslate">instanceof Array</code> does not seem to recognize the type of the interface IMessage.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="interface IMessage {
name: string;
}
function itemFn(pipIn: IMessage[]) {
return pipIn;
}
function baseFn(pipIn: IMessage) {
return [pipIn];
}
function main(pipIn: IMessage|IMessage[]) {
if (pipIn instanceof Array) {
return itemFn(pipIn);
} else {
return baseFn(pipIn);
}
}"><pre class="notranslate"><code class="notranslate">interface IMessage {
name: string;
}
function itemFn(pipIn: IMessage[]) {
return pipIn;
}
function baseFn(pipIn: IMessage) {
return [pipIn];
}
function main(pipIn: IMessage|IMessage[]) {
if (pipIn instanceof Array) {
return itemFn(pipIn);
} else {
return baseFn(pipIn);
}
}
</code></pre></div>
<p dir="auto">The compiler outputs the error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="unions6.ts(19,23): error TS2345: Argument of type 'IMessage | IMessage[]' is not assignable to parameter of type 'IMessage'.
Type 'IMessage[]' is not assignable to type 'IMessage'."><pre class="notranslate"><code class="notranslate">unions6.ts(19,23): error TS2345: Argument of type 'IMessage | IMessage[]' is not assignable to parameter of type 'IMessage'.
Type 'IMessage[]' is not assignable to type 'IMessage'.
</code></pre></div>
<p dir="auto">I'm using master of today.</p>
<p dir="auto">Thanks</p> | 0 |
<p dir="auto">Following up on <a href="https://discourse.julialang.org/t/inv-causes-stack-overflow-on-julia-1-7-0-and-mac-os/72411" rel="nofollow">this Discourse post</a>. According to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stevengj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stevengj">@stevengj</a>, this issue might be solved by the resolution <a href="https://github.com/JuliaPackaging/Yggdrasil/issues/3996" data-hovercard-type="issue" data-hovercard-url="/JuliaPackaging/Yggdrasil/issues/3996/hovercard">this Yggdrasil issue</a>.</p>
<p dir="auto">I am running into an odd error when using Julia 1.7.0 on my 2017 Mac Book Pro (Intel i7) on Mac OS 12.01. In particular, executing</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="n = 1000;
A = randn(Float32, n, n);
inv(A)
ERROR: StackOverflowError:"><pre class="notranslate">n <span class="pl-k">=</span> <span class="pl-c1">1000</span>;
A <span class="pl-k">=</span> <span class="pl-c1">randn</span>(Float32, n, n);
<span class="pl-c1">inv</span>(A)
ERROR<span class="pl-k">:</span> StackOverflowError<span class="pl-k">:</span></pre></div>
<p dir="auto">With no further stack trace printed afterwards.</p>
<ul dir="auto">
<li>The same error occurs with <code class="notranslate">ComplexF32</code> and <code class="notranslate">ComplexF64</code> types, but not <code class="notranslate">Float64</code>.</li>
<li>According to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/carstenbauer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/carstenbauer">@carstenbauer</a>, the issue is also present in 1.6.4, 1.7.0.rc-2, 1.7.0.rc-3, 1.7.0.</li>
<li>1.6.3 and the current master branch do not exhibit the issue.</li>
</ul>
<p dir="auto">More detailed info: On my machine, inv works for all element types up to a certain size. For <code class="notranslate">Float32</code>, the failure size is 514 by 514 and for the complex types, it’s 258 by 258. Below these cutoffs, everything works as usual.</p> | <p dir="auto">On macos, using version <code class="notranslate">1.7.0-rc2</code>, julia just shows <code class="notranslate">StackOverflowError</code> with no other info when taking the matrix exp with a ~ 300x300 complex-valued matrix. Minimum example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="using LinearAlgebra
n = 300
m = rand(ComplexF64, n, n);
mex = exp(m);"><pre class="notranslate"><code class="notranslate">using LinearAlgebra
n = 300
m = rand(ComplexF64, n, n);
mex = exp(m);
</code></pre></div>
<p dir="auto">Alro ran with <code class="notranslate">--startup-file=no</code> to make sure it's not some clash with other packages.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25255906/140830950-e321af22-8fa9-4175-8cac-b1412da98143.png"><img width="1187" alt="Screen Shot 2021-11-08 at 5 52 35 PM" src="https://user-images.githubusercontent.com/25255906/140830950-e321af22-8fa9-4175-8cac-b1412da98143.png" style="max-width: 100%;"></a></p>
<p dir="auto">my <code class="notranslate">versioninfo()</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 1.7.0-rc2
Commit f23fc0d27a (2021-10-20 12:45 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.5.0)
CPU: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
JULIA_MATHLINK = /Applications/Mathematica.app/Contents/Frameworks/mathlink.framework
JULIA_MATHKERNEL = /Applications/Mathematica.app/Contents/MacOS/MathKernel"><pre class="notranslate"><code class="notranslate">Julia Version 1.7.0-rc2
Commit f23fc0d27a (2021-10-20 12:45 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.5.0)
CPU: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
JULIA_MATHLINK = /Applications/Mathematica.app/Contents/Frameworks/mathlink.framework
JULIA_MATHKERNEL = /Applications/Mathematica.app/Contents/MacOS/MathKernel
</code></pre></div>
<p dir="auto">Same code runs fine with <code class="notranslate">Version 1.6.3 (2021-09-23)</code>.</p>
<p dir="auto">Hardware: Macbook pro (intel) with 16 GB ram, activity monitor shows low memory usage.</p>
<p dir="auto">In addition, the same code sometimes gives <code class="notranslate">ERROR: LoadError: ReadOnlyMemoryError()</code>, not sure how to reproduce that one...</p>
<p dir="auto">Thanks!</p> | 1 |
<p dir="auto">The imputer should have an option to add a binary indicator feature (for each possibly missing feature) that indicate whether a feature was imputed or not (0 or 1).<br>
In applications, missingness is often informative.</p> | <h4 dir="auto">Describe the workflow you want to enable</h4>
<p dir="auto">It would be nice if the <code class="notranslate">ColumnTransformer</code> would <code class="notranslate">get_feature_names</code> from even transformers that don't implement <code class="notranslate">get_feature_names</code>, and used the full API of <code class="notranslate">get_feature_names</code> in transformers where it has been implemented.</p>
<h4 dir="auto">Describe your proposed solution</h4>
<h5 dir="auto">Current:</h5>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" def get_feature_names(self):
"""Get feature names from all transformers.
Returns
-------
feature_names : list of strings
Names of the features produced by transform.
"""
check_is_fitted(self)
feature_names = []
for name, trans, column, _ in self._iter(fitted=True):
if trans == 'drop' or (
hasattr(column, '__len__') and not len(column)):
continue
if trans == 'passthrough':
if hasattr(self, '_df_columns'):
if ((not isinstance(column, slice))
and all(isinstance(col, str) for col in column)):
feature_names.extend(column)
else:
feature_names.extend(self._df_columns[column])
else:
indices = np.arange(self._n_features)
feature_names.extend(['x%d' % i for i in indices[column]])
continue
if not hasattr(trans, 'get_feature_names'):
raise AttributeError("Transformer %s (type %s) does not "
"provide get_feature_names."
% (str(name), type(trans).__name__))
feature_names.extend([name + "__" + f for f in
trans.get_feature_names()])
return feature_names"><pre class="notranslate"> <span class="pl-k">def</span> <span class="pl-en">get_feature_names</span>(<span class="pl-s1">self</span>):
<span class="pl-s">"""Get feature names from all transformers.</span>
<span class="pl-s"> Returns</span>
<span class="pl-s"> -------</span>
<span class="pl-s"> feature_names : list of strings</span>
<span class="pl-s"> Names of the features produced by transform.</span>
<span class="pl-s"> """</span>
<span class="pl-en">check_is_fitted</span>(<span class="pl-s1">self</span>)
<span class="pl-s1">feature_names</span> <span class="pl-c1">=</span> []
<span class="pl-k">for</span> <span class="pl-s1">name</span>, <span class="pl-s1">trans</span>, <span class="pl-s1">column</span>, <span class="pl-s1">_</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-en">_iter</span>(<span class="pl-s1">fitted</span><span class="pl-c1">=</span><span class="pl-c1">True</span>):
<span class="pl-k">if</span> <span class="pl-s1">trans</span> <span class="pl-c1">==</span> <span class="pl-s">'drop'</span> <span class="pl-c1">or</span> (
<span class="pl-en">hasattr</span>(<span class="pl-s1">column</span>, <span class="pl-s">'__len__'</span>) <span class="pl-c1">and</span> <span class="pl-c1">not</span> <span class="pl-en">len</span>(<span class="pl-s1">column</span>)):
<span class="pl-k">continue</span>
<span class="pl-k">if</span> <span class="pl-s1">trans</span> <span class="pl-c1">==</span> <span class="pl-s">'passthrough'</span>:
<span class="pl-k">if</span> <span class="pl-en">hasattr</span>(<span class="pl-s1">self</span>, <span class="pl-s">'_df_columns'</span>):
<span class="pl-k">if</span> ((<span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">column</span>, <span class="pl-s1">slice</span>))
<span class="pl-c1">and</span> <span class="pl-en">all</span>(<span class="pl-en">isinstance</span>(<span class="pl-s1">col</span>, <span class="pl-s1">str</span>) <span class="pl-k">for</span> <span class="pl-s1">col</span> <span class="pl-c1">in</span> <span class="pl-s1">column</span>)):
<span class="pl-s1">feature_names</span>.<span class="pl-en">extend</span>(<span class="pl-s1">column</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">feature_names</span>.<span class="pl-en">extend</span>(<span class="pl-s1">self</span>.<span class="pl-s1">_df_columns</span>[<span class="pl-s1">column</span>])
<span class="pl-k">else</span>:
<span class="pl-s1">indices</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-s1">self</span>.<span class="pl-s1">_n_features</span>)
<span class="pl-s1">feature_names</span>.<span class="pl-en">extend</span>([<span class="pl-s">'x%d'</span> <span class="pl-c1">%</span> <span class="pl-s1">i</span> <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-s1">indices</span>[<span class="pl-s1">column</span>]])
<span class="pl-k">continue</span>
<span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">hasattr</span>(<span class="pl-s1">trans</span>, <span class="pl-s">'get_feature_names'</span>):
<span class="pl-k">raise</span> <span class="pl-v">AttributeError</span>(<span class="pl-s">"Transformer %s (type %s) does not "</span>
<span class="pl-s">"provide get_feature_names."</span>
<span class="pl-c1">%</span> (<span class="pl-en">str</span>(<span class="pl-s1">name</span>), <span class="pl-en">type</span>(<span class="pl-s1">trans</span>).<span class="pl-s1">__name__</span>))
<span class="pl-s1">feature_names</span>.<span class="pl-en">extend</span>([<span class="pl-s1">name</span> <span class="pl-c1">+</span> <span class="pl-s">"__"</span> <span class="pl-c1">+</span> <span class="pl-s1">f</span> <span class="pl-k">for</span> <span class="pl-s1">f</span> <span class="pl-c1">in</span>
<span class="pl-s1">trans</span>.<span class="pl-en">get_feature_names</span>()])
<span class="pl-k">return</span> <span class="pl-s1">feature_names</span></pre></div>
<p dir="auto">If a transformer does not implement get_feature_names, it simply raises an error.</p>
<p dir="auto">If a transformer DOES implement get_feature_names, the ColumnTransformer ignores part of that API (ignoring fitted column names, using instead an integer column index).</p>
<h5 dir="auto">Proposed Solution:</h5>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" def get_feature_names(self):
from sklearn.utils.validation import check_is_fitted
from numpy import arange
"""Get feature names from all transformers.
Returns
-------
feature_names : list of strings
Names of the features produced by transform.
"""
check_is_fitted(self)
feature_names = []
for name, trans, column, _ in self._iter(fitted=True):
if trans == 'drop' or (
hasattr(column, '__len__') and not len(column)):
continue
if trans == 'passthrough':
if hasattr(self, '_df_columns'):
if ((not isinstance(column, slice))
and all(isinstance(col, str) for col in column)):
feature_names.extend(column)
else:
feature_names.extend(self._df_columns[column])
else:
indices = arange(self._n_features)
feature_names.extend(['x%d' % i for i in indices[column]])
continue
if not hasattr(trans, 'get_feature_names'):
# ADDED SECTION A
if hasattr(self, '_df_columns'):
if ((not isinstance(column, slice))
and all(isinstance(col, str) for col in column)):
feature_names.extend(f'{name}_{col}' for col in column)
else:
feature_names.extend(
f'{name}_{col}'
for col in self._df_columns[column]
)
else:
indices = arange(self._n_features)
feature_names.extend(['x%d' % i for i in indices[column]])
continue
# END SECTION A
# ADDED SECTION B
gfn_args = inspect.getfullargspec(trans.get_feature_names).args
args_to_send = []
if ('input_features' in gfn_args) and \
not isinstance(column, slice):
args_to_send = [column]
feature_names.extend([name + "__" + f for f in
trans.get_feature_names(*args_to_send)])
# END SECTION B
return feature_names"><pre class="notranslate"> <span class="pl-k">def</span> <span class="pl-en">get_feature_names</span>(<span class="pl-s1">self</span>):
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">validation</span> <span class="pl-k">import</span> <span class="pl-s1">check_is_fitted</span>
<span class="pl-k">from</span> <span class="pl-s1">numpy</span> <span class="pl-k">import</span> <span class="pl-s1">arange</span>
<span class="pl-s">"""Get feature names from all transformers.</span>
<span class="pl-s"> Returns</span>
<span class="pl-s"> -------</span>
<span class="pl-s"> feature_names : list of strings</span>
<span class="pl-s"> Names of the features produced by transform.</span>
<span class="pl-s"> """</span>
<span class="pl-en">check_is_fitted</span>(<span class="pl-s1">self</span>)
<span class="pl-s1">feature_names</span> <span class="pl-c1">=</span> []
<span class="pl-k">for</span> <span class="pl-s1">name</span>, <span class="pl-s1">trans</span>, <span class="pl-s1">column</span>, <span class="pl-s1">_</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-en">_iter</span>(<span class="pl-s1">fitted</span><span class="pl-c1">=</span><span class="pl-c1">True</span>):
<span class="pl-k">if</span> <span class="pl-s1">trans</span> <span class="pl-c1">==</span> <span class="pl-s">'drop'</span> <span class="pl-c1">or</span> (
<span class="pl-en">hasattr</span>(<span class="pl-s1">column</span>, <span class="pl-s">'__len__'</span>) <span class="pl-c1">and</span> <span class="pl-c1">not</span> <span class="pl-en">len</span>(<span class="pl-s1">column</span>)):
<span class="pl-k">continue</span>
<span class="pl-k">if</span> <span class="pl-s1">trans</span> <span class="pl-c1">==</span> <span class="pl-s">'passthrough'</span>:
<span class="pl-k">if</span> <span class="pl-en">hasattr</span>(<span class="pl-s1">self</span>, <span class="pl-s">'_df_columns'</span>):
<span class="pl-k">if</span> ((<span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">column</span>, <span class="pl-s1">slice</span>))
<span class="pl-c1">and</span> <span class="pl-en">all</span>(<span class="pl-en">isinstance</span>(<span class="pl-s1">col</span>, <span class="pl-s1">str</span>) <span class="pl-k">for</span> <span class="pl-s1">col</span> <span class="pl-c1">in</span> <span class="pl-s1">column</span>)):
<span class="pl-s1">feature_names</span>.<span class="pl-en">extend</span>(<span class="pl-s1">column</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">feature_names</span>.<span class="pl-en">extend</span>(<span class="pl-s1">self</span>.<span class="pl-s1">_df_columns</span>[<span class="pl-s1">column</span>])
<span class="pl-k">else</span>:
<span class="pl-s1">indices</span> <span class="pl-c1">=</span> <span class="pl-en">arange</span>(<span class="pl-s1">self</span>.<span class="pl-s1">_n_features</span>)
<span class="pl-s1">feature_names</span>.<span class="pl-en">extend</span>([<span class="pl-s">'x%d'</span> <span class="pl-c1">%</span> <span class="pl-s1">i</span> <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-s1">indices</span>[<span class="pl-s1">column</span>]])
<span class="pl-k">continue</span>
<span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">hasattr</span>(<span class="pl-s1">trans</span>, <span class="pl-s">'get_feature_names'</span>):
<span class="pl-c"># ADDED SECTION A</span>
<span class="pl-k">if</span> <span class="pl-en">hasattr</span>(<span class="pl-s1">self</span>, <span class="pl-s">'_df_columns'</span>):
<span class="pl-k">if</span> ((<span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">column</span>, <span class="pl-s1">slice</span>))
<span class="pl-c1">and</span> <span class="pl-en">all</span>(<span class="pl-en">isinstance</span>(<span class="pl-s1">col</span>, <span class="pl-s1">str</span>) <span class="pl-k">for</span> <span class="pl-s1">col</span> <span class="pl-c1">in</span> <span class="pl-s1">column</span>)):
<span class="pl-s1">feature_names</span>.<span class="pl-en">extend</span>(<span class="pl-s">f'<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">name</span><span class="pl-kos">}</span></span>_<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">col</span><span class="pl-kos">}</span></span>'</span> <span class="pl-k">for</span> <span class="pl-s1">col</span> <span class="pl-c1">in</span> <span class="pl-s1">column</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">feature_names</span>.<span class="pl-en">extend</span>(
<span class="pl-s">f'<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">name</span><span class="pl-kos">}</span></span>_<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">col</span><span class="pl-kos">}</span></span>'</span>
<span class="pl-k">for</span> <span class="pl-s1">col</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">_df_columns</span>[<span class="pl-s1">column</span>]
)
<span class="pl-k">else</span>:
<span class="pl-s1">indices</span> <span class="pl-c1">=</span> <span class="pl-en">arange</span>(<span class="pl-s1">self</span>.<span class="pl-s1">_n_features</span>)
<span class="pl-s1">feature_names</span>.<span class="pl-en">extend</span>([<span class="pl-s">'x%d'</span> <span class="pl-c1">%</span> <span class="pl-s1">i</span> <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-s1">indices</span>[<span class="pl-s1">column</span>]])
<span class="pl-k">continue</span>
<span class="pl-c"># END SECTION A</span>
<span class="pl-c"># ADDED SECTION B</span>
<span class="pl-s1">gfn_args</span> <span class="pl-c1">=</span> <span class="pl-s1">inspect</span>.<span class="pl-en">getfullargspec</span>(<span class="pl-s1">trans</span>.<span class="pl-s1">get_feature_names</span>).<span class="pl-s1">args</span>
<span class="pl-s1">args_to_send</span> <span class="pl-c1">=</span> []
<span class="pl-k">if</span> (<span class="pl-s">'input_features'</span> <span class="pl-c1">in</span> <span class="pl-s1">gfn_args</span>) <span class="pl-c1">and</span> \
<span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">column</span>, <span class="pl-s1">slice</span>):
<span class="pl-s1">args_to_send</span> <span class="pl-c1">=</span> [<span class="pl-s1">column</span>]
<span class="pl-s1">feature_names</span>.<span class="pl-en">extend</span>([<span class="pl-s1">name</span> <span class="pl-c1">+</span> <span class="pl-s">"__"</span> <span class="pl-c1">+</span> <span class="pl-s1">f</span> <span class="pl-k">for</span> <span class="pl-s1">f</span> <span class="pl-c1">in</span>
<span class="pl-s1">trans</span>.<span class="pl-en">get_feature_names</span>(<span class="pl-c1">*</span><span class="pl-s1">args_to_send</span>)])
<span class="pl-c"># END SECTION B</span>
<span class="pl-k">return</span> <span class="pl-s1">feature_names</span></pre></div>
<h6 dir="auto">Section A adds:</h6>
<p dir="auto"><code class="notranslate"><<transformer name>>_<<column>></code> for each transformer that doesn't implement <code class="notranslate">get_feature_names</code></p>
<h6 dir="auto">Section A removes:</h6>
<p dir="auto">Raising an error</p>
<h6 dir="auto">Section B adds:</h6>
<p dir="auto"><code class="notranslate"><<transformer name>>__<<output of get_feature_names>></code> for the transformer by sending in the column names it received at fit.</p>
<p dir="auto">So - if the transformer doesn't implement <code class="notranslate">get_feature_names</code>, we either return the column names (in the case of a 1:1 transformation), or an integer index.<br>
If the transformer DOES implement <code class="notranslate">get_feature_names</code>, we try to get the original feature names that were fed in, and use them to get more descriptive feature names from each transformer.<br>
If that isn't possible, we fall back to the original behavior.</p>
<h4 dir="auto">Describe alternatives you've considered, if relevant</h4>
<p dir="auto">The alternative is to stay with what it is. But I think this is a valuable addition.</p>
<h4 dir="auto">Additional context</h4>
<p dir="auto">I know I haven't considered every eventuality, which is why there is not a pull request associated with this feature request. But I do think I'm close, and I would welcome any input.</p> | 0 |
<p dir="auto">I have a large mesh, which I intend to render without smooth shading. As such, there is no point calculating vertex normals. Normally, this is ok, since I can do:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="geom.computeFaceNormals();
if(smoothShading) geom.computeVertexNormals();"><pre class="notranslate"><code class="notranslate">geom.computeFaceNormals();
if(smoothShading) geom.computeVertexNormals();
</code></pre></div>
<p dir="auto">However, when I do <code class="notranslate">geometry.computeMorphNormals()</code>, it does both steps at once. Could this be sensibly split into two distinct steps?</p>
<p dir="auto">At present, I've just hacked in an impaired version of <code class="notranslate">THREE.Geometry.prototype.computeMorphNormals</code> that doesn't touch vertex normals, but I'm not keen on the code duplication:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
// Calculate only face normals, not morph normals, which is much faster
THREE.Geometry.prototype.computeMorphFaceNormals = function () {
var i, il, f, fl, face;
// save original normals
// - create temp variables on first access
// otherwise just copy (for faster repeated calls)
for ( f = 0, fl = this.faces.length; f < fl; f ++ ) {
face = this.faces[ f ];
if ( ! face.__originalFaceNormal ) {
face.__originalFaceNormal = face.normal.clone();
} else {
face.__originalFaceNormal.copy( face.normal );
}
}
// use temp geometry to compute face and vertex normals for each morph
var tmpGeo = new THREE.Geometry();
tmpGeo.faces = this.faces;
for ( i = 0, il = this.morphTargets.length; i < il; i ++ ) {
// create on first access
if ( ! this.morphNormals[ i ] ) {
this.morphNormals[ i ] = {};
this.morphNormals[ i ].faceNormals = [];
var dstNormalsFace = this.morphNormals[ i ].faceNormals;
var faceNormal;
for ( f = 0, fl = this.faces.length; f < fl; f ++ ) {
face = this.faces[ f ];
faceNormal = new THREE.Vector3();
dstNormalsFace.push( faceNormal );
}
}
var morphNormals = this.morphNormals[ i ];
// set vertices to morph target
tmpGeo.vertices = this.morphTargets[ i ].vertices;
// compute morph normals
tmpGeo.computeFaceNormals();
// store morph normals
var faceNormal;
for ( f = 0, fl = this.faces.length; f < fl; f ++ ) {
face = this.faces[ f ];
faceNormal = morphNormals.faceNormals[ f ];
faceNormal.copy( face.normal );
}
}
// restore original normals
for ( f = 0, fl = this.faces.length; f < fl; f ++ ) {
face = this.faces[ f ];
face.normal = face.__originalFaceNormal;
}
}"><pre class="notranslate"><span class="pl-c">// Calculate only face normals, not morph normals, which is much faster</span>
<span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Geometry</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">computeMorphFaceNormals</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">i</span><span class="pl-kos">,</span> <span class="pl-s1">il</span><span class="pl-kos">,</span> <span class="pl-s1">f</span><span class="pl-kos">,</span> <span class="pl-s1">fl</span><span class="pl-kos">,</span> <span class="pl-s1">face</span><span class="pl-kos">;</span>
<span class="pl-c">// save original normals</span>
<span class="pl-c">// - create temp variables on first access</span>
<span class="pl-c">// otherwise just copy (for faster repeated calls)</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span> <span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">fl</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">faces</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">f</span> <span class="pl-c1"><</span> <span class="pl-s1">fl</span><span class="pl-kos">;</span> <span class="pl-s1">f</span> <span class="pl-c1">++</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">face</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">faces</span><span class="pl-kos">[</span> <span class="pl-s1">f</span> <span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-c1">!</span> <span class="pl-s1">face</span><span class="pl-kos">.</span><span class="pl-c1">__originalFaceNormal</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">face</span><span class="pl-kos">.</span><span class="pl-c1">__originalFaceNormal</span> <span class="pl-c1">=</span> <span class="pl-s1">face</span><span class="pl-kos">.</span><span class="pl-c1">normal</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-s1">face</span><span class="pl-kos">.</span><span class="pl-c1">__originalFaceNormal</span><span class="pl-kos">.</span><span class="pl-en">copy</span><span class="pl-kos">(</span> <span class="pl-s1">face</span><span class="pl-kos">.</span><span class="pl-c1">normal</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-c">// use temp geometry to compute face and vertex normals for each morph</span>
<span class="pl-k">var</span> <span class="pl-s1">tmpGeo</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">Geometry</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">tmpGeo</span><span class="pl-kos">.</span><span class="pl-c1">faces</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">faces</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">il</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">morphTargets</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1"><</span> <span class="pl-s1">il</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">++</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// create on first access</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-c1">!</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">morphNormals</span><span class="pl-kos">[</span> <span class="pl-s1">i</span> <span class="pl-kos">]</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">morphNormals</span><span class="pl-kos">[</span> <span class="pl-s1">i</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-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">morphNormals</span><span class="pl-kos">[</span> <span class="pl-s1">i</span> <span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">faceNormals</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">var</span> <span class="pl-s1">dstNormalsFace</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">morphNormals</span><span class="pl-kos">[</span> <span class="pl-s1">i</span> <span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">faceNormals</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">faceNormal</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span> <span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">fl</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">faces</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">f</span> <span class="pl-c1"><</span> <span class="pl-s1">fl</span><span class="pl-kos">;</span> <span class="pl-s1">f</span> <span class="pl-c1">++</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">face</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">faces</span><span class="pl-kos">[</span> <span class="pl-s1">f</span> <span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-s1">faceNormal</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">Vector3</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">dstNormalsFace</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span> <span class="pl-s1">faceNormal</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-s1">morphNormals</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">morphNormals</span><span class="pl-kos">[</span> <span class="pl-s1">i</span> <span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-c">// set vertices to morph target</span>
<span class="pl-s1">tmpGeo</span><span class="pl-kos">.</span><span class="pl-c1">vertices</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">morphTargets</span><span class="pl-kos">[</span> <span class="pl-s1">i</span> <span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">vertices</span><span class="pl-kos">;</span>
<span class="pl-c">// compute morph normals</span>
<span class="pl-s1">tmpGeo</span><span class="pl-kos">.</span><span class="pl-en">computeFaceNormals</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// store morph normals</span>
<span class="pl-k">var</span> <span class="pl-s1">faceNormal</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span> <span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">fl</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">faces</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">f</span> <span class="pl-c1"><</span> <span class="pl-s1">fl</span><span class="pl-kos">;</span> <span class="pl-s1">f</span> <span class="pl-c1">++</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">face</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">faces</span><span class="pl-kos">[</span> <span class="pl-s1">f</span> <span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-s1">faceNormal</span> <span class="pl-c1">=</span> <span class="pl-s1">morphNormals</span><span class="pl-kos">.</span><span class="pl-c1">faceNormals</span><span class="pl-kos">[</span> <span class="pl-s1">f</span> <span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-s1">faceNormal</span><span class="pl-kos">.</span><span class="pl-en">copy</span><span class="pl-kos">(</span> <span class="pl-s1">face</span><span class="pl-kos">.</span><span class="pl-c1">normal</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-c">// restore original normals</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span> <span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">fl</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">faces</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">f</span> <span class="pl-c1"><</span> <span class="pl-s1">fl</span><span class="pl-kos">;</span> <span class="pl-s1">f</span> <span class="pl-c1">++</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">face</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">faces</span><span class="pl-kos">[</span> <span class="pl-s1">f</span> <span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-s1">face</span><span class="pl-kos">.</span><span class="pl-c1">normal</span> <span class="pl-c1">=</span> <span class="pl-s1">face</span><span class="pl-kos">.</span><span class="pl-c1">__originalFaceNormal</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div> | <p dir="auto">FYI I'm working on a parasolid exporter (x_t to begin with). Just posting an issue to avoid duplicating effort or in case anyone wants to discuss / collaborate. I expect to have a PR ready in a few weeks.</p> | 0 |
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">I am not sure if this a gltf bug or a three js bug but when exporting a skinned mesh with an armature with a specific scale the bounding box will not work correctly, for example, I have an object with an armature of scale 0.018 for all axes and a mesh child with a scale of 1; what happens when I import it to threejs/editor is the bounding box take the scale of the armature, as the image below:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/38951661/94632192-a7690f00-02d2-11eb-9328-e69233e4e8ec.png"><img src="https://user-images.githubusercontent.com/38951661/94632192-a7690f00-02d2-11eb-9328-e69233e4e8ec.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">and, via coding, when I try to get the object size by:</p>
<p dir="auto"><code class="notranslate">let measurementBox = new THREE.Box3().setFromObject( this.threeJsObject ); measurementBox.getSize(this.objectSize);</code></p>
<p dir="auto">the result is the armature mesh child size (after scaling) multiplied by the armature scale again!<br>
This means if the x dimension of a mesh after being scaled by an armature is 100 with a scale of 0.5 in the armature (actual size of the mesh is 200 then), the bounding box x size will be 50 and not 100, it will scale too after the mesh!</p>
<p dir="auto"><strong>To Reproduce</strong><br>
here is the file that I am using, the armature scale is 0.018 and the bounding box is 0.018 of the actual size of the mesh rather than being 100% of the actual size of the mesh.</p>
<p dir="auto"><a href="https://drive.google.com/file/d/14Iq0pUmHt1uE3F0brMIVfFL5taV2MEZs/view?usp=sharing" rel="nofollow">https://drive.google.com/file/d/14Iq0pUmHt1uE3F0brMIVfFL5taV2MEZs/view?usp=sharing</a></p>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>just import it in threejs/editor and check the bounding box!</li>
</ol>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">the bounding box surrounds all the mesh and not being multiplied with the armature scale, it should be like the image below:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/38951661/94633127-0f205980-02d5-11eb-82d6-d908310f841a.png"><img src="https://user-images.githubusercontent.com/38951661/94633127-0f205980-02d5-11eb-82d6-d908310f841a.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Platform:</strong></p>
<ul dir="auto">
<li>Device: Desktop</li>
<li>OS: Linux, ubuntu</li>
<li>Browser: All</li>
<li>Three.js version: r120</li>
</ul> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">Hi,</p>
<p dir="auto">I've been playing around with a model for a while, and noticed that if I load it in three.js and zoom closely to the head, it disappears, along with the helmet.</p>
<p dir="auto">I'm sure it's not the clipping field, because they disappear suddenly, from one frame to another.</p>
<p dir="auto">I'm also sure this bug is not limited to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/donmccurdy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/donmccurdy">@donmccurdy</a> 's gltf viewer ( <a href="https://gltf-viewer.donmccurdy.com/" rel="nofollow">https://gltf-viewer.donmccurdy.com/</a> ), as I tested it in a project made from scratch recently, and the bug appears there, too.</p>
<p dir="auto">It works flawlessly in the babylon sandbox: <a href="http://sandbox.babylonjs.com/" rel="nofollow">http://sandbox.babylonjs.com/</a>, so I believe this has something to do with three.js.</p>
<p dir="auto">Also, I think it has something to do with the fact that the mesh is skinned. If I apply the armature pose in blender before exporting, then the model appears correctly in three.js as well.</p>
<p dir="auto">I attach a zip with 2 model files, one with skin, the other one with the applied pose:<br>
<a href="https://github.com/mrdoob/three.js/files/2205971/player.zip">player.zip</a></p>
<p dir="auto">Three.js:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10392261/42885336-02355ef4-8aa1-11e8-897b-531b6a133272.PNG"><img src="https://user-images.githubusercontent.com/10392261/42885336-02355ef4-8aa1-11e8-897b-531b6a133272.PNG" alt="capture2" style="max-width: 100%;"></a></p>
<p dir="auto">Babylon.js:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10392261/42885318-f717b404-8aa0-11e8-8611-1cd9f75d7a1c.PNG"><img src="https://user-images.githubusercontent.com/10392261/42885318-f717b404-8aa0-11e8-8611-1cd9f75d7a1c.PNG" alt="capture" style="max-width: 100%;"></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=""> r94</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> | 1 |
<p dir="auto">how can retry when image loading failed</p> | <p dir="auto">Right not the glide scoket timeout is 2500 ms<br>
I wish to make it 5000ms<br>
How do I do this ?</p>
<p dir="auto">Also I wish to do a retry if timeout happens</p>
<p dir="auto">Also I am trying to use download only along with DiskCacheStrategy = DiskCacheStartergy.SOURCE</p>
<p dir="auto">Please help me out withthese issues</p> | 1 |
<p dir="auto">If you manually move a shard using the Reroute API, it appears that the Cluster node stats API breaks for the duration of the shard reassignment (500 Internal Server error, message at bottom of the gist). It begins working again once the shard has been fully relocated and intialized.</p>
<p dir="auto">Here is a recreation. The index in question is "test". The cluster has three data nodes (S1, S2, S3) and one non-data client node (C1)</p>
<p dir="auto">Edit: this is with ES Version 0.20.2</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl -XPOST 'localhost:9200/_cluster/reroute' -d '{
"commands":[
{
"move":{
"index":"test",
"shard":2,
"from_node":"kH152vsLTL-y20mcLFs9GQ",
"to_node":"J47gdOIwQMq2GTmzzmzJBA"
}
}
]
}'
{
"ok":true,
"state":{
"master_node":"J47gdOIwQMq2GTmzzmzJBA",
"blocks":{
},
"nodes":{
"ez-rzcnfSESrVYP6zTWksA":{
"name":"S1",
"transport_address":"inet[/144.76.3.102:9300]",
"attributes":{
}
},
"-VNWEiiaSG2IRlwM6kzcxg":{
"name":"C1",
"transport_address":"inet[/144.76.8.228:9300]",
"attributes":{
"data":"false"
}
},
"kH152vsLTL-y20mcLFs9GQ":{
"name":"S3",
"transport_address":"inet[/144.76.2.205:9300]",
"attributes":{
}
},
"J47gdOIwQMq2GTmzzmzJBA":{
"name":"S2",
"transport_address":"inet[/144.76.3.103:9300]",
"attributes":{
}
}
},
"routing_table":{
"indices":{
"test":{
"shards":{
"0":[
{
"state":"STARTED",
"primary":true,
"node":"kH152vsLTL-y20mcLFs9GQ",
"relocating_node":null,
"shard":0,
"index":"test"
},
{
"state":"STARTED",
"primary":false,
"node":"J47gdOIwQMq2GTmzzmzJBA",
"relocating_node":null,
"shard":0,
"index":"test"
}
],
"1":[
{
"state":"STARTED",
"primary":true,
"node":"ez-rzcnfSESrVYP6zTWksA",
"relocating_node":null,
"shard":1,
"index":"test"
},
{
"state":"STARTED",
"primary":false,
"node":"J47gdOIwQMq2GTmzzmzJBA",
"relocating_node":null,
"shard":1,
"index":"test"
}
],
"2":[
{
"state":"STARTED",
"primary":false,
"node":"ez-rzcnfSESrVYP6zTWksA",
"relocating_node":null,
"shard":2,
"index":"test"
},
{
"state":"RELOCATING",
"primary":true,
"node":"kH152vsLTL-y20mcLFs9GQ",
"relocating_node":"J47gdOIwQMq2GTmzzmzJBA",
"shard":2,
"index":"test"
}
]
}
},
"test123":{
"shards":{
"0":[
{
"state":"STARTED",
"primary":false,
"node":"ez-rzcnfSESrVYP6zTWksA",
"relocating_node":null,
"shard":0,
"index":"test123"
},
{
"state":"STARTED",
"primary":true,
"node":"kH152vsLTL-y20mcLFs9GQ",
"relocating_node":null,
"shard":0,
"index":"test123"
}
]
}
}
}
},
"routing_nodes":{
"unassigned":[
],
"nodes":{
"ez-rzcnfSESrVYP6zTWksA":[
{
"state":"STARTED",
"primary":true,
"node":"ez-rzcnfSESrVYP6zTWksA",
"relocating_node":null,
"shard":1,
"index":"test"
},
{
"state":"STARTED",
"primary":false,
"node":"ez-rzcnfSESrVYP6zTWksA",
"relocating_node":null,
"shard":2,
"index":"test"
},
{
"state":"STARTED",
"primary":false,
"node":"ez-rzcnfSESrVYP6zTWksA",
"relocating_node":null,
"shard":0,
"index":"test123"
}
],
"kH152vsLTL-y20mcLFs9GQ":[
{
"state":"STARTED",
"primary":true,
"node":"kH152vsLTL-y20mcLFs9GQ",
"relocating_node":null,
"shard":0,
"index":"test"
},
{
"state":"RELOCATING",
"primary":true,
"node":"kH152vsLTL-y20mcLFs9GQ",
"relocating_node":"J47gdOIwQMq2GTmzzmzJBA",
"shard":2,
"index":"test"
},
{
"state":"STARTED",
"primary":true,
"node":"kH152vsLTL-y20mcLFs9GQ",
"relocating_node":null,
"shard":0,
"index":"test123"
}
],
"J47gdOIwQMq2GTmzzmzJBA":[
{
"state":"STARTED",
"primary":false,
"node":"J47gdOIwQMq2GTmzzmzJBA",
"relocating_node":null,
"shard":0,
"index":"test"
},
{
"state":"STARTED",
"primary":false,
"node":"J47gdOIwQMq2GTmzzmzJBA",
"relocating_node":null,
"shard":1,
"index":"test"
},
{
"state":"INITIALIZING",
"primary":true,
"node":"J47gdOIwQMq2GTmzzmzJBA",
"relocating_node":"kH152vsLTL-y20mcLFs9GQ",
"shard":2,
"index":"test"
}
]
}
},
"allocations":[
]
}
}
##For the duration of the move, this API returns a 500 error
$ curl -XGET localhost:9200/_cluster/nodes/stats?all=true
{
"error": "ArithmeticException[Value cannot fit in an int: -2562047788015]",
"status": 500
}"><pre class="notranslate">curl -XPOST <span class="pl-s"><span class="pl-pds">'</span>localhost:9200/_cluster/reroute<span class="pl-pds">'</span></span> -d <span class="pl-s"><span class="pl-pds">'</span>{</span>
<span class="pl-s"> "commands":[</span>
<span class="pl-s"> {</span>
<span class="pl-s"> "move":{</span>
<span class="pl-s"> "index":"test",</span>
<span class="pl-s"> "shard":2,</span>
<span class="pl-s"> "from_node":"kH152vsLTL-y20mcLFs9GQ",</span>
<span class="pl-s"> "to_node":"J47gdOIwQMq2GTmzzmzJBA"</span>
<span class="pl-s"> }</span>
<span class="pl-s"> }</span>
<span class="pl-s"> ]</span>
<span class="pl-s">}<span class="pl-pds">'</span></span>
{
<span class="pl-s"><span class="pl-pds">"</span>ok<span class="pl-pds">"</span></span>:true,
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>master_node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>J47gdOIwQMq2GTmzzmzJBA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>blocks<span class="pl-pds">"</span></span>:{
},
<span class="pl-s"><span class="pl-pds">"</span>nodes<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>ez-rzcnfSESrVYP6zTWksA<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>name<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>S1<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>transport_address<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>inet[/144.76.3.102:9300]<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>attributes<span class="pl-pds">"</span></span>:{
}
},
<span class="pl-s"><span class="pl-pds">"</span>-VNWEiiaSG2IRlwM6kzcxg<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>name<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>C1<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>transport_address<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>inet[/144.76.8.228:9300]<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>attributes<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>data<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>false<span class="pl-pds">"</span></span>
}
},
<span class="pl-s"><span class="pl-pds">"</span>kH152vsLTL-y20mcLFs9GQ<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>name<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>S3<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>transport_address<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>inet[/144.76.2.205:9300]<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>attributes<span class="pl-pds">"</span></span>:{
}
},
<span class="pl-s"><span class="pl-pds">"</span>J47gdOIwQMq2GTmzzmzJBA<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>name<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>S2<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>transport_address<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>inet[/144.76.3.103:9300]<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>attributes<span class="pl-pds">"</span></span>:{
}
}
},
<span class="pl-s"><span class="pl-pds">"</span>routing_table<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>indices<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>shards<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span>:[
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:true,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>kH152vsLTL-y20mcLFs9GQ<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:0,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
},
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:false,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>J47gdOIwQMq2GTmzzmzJBA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:0,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
}
],
<span class="pl-s"><span class="pl-pds">"</span>1<span class="pl-pds">"</span></span>:[
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:true,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>ez-rzcnfSESrVYP6zTWksA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:1,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
},
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:false,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>J47gdOIwQMq2GTmzzmzJBA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:1,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
}
],
<span class="pl-s"><span class="pl-pds">"</span>2<span class="pl-pds">"</span></span>:[
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:false,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>ez-rzcnfSESrVYP6zTWksA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:2,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
},
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>RELOCATING<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:true,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>kH152vsLTL-y20mcLFs9GQ<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>J47gdOIwQMq2GTmzzmzJBA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:2,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
}
]
}
},
<span class="pl-s"><span class="pl-pds">"</span>test123<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>shards<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span>:[
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:false,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>ez-rzcnfSESrVYP6zTWksA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:0,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test123<span class="pl-pds">"</span></span>
},
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:true,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>kH152vsLTL-y20mcLFs9GQ<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:0,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test123<span class="pl-pds">"</span></span>
}
]
}
}
}
},
<span class="pl-s"><span class="pl-pds">"</span>routing_nodes<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>unassigned<span class="pl-pds">"</span></span>:[
],
<span class="pl-s"><span class="pl-pds">"</span>nodes<span class="pl-pds">"</span></span>:{
<span class="pl-s"><span class="pl-pds">"</span>ez-rzcnfSESrVYP6zTWksA<span class="pl-pds">"</span></span>:[
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:true,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>ez-rzcnfSESrVYP6zTWksA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:1,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
},
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:false,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>ez-rzcnfSESrVYP6zTWksA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:2,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
},
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:false,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>ez-rzcnfSESrVYP6zTWksA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:0,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test123<span class="pl-pds">"</span></span>
}
],
<span class="pl-s"><span class="pl-pds">"</span>kH152vsLTL-y20mcLFs9GQ<span class="pl-pds">"</span></span>:[
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:true,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>kH152vsLTL-y20mcLFs9GQ<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:0,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
},
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>RELOCATING<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:true,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>kH152vsLTL-y20mcLFs9GQ<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>J47gdOIwQMq2GTmzzmzJBA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:2,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
},
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:true,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>kH152vsLTL-y20mcLFs9GQ<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:0,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test123<span class="pl-pds">"</span></span>
}
],
<span class="pl-s"><span class="pl-pds">"</span>J47gdOIwQMq2GTmzzmzJBA<span class="pl-pds">"</span></span>:[
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:false,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>J47gdOIwQMq2GTmzzmzJBA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:0,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
},
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>STARTED<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:false,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>J47gdOIwQMq2GTmzzmzJBA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:null,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:1,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
},
{
<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>INITIALIZING<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>primary<span class="pl-pds">"</span></span>:true,
<span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>J47gdOIwQMq2GTmzzmzJBA<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>relocating_node<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>kH152vsLTL-y20mcLFs9GQ<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>shard<span class="pl-pds">"</span></span>:2,
<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>
}
]
}
},
<span class="pl-s"><span class="pl-pds">"</span>allocations<span class="pl-pds">"</span></span>:[
]
}
}
<span class="pl-c"><span class="pl-c">#</span>#For the duration of the move, this API returns a 500 error</span>
$ curl -XGET localhost:9200/_cluster/nodes/stats<span class="pl-k">?</span>all=true
{
<span class="pl-s"><span class="pl-pds">"</span>error<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>ArithmeticException[Value cannot fit in an int: -2562047788015]<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>status<span class="pl-pds">"</span></span>: 500
}</pre></div> | <p dir="auto">To reproduce, start a single node and as soon as node starts run the following script:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Create and delete index a few times
for i in {1..4}
do
curl -XDELETE localhost:9200/test
curl -XPUT localhost:9200/test -d '{
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0
}
}'
curl -XPUT localhost:9200/test/doc/1 -d '{"foo": "bar"}'
curl -XPUT localhost:9200/test/doc/2 -d '{"foo": "bar"}'
curl -XPUT localhost:9200/test/doc/3 -d '{"foo": "bar"}'
curl -XPOST localhost:9200/test/_refresh
# Do search to fill filter cache
curl "localhost:9200/test/doc/_search"
done
# Sleep for indices.cache.filter.clean_interval
# Reduce it to make this repro run faster
echo
echo "Waiting 1 min for cache to be cleaned"
sleep 60
curl -s -XGET 'http://localhost:9200/_nodes/stats?pretty=true'"><pre class="notranslate"><code class="notranslate"># Create and delete index a few times
for i in {1..4}
do
curl -XDELETE localhost:9200/test
curl -XPUT localhost:9200/test -d '{
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0
}
}'
curl -XPUT localhost:9200/test/doc/1 -d '{"foo": "bar"}'
curl -XPUT localhost:9200/test/doc/2 -d '{"foo": "bar"}'
curl -XPUT localhost:9200/test/doc/3 -d '{"foo": "bar"}'
curl -XPOST localhost:9200/test/_refresh
# Do search to fill filter cache
curl "localhost:9200/test/doc/_search"
done
# Sleep for indices.cache.filter.clean_interval
# Reduce it to make this repro run faster
echo
echo "Waiting 1 min for cache to be cleaned"
sleep 60
curl -s -XGET 'http://localhost:9200/_nodes/stats?pretty=true'
</code></pre></div>
<p dir="auto">The result of this script is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
"cache" : {
"filter_count" : -2,
"filter_evictions" : 3,
"filter_size" : "-48b",
"filter_size_in_bytes" : -48,
"id_cache_size" : "0b",
"id_cache_size_in_bytes" : 0
}
..."><pre class="notranslate"><code class="notranslate">...
"cache" : {
"filter_count" : -2,
"filter_evictions" : 3,
"filter_size" : "-48b",
"filter_size_in_bytes" : -48,
"id_cache_size" : "0b",
"id_cache_size_in_bytes" : 0
}
...
</code></pre></div>
<p dir="auto">Analysis:</p>
<ul dir="auto">
<li><a href="https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/indices/cache/filter/IndicesFilterCache.java#L165">IndicesFilterCache</a> is using index name to dispatch removal notifications.</li>
<li>When index closes, it doesn't clean the cache immediately. So, it's possible that the cache for the old index will be cleaned when a new index with the same name is already created.</li>
<li>As a result, it's possible for WeightedFilterCache to receive notifications targeted for the previous incarnations of the index with the same name.</li>
<li>WeightedFilterCache decrements stats counters without checking if removal notification was sent for this index or for one of its previous incarnations.</li>
</ul> | 1 |
<p dir="auto">version: 0.10.8<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7921431/13311297/4cde4e78-dbc8-11e5-8116-8ef45b9642b2.png"><img src="https://cloud.githubusercontent.com/assets/7921431/13311297/4cde4e78-dbc8-11e5-8116-8ef45b9642b2.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">after <code class="notranslate">format code</code>:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7921431/13311323/8a28f13e-dbc8-11e5-9898-d0fc5187aa43.png"><img src="https://cloud.githubusercontent.com/assets/7921431/13311323/8a28f13e-dbc8-11e5-9898-d0fc5187aa43.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">Ported from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94376232" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/285" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-Sublime-Plugin/issues/285/hovercard" href="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/285">microsoft/TypeScript-Sublime-Plugin#285</a></p>
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="91870539" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/265" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-Sublime-Plugin/issues/265/hovercard" href="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/265">microsoft/TypeScript-Sublime-Plugin#265</a>.</p>
<p dir="auto">Issue:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1707813/8627292/da8f8be4-26fe-11e5-97ce-2b2a8b257afa.png"><img src="https://cloud.githubusercontent.com/assets/1707813/8627292/da8f8be4-26fe-11e5-97ce-2b2a8b257afa.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Correct:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1707813/8627340/3e27dbf2-26ff-11e5-8751-7e8576cbd230.png"><img src="https://cloud.githubusercontent.com/assets/1707813/8627340/3e27dbf2-26ff-11e5-8751-7e8576cbd230.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">With the latest typescript-material-react example the build fails. It fails because of <code class="notranslate">color="secondary"</code> parameter.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<Button raised color="secondary" onClick={this.handleClick}>
Super Secret Password
</Button>"><pre class="notranslate"><code class="notranslate"><Button raised color="secondary" onClick={this.handleClick}>
Super Secret Password
</Button>
</code></pre></div>
<p dir="auto">Error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="create-react-app-with-typescript/src/pages/index.tsx
(61,17): Type '{ raised: true; color: "secondary"; onClick: () => void; children: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & { children?: ReactNode; }'.
Type '{ raised: true; color: "secondary"; onClick: () => void; children: string; }' is not assignable to type 'ButtonProps'.
Types of property 'color' are incompatible.
Type '"secondary"' is not assignable to type '"default" | "inherit" | "primary" | "accent" | "contrast" | undefined'."><pre class="notranslate"><code class="notranslate">create-react-app-with-typescript/src/pages/index.tsx
(61,17): Type '{ raised: true; color: "secondary"; onClick: () => void; children: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & { children?: ReactNode; }'.
Type '{ raised: true; color: "secondary"; onClick: () => void; children: string; }' is not assignable to type 'ButtonProps'.
Types of property 'color' are incompatible.
Type '"secondary"' is not assignable to type '"default" | "inherit" | "primary" | "accent" | "contrast" | undefined'.
</code></pre></div>
<p dir="auto">Working:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<Button raised onClick={this.handleClick}>
Super Secret Password
</Button>"><pre class="notranslate"><code class="notranslate"><Button raised onClick={this.handleClick}>
Super Secret Password
</Button>
</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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul> | <p dir="auto">is it possible to use material-ui with React 0.14 and ES6?<br>
if yes please post a little gist/example</p>
<p dir="auto">thanks.</p> | 0 |
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.3.4</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">When running airflow db upgrade , we encounter the following error:<br>
`[2022-09-05 07:04:10,182] {db.py:939} WARNING - Found 273 duplicates in table task_fail. Will attempt to move them.</p>
<p dir="auto">[2022-09-05 07:08:23,703] {db.py:1466} INFO - Creating tables</p>
<p dir="auto">INFO [alembic.runtime.migration] Context impl MySQLImpl.</p>
<p dir="auto">INFO [alembic.runtime.migration] Will assume non-transactional DDL.</p>
<p dir="auto">INFO [alembic.runtime.migration] Running upgrade 587bdf053233 -> 5e3ec427fdd3, Increase length of email and username in <code class="notranslate">ab_user</code> and <code class="notranslate">ab_register_user</code> table to <code class="notranslate">256</code> characters</p>
<p dir="auto">INFO [alembic.runtime.migration] Running upgrade 5e3ec427fdd3 -> 786e3737b18f, Add <code class="notranslate">timetable_description</code> column to DagModel for UI.</p>
<p dir="auto">INFO [alembic.runtime.migration] Running upgrade 786e3737b18f -> f9da662e7089, Add <code class="notranslate">LogTemplate</code> table to track changes to config values <code class="notranslate">log_filename_template</code></p>
<p dir="auto">INFO [alembic.runtime.migration] Running upgrade f9da662e7089 -> e655c0453f75, Add <code class="notranslate">map_index</code> column to TaskInstance to identify task-mapping,<br>
and a <code class="notranslate">task_map</code> table to track mapping values from XCom.</p>
<p dir="auto">INFO [alembic.runtime.migration] Running upgrade e655c0453f75 -> a3bcd0914482, add data_compressed to serialized_dag</p>
<p dir="auto">INFO [alembic.runtime.migration] Running upgrade a3bcd0914482 -> c306b5b5ae4a, Switch XCom table to use <code class="notranslate">run_id</code> and add <code class="notranslate">map_index</code>.</p>
<p dir="auto">INFO [alembic.runtime.migration] Running upgrade c306b5b5ae4a -> c97c2ab6aa23, add callback request table</p>
<p dir="auto">INFO [alembic.runtime.migration] Running upgrade c97c2ab6aa23 -> 4eaab2fe6582, Migrate RTIF to use run_id and map_index</p>
<p dir="auto">Traceback (most recent call last):</p>
<p dir="auto">File "/opt/python3.9/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1802, in _execute_context<br>
self.dialect.do_execute(</p>
<p dir="auto">File "/opt/python3.9/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 719, in do_execute<br>
cursor.execute(statement, parameters)</p>
<p dir="auto">File "/opt/python3.9/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute<br>
res = self._query(query)</p>
<p dir="auto">File "/opt/python3.9/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query<br>
db.query(q)</p>
<p dir="auto">File "/opt/python3.9/lib/python3.9/site-packages/MySQLdb/connections.py", line 254, in query<br>
_mysql.connection.query(self, query)</p>
<p dir="auto">MySQLdb._exceptions.IntegrityError: (1215, 'Unknown error 1215')`</p>
<p dir="auto">We are currently attempting to migrate from 2.2.4 to 2.3.4</p>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">CentOS Linux 7</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">Composer</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <h3 dir="auto">Description</h3>
<p dir="auto">Airflow is a great software. I use it intensively in my current work. But I wonder why the webserver is running without other language support? Isn't it nice to switch between different language for different country?</p>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">I want to add Chinese to airflow. I am professional in Chinese and Japanese. I would like to add a switch to change webserver to Chinese and Japanese.</p>
<h3 dir="auto">Related issues</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit a PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 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> | 0 |
<ul dir="auto">
<li>Electron version: 1.8.1</li>
<li>Operating system: Windows 7</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">I create a <code class="notranslate">BrowserWindow</code> with <code class="notranslate">webPreferences.zoomFactor=0.5</code>. Everything looks small (which is expected). Now I close the application and then change <code class="notranslate">zoomFactor=1.0</code>, it should look larger. <strong>But no.</strong> I checked the <code class="notranslate">Preferences</code> file in %appdir%, there is one section <code class="notranslate">per_host_zoom_levels</code>, which I think Electron does not update the values correctly. Please check.</p> | <ul dir="auto">
<li>Electron version: 1.7.6</li>
<li>Operating system: MacOS 10.11.6</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">When a custom zoomFactor is defined in the BrowserWindow initialization (say 1.5), the window is displayed in that specific zoomFactor.</p>
<p dir="auto">If you close the app, set a new zoomFactor in the code (say 1.2), and start the app again, the new zoomFactor should take in effect.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">The new zoomFactor does not take into effect, and the old one is still being used by the browser window.</p>
<p dir="auto">The only way I know of to reset it is to manually do a zoom-default keyboard command in the window (Cmd+0 in OSX), then restart the app.</p>
<h3 dir="auto">How to reproduce</h3>
<ol dir="auto">
<li>Set zoomFactor to something other than the default of 1.0:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mainWindow = new electron.BrowserWindow({
width: 800,
height: 600,
useContentSize: true,
webPreferences: {
zoomFactor: 1.5
}
})"><pre class="notranslate"><code class="notranslate">mainWindow = new electron.BrowserWindow({
width: 800,
height: 600,
useContentSize: true,
webPreferences: {
zoomFactor: 1.5
}
})
</code></pre></div>
<ol start="2" dir="auto">
<li>
<p dir="auto">Close the window.</p>
</li>
<li>
<p dir="auto">Set <code class="notranslate">zoomFactor: 1.2</code>.</p>
</li>
<li>
<p dir="auto">Start the app again.</p>
</li>
<li>
<p dir="auto">Notice the page is still zoomed in at 1.5. This will persist even with an app restart, and one way to get it to read the new value is to set browser zoom to 0 manually (Cmd+0 on OSX). Also, sometimes, the page will have the proper zoomFactor visually, but if you check with <code class="notranslate">require('electron').webFrame.getZoomFactor()</code> in the renderer side, you'll still get the old/wrong value.</p>
</li>
</ol> | 1 |
<p dir="auto">Uncaught Error: EACCES, open '/home/alex/.atom/compile-cache/cson/5af7724b023a6274b520f79f04fb798a67319ca7.json'</p>
<p dir="auto"><strong>Atom Version</strong>: 0.154.0<br>
<strong>System</strong>: linux 3.13.0-40-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<h3 dir="auto">Stack Trace</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At fs.js:75
Error: EACCES, open '/home/alex/.atom/compile-cache/cson/5af7724b023a6274b520f79f04fb798a67319ca7.json'
at Error (native)
"><pre class="notranslate"><code class="notranslate">At fs.js:75
Error: EACCES, open '/home/alex/.atom/compile-cache/cson/5af7724b023a6274b520f79f04fb798a67319ca7.json'
at Error (native)
</code></pre></div> | <p dir="auto">I'm not sure if this is already possible in some way, or if it's desirable beyond a very specific use case I have run into.</p>
<p dir="auto">I would like to be able to write <code class="notranslate">require "react-atom-fork"</code> in a package and get access to the version of React used by Atom itself. This works around a <a href="https://github.com/facebook/react/issues/1939" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/1939/hovercard">React bug</a> where having multiple copies of React on the same page leads to duplicate <code class="notranslate">reactid</code>s.</p>
<p dir="auto">If the bug is not worked around, React will give the following error when events fire:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invariant Violation: ReactMount: Two valid but unequal nodes with the same `data-reactid`"><pre class="notranslate"><code class="notranslate">Invariant Violation: ReactMount: Two valid but unequal nodes with the same `data-reactid`
</code></pre></div>
<p dir="auto">This is admittedly a very niche use case, and obviously the right fix is inside React, but I thought I'd open an issue since I think anyone trying to use React in a package will run into this.</p> | 0 |
<p dir="auto"><strong>Elasticsearch version</strong>: 2.3.3, 1.4.4</p>
<p dir="auto"><strong>Plugins installed</strong>: not related</p>
<p dir="auto"><strong>JVM version</strong>: 1.8.0_77</p>
<p dir="auto"><strong>OS version</strong>: OS X El Capitan</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br>
In ES 2.3.3, if you do a geo polygon query whose one side lies on the equator in the south hemisphere, then you cannot find the indexed point on the equator. The query will work fine if the polygon is across the equator. Interestingly, this bug also exists in ES 1.4.4 but only happens when your polygon is in the north hemisphere.</p>
<p dir="auto">I searched ES docs but there is no clear definition whether a geo point on the boundary of the geo polygon should be considered searchable or not. Is it considered as undefined behavior or is there any special rules about geo points on edges? It will be really helpful if you can edit ES docs to clarify this case.</p>
<p dir="auto"><strong>Steps to reproduce</strong>:</p>
<ol dir="auto">
<li>
<p dir="auto">Create an index with mapping:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PUT /geo_polygon
{
"settings" : {
"index" : {
"number_of_shards" : 1,
"number_of_replicas" : 0
}
},
"mappings": {
"my_type": {
"properties": {
"location": {
"type": "geo_point"
}
}
}
}
}"><pre class="notranslate"><code class="notranslate">PUT /geo_polygon
{
"settings" : {
"index" : {
"number_of_shards" : 1,
"number_of_replicas" : 0
}
},
"mappings": {
"my_type": {
"properties": {
"location": {
"type": "geo_point"
}
}
}
}
}
</code></pre></div>
</li>
<li>
<p dir="auto">Put a list of points on the map.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PUT /geo_polygon/my_type/1
{
"text": "Point on the equator",
"location": {
"lat": 0.0,
"lon": 30.0
}
}
PUT /geo_polygon/my_type/2
{
"text": "Point in the southern hemisphere",
"location": {
"lat": -0.1,
"lon": 30.0
}
}
PUT /geo_polygon/my_type/3
{
"text": "Point in the northern hemisphere",
"location": {
"lat": 0.1,
"lon": 30.0
}
}"><pre class="notranslate"><code class="notranslate">PUT /geo_polygon/my_type/1
{
"text": "Point on the equator",
"location": {
"lat": 0.0,
"lon": 30.0
}
}
PUT /geo_polygon/my_type/2
{
"text": "Point in the southern hemisphere",
"location": {
"lat": -0.1,
"lon": 30.0
}
}
PUT /geo_polygon/my_type/3
{
"text": "Point in the northern hemisphere",
"location": {
"lat": 0.1,
"lon": 30.0
}
}
</code></pre></div>
</li>
<li>
<p dir="auto">Search with a square polygon whose one side is on the equator in the southern hemisphere.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GET /geo_polygon
{
"query": {
"bool" : {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : 0.0, "lon" : 10},
{"lat" : 0.0, "lon" : 50},
{"lat" : -1, "lon" : 50},
{"lat" : -1, "lon" : 10}
]
}
}
}
}
}
}"><pre class="notranslate"><code class="notranslate">GET /geo_polygon
{
"query": {
"bool" : {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : 0.0, "lon" : 10},
{"lat" : 0.0, "lon" : 50},
{"lat" : -1, "lon" : 50},
{"lat" : -1, "lon" : 10}
]
}
}
}
}
}
}
</code></pre></div>
<p dir="auto">Result:</p>
<ul dir="auto">
<li>ES 2.3.3: only point 2 is returned.</li>
<li>ES 1.4.4: both point 1 and 2 are returned.</li>
</ul>
</li>
<li>
<p dir="auto">Search with a square polygon whose one side is on the equator in the northern hemisphere.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GET /geo_polygon
{
"query": {
"bool" : {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : 0.0, "lon" : 10},
{"lat" : 0.0, "lon" : 50},
{"lat" : 1, "lon" : 50},
{"lat" : 1, "lon" : 10}
]
}
}
}
}
}
}"><pre class="notranslate"><code class="notranslate">GET /geo_polygon
{
"query": {
"bool" : {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : 0.0, "lon" : 10},
{"lat" : 0.0, "lon" : 50},
{"lat" : 1, "lon" : 50},
{"lat" : 1, "lon" : 10}
]
}
}
}
}
}
}
</code></pre></div>
<p dir="auto">Result:</p>
<ul dir="auto">
<li>ES 2.3.3: both point 1 and 2 are returned.</li>
<li>ES 1.4.4: only point 2 is returned.</li>
</ul>
</li>
<li>
<p dir="auto">Search with a square polygon which is across the equator.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GET /geo_polygon
{
"query": {
"bool" : {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : -1, "lon" : 10},
{"lat" : -1, "lon" : 50},
{"lat" : 1, "lon" : 50},
{"lat" : 1, "lon" : 10}
]
}
}
}
}
}
}"><pre class="notranslate"><code class="notranslate">GET /geo_polygon
{
"query": {
"bool" : {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : -1, "lon" : 10},
{"lat" : -1, "lon" : 50},
{"lat" : 1, "lon" : 50},
{"lat" : 1, "lon" : 10}
]
}
}
}
}
}
}
</code></pre></div>
<p dir="auto">Result:</p>
<ul dir="auto">
<li>ES 2.3.3: all points 1, 2 and 3 are returned.</li>
<li>ES 1.4.4: all points 1, 2 and 3 are returned.</li>
</ul>
</li>
</ol>
<p dir="auto"><strong>Provide logs (if relevant)</strong>:</p>
<p dir="auto"><strong>Describe the feature</strong>:</p> | <p dir="auto"><strong>Elasticsearch version</strong>: 2.3.3</p>
<p dir="auto"><strong>Plugins installed</strong>: nothing</p>
<p dir="auto"><strong>JVM version</strong>: 1.8.0_77</p>
<p dir="auto"><strong>OS version</strong>: OS X El Captain 10.11.5</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br>
I found a bug when testing geo polygon search across the prime meridian (the 0 longitude). It cannot find the geo point inside the polygon whose longitude is smaller than 1.4 on the eastern hemisphere (positive longitude). Also, it's a regression because those points can be found on ES 1.4.4.</p>
<p dir="auto"><strong>Steps to reproduce</strong>:</p>
<ol dir="auto">
<li>
<p dir="auto">Create an index with mapping:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PUT /geo_polygon
{
"settings" : {
"index" : {
"number_of_shards" : 1,
"number_of_replicas" : 0
}
},
"mappings": {
"my_type": {
"properties": {
"location": {
"type": "geo_point"
}
}
}
}
}"><pre class="notranslate"><code class="notranslate">PUT /geo_polygon
{
"settings" : {
"index" : {
"number_of_shards" : 1,
"number_of_replicas" : 0
}
},
"mappings": {
"my_type": {
"properties": {
"location": {
"type": "geo_point"
}
}
}
}
}
</code></pre></div>
</li>
<li>
<p dir="auto">Put a list of points on the map. I put all the points on the north hemisphere to eliminate the possible affect from latitude.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PUT /geo_polygon/my_type/1
{
"text": "Point on the prime meridian",
"location": {
"lat": 30,
"lon": 0
}
}
PUT /geo_polygon/my_type/2
{
"text": "Point very close to the prime meridian, eastern hemisphere",
"location": {
"lat": 30,
"lon": 0.1
}
}
PUT /geo_polygon/my_type/3
{
"text": "Point very close to the prime meridian, western hemisphere",
"location": {
"lat": 30,
"lon": -0.1
}
}
PUT /geo_polygon/my_type/4
{
"text": "Point close to the prime meridian, eastern hemisphere",
"location": {
"lat": 30,
"lon": 1.4
}
}
PUT /geo_polygon/my_type/5
{
"text": "Point close to the prime meridian, western hemisphere",
"location": {
"lat": 30,
"lon": -1.4
}
}
PUT /geo_polygon/my_type/6
{
"text": "Point close to the prime meridian on eastern hemisphere, different latitude",
"location": {
"lat": 25,
"lon": 1.4
}
}
PUT /geo_polygon/my_type/7
{
"text": "Point close to the prime meridian on western hemisphere, different latitude",
"location": {
"lat": 25,
"lon": -1.4
}
}
PUT /geo_polygon/my_type/8
{
"text": "Point not too far from the prime meridian",
"location": {
"lat": 30,
"lon": 1.5
}
}
PUT /geo_polygon/my_type/9
{
"text": "Point far from the prime meridian",
"location": {
"lat": 30,
"lon": 20
}
}
PUT /geo_polygon/my_type/10
{
"text": "Point quite far from the prime meridian",
"location": {
"lat": 30,
"lon": 90
}
}"><pre class="notranslate"><code class="notranslate">PUT /geo_polygon/my_type/1
{
"text": "Point on the prime meridian",
"location": {
"lat": 30,
"lon": 0
}
}
PUT /geo_polygon/my_type/2
{
"text": "Point very close to the prime meridian, eastern hemisphere",
"location": {
"lat": 30,
"lon": 0.1
}
}
PUT /geo_polygon/my_type/3
{
"text": "Point very close to the prime meridian, western hemisphere",
"location": {
"lat": 30,
"lon": -0.1
}
}
PUT /geo_polygon/my_type/4
{
"text": "Point close to the prime meridian, eastern hemisphere",
"location": {
"lat": 30,
"lon": 1.4
}
}
PUT /geo_polygon/my_type/5
{
"text": "Point close to the prime meridian, western hemisphere",
"location": {
"lat": 30,
"lon": -1.4
}
}
PUT /geo_polygon/my_type/6
{
"text": "Point close to the prime meridian on eastern hemisphere, different latitude",
"location": {
"lat": 25,
"lon": 1.4
}
}
PUT /geo_polygon/my_type/7
{
"text": "Point close to the prime meridian on western hemisphere, different latitude",
"location": {
"lat": 25,
"lon": -1.4
}
}
PUT /geo_polygon/my_type/8
{
"text": "Point not too far from the prime meridian",
"location": {
"lat": 30,
"lon": 1.5
}
}
PUT /geo_polygon/my_type/9
{
"text": "Point far from the prime meridian",
"location": {
"lat": 30,
"lon": 20
}
}
PUT /geo_polygon/my_type/10
{
"text": "Point quite far from the prime meridian",
"location": {
"lat": 30,
"lon": 90
}
}
</code></pre></div>
</li>
<li>
<p dir="auto">Search in the following polygon:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GET /geo_polygon
{
"query": {
"bool" : {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : 45, "lon" : 45},
{"lat" : 45, "lon" : -45},
{"lat" : 10, "lon" : 0}
]
}
}
}
}
}
}"><pre class="notranslate"><code class="notranslate">GET /geo_polygon
{
"query": {
"bool" : {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : 45, "lon" : 45},
{"lat" : 45, "lon" : -45},
{"lat" : 10, "lon" : 0}
]
}
}
}
}
}
}
</code></pre></div>
</li>
</ol>
<p dir="auto">Expected: points 1~9 should be found. The very far point 10 shouldn't be returned.<br>
Actual: only point 3, 5, 7, 8, 9 are found, which have the following characteristic:</p>
<ol dir="auto">
<li>On the western hemisphere (lon < 0)</li>
<li>Or, the longitude is larger than 1.5.</li>
</ol>
<p dir="auto">Tried the same thing on ES 1.4 cluster and it could find point 1~9 correctly.</p>
<p dir="auto">Currently I could mitigate this problem by splitting the polygon along the prime meridian and do a conjunctive search like the request below. It could find point 1~9 on ES 2.3.3 stack.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="```
{
"query": {
"bool" : {
"should" : [
{
"bool": {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : 45, "lon" : 45},
{"lat" : 45, "lon" : 0},
{"lat" : 10, "lon" : 0}
]
}
}
}
}
},
{
"bool": {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : 45, "lon" : 0},
{"lat" : 45, "lon" : -45},
{"lat" : 10, "lon" : 0}
]
}
}
}
}
}
]
}
}
}
```"><pre class="notranslate"><code class="notranslate">```
{
"query": {
"bool" : {
"should" : [
{
"bool": {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : 45, "lon" : 45},
{"lat" : 45, "lon" : 0},
{"lat" : 10, "lon" : 0}
]
}
}
}
}
},
{
"bool": {
"filter" : {
"geo_polygon" : {
"location" : {
"points" : [
{"lat" : 45, "lon" : 0},
{"lat" : 45, "lon" : -45},
{"lat" : 10, "lon" : 0}
]
}
}
}
}
}
]
}
}
}
```
</code></pre></div>
<p dir="auto">Interestingly, I tried to mirror the polygon above to the south hemisphere and search in the mirrored hemisphere. Instead of find nothing, I found points 1, 2, 4, 6, 8 and 9, which are all the points on non-western hemisphere.</p> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/18562067/14704450/06e2310a-07b5-11e6-9959-2a59836a32b4.gif"><img src="https://cloud.githubusercontent.com/assets/18562067/14704450/06e2310a-07b5-11e6-9959-2a59836a32b4.gif" alt="proof" data-animated-image="" style="max-width: 100%;"></a><br>
Challenge <a href="https://www.freecodecamp.com/challenges/use-an-id-attribute-to-style-an-element#?solution=%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%20%20%23cat-photo-form%7B%0A%20%20%20%20background-color%3Agreen%3B%0A%20%20%7D%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%0A%20%20.gray-background%20%7B%0A%20%20%20%20background-color%3A%20gray%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%3Cdiv%20class%3D%22gray-background%22%3E%0A%20%20%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%20%20%3Cul%3E%0A%20%20%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%20%20%3C%2Ful%3E%0A%20%20%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%20%20%3Col%3E%0A%20%20%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%20%20%3C%2Fol%3E%0A%3C%2Fdiv%3E%0A%0A%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%20id%3D%22cat-photo-form%22%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%20checked%3E%20Indoor%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Outdoor%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%20checked%3E%20Loving%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Lazy%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Energetic%3C%2Flabel%3E%0A%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%20required%3E%0A%20%20%3Cbutton%20type%3D%22submit%22%3ESubmit%3C%2Fbutton%3E%0A%3C%2Fform%3E%0A" rel="nofollow">Use an ID Attribute to Style an Element</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/50.0.2661.75 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
#cat-photo-form{
background-color:green;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
.gray-background {
background-color: gray;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>
<div class="gray-background">
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
</div>
<form action="/submit-cat-photo" id="cat-photo-form">
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
.<span class="pl-c1">red-text</span> {
<span class="pl-c1">color</span><span class="pl-kos">:</span> red;
}
<span class="pl-kos">#</span><span class="pl-c1">cat-photo-form</span>{
<span class="pl-c1">background-color</span><span class="pl-kos">:</span>green;
}
<span class="pl-ent">h2</span> {
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace;
}
<span class="pl-ent">p</span> {
<span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>;
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace;
}
.<span class="pl-c1">thick-green-border</span> {
<span class="pl-c1">border-color</span><span class="pl-kos">:</span> green;
<span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>;
<span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>;
}
.<span class="pl-c1">smaller-image</span> {
<span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>;
}
.<span class="pl-c1">gray-background</span> {
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> gray;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Click here for <span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span>cat photos<span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">gray-background</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Things cats love:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>cat nip<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>laser pointers<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>lasagna<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Top 3 things cats hate:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>flea treatment<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>thunder<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>other cats<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>" <span class="pl-c1">id</span>="<span class="pl-s">cat-photo-form</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>" <span class="pl-c1">checked</span><span class="pl-kos">></span> Indoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">></span> Outdoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>" <span class="pl-c1">checked</span><span class="pl-kos">></span> Loving<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Lazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Energetic<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">></span>Submit<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">form</span><span class="pl-kos">></span></pre></div> | <p dir="auto">In all the exercises, we the users are forced to press the enter key before writing any code.</p>
<hr>
<h4 dir="auto">Update:</h4>
<p dir="auto">We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.</p>
<p dir="auto">The fix can be confirmed on the beta website.</p>
<p dir="auto">The workaround currently on production website is:<br>
Press the <kbd>Enter</kbd> key on the challenge editor and then proceed with the challenge.</p>
<p dir="auto">Apologies for the inconvenience meanwhile.</p>
<p dir="auto">Reach us in the chat room if you need any assistance.</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mnoda" rel="nofollow">Mauricio Noda</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6743?redirect=false" rel="nofollow">SPR-6743</a></strong> and commented</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 GA</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398102260" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11410" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11410/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11410">#11410</a> Make HttpServletRequest and HttpServletResponse available for injection (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mnoda" rel="nofollow">Mauricio Noda</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6744?redirect=false" rel="nofollow">SPR-6744</a></strong> and commented</p>
<p dir="auto">While creating a custom Spring Security AuthenticationProvider I stumbled on the need for instances of both HttpServletRequest and HttpServletResponse. There´s no way to easily access them. Modifying org.springframework.web.context.request.RequestContextListener to register both instances in Spring request scope would be ideal.</p>
<p dir="auto">I´m trying to integrate Spring Security with Weblogic Servlet Authentication. (<a href="http://download.oracle.com/docs/cd/E15051_01/wls/docs103/javadocs/weblogic/servlet/security/ServletAuthentication.html" rel="nofollow">http://download.oracle.com/docs/cd/E15051_01/wls/docs103/javadocs/weblogic/servlet/security/ServletAuthentication.html</a>)</p>
<p dir="auto">I see it becoming a major issue for any web container as JSR-196, which has the same problem, made its way into JEE 1.6 specification.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 GA</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398102258" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11409" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11409/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11409">#11409</a> Make HttpServlertRequest and HttpServletResponse available for injection (<em><strong>"is duplicated by"</strong></em>)</li>
</ul> | 1 |
<p dir="auto">Hi, I try to add shared layer in Graph, but facing this problem:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from keras.models import Graph
from keras.layers import containers
block = containers.Sequential()
block.add(Dense(8, input_dim=20, activation='relu'))
block.add(Dense(1))
graph = Graph()
graph.add_input(name='input1', input_shape=(2,))
graph.add_input(name='input2', input_shape=(2,))
graph.add_shared_node(block, name='blocks', inputs=['input1', 'input2'], merge_mode='sum')
graph.add_node(Activation('sigmoid'), name='sigm', input='blocks')
graph.add_output(name='output', input='sigm')
graph.compile('rmsprop', {'output':'binary_crossentropy'})
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-18-501bebb9a4df> in <module>()
8 graph.add_input(name='input2', input_shape=(2,))
9
---> 10 graph.add_shared_node(block, name='blocks', inputs=['input1', 'input2'], merge_mode='sum')
11 graph.add_node(Activation('sigmoid'), name='sigm', input='blocks')
12
/usr/local/lib/python2.7/site-packages/Keras-0.3.0-py2.7.egg/keras/layers/containers.pyc in add_shared_node(self, layer, name, inputs, merge_mode, concat_axis, dot_axes, outputs, create_output)
327 raise Exception('Unknown identifier: ' + input)
328 s = Siamese(layer, layers, merge_mode, concat_axis=concat_axis, dot_axes=dot_axes)
--> 329 s.set_name(name)
330 self.namespace.add(name)
331 self.nodes[name] = s
AttributeError: 'Siamese' object has no attribute 'set_name'"><pre class="notranslate"><code class="notranslate">from keras.models import Graph
from keras.layers import containers
block = containers.Sequential()
block.add(Dense(8, input_dim=20, activation='relu'))
block.add(Dense(1))
graph = Graph()
graph.add_input(name='input1', input_shape=(2,))
graph.add_input(name='input2', input_shape=(2,))
graph.add_shared_node(block, name='blocks', inputs=['input1', 'input2'], merge_mode='sum')
graph.add_node(Activation('sigmoid'), name='sigm', input='blocks')
graph.add_output(name='output', input='sigm')
graph.compile('rmsprop', {'output':'binary_crossentropy'})
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-18-501bebb9a4df> in <module>()
8 graph.add_input(name='input2', input_shape=(2,))
9
---> 10 graph.add_shared_node(block, name='blocks', inputs=['input1', 'input2'], merge_mode='sum')
11 graph.add_node(Activation('sigmoid'), name='sigm', input='blocks')
12
/usr/local/lib/python2.7/site-packages/Keras-0.3.0-py2.7.egg/keras/layers/containers.pyc in add_shared_node(self, layer, name, inputs, merge_mode, concat_axis, dot_axes, outputs, create_output)
327 raise Exception('Unknown identifier: ' + input)
328 s = Siamese(layer, layers, merge_mode, concat_axis=concat_axis, dot_axes=dot_axes)
--> 329 s.set_name(name)
330 self.namespace.add(name)
331 self.nodes[name] = s
AttributeError: 'Siamese' object has no attribute 'set_name'
</code></pre></div>
<p dir="auto">Is it my misunderstanding of using pattern or problem in code?</p> | <p dir="auto">Hi,</p>
<p dir="auto">I have been going through the latest the LSTM model for the text generation example from Andrej Kaparthy. It's pretty cool and works pretty well. Now, I am wondering if the LSTM model by Junhua Mao (<a href="http://arxiv.org/abs/1412.6632" rel="nofollow">http://arxiv.org/abs/1412.6632</a>) can be supported easily. The reason i am asking this is the duplication of an embedding layer before the RNN (figure2). I guess one can use the RepeatVector, but I havent seen enough examples to be sure. So some clarification will be helpful.</p>
<p dir="auto">Thanks! Keras rocks!</p> | 0 |
<ul dir="auto">
<li>Electron Version: 2.0.3</li>
<li>Operating System (Platform and Version): Windows_NT x64 10.0.17134</li>
<li>Last known working Electron version: None</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
When a window is maximized, the edges of the window should be in the same position as the edges of the screen it is maximized in</p>
<p dir="auto"><strong>Actual behavior</strong><br>
Every other time a window is maximized, the window if offset downwards by 17 pixels for seemingly no reason.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
<a href="https://github.com/TomSputz/electron-frameless-demo">Demonstration repository</a></p>
<p dir="auto">To start the application:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/TomSputz/electron-frameless-demo
$ cd electron-frameless-demo
$ start.bat"><pre class="notranslate">$ git clone https://github.com/TomSputz/electron-frameless-demo
$ <span class="pl-c1">cd</span> electron-frameless-demo
$ start.bat</pre></div>
<p dir="auto"><strong>Screenshots</strong><br>
(Using the demo application)<br>
Normal:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/8041cd337f3bd5d1be8a8e1a53eea6a93f18ad553e5d822e8e5d9a55923edf68/68747470733a2f2f692e696d6775722e636f6d2f3571324a6343352e706e67"><img src="https://camo.githubusercontent.com/8041cd337f3bd5d1be8a8e1a53eea6a93f18ad553e5d822e8e5d9a55923edf68/68747470733a2f2f692e696d6775722e636f6d2f3571324a6343352e706e67" alt="Picture of application taking up whole screen without issue" data-canonical-src="https://i.imgur.com/5q2JcC5.png" style="max-width: 100%;"></a><br>
Issue:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/79ac2e5ba41a8de0a512253eba63074e291ef66d4aae4e56b7179bb698677fc0/68747470733a2f2f692e696d6775722e636f6d2f516b426c4376322e706e67"><img src="https://camo.githubusercontent.com/79ac2e5ba41a8de0a512253eba63074e291ef66d4aae4e56b7179bb698677fc0/68747470733a2f2f692e696d6775722e636f6d2f516b426c4376322e706e67" alt="Picture of identical application, however it is shifted 17 pixels downwards, revealing the application behind it" data-canonical-src="https://i.imgur.com/QkBlCv2.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Additional Information</strong><br>
This is quite similar to an issue that was close last year in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="209220441" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/8728" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/8728/hovercard" href="https://github.com/electron/electron/issues/8728">#8728</a> , I don't know if they're related but looking at the changes made could be of use. As I understand it there is also a good chance that this is an upstream issue, if so is there any way I might generate support for that being fixed?</p> | <ul dir="auto">
<li>Electron Version: 2.0.1</li>
<li>Operating System (Platform and Version): Windows10 1803</li>
<li>Last known working Electron version: 2.0.1</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
Maximized normal and restore normal when i click button in no frame window</p>
<p dir="auto"><strong>Actual behavior</strong><br>
The first click is normal, but on the second click, there is a white edge on the window, and the window is also embedded under the taskbar.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/muxiaozi/electron-quick-start.git
$ cd electron-quick-start
$ npm install
$ npm start || electron ."><pre class="notranslate">$ git clone https://github.com/muxiaozi/electron-quick-start.git
$ <span class="pl-c1">cd</span> electron-quick-start
$ npm install
$ npm start <span class="pl-k">||</span> electron <span class="pl-c1">.</span></pre></div>
<p dir="auto"><strong>Screenshots</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18480599/40154254-04d8592a-59c0-11e8-8864-acb12c1d26a7.png"><img src="https://user-images.githubusercontent.com/18480599/40154254-04d8592a-59c0-11e8-8864-acb12c1d26a7.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Additional Information</strong><br>
(┬_┬)</p> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/49865284/133870189-79e2a9bb-894a-4583-8bc0-9220e0897f39.png"><img src="https://user-images.githubusercontent.com/49865284/133870189-79e2a9bb-894a-4583-8bc0-9220e0897f39.png" alt="06657fc32527658bba8e514e421b4d6" style="max-width: 100%;"></a><br>
The exception information returned by mysql executing the insert method is caught by the method execute catch of JDBCExecutorCallback and the execution result is false, which causes the business code to fail to obtain the exception information</p> | <p dir="auto">Originally posted by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/strongduanmu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/strongduanmu">@strongduanmu</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="949834834" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/11442" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/11442/hovercard?comment_id=884621246&comment_type=issue_comment" href="https://github.com/apache/shardingsphere/issues/11442#issuecomment-884621246">#11442 (comment)</a>_</p> | 0 |
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):Bug</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.6", GitCommit:"e569a27d02001e343cb68086bc06d47804f62af6", GitTreeState:"clean", BuildDate:"2016-11-12T05:16:27Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: AWS, this particular node is a c3.4xlarge with 60 GB gp2 root volume.</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Debian GNU/Linux 8 (jessie)</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux 4.4.26-k8s <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Fri Oct 21 05:21:13 UTC 2016 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>: Kops</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
The kubelet image garbage collection is triggered because disk space falls below the minimum threshold. Kubelet starts image deletions to recover disk space but by the end of the cleanup the node has been severely impacted with pods becoming unresponsive, restarted, and often rescheduled onto other nodes. In this particular case you can see that CPU becomes almost zero because everything has been moved off this node.</p>
<p dir="auto">Timing of this particular failure:<br>
16:56:38.000 GC started with <code class="notranslate">image_gc_manager.go:238] [imageGCManager]: Disk usage on "/dev/xvda1" (/) is at 90% which is over the high threshold (90%). Trying to free 5766938624 bytes</code> message in logs<br>
16:56:38 See the first <code class="notranslate">image_gc_manager.go:303] [imageGCManager]: Removing image</code> message in the logs<br>
17:01:38 See the final <code class="notranslate">Removing Image</code> message in the logs which is the 8th image to be deleted<br>
17:02 By this time graphs show just about everything has been moved off this node and there is nothing left running on it.</p>
<p dir="auto">The following graphs seem to indicate that as soon as the GC has finished kubelet "wakes up" and realizes everything has been removed from this node. In the dashboard I saw this node <code class="notranslate">Ready</code> state as <code class="notranslate">Unknown</code> instead of <code class="notranslate">True</code> during this period. It recovers and becomes functional after this hiccup and works fine when new pods get scheduled back onto the node.</p>
<p dir="auto">As expected the IO is higher during the cleanup but other metrics look fine and don't indicate a overloaded instance.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3944676/21147113/e2439eb6-c121-11e6-9662-c53a0c74e5e5.png"><img src="https://cloud.githubusercontent.com/assets/3944676/21147113/e2439eb6-c121-11e6-9662-c53a0c74e5e5.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3944676/21147121/e9044002-c121-11e6-9d1a-18153c1ba9e3.png"><img src="https://cloud.githubusercontent.com/assets/3944676/21147121/e9044002-c121-11e6-9d1a-18153c1ba9e3.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3944676/21147131/f22e8840-c121-11e6-9b57-f9d15a64fc34.png"><img src="https://cloud.githubusercontent.com/assets/3944676/21147131/f22e8840-c121-11e6-9b57-f9d15a64fc34.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
No impact to running services on node.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
This issue has happened on 3 different nodes all configured the same way. I don't believe a GC has occurred without causing this impact.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
Discussed briefly with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/justinsb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/justinsb">@justinsb</a></p>
<p dir="auto">Just a guess but is there any chance <code class="notranslate">im.imageRecordsLock.Lock()</code> at the top of <code class="notranslate">image_gc_manager.go->freeSpace</code> causes kubelet to stop processing other requests while GC is occuring?</p> | <p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p>
<p dir="auto">No</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p>
<ul dir="auto">
<li>initContainers imagePullPolicy</li>
<li>initContainers required value</li>
</ul>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p>
<p dir="auto">BUG REPORT</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:"1", Minor:"5+", GitVersion:"v1.5.0-beta.3", GitCommit:"35fd1363821b8432ccde55632cf9ead4c79eddbb", GitTreeState:"clean", BuildDate:"2016-12-08T21:58:56Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"5+", GitVersion:"v1.5.0-beta.3", GitCommit:"35fd1363821b8432ccde55632cf9ead4c79eddbb", GitTreeState:"clean", BuildDate:"2016-12-08T21:54:19Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"5+", GitVersion:"v1.5.0-beta.3", GitCommit:"35fd1363821b8432ccde55632cf9ead4c79eddbb", GitTreeState:"clean", BuildDate:"2016-12-08T21:58:56Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"5+", GitVersion:"v1.5.0-beta.3", GitCommit:"35fd1363821b8432ccde55632cf9ead4c79eddbb", GitTreeState:"clean", BuildDate:"2016-12-08T21:54:19Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}
</code></pre></div>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: GCE</li>
<li><strong>OS</strong> (e.g. from /etc/os-release):</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>: cluster/kube-up.sh</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">When trying to create either a ReplicaSet or Replication Controller whose Pod template contains an Init Container, the validation fails saying <code class="notranslate">imagePullPolicy</code> is a required value.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="The ReplicaSet "nginx" is invalid: spec.template.spec.initContainers[0].imagePullPolicy: Required value"><pre class="notranslate"><code class="notranslate">The ReplicaSet "nginx" is invalid: spec.template.spec.initContainers[0].imagePullPolicy: Required value
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="The ReplicationController "nginx" is invalid: spec.template.spec.initContainers[0].imagePullPolicy: Required value"><pre class="notranslate"><code class="notranslate">The ReplicationController "nginx" is invalid: spec.template.spec.initContainers[0].imagePullPolicy: Required value
</code></pre></div>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">The create should succeed and the Init Container should receive a default <code class="notranslate">imagePullPolicy</code>.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<p dir="auto">Try to create either of the following:</p>
<p dir="auto"><strong>ReplicaSet</strong></p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
name: nginx
spec:
replicas: 3
template:
metadata:
labels:
app: nginx
annotations:
pod.beta.kubernetes.io/init-containers: '[
{
"name": "install",
"image": "busybox",
"command": ["wget", "-O", "/work-dir/index.html", "http://kubernetes.io/index.html"],
"volumeMounts": [
{
"name": "workdir",
"mountPath": "/work-dir"
}
]
}
]'
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
volumeMounts:
- name: workdir
mountPath: /usr/share/nginx/html
dnsPolicy: Default
volumes:
- name: workdir
emptyDir: {}"><pre class="notranslate"><span class="pl-ent">apiVersion</span>: <span class="pl-s">extensions/v1beta1</span>
<span class="pl-ent">kind</span>: <span class="pl-s">ReplicaSet</span>
<span class="pl-ent">metadata</span>:
<span class="pl-ent">name</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">spec</span>:
<span class="pl-ent">replicas</span>: <span class="pl-c1">3</span>
<span class="pl-ent">template</span>:
<span class="pl-ent">metadata</span>:
<span class="pl-ent">labels</span>:
<span class="pl-ent">app</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">annotations</span>:
<span class="pl-ent">pod.beta.kubernetes.io/init-containers</span>: <span class="pl-s"><span class="pl-pds">'</span>[</span>
<span class="pl-s"> {</span>
<span class="pl-s"> "name": "install",</span>
<span class="pl-s"> "image": "busybox",</span>
<span class="pl-s"> "command": ["wget", "-O", "/work-dir/index.html", "http://kubernetes.io/index.html"],</span>
<span class="pl-s"> "volumeMounts": [</span>
<span class="pl-s"> {</span>
<span class="pl-s"> "name": "workdir",</span>
<span class="pl-s"> "mountPath": "/work-dir"</span>
<span class="pl-s"> }</span>
<span class="pl-s"> ]</span>
<span class="pl-s"> }</span>
<span class="pl-s"> ]<span class="pl-pds">'</span></span>
<span class="pl-ent">spec</span>:
<span class="pl-ent">containers</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">image</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">ports</span>:
- <span class="pl-ent">containerPort</span>: <span class="pl-c1">80</span>
<span class="pl-ent">volumeMounts</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">workdir</span>
<span class="pl-ent">mountPath</span>: <span class="pl-s">/usr/share/nginx/html</span>
<span class="pl-ent">dnsPolicy</span>: <span class="pl-s">Default</span>
<span class="pl-ent">volumes</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">workdir</span>
<span class="pl-ent">emptyDir</span>: <span class="pl-s">{}</span></pre></div>
<p dir="auto"><strong>Replication Controller</strong></p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="apiVersion: v1
kind: ReplicationController
metadata:
name: nginx
spec:
replicas: 3
selector:
app: nginx
template:
metadata:
labels:
app: nginx
annotations:
pod.beta.kubernetes.io/init-containers: '[
{
"name": "install",
"image": "busybox",
"command": ["wget", "-O", "/work-dir/index.html", "http://kubernetes.io/index.html"],
"volumeMounts": [
{
"name": "workdir",
"mountPath": "/work-dir"
}
]
}
]'
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
volumeMounts:
- name: workdir
mountPath: /usr/share/nginx/html
dnsPolicy: Default
volumes:
- name: workdir
emptyDir: {}"><pre class="notranslate"><span class="pl-ent">apiVersion</span>: <span class="pl-c1">v1</span>
<span class="pl-ent">kind</span>: <span class="pl-s">ReplicationController</span>
<span class="pl-ent">metadata</span>:
<span class="pl-ent">name</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">spec</span>:
<span class="pl-ent">replicas</span>: <span class="pl-c1">3</span>
<span class="pl-ent">selector</span>:
<span class="pl-ent">app</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">template</span>:
<span class="pl-ent">metadata</span>:
<span class="pl-ent">labels</span>:
<span class="pl-ent">app</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">annotations</span>:
<span class="pl-ent">pod.beta.kubernetes.io/init-containers</span>: <span class="pl-s"><span class="pl-pds">'</span>[</span>
<span class="pl-s"> {</span>
<span class="pl-s"> "name": "install",</span>
<span class="pl-s"> "image": "busybox",</span>
<span class="pl-s"> "command": ["wget", "-O", "/work-dir/index.html", "http://kubernetes.io/index.html"],</span>
<span class="pl-s"> "volumeMounts": [</span>
<span class="pl-s"> {</span>
<span class="pl-s"> "name": "workdir",</span>
<span class="pl-s"> "mountPath": "/work-dir"</span>
<span class="pl-s"> }</span>
<span class="pl-s"> ]</span>
<span class="pl-s"> }</span>
<span class="pl-s"> ]<span class="pl-pds">'</span></span>
<span class="pl-ent">spec</span>:
<span class="pl-ent">containers</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">image</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">ports</span>:
- <span class="pl-ent">containerPort</span>: <span class="pl-c1">80</span>
<span class="pl-ent">volumeMounts</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">workdir</span>
<span class="pl-ent">mountPath</span>: <span class="pl-s">/usr/share/nginx/html</span>
<span class="pl-ent">dnsPolicy</span>: <span class="pl-s">Default</span>
<span class="pl-ent">volumes</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">workdir</span>
<span class="pl-ent">emptyDir</span>: <span class="pl-s">{}</span></pre></div>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">If I add <code class="notranslate">"imagePullPolicy": "IfNotPresent",</code> to the Init Container in the ReplicaSet or Replication Controller Pod template, the create succeeds.</p>
<p dir="auto">When I create an Init Container without <code class="notranslate">imagePullPolicy</code> in a StatefulSet Pod template, it succeeds.</p>
<p dir="auto">When I create an Init Container without <code class="notranslate">imagePullPolicy</code> in a bare Pod, it succeeds:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="apiVersion: v1
kind: Pod
metadata:
name: nginx
annotations:
pod.beta.kubernetes.io/init-containers: '[
{
"name": "install",
"image": "busybox",
"command": ["wget", "-O", "/work-dir/index.html", "http://kubernetes.io/index.html"],
"volumeMounts": [
{
"name": "workdir",
"mountPath": "/work-dir"
}
]
}
]'
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
volumeMounts:
- name: workdir
mountPath: /usr/share/nginx/html
dnsPolicy: Default
volumes:
- name: workdir
emptyDir: {}"><pre class="notranslate"><span class="pl-ent">apiVersion</span>: <span class="pl-c1">v1</span>
<span class="pl-ent">kind</span>: <span class="pl-s">Pod</span>
<span class="pl-ent">metadata</span>:
<span class="pl-ent">name</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">annotations</span>:
<span class="pl-ent">pod.beta.kubernetes.io/init-containers</span>: <span class="pl-s"><span class="pl-pds">'</span>[</span>
<span class="pl-s"> {</span>
<span class="pl-s"> "name": "install",</span>
<span class="pl-s"> "image": "busybox",</span>
<span class="pl-s"> "command": ["wget", "-O", "/work-dir/index.html", "http://kubernetes.io/index.html"],</span>
<span class="pl-s"> "volumeMounts": [</span>
<span class="pl-s"> {</span>
<span class="pl-s"> "name": "workdir",</span>
<span class="pl-s"> "mountPath": "/work-dir"</span>
<span class="pl-s"> }</span>
<span class="pl-s"> ]</span>
<span class="pl-s"> }</span>
<span class="pl-s"> ]<span class="pl-pds">'</span></span>
<span class="pl-ent">spec</span>:
<span class="pl-ent">containers</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">image</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">ports</span>:
- <span class="pl-ent">containerPort</span>: <span class="pl-c1">80</span>
<span class="pl-ent">volumeMounts</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">workdir</span>
<span class="pl-ent">mountPath</span>: <span class="pl-s">/usr/share/nginx/html</span>
<span class="pl-ent">dnsPolicy</span>: <span class="pl-s">Default</span>
<span class="pl-ent">volumes</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">workdir</span>
<span class="pl-ent">emptyDir</span>: <span class="pl-s">{}</span></pre></div> | 0 |
<p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/a</li>
<li>TensorFlow installed from (source or binary): binary</li>
<li>TensorFlow version (use command below): 2.0.0-beta0</li>
<li>Python version: 3.6</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version: 10.0, 7.5</li>
<li>GPU model and memory: 11gb, GTX1080Ti</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture<br>
<a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br>
You can also obtain the TensorFlow version with: 1. TF 1.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</code> 2. TF 2.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"</code></p>
<p dir="auto"><strong>Describe the current behavior</strong><br>
I was using the code below with 1.12, 1.13.1 and tf2.0 alpha. But it fails to run in the latest tf2.0 beta. As you can see there is nothing fancy going on in the code. This is the block of code that produces this error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def ASPP(tensor):
'''atrous spatial pyramid pooling'''
dims = K.int_shape(tensor)
y_pool = AveragePooling2D(pool_size=(
dims[1], dims[2]), name='average_pooling')(tensor)
y_pool = Conv2D(filters=256, kernel_size=1, padding='same',
kernel_initializer='he_normal', name='pool_1x1conv2d', use_bias=False)(y_pool)
y_pool = BatchNormalization(name=f'bn_1')(y_pool)
y_pool = Activation('relu', name=f'relu_1')(y_pool)
y_pool = Upsample(tensor=y_pool, size=[dims[1], dims[2]])
y_1 = Conv2D(filters=256, kernel_size=1, dilation_rate=1, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d1', use_bias=False)(tensor)
y_1 = BatchNormalization(name=f'bn_2')(y_1)
y_1 = Activation('relu', name=f'relu_2')(y_1)
y_6 = Conv2D(filters=256, kernel_size=3, dilation_rate=6, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d6', use_bias=False)(tensor)
y_6 = BatchNormalization(name=f'bn_3')(y_6)
y_6 = Activation('relu', name=f'relu_3')(y_6)
y_12 = Conv2D(filters=256, kernel_size=3, dilation_rate=12, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d12', use_bias=False)(tensor)
y_12 = BatchNormalization(name=f'bn_4')(y_12)
y_12 = Activation('relu', name=f'relu_4')(y_12)
y_18 = Conv2D(filters=256, kernel_size=3, dilation_rate=18, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d18', use_bias=False)(tensor)
y_18 = BatchNormalization(name=f'bn_5')(y_18)
y_18 = Activation('relu', name=f'relu_5')(y_18)
y = concatenate([y_pool, y_1, y_6, y_12, y_18], name='ASPP_concat')
y = Conv2D(filters=256, kernel_size=1, dilation_rate=1, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_final', use_bias=False)(y)
y = BatchNormalization(name=f'bn_final')(y)
y = Activation('relu', name=f'relu_final')(y)
return y"><pre class="notranslate"><code class="notranslate">def ASPP(tensor):
'''atrous spatial pyramid pooling'''
dims = K.int_shape(tensor)
y_pool = AveragePooling2D(pool_size=(
dims[1], dims[2]), name='average_pooling')(tensor)
y_pool = Conv2D(filters=256, kernel_size=1, padding='same',
kernel_initializer='he_normal', name='pool_1x1conv2d', use_bias=False)(y_pool)
y_pool = BatchNormalization(name=f'bn_1')(y_pool)
y_pool = Activation('relu', name=f'relu_1')(y_pool)
y_pool = Upsample(tensor=y_pool, size=[dims[1], dims[2]])
y_1 = Conv2D(filters=256, kernel_size=1, dilation_rate=1, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d1', use_bias=False)(tensor)
y_1 = BatchNormalization(name=f'bn_2')(y_1)
y_1 = Activation('relu', name=f'relu_2')(y_1)
y_6 = Conv2D(filters=256, kernel_size=3, dilation_rate=6, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d6', use_bias=False)(tensor)
y_6 = BatchNormalization(name=f'bn_3')(y_6)
y_6 = Activation('relu', name=f'relu_3')(y_6)
y_12 = Conv2D(filters=256, kernel_size=3, dilation_rate=12, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d12', use_bias=False)(tensor)
y_12 = BatchNormalization(name=f'bn_4')(y_12)
y_12 = Activation('relu', name=f'relu_4')(y_12)
y_18 = Conv2D(filters=256, kernel_size=3, dilation_rate=18, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d18', use_bias=False)(tensor)
y_18 = BatchNormalization(name=f'bn_5')(y_18)
y_18 = Activation('relu', name=f'relu_5')(y_18)
y = concatenate([y_pool, y_1, y_6, y_12, y_18], name='ASPP_concat')
y = Conv2D(filters=256, kernel_size=1, dilation_rate=1, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_final', use_bias=False)(y)
y = BatchNormalization(name=f'bn_final')(y)
y = Activation('relu', name=f'relu_final')(y)
return y
</code></pre></div>
<p dir="auto">Strangely shapes of y_pool, y_1 are correctly inferred , complete code to reproduce the issue available below</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="y = concatenate([y_pool, y_1, y_6, y_12, y_18], name='ASPP_concat')"><pre class="notranslate"><code class="notranslate">y = concatenate([y_pool, y_1, y_6, y_12, y_18], name='ASPP_concat')
</code></pre></div>
<p dir="auto"><strong>Describe the expected behavior</strong><br>
The code should work as it did in the earlier release ie tf2.0 alpha<br>
<strong>Code to reproduce the issue</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
from tensorflow.keras import backend as K
from tensorflow.keras.models import Model
from tensorflow.keras.layers import AveragePooling2D, Lambda, Conv2D, Conv2DTranspose, Activation, Reshape, concatenate, Concatenate, BatchNormalization, ZeroPadding2D
from tensorflow.keras.applications.resnet50 import ResNet50
def Upsample(tensor, size):
'''bilinear upsampling'''
name = tensor.name.split('/')[0] + '_upsample'
def bilinear_upsample(x, size):
resized = tf.image.resize(
images=x, size=size)
return resized
y = Lambda(lambda x: bilinear_upsample(x, size),
output_shape=size, name=name)(tensor)
return y
def ASPP(tensor):
'''atrous spatial pyramid pooling'''
dims = K.int_shape(tensor)
y_pool = AveragePooling2D(pool_size=(
dims[1], dims[2]), name='average_pooling')(tensor)
y_pool = Conv2D(filters=256, kernel_size=1, padding='same',
kernel_initializer='he_normal', name='pool_1x1conv2d', use_bias=False)(y_pool)
y_pool = BatchNormalization(name=f'bn_1')(y_pool)
y_pool = Activation('relu', name=f'relu_1')(y_pool)
y_pool = Upsample(tensor=y_pool, size=[dims[1], dims[2]])
y_1 = Conv2D(filters=256, kernel_size=1, dilation_rate=1, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d1', use_bias=False)(tensor)
y_1 = BatchNormalization(name=f'bn_2')(y_1)
y_1 = Activation('relu', name=f'relu_2')(y_1)
y_6 = Conv2D(filters=256, kernel_size=3, dilation_rate=6, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d6', use_bias=False)(tensor)
y_6 = BatchNormalization(name=f'bn_3')(y_6)
y_6 = Activation('relu', name=f'relu_3')(y_6)
y_12 = Conv2D(filters=256, kernel_size=3, dilation_rate=12, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d12', use_bias=False)(tensor)
y_12 = BatchNormalization(name=f'bn_4')(y_12)
y_12 = Activation('relu', name=f'relu_4')(y_12)
y_18 = Conv2D(filters=256, kernel_size=3, dilation_rate=18, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d18', use_bias=False)(tensor)
y_18 = BatchNormalization(name=f'bn_5')(y_18)
y_18 = Activation('relu', name=f'relu_5')(y_18)
y = concatenate([y_pool, y_1, y_6, y_12, y_18], name='ASPP_concat')
y = Conv2D(filters=256, kernel_size=1, dilation_rate=1, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_final', use_bias=False)(y)
y = BatchNormalization(name=f'bn_final')(y)
y = Activation('relu', name=f'relu_final')(y)
return y
def DeepLabV3Plus(img_height, img_width):
base_model = ResNet50(input_shape=(
img_height, img_width, 3), weights='imagenet', include_top=False)
image_features = base_model.get_layer('activation_39').output
x_a = ASPP(image_features)
x_a = Upsample(tensor=x_a, size=[img_height // 4, img_width // 4])
x_b = base_model.get_layer('activation_9').output
x_b = Conv2D(filters=48, kernel_size=1, padding='same',
kernel_initializer='he_normal', name='low_level_projection', use_bias=False)(x_b)
x_b = BatchNormalization(name=f'bn_low_level_projection')(x_b)
x_b = Activation('relu', name='low_level_activation')(x_b)
x = concatenate([x_a, x_b], name='decoder_concat')
x = Conv2D(filters=256, kernel_size=3, padding='same', activation='relu',
kernel_initializer='he_normal', name='decoder_conv2d_1', use_bias=False)(x)
x = BatchNormalization(name=f'bn_decoder_1')(x)
x = Activation('relu', name='activation_decoder_1')(x)
x = Conv2D(filters=256, kernel_size=3, padding='same', activation='relu',
kernel_initializer='he_normal', name='decoder_conv2d_2', use_bias=False)(x)
x = BatchNormalization(name=f'bn_decoder_2')(x)
x = Activation('relu', name='activation_decoder_2')(x)
x = Upsample(x, [img_height, img_width])
x = Conv2D(1, (1, 1), name='output_layer')(x)
x = Activation('sigmoid')(x)
model = Model(inputs=base_model.input, outputs=x, name='DeepLabV3_Plus')
return model"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
from tensorflow.keras import backend as K
from tensorflow.keras.models import Model
from tensorflow.keras.layers import AveragePooling2D, Lambda, Conv2D, Conv2DTranspose, Activation, Reshape, concatenate, Concatenate, BatchNormalization, ZeroPadding2D
from tensorflow.keras.applications.resnet50 import ResNet50
def Upsample(tensor, size):
'''bilinear upsampling'''
name = tensor.name.split('/')[0] + '_upsample'
def bilinear_upsample(x, size):
resized = tf.image.resize(
images=x, size=size)
return resized
y = Lambda(lambda x: bilinear_upsample(x, size),
output_shape=size, name=name)(tensor)
return y
def ASPP(tensor):
'''atrous spatial pyramid pooling'''
dims = K.int_shape(tensor)
y_pool = AveragePooling2D(pool_size=(
dims[1], dims[2]), name='average_pooling')(tensor)
y_pool = Conv2D(filters=256, kernel_size=1, padding='same',
kernel_initializer='he_normal', name='pool_1x1conv2d', use_bias=False)(y_pool)
y_pool = BatchNormalization(name=f'bn_1')(y_pool)
y_pool = Activation('relu', name=f'relu_1')(y_pool)
y_pool = Upsample(tensor=y_pool, size=[dims[1], dims[2]])
y_1 = Conv2D(filters=256, kernel_size=1, dilation_rate=1, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d1', use_bias=False)(tensor)
y_1 = BatchNormalization(name=f'bn_2')(y_1)
y_1 = Activation('relu', name=f'relu_2')(y_1)
y_6 = Conv2D(filters=256, kernel_size=3, dilation_rate=6, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d6', use_bias=False)(tensor)
y_6 = BatchNormalization(name=f'bn_3')(y_6)
y_6 = Activation('relu', name=f'relu_3')(y_6)
y_12 = Conv2D(filters=256, kernel_size=3, dilation_rate=12, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d12', use_bias=False)(tensor)
y_12 = BatchNormalization(name=f'bn_4')(y_12)
y_12 = Activation('relu', name=f'relu_4')(y_12)
y_18 = Conv2D(filters=256, kernel_size=3, dilation_rate=18, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_d18', use_bias=False)(tensor)
y_18 = BatchNormalization(name=f'bn_5')(y_18)
y_18 = Activation('relu', name=f'relu_5')(y_18)
y = concatenate([y_pool, y_1, y_6, y_12, y_18], name='ASPP_concat')
y = Conv2D(filters=256, kernel_size=1, dilation_rate=1, padding='same',
kernel_initializer='he_normal', name='ASPP_conv2d_final', use_bias=False)(y)
y = BatchNormalization(name=f'bn_final')(y)
y = Activation('relu', name=f'relu_final')(y)
return y
def DeepLabV3Plus(img_height, img_width):
base_model = ResNet50(input_shape=(
img_height, img_width, 3), weights='imagenet', include_top=False)
image_features = base_model.get_layer('activation_39').output
x_a = ASPP(image_features)
x_a = Upsample(tensor=x_a, size=[img_height // 4, img_width // 4])
x_b = base_model.get_layer('activation_9').output
x_b = Conv2D(filters=48, kernel_size=1, padding='same',
kernel_initializer='he_normal', name='low_level_projection', use_bias=False)(x_b)
x_b = BatchNormalization(name=f'bn_low_level_projection')(x_b)
x_b = Activation('relu', name='low_level_activation')(x_b)
x = concatenate([x_a, x_b], name='decoder_concat')
x = Conv2D(filters=256, kernel_size=3, padding='same', activation='relu',
kernel_initializer='he_normal', name='decoder_conv2d_1', use_bias=False)(x)
x = BatchNormalization(name=f'bn_decoder_1')(x)
x = Activation('relu', name='activation_decoder_1')(x)
x = Conv2D(filters=256, kernel_size=3, padding='same', activation='relu',
kernel_initializer='he_normal', name='decoder_conv2d_2', use_bias=False)(x)
x = BatchNormalization(name=f'bn_decoder_2')(x)
x = Activation('relu', name='activation_decoder_2')(x)
x = Upsample(x, [img_height, img_width])
x = Conv2D(1, (1, 1), name='output_layer')(x)
x = Activation('sigmoid')(x)
model = Model(inputs=base_model.input, outputs=x, name='DeepLabV3_Plus')
return model
</code></pre></div>
<p dir="auto"><strong>Other info / logs</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError Traceback (most recent call last)
<ipython-input-20-0876af914f24> in <module>()
----> 1 DeepLabV3Plus(512, 512)
6 frames
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/layers/merge.py in build(self, input_shape)
389 'inputs with matching shapes '
390 'except for the concat axis. '
--> 391 'Got inputs shapes: %s' % (input_shape))
392
393 def _merge_function(self, inputs):
ValueError: A `Concatenate` layer requires inputs with matching shapes except for the concat axis. Got inputs shapes: [(None, 32, 32, 256), (None, 32, 32, 256), (None, None, None, 256), (None, None, None, 256), (None, None, None, 256)]"><pre class="notranslate"><code class="notranslate">ValueError Traceback (most recent call last)
<ipython-input-20-0876af914f24> in <module>()
----> 1 DeepLabV3Plus(512, 512)
6 frames
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/layers/merge.py in build(self, input_shape)
389 'inputs with matching shapes '
390 'except for the concat axis. '
--> 391 'Got inputs shapes: %s' % (input_shape))
392
393 def _merge_function(self, inputs):
ValueError: A `Concatenate` layer requires inputs with matching shapes except for the concat axis. Got inputs shapes: [(None, 32, 32, 256), (None, 32, 32, 256), (None, None, None, 256), (None, None, None, 256), (None, None, None, 256)]
</code></pre></div> | <p dir="auto"><strong>System information</strong><br>
Ubuntu 18.04, Tensorflow r2.0 from pip</p>
<p dir="auto"><strong>Describe the current behavior</strong><br>
<a href="https://github.com/tensorflow/tensorflow/blob/r2.0/tensorflow/core/kernels/non_max_suppression_op.cu.cc#L96">https://github.com/tensorflow/tensorflow/blob/r2.0/tensorflow/core/kernels/non_max_suppression_op.cu.cc#L96</a></p>
<p dir="auto"><strong>Describe the expected behavior</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const float w = fdimf(xx2, xx1);
const float h = fdimf(yy2, yy1);
const float intersection = w * h;"><pre class="notranslate"><code class="notranslate">const float w = fdimf(xx2, xx1);
const float h = fdimf(yy2, yy1);
const float intersection = w * h;
</code></pre></div>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
I believe that the calculation of intersection over union in line 96 of the GPU implementation of non-max suppression is incorrect.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="boxes = np.array([[0.2, 0.3, 0.4, 0.5], [0.61, 0.71, 0.81, 0.91], [0.6, 0.7, 0.8, 0.9]], dtype=np.float32)
score = np.array([0.2, 0.7, 0.6], dtype=np.float32)
iou_threshold = 0.5
nms_reference_cpu = tf.image.non_max_suppression(
boxes=boxes,
scores=score,
max_output_size=3,
iou_threshold=0.5,
)
= [1, 0]"><pre class="notranslate"><code class="notranslate">boxes = np.array([[0.2, 0.3, 0.4, 0.5], [0.61, 0.71, 0.81, 0.91], [0.6, 0.7, 0.8, 0.9]], dtype=np.float32)
score = np.array([0.2, 0.7, 0.6], dtype=np.float32)
iou_threshold = 0.5
nms_reference_cpu = tf.image.non_max_suppression(
boxes=boxes,
scores=score,
max_output_size=3,
iou_threshold=0.5,
)
= [1, 0]
</code></pre></div>
<p dir="auto">it will not work for GPU, but it will work for CPU. If you remove the +1 (not sure why you would want to do that in the first place), they match.</p>
<p dir="auto"><strong>Other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> | 0 |
<p dir="auto">It would be so cool to have a power toy that recorded your screen, with microphone and camera. Windows already has this, but it's limited to 2 minutes, and you can only record screen in one app at a time.</p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2>
<ul dir="auto">
<li>PowerToys version: 0.20.1</li>
<li>PowerToy Utility: Settings</li>
<li>Running PowerToys as Admin: no</li>
<li>Windows build number: [run "winver"] 18362 (happens only on laptop screen but not on attached monitor).</li>
</ul>
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2>
<ol dir="auto">
<li>Try to navigate the left navigation pane using arrow keys.</li>
</ol>
<h3 dir="auto">❌ Actual result</h3>
<p dir="auto"><em>What is the actual result of the above steps?</em></p>
<p dir="auto"><strong>Navigation Issue</strong>: Navigation view control is expected to navigate using the up and down arrow keys, but it does not happen. The weird thing is that when I try to do the same on the monitor attached to my laptop it works fine but just not on my laptop screen. Seems like it has something to do with the hardware configuration of my laptop screen as it works fine on the attached monitor. We are expected to navigate to the selected index but we always end up navigating to the first element.<br>
<strong>Narrator Issue</strong>: The narrator is expected to say <code class="notranslate">General selected 1 of 9...</code> and similar things for all the items but it only does so on my monitor and not on my laptop screen. On my laptop screen it does so for the first tab but for the others it just reads out the first item in content of that page.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28739210/90905560-36eeda00-e385-11ea-9522-4aa238c147cb.png"><img src="https://user-images.githubusercontent.com/28739210/90905560-36eeda00-e385-11ea-9522-4aa238c147cb.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Steps to reproduce the bug</strong></p>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Try to tab into a navigation view control</li>
</ol>
<h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3>
<p dir="auto">As you can see in the gif. The smaller recording is on my monitor screen and the arrow based navigation works as expected. The larger one is on my laptop screen and it does not work. The monitor is just connected to my laptop by a HDMI cable.</p>
<p dir="auto"><strong>Screenshots</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28739210/90905415-0149f100-e385-11ea-8353-f292328f6782.gif"><img src="https://user-images.githubusercontent.com/28739210/90905415-0149f100-e385-11ea-8353-f292328f6782.gif" alt="arrow_navigation" data-animated-image="" style="max-width: 100%;"></a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2>
<p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em></p>
<h4 dir="auto">Corresponding issue in the microsoft-ui-xaml repo - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="683634467" data-permission-text="Title is private" data-url="https://github.com/microsoft/microsoft-ui-xaml/issues/3179" data-hovercard-type="issue" data-hovercard-url="/microsoft/microsoft-ui-xaml/issues/3179/hovercard" href="https://github.com/microsoft/microsoft-ui-xaml/issues/3179">microsoft/microsoft-ui-xaml#3179</a></h4> | 0 |
<h3 dir="auto">Problem description</h3>
<p dir="auto">When clicking a menu item that is disabled onTouchTap is fired anyways.</p>
alert("what")} />
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 0.18.X (latest)</li>
<li>React: 15.5</li>
<li>Browser: chrome latest</li>
</ul> | <p dir="auto">Hi,</p>
<p dir="auto">if a menu item is disabled and clicked the onTouchTap function is still called. Code example below. Happens in latest 0.18 release. It has correct disabled styling.</p>
<p dir="auto">what i would expect: disabled icons do not trigger onTouchTap function.</p>
<p dir="auto">Regards</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<IconMenu>
<MenuItem
onTouchTap={this._clickable}
leftIcon={<SomeIcon />}
disabled={true}
/>
</IconMenu>"><pre class="notranslate"><code class="notranslate"><IconMenu>
<MenuItem
onTouchTap={this._clickable}
leftIcon={<SomeIcon />}
disabled={true}
/>
</IconMenu>
</code></pre></div> | 1 |
<p dir="auto">I was testing a few different ways to calculate a quantity over an array, and noticed for loops slowed down significantly from commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/317a4d1141fa5302f98f0079b98e679d4847c7eb/hovercard" href="https://github.com/JuliaLang/julia/commit/317a4d1141fa5302f98f0079b98e679d4847c7eb"><tt>317a4d1</tt></a>* (16 days old master). <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/timholy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/timholy">@timholy</a> suggested I file an issue here.<br>
The test code is here: <a href="https://github.com/JaredCrean2/julia_tests/tree/master/array_speed2">https://github.com/JaredCrean2/julia_tests/tree/master/array_speed2</a>. It does the calculating using a manually inlined double for loop, ArrayViews, and SubArrays.</p>
<p dir="auto">Using Julia Version 0.4.0-dev+5149 (2015-06-01 18:58 UTC) Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/317a4d1141fa5302f98f0079b98e679d4847c7eb/hovercard" href="https://github.com/JuliaLang/julia/commit/317a4d1141fa5302f98f0079b98e679d4847c7eb"><tt>317a4d1</tt></a>* (16 days old master)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 592.426 milliseconds (14232 allocations: 586 KB)
double loop @time printed above
495.138 milliseconds (14422 allocations: 599 KB)
ArrayView @time printed above
15.753 seconds (300 M allocations: 8240 MB, 3.39% gc time)
slice @time printed above"><pre class="notranslate"><code class="notranslate"> 592.426 milliseconds (14232 allocations: 586 KB)
double loop @time printed above
495.138 milliseconds (14422 allocations: 599 KB)
ArrayView @time printed above
15.753 seconds (300 M allocations: 8240 MB, 3.39% gc time)
slice @time printed above
</code></pre></div>
<p dir="auto">Using Julia Version 0.4.0-dev+5439 (2015-06-18 13:48 UTC) Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/a23caa06c923d1efe174e4bdcf17115c1904d430/hovercard" href="https://github.com/JuliaLang/julia/commit/a23caa06c923d1efe174e4bdcf17115c1904d430"><tt>a23caa0</tt></a>* (0 days old master):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 1.720 seconds (102 k allocations: 3600 KB)
double loop @time printed above
566.122 milliseconds (16237 allocations: 692 KB)
ArrayView @time printed above
4.137 seconds (240 M allocations: 8240 MB, 12.96% gc time)
slice @time printed above"><pre class="notranslate"><code class="notranslate"> 1.720 seconds (102 k allocations: 3600 KB)
double loop @time printed above
566.122 milliseconds (16237 allocations: 692 KB)
ArrayView @time printed above
4.137 seconds (240 M allocations: 8240 MB, 12.96% gc time)
slice @time printed above
</code></pre></div>
<p dir="auto">I looked at <code class="notranslate">@code_warntye getEulerFlux(q,F)</code>, and the <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/a23caa06c923d1efe174e4bdcf17115c1904d430/hovercard" href="https://github.com/JuliaLang/julia/commit/a23caa06c923d1efe174e4bdcf17115c1904d430"><tt>a23caa0</tt></a> produced a huge amount of code (>1100 lines) compared to the <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/317a4d1141fa5302f98f0079b98e679d4847c7eb/hovercard" href="https://github.com/JuliaLang/julia/commit/317a4d1141fa5302f98f0079b98e679d4847c7eb"><tt>317a4d1</tt></a> (~70 lines), and included many lines that looked like</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(top(throw_boundserror))(q::Array{Float64,3},GenSym(45))::Union{}"><pre class="notranslate">(<span class="pl-c1">top</span>(throw_boundserror))(q<span class="pl-k">::</span><span class="pl-c1">Array{Float64,3}</span>,<span class="pl-c1">GenSym</span>(<span class="pl-c1">45</span>))<span class="pl-k">::</span><span class="pl-c1">Union{}</span></pre></div>
<p dir="auto">that were not present in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/317a4d1141fa5302f98f0079b98e679d4847c7eb/hovercard" href="https://github.com/JuliaLang/julia/commit/317a4d1141fa5302f98f0079b98e679d4847c7eb"><tt>317a4d1</tt></a>.</p> | <p dir="auto">It would be great to get suggestions from the REPL on methods for a given type. For example, I enter a <code class="notranslate">DataFrame</code> <code class="notranslate">df</code> on the REPL, and it provides me with a list of methods that I can use with a <code class="notranslate">DataFrame</code>. Amongst others, this would suggest <code class="notranslate">head</code> for the <code class="notranslate">DataFrame</code>. I could then select and autocomplete with <code class="notranslate">[TAB]</code> in the same way as currenly be done with autocompletion of fields etc. Finally, the REPL prepends the selection to create the resulting method call, e.g. <code class="notranslate">head(df)</code>. This can be based on <code class="notranslate">methodswith</code>.</p>
<p dir="auto">With this feature, we replicate the benefit that the Python user enjoys when she types <code class="notranslate">df.[TAB]</code> to get a list of names (including functions) associated with an object.</p>
<p dir="auto">One way to evoke this list may be to type <code class="notranslate">(df)[TAB]</code> to get the list list of <code class="notranslate">methodswith(typeof(df))</code>, but any better suggestion from a REPL expert is welcome.</p>
<p dir="auto">An alphabetically ordered list would be a good start. As a refinement, the list can have clever prioritization/filtering, e.g. prioritize methods where the type is the only argument, the first argument, methods that are unique to this type (as opposed to e.g. <code class="notranslate">+</code> which is defined for many types), ... .</p> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">apt_key</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.0.0
config file = None
configured module search path = [u'/home/mg/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/mg/.venv/local/lib/python2.7/site-packages/ansible
executable location = /home/mg/.venv/bin/ansible
python version = 2.7.14 (default, Sep 23 2017, 22:06:14) [GCC 7.2.0]"><pre class="notranslate"><code class="notranslate">ansible 2.4.0.0
config file = None
configured module search path = [u'/home/mg/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/mg/.venv/local/lib/python2.7/site-packages/ansible
executable location = /home/mg/.venv/bin/ansible
python version = 2.7.14 (default, Sep 23 2017, 22:06:14) [GCC 7.2.0]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ubuntu</p>
<h5 dir="auto">SUMMARY</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible <hostname> -m apt_key -a url=https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub --check"><pre class="notranslate"><code class="notranslate">ansible <hostname> -m apt_key -a url=https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub --check
</code></pre></div>
<p dir="auto">goes ahead and adds the apt key, ignoring the <code class="notranslate">--check</code> mode.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">See above.</p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">No key is added; status is "changed".</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Key is added; status is "changed".</p> | <p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/selivan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/selivan">@selivan</a> on 2016-06-15T16:15:11Z</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">apt_key</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto"><code class="notranslate">ansible --version</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Management host: Ubuntu 14.04 Trusty<br>
Controlled host: Ubuntu 14.04 Trusty</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">If apt_key module takes keyfile from <code class="notranslate">data="{{ lookup('file', 'key.gpg') }}"</code>, it always marks task as "changed" in <code class="notranslate">--check</code> mode, despite that this key is present in apt keyring on target host. In normal mode is marks this task as "ok".</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto"><code class="notranslate">roles/common-monitoring/tasks/main.yml</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: add zabbix repository apt key
apt_key: data="{{ lookup('file', 'zabbix-official-repo.key') }}" state=present"><pre class="notranslate"><code class="notranslate">- name: add zabbix repository apt key
apt_key: data="{{ lookup('file', 'zabbix-official-repo.key') }}" state=present
</code></pre></div>
<p dir="auto"><code class="notranslate">roles/common-monitoring/files/zabbix-official-repo.key</code> : <a href="https://gist.github.com/selivan/44d970b55b75a6435d02f2b42dbe44db">https://gist.github.com/selivan/44d970b55b75a6435d02f2b42dbe44db</a></p>
<p dir="auto"><code class="notranslate">playbook.yml</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: remote_host
become: yes
roles:
- { role: common-monitoring, tags: ['common-monitoring'] }
"><pre class="notranslate"><code class="notranslate">- hosts: remote_host
become: yes
roles:
- { role: common-monitoring, tags: ['common-monitoring'] }
</code></pre></div>
<p dir="auto"><code class="notranslate">ansible-playbook playbook.yml --check</code></p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Task should be reported as "ok" because key already exists in apt keyring on remote host.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Task is always reported as "changed".</p>
<p dir="auto"><code class="notranslate">ansible-playbook playbook.yml --check -vvv</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [common-monitoring : add zabbix repository apt key] ***********************
task path: /home/XXXXXX/ansible/roles/common-monitoring/tasks/main.yml:3
File lookup using /home/XXXXXX/ansible/roles/common-monitoring/files/zabbix-official-repo.key as file
<XX.XX.XX.XX> ESTABLISH SSH CONNECTION FOR USER: None
<XX.XX.XX.XX> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=g
ssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/XXXXXX/.ansible/cp/ansib
le-ssh-%h-%p-%r 172.31.113.12 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1466006828.99-150895880810391 `" && e
cho ansible-tmp-1466006828.99-150895880810391="` echo $HOME/.ansible/tmp/ansible-tmp-1466006828.99-150895880810391 `" ) && sleep 0'"'"''
<XX.XX.XX.XX> PUT /tmp/tmpSGoEiZ TO /home/XXXXXX/.ansible/tmp/ansible-tmp-1466006828.99-150895880810391/apt_key
<XX.XX.XX.XX> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthenticat
ions=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/XXXXXX/.ansible/cp
/ansible-ssh-%h-%p-%r '[172.31.113.12]'
<XX.XX.XX.XX> ESTABLISH SSH CONNECTION FOR USER: None
<XX.XX.XX.XX> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=g
ssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/XXXXXX/.ansible/cp/ansib
le-ssh-%h-%p-%r -tt 172.31.113.12 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-rstyhbjupbasyihpfmmshmtlc
qyjhfhu; LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python /home/XXXXXX/.ansible/tmp/ansible-tmp-1466006828.99-150895880810391/apt_key; rm -rf "/ho
me/XXXXXX/.ansible/tmp/ansible-tmp-1466006828.99-150895880810391/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
changed: [log01] => {"changed": true, "invocation": {"module_args": {"data": "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.5 (GNU/Lin
ux)\n\nmQGiBFCNJaYRBAC4nIW8o2NyOIswb82Xn3AYSMUcNZuKB2fMtpu0WxSXIRiX2BwC\nYXx8cIEQVYtLRBL5o0JdmoNCjW6jd5fOVem3EmOcPksvzzRWonIgFHf4EI2n1KJc\nJXX/nDC
+eoh5xW35mRNFN/BEJHxxiRGGbp2MCnApwgrZLhOujaCGAwavGwCgiG4D\nwKMZ4xX6Y2Gv3MSuzMIT0bcEAKYn3WohS+udp0yC3FHDj+oxfuHpklu1xuI3y6ha\n402aEFahNi3wr316ukgdP
AYLbpz76ivoouTJ/U2MqbNLjAspDvlnHXXyqPM5GC6K\njtXPqNrRMUCrwisoAhorGUg/+S5pyXwsWcJ6EKmA80pR9HO+TbsELE5bGe/oc238\nt/2oBAC3zcQ46wPvXpMCNFb+ED71qDOlnDY
aaAPbjgkvnp+WN6nZFFyevjx180Kw\nqWOLnlNP6JOuFW27MP75MDPDpbAAOVENp6qnuW9dxXTN80YpPLKUxrQS8vWPnzkY\nWtUfF75pEOACFVTgXIqEgW0E6oww2HJi9zF5fS8IlFHJztNYt
bQgWmFiYml4IFNJ\nQSA8cGFja2FnZXJAemFiYml4LmNvbT6IYAQTEQIAIAUCUI0lpgIbAwYLCQgHAwIE\nFQIIAwQWAgMBAh4BAheAAAoJENE9WOR56l7UhUwAmgIGZ39U6D2w2oIWDD8m7KV
3\noI06AJ9EnOxMMlxEjTkt9lEvGhEX1bEh7bkBDQRQjSWmEAQAqx+ecOzBbhqMq5hU\nl39cJ6l4aocz6EZ9mSSoF/g+HFz6WYnPAfRaYyfLmZdtF5rGBDD4ysalYG5yD59R\nMv5tNVf/CEx
+JAPMhp6JCBkGRaH+xHws4eBPGkea4rGNVP3L3rA7g+c1YXZICGRI\nOOH7CIzIZ/w6aFGsPp7xM35ogncAAwUD/3s8Nc1OLDy81DC6rGpxfEURd5pvd/j0\nD5Di0WSBEcHXp5nThDz6ro/Vr
0/FVIBtT97tmBHX27yBS3PqxxNRIjZ0GSWQqdws\nQ8o3YT+RHjBugXn8CzTOvIn+2QNMA8EtGIZPpCblJv8q6MFPi9m7avQxguMqufgg\nfAk7377Rt9RqiEkEGBECAAkFAlCNJaYCGwwACgk
Q0T1Y5HnqXtQx4wCfcJZINKVq\nkQIoV3KTQAIzr6IvbZoAn12XXt4GP89xHuzPDZ86YJVAgnfK\n=+200\n-----END PGP PUBLIC KEY BLOCK-----", "file": null, "id": null,
"key": null, "keyring": null, "keyserver": null, "state": "present", "url": null, "validate_certs": true}, "module_name": "apt_key"}}"><pre class="notranslate"><code class="notranslate">TASK [common-monitoring : add zabbix repository apt key] ***********************
task path: /home/XXXXXX/ansible/roles/common-monitoring/tasks/main.yml:3
File lookup using /home/XXXXXX/ansible/roles/common-monitoring/files/zabbix-official-repo.key as file
<XX.XX.XX.XX> ESTABLISH SSH CONNECTION FOR USER: None
<XX.XX.XX.XX> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=g
ssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/XXXXXX/.ansible/cp/ansib
le-ssh-%h-%p-%r 172.31.113.12 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1466006828.99-150895880810391 `" && e
cho ansible-tmp-1466006828.99-150895880810391="` echo $HOME/.ansible/tmp/ansible-tmp-1466006828.99-150895880810391 `" ) && sleep 0'"'"''
<XX.XX.XX.XX> PUT /tmp/tmpSGoEiZ TO /home/XXXXXX/.ansible/tmp/ansible-tmp-1466006828.99-150895880810391/apt_key
<XX.XX.XX.XX> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthenticat
ions=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/XXXXXX/.ansible/cp
/ansible-ssh-%h-%p-%r '[172.31.113.12]'
<XX.XX.XX.XX> ESTABLISH SSH CONNECTION FOR USER: None
<XX.XX.XX.XX> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=g
ssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/XXXXXX/.ansible/cp/ansib
le-ssh-%h-%p-%r -tt 172.31.113.12 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-rstyhbjupbasyihpfmmshmtlc
qyjhfhu; LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python /home/XXXXXX/.ansible/tmp/ansible-tmp-1466006828.99-150895880810391/apt_key; rm -rf "/ho
me/XXXXXX/.ansible/tmp/ansible-tmp-1466006828.99-150895880810391/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
changed: [log01] => {"changed": true, "invocation": {"module_args": {"data": "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.5 (GNU/Lin
ux)\n\nmQGiBFCNJaYRBAC4nIW8o2NyOIswb82Xn3AYSMUcNZuKB2fMtpu0WxSXIRiX2BwC\nYXx8cIEQVYtLRBL5o0JdmoNCjW6jd5fOVem3EmOcPksvzzRWonIgFHf4EI2n1KJc\nJXX/nDC
+eoh5xW35mRNFN/BEJHxxiRGGbp2MCnApwgrZLhOujaCGAwavGwCgiG4D\nwKMZ4xX6Y2Gv3MSuzMIT0bcEAKYn3WohS+udp0yC3FHDj+oxfuHpklu1xuI3y6ha\n402aEFahNi3wr316ukgdP
AYLbpz76ivoouTJ/U2MqbNLjAspDvlnHXXyqPM5GC6K\njtXPqNrRMUCrwisoAhorGUg/+S5pyXwsWcJ6EKmA80pR9HO+TbsELE5bGe/oc238\nt/2oBAC3zcQ46wPvXpMCNFb+ED71qDOlnDY
aaAPbjgkvnp+WN6nZFFyevjx180Kw\nqWOLnlNP6JOuFW27MP75MDPDpbAAOVENp6qnuW9dxXTN80YpPLKUxrQS8vWPnzkY\nWtUfF75pEOACFVTgXIqEgW0E6oww2HJi9zF5fS8IlFHJztNYt
bQgWmFiYml4IFNJ\nQSA8cGFja2FnZXJAemFiYml4LmNvbT6IYAQTEQIAIAUCUI0lpgIbAwYLCQgHAwIE\nFQIIAwQWAgMBAh4BAheAAAoJENE9WOR56l7UhUwAmgIGZ39U6D2w2oIWDD8m7KV
3\noI06AJ9EnOxMMlxEjTkt9lEvGhEX1bEh7bkBDQRQjSWmEAQAqx+ecOzBbhqMq5hU\nl39cJ6l4aocz6EZ9mSSoF/g+HFz6WYnPAfRaYyfLmZdtF5rGBDD4ysalYG5yD59R\nMv5tNVf/CEx
+JAPMhp6JCBkGRaH+xHws4eBPGkea4rGNVP3L3rA7g+c1YXZICGRI\nOOH7CIzIZ/w6aFGsPp7xM35ogncAAwUD/3s8Nc1OLDy81DC6rGpxfEURd5pvd/j0\nD5Di0WSBEcHXp5nThDz6ro/Vr
0/FVIBtT97tmBHX27yBS3PqxxNRIjZ0GSWQqdws\nQ8o3YT+RHjBugXn8CzTOvIn+2QNMA8EtGIZPpCblJv8q6MFPi9m7avQxguMqufgg\nfAk7377Rt9RqiEkEGBECAAkFAlCNJaYCGwwACgk
Q0T1Y5HnqXtQx4wCfcJZINKVq\nkQIoV3KTQAIzr6IvbZoAn12XXt4GP89xHuzPDZ86YJVAgnfK\n=+200\n-----END PGP PUBLIC KEY BLOCK-----", "file": null, "id": null,
"key": null, "keyring": null, "keyserver": null, "state": "present", "url": null, "validate_certs": true}, "module_name": "apt_key"}}
</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="160463302" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/3958" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/3958/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/3958">ansible/ansible-modules-core#3958</a></p> | 1 |
<h3 dir="auto">Reproducing code example:</h3>
<p dir="auto">There should be a default serializer for the type of <strong>float32</strong> defined. Flask/jsonify() can serilize the type of float64 but not float32.</p>
<p dir="auto">The following code throws error: TypeError: Object of type float32 is not JSON serializable</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" x = {'value': numpy.float32(0.1)}
return jsonify(x)"><pre class="notranslate"> <span class="pl-s1">x</span> <span class="pl-c1">=</span> {<span class="pl-s">'value'</span>: <span class="pl-s1">numpy</span>.<span class="pl-en">float32</span>(<span class="pl-c1">0.1</span>)}
<span class="pl-k">return</span> <span class="pl-en">jsonify</span>(<span class="pl-s1">x</span>)</pre></div>
<p dir="auto">This one works:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" x = {'value': numpy.float64(0.1)}
return jsonify(x)"><pre class="notranslate"> <span class="pl-s1">x</span> <span class="pl-c1">=</span> {<span class="pl-s">'value'</span>: <span class="pl-s1">numpy</span>.<span class="pl-en">float64</span>(<span class="pl-c1">0.1</span>)}
<span class="pl-k">return</span> <span class="pl-en">jsonify</span>(<span class="pl-s1">x</span>)</pre></div>
<h3 dir="auto">Error message:</h3>
<p dir="auto">TypeError: Object of type float32 is not JSON serializable</p>
<h3 dir="auto">NumPy/Python version information:</h3> | <p dir="auto">It seems that the np.geomspace() functions produces wrong numbers</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
a = np.geomspace(1, 16, 5, dtype=int)
print(a)
[ 1 2 4 7 16]"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">geomspace</span>(<span class="pl-c1">1</span>, <span class="pl-c1">16</span>, <span class="pl-c1">5</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">int</span>)
<span class="pl-en">print</span>(<span class="pl-s1">a</span>)
[ <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">4</span> <span class="pl-c1">7</span> <span class="pl-c1">16</span>]</pre></div>
<p dir="auto">The correct answer should be</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[ 1 2 4 8 16]"><pre class="notranslate">[ <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">4</span> <span class="pl-c1">8</span> <span class="pl-c1">16</span>]</pre></div>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">1.19.1 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)]</p> | 0 |
<h2 dir="auto">Feature request</h2>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
Following the definition inside the docs:<br>
<a href="https://webpack.js.org/api/module-methods/#import-1" rel="nofollow">https://webpack.js.org/api/module-methods/#import-1</a></p>
<p dir="auto">We can use static paths inside dynamic imports, to search matching files inside a specific folder / files tree.</p>
<p dir="auto">Example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" importApp(path) {
return import(
/* webpackInclude: /\/app.mjs$/ */
/* webpackExclude: /\/node_modules/ */
/* webpackChunkName: "chunks/[request]" */
/* webpackMode: "lazy" */
`../../${path}`
);
}"><pre class="notranslate"><code class="notranslate"> importApp(path) {
return import(
/* webpackInclude: /\/app.mjs$/ */
/* webpackExclude: /\/node_modules/ */
/* webpackChunkName: "chunks/[request]" */
/* webpackMode: "lazy" */
`../../${path}`
);
}
</code></pre></div>
<p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong><br>
There are use cases (especially for the neo.mjs context), where the base path can be in different spots.</p>
<p dir="auto">In case I want to build the framework repo itself to get split chunks for all apps & examples, I need to path specified above ("../../").</p>
<p dir="auto">We have the structure:</p>
<p dir="auto">neo</p>
<ul dir="auto">
<li>apps</li>
<li>examples</li>
<li>src</li>
<li>
<ul dir="auto">
<li>worker</li>
</ul>
</li>
<li>
<ul dir="auto">
<li>
<ul dir="auto">
<li>App.mjs</li>
</ul>
</li>
</ul>
</li>
</ul>
<p dir="auto">Since the AppWorker is the main entry point for all apps, we need to walk 2 folders upwards.</p>
<p dir="auto">Now, when we use npx neo-app to generate a new app (workspace), the folder structure is different:</p>
<p dir="auto">workspace</p>
<ul dir="auto">
<li>apps</li>
<li>node_modules</li>
<li>
<ul dir="auto">
<li>neo.mjs</li>
</ul>
</li>
<li>
<ul dir="auto">
<li>
<ul dir="auto">
<li>src</li>
</ul>
</li>
</ul>
</li>
<li>
<ul dir="auto">
<li>
<ul dir="auto">
<li>
<ul dir="auto">
<li>worker</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<ul dir="auto">
<li>
<ul dir="auto">
<li>
<ul dir="auto">
<li>
<ul dir="auto">
<li>App.mjs</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p dir="auto">In this case, we want to parse all apps inside the apps top level folder, while ignoring the apps & examples folder inside the neo.mjs repo itself. Ignoring the repo works fine with the webpackExclude here.</p>
<p dir="auto">To make it work, I needed to create a copy of the AppWorker class, just to change the webpack based imports:<br>
<a href="https://github.com/neomjs/neo/blob/dev/buildScripts/webpack/entrypoints/AppWorker.mjs">https://github.com/neomjs/neo/blob/dev/buildScripts/webpack/entrypoints/AppWorker.mjs</a></p>
<p dir="auto">Extending the real AppWorker class can not work, since in this case, webpack would parse the overridden imports as well.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" importApp(path) {
if (!Neo.config.isExperimental) { // dist/dev & dist/prod
return import(
/* webpackInclude: /\/app.mjs$/ */
/* webpackExclude: /\/node_modules/ */
/* webpackChunkName: "chunks/[request]" */
/* webpackMode: "lazy" */
`../../../../../${path}`
);
} else {
return import( // dev mode
/* webpackIgnore: true */
`../../../${path}`
);
}
}"><pre class="notranslate"><code class="notranslate"> importApp(path) {
if (!Neo.config.isExperimental) { // dist/dev & dist/prod
return import(
/* webpackInclude: /\/app.mjs$/ */
/* webpackExclude: /\/node_modules/ */
/* webpackChunkName: "chunks/[request]" */
/* webpackMode: "lazy" */
`../../../../../${path}`
);
} else {
return import( // dev mode
/* webpackIgnore: true */
`../../../${path}`
);
}
}
</code></pre></div>
<p dir="auto">It actually needs 2 different versions for this one directly (running inside the browser VS using webpack based builds).</p>
<p dir="auto">It does work fine with the duplicated app worker file, but I think it should be easier to achieve this.</p>
<p dir="auto"><strong>How should this be implemented in your opinion?</strong><br>
I am not 100% sure, what the best approach could be.</p>
<p dir="auto">We could add a specific variable name, which would need to get resolved inside the webpack based builds.</p>
<p dir="auto">E.g.: <code class="notranslate">${basePath}../../${path}</code></p>
<p dir="auto">To keep it reasonable, the variable has to get defined inside the same scope.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" importApp(path) {
let basePath = '';
if (myCustomEnv === true) { // this is the tricky part => figuring out which version to use
basePath = '../../../';
}
return import(
/* webpackInclude: /\/app.mjs$/ */
/* webpackExclude: /\/node_modules/ */
/* webpackChunkName: "chunks/[request]" */
/* webpackMode: "lazy" */
`${basePath}../../${path}`
);
}"><pre class="notranslate"><code class="notranslate"> importApp(path) {
let basePath = '';
if (myCustomEnv === true) { // this is the tricky part => figuring out which version to use
basePath = '../../../';
}
return import(
/* webpackInclude: /\/app.mjs$/ */
/* webpackExclude: /\/node_modules/ */
/* webpackChunkName: "chunks/[request]" */
/* webpackMode: "lazy" */
`${basePath}../../${path}`
);
}
</code></pre></div>
<p dir="auto"><strong>Are you willing to work on this yourself?</strong><br>
Ugh, if I just had more time. Willing to provide feedback for sure.</p> | <h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong><br>
When requiring files using <code class="notranslate">import.meta.webpackContext</code> (added in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1152244224" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/15446" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/15446/hovercard" href="https://github.com/webpack/webpack/pull/15446">#15446</a>) that are located within a node_modules folder, eg:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const vuetify = import.meta.webpackContext('vuetify/lib/locale', {
recursive: false,
regExp: /(en|hu)\.js$/i,
});"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">vuetify</span> <span class="pl-c1">=</span> <span class="pl-k">import</span><span class="pl-kos">.</span><span class="pl-c1">meta</span><span class="pl-kos">.</span><span class="pl-en">webpackContext</span><span class="pl-kos">(</span><span class="pl-s">'vuetify/lib/locale'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">recursive</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">regExp</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-kos">(</span>en<span class="pl-c1">|</span>hu<span class="pl-kos">)</span><span class="pl-cce">\.</span>js<span class="pl-cce">$</span><span class="pl-c1">/</span>i</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">It doesn't work properly and throws a warning during compilation</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" WARNING Compiled with 2 warnings 6:40:36 PM
warning in ./node_modules/vuetify/lib/locale/ ./node_modules/vuetify/lib/locale/ sync nonrecursive (en%7Chu)\.js$/
Module not found: Error: Can't resolve 'webpack-meta-bug/node_modules/vuetify/lib/locale/vuetify/lib/locale/en.js' in 'webpack-meta-bug'"><pre class="notranslate"><code class="notranslate"> WARNING Compiled with 2 warnings 6:40:36 PM
warning in ./node_modules/vuetify/lib/locale/ ./node_modules/vuetify/lib/locale/ sync nonrecursive (en%7Chu)\.js$/
Module not found: Error: Can't resolve 'webpack-meta-bug/node_modules/vuetify/lib/locale/vuetify/lib/locale/en.js' in 'webpack-meta-bug'
</code></pre></div>
<p dir="auto">It seems to be adding the context path twice to the request</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
<a href="https://github.com/Tofandel/webpack-meta-bug">https://github.com/Tofandel/webpack-meta-bug</a></p>
<p dir="auto">Use the following webpack config</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const path = require('path')
module.exports = {
resolve: {
modules: [
'node_modules',
path.resolve(__dirname, './node_modules'),
]
},
}"><pre class="notranslate"><code class="notranslate">const path = require('path')
module.exports = {
resolve: {
modules: [
'node_modules',
path.resolve(__dirname, './node_modules'),
]
},
}
</code></pre></div>
<p dir="auto">And use <code class="notranslate">import.meta.webpackContext('some_package_files')</code></p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
It should require the files correctly</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 5.70.0<br>
Node.js version: 16.13.1<br>
Operating System: WSL2 - Ubuntu 20.04<br>
Additional tools:</p> | 0 |
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: Yes</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Ubuntu 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: Binary, tf-nightly</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.7.0.dev20180214, git version <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/b2a0f1c45b2283910548ebd88ee5aaf4b6fc6077/hovercard" href="https://github.com/tensorflow/tensorflow/commit/b2a0f1c45b2283910548ebd88ee5aaf4b6fc6077"><tt>b2a0f1c</tt></a></li>
<li><strong>Python version</strong>: 2.7.12</li>
<li><strong>Bazel version (if compiling from source)</strong>: N/A</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: N/A</li>
<li><strong>CUDA/cuDNN version</strong>: N/A</li>
<li><strong>GPU model and memory</strong>: N/A</li>
<li><strong>Exact command to reproduce</strong>:</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf
from tensorflow.contrib.image.ops import gen_distort_image_ops
from tensorflow.python.framework import tensor_util
tensor_util.constant_value(tf.convert_to_tensor([1., 1.]))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">image</span>.<span class="pl-s1">ops</span> <span class="pl-k">import</span> <span class="pl-s1">gen_distort_image_ops</span>
<span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">python</span>.<span class="pl-s1">framework</span> <span class="pl-k">import</span> <span class="pl-s1">tensor_util</span>
<span class="pl-s1">tensor_util</span>.<span class="pl-en">constant_value</span>(<span class="pl-s1">tf</span>.<span class="pl-en">convert_to_tensor</span>([<span class="pl-c1">1.</span>, <span class="pl-c1">1.</span>]))</pre></div>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">When I run the program above, I get the warning</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/reedwm/venvs/tfnightlycpu/local/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py:560: DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead
return np.fromstring(tensor.tensor_content, dtype=dtype).reshape(shape)"><pre class="notranslate"><code class="notranslate">/home/reedwm/venvs/tfnightlycpu/local/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py:560: DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead
return np.fromstring(tensor.tensor_content, dtype=dtype).reshape(shape)
</code></pre></div>
<p dir="auto">This may not seem so bad, but when running <a href="https://github.com/tensorflow/benchmarks/tree/master/scripts/tf_cnn_benchmarks"><code class="notranslate">tf_cnn_benchmarks</code></a>, I get hundreds of such warnings.</p>
<p dir="auto">What's very strange is that if I comment the line <code class="notranslate">from tensorflow.contrib.image.ops import gen_distort_image_ops</code>, I don't get the warning.</p>
<p dir="auto">This is the same issue as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="295689808" data-permission-text="Title is private" data-url="https://github.com/tensorpack/tensorpack/issues/641" data-hovercard-type="issue" data-hovercard-url="/tensorpack/tensorpack/issues/641/hovercard" href="https://github.com/tensorpack/tensorpack/issues/641">tensorpack/tensorpack#641</a>. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yaroslavvb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yaroslavvb">@yaroslavvb</a>, did you file a TensorFlow bug for this? If so, this can be marked as a duplicate.</p>
<p dir="auto">Not really sure who to triage this to. /CC <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrry">@mrry</a>, can you address this or retriage?</p> | <p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary):</li>
<li>TensorFlow version (use command below):</li>
<li>Python version:</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:</li>
<li>GPU model and memory:</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture<br>
<a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br>
You can also obtain the TensorFlow version with: 1. TF 1.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</code> 2. TF 2.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"</code></p>
<p dir="auto"><strong>Describe the current behavior</strong></p>
<p dir="auto"><strong>Describe the expected behavior</strong></p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<p dir="auto"><strong>Other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.3.3</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://github.com/Lacroute/webpack-simple-bug">https://github.com/Lacroute/webpack-simple-bug</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Just create a minimal project from <a href="https://github.com/vuejs-templates/webpack-simple">this template</a> and add some logs inside the hooks, you should obtain this in the console.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/Lacroute/webpack-simple-bug/master/src/assets/screenshot.png"><img src="https://raw.githubusercontent.com/Lacroute/webpack-simple-bug/master/src/assets/screenshot.png" alt="alt text" style="max-width: 100%;"></a></p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">The previous instance should be destroyed before the new one is created.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">The next one is created, so there is several init and then, the old one is destroyed so the init hooks are useless.</p>
<hr>
<p dir="auto">I don't know if this issue is related to the template or to the framework so I created also here > <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="248013813" data-permission-text="Title is private" data-url="https://github.com/vuejs-templates/webpack-simple/issues/123" data-hovercard-type="issue" data-hovercard-url="/vuejs-templates/webpack-simple/issues/123/hovercard" href="https://github.com/vuejs-templates/webpack-simple/issues/123">vuejs-templates/webpack-simple#123</a> (unfortunately no response)</p> | <h3 dir="auto">Version</h3>
<p dir="auto">2.6.12</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsbin.com/tusikubevu/edit?html,js,console,output" rel="nofollow">https://jsbin.com/tusikubevu/edit?html,js,console,output</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">If you move between 100 and 125000 there is no problem, but if you choose 130000 there is a max stack trace error in chrome 85.0.4183.102 (stable), this is a VERY minimal reproduction, what really happens to me is with bootstrap-vue table with scopes and several chained components my app stop working and have to capture the error and reload the page, and my client is complaining a lot about it.</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">Don't know if you can solve it or if it's a chrome problem, because in FF it doesn't happens</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">I got this kind of error when using lots of components.</p>
<p dir="auto">RangeError: Maximum call stack size exceeded<br>
at normalizeArrayChildren (vue.js:2393)<br>
at normalizeChildren (vue.js:2368)<br>
at _createElement (vue.js:3406)<br>
at createElement (vue.js:3360)<br>
at Proxy.vm._c (vue.js:3497)<br>
at Proxy.eval (eval at createFunction (vue.js:11649), :3:19)<br>
at Vue._render (vue.js:3551)<br>
at Vue.updateComponent (vue.js:4067)<br>
at Watcher.get (vue.js:4478)<br>
at Watcher.run (vue.js:4553)<br>
logError @ vue.js:1897<br>
globalHandleError @ vue.js:1888<br>
handleError @ vue.js:1848<br>
Vue._render @ vue.js:3553<br>
updateComponent @ vue.js:4067<br>
get @ vue.js:4478<br>
run @ vue.js:4553<br>
flushSchedulerQueue @ vue.js:4311<br>
(anonymous) @ vue.js:1989<br>
flushCallbacks @ vue.js:1915<br>
Promise.then (async)<br>
timerFunc @ vue.js:1942<br>
nextTick @ vue.js:1999<br>
queueWatcher @ vue.js:4403<br>
update @ vue.js:4543<br>
notify @ vue.js:745<br>
reactiveSetter @ vue.js:1070<br>
proxySetter @ vue.js:4630<br>
change @ VM33:3<br>
invokeWithErrorHandling @ vue.js:1863<br>
invoker @ vue.js:2188<br>
original._wrapper @ vue.js:7547<br>
ListPicker._handleMouseUp</p>
<hr>
<p dir="auto">As I said before this happens on Chome, in FF there is no error, and I use 2.6.12, not 2.6.11, but can't choose it.</p> | 0 |
<p dir="auto">Does vscode-node-debug support Sourcemap section?</p> | <p dir="auto">Hi!</p>
<p dir="auto">I was wondering if there are any plans to add this awesome feature to JavaScript/TypeScript language in future releases. That'll be awesome!</p> | 0 |
<p dir="auto">Using javascript to automatically update a small preview for colour variables on the customiser (perhaps using input groups).</p>
<p dir="auto">For example:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/7145ebe571af99658fbfc6f0d486e32314e250ccef48cad247f5b78f5d757784/687474703a2f2f692e696d6775722e636f6d2f496938483670622e706e67"><img src="https://camo.githubusercontent.com/7145ebe571af99658fbfc6f0d486e32314e250ccef48cad247f5b78f5d757784/687474703a2f2f692e696d6775722e636f6d2f496938483670622e706e67" alt="" data-canonical-src="http://i.imgur.com/Ii8H6pb.png" style="max-width: 100%;"></a></p> | <p dir="auto">It would be nice to have better color inputs, e.g. with <code class="notranslate">[type="color"]</code> or with color preview, because of current ones are too monochromatic.</p> | 1 |
<p dir="auto">When any one of the independent variables are bound to a single number (by setting the upper bound equal to the lower bound), the SLSQP optimization fails. However, setting the bounds to (lower_bound, upper_bound + 1e-8) works fine. This wasn't an issue in 1.4.1 and seems to have started happening in 1.5.0.</p>
<h4 dir="auto">Reproducing code example:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import scipy.optimize as opt
import numpy as np
def f(x: np.ndarray):
return 0.4 * x[0]**2 + 0.6 * x[0] * x[1] + 0.85 * x[1]**2 - 5 * x[1]
x0 = np.array([0, 0])
bounds = [(0, 0), (-np.inf, np.inf)]
output1 = opt.minimize(f, x0, method='SLSQP', bounds=bounds)
bounds = [(0, 1e-8), (-np.inf, np.inf)]
output2 = opt.minimize(f, x0, method='SLSQP', bounds=bounds)
print(output1)
print(output2)"><pre class="notranslate"><code class="notranslate">import scipy.optimize as opt
import numpy as np
def f(x: np.ndarray):
return 0.4 * x[0]**2 + 0.6 * x[0] * x[1] + 0.85 * x[1]**2 - 5 * x[1]
x0 = np.array([0, 0])
bounds = [(0, 0), (-np.inf, np.inf)]
output1 = opt.minimize(f, x0, method='SLSQP', bounds=bounds)
bounds = [(0, 1e-8), (-np.inf, np.inf)]
output2 = opt.minimize(f, x0, method='SLSQP', bounds=bounds)
print(output1)
print(output2)
</code></pre></div>
<h4 dir="auto">Results:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" J_transposed[i] = df / dx
fun: 0.0
jac: array([ nan, -4.99999999])
message: 'Inequality constraints incompatible'
nfev: 3
nit: 1
njev: 1
status: 4
success: False
x: array([0., 0.])
fun: -7.352941176470589
jac: array([1.76470589, 0. ])
message: 'Optimization terminated successfully'
nfev: 9
nit: 3
njev: 3
status: 0
success: True
x: array([0. , 2.94117646])"><pre class="notranslate"><code class="notranslate"> J_transposed[i] = df / dx
fun: 0.0
jac: array([ nan, -4.99999999])
message: 'Inequality constraints incompatible'
nfev: 3
nit: 1
njev: 1
status: 4
success: False
x: array([0., 0.])
fun: -7.352941176470589
jac: array([1.76470589, 0. ])
message: 'Optimization terminated successfully'
nfev: 9
nit: 3
njev: 3
status: 0
success: True
x: array([0. , 2.94117646])
</code></pre></div>
<h4 dir="auto">Scipy/Numpy/Python version information:</h4>
<p dir="auto">1.5.0 1.19.1 sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)</p> | <p dir="auto">Hello,</p>
<p dir="auto">It seems that in _numdiff.py module the _dense_difference function does not take into account situation of an optimisation with equal bounds constraints and where initial solution respect this constraint for some .</p>
<p dir="auto">In that case line 519 in _numdiff.py module dx and df are equal to zero and trigger nan in the jacobian.</p>
<p dir="auto">It then triggers an exit n° 4 "Inequality constraints incompatible"</p>
<h4 dir="auto">Scipy/Numpy/Python version information:</h4>
<p dir="auto">1.5.1 1.16.5 sys.version_info(major=3, minor=7, micro=4, releaselevel='final', serial=0)</p>
<p dir="auto">my script does not raise error with following setup</p>
<p dir="auto">1.3.1 1.16.5 sys.version_info(major=3, minor=7, micro=4, releaselevel='final', serial=0)</p> | 1 |
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p>
<pre class="notranslate">On OS X 10.9 Mavericks, when building the following code snippet, I get the following
error:
# command-line-arguments
xxxx.go:190:12: struct size calculation error off=40 bytesize=32
The same go file (which is actually a cgo file) works on older versions of OS X and
Linux.
To assist, here is a snippet that reproduces the above problem:
----------
package main
/*
#include <stdlib.h>
enum ct { A = 0x00, B = 0x01};
typedef enum ct ct;
typedef struct cobject_s {
enum ct type;
size_t sz;
union {
char *str; // note for str: sz is strlen (not strlen+1
void *blob;
int64_t i64; // easiest to have one large int type
} u;
void *free; // if this is set, this must be freed on destructuion
} cobject;
typedef struct cbin_s {
char bin_name[32];
cobject object;
} cbin;
*/
import "C"
func main() {
var a C.cbin
}</pre> | <pre class="notranslate"><a href="http://play.golang.org/p/FYbJS-dtlY" rel="nofollow">http://play.golang.org/p/FYbJS-dtlY</a>
If one gets variable names confused and accidentally take the index of an integer type,
the error returned is "index of type int". This error makes it sound like the
index variable is of integer type, which is correct code. I think it would be much
better if it read "taking index of type int". This makes it clear that the
error refers to the type having its index taken, and not the type of the index variable
itself.</pre> | 0 |
<p dir="auto">OK. The glow text example I gave that's currently inside the code (but unused) isn't great.</p>
<p dir="auto">I've received feedback from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MilesMSCohen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MilesMSCohen">@MilesMSCohen</a> that it has a fundamental flaw:</p>
<ul dir="auto">
<li>It loses all font hinting which makes it hard to read, especially at small sizes.</li>
</ul>
<p dir="auto">Ouch. I want hinting. The recommended alternative is to render the text to a command list and use the command list as input to an effect that can cause a glow.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DHowett-MSFT/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DHowett-MSFT">@DHowett-MSFT</a> already had a sample lump of code to do something like this that he was playing around with a few weeks ago because glow text is cool. It's around here somewhere.</p>
<p dir="auto">Also, I got the warning from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MilesMSCohen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MilesMSCohen">@MilesMSCohen</a> that this might have worse performance, but we'd have to decide if that's worth it.</p> | <p dir="auto">Microsoft Windows [Version 10.0.18362.86]</p>
<p dir="auto">Issue: Text rendering for CustomTextRenderer::_DrawGlowGlyphRun seems off.<br>
I did the exact modifications as the dev (Mike) at the build conference to enable glowing text, which required uncommenting the line to call the function (and commenting the default text render call). I'm sorry if this is out of the scope of this issue tracker since it is not the default code, but I thought it should be included as glowing text makes the blurred background many times more usable, and well it seems off on my system.<br>
The first image is the dev's system from the video on top and mine right beneath it, the second image is when I modified the function to draw random colors, to demonstrate that some colors are off (they look bolded and blurred) and others seem correct. Ideally I'm certain all of the colors should look something like Mike's did. I realize Mike was running regular conhost, but even in my pure open terminal window, you can see for instance the WinStore.App looks much better than most the others.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2309574/57452609-e0aa6600-7229-11e9-80ab-0e525cc6d176.png"><img src="https://user-images.githubusercontent.com/2309574/57452609-e0aa6600-7229-11e9-80ab-0e525cc6d176.png" alt="terminal-text" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2309574/57452657-fc157100-7229-11e9-979d-23703fd6d99d.jpg"><img src="https://user-images.githubusercontent.com/2309574/57452657-fc157100-7229-11e9-979d-23703fd6d99d.jpg" alt="terminal-text2" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">Hi,<br>
I would like to find the best-fit axis of points that are on a cylindrical surface. Seems that <code class="notranslate">scipy.linalg.svd</code> is the function to look for.</p>
<p dir="auto">So to test out, I decide to generate some points, function <code class="notranslate">makeCylinder</code>, from this thread <a href="https://stackoverflow.com/questions/22285994/how-to-generate-regular-points-on-cylindrical-surface" rel="nofollow">https://stackoverflow.com/questions/22285994/how-to-generate-regular-points-on-cylindrical-surface</a>, and estimate the axis.</p>
<p dir="auto">This is the code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def makeCylinder(radius, length, nlength, alpha, nalpha, center, orientation):
# Load
from numpy import array, allclose, linspace, tile, vstack
from numpy import pi, cos, sin, arccos, cross
from numpy.linalg import norm
from angoli import rotMatrixAxisAngle
# Create the length array
I = linspace(0, length, nlength)
# Create alpha array avoid duplication of endpoints
if int(alpha) == 360:
A = linspace(0, alpha, num=nalpha, endpoint=False)/180.0*pi
else:
A = linspace(0, alpha, num=nalpha)/180.0*pi
# Calculate X and Y
X = radius * cos(A)
Y = radius * sin(A)
# Tile/repeat indices so all unique pairs are present
pz = tile(I, nalpha)
px = X.repeat(nlength)
py = Y.repeat(nlength)
# Points
points = vstack(( pz, px, py )).T
## Shift to center
points += array(center) - points.mean(axis=0)
# Orient tube to new vector
ovec = orientation / norm(orientation)
cylvec = array([1,0,0])
if allclose(cylvec, ovec):
return points
# Get orthogonal axis and rotation
oaxis = cross(ovec, cylvec)
rot = arccos(ovec.dot(cylvec))
R = rotMatrixAxisAngle(oaxis, rot)
return points.dot(R)
from numpy.linalg import norm
from numpy.random import rand
from scipy.linalg import svd
for i in xrange(100):
orientation = rand(3)
orientation[0] = 0
orientation /= norm(orientation)
# Generate sample points
points = makeCylinder(radius = 3.0,
length = 20.0, nlength = 20,
alpha = 360, nalpha = 30,
center = [0,0,0],
orientation = orientation)
# Least Square
uu, dd, vv = svd(points - points.mean(axis=0))
asse = vv[0]
assert abs( abs(orientation.dot(asse)) - 1) <= 1e-4, orientation.dot(asse) "><pre class="notranslate"><code class="notranslate"> def makeCylinder(radius, length, nlength, alpha, nalpha, center, orientation):
# Load
from numpy import array, allclose, linspace, tile, vstack
from numpy import pi, cos, sin, arccos, cross
from numpy.linalg import norm
from angoli import rotMatrixAxisAngle
# Create the length array
I = linspace(0, length, nlength)
# Create alpha array avoid duplication of endpoints
if int(alpha) == 360:
A = linspace(0, alpha, num=nalpha, endpoint=False)/180.0*pi
else:
A = linspace(0, alpha, num=nalpha)/180.0*pi
# Calculate X and Y
X = radius * cos(A)
Y = radius * sin(A)
# Tile/repeat indices so all unique pairs are present
pz = tile(I, nalpha)
px = X.repeat(nlength)
py = Y.repeat(nlength)
# Points
points = vstack(( pz, px, py )).T
## Shift to center
points += array(center) - points.mean(axis=0)
# Orient tube to new vector
ovec = orientation / norm(orientation)
cylvec = array([1,0,0])
if allclose(cylvec, ovec):
return points
# Get orthogonal axis and rotation
oaxis = cross(ovec, cylvec)
rot = arccos(ovec.dot(cylvec))
R = rotMatrixAxisAngle(oaxis, rot)
return points.dot(R)
from numpy.linalg import norm
from numpy.random import rand
from scipy.linalg import svd
for i in xrange(100):
orientation = rand(3)
orientation[0] = 0
orientation /= norm(orientation)
# Generate sample points
points = makeCylinder(radius = 3.0,
length = 20.0, nlength = 20,
alpha = 360, nalpha = 30,
center = [0,0,0],
orientation = orientation)
# Least Square
uu, dd, vv = svd(points - points.mean(axis=0))
asse = vv[0]
assert abs( abs(orientation.dot(asse)) - 1) <= 1e-4, orientation.dot(asse)
</code></pre></div>
<p dir="auto">As you can see, I generate multiple cylinder whose axis is random (rand(3)).</p>
<p dir="auto">The funny thing is that <code class="notranslate">svd</code> returns an axis that is absolutely perfect if the first component of <code class="notranslate">orientation</code> is zero (<code class="notranslate">orientation[0] = 0</code>).</p>
<p dir="auto">If I comment this line the estimated axis is way off.</p>
<p dir="auto">Even using leastsq on a cylinder equation returns the same behavior:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def bestLSQ1(points):
from numpy import array, sqrt
from scipy.optimize import leastsq
# Expand
points = array(points)
x = points[:,0]
y = points[:,1]
z = points[:,2]
# Calculate the distance of each points from the center (xc, yc, zc)
# http://geometry.puzzles.narkive.com/2HaVJ3XF/geometry-equation-of-an-arbitrary-orientated-cylinder
def calc_R(xc, yc, zc, u1, u2, u3):
return sqrt( (x-xc)**2 + (y-yc)**2 + (z-zc)**2 - ( (x-xc)*u1 + (y-yc)*u2 + (z-zc)*u3 )**2 )
# Calculate the algebraic distance between the data points and the mean circle centered at c=(xc, yc, zc)
def dist(c):
Ri = calc_R(*c)
return Ri - Ri.mean()
# Axes - Minimize residu
xM, yM, zM = points.mean(axis=0)
# Calculate the center
center, ier = leastsq(dist, (xM, yM, zM, 0, 0, 1))
xc, yc, zc, u1, u2, u3 = center
asse = u1, u2, u3
return asse
"><pre class="notranslate"><code class="notranslate"> def bestLSQ1(points):
from numpy import array, sqrt
from scipy.optimize import leastsq
# Expand
points = array(points)
x = points[:,0]
y = points[:,1]
z = points[:,2]
# Calculate the distance of each points from the center (xc, yc, zc)
# http://geometry.puzzles.narkive.com/2HaVJ3XF/geometry-equation-of-an-arbitrary-orientated-cylinder
def calc_R(xc, yc, zc, u1, u2, u3):
return sqrt( (x-xc)**2 + (y-yc)**2 + (z-zc)**2 - ( (x-xc)*u1 + (y-yc)*u2 + (z-zc)*u3 )**2 )
# Calculate the algebraic distance between the data points and the mean circle centered at c=(xc, yc, zc)
def dist(c):
Ri = calc_R(*c)
return Ri - Ri.mean()
# Axes - Minimize residu
xM, yM, zM = points.mean(axis=0)
# Calculate the center
center, ier = leastsq(dist, (xM, yM, zM, 0, 0, 1))
xc, yc, zc, u1, u2, u3 = center
asse = u1, u2, u3
return asse
</code></pre></div>
<p dir="auto">This is the version that I am using:</p>
<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)
('0.19.0', '1.12.1', sys.version_info(major=2, minor=7, micro=13, releaselevel='final', serial=0))"><pre class="notranslate"><code class="notranslate">import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
('0.19.0', '1.12.1', sys.version_info(major=2, minor=7, micro=13, releaselevel='final', serial=0))
</code></pre></div>
<p dir="auto">Thanks</p> | <p dir="auto">My issue is about a possible memory leak in scipy.spatial.distance.pdist and scipy.spatial.distance.cdist</p>
<h4 dir="auto">Reproducing code example:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
from scipy.spatial.distance import pdist
X = np.random.uniform(0, 100, size=10000).reshape(-1, 10)
for _ in range(10000):
test = pdist(X/0.01, metric='sqeuclidean')
"><pre class="notranslate"><code class="notranslate">import numpy as np
from scipy.spatial.distance import pdist
X = np.random.uniform(0, 100, size=10000).reshape(-1, 10)
for _ in range(10000):
test = pdist(X/0.01, metric='sqeuclidean')
</code></pre></div>
<h4 dir="auto">Error Description:</h4>
<p dir="auto">On my Mac OSX 10.14.6 the memory consumption of the snipped above quickly rises into the Gigabytes (after a few seconds). If I remove the division from the pdist argument (see below), the problem vanishes. (I don't think this is intended behavior, as it also leads to excessive memory consumption in the Gaussian Process Regression implementation of Sklearn, where they have a similar line in the implementation of the RBF kernel)</p>
<p dir="auto">The code, which does not produce this problem (division removed):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
from scipy.spatial.distance import pdist
X = np.random.uniform(0, 100, size=10000).reshape(-1, 10)
for _ in range(10000):
test = pdist(X, metric='sqeuclidean')"><pre class="notranslate"><code class="notranslate">import numpy as np
from scipy.spatial.distance import pdist
X = np.random.uniform(0, 100, size=10000).reshape(-1, 10)
for _ in range(10000):
test = pdist(X, metric='sqeuclidean')
</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.7.0 1.21.0 sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">1.7.0 1.21.0 sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)
</code></pre></div> | 0 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/2091" rel="nofollow">http://projects.scipy.org/numpy/ticket/2091</a> on 2012-03-26 by trac user dougal, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>.</em></p>
<p dir="auto">The following code segfaults for me on OSX 10.7.3.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from __future__ import print_function
import numpy as np
import multiprocessing as mp
import scipy.linalg
def f(a):
print("about to call")
### these all cause crashes
sign, x = np.linalg.slogdet(a)
#x = np.linalg.det(a)
#x = np.linalg.inv(a).sum()
### these are all fine
#x = scipy.linalg.expm3(a).sum()
#x = np.dot(a, a.T).sum()
print("result:", x)
return x
def call_proc(a):
print("\ncalling with multiprocessing")
p = mp.Process(target=f, args=(a,))
p.start()
p.join()
if __name__ == '__main__':
import sys
n = int(sys.argv[1]) if len(sys.argv) > 1 else 50
a = np.random.normal(0, 2, (n, n))
f(a)
call_proc(a)"><pre class="notranslate"><code class="notranslate">from __future__ import print_function
import numpy as np
import multiprocessing as mp
import scipy.linalg
def f(a):
print("about to call")
### these all cause crashes
sign, x = np.linalg.slogdet(a)
#x = np.linalg.det(a)
#x = np.linalg.inv(a).sum()
### these are all fine
#x = scipy.linalg.expm3(a).sum()
#x = np.dot(a, a.T).sum()
print("result:", x)
return x
def call_proc(a):
print("\ncalling with multiprocessing")
p = mp.Process(target=f, args=(a,))
p.start()
p.join()
if __name__ == '__main__':
import sys
n = int(sys.argv[1]) if len(sys.argv) > 1 else 50
a = np.random.normal(0, 2, (n, n))
f(a)
call_proc(a)
</code></pre></div>
<p dir="auto">This code causes a segfault (trying to access e.g. <code class="notranslate">0x0000000000000108</code>); when I do a core dump, the backtrace is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 0x00007fff8832c324 in dispatch_group_async_f ()
#1 0x00007fff8b2fed3e in dgetrf_ ()
#2 0x000000010ac0c26a in initlapack_lite ()
#3 0x000000010a5a8d77 in PyEval_EvalFrameEx ()
#4 0x000000010a5abdf7 in PyEval_EvalCode ()
#5 0x000000010a5a8e0a in PyEval_EvalFrameEx ()
#6 0x000000010a5abcd8 in PyEval_EvalCodeEx ()
#7 0x000000010a549abf in PyClassMethod_New ()
#8 0x000000010a528d32 in PyObject_Call ()
#9 0x000000010a5a95ec in PyEval_EvalFrameEx ()
#10 0x000000010a5abdf7 in PyEval_EvalCode ()
#11 0x000000010a5a8e0a in PyEval_EvalFrameEx ()
#12 0x000000010a5abdf7 in PyEval_EvalCode ()
#13 0x000000010a5a8e0a in PyEval_EvalFrameEx ()
#14 0x000000010a5abcd8 in PyEval_EvalCodeEx ()
#15 0x000000010a549abf in PyClassMethod_New ()
#16 0x000000010a528d32 in PyObject_Call ()
#17 0x000000010a5376e9 in PyInstance_New ()
#18 0x000000010a528d32 in PyObject_Call ()
#19 0x000000010a573484 in _PyObject_SlotCompare ()
#20 0x000000010a56db7a in PyType_Modified ()
#21 0x000000010a528d32 in PyObject_Call ()
#22 0x000000010a5a8f63 in PyEval_EvalFrameEx ()
#23 0x000000010a5abdf7 in PyEval_EvalCode ()
#24 0x000000010a5a8e0a in PyEval_EvalFrameEx ()
#25 0x000000010a5abcd8 in PyEval_EvalCodeEx ()
#26 0x000000010a5abe6c in PyEval_EvalCode ()
#27 0x000000010a5a8e0a in PyEval_EvalFrameEx ()
#28 0x000000010a5abcd8 in PyEval_EvalCodeEx ()
#29 0x000000010a5abd4d in PyEval_EvalCode ()
#30 0x000000010a5c308f in Py_CompileString ()
#31 0x000000010a5c314f in PyRun_FileExFlags ()
#32 0x000000010a5c42a2 in PyRun_SimpleFileExFlags ()
#33 0x000000010a5d42af in Py_Main ()
#34 0x000000010a519e88 in ?? ()"><pre class="notranslate"><code class="notranslate">#0 0x00007fff8832c324 in dispatch_group_async_f ()
#1 0x00007fff8b2fed3e in dgetrf_ ()
#2 0x000000010ac0c26a in initlapack_lite ()
#3 0x000000010a5a8d77 in PyEval_EvalFrameEx ()
#4 0x000000010a5abdf7 in PyEval_EvalCode ()
#5 0x000000010a5a8e0a in PyEval_EvalFrameEx ()
#6 0x000000010a5abcd8 in PyEval_EvalCodeEx ()
#7 0x000000010a549abf in PyClassMethod_New ()
#8 0x000000010a528d32 in PyObject_Call ()
#9 0x000000010a5a95ec in PyEval_EvalFrameEx ()
#10 0x000000010a5abdf7 in PyEval_EvalCode ()
#11 0x000000010a5a8e0a in PyEval_EvalFrameEx ()
#12 0x000000010a5abdf7 in PyEval_EvalCode ()
#13 0x000000010a5a8e0a in PyEval_EvalFrameEx ()
#14 0x000000010a5abcd8 in PyEval_EvalCodeEx ()
#15 0x000000010a549abf in PyClassMethod_New ()
#16 0x000000010a528d32 in PyObject_Call ()
#17 0x000000010a5376e9 in PyInstance_New ()
#18 0x000000010a528d32 in PyObject_Call ()
#19 0x000000010a573484 in _PyObject_SlotCompare ()
#20 0x000000010a56db7a in PyType_Modified ()
#21 0x000000010a528d32 in PyObject_Call ()
#22 0x000000010a5a8f63 in PyEval_EvalFrameEx ()
#23 0x000000010a5abdf7 in PyEval_EvalCode ()
#24 0x000000010a5a8e0a in PyEval_EvalFrameEx ()
#25 0x000000010a5abcd8 in PyEval_EvalCodeEx ()
#26 0x000000010a5abe6c in PyEval_EvalCode ()
#27 0x000000010a5a8e0a in PyEval_EvalFrameEx ()
#28 0x000000010a5abcd8 in PyEval_EvalCodeEx ()
#29 0x000000010a5abd4d in PyEval_EvalCode ()
#30 0x000000010a5c308f in Py_CompileString ()
#31 0x000000010a5c314f in PyRun_FileExFlags ()
#32 0x000000010a5c42a2 in PyRun_SimpleFileExFlags ()
#33 0x000000010a5d42af in Py_Main ()
#34 0x000000010a519e88 in ?? ()
</code></pre></div>
<p dir="auto">So it seems like the Apple Grand Central Dispatch stuff isn't playing nice with multiprocessing in this case.</p>
<p dir="auto">If it's helpful, the full OSX "problem report" is [https://gist.github.com/2209271 here].</p>
<p dir="auto">This happens when <code class="notranslate">f()</code> calls any of the <code class="notranslate">numpy.linalg</code> functions there, but not for the matrix multiplication or the <code class="notranslate">scipy.linalg.expm3</code> call (which doesn't call anything from lapack_lite; if I use one of the other <code class="notranslate">scipy.linalg</code> functions that do call e.g. <code class="notranslate">solve</code>, then it also segfaults).</p>
<p dir="auto">If I comment out the call to <code class="notranslate">f</code> from the main process, it runs fine.</p>
<p dir="auto">This happens for <code class="notranslate">n >= 33</code>; for <code class="notranslate">n <= 32</code>, it's fine. Note that 32*32=1024, which seems like a reasonable cutoff point for when Accelerate would start parallelizing.</p>
<p dir="auto">Of course, it doesn't matter if the original <code class="notranslate">f</code> call is on the same matrix (it's being pickled, after all) -- as long as it's also big. Calls with one big, one small matrix or two small matrices (defining "small" as "n x n for n <= 32") run fine. It can also be a different function, e.g. first <code class="notranslate">np.linalg.inv</code> and then call out to another process for <code class="notranslate">np.linalg.slogdet</code>.</p>
<p dir="auto">This happens for me on my OSX 10.7.3 desktop with</p>
<ul dir="auto">
<li>python 2.6.7, numpy 1.5.1</li>
<li>python 2.7.1, numpy 1.5.1, scipy 0.10.0</li>
<li>python 3.2.2, numpy 1.6.1, scipy 0.10.1</li>
</ul>
<p dir="auto">The 2.6 and 2.7 are I think the default system installs; I installed the 3.2 versions manually from the source tarballs. All of those numpys are linked to the system Accelerate framework:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ otool -L `python3.2 -c 'from numpy.core import _dotblas; print(_dotblas.__file__)'`
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/numpy/core/_dotblas.so:
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.1)"><pre class="notranslate"><code class="notranslate">$ otool -L `python3.2 -c 'from numpy.core import _dotblas; print(_dotblas.__file__)'`
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/numpy/core/_dotblas.so:
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.1)
</code></pre></div>
<p dir="auto">I get the same behavior on another Mac with a similar setup.</p>
<p dir="auto">But all of the options for <code class="notranslate">f</code> work on other machines running</p>
<ul dir="auto">
<li>OSX 10.6.8 with Python 2.6.1 and numpy 1.2.1 linked to Accelerate 4 and vecLib 268 (except that it doesn't have scipy or slogdet)</li>
<li>Debian 6 with Python 3.2.2, numpy 1.6.1, and scipy 0.10.1 linked to the system ATLAS</li>
<li>Ubuntu 11.04 with Python 2.7.1, numpy 1.5.1 and scipy 0.8.0 linked to system ATLAS</li>
</ul>
<p dir="auto">So, I'm not 100% sure this counts as a numpy bug, rather than one in multiprocessing or Accelerate; if you think I should just report it to one of them, let me know.</p>
<p dir="auto">Any workarounds would also be appreciated, as this is currently making my life harder. :)</p> | <p dir="auto">The following commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/numpy/numpy/commit/ad9c2f47b491fbf19c48e9c2dc7fd56ddca61685/hovercard" href="https://github.com/numpy/numpy/commit/ad9c2f47b491fbf19c48e9c2dc7fd56ddca61685"><tt>ad9c2f4</tt></a> breaks sage's ability to compile inline fortran:</p>
<pre class="notranslate">sage -t -long "devel/sage-main/sage/misc/inline_fortran.py"
**********************************************************************
File "/home/work/fbissey/sandbox/sage-5.6.rc0/devel/sage-main/sage/misc/inline_fortran.py", line 29:
sage: fortran(_example)
Exception raised:
Traceback (most recent call last):
File "/home/work/fbissey/sandbox/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/work/fbissey/sandbox/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
File "/home/work/fbissey/sandbox/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example
compileflags, 1) in test.globs
File "", line 1, in
fortran(_example)###line 29:
sage: fortran(_example)
File "/home/work/fbissey/sandbox/sage-5.6.rc0/local/lib/python/site-packages/sage/misc/inline_fortran.py", line 21, in __call__
return self.eval(*args, **kwds)
File "/home/work/fbissey/sandbox/sage-5.6.rc0/local/lib/python/site-packages/sage/misc/inline_fortran.py", line 84, in eval
f2py.compile(x, name, extra_args = extra_args, source_fn=fortran_file)
File "/home/work/fbissey/sandbox/sage-5.6.rc0/local/lib/python/site-packages/numpy/f2py/__init__.py", line 40, in compile
s,o = exec_command(c)
File "/home/work/fbissey/sandbox/sage-5.6.rc0/local/lib/python/site-packages/numpy/distutils/exec_command.py", line 197, in exec_command
if _with_python and (0 or sys.stdout.fileno()==-1):
AttributeError: _SpoofOut instance has no attribute 'fileno'
</pre> | 0 |
<p dir="auto">This was originally brought up at <a href="https://github.com/kennethreitz/requests/issues/2061">https://github.com/kennethreitz/requests/issues/2061</a>. If you change <code class="notranslate">session.proxies</code> after calling <code class="notranslate">session.get</code> and call <code class="notranslate">session.get</code> again, it does not use the updated value. You have to do <code class="notranslate">session.get(proxies=session.proxies)</code>.</p>
<p dir="auto">Assumedly this is not difficult to fix, since setting the keyword argument does work. I didn't read the code, though.</p> | <p dir="auto"><code class="notranslate">Session.trust_env = False</code> turns off the checking of environment variables for options including proxy settings (<code class="notranslate">*_proxy</code>). But <code class="notranslate">urllib</code> picks up and uses these environment proxy settings anyway. <code class="notranslate">requests</code> should pass the <code class="notranslate">trust_env</code> setting on to <code class="notranslate">urllib</code>. (Although I'm not sure if <code class="notranslate">urllib</code> has a similar override.)</p>
<p dir="auto">(Proxy setting precedence should be sorted out here as well. They way it is now, environment proxy settings will interfere with (rather than be over-ridden by) the <code class="notranslate">proxies</code> argument in <code class="notranslate">Session.request</code> or <code class="notranslate">requests.request</code> calls and the <code class="notranslate">Session.proxies</code> config regardless of <code class="notranslate">trust_env</code> settings.)</p> | 1 |
<p dir="auto">Right now, if I run <code class="notranslate">deno doc</code> without any params I get a stack overflow:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32012862/91467021-43e16100-e890-11ea-8217-f82ca81636c8.png"><img src="https://user-images.githubusercontent.com/32012862/91467021-43e16100-e890-11ea-8217-f82ca81636c8.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Instead it should show a descriptive error, that it needs params, like <code class="notranslate">deno run</code>.</p>
<p dir="auto">(Should this issue be moved to <code class="notranslate">deno_doc</code> repo? )</p> | <p dir="auto">I was just upgrading deno to 1.3.1 version and going to show builtin docs. It shows</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="thread 'main' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)"><pre class="notranslate">thread <span class="pl-s"><span class="pl-pds">'</span>main<span class="pl-pds">'</span></span> has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)</pre></div> | 1 |
<p dir="auto">The feature that captures "stdout" for tests doesn't capture all the ways that a test could print to stdout.</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#[test]
fn output_capture_tests() {
println!("This gets captured...");
let _ = std::io::stdout().write_line("but this does not...");
let _ = std::task::try(proc() { println!("..and neither does this...") });
let _ = std::run::process_status("/bin/echo", [~"...nor this..."]);
fail!();
}"><pre class="notranslate"><span class="pl-c1">#<span class="pl-kos">[</span>test<span class="pl-kos">]</span></span>
<span class="pl-k">fn</span> <span class="pl-en">output_capture_tests</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"This gets captured..."</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> _ = std<span class="pl-kos">::</span>io<span class="pl-kos">::</span><span class="pl-en">stdout</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">write_line</span><span class="pl-kos">(</span><span class="pl-s">"but this does not..."</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> _ = std<span class="pl-kos">::</span>task<span class="pl-kos">::</span><span class="pl-en">try</span><span class="pl-kos">(</span><span class="pl-en">proc</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"..and neither does this..."</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> _ = std<span class="pl-kos">::</span>run<span class="pl-kos">::</span><span class="pl-en">process_status</span><span class="pl-kos">(</span><span class="pl-s">"/bin/echo"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span>~"...nor this...<span class="pl-s">"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">fail</span><span class="pl-en">!</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">Only the first <code class="notranslate">println!</code> call gets captured--the rest appear intermingled with the test output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="running 1 test
but this does not...
..and neither does this...
...nor this...
test output_capture_tests ... FAILED
failures:
---- output_capture_tests stdout ----
This gets captured...
task 'output_capture_tests' failed at 'explicit failure', subproc-test-stdout.rs:7
failures:
output_capture_tests
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured"><pre class="notranslate"><code class="notranslate">running 1 test
but this does not...
..and neither does this...
...nor this...
test output_capture_tests ... FAILED
failures:
---- output_capture_tests stdout ----
This gets captured...
task 'output_capture_tests' failed at 'explicit failure', subproc-test-stdout.rs:7
failures:
output_capture_tests
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured
</code></pre></div>
<p dir="auto">It would be nice if all of these got captured.</p> | <p dir="auto">I've filed this bug in <a href="https://github.com/rust-lang/cargo/issues/4129" data-hovercard-type="issue" data-hovercard-url="/rust-lang/cargo/issues/4129/hovercard">rust-lang/cargo</a> but I'm afraid rust-lang/rust is the correct repo for this.</p>
<p dir="auto">I ran the tests for one of my crates that uses threads in its example code. I've noticed it printed some lines to stdout, even though <code class="notranslate">--nocapture</code> wasn't set, but not all of them. It appears that text printed from new threads are not correctly captured, I think this is not intended.</p>
<h2 dir="auto">Reproduce</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#[cfg(test)]
mod tests {
use std::thread;
use std::time::Duration;
#[test]
fn it_works() {
thread::spawn(move || {
println!("request: {:?}", 123);
});
thread::sleep(Duration::from_secs(1));
println!("response: {:?}", 456);
}"><pre class="notranslate"><code class="notranslate">#[cfg(test)]
mod tests {
use std::thread;
use std::time::Duration;
#[test]
fn it_works() {
thread::spawn(move || {
println!("request: {:?}", 123);
});
thread::sleep(Duration::from_secs(1));
println!("response: {:?}", 456);
}
</code></pre></div>
<h2 dir="auto">Output</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="running 2 tests
request: 123
test tests::it_works ... ok
[...]"><pre class="notranslate"><code class="notranslate">running 2 tests
request: 123
test tests::it_works ... ok
[...]
</code></pre></div>
<h2 dir="auto">Meta</h2>
<p dir="auto"><code class="notranslate">rustc --version --verbose</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 1.17.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.17.0
LLVM version: 4.0"><pre class="notranslate"><code class="notranslate">rustc 1.17.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.17.0
LLVM version: 4.0
</code></pre></div> | 1 |
<p dir="auto"><strong>Apache Airflow version</strong>: 2.0.1</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):1.11</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: OpenShift 3.11</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): RHEL Server</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux</li>
<li><strong>Install tools</strong>: Airflow</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods "sales-trend-predict.181186911d0344eda3f3ff7d446f7d62" is forbidden: [maximum memory usage per Pod is 8Gi, but limit is 9663676416., minimum cpu usage per Container is 400m, but request is 1m., cpu max limit to request ratio per Container is 5, but provided ratio is 1000.000000.]","reason":"Forbidden","details":{"name":"sales-trend-predict.181186911d0344eda3f3ff7d446f7d62","kind":"pods"},"code":403}</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">For some enterprise kubernetes/openshift cluster, the admin will set a cpu/memory limit on container's resource, eg. minimum 400m cpu core, maximum 8Gi memory etc. However, for airflow's auto generated sidecar container for xcom 'airflow-xcom-sidecar' will fail this requirement as the error shown above, since the cpu core request is set to '1m' currently, (<a href="https://github.com/apache/airflow/blob/master/airflow/kubernetes/pod_generator.py#L60">https://github.com/apache/airflow/blob/master/airflow/kubernetes/pod_generator.py#L60</a>), as a result, the sidecar container won't be able to start up. Therefore, we need to have the capability to specify the xcom sidecar resource on kubernetesPodOperator as a parameter.</p>
<p dir="auto"><strong>How to reproduce it</strong>:</p>
<p dir="auto">This error only exist in certain kubernetes cluster that have a restriction on container's resource. Therefore, the error can be reproduced by manually setting a resource restriction on admin's level (eg. cpu core request 400m minimum, etc.). Then use KubernetesPodOperator with xcom enabled, you will be able to reproduce the error above.</p>
<p dir="auto"><strong>Anything else we need to know</strong>:<br>
N/A</p> | <h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.1.4 (latest released)</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Debian GNU/Linux 10 (buster)</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">apache-airflow-providers-amazon==2.2.0<br>
apache-airflow-providers-celery==2.0.0<br>
apache-airflow-providers-cncf-kubernetes==2.0.2<br>
apache-airflow-providers-docker==2.1.1<br>
apache-airflow-providers-elasticsearch==2.0.3<br>
apache-airflow-providers-ftp==2.0.1<br>
apache-airflow-providers-google==5.1.0<br>
apache-airflow-providers-grpc==2.0.1<br>
apache-airflow-providers-hashicorp==2.1.0<br>
apache-airflow-providers-http==2.0.1<br>
apache-airflow-providers-imap==2.0.1<br>
apache-airflow-providers-microsoft-azure==3.1.1<br>
apache-airflow-providers-mysql==2.1.1<br>
apache-airflow-providers-postgres==2.2.0<br>
apache-airflow-providers-redis==2.0.1<br>
apache-airflow-providers-sendgrid==2.0.1<br>
apache-airflow-providers-sftp==2.1.1<br>
apache-airflow-providers-slack==4.0.1<br>
apache-airflow-providers-sqlite==2.0.1<br>
apache-airflow-providers-ssh==2.1.1</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Docker-Compose</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">dockerfile from apache/airflow:2.1.4-python3.7<br>
<code class="notranslate">EXECUTOR=LocalExecutor</code></p>
<h3 dir="auto">What happened</h3>
<p dir="auto">After successfully running a SUBDAG, clearing it (including downstream+recursive) doesn't trigger the inner tasks. Instead, the subdag is marked successful and the inner tasks all stay cleared and are not re-ran.</p>
<h3 dir="auto">What you expected to happen</h3>
<p dir="auto">Expected Clear with DownStream + Recursive to re-run all subdag tasks.</p>
<h3 dir="auto">How to reproduce</h3>
<ol dir="auto">
<li>Using a slightly modified version of <a href="https://airflow.apache.org/docs/apache-airflow/stable/concepts.html#subdags" rel="nofollow">https://airflow.apache.org/docs/apache-airflow/stable/concepts.html#subdags</a>:</li>
</ol>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from airflow import DAG
from airflow.example_dags.subdags.subdag import subdag
from airflow.operators.dummy import DummyOperator
from airflow.operators.subdag import SubDagOperator
from airflow.utils.dates import days_ago
def subdag(parent_dag_name, child_dag_name, args):
dag_subdag = DAG(
dag_id=f'{parent_dag_name}.{child_dag_name}',
default_args=args,
start_date=days_ago(2),
schedule_interval=None,
)
for i in range(5):
DummyOperator(
task_id='{}-task-{}'.format(child_dag_name, i + 1),
default_args=args,
dag=dag_subdag,
)
return dag_subdag
DAG_NAME = 'example_subdag_operator'
args = {
'owner': 'airflow',
}
dag = DAG(
dag_id=DAG_NAME, default_args=args, start_date=days_ago(2), schedule_interval=None, tags=['example']
)
start = DummyOperator(
task_id='start',
dag=dag,
)
section_1 = SubDagOperator(
task_id='section-1',
subdag=subdag(DAG_NAME, 'section-1', args),
dag=dag,
)
some_other_task = DummyOperator(
task_id='some-other-task',
dag=dag,
)
section_2 = SubDagOperator(
task_id='section-2',
subdag=subdag(DAG_NAME, 'section-2', args),
dag=dag,
)
end = DummyOperator(
task_id='end',
dag=dag,
)
start >> section_1 >> some_other_task >> section_2 >> end"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">airflow</span> <span class="pl-k">import</span> <span class="pl-v">DAG</span>
<span class="pl-k">from</span> <span class="pl-s1">airflow</span>.<span class="pl-s1">example_dags</span>.<span class="pl-s1">subdags</span>.<span class="pl-s1">subdag</span> <span class="pl-k">import</span> <span class="pl-s1">subdag</span>
<span class="pl-k">from</span> <span class="pl-s1">airflow</span>.<span class="pl-s1">operators</span>.<span class="pl-s1">dummy</span> <span class="pl-k">import</span> <span class="pl-v">DummyOperator</span>
<span class="pl-k">from</span> <span class="pl-s1">airflow</span>.<span class="pl-s1">operators</span>.<span class="pl-s1">subdag</span> <span class="pl-k">import</span> <span class="pl-v">SubDagOperator</span>
<span class="pl-k">from</span> <span class="pl-s1">airflow</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">dates</span> <span class="pl-k">import</span> <span class="pl-s1">days_ago</span>
<span class="pl-k">def</span> <span class="pl-en">subdag</span>(<span class="pl-s1">parent_dag_name</span>, <span class="pl-s1">child_dag_name</span>, <span class="pl-s1">args</span>):
<span class="pl-s1">dag_subdag</span> <span class="pl-c1">=</span> <span class="pl-v">DAG</span>(
<span class="pl-s1">dag_id</span><span class="pl-c1">=</span><span class="pl-s">f'<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">parent_dag_name</span><span class="pl-kos">}</span></span>.<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">child_dag_name</span><span class="pl-kos">}</span></span>'</span>,
<span class="pl-s1">default_args</span><span class="pl-c1">=</span><span class="pl-s1">args</span>,
<span class="pl-s1">start_date</span><span class="pl-c1">=</span><span class="pl-en">days_ago</span>(<span class="pl-c1">2</span>),
<span class="pl-s1">schedule_interval</span><span class="pl-c1">=</span><span class="pl-c1">None</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-v">DummyOperator</span>(
<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">'{}-task-{}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">child_dag_name</span>, <span class="pl-s1">i</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>),
<span class="pl-s1">default_args</span><span class="pl-c1">=</span><span class="pl-s1">args</span>,
<span class="pl-s1">dag</span><span class="pl-c1">=</span><span class="pl-s1">dag_subdag</span>,
)
<span class="pl-k">return</span> <span class="pl-s1">dag_subdag</span>
<span class="pl-v">DAG_NAME</span> <span class="pl-c1">=</span> <span class="pl-s">'example_subdag_operator'</span>
<span class="pl-s1">args</span> <span class="pl-c1">=</span> {
<span class="pl-s">'owner'</span>: <span class="pl-s">'airflow'</span>,
}
<span class="pl-s1">dag</span> <span class="pl-c1">=</span> <span class="pl-v">DAG</span>(
<span class="pl-s1">dag_id</span><span class="pl-c1">=</span><span class="pl-v">DAG_NAME</span>, <span class="pl-s1">default_args</span><span class="pl-c1">=</span><span class="pl-s1">args</span>, <span class="pl-s1">start_date</span><span class="pl-c1">=</span><span class="pl-en">days_ago</span>(<span class="pl-c1">2</span>), <span class="pl-s1">schedule_interval</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">tags</span><span class="pl-c1">=</span>[<span class="pl-s">'example'</span>]
)
<span class="pl-s1">start</span> <span class="pl-c1">=</span> <span class="pl-v">DummyOperator</span>(
<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">'start'</span>,
<span class="pl-s1">dag</span><span class="pl-c1">=</span><span class="pl-s1">dag</span>,
)
<span class="pl-s1">section_1</span> <span class="pl-c1">=</span> <span class="pl-v">SubDagOperator</span>(
<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">'section-1'</span>,
<span class="pl-s1">subdag</span><span class="pl-c1">=</span><span class="pl-en">subdag</span>(<span class="pl-v">DAG_NAME</span>, <span class="pl-s">'section-1'</span>, <span class="pl-s1">args</span>),
<span class="pl-s1">dag</span><span class="pl-c1">=</span><span class="pl-s1">dag</span>,
)
<span class="pl-s1">some_other_task</span> <span class="pl-c1">=</span> <span class="pl-v">DummyOperator</span>(
<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">'some-other-task'</span>,
<span class="pl-s1">dag</span><span class="pl-c1">=</span><span class="pl-s1">dag</span>,
)
<span class="pl-s1">section_2</span> <span class="pl-c1">=</span> <span class="pl-v">SubDagOperator</span>(
<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">'section-2'</span>,
<span class="pl-s1">subdag</span><span class="pl-c1">=</span><span class="pl-en">subdag</span>(<span class="pl-v">DAG_NAME</span>, <span class="pl-s">'section-2'</span>, <span class="pl-s1">args</span>),
<span class="pl-s1">dag</span><span class="pl-c1">=</span><span class="pl-s1">dag</span>,
)
<span class="pl-s1">end</span> <span class="pl-c1">=</span> <span class="pl-v">DummyOperator</span>(
<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">'end'</span>,
<span class="pl-s1">dag</span><span class="pl-c1">=</span><span class="pl-s1">dag</span>,
)
<span class="pl-s1">start</span> <span class="pl-c1">>></span> <span class="pl-s1">section_1</span> <span class="pl-c1">>></span> <span class="pl-s1">some_other_task</span> <span class="pl-c1">>></span> <span class="pl-s1">section_2</span> <span class="pl-c1">>></span> <span class="pl-s1">end</span></pre></div>
<ol start="2" dir="auto">
<li>Run the subdag fully.</li>
<li>Clear (with recursive/downstream) any of the SubDags.</li>
<li>The Subdag will be marked successful, but if you zoom into the subdag, you'll see all the child tasks were not run.</li>
</ol>
<h3 dir="auto">Anything else</h3>
<p dir="auto">This appears to be the same issue as the "resolved" bug <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="774128101" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/13295" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/13295/hovercard" href="https://github.com/apache/airflow/issues/13295">#13295</a> . Airflow version 2.0.2 does not appear to fix the issue and neither does version 2.1.0 or 2.1.4. I am uncertain of how the fix (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="831154750" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/14776" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/14776/hovercard" href="https://github.com/apache/airflow/pull/14776">#14776</a>) was shown as the key to fixing this.</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" checked=""> 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> | 0 |
<p dir="auto">The following code makes rustc core dump. It is hardly a normal use case, but it would be nice if rustc failed more gracefully.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat main.rs
#![no_std]
#![feature(box_syntax)]
#![feature(lang_items)]
extern crate core;
use core::ptr::Unique;
#[lang="owned_box"]
pub struct Box<T>(Unique<T>);
#[lang="start"]
fn main() {
let mut test:[isize;1] = [0;1];
let a = box 5;
test[*a] = 0;
}
#[lang = "stack_exhausted"] extern fn stack_exhausted() {}
#[lang = "eh_personality"] extern fn eh_personality() {}
#[lang = "panic_fmt"] fn panic_fmt() -> ! { loop{} }"><pre class="notranslate"><code class="notranslate">$ cat main.rs
#![no_std]
#![feature(box_syntax)]
#![feature(lang_items)]
extern crate core;
use core::ptr::Unique;
#[lang="owned_box"]
pub struct Box<T>(Unique<T>);
#[lang="start"]
fn main() {
let mut test:[isize;1] = [0;1];
let a = box 5;
test[*a] = 0;
}
#[lang = "stack_exhausted"] extern fn stack_exhausted() {}
#[lang = "eh_personality"] extern fn eh_personality() {}
#[lang = "panic_fmt"] fn panic_fmt() -> ! { loop{} }
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc main.rs
main.rs:5:1: 5:19 warning: use of unstable item, #[warn(unstable)] on by default
main.rs:5 extern crate core;
^~~~~~~~~~~~~~~~~~
thread 'rustc' has overflowed its stack
Illegal instruction (core dumped)"><pre class="notranslate"><code class="notranslate">$ rustc main.rs
main.rs:5:1: 5:19 warning: use of unstable item, #[warn(unstable)] on by default
main.rs:5 extern crate core;
^~~~~~~~~~~~~~~~~~
thread 'rustc' has overflowed its stack
Illegal instruction (core dumped)
</code></pre></div> | <p dir="auto">I’m playing with making a bare-metal executable in rust. I fully admit to not knowing what I’m doing, but I thought this was worth reporting given that it resulted in a stack overflow in rustc. This was produced with the rust nightly from 2014/1/10. I’m on OS X 10.10.1 and installed rustc from the OS X .pkg flle.</p>
<p dir="auto">Here’s how I invoked the compiler:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc spin.rs
spin.rs:4:1: 4:19 warning: use of unstable item, #[warn(unstable)] on by default
spin.rs:4 extern crate core;
^~~~~~~~~~~~~~~~~~
thread 'rustc' has overflowed its stack
Illegal instruction: 4"><pre class="notranslate"><code class="notranslate">$ rustc spin.rs
spin.rs:4:1: 4:19 warning: use of unstable item, #[warn(unstable)] on by default
spin.rs:4 extern crate core;
^~~~~~~~~~~~~~~~~~
thread 'rustc' has overflowed its stack
Illegal instruction: 4
</code></pre></div>
<p dir="auto">Here’s spin.rs:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![feature(lang_items)]
#![no_std]
extern crate core;
use core::fmt::Arguments;
#[lang="stack_exhausted"]
extern fn stack_exhausted() {}
#[lang="eh_personality"]
extern fn eh_personality() {}
#[lang="begin_unwind"]
extern fn begin_unwind() {}
#[lang="panic_fmt"]
pub fn panic_fmt(_fmt: &Arguments, _file_line: &(&'static str, usize)) -> ! {
loop { }
}
#[lang="start"]
fn main() {
loop {
}
}"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>lang_items<span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-c1">#!<span class="pl-kos">[</span>no_std<span class="pl-kos">]</span></span>
<span class="pl-k">extern</span> <span class="pl-k">crate</span> core<span class="pl-kos">;</span>
<span class="pl-k">use</span> core<span class="pl-kos">::</span>fmt<span class="pl-kos">::</span><span class="pl-v">Arguments</span><span class="pl-kos">;</span>
<span class="pl-c1">#<span class="pl-kos">[</span>lang=<span class="pl-s">"stack_exhausted"</span><span class="pl-kos">]</span></span>
<span class="pl-k">extern</span> <span class="pl-k">fn</span> <span class="pl-en">stack_exhausted</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-c1">#<span class="pl-kos">[</span>lang=<span class="pl-s">"eh_personality"</span><span class="pl-kos">]</span></span>
<span class="pl-k">extern</span> <span class="pl-k">fn</span> <span class="pl-en">eh_personality</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-c1">#<span class="pl-kos">[</span>lang=<span class="pl-s">"begin_unwind"</span><span class="pl-kos">]</span></span>
<span class="pl-k">extern</span> <span class="pl-k">fn</span> <span class="pl-en">begin_unwind</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-c1">#<span class="pl-kos">[</span>lang=<span class="pl-s">"panic_fmt"</span><span class="pl-kos">]</span></span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">panic_fmt</span><span class="pl-kos">(</span><span class="pl-s1">_fmt</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-smi">Arguments</span><span class="pl-kos">,</span> <span class="pl-s1">_file_line</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-c1">'</span><span class="pl-ent">static</span> <span class="pl-smi">str</span><span class="pl-kos">,</span> <span class="pl-smi">usize</span><span class="pl-kos">)</span><span class="pl-kos">)</span> -> ! <span class="pl-kos">{</span>
<span class="pl-k">loop</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-c1">#<span class="pl-kos">[</span>lang=<span class="pl-s">"start"</span><span class="pl-kos">]</span></span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">loop</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div> | 1 |
<p dir="auto">Try this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="d = Dict([1,2] => 1.1, [3,2] => 0.1)
length.(keys(d))"><pre class="notranslate"><code class="notranslate">d = Dict([1,2] => 1.1, [3,2] => 0.1)
length.(keys(d))
</code></pre></div>
<p dir="auto">It doesn't work on 0.5 (I've been told it works on master, <a href="https://discourse.julialang.org/t/length-keys-d-does-not-work/913" rel="nofollow">https://discourse.julialang.org/t/length-keys-d-does-not-work/913</a>). Can we pull this into 0.5.1?</p> | <p dir="auto">Currently the very common operation of iterating a Dict's keys in sorted order requires writing the overly verbose <code class="notranslate">sort!(collect(keys(d)))</code>. This could be abbreviated to <code class="notranslate">sort(keys(d))</code> by adding a <code class="notranslate">sort</code> method for <code class="notranslate">KeyIterator</code>, but do we manually add methods for all relevant functions in Base? What about user-defined functions that make sense for general collection-like types? At some point (IIRC) I proposed making <code class="notranslate">KeyIterator</code> and <code class="notranslate">ValueIterator</code> subtypes of <code class="notranslate">AbstractVector</code>, which would make many things "just work". The trouble is that indexing is O(n); however, I believe that something like <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JeffBezanson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JeffBezanson">@JeffBezanson</a>'s <a href="https://github.com/JuliaLang/julia/pull/10116" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/10116/hovercard">ordered dict experiment</a> could make indexing O(1).</p> | 1 |
<p dir="auto">While using the new version of ListItem this bit of code resulted in the following error <strong>uncaught Error: Invariant Violation: ReactMount: Two valid but unequal nodes with the same <code class="notranslate">data-reactid</code></strong><br>
Note that this ListItem itself was nested in other lists and cards. Funny thing is the same code worked with the earlier version of material-ui. Just wondering what changed and what I can do to fix this?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div>
<ListItem
secondaryText = {<p> secondaryText </p>}
disableTouchTap = {true}
rightIconButton={options}
style = {
{
fontSize : 16,
lineHeight : "16px",
backgroundColor : Colors.green50
}
}>
<p>ABCD</p>
<p>XYZ</p>
</ListItem>
</div>"><pre class="notranslate"><code class="notranslate"><div>
<ListItem
secondaryText = {<p> secondaryText </p>}
disableTouchTap = {true}
rightIconButton={options}
style = {
{
fontSize : 16,
lineHeight : "16px",
backgroundColor : Colors.green50
}
}>
<p>ABCD</p>
<p>XYZ</p>
</ListItem>
</div>
</code></pre></div> | <p dir="auto">When a <code class="notranslate">Menu</code> has no selected items, it always has a highlighted first item.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">If I open a menu that has no item with <code class="notranslate">select={true}</code> I would expect the menu to open with the first item highlighted for as long as the cursor is hovering over it and then when the cursor moves to another item, the first item should be un-highlighted. So, only the item that is under the cursor should be highlighted if there is no selected item.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">When the menu (with no selected items) opens, the first item is highlighted and remains highlighted (suggesting that it is somehow selected) while the cursor hovers over other items.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">See <a href="https://material-ui-next.com/demos/menus/" rel="nofollow">simple menu demo</a></p>
<h2 dir="auto">Context</h2>
<p dir="auto">I am using a Menu to display a list of commands/actions that a user might want to execute. So I should like the menu to highlight only the command that the user is currently hovering over with the mouse. (Or on a touch device, no command should be highlighted)</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0. beta 17</td>
</tr>
<tr>
<td>React</td>
<td></td>
</tr>
<tr>
<td>browser</td>
<td></td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">am using the <a href="https://pub.dartlang.org/packages/camera" rel="nofollow">https://pub.dartlang.org/packages/camera</a><br>
and am having a problem with image update. I have an image instantiated in my <code class="notranslate">build()</code> method with a new <code class="notranslate">Image.file(new File(img))</code>, where file is the local file saved from the camera. The file is saved and and new path is send to Flutter, but the image is not updated and according to this issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="201142085" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/7503" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/7503/hovercard" href="https://github.com/flutter/flutter/issues/7503">#7503</a> this is supposed to be fixed but it does not look that way.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] Flutter (Channel dev, v0.4.0, on Microsoft Windows [Version 10.0.17134.5], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[√] VS Code, 64-bit edition (version 1.23.0)
[√] Connected devices (1 available)"><pre class="notranslate"><code class="notranslate">[√] Flutter (Channel dev, v0.4.0, on Microsoft Windows [Version 10.0.17134.5], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[√] VS Code, 64-bit edition (version 1.23.0)
[√] Connected devices (1 available)
</code></pre></div> | <h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">I am able to successfully run the application with <code class="notranslate">flutter run</code></p>
<p dir="auto">When I make any change to the application, like add a <code class="notranslate">print("Hello");</code> and perform a hot reload the exception is hit. I am running this on a Samsung Galaxy S8. This happens irrespective of the change, when I restart the <code class="notranslate">flutter run</code> the app works fine on initial launch till the next hot reload.</p>
<h2 dir="auto">Logs</h2>
<p dir="auto">When I hot reload the app the first time</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error -32601 received from application: Method not found
I/flutter ( 533): ══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════
I/flutter ( 533): The following _CompileTimeError was thrown during a service extension callback for
I/flutter ( 533): "ext.flutter.evict":
I/flutter ( 533): 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver
I/flutter ( 533): 'this'
I/flutter ( 533): imageCache.clear();
I/flutter ( 533): ^
I/flutter ( 533):
I/flutter ( 533): When the exception was thrown, this was the stack:
I/flutter ( 533): #0 BindingBase.registerStringServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:338)
I/flutter ( 533): <asynchronous suspension>
I/flutter ( 533): #1 BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:368)
I/flutter ( 533): <asynchronous suspension>
I/flutter ( 533): #2 _runExtension (dart:developer-patch/dart:developer/developer.dart:85)
I/flutter ( 533): ════════════════════════════════════════════════════════════════════════════════════════════════════
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
Error -32000 received from application: Server error
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: type 'ImageConfiguration' is not a subtype of type 'ImageConfiguration' of 'configuration' where
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: type 'ImageConfiguration' is not a subtype of type 'ImageConfiguration' of 'configuration' where
I/flutter ( 533): Another exception was thrown: NoSuchMethodError: The getter 'imageCache' was called on null.
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4314 pos 14: 'oldChild == null || oldChild._debugLifecycleState == _ElementLifecycle.active': is not true.
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4314 pos 14: 'oldChild == null || oldChild._debugLifecycleState == _ElementLifecycle.active': is not true.
I/flutter ( 533): Another exception was thrown: type 'ImageStream' is not a subtype of type 'ImageStream' of 'value' where
Reloaded 472 of 488 libraries in 9,217ms.
Some program elements were changed during reload but did not run when the view was reassembled;
you may need to restart the app for the changes to have an effect.
• SHA1 (package:crypto/src/sha1.dart:10)
• NetworkImage (package:flutter/src/painting/image_provider.dart:399)
• SelectionChangedCause (package:flutter/src/rendering/editable.dart:29)
• WidgetsBinding.initInstances (package:flutter/src/widgets/binding.dart:240)
• WidgetsBinding.handleAppLifecycleStateChanged (package:flutter/src/widgets/binding.dart:443)
• WidgetsBinding._handleSystemMessage (package:flutter/src/widgets/binding.dart:462)
• CupertinoPageScaffold (package:flutter/src/cupertino/page_scaffold.dart:20)
• _AccountPictures (package:flutter/src/material/user_accounts_drawer_header.dart:16)
• RenderTable (package:flutter/src/rendering/table.dart:347)
• Uuid (package:uuid/uuid.dart:16)
• ImageRepeat.index (package:flutter/src/painting/decoration_image.dart:17)
• ImageRepeat._name (package:flutter/src/painting/decoration_image.dart:17)
• ImageRepeat.toString (dart:core-patch/dart:core/core_patch.dart:98)
• ImageRepeat.hashCode (dart:core-patch/dart:core/core_patch.dart:99)
• _EstimateListState (package:servicemax_flutter/widgets/estimate_list.dart:13)
• AES (package:uuid/aes.dart:13)
• _MaterialAppState.didUpdateWidget (package:flutter/src/material/app.dart:475)
• CupertinoNavigationBar (package:flutter/src/cupertino/nav_bar.dart:72)
• ExactAssetImage.ExactAssetImage (package:flutter/src/painting/image_provider.dart:670)
• ExactAssetImage.assetName (package:flutter/src/painting/image_provider.dart:678)
• ExactAssetImage.keyName (package:flutter/src/painting/image_provider.dart:682)
• ExactAssetImage.scale (package:flutter/src/painting/image_provider.dart:685)
• ExactAssetImage.bundle (package:flutter/src/painting/image_provider.dart:695)
• ExactAssetImage.package (package:flutter/src/painting/image_provider.dart:699)
• ExactAssetImage.obtainKey (package:flutter/src/painting/image_provider.dart:702)
• ExactAssetImage.== (package:flutter/src/painting/image_provider.dart:711)
• ExactAssetImage.hashCode (package:flutter/src/painting/image_provider.dart:721)
• ExactAssetImage.toString (package:flutter/src/painting/image_provider.dart:724)
• BorderRadiusGeometry.lerp (package:flutter/src/painting/border_radius.dart:141)
• _InkResponseState.build (package:flutter/src/material/ink_well.dart:378)
• _CupertinoEdgeShadowDecoration (package:flutter/src/cupertino/route.dart:589)
• FlutterLogoDecoration (package:flutter/src/painting/flutter_logo.dart:36)
• _DropdownButtonState (package:flutter/src/material/dropdown.dart:516)
• _UserAccountsDrawerHeaderState (package:flutter/src/material/user_accounts_drawer_header.dart:296)
• _AnimatedIconPainter (package:flutter/src/material/animated_icons/animated_icons.dart:130)
• MD5 (package:crypto/src/md5.dart:13)
• RenderOpacity.opacity (package:flutter/src/rendering/proxy_box.dart:732)
• RenderOpacity._opacity (package:flutter/src/rendering/proxy_box.dart:733)
• RenderOpacity._opacity= (package:flutter/src/rendering/proxy_box.dart:733)
• RenderOpacity.opacity= (package:flutter/src/rendering/proxy_box.dart:734)
• RenderOpacity._alpha (package:flutter/src/rendering/proxy_box.dart:750)
• RenderOpacity._alpha= (package:flutter/src/rendering/proxy_box.dart:750)
• RenderOpacity.paint (package:flutter/src/rendering/proxy_box.dart:753)
• RenderOpacity.visitChildrenForSemantics (package:flutter/src/rendering/proxy_box.dart:767)
• RenderOpacity.debugFillProperties (package:flutter/src/rendering/proxy_box.dart:773)
• Hash (package:crypto/crypto.dart:37)
• CryptoUtils (package:crypto/crypto.dart:66)
• IconButton.build (package:flutter/src/material/icon_button.dart:186)
• _CupertinoScrollbarState (package:flutter/src/cupertino/scrollbar.dart:54)
• RenderEditable.selection= (package:flutter/src/rendering/editable.dart:313)
• RenderEditable.describeSemanticsConfiguration (package:flutter/src/rendering/editable.dart:342)
• RenderEditable._handleMoveCursorForwardByCharacter (package:flutter/src/rendering/editable.dart:359)
• RenderEditable._handleMoveCursorBackwardByCharacter (package:flutter/src/rendering/editable.dart:369)
• RenderEditable._handleTap (package:flutter/src/rendering/editable.dart:566)
• RenderEditable._handleLongPress (package:flutter/src/rendering/editable.dart:583)
• _BottomNavigationBarState (package:flutter/src/material/bottom_navigation_bar.dart:274)
• HMAC (package:crypto/src/hmac.dart:14)
• _AccountDetailsLayout (package:flutter/src/material/user_accounts_drawer_header.dart:164)
• AnimatedIconData (package:flutter/src/material/animated_icons/animated_icons_data.dart:31)
• ShapeDecoration (package:flutter/src/painting/shape_decoration.dart:59)
• AssetBundleImageProvider.load (package:flutter/src/painting/image_provider.dart:365)
• AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:381)
• _PathMoveTo (package:flutter/src/material/animated_icons/animated_icons.dart:222)
• Border.lerp (package:flutter/src/painting/box_border.dart:445)
• SemanticsConfiguration.isMergingDescendantsIntoOneNode= (package:flutter/src/semantics/semantics.dart:1381)
• SemanticsConfiguration.onTap (package:flutter/src/semantics/semantics.dart:1439)
• SemanticsConfiguration._onTap (package:flutter/src/semantics/semantics.dart:1440)
• SemanticsConfiguration.onLongPress (package:flutter/src/semantics/semantics.dart:1454)
• SemanticsConfiguration._onLongPress (package:flutter/src/semantics/semantics.dart:1455)
• SemanticsConfiguration._onLongPress= (package:flutter/src/semantics/semantics.dart:1455)
• SemanticsConfiguration.onLongPress= (package:flutter/src/semantics/semantics.dart:1456)
• SemanticsConfiguration.onScrollLeft (package:flutter/src/semantics/semantics.dart:1472)
• SemanticsConfiguration._onScrollLeft (package:flutter/src/semantics/semantics.dart:1473)
• SemanticsConfiguration._onScrollLeft= (package:flutter/src/semantics/semantics.dart:1473)
• SemanticsConfiguration.onScrollLeft= (package:flutter/src/semantics/semantics.dart:1474)
• SemanticsConfiguration.onScrollRight (package:flutter/src/semantics/semantics.dart:1490)
• SemanticsConfiguration._onScrollRight (package:flutter/src/semantics/semantics.dart:1491)
• SemanticsConfiguration._onScrollRight= (package:flutter/src/semantics/semantics.dart:1491)
• SemanticsConfiguration.onScrollRight= (package:flutter/src/semantics/semantics.dart:1492)
• SemanticsConfiguration.onScrollUp (package:flutter/src/semantics/semantics.dart:1508)
• SemanticsConfiguration._onScrollUp (package:flutter/src/semantics/semantics.dart:1509)
• SemanticsConfiguration._onScrollUp= (package:flutter/src/semantics/semantics.dart:1509)
• SemanticsConfiguration.onScrollUp= (package:flutter/src/semantics/semantics.dart:1510)
• SemanticsConfiguration.onScrollDown (package:flutter/src/semantics/semantics.dart:1526)
• SemanticsConfiguration._onScrollDown (package:flutter/src/semantics/semantics.dart:1527)
• SemanticsConfiguration._onScrollDown= (package:flutter/src/semantics/semantics.dart:1527)
• SemanticsConfiguration.onScrollDown= (package:flutter/src/semantics/semantics.dart:1528)
• SemanticsConfiguration.onIncrease (package:flutter/src/semantics/semantics.dart:1544)
• SemanticsConfiguration._onIncrease (package:flutter/src/semantics/semantics.dart:1545)
• SemanticsConfiguration._onIncrease= (package:flutter/src/semantics/semantics.dart:1545)
• SemanticsConfiguration.onIncrease= (package:flutter/src/semantics/semantics.dart:1546)
• SemanticsConfiguration.onDecrease (package:flutter/src/semantics/semantics.dart:1562)
• SemanticsConfiguration._onDecrease (package:flutter/src/semantics/semantics.dart:1563)
• SemanticsConfiguration._onDecrease= (package:flutter/src/semantics/semantics.dart:1563)
• SemanticsConfiguration.onDecrease= (package:flutter/src/semantics/semantics.dart:1564)
• SemanticsConfiguration.onShowOnScreen (package:flutter/src/semantics/semantics.dart:1578)
• SemanticsConfiguration._onShowOnScreen (package:flutter/src/semantics/semantics.dart:1579)
• SemanticsConfiguration._onShowOnScreen= (package:flutter/src/semantics/semantics.dart:1579)
• SemanticsConfiguration.onShowOnScreen= (package:flutter/src/semantics/semantics.dart:1580)
• SemanticsConfiguration.onMoveCursorForwardByCharacter (package:flutter/src/semantics/semantics.dart:1592)
• SemanticsConfiguration._onMoveCursorForwardByCharacter (package:flutter/src/semantics/semantics.dart:1593)
• SemanticsConfiguration._onMoveCursorForwardByCharacter= (package:flutter/src/semantics/semantics.dart:1593)
• SemanticsConfiguration.onMoveCursorForwardByCharacter= (package:flutter/src/semantics/semantics.dart:1594)
• SemanticsConfiguration.onMoveCursorBackwardByCharacter (package:flutter/src/semantics/semantics.dart:1611)
• SemanticsConfiguration._onMoveCursorBackwardByCharacter (package:flutter/src/semantics/semantics.dart:1612)
• SemanticsConfiguration._onMoveCursorBackwardByCharacter= (package:flutter/src/semantics/semantics.dart:1612)
• SemanticsConfiguration.onMoveCursorBackwardByCharacter= (package:flutter/src/semantics/semantics.dart:1613)
• SemanticsConfiguration.getActionHandler (package:flutter/src/semantics/semantics.dart:1629)
• SemanticsConfiguration.isSelected (package:flutter/src/semantics/semantics.dart:1739)
• SemanticsConfiguration.isChecked (package:flutter/src/semantics/semantics.dart:1749)
• SemanticsConfiguration.isFocused (package:flutter/src/semantics/semantics.dart:1756)
• SemanticsConfiguration.isButton (package:flutter/src/semantics/semantics.dart:1762)
• SemanticsConfiguration.isTextField (package:flutter/src/semantics/semantics.dart:1768)
• SemanticsConfiguration._hasFlag (package:flutter/src/semantics/semantics.dart:1817)
• _PathCubicTo (package:flutter/src/material/animated_icons/animated_icons.dart:234)
• _LayoutBuilderElement (package:flutter/src/widgets/layout_builder.dart:54)
• Base64Decoder (package:crypto/src/base64.dart:271)
• Alignment.lerp (package:flutter/src/painting/alignment.dart:348)
• TextSelectionOverlay (package:flutter/src/widgets/text_selection.dart:184)
• _TableElement (package:flutter/src/widgets/table.dart:237)
• _CryptoUtils (package:crypto/src/crypto_utils.dart:7)
• Decoration.lerp (package:flutter/src/painting/decoration.dart:138)
• _Base64DecoderSink (package:crypto/src/base64.dart:363)
• _RenderCupertinoSlider (package:flutter/src/cupertino/slider.dart:189)
• _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:53)
• ModalRoute.barrierLabel (package:flutter/src/widgets/routes.dart:798)
• InkWell.InkWell (package:flutter/src/material/ink_well.dart:430)
• IosDeviceInfo (package:device_info/device_info.dart:202)
• ImageConfiguration.copyWith (package:flutter/src/painting/image_provider.dart:46)
• ImageConfiguration.locale (package:flutter/src/painting/image_provider.dart:72)
• ImageConfiguration.textDirection (package:flutter/src/painting/image_provider.dart:75)
• ImageConfiguration.size (package:flutter/src/painting/image_provider.dart:78)
• ImageConfiguration.platform (package:flutter/src/painting/image_provider.dart:84)
• ImageConfiguration.empty (package:flutter/src/painting/image_provider.dart:89)
• ImageConfiguration.== (package:flutter/src/painting/image_provider.dart:92)
• ImageConfiguration.hashCode (package:flutter/src/painting/image_provider.dart:105)
• ImageConfiguration.toString (package:flutter/src/painting/image_provider.dart:108)
• ImageConfiguration.empty (package:flutter/src/painting/image_provider.dart:89)
• AssetBundleImageKey.bundle (package:flutter/src/painting/image_provider.dart:327)
• AssetBundleImageKey.name (package:flutter/src/painting/image_provider.dart:331)
• AssetBundleImageKey.scale (package:flutter/src/painting/image_provider.dart:334)
• AssetBundleImageKey.== (package:flutter/src/painting/image_provider.dart:337)
• AssetBundleImageKey.hashCode (package:flutter/src/painting/image_provider.dart:347)
• AssetBundleImageKey.toString (package:flutter/src/painting/image_provider.dart:350)
• EdgeInsetsGeometry.lerp (package:flutter/src/painting/edge_insets.dart:204)
• _RoundedRectangleToCircleBorder (package:flutter/src/painting/rounded_rectangle_border.dart:143)
• _TextFieldState._onSelectionChanged (package:flutter/src/material/text_field.dart:334)
• _TextFieldState.build (package:flutter/src/material/text_field.dart:340)
• imageCache (package:flutter/src/painting/binding.dart:61)
• main (lib/main.dart:8)
• Gradient (package:flutter/src/painting/gradient.dart:46)
• _selectionAwareTextManipulation (package:flutter/src/services/text_formatter.dart:247)
• paintImage (package:flutter/src/painting/decoration_image.dart:348)
• _generateImageTileRects (package:flutter/src/painting/decoration_image.dart:434)
• decodeImageFromList (package:flutter/src/painting/image_decoder.dart:14)
• PipelineOwner.ensureSemantics (package:flutter/src/rendering/object.dart:824)
• PipelineOwner._didDisposeSemanticsHandle (package:flutter/src/rendering/object.dart:835)
• RenderingFlutterBinding (package:flutter/src/rendering/binding.dart:338)
• SemanticsOwner (package:flutter/src/semantics/semantics.dart:1162)
• BorderDirectional (package:flutter/src/painting/box_border.dart:566)
• MemoryImage (package:flutter/src/painting/image_provider.dart:540)
• SemanticsNode (package:flutter/src/semantics/semantics.dart:491)
• ImageProvider.obtainKey (package:flutter/src/painting/image_provider.dart:296)
• ImageProvider.load (package:flutter/src/painting/image_provider.dart:301)
• ImageProvider.toString (package:flutter/src/painting/image_provider.dart:304)
• Ticker.isTicking (package:flutter/src/scheduler/ticker.dart:108)
• RendererBinding.handleMetricsChanged (package:flutter/src/rendering/binding.dart:144)
• RendererBinding._handleSemanticsAction (package:flutter/src/rendering/binding.dart:191)
• DecorationImagePainter (package:flutter/src/painting/decoration_image.dart:189)
• IntrinsicColumnWidth (package:flutter/src/rendering/table.dart:90)
• AlignmentGeometry.lerp (package:flutter/src/painting/alignment.dart:99)
• BoxShadow (package:flutter/src/painting/box_shadow.dart:18)
• PageRouteBuilder (package:flutter/src/widgets/pages.dart:68)
• IconThemeData.lerp (package:flutter/src/widgets/icon_theme_data.dart:80)
• _debugReportException (package:flutter/src/widgets/layout_builder.dart:226)
• TextStyle.copyWith (package:flutter/src/painting/text_style.dart:323)
• TextStyle.apply (package:flutter/src/painting/text_style.dart:383)
• TextStyle.merge (package:flutter/src/painting/text_style.dart:453)
• TextStyle.lerp (package:flutter/src/painting/text_style.dart:498)
• ImageStream.completer (package:flutter/src/painting/image_stream.dart:96)
• ImageStream._completer (package:flutter/src/painting/image_stream.dart:97)
• ImageStream._completer= (package:flutter/src/painting/image_stream.dart:97)
• ImageStream._listeners (package:flutter/src/painting/image_stream.dart:99)
• ImageStream._listeners= (package:flutter/src/painting/image_stream.dart:99)
• ImageStream.setCompleter (package:flutter/src/painting/image_stream.dart:109)
• ImageStream.addListener (package:flutter/src/painting/image_stream.dart:130)
• ImageStream.removeListener (package:flutter/src/painting/image_stream.dart:138)
• ImageStream.key (package:flutter/src/painting/image_stream.dart:156)
• ImageStream.toStringShort (package:flutter/src/painting/image_stream.dart:159)
• ImageStream.debugFillProperties (package:flutter/src/painting/image_stream.dart:162)
• LinearGradient (package:flutter/src/painting/gradient.dart:212)
• ScrollbarPainter (package:flutter/src/widgets/scrollbar.dart:39)
• Navigator.push (package:flutter/src/widgets/navigator.dart:556)
• AlignmentDirectional.lerp (package:flutter/src/painting/alignment.dart:539)
• _kScrollbarColor (package:flutter/src/cupertino/scrollbar.dart:11)
• _kScrollbarRadius (package:flutter/src/cupertino/scrollbar.dart:16)
• _kScrollbarTimeToFade (package:flutter/src/cupertino/scrollbar.dart:17)
• _kScrollbarFadeDuration (package:flutter/src/cupertino/scrollbar.dart:18)
• _kScrollbarColor (package:flutter/src/cupertino/scrollbar.dart:11)
• _kScrollbarRadius (package:flutter/src/cupertino/scrollbar.dart:16)
• _kScrollbarTimeToFade (package:flutter/src/cupertino/scrollbar.dart:17)
• _kScrollbarFadeDuration (package:flutter/src/cupertino/scrollbar.dart:18)
• _CupertinoTabScaffoldState (package:flutter/src/cupertino/tab_scaffold.dart:130)
• showModalBottomSheet (package:flutter/src/material/bottom_sheet.dart:281)
• NavigatorState.push (package:flutter/src/widgets/navigator.dart:917)
• ShapeBorder.lerp (package:flutter/src/painting/borders.dart:428)
• showDialog (package:flutter/src/material/dialog.dart:481)
• ListTile (package:flutter/src/material/list_tile.dart:199)
• SnackBar (package:flutter/src/material/snack_bar.dart:141)
• HSVColor (package:flutter/src/painting/colors.dart:15)
• _TabBarState (package:flutter/src/material/tabs.dart:588)
• _kScrollbarFadeDuration (package:flutter/src/material/scrollbar.dart:14)
• _kScrollbarTimeToFade (package:flutter/src/material/scrollbar.dart:15)
• _kScrollbarFadeDuration (package:flutter/src/material/scrollbar.dart:14)
• _kScrollbarTimeToFade (package:flutter/src/material/scrollbar.dart:15)
• _interpolate (package:flutter/src/material/animated_icons/animated_icons.dart:287)
• _$arrow_menu (package:flutter/src/material/animated_icons/data/arrow_menu.g.dart:8)
• _$menu_arrow (package:flutter/src/material/animated_icons/data/menu_arrow.g.dart:8)
• _$arrow_menu (package:flutter/src/material/animated_icons/data/arrow_menu.g.dart:8)
• _$menu_arrow (package:flutter/src/material/animated_icons/data/menu_arrow.g.dart:8)
• _PathClose (package:flutter/src/material/animated_icons/animated_icons.dart:267)
• AnimatedIcons (package:flutter/src/material/animated_icons/animated_icons_data.dart:16)
• _ExpansionTileState (package:flutter/src/material/expansion_tile.dart:82)
• MultiFrameImageStreamCompleter (package:flutter/src/painting/image_stream.dart:324)
• showMenu (package:flutter/src/material/popup_menu.dart:662)
• AnimatedModalBarrier.AnimatedModalBarrier (package:flutter/src/widgets/modal_barrier.dart:115)
• AnimatedModalBarrier.semanticsLabel (package:flutter/src/widgets/modal_barrier.dart:146)
• AnimatedModalBarrier.build (package:flutter/src/widgets/modal_barrier.dart:149)
• _RenderSlider (package:flutter/src/material/slider.dart:310)
• FileImage (package:flutter/src/painting/image_provider.dart:472)
• _announceToAccessibility (package:flutter/src/material/time_picker.dart:1652)
• _StringFragment (package:flutter/src/material/time_picker.dart:343)
• _MinuteControl (package:flutter/src/material/time_picker.dart:363)
• DocumentReference (package:cloud_firestore/src/document_reference.dart:13)
• RadialGradient (package:flutter/src/painting/gradient.dart:464)
• PaginatedDataTableState (package:flutter/src/material/paginated_data_table.dart:179)
• getSignupDeviceInfo (package:servicemax_flutter/util/helper.dart:11)
• _readAndroidBuildData (package:servicemax_flutter/util/helper.dart:38)
• _readIosDeviceInfo (package:servicemax_flutter/util/helper.dart:45)
• DeviceInfoPlugin (package:device_info/device_info.dart:10)
• AndroidDeviceInfo (package:device_info/device_info.dart:40)
• _rotl32 (package:crypto/src/hash_utils.dart:16)
• BASE64 (package:crypto/src/base64.dart:7)
• _decodeTable (package:crypto/src/base64.dart:9)
• _PAD_BYTES (package:crypto/src/base64.dart:36)
• _ENCODED_PAD_BYTES (package:crypto/src/base64.dart:37)
• BASE64 (package:crypto/src/base64.dart:7)
• _decodeTable (package:crypto/src/base64.dart:9)
• _PAD_BYTES (package:crypto/src/base64.dart:36)
• _ENCODED_PAD_BYTES (package:crypto/src/base64.dart:37)
• _HashBase (package:crypto/src/hash_utils.dart:24)
• SHA256 (package:crypto/src/sha256.dart:10)
• Base64Codec (package:crypto/src/base64.dart:41)
• UuidUtil (package:uuid/uuid_util.dart:6)
• Constants (package:servicemax_flutter/util/constants.dart:1)
• Base64Encoder (package:crypto/src/base64.dart:109)
• RoundedRectangleBorder (package:flutter/src/painting/rounded_rectangle_border.dart:27)
• DataTable (package:flutter/src/material/data_table.dart:232)
• BoxBorder.lerp (package:flutter/src/painting/box_border.dart:112)
• _PathLineTo (package:flutter/src/material/animated_icons/animated_icons.dart:255)
• EdgeInsetsDirectional.lerp (package:flutter/src/painting/edge_insets.dart:804)
• _StadiumToCircleBorder (package:flutter/src/painting/stadium_border.dart:130)
• ImageCache (package:flutter/src/painting/image_cache.dart:27)
• IconData.== (package:flutter/src/widgets/icon_data.dart:53)
• IconData.hashCode (package:flutter/src/widgets/icon_data.dart:64)
• _AccountDetails (package:flutter/src/material/user_accounts_drawer_header.dart:63)
• RenderToggleable (package:flutter/src/material/toggleable.dart:21)
• _ModalBottomSheetRoute (package:flutter/src/material/bottom_sheet.dart:209)
• _DialogRoute (package:flutter/src/material/dialog.dart:410)
• _CompoundBorder (package:flutter/src/painting/borders.dart:497)
• StadiumBorder (package:flutter/src/painting/stadium_border.dart:25)
• _PathCommand (package:flutter/src/material/animated_icons/animated_icons.dart:212)
• TextPainter.getOffsetAfter (package:flutter/src/painting/text_painter.dart:406)
• TextPainter.getOffsetBefore (package:flutter/src/painting/text_painter.dart:416)
• TextPainter._getOffsetFromDownstream (package:flutter/src/painting/text_painter.dart:438)
• BoxScrollView (package:flutter/src/widgets/scroll_view.dart:347)
• BindingBase.initServiceExtensions (package:flutter/src/foundation/binding.dart:103)
• AnimatedIcon (package:flutter/src/material/animated_icons/animated_icons.dart:29)
• AssetImage._manifestParser (package:flutter/src/painting/image_resolution.dart:213)
• AssetImage.hashCode (package:flutter/src/painting/image_resolution.dart:270)
• BoxConstraints.lerp (package:flutter/src/rendering/box.dart:417)
• ImageStreamCompleter (package:flutter/src/painting/image_stream.dart:187)
• BlockSemantics.createRenderObject (package:flutter/src/widgets/basic.dart:4976)
• BlockSemantics.debugFillProperties (package:flutter/src/widgets/basic.dart:4984)
• RenderCustomPaint._updateSemanticsChild (package:flutter/src/rendering/custom_paint.dart:794)
• MaterialApp.MaterialApp (package:flutter/src/material/app.dart:80)
• DecorationImage (package:flutter/src/painting/decoration_image.dart:35)
• BorderRadiusDirectional (package:flutter/src/painting/border_radius.dart:527)
• _RenderCupertinoSwitch (package:flutter/src/cupertino/switch.dart:159)
• OneFrameImageStreamCompleter (package:flutter/src/painting/image_stream.dart:262)
• EditableTextState._handleSelectionChanged (package:flutter/src/widgets/editable_text.dart:494)
• EditableTextState.selectionOverlay (package:flutter/src/widgets/editable_text.dart:573)
• _PathFrames (package:flutter/src/material/animated_icons/animated_icons.dart:187)
• RenderSemanticsAnnotations._onMoveCursorForwardByCharacter= (package:flutter/src/rendering/proxy_box.dart:3182)
• RenderSemanticsAnnotations._onMoveCursorBackwardByCharacter= (package:flutter/src/rendering/proxy_box.dart:3200)
• RenderSemanticsAnnotations._performMoveCursorForwardByCharacter (package:flutter/src/rendering/proxy_box.dart:3299)
• RenderSemanticsAnnotations._performMoveCursorBackwardByCharacter (package:flutter/src/rendering/proxy_box.dart:3304)
• _ScrollbarState (package:flutter/src/material/scrollbar.dart:55)
• RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:841)
• ServicesBinding.initInstances (package:flutter/src/services/binding.dart:25)
• ServicesBinding.initLicenses (package:flutter/src/services/binding.dart:38)
• ServicesBinding.initServiceExtensions (package:flutter/src/services/binding.dart:61)
• ServicesBinding.evict (package:flutter/src/services/binding.dart:82)
• _CupertinoLargeTitleNavigationBarSliverDelegate (package:flutter/src/cupertino/nav_bar.dart:418)
• DayPicker (package:flutter/src/material/date_picker.dart:238)
• MonthPicker (package:flutter/src/material/date_picker.dart:489)
• AndroidBuildVersion (package:device_info/device_info.dart:153)
• _YearPickerState (package:flutter/src/material/date_picker.dart:731)
• _TimePickerHeader (package:flutter/src/material/time_picker.dart:663)
• CupertinoPageRoute (package:flutter/src/cupertino/route.dart:76)
• AnimatedDefaultTextStyle.debugFillProperties (package:flutter/src/widgets/implicit_animations.dart:1032)
• _SliverAppBarState (package:flutter/src/material/app_bar.dart:922)
• _TimePickerFragmentContext (package:flutter/src/material/time_picker.dart:59)
• SchedulerBinding.initInstances (package:flutter/src/scheduler/binding.dart:174)
• SchedulerBinding.lifecycleState (package:flutter/src/scheduler/binding.dart:206)
• SchedulerBinding._lifecycleState (package:flutter/src/scheduler/binding.dart:207)
• SchedulerBinding._lifecycleState= (package:flutter/src/scheduler/binding.dart:207)
• SchedulerBinding.handleAppLifecycleStateChanged (package:flutter/src/scheduler/binding.dart:217)
• SchedulerBinding._handleLifecycleMessage (package:flutter/src/scheduler/binding.dart:232)
• SchedulerBinding._parseAppLifecycleMessage (package:flutter/src/scheduler/binding.dart:237)
• SchedulerBinding._ensureEventLoopCallback (package:flutter/src/scheduler/binding.dart:286)
• SchedulerBinding._runTasks (package:flutter/src/scheduler/binding.dart:296)
• SchedulerBinding.handleEventLoopCallback (package:flutter/src/scheduler/binding.dart:313)
• SchedulerBinding.framesEnabled (package:flutter/src/scheduler/binding.dart:569)
• SchedulerBinding._framesEnabled (package:flutter/src/scheduler/binding.dart:571)
• SchedulerBinding._framesEnabled= (package:flutter/src/scheduler/binding.dart:571)
• SchedulerBinding._setFramesEnabledState (package:flutter/src/scheduler/binding.dart:572)
• SchedulerBinding.scheduleFrame (package:flutter/src/scheduler/binding.dart:618)
• SchedulerBinding.scheduleForcedFrame (package:flutter/src/scheduler/binding.dart:649)
• SchedulerBinding._warmUpFrame (package:flutter/src/scheduler/binding.dart:661)
• SchedulerBinding._warmUpFrame= (package:flutter/src/scheduler/binding.dart:661)
• SchedulerBinding.scheduleWarmUpFrame (package:flutter/src/scheduler/binding.dart:676)
• SchedulerBinding._ignoreNextEngineDrawFrame (package:flutter/src/scheduler/binding.dart:757)
• SchedulerBinding._ignoreNextEngineDrawFrame= (package:flutter/src/scheduler/binding.dart:757)
• SchedulerBinding._handleBeginFrame (package:flutter/src/scheduler/binding.dart:759)
• SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:768)
• SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:854)
• _Base64EncoderSink (package:crypto/src/base64.dart:228)
• _TaskEntry (package:flutter/src/scheduler/binding.dart:54)
• BoxDecoration.lerp (package:flutter/src/painting/box_decoration.dart:222)
• _DatePickerDialogState (package:flutter/src/material/date_picker.dart:796)
• _DialState (package:flutter/src/material/time_picker.dart:1001)
• EdgeInsets.lerp (package:flutter/src/painting/edge_insets.dart:570)
• PageController (package:flutter/src/widgets/page_view.dart:39)
• ThemeData.lerp (package:flutter/src/material/theme_data.dart:534)
• FlutterErrorDetails.toString (package:flutter/src/foundation/assertions.dart:145)
• _DayPeriodControl (package:flutter/src/material/time_picker.dart:186)
• IosUtsname (package:device_info/device_info.dart:255)
• MaterialLocalizations.tabLabel (package:flutter/src/material/material_localizations.dart:94)
• MaterialLocalizations.timePickerHourModeAnnouncement (package:flutter/src/material/material_localizations.dart:134)
• MaterialLocalizations.timePickerMinuteModeAnnouncement (package:flutter/src/material/material_localizations.dart:138)
• MaterialLocalizations.modalBarrierDismissLabel (package:flutter/src/material/material_localizations.dart:145)
• MaterialLocalizations.formatFullDate (package:flutter/src/material/material_localizations.dart:216)
• MaterialLocalizations.signedInLabel (package:flutter/src/material/material_localizations.dart:252)
• MaterialLocalizations.hideAccountsLabel (package:flutter/src/material/material_localizations.dart:256)
• MaterialLocalizations.showAccountsLabel (package:flutter/src/material/material_localizations.dart:260)
• _DatePickerHeader (package:flutter/src/material/date_picker.dart:60)
• _StadiumToRoundedRectangleBorder (package:flutter/src/painting/stadium_border.dart:279)
• _DropdownRoute (package:flutter/src/material/dropdown.dart:279)
• _MonthPickerState (package:flutter/src/material/date_picker.dart:528)
• TableBorder (package:flutter/src/rendering/table_border.dart:14)
• RenderBlockSemantics.RenderBlockSemantics (package:flutter/src/rendering/proxy_box.dart:3318)
• RenderBlockSemantics.blocking (package:flutter/src/rendering/proxy_box.dart:3322)
• RenderBlockSemantics.describeSemanticsConfiguration (package:flutter/src/rendering/proxy_box.dart:3333)
• RenderBlockSemantics.debugFillProperties (package:flutter/src/rendering/proxy_box.dart:3339)
• BorderRadius.lerp (package:flutter/src/painting/border_radius.dart:495)
• _LoginWithEmailState._handleError (package:servicemax_flutter/widgets/login_with_email.dart:34)
• _LoginWithEmailState._handleSubmitted (package:servicemax_flutter/widgets/login_with_email.dart:45)
• _HourControl (package:flutter/src/material/time_picker.dart:274)
• MatrixUtils.createCylindricalProjectionTransform (package:flutter/src/painting/matrix_utils.dart:205)
• PaintingBinding.PaintingBinding._ (package:flutter/src/painting/binding.dart:18)
• PaintingBinding.initInstances (package:flutter/src/painting/binding.dart:21)
• PaintingBinding.imageCache (package:flutter/src/painting/binding.dart:38)
• PaintingBinding._imageCache (package:flutter/src/painting/binding.dart:39)
• PaintingBinding._imageCache= (package:flutter/src/painting/binding.dart:39)
• PaintingBinding.createImageCache (package:flutter/src/painting/binding.dart:45)
• PaintingBinding.evict (package:flutter/src/painting/binding.dart:48)
• _TappableLabel (package:flutter/src/material/time_picker.dart:794)
• ImageInfo (package:flutter/src/painting/image_stream.dart:16)
• _WidgetsAppState._resolveLocale (package:flutter/src/widgets/app.dart:338)
• _WidgetsAppState.initState (package:flutter/src/widgets/app.dart:356)
• _WidgetsAppState._updateNavigator (package:flutter/src/widgets/app.dart:370)
• _AnimatedIconData (package:flutter/src/material/animated_icons/animated_icons_data.dart:46)
• _PopupMenuRoute (package:flutter/src/material/popup_menu.dart:543)
• _TimePickerDialogState (package:flutter/src/material/time_picker.dart:1426)
• _DialPainter (package:flutter/src/material/time_picker.dart:811)
• CupertinoScrollbar (package:flutter/src/cupertino/scrollbar.dart:34)
• TextTheme.lerp (package:flutter/src/material/typography.dart:301)
• FractionalOffset (package:flutter/src/painting/fractional_offset.dart:53)
• _CupertinoPersistentNavigationBar (package:flutter/src/cupertino/nav_bar.dart:303)
• InkResponse.InkResponse (package:flutter/src/material/ink_well.dart:85)
• InkResponse.excludeFromSemantics (package:flutter/src/material/ink_well.dart:205)
• RelativeRect (package:flutter/src/rendering/stack.dart:21)
• ModalBarrier.semanticsLabel (package:flutter/src/widgets/modal_barrier.dart:63)
• _MyAppState._handleError (lib/main.dart:74)
• ObstructingPreferredSizeWidget (package:flutter/src/cupertino/page_scaffold.dart:106)
• DefaultMaterialLocalizations._weekdays (package:flutter/src/material/material_localizations.dart:320)
• DefaultMaterialLocalizations.formatFullDate (package:flutter/src/material/material_localizations.dart:411)
• DefaultMaterialLocalizations.rowsPerPageTitle (package:flutter/src/material/material_localizations.dart:526)
• DefaultMaterialLocalizations.tabLabel (package:flutter/src/material/material_localizations.dart:529)
• DefaultMaterialLocalizations.timePickerHourModeAnnouncement (package:flutter/src/material/material_localizations.dart:581)
• DefaultMaterialLocalizations.timePickerMinuteModeAnnouncement (package:flutter/src/material/material_localizations.dart:584)
• DefaultMaterialLocalizations.modalBarrierDismissLabel (package:flutter/src/material/material_localizations.dart:587)
• DefaultMaterialLocalizations.signedInLabel (package:flutter/src/material/material_localizations.dart:601)
• DefaultMaterialLocalizations.hideAccountsLabel (package:flutter/src/material/material_localizations.dart:604)
• DefaultMaterialLocalizations.showAccountsLabel (package:flutter/src/material/material_localizations.dart:607)
• DefaultMaterialLocalizations._weekdays (package:flutter/src/material/material_localizations.dart:320)"><pre lang="Initializing" class="notranslate"><code class="notranslate">Error -32601 received from application: Method not found
I/flutter ( 533): ══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════
I/flutter ( 533): The following _CompileTimeError was thrown during a service extension callback for
I/flutter ( 533): "ext.flutter.evict":
I/flutter ( 533): 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver
I/flutter ( 533): 'this'
I/flutter ( 533): imageCache.clear();
I/flutter ( 533): ^
I/flutter ( 533):
I/flutter ( 533): When the exception was thrown, this was the stack:
I/flutter ( 533): #0 BindingBase.registerStringServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:338)
I/flutter ( 533): <asynchronous suspension>
I/flutter ( 533): #1 BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:368)
I/flutter ( 533): <asynchronous suspension>
I/flutter ( 533): #2 _runExtension (dart:developer-patch/dart:developer/developer.dart:85)
I/flutter ( 533): ════════════════════════════════════════════════════════════════════════════════════════════════════
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
Error -32000 received from application: Server error
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/services/binding.dart': error: line 62: illegal implicit access to receiver 'this'
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: type 'ImageConfiguration' is not a subtype of type 'ImageConfiguration' of 'configuration' where
Error -32000 received from application: Server error
I/flutter ( 533): Another exception was thrown: type 'ImageConfiguration' is not a subtype of type 'ImageConfiguration' of 'configuration' where
I/flutter ( 533): Another exception was thrown: NoSuchMethodError: The getter 'imageCache' was called on null.
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4314 pos 14: 'oldChild == null || oldChild._debugLifecycleState == _ElementLifecycle.active': is not true.
I/flutter ( 533): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4314 pos 14: 'oldChild == null || oldChild._debugLifecycleState == _ElementLifecycle.active': is not true.
I/flutter ( 533): Another exception was thrown: type 'ImageStream' is not a subtype of type 'ImageStream' of 'value' where
Reloaded 472 of 488 libraries in 9,217ms.
Some program elements were changed during reload but did not run when the view was reassembled;
you may need to restart the app for the changes to have an effect.
• SHA1 (package:crypto/src/sha1.dart:10)
• NetworkImage (package:flutter/src/painting/image_provider.dart:399)
• SelectionChangedCause (package:flutter/src/rendering/editable.dart:29)
• WidgetsBinding.initInstances (package:flutter/src/widgets/binding.dart:240)
• WidgetsBinding.handleAppLifecycleStateChanged (package:flutter/src/widgets/binding.dart:443)
• WidgetsBinding._handleSystemMessage (package:flutter/src/widgets/binding.dart:462)
• CupertinoPageScaffold (package:flutter/src/cupertino/page_scaffold.dart:20)
• _AccountPictures (package:flutter/src/material/user_accounts_drawer_header.dart:16)
• RenderTable (package:flutter/src/rendering/table.dart:347)
• Uuid (package:uuid/uuid.dart:16)
• ImageRepeat.index (package:flutter/src/painting/decoration_image.dart:17)
• ImageRepeat._name (package:flutter/src/painting/decoration_image.dart:17)
• ImageRepeat.toString (dart:core-patch/dart:core/core_patch.dart:98)
• ImageRepeat.hashCode (dart:core-patch/dart:core/core_patch.dart:99)
• _EstimateListState (package:servicemax_flutter/widgets/estimate_list.dart:13)
• AES (package:uuid/aes.dart:13)
• _MaterialAppState.didUpdateWidget (package:flutter/src/material/app.dart:475)
• CupertinoNavigationBar (package:flutter/src/cupertino/nav_bar.dart:72)
• ExactAssetImage.ExactAssetImage (package:flutter/src/painting/image_provider.dart:670)
• ExactAssetImage.assetName (package:flutter/src/painting/image_provider.dart:678)
• ExactAssetImage.keyName (package:flutter/src/painting/image_provider.dart:682)
• ExactAssetImage.scale (package:flutter/src/painting/image_provider.dart:685)
• ExactAssetImage.bundle (package:flutter/src/painting/image_provider.dart:695)
• ExactAssetImage.package (package:flutter/src/painting/image_provider.dart:699)
• ExactAssetImage.obtainKey (package:flutter/src/painting/image_provider.dart:702)
• ExactAssetImage.== (package:flutter/src/painting/image_provider.dart:711)
• ExactAssetImage.hashCode (package:flutter/src/painting/image_provider.dart:721)
• ExactAssetImage.toString (package:flutter/src/painting/image_provider.dart:724)
• BorderRadiusGeometry.lerp (package:flutter/src/painting/border_radius.dart:141)
• _InkResponseState.build (package:flutter/src/material/ink_well.dart:378)
• _CupertinoEdgeShadowDecoration (package:flutter/src/cupertino/route.dart:589)
• FlutterLogoDecoration (package:flutter/src/painting/flutter_logo.dart:36)
• _DropdownButtonState (package:flutter/src/material/dropdown.dart:516)
• _UserAccountsDrawerHeaderState (package:flutter/src/material/user_accounts_drawer_header.dart:296)
• _AnimatedIconPainter (package:flutter/src/material/animated_icons/animated_icons.dart:130)
• MD5 (package:crypto/src/md5.dart:13)
• RenderOpacity.opacity (package:flutter/src/rendering/proxy_box.dart:732)
• RenderOpacity._opacity (package:flutter/src/rendering/proxy_box.dart:733)
• RenderOpacity._opacity= (package:flutter/src/rendering/proxy_box.dart:733)
• RenderOpacity.opacity= (package:flutter/src/rendering/proxy_box.dart:734)
• RenderOpacity._alpha (package:flutter/src/rendering/proxy_box.dart:750)
• RenderOpacity._alpha= (package:flutter/src/rendering/proxy_box.dart:750)
• RenderOpacity.paint (package:flutter/src/rendering/proxy_box.dart:753)
• RenderOpacity.visitChildrenForSemantics (package:flutter/src/rendering/proxy_box.dart:767)
• RenderOpacity.debugFillProperties (package:flutter/src/rendering/proxy_box.dart:773)
• Hash (package:crypto/crypto.dart:37)
• CryptoUtils (package:crypto/crypto.dart:66)
• IconButton.build (package:flutter/src/material/icon_button.dart:186)
• _CupertinoScrollbarState (package:flutter/src/cupertino/scrollbar.dart:54)
• RenderEditable.selection= (package:flutter/src/rendering/editable.dart:313)
• RenderEditable.describeSemanticsConfiguration (package:flutter/src/rendering/editable.dart:342)
• RenderEditable._handleMoveCursorForwardByCharacter (package:flutter/src/rendering/editable.dart:359)
• RenderEditable._handleMoveCursorBackwardByCharacter (package:flutter/src/rendering/editable.dart:369)
• RenderEditable._handleTap (package:flutter/src/rendering/editable.dart:566)
• RenderEditable._handleLongPress (package:flutter/src/rendering/editable.dart:583)
• _BottomNavigationBarState (package:flutter/src/material/bottom_navigation_bar.dart:274)
• HMAC (package:crypto/src/hmac.dart:14)
• _AccountDetailsLayout (package:flutter/src/material/user_accounts_drawer_header.dart:164)
• AnimatedIconData (package:flutter/src/material/animated_icons/animated_icons_data.dart:31)
• ShapeDecoration (package:flutter/src/painting/shape_decoration.dart:59)
• AssetBundleImageProvider.load (package:flutter/src/painting/image_provider.dart:365)
• AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:381)
• _PathMoveTo (package:flutter/src/material/animated_icons/animated_icons.dart:222)
• Border.lerp (package:flutter/src/painting/box_border.dart:445)
• SemanticsConfiguration.isMergingDescendantsIntoOneNode= (package:flutter/src/semantics/semantics.dart:1381)
• SemanticsConfiguration.onTap (package:flutter/src/semantics/semantics.dart:1439)
• SemanticsConfiguration._onTap (package:flutter/src/semantics/semantics.dart:1440)
• SemanticsConfiguration.onLongPress (package:flutter/src/semantics/semantics.dart:1454)
• SemanticsConfiguration._onLongPress (package:flutter/src/semantics/semantics.dart:1455)
• SemanticsConfiguration._onLongPress= (package:flutter/src/semantics/semantics.dart:1455)
• SemanticsConfiguration.onLongPress= (package:flutter/src/semantics/semantics.dart:1456)
• SemanticsConfiguration.onScrollLeft (package:flutter/src/semantics/semantics.dart:1472)
• SemanticsConfiguration._onScrollLeft (package:flutter/src/semantics/semantics.dart:1473)
• SemanticsConfiguration._onScrollLeft= (package:flutter/src/semantics/semantics.dart:1473)
• SemanticsConfiguration.onScrollLeft= (package:flutter/src/semantics/semantics.dart:1474)
• SemanticsConfiguration.onScrollRight (package:flutter/src/semantics/semantics.dart:1490)
• SemanticsConfiguration._onScrollRight (package:flutter/src/semantics/semantics.dart:1491)
• SemanticsConfiguration._onScrollRight= (package:flutter/src/semantics/semantics.dart:1491)
• SemanticsConfiguration.onScrollRight= (package:flutter/src/semantics/semantics.dart:1492)
• SemanticsConfiguration.onScrollUp (package:flutter/src/semantics/semantics.dart:1508)
• SemanticsConfiguration._onScrollUp (package:flutter/src/semantics/semantics.dart:1509)
• SemanticsConfiguration._onScrollUp= (package:flutter/src/semantics/semantics.dart:1509)
• SemanticsConfiguration.onScrollUp= (package:flutter/src/semantics/semantics.dart:1510)
• SemanticsConfiguration.onScrollDown (package:flutter/src/semantics/semantics.dart:1526)
• SemanticsConfiguration._onScrollDown (package:flutter/src/semantics/semantics.dart:1527)
• SemanticsConfiguration._onScrollDown= (package:flutter/src/semantics/semantics.dart:1527)
• SemanticsConfiguration.onScrollDown= (package:flutter/src/semantics/semantics.dart:1528)
• SemanticsConfiguration.onIncrease (package:flutter/src/semantics/semantics.dart:1544)
• SemanticsConfiguration._onIncrease (package:flutter/src/semantics/semantics.dart:1545)
• SemanticsConfiguration._onIncrease= (package:flutter/src/semantics/semantics.dart:1545)
• SemanticsConfiguration.onIncrease= (package:flutter/src/semantics/semantics.dart:1546)
• SemanticsConfiguration.onDecrease (package:flutter/src/semantics/semantics.dart:1562)
• SemanticsConfiguration._onDecrease (package:flutter/src/semantics/semantics.dart:1563)
• SemanticsConfiguration._onDecrease= (package:flutter/src/semantics/semantics.dart:1563)
• SemanticsConfiguration.onDecrease= (package:flutter/src/semantics/semantics.dart:1564)
• SemanticsConfiguration.onShowOnScreen (package:flutter/src/semantics/semantics.dart:1578)
• SemanticsConfiguration._onShowOnScreen (package:flutter/src/semantics/semantics.dart:1579)
• SemanticsConfiguration._onShowOnScreen= (package:flutter/src/semantics/semantics.dart:1579)
• SemanticsConfiguration.onShowOnScreen= (package:flutter/src/semantics/semantics.dart:1580)
• SemanticsConfiguration.onMoveCursorForwardByCharacter (package:flutter/src/semantics/semantics.dart:1592)
• SemanticsConfiguration._onMoveCursorForwardByCharacter (package:flutter/src/semantics/semantics.dart:1593)
• SemanticsConfiguration._onMoveCursorForwardByCharacter= (package:flutter/src/semantics/semantics.dart:1593)
• SemanticsConfiguration.onMoveCursorForwardByCharacter= (package:flutter/src/semantics/semantics.dart:1594)
• SemanticsConfiguration.onMoveCursorBackwardByCharacter (package:flutter/src/semantics/semantics.dart:1611)
• SemanticsConfiguration._onMoveCursorBackwardByCharacter (package:flutter/src/semantics/semantics.dart:1612)
• SemanticsConfiguration._onMoveCursorBackwardByCharacter= (package:flutter/src/semantics/semantics.dart:1612)
• SemanticsConfiguration.onMoveCursorBackwardByCharacter= (package:flutter/src/semantics/semantics.dart:1613)
• SemanticsConfiguration.getActionHandler (package:flutter/src/semantics/semantics.dart:1629)
• SemanticsConfiguration.isSelected (package:flutter/src/semantics/semantics.dart:1739)
• SemanticsConfiguration.isChecked (package:flutter/src/semantics/semantics.dart:1749)
• SemanticsConfiguration.isFocused (package:flutter/src/semantics/semantics.dart:1756)
• SemanticsConfiguration.isButton (package:flutter/src/semantics/semantics.dart:1762)
• SemanticsConfiguration.isTextField (package:flutter/src/semantics/semantics.dart:1768)
• SemanticsConfiguration._hasFlag (package:flutter/src/semantics/semantics.dart:1817)
• _PathCubicTo (package:flutter/src/material/animated_icons/animated_icons.dart:234)
• _LayoutBuilderElement (package:flutter/src/widgets/layout_builder.dart:54)
• Base64Decoder (package:crypto/src/base64.dart:271)
• Alignment.lerp (package:flutter/src/painting/alignment.dart:348)
• TextSelectionOverlay (package:flutter/src/widgets/text_selection.dart:184)
• _TableElement (package:flutter/src/widgets/table.dart:237)
• _CryptoUtils (package:crypto/src/crypto_utils.dart:7)
• Decoration.lerp (package:flutter/src/painting/decoration.dart:138)
• _Base64DecoderSink (package:crypto/src/base64.dart:363)
• _RenderCupertinoSlider (package:flutter/src/cupertino/slider.dart:189)
• _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:53)
• ModalRoute.barrierLabel (package:flutter/src/widgets/routes.dart:798)
• InkWell.InkWell (package:flutter/src/material/ink_well.dart:430)
• IosDeviceInfo (package:device_info/device_info.dart:202)
• ImageConfiguration.copyWith (package:flutter/src/painting/image_provider.dart:46)
• ImageConfiguration.locale (package:flutter/src/painting/image_provider.dart:72)
• ImageConfiguration.textDirection (package:flutter/src/painting/image_provider.dart:75)
• ImageConfiguration.size (package:flutter/src/painting/image_provider.dart:78)
• ImageConfiguration.platform (package:flutter/src/painting/image_provider.dart:84)
• ImageConfiguration.empty (package:flutter/src/painting/image_provider.dart:89)
• ImageConfiguration.== (package:flutter/src/painting/image_provider.dart:92)
• ImageConfiguration.hashCode (package:flutter/src/painting/image_provider.dart:105)
• ImageConfiguration.toString (package:flutter/src/painting/image_provider.dart:108)
• ImageConfiguration.empty (package:flutter/src/painting/image_provider.dart:89)
• AssetBundleImageKey.bundle (package:flutter/src/painting/image_provider.dart:327)
• AssetBundleImageKey.name (package:flutter/src/painting/image_provider.dart:331)
• AssetBundleImageKey.scale (package:flutter/src/painting/image_provider.dart:334)
• AssetBundleImageKey.== (package:flutter/src/painting/image_provider.dart:337)
• AssetBundleImageKey.hashCode (package:flutter/src/painting/image_provider.dart:347)
• AssetBundleImageKey.toString (package:flutter/src/painting/image_provider.dart:350)
• EdgeInsetsGeometry.lerp (package:flutter/src/painting/edge_insets.dart:204)
• _RoundedRectangleToCircleBorder (package:flutter/src/painting/rounded_rectangle_border.dart:143)
• _TextFieldState._onSelectionChanged (package:flutter/src/material/text_field.dart:334)
• _TextFieldState.build (package:flutter/src/material/text_field.dart:340)
• imageCache (package:flutter/src/painting/binding.dart:61)
• main (lib/main.dart:8)
• Gradient (package:flutter/src/painting/gradient.dart:46)
• _selectionAwareTextManipulation (package:flutter/src/services/text_formatter.dart:247)
• paintImage (package:flutter/src/painting/decoration_image.dart:348)
• _generateImageTileRects (package:flutter/src/painting/decoration_image.dart:434)
• decodeImageFromList (package:flutter/src/painting/image_decoder.dart:14)
• PipelineOwner.ensureSemantics (package:flutter/src/rendering/object.dart:824)
• PipelineOwner._didDisposeSemanticsHandle (package:flutter/src/rendering/object.dart:835)
• RenderingFlutterBinding (package:flutter/src/rendering/binding.dart:338)
• SemanticsOwner (package:flutter/src/semantics/semantics.dart:1162)
• BorderDirectional (package:flutter/src/painting/box_border.dart:566)
• MemoryImage (package:flutter/src/painting/image_provider.dart:540)
• SemanticsNode (package:flutter/src/semantics/semantics.dart:491)
• ImageProvider.obtainKey (package:flutter/src/painting/image_provider.dart:296)
• ImageProvider.load (package:flutter/src/painting/image_provider.dart:301)
• ImageProvider.toString (package:flutter/src/painting/image_provider.dart:304)
• Ticker.isTicking (package:flutter/src/scheduler/ticker.dart:108)
• RendererBinding.handleMetricsChanged (package:flutter/src/rendering/binding.dart:144)
• RendererBinding._handleSemanticsAction (package:flutter/src/rendering/binding.dart:191)
• DecorationImagePainter (package:flutter/src/painting/decoration_image.dart:189)
• IntrinsicColumnWidth (package:flutter/src/rendering/table.dart:90)
• AlignmentGeometry.lerp (package:flutter/src/painting/alignment.dart:99)
• BoxShadow (package:flutter/src/painting/box_shadow.dart:18)
• PageRouteBuilder (package:flutter/src/widgets/pages.dart:68)
• IconThemeData.lerp (package:flutter/src/widgets/icon_theme_data.dart:80)
• _debugReportException (package:flutter/src/widgets/layout_builder.dart:226)
• TextStyle.copyWith (package:flutter/src/painting/text_style.dart:323)
• TextStyle.apply (package:flutter/src/painting/text_style.dart:383)
• TextStyle.merge (package:flutter/src/painting/text_style.dart:453)
• TextStyle.lerp (package:flutter/src/painting/text_style.dart:498)
• ImageStream.completer (package:flutter/src/painting/image_stream.dart:96)
• ImageStream._completer (package:flutter/src/painting/image_stream.dart:97)
• ImageStream._completer= (package:flutter/src/painting/image_stream.dart:97)
• ImageStream._listeners (package:flutter/src/painting/image_stream.dart:99)
• ImageStream._listeners= (package:flutter/src/painting/image_stream.dart:99)
• ImageStream.setCompleter (package:flutter/src/painting/image_stream.dart:109)
• ImageStream.addListener (package:flutter/src/painting/image_stream.dart:130)
• ImageStream.removeListener (package:flutter/src/painting/image_stream.dart:138)
• ImageStream.key (package:flutter/src/painting/image_stream.dart:156)
• ImageStream.toStringShort (package:flutter/src/painting/image_stream.dart:159)
• ImageStream.debugFillProperties (package:flutter/src/painting/image_stream.dart:162)
• LinearGradient (package:flutter/src/painting/gradient.dart:212)
• ScrollbarPainter (package:flutter/src/widgets/scrollbar.dart:39)
• Navigator.push (package:flutter/src/widgets/navigator.dart:556)
• AlignmentDirectional.lerp (package:flutter/src/painting/alignment.dart:539)
• _kScrollbarColor (package:flutter/src/cupertino/scrollbar.dart:11)
• _kScrollbarRadius (package:flutter/src/cupertino/scrollbar.dart:16)
• _kScrollbarTimeToFade (package:flutter/src/cupertino/scrollbar.dart:17)
• _kScrollbarFadeDuration (package:flutter/src/cupertino/scrollbar.dart:18)
• _kScrollbarColor (package:flutter/src/cupertino/scrollbar.dart:11)
• _kScrollbarRadius (package:flutter/src/cupertino/scrollbar.dart:16)
• _kScrollbarTimeToFade (package:flutter/src/cupertino/scrollbar.dart:17)
• _kScrollbarFadeDuration (package:flutter/src/cupertino/scrollbar.dart:18)
• _CupertinoTabScaffoldState (package:flutter/src/cupertino/tab_scaffold.dart:130)
• showModalBottomSheet (package:flutter/src/material/bottom_sheet.dart:281)
• NavigatorState.push (package:flutter/src/widgets/navigator.dart:917)
• ShapeBorder.lerp (package:flutter/src/painting/borders.dart:428)
• showDialog (package:flutter/src/material/dialog.dart:481)
• ListTile (package:flutter/src/material/list_tile.dart:199)
• SnackBar (package:flutter/src/material/snack_bar.dart:141)
• HSVColor (package:flutter/src/painting/colors.dart:15)
• _TabBarState (package:flutter/src/material/tabs.dart:588)
• _kScrollbarFadeDuration (package:flutter/src/material/scrollbar.dart:14)
• _kScrollbarTimeToFade (package:flutter/src/material/scrollbar.dart:15)
• _kScrollbarFadeDuration (package:flutter/src/material/scrollbar.dart:14)
• _kScrollbarTimeToFade (package:flutter/src/material/scrollbar.dart:15)
• _interpolate (package:flutter/src/material/animated_icons/animated_icons.dart:287)
• _$arrow_menu (package:flutter/src/material/animated_icons/data/arrow_menu.g.dart:8)
• _$menu_arrow (package:flutter/src/material/animated_icons/data/menu_arrow.g.dart:8)
• _$arrow_menu (package:flutter/src/material/animated_icons/data/arrow_menu.g.dart:8)
• _$menu_arrow (package:flutter/src/material/animated_icons/data/menu_arrow.g.dart:8)
• _PathClose (package:flutter/src/material/animated_icons/animated_icons.dart:267)
• AnimatedIcons (package:flutter/src/material/animated_icons/animated_icons_data.dart:16)
• _ExpansionTileState (package:flutter/src/material/expansion_tile.dart:82)
• MultiFrameImageStreamCompleter (package:flutter/src/painting/image_stream.dart:324)
• showMenu (package:flutter/src/material/popup_menu.dart:662)
• AnimatedModalBarrier.AnimatedModalBarrier (package:flutter/src/widgets/modal_barrier.dart:115)
• AnimatedModalBarrier.semanticsLabel (package:flutter/src/widgets/modal_barrier.dart:146)
• AnimatedModalBarrier.build (package:flutter/src/widgets/modal_barrier.dart:149)
• _RenderSlider (package:flutter/src/material/slider.dart:310)
• FileImage (package:flutter/src/painting/image_provider.dart:472)
• _announceToAccessibility (package:flutter/src/material/time_picker.dart:1652)
• _StringFragment (package:flutter/src/material/time_picker.dart:343)
• _MinuteControl (package:flutter/src/material/time_picker.dart:363)
• DocumentReference (package:cloud_firestore/src/document_reference.dart:13)
• RadialGradient (package:flutter/src/painting/gradient.dart:464)
• PaginatedDataTableState (package:flutter/src/material/paginated_data_table.dart:179)
• getSignupDeviceInfo (package:servicemax_flutter/util/helper.dart:11)
• _readAndroidBuildData (package:servicemax_flutter/util/helper.dart:38)
• _readIosDeviceInfo (package:servicemax_flutter/util/helper.dart:45)
• DeviceInfoPlugin (package:device_info/device_info.dart:10)
• AndroidDeviceInfo (package:device_info/device_info.dart:40)
• _rotl32 (package:crypto/src/hash_utils.dart:16)
• BASE64 (package:crypto/src/base64.dart:7)
• _decodeTable (package:crypto/src/base64.dart:9)
• _PAD_BYTES (package:crypto/src/base64.dart:36)
• _ENCODED_PAD_BYTES (package:crypto/src/base64.dart:37)
• BASE64 (package:crypto/src/base64.dart:7)
• _decodeTable (package:crypto/src/base64.dart:9)
• _PAD_BYTES (package:crypto/src/base64.dart:36)
• _ENCODED_PAD_BYTES (package:crypto/src/base64.dart:37)
• _HashBase (package:crypto/src/hash_utils.dart:24)
• SHA256 (package:crypto/src/sha256.dart:10)
• Base64Codec (package:crypto/src/base64.dart:41)
• UuidUtil (package:uuid/uuid_util.dart:6)
• Constants (package:servicemax_flutter/util/constants.dart:1)
• Base64Encoder (package:crypto/src/base64.dart:109)
• RoundedRectangleBorder (package:flutter/src/painting/rounded_rectangle_border.dart:27)
• DataTable (package:flutter/src/material/data_table.dart:232)
• BoxBorder.lerp (package:flutter/src/painting/box_border.dart:112)
• _PathLineTo (package:flutter/src/material/animated_icons/animated_icons.dart:255)
• EdgeInsetsDirectional.lerp (package:flutter/src/painting/edge_insets.dart:804)
• _StadiumToCircleBorder (package:flutter/src/painting/stadium_border.dart:130)
• ImageCache (package:flutter/src/painting/image_cache.dart:27)
• IconData.== (package:flutter/src/widgets/icon_data.dart:53)
• IconData.hashCode (package:flutter/src/widgets/icon_data.dart:64)
• _AccountDetails (package:flutter/src/material/user_accounts_drawer_header.dart:63)
• RenderToggleable (package:flutter/src/material/toggleable.dart:21)
• _ModalBottomSheetRoute (package:flutter/src/material/bottom_sheet.dart:209)
• _DialogRoute (package:flutter/src/material/dialog.dart:410)
• _CompoundBorder (package:flutter/src/painting/borders.dart:497)
• StadiumBorder (package:flutter/src/painting/stadium_border.dart:25)
• _PathCommand (package:flutter/src/material/animated_icons/animated_icons.dart:212)
• TextPainter.getOffsetAfter (package:flutter/src/painting/text_painter.dart:406)
• TextPainter.getOffsetBefore (package:flutter/src/painting/text_painter.dart:416)
• TextPainter._getOffsetFromDownstream (package:flutter/src/painting/text_painter.dart:438)
• BoxScrollView (package:flutter/src/widgets/scroll_view.dart:347)
• BindingBase.initServiceExtensions (package:flutter/src/foundation/binding.dart:103)
• AnimatedIcon (package:flutter/src/material/animated_icons/animated_icons.dart:29)
• AssetImage._manifestParser (package:flutter/src/painting/image_resolution.dart:213)
• AssetImage.hashCode (package:flutter/src/painting/image_resolution.dart:270)
• BoxConstraints.lerp (package:flutter/src/rendering/box.dart:417)
• ImageStreamCompleter (package:flutter/src/painting/image_stream.dart:187)
• BlockSemantics.createRenderObject (package:flutter/src/widgets/basic.dart:4976)
• BlockSemantics.debugFillProperties (package:flutter/src/widgets/basic.dart:4984)
• RenderCustomPaint._updateSemanticsChild (package:flutter/src/rendering/custom_paint.dart:794)
• MaterialApp.MaterialApp (package:flutter/src/material/app.dart:80)
• DecorationImage (package:flutter/src/painting/decoration_image.dart:35)
• BorderRadiusDirectional (package:flutter/src/painting/border_radius.dart:527)
• _RenderCupertinoSwitch (package:flutter/src/cupertino/switch.dart:159)
• OneFrameImageStreamCompleter (package:flutter/src/painting/image_stream.dart:262)
• EditableTextState._handleSelectionChanged (package:flutter/src/widgets/editable_text.dart:494)
• EditableTextState.selectionOverlay (package:flutter/src/widgets/editable_text.dart:573)
• _PathFrames (package:flutter/src/material/animated_icons/animated_icons.dart:187)
• RenderSemanticsAnnotations._onMoveCursorForwardByCharacter= (package:flutter/src/rendering/proxy_box.dart:3182)
• RenderSemanticsAnnotations._onMoveCursorBackwardByCharacter= (package:flutter/src/rendering/proxy_box.dart:3200)
• RenderSemanticsAnnotations._performMoveCursorForwardByCharacter (package:flutter/src/rendering/proxy_box.dart:3299)
• RenderSemanticsAnnotations._performMoveCursorBackwardByCharacter (package:flutter/src/rendering/proxy_box.dart:3304)
• _ScrollbarState (package:flutter/src/material/scrollbar.dart:55)
• RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:841)
• ServicesBinding.initInstances (package:flutter/src/services/binding.dart:25)
• ServicesBinding.initLicenses (package:flutter/src/services/binding.dart:38)
• ServicesBinding.initServiceExtensions (package:flutter/src/services/binding.dart:61)
• ServicesBinding.evict (package:flutter/src/services/binding.dart:82)
• _CupertinoLargeTitleNavigationBarSliverDelegate (package:flutter/src/cupertino/nav_bar.dart:418)
• DayPicker (package:flutter/src/material/date_picker.dart:238)
• MonthPicker (package:flutter/src/material/date_picker.dart:489)
• AndroidBuildVersion (package:device_info/device_info.dart:153)
• _YearPickerState (package:flutter/src/material/date_picker.dart:731)
• _TimePickerHeader (package:flutter/src/material/time_picker.dart:663)
• CupertinoPageRoute (package:flutter/src/cupertino/route.dart:76)
• AnimatedDefaultTextStyle.debugFillProperties (package:flutter/src/widgets/implicit_animations.dart:1032)
• _SliverAppBarState (package:flutter/src/material/app_bar.dart:922)
• _TimePickerFragmentContext (package:flutter/src/material/time_picker.dart:59)
• SchedulerBinding.initInstances (package:flutter/src/scheduler/binding.dart:174)
• SchedulerBinding.lifecycleState (package:flutter/src/scheduler/binding.dart:206)
• SchedulerBinding._lifecycleState (package:flutter/src/scheduler/binding.dart:207)
• SchedulerBinding._lifecycleState= (package:flutter/src/scheduler/binding.dart:207)
• SchedulerBinding.handleAppLifecycleStateChanged (package:flutter/src/scheduler/binding.dart:217)
• SchedulerBinding._handleLifecycleMessage (package:flutter/src/scheduler/binding.dart:232)
• SchedulerBinding._parseAppLifecycleMessage (package:flutter/src/scheduler/binding.dart:237)
• SchedulerBinding._ensureEventLoopCallback (package:flutter/src/scheduler/binding.dart:286)
• SchedulerBinding._runTasks (package:flutter/src/scheduler/binding.dart:296)
• SchedulerBinding.handleEventLoopCallback (package:flutter/src/scheduler/binding.dart:313)
• SchedulerBinding.framesEnabled (package:flutter/src/scheduler/binding.dart:569)
• SchedulerBinding._framesEnabled (package:flutter/src/scheduler/binding.dart:571)
• SchedulerBinding._framesEnabled= (package:flutter/src/scheduler/binding.dart:571)
• SchedulerBinding._setFramesEnabledState (package:flutter/src/scheduler/binding.dart:572)
• SchedulerBinding.scheduleFrame (package:flutter/src/scheduler/binding.dart:618)
• SchedulerBinding.scheduleForcedFrame (package:flutter/src/scheduler/binding.dart:649)
• SchedulerBinding._warmUpFrame (package:flutter/src/scheduler/binding.dart:661)
• SchedulerBinding._warmUpFrame= (package:flutter/src/scheduler/binding.dart:661)
• SchedulerBinding.scheduleWarmUpFrame (package:flutter/src/scheduler/binding.dart:676)
• SchedulerBinding._ignoreNextEngineDrawFrame (package:flutter/src/scheduler/binding.dart:757)
• SchedulerBinding._ignoreNextEngineDrawFrame= (package:flutter/src/scheduler/binding.dart:757)
• SchedulerBinding._handleBeginFrame (package:flutter/src/scheduler/binding.dart:759)
• SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:768)
• SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:854)
• _Base64EncoderSink (package:crypto/src/base64.dart:228)
• _TaskEntry (package:flutter/src/scheduler/binding.dart:54)
• BoxDecoration.lerp (package:flutter/src/painting/box_decoration.dart:222)
• _DatePickerDialogState (package:flutter/src/material/date_picker.dart:796)
• _DialState (package:flutter/src/material/time_picker.dart:1001)
• EdgeInsets.lerp (package:flutter/src/painting/edge_insets.dart:570)
• PageController (package:flutter/src/widgets/page_view.dart:39)
• ThemeData.lerp (package:flutter/src/material/theme_data.dart:534)
• FlutterErrorDetails.toString (package:flutter/src/foundation/assertions.dart:145)
• _DayPeriodControl (package:flutter/src/material/time_picker.dart:186)
• IosUtsname (package:device_info/device_info.dart:255)
• MaterialLocalizations.tabLabel (package:flutter/src/material/material_localizations.dart:94)
• MaterialLocalizations.timePickerHourModeAnnouncement (package:flutter/src/material/material_localizations.dart:134)
• MaterialLocalizations.timePickerMinuteModeAnnouncement (package:flutter/src/material/material_localizations.dart:138)
• MaterialLocalizations.modalBarrierDismissLabel (package:flutter/src/material/material_localizations.dart:145)
• MaterialLocalizations.formatFullDate (package:flutter/src/material/material_localizations.dart:216)
• MaterialLocalizations.signedInLabel (package:flutter/src/material/material_localizations.dart:252)
• MaterialLocalizations.hideAccountsLabel (package:flutter/src/material/material_localizations.dart:256)
• MaterialLocalizations.showAccountsLabel (package:flutter/src/material/material_localizations.dart:260)
• _DatePickerHeader (package:flutter/src/material/date_picker.dart:60)
• _StadiumToRoundedRectangleBorder (package:flutter/src/painting/stadium_border.dart:279)
• _DropdownRoute (package:flutter/src/material/dropdown.dart:279)
• _MonthPickerState (package:flutter/src/material/date_picker.dart:528)
• TableBorder (package:flutter/src/rendering/table_border.dart:14)
• RenderBlockSemantics.RenderBlockSemantics (package:flutter/src/rendering/proxy_box.dart:3318)
• RenderBlockSemantics.blocking (package:flutter/src/rendering/proxy_box.dart:3322)
• RenderBlockSemantics.describeSemanticsConfiguration (package:flutter/src/rendering/proxy_box.dart:3333)
• RenderBlockSemantics.debugFillProperties (package:flutter/src/rendering/proxy_box.dart:3339)
• BorderRadius.lerp (package:flutter/src/painting/border_radius.dart:495)
• _LoginWithEmailState._handleError (package:servicemax_flutter/widgets/login_with_email.dart:34)
• _LoginWithEmailState._handleSubmitted (package:servicemax_flutter/widgets/login_with_email.dart:45)
• _HourControl (package:flutter/src/material/time_picker.dart:274)
• MatrixUtils.createCylindricalProjectionTransform (package:flutter/src/painting/matrix_utils.dart:205)
• PaintingBinding.PaintingBinding._ (package:flutter/src/painting/binding.dart:18)
• PaintingBinding.initInstances (package:flutter/src/painting/binding.dart:21)
• PaintingBinding.imageCache (package:flutter/src/painting/binding.dart:38)
• PaintingBinding._imageCache (package:flutter/src/painting/binding.dart:39)
• PaintingBinding._imageCache= (package:flutter/src/painting/binding.dart:39)
• PaintingBinding.createImageCache (package:flutter/src/painting/binding.dart:45)
• PaintingBinding.evict (package:flutter/src/painting/binding.dart:48)
• _TappableLabel (package:flutter/src/material/time_picker.dart:794)
• ImageInfo (package:flutter/src/painting/image_stream.dart:16)
• _WidgetsAppState._resolveLocale (package:flutter/src/widgets/app.dart:338)
• _WidgetsAppState.initState (package:flutter/src/widgets/app.dart:356)
• _WidgetsAppState._updateNavigator (package:flutter/src/widgets/app.dart:370)
• _AnimatedIconData (package:flutter/src/material/animated_icons/animated_icons_data.dart:46)
• _PopupMenuRoute (package:flutter/src/material/popup_menu.dart:543)
• _TimePickerDialogState (package:flutter/src/material/time_picker.dart:1426)
• _DialPainter (package:flutter/src/material/time_picker.dart:811)
• CupertinoScrollbar (package:flutter/src/cupertino/scrollbar.dart:34)
• TextTheme.lerp (package:flutter/src/material/typography.dart:301)
• FractionalOffset (package:flutter/src/painting/fractional_offset.dart:53)
• _CupertinoPersistentNavigationBar (package:flutter/src/cupertino/nav_bar.dart:303)
• InkResponse.InkResponse (package:flutter/src/material/ink_well.dart:85)
• InkResponse.excludeFromSemantics (package:flutter/src/material/ink_well.dart:205)
• RelativeRect (package:flutter/src/rendering/stack.dart:21)
• ModalBarrier.semanticsLabel (package:flutter/src/widgets/modal_barrier.dart:63)
• _MyAppState._handleError (lib/main.dart:74)
• ObstructingPreferredSizeWidget (package:flutter/src/cupertino/page_scaffold.dart:106)
• DefaultMaterialLocalizations._weekdays (package:flutter/src/material/material_localizations.dart:320)
• DefaultMaterialLocalizations.formatFullDate (package:flutter/src/material/material_localizations.dart:411)
• DefaultMaterialLocalizations.rowsPerPageTitle (package:flutter/src/material/material_localizations.dart:526)
• DefaultMaterialLocalizations.tabLabel (package:flutter/src/material/material_localizations.dart:529)
• DefaultMaterialLocalizations.timePickerHourModeAnnouncement (package:flutter/src/material/material_localizations.dart:581)
• DefaultMaterialLocalizations.timePickerMinuteModeAnnouncement (package:flutter/src/material/material_localizations.dart:584)
• DefaultMaterialLocalizations.modalBarrierDismissLabel (package:flutter/src/material/material_localizations.dart:587)
• DefaultMaterialLocalizations.signedInLabel (package:flutter/src/material/material_localizations.dart:601)
• DefaultMaterialLocalizations.hideAccountsLabel (package:flutter/src/material/material_localizations.dart:604)
• DefaultMaterialLocalizations.showAccountsLabel (package:flutter/src/material/material_localizations.dart:607)
• DefaultMaterialLocalizations._weekdays (package:flutter/src/material/material_localizations.dart:320)
</code></pre></div>
<p dir="auto">On subsequent reloads</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error -32601 received from application: Method not found
I/flutter (31441): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (31441): The following assertion was thrown building FadeTransition(animation:
I/flutter (31441): AlwaysStoppedAnimation<double>#f173c(▶ 1.0; paused), state: _AnimatedState#567d4):
I/flutter (31441): 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4581 pos 12: 'child == _child':
I/flutter (31441): is not true.
I/flutter (31441):
I/flutter (31441): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (31441): more information in this error message to help you determine and fix the underlying cause.
I/flutter (31441): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (31441): https://github.com/flutter/flutter/issues/new
I/flutter (31441):
I/flutter (31441): When the exception was thrown, this was the stack:
I/flutter (31441): #2 SingleChildRenderObjectElement.forgetChild (package:flutter/src/widgets/framework.dart:4581:12)
I/flutter (31441): #3 Element._retakeInactiveElement (package:flutter/src/widgets/framework.dart:2836:14)
I/flutter (31441): #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2863:32)
I/flutter (31441): #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2678:12)
I/flutter (31441): #6 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4588:14)
I/flutter (31441): #7 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2875:14)
I/flutter (31441): #8 Element.updateChild (package:flutter/src/widgets/framework.dart:2678:12)
I/flutter (31441): #9 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4588:14)
I/flutter (31441): #10 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2875:14)
I/flutter (31441): #11 Element.updateChild (package:flutter/src/widgets/framework.dart:2678:12)
I/flutter (31441): #12 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #13 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #14 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #15 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #16 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #17 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #18 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #19 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #20 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #21 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #22 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #23 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #24 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #25 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #26 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #27 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #28 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #29 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #30 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #31 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #32 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #34 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #35 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #36 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #37 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #38 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #39 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #40 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #41 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #42 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #44 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #45 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #46 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #48 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4317:32)
I/flutter (31441): #49 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4703:17)
I/flutter (31441): #50 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #51 _TheatreElement.update (package:flutter/src/widgets/overlay.dart:507:16)
I/flutter (31441): #52 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #53 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #54 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #55 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #56 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #57 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #58 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #59 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #60 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #61 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #62 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #63 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #64 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #65 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #66 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #67 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #68 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #69 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #73 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #74 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #75 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #76 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #77 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #78 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #79 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #80 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #81 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #82 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #83 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #84 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #85 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #86 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #87 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #88 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #89 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #90 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #91 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #92 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #93 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #94 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #95 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #96 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #97 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #98 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #99 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #100 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #101 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #102 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #103 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #104 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #105 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #106 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #107 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #108 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #109 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #110 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #111 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #112 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #113 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #114 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #115 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #116 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #117 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #118 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #119 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #120 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #121 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #122 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #123 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #124 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #125 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #126 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #127 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #128 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #129 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #130 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #131 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #132 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #133 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #134 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #135 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #136 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #137 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #138 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #139 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2210:33)
I/flutter (31441): #140 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:612:20)
Reloaded 2 of 488 libraries in 2,210ms.
Some program elements were changed during reload but did not run when the view was reassembled;
you may need to restart the app for the changes to have an effect.
• _LoginWithEmailState._handleSubmitted (package:servicemax_flutter/widgets/login_with_email.dart:45)
I/flutter (31441): #141 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:200)
I/flutter (31441): #142 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:921:15)
I/flutter (31441): #143 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:861:9)
I/flutter (31441): #144 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:689:7)
I/flutter (31441): #146 _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:367)
I/flutter (31441): #147 _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:401)
I/flutter (31441): #148 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:163)
I/flutter (31441): (elided 3 frames from class _AssertionError and package dart:async-patch)
I/flutter (31441): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (31441): Another exception was thrown: Duplicate GlobalKey detected in widget tree."><pre lang="Performing" class="notranslate"><code class="notranslate">Error -32601 received from application: Method not found
I/flutter (31441): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (31441): The following assertion was thrown building FadeTransition(animation:
I/flutter (31441): AlwaysStoppedAnimation<double>#f173c(▶ 1.0; paused), state: _AnimatedState#567d4):
I/flutter (31441): 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4581 pos 12: 'child == _child':
I/flutter (31441): is not true.
I/flutter (31441):
I/flutter (31441): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (31441): more information in this error message to help you determine and fix the underlying cause.
I/flutter (31441): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (31441): https://github.com/flutter/flutter/issues/new
I/flutter (31441):
I/flutter (31441): When the exception was thrown, this was the stack:
I/flutter (31441): #2 SingleChildRenderObjectElement.forgetChild (package:flutter/src/widgets/framework.dart:4581:12)
I/flutter (31441): #3 Element._retakeInactiveElement (package:flutter/src/widgets/framework.dart:2836:14)
I/flutter (31441): #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2863:32)
I/flutter (31441): #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2678:12)
I/flutter (31441): #6 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4588:14)
I/flutter (31441): #7 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2875:14)
I/flutter (31441): #8 Element.updateChild (package:flutter/src/widgets/framework.dart:2678:12)
I/flutter (31441): #9 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4588:14)
I/flutter (31441): #10 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2875:14)
I/flutter (31441): #11 Element.updateChild (package:flutter/src/widgets/framework.dart:2678:12)
I/flutter (31441): #12 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #13 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #14 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #15 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #16 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #17 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #18 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #19 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #20 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #21 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #22 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #23 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #24 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #25 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #26 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #27 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #28 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #29 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #30 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #31 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #32 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #34 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #35 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #36 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #37 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #38 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #39 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #40 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #41 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #42 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #44 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #45 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #46 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #48 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4317:32)
I/flutter (31441): #49 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4703:17)
I/flutter (31441): #50 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #51 _TheatreElement.update (package:flutter/src/widgets/overlay.dart:507:16)
I/flutter (31441): #52 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #53 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #54 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #55 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #56 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #57 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #58 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #59 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #60 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #61 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #62 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #63 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #64 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #65 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #66 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #67 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #68 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #69 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #73 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #74 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #75 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #76 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #77 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #78 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #79 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4595:14)
I/flutter (31441): #80 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #81 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #82 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #83 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #84 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #85 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #86 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #87 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #88 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #89 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #90 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #91 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #92 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #93 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #94 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #95 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #96 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #97 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #98 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #99 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #100 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #101 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #102 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #103 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #104 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #105 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #106 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #107 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #108 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #109 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #110 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #111 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #112 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #113 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #114 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #115 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #116 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #117 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #118 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #119 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #120 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #121 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #122 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #123 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #124 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #125 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #126 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #127 StatelessElement.update (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (31441): #128 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #129 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #130 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #131 StatefulElement.update (package:flutter/src/widgets/framework.dart:3737:5)
I/flutter (31441): #132 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #133 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #134 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #135 ProxyElement.update (package:flutter/src/widgets/framework.dart:3847:5)
I/flutter (31441): #136 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:15)
I/flutter (31441): #137 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3613:16)
I/flutter (31441): #138 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
I/flutter (31441): #139 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2210:33)
I/flutter (31441): #140 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:612:20)
Reloaded 2 of 488 libraries in 2,210ms.
Some program elements were changed during reload but did not run when the view was reassembled;
you may need to restart the app for the changes to have an effect.
• _LoginWithEmailState._handleSubmitted (package:servicemax_flutter/widgets/login_with_email.dart:45)
I/flutter (31441): #141 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:200)
I/flutter (31441): #142 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:921:15)
I/flutter (31441): #143 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:861:9)
I/flutter (31441): #144 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:689:7)
I/flutter (31441): #146 _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:367)
I/flutter (31441): #147 _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:401)
I/flutter (31441): #148 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:163)
I/flutter (31441): (elided 3 frames from class _AssertionError and package dart:async-patch)
I/flutter (31441): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (31441): Another exception was thrown: Duplicate GlobalKey detected in widget tree.
</code></pre></div>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Mac OS X 10.13.2 17C88, locale en, channel master)
• Flutter at /Users/varun/workspace/flutter
• Framework revision f6fae1ce36 (71 minutes ago), 2018-01-05 10:34:02 -0800
• Engine revision 43327730a2
• Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-edge.8d7219a5b6a7c2505ff57f23e7cf80da4c724512
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.1)
• Android SDK at /Users/varun/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.1
• ANDROID_HOME = /Users/varun/Library/Android/sdk
• Java binary at: /Applications/Android Studio 3.0 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] 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
• Android Studio at /Applications/Android Studio 3.0 Preview.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] IntelliJ IDEA Community Edition (version 2017.3.2)
• Flutter plugin version 20.0.3
• Dart plugin version 173.4127.31
[✓] Connected devices"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS X 10.13.2 17C88, locale en, channel master)
• Flutter at /Users/varun/workspace/flutter
• Framework revision f6fae1ce36 (71 minutes ago), 2018-01-05 10:34:02 -0800
• Engine revision 43327730a2
• Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-edge.8d7219a5b6a7c2505ff57f23e7cf80da4c724512
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.1)
• Android SDK at /Users/varun/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.1
• ANDROID_HOME = /Users/varun/Library/Android/sdk
• Java binary at: /Applications/Android Studio 3.0 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] 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
• Android Studio at /Applications/Android Studio 3.0 Preview.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] IntelliJ IDEA Community Edition (version 2017.3.2)
• Flutter plugin version 20.0.3
• Dart plugin version 173.4127.31
[✓] Connected devices
</code></pre></div> | 0 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">Imagine you need to search something very quickly using PowerToys Run. You pressed <code class="notranslate">Alt</code> + <code class="notranslate">Space</code>, and you need to open your browser first then search on url bar. but instead I think we might use PT Run to launch websites as well as applications by typing some queries like: <code class="notranslate">bing microsoft build</code>. And it opens bing search result for microsoft build.</p>
<p dir="auto">To customize web search, user might define prefixes and query url for the service.</p>
<table role="table">
<thead>
<tr>
<th align="center">Prefix</th>
<th align="center">Url</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center"><code class="notranslate">yt</code></td>
<td align="center"><code class="notranslate">https://www.youtube.com/results?search_query={0}</code></td>
</tr>
<tr>
<td align="center"><code class="notranslate">bing</code></td>
<td align="center"><code class="notranslate">https://www.bing.com/search?q={0}</code></td>
</tr>
<tr>
<td align="center"><code class="notranslate">google</code></td>
<td align="center"><code class="notranslate">https://www.google.com/search?q={0}</code></td>
</tr>
</tbody>
</table>
<p dir="auto">I think users must be able to modify this list to add/edit/remove items.</p>
<p dir="auto">For example when I type something like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bing microsoft career"><pre class="notranslate"><code class="notranslate">bing microsoft career
</code></pre></div>
<p dir="auto">It should open this url on my <strong>default</strong> browser:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="https://www.bing.com/search?q=microsoft+career"><pre class="notranslate"><code class="notranslate">https://www.bing.com/search?q=microsoft+career
</code></pre></div>
<h1 dir="auto">Proposed technical implementation details</h1>
<p dir="auto">You could check out <a href="http://www.wox.one/plugin/116" rel="nofollow">this wox plugin</a> for example.</p>
<h1 dir="auto">Protip</h1>
<p dir="auto"><em>Aslo, a note for myself</em></p>
<p dir="auto">Power users could also use duckduckgo's "I'm feeling lucky" like service to directly search and redirect to first item.</p>
<table role="table">
<thead>
<tr>
<th align="center">Prefix</th>
<th align="center">Url</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center"><code class="notranslate">web</code></td>
<td align="center"><code class="notranslate">https://duckduckgo.com/?q=!ducky+{0}</code></td>
</tr>
</tbody>
</table>
<p dir="auto"><a href="https://www.alfredforum.com/topic/5927-force-im-feeling-lucky/" rel="nofollow">Source</a></p>
<p dir="auto">So when we execute queries like <code class="notranslate">web powertoys</code> it will open this repo on our browser.</p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">I want to be able to start a web search from the launcher.<br>
Ideally, I'd type <code class="notranslate">bing power toys</code> and it would navigate to <code class="notranslate">https://www.bing.com/search?q=power+toys</code> in my default browser.<br>
<code class="notranslate">google power toys</code> would go to the equivalent.</p>
<p dir="auto">The ability to specify the keyword/search engine to use and the domain it goes to would also be necessary. Not only would this enable supporting other search engines, but it would also allow for people to adjust for different TLD versions of search engines.</p>
<p dir="auto"><em>This would be similar to functionality that used to be available in Enso launcher.</em></p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">This would presumably require some settings for determining which words are identified as initiating the search and the URL to submit the query to.<br>
This could also be the base for similar functionality where a keyword could launch an app and pass other values as command-line arguments. Without additional arguments, this could also serve as a way to create aliases for apps so they could be launched with a small number of keystrokes.</p>
<p dir="auto"><strong>crutkas:</strong> possible solution to this issue in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="851600669" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/10619" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/10619/hovercard" href="https://github.com/microsoft/PowerToys/issues/10619">#10619</a>. It defers to default browser + user's search engine. Lets PT Run be generic</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></p>
<p dir="auto">The following code example works well with <code class="notranslate">text</code> input type, but allows inputs like <code class="notranslate">012</code> or <code class="notranslate">0012</code> to be entered when using the <code class="notranslate">number</code> input type.</p>
<p dir="auto">The <code class="notranslate">console.log</code> line always runs and shows the right value, and the App state is also correct when checked with React Developer Tools. It's only that the controlled input is not being "controlled" somehow.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class App extends Component {
constructor() {
super()
this.state = {
value: '',
}
}
handleChange = e => {
const value = e.target.value
const num = parseInt(value, 10)
console.log(num)
this.setState({ value: isNaN(num) ? '' : num })
}
render() {
return (
<div className="App">
<input type="number" value={this.state.value} onChange={this.handleChange} />
</div>
)
}
}"><pre class="notranslate"><code class="notranslate">class App extends Component {
constructor() {
super()
this.state = {
value: '',
}
}
handleChange = e => {
const value = e.target.value
const num = parseInt(value, 10)
console.log(num)
this.setState({ value: isNaN(num) ? '' : num })
}
render() {
return (
<div className="App">
<input type="number" value={this.state.value} onChange={this.handleChange} />
</div>
)
}
}
</code></pre></div>
<p dir="auto">Present with latest create react app or in this jsfiddle: <a href="https://jsfiddle.net/Lhj0j3ok/" rel="nofollow">https://jsfiddle.net/Lhj0j3ok/</a><br>
Not present in this jsfiddle: <a href="https://jsfiddle.net/mayankshukla5031/08ecc97d/" rel="nofollow">https://jsfiddle.net/mayankshukla5031/08ecc97d/</a></p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
Input should reflect the state, thus not allowing strings like <code class="notranslate">012</code>, etc. to be displayed.</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">Latest <code class="notranslate">create-react-app</code>:<br>
"react": "15.6.1",<br>
"react-dom": "15.6.1",<br>
"react-scripts": "1.0.11"</p>
<p dir="auto">Browser: Chrome 60.0.3112.101<br>
OS X 10.12.6</p>
<p dir="auto">Present with latest create react app or in this jsfiddle: <a href="https://jsfiddle.net/Lhj0j3ok/" rel="nofollow">https://jsfiddle.net/Lhj0j3ok/</a><br>
Not present in this jsfiddle: <a href="https://jsfiddle.net/mayankshukla5031/08ecc97d/" rel="nofollow">https://jsfiddle.net/mayankshukla5031/08ecc97d/</a></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>
I have a number input with defalut value 0 and in onChange function I'll parse value to float to avoid invalid input, but I'll always get left pad 0 on input UI. But in previouse version, my code works.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template: <a href="https://jsfiddle.net/84v837e9/" rel="nofollow">https://jsfiddle.net/84v837e9/</a>).</strong><br>
<input type="number" value={this.state.value} onChange={e=>this.setState({value: parseFloat(e.target.value)? parseFloat(e.target.value) : 0})}</p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
Should not have left pad 0.</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br>
react 15.5.3, all browser / all OS. It works in 15.4.2</p> | 1 |
<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>
After upgrading from 2.2.1 to 2.4.1 <code class="notranslate">loadChildren: () => Module</code> in routes does not work anymore. Before upgrade I was able to use this construction to delegate certain route to external module. I did not use lazy loading. I used <code class="notranslate">loadChildren</code> to separate application parts.</p>
<p dir="auto">Error in console:<br>
<code class="notranslate">Uncaught TypeError: Cannot convert undefined or null to object</code></p>
<p dir="auto">thrown in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ReflectionCapabilities.prototype.annotations = function (typeOrFunc) {
var /** @type {?} */ parentCtor = Object.getPrototypeOf(typeOrFunc.prototype).constructor;
var /** @type {?} */ ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];
var /** @type {?} */ parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];
return parentAnnotations.concat(ownAnnotations);
};"><pre class="notranslate"><code class="notranslate"> ReflectionCapabilities.prototype.annotations = function (typeOrFunc) {
var /** @type {?} */ parentCtor = Object.getPrototypeOf(typeOrFunc.prototype).constructor;
var /** @type {?} */ ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];
var /** @type {?} */ parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];
return parentAnnotations.concat(ownAnnotations);
};
</code></pre></div>
<p dir="auto">On the second line. <code class="notranslate">typeOrFunc</code> is my <code class="notranslate">() => Module</code>. It does not have <code class="notranslate">prototype</code> property.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
No idea how it worked before, but it did. I was able to navigate between modules, no errors were thrown.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
I used this scheme in my previous submission about DI. The repo is the same:<br>
<a href="https://github.com/peku33/angular2-dependency-injection-failure">https://github.com/peku33/angular2-dependency-injection-failure</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
I want to use <code class="notranslate">loadChildren()</code> to logically separate parts of my app. I'm not using "lazy loading".</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Node v7.2.0<br>
Npm 3.10.9<br>
@angular/ [everything] @2.4.1<br>
[email protected]</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.X</li>
</ul>
<ul dir="auto">
<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>
Same on Chrome and Firefox</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5] Version 2.1.4, ES6</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p>
</li>
</ul> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => 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>
If you add an object instance to your route definition, the app fails to load with the error <code class="notranslate">Cannot convert undefined or null to object</code> with the stack trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" at Function.getPrototypeOf (<anonymous>)
at ReflectionCapabilities.annotations (http://localhost:4200/main.bundle.js:60005:50)
at Reflector.annotations (http://localhost:4200/main.bundle.js:60197:44)
at DirectiveResolver.isDirective (http://localhost:4200/main.bundle.js:18021:61)
at http://localhost:4200/main.bundle.js:19618:42
at Array.forEach (native)
at CompileMetadataResolver._getEntryComponentsFromProvider (http://localhost:4200/main.bundle.js:19617:30)
at http://localhost:4200/main.bundle.js:19590:83
at Array.forEach (native)
at CompileMetadataResolver._getProvidersMetadata (http://localhost:4200/main.bundle.js:19560:19)
at http://localhost:4200/main.bundle.js:19562:23
at Array.forEach (native)
at CompileMetadataResolver._getProvidersMetadata (http://localhost:4200/main.bundle.js:19560:19)
at http://localhost:4200/main.bundle.js:19198:63
at Array.forEach (native)"><pre lang="Uncaught" class="notranslate"><code class="notranslate"> at Function.getPrototypeOf (<anonymous>)
at ReflectionCapabilities.annotations (http://localhost:4200/main.bundle.js:60005:50)
at Reflector.annotations (http://localhost:4200/main.bundle.js:60197:44)
at DirectiveResolver.isDirective (http://localhost:4200/main.bundle.js:18021:61)
at http://localhost:4200/main.bundle.js:19618:42
at Array.forEach (native)
at CompileMetadataResolver._getEntryComponentsFromProvider (http://localhost:4200/main.bundle.js:19617:30)
at http://localhost:4200/main.bundle.js:19590:83
at Array.forEach (native)
at CompileMetadataResolver._getProvidersMetadata (http://localhost:4200/main.bundle.js:19560:19)
at http://localhost:4200/main.bundle.js:19562:23
at Array.forEach (native)
at CompileMetadataResolver._getProvidersMetadata (http://localhost:4200/main.bundle.js:19560:19)
at http://localhost:4200/main.bundle.js:19198:63
at Array.forEach (native)
</code></pre></div>
<p dir="auto">The error ist thrown because <code class="notranslate">ReflectionCapabilities.annotations</code> tries to access the <code class="notranslate">prototype</code> of the passed variable which in this case is an object instance so fails.</p>
<p dir="auto">This worked in 2.2.4 but fails with 2.3.1. It fails for a webpack build, I haven't tried any other build tools.</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">The user should be able to add arbitrary properties to route entries without causing compilation errors.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto">Add an object instance to a route definition like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { SomeObject } from "./some-object.model";
const routes: any = [
{
path: '',
children: [],
data: {
otherProperty: new SomeObject(),
}
}
];"><pre class="notranslate"><code class="notranslate">import { SomeObject } from "./some-object.model";
const routes: any = [
{
path: '',
children: [],
data: {
otherProperty: new SomeObject(),
}
}
];
</code></pre></div>
<p dir="auto">see <a href="https://github.com/marcuskrahl/angular-bug-route-with-object-instance">https://github.com/marcuskrahl/angular-bug-route-with-object-instance</a> for an example repository</p>
<p dir="auto"><strong>Workaround</strong><br>
If the object instance creation is replaced with a function call, the example works without any problems (but of course the access of the data has to be changed).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
data: {
otherProperty: () => new SomeObject(),
}
..."><pre class="notranslate"><code class="notranslate">...
data: {
otherProperty: () => new SomeObject(),
}
...
</code></pre></div>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto">You should be able to add application dependant information to routing entries.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<p dir="auto">angular-cli changed to 2.3.1 runtime on Windows 7.<br>
Also does not work on custom webpack build without angular-cli.</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.3.1</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [TypeScript 2.0.10]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p>
</li>
</ul> | 1 |
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">The language server/extension crashes when using the import.meta.url variable.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<p dir="auto">Just create any relative route with the URL api and see the magic happen.</p>
<p dir="auto"><strong>Video</strong><br>
<a href="https://user-images.githubusercontent.com/42647963/102919956-ca313c80-4457-11eb-926d-0015827f386c.mp4" rel="nofollow">https://user-images.githubusercontent.com/42647963/102919956-ca313c80-4457-11eb-926d-0015827f386c.mp4</a></p>
<p dir="auto"><strong>Versions</strong></p>
<p dir="auto">vscode: 1.52.0<br>
deno: 1.6.2 (It can be reproduced on 1.6 and up)<br>
extension: Canary 0.0.6</p> | <p dir="auto">Reproduction:</p>
<p dir="auto">Create a file named <code class="notranslate">mod.ts</code> and start typing the following.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="new URL(".", import.meta"><pre class="notranslate"><code class="notranslate">new URL(".", import.meta
</code></pre></div>
<p dir="auto">Output from lsp:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Starting Deno language server...
version: 1.10.1+1871ff5 (release, x86_64-apple-darwin)
Connected to "Visual Studio Code" 1.56.0
language server initialized
Server ready.
Unable to get completion info from TypeScript: TypeError: Cannot read property 'kind' of undefined
at getRootDeclaration (deno:cli/tsc/00_typescript.js:16600:21)
at Object.isCatchClauseVariableDeclarationOrBindingElement (deno:cli/tsc/00_typescript.js:14152:20)
at getTypeOfVariableOrParameterOrPropertyWorker (deno:cli/tsc/00_typescript.js:51624:20)
at getTypeOfVariableOrParameterOrProperty (deno:cli/tsc/00_typescript.js:51587:28)
at getTypeOfSymbol (deno:cli/tsc/00_typescript.js:51930:24)
at getTypeOfSymbolAtLocation (deno:cli/tsc/00_typescript.js:65150:20)
at Object.getTypeOfSymbolAtLocation (deno:cli/tsc/00_typescript.js:44091:35)
at Object.getSymbolDisplayPartsDocumentationAndSymbolKind (deno:cli/tsc/00_typescript.js:131138:97)
at deno:cli/tsc/00_typescript.js:120534:41
at Object.runWithCancellationToken (deno:cli/tsc/00_typescript.js:44374:28)
[Error - 1:09:00 PM] Request completionItem/resolve failed.
Message: Internal error
Code: -32603 "><pre class="notranslate"><code class="notranslate">Starting Deno language server...
version: 1.10.1+1871ff5 (release, x86_64-apple-darwin)
Connected to "Visual Studio Code" 1.56.0
language server initialized
Server ready.
Unable to get completion info from TypeScript: TypeError: Cannot read property 'kind' of undefined
at getRootDeclaration (deno:cli/tsc/00_typescript.js:16600:21)
at Object.isCatchClauseVariableDeclarationOrBindingElement (deno:cli/tsc/00_typescript.js:14152:20)
at getTypeOfVariableOrParameterOrPropertyWorker (deno:cli/tsc/00_typescript.js:51624:20)
at getTypeOfVariableOrParameterOrProperty (deno:cli/tsc/00_typescript.js:51587:28)
at getTypeOfSymbol (deno:cli/tsc/00_typescript.js:51930:24)
at getTypeOfSymbolAtLocation (deno:cli/tsc/00_typescript.js:65150:20)
at Object.getTypeOfSymbolAtLocation (deno:cli/tsc/00_typescript.js:44091:35)
at Object.getSymbolDisplayPartsDocumentationAndSymbolKind (deno:cli/tsc/00_typescript.js:131138:97)
at deno:cli/tsc/00_typescript.js:120534:41
at Object.runWithCancellationToken (deno:cli/tsc/00_typescript.js:44374:28)
[Error - 1:09:00 PM] Request completionItem/resolve failed.
Message: Internal error
Code: -32603
</code></pre></div>
<details>
<summary>Output from LSP with debug enabled</summary>
<br>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Starting Deno language server...
version: 1.10.1+1871ff5 (release, x86_64-apple-darwin)
Connected to "Visual Studio Code" 1.56.0
{"type":"mark","name":"update_tsconfig"},
{"type":"mark","name":"request","count":1,"args":{"id":2,"method":"configure","compilerOptions":{"allowJs":true,"esModuleInterop":true,"experimentalDecorators":true,"isolatedModules":true,"jsx":"react","lib":["deno.ns","deno.window","deno.unstable"],"module":"esnext","noEmit":true,"strict":true,"target":"esnext","useDefineForClassFields":true}}},
{"type":"measure","name":"request","count":1,"duration":1},
{"type":"measure","name":"update_tsconfig","count":1,"duration":168},
{"type":"mark","name":"request","count":2,"args":{"id":3,"method":"getSupportedCodeFixes"}},
{"type":"measure","name":"request","count":2,"duration":1},
{"type":"measure","name":"initialize","count":1,"duration":170},
language server initialized
{"type":"mark","name":"update_import_map"},
{"type":"measure","name":"update_import_map","count":1,"duration":0},
{"type":"mark","name":"update_registries"},
{"type":"measure","name":"update_registries","count":1,"duration":0},
Server ready.
{"type":"mark","name":"did_open","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","languageId":"typescript","version":1,"text":""}}},
{"type":"measure","name":"did_open","count":1,"duration":0},
{"type":"mark","name":"document_symbol","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":1,"duration":0},
{"type":"mark","name":"request","count":3,"args":{"id":4,"method":"getNavigationTree","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":1,"duration":0},
{"type":"mark","name":"op_script_version","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":2,"duration":0},
{"type":"mark","name":"op_get_length","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1"}},
{"type":"measure","name":"op_get_length","count":1,"duration":0},
{"type":"mark","name":"op_get_text","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1","start":0,"end":0}},
{"type":"measure","name":"op_get_text","count":1,"duration":0},
{"type":"measure","name":"request","count":3,"duration":2},
{"type":"measure","name":"document_symbol","count":1,"duration":3},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":4,"args":{"id":5,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":1,"duration":1},
{"type":"measure","name":"update_diagnostics_deps","count":1,"duration":0},
{"type":"mark","name":"op_script_version","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":3,"duration":0},
{"type":"mark","name":"op_script_version","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":4,"duration":0},
{"type":"mark","name":"op_get_length","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1"}},
{"type":"measure","name":"op_get_length","count":2,"duration":0},
{"type":"mark","name":"op_get_text","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1","start":0,"end":0}},
{"type":"measure","name":"op_get_text","count":2,"duration":0},
{"type":"mark","name":"folding_range","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":2,"duration":0},
{"type":"mark","name":"op_script_version","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":5,"duration":0},
{"type":"mark","name":"op_script_version","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":6,"duration":0},
{"type":"mark","name":"op_script_version","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":7,"duration":0},
{"type":"mark","name":"op_script_version","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":8,"duration":0},
{"type":"mark","name":"op_script_version","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":9,"duration":0},
{"type":"mark","name":"op_script_version","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":10,"duration":0},
{"type":"measure","name":"request","count":4,"duration":928},
{"type":"measure","name":"update_diagnostics_ts","count":1,"duration":929},
{"type":"measure","name":"update_diagnostics","count":1,"duration":929},
{"type":"mark","name":"request","count":5,"args":{"id":6,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":11,"duration":0},
{"type":"mark","name":"op_script_version","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":12,"duration":0},
{"type":"measure","name":"request","count":5,"duration":1},
{"type":"measure","name":"folding_range","count":1,"duration":813},
{"type":"mark","name":"did_change","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":2},"contentChanges":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"rangeLength":0,"text":"c"}]}},
{"type":"measure","name":"did_change","count":1,"duration":0},
{"type":"mark","name":"completion","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":1},"context":{"triggerKind":1}}},
{"type":"mark","name":"get_line_index_sync","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":3,"duration":0},
{"type":"mark","name":"request","count":6,"args":{"id":7,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":1,"preferences":{"includeCompletionsWithInsertText":true}}},
{"type":"mark","name":"op_script_version","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":13,"duration":0},
{"type":"mark","name":"op_script_version","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":14,"duration":0},
{"type":"mark","name":"op_script_version","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":15,"duration":0},
{"type":"mark","name":"op_get_length","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1"}},
{"type":"measure","name":"op_get_length","count":3,"duration":0},
{"type":"mark","name":"op_get_change_range","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":0,"oldVersion":"1","version":"2"}},
{"type":"measure","name":"op_get_change_range","count":1,"duration":0},
{"type":"mark","name":"op_get_text","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"2","start":0,"end":1}},
{"type":"measure","name":"op_get_text","count":3,"duration":0},
{"type":"mark","name":"op_dispose","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1"}},
{"type":"measure","name":"op_dispose","count":1,"duration":0},
{"type":"measure","name":"request","count":6,"duration":16},
{"type":"measure","name":"completion","count":1,"duration":30},
{"type":"mark","name":"did_change","count":2,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":3},"contentChanges":[{"range":{"start":{"line":0,"character":1},"end":{"line":0,"character":1}},"rangeLength":0,"text":"o"}]}},
{"type":"measure","name":"did_change","count":2,"duration":0},
{"type":"mark","name":"completion_resolve","count":1,"args":{"label":"confirm","kind":3,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"confirm","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":7,"args":{"id":8,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"confirm"}}},
{"type":"mark","name":"op_script_version","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":16,"duration":0},
{"type":"mark","name":"op_script_version","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":17,"duration":0},
{"type":"mark","name":"op_script_version","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":18,"duration":0},
{"type":"mark","name":"op_get_length","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"2"}},
{"type":"measure","name":"op_get_length","count":4,"duration":0},
{"type":"mark","name":"op_get_change_range","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":1,"oldVersion":"2","version":"3"}},
{"type":"measure","name":"op_get_change_range","count":2,"duration":0},
{"type":"mark","name":"op_get_text","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"3","start":1,"end":2}},
{"type":"measure","name":"op_get_text","count":4,"duration":0},
{"type":"mark","name":"op_dispose","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"2"}},
{"type":"measure","name":"op_dispose","count":2,"duration":0},
{"type":"measure","name":"request","count":7,"duration":15},
{"type":"measure","name":"completion_resolve","count":1,"duration":17},
{"type":"mark","name":"did_change","count":3,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":4},"contentChanges":[{"range":{"start":{"line":0,"character":2},"end":{"line":0,"character":2}},"rangeLength":0,"text":"n"}]}},
{"type":"measure","name":"did_change","count":3,"duration":0},
{"type":"mark","name":"completion_resolve","count":2,"args":{"label":"confirm","kind":3,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"confirm","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":8,"args":{"id":9,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"confirm"}}},
{"type":"mark","name":"op_script_version","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":19,"duration":0},
{"type":"mark","name":"op_script_version","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":20,"duration":0},
{"type":"mark","name":"op_script_version","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":21,"duration":0},
{"type":"mark","name":"op_get_length","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"3"}},
{"type":"measure","name":"op_get_length","count":5,"duration":0},
{"type":"mark","name":"op_get_change_range","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":2,"oldVersion":"3","version":"4"}},
{"type":"measure","name":"op_get_change_range","count":3,"duration":0},
{"type":"mark","name":"op_get_text","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"4","start":2,"end":3}},
{"type":"measure","name":"op_get_text","count":5,"duration":0},
{"type":"mark","name":"op_dispose","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"3"}},
{"type":"measure","name":"op_dispose","count":3,"duration":0},
{"type":"measure","name":"request","count":8,"duration":5},
{"type":"measure","name":"completion_resolve","count":2,"duration":7},
{"type":"mark","name":"did_change","count":4,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":5},"contentChanges":[{"range":{"start":{"line":0,"character":3},"end":{"line":0,"character":3}},"rangeLength":0,"text":"s"}]}},
{"type":"measure","name":"did_change","count":4,"duration":0},
{"type":"mark","name":"completion_resolve","count":3,"args":{"label":"console","kind":6,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"console","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":9,"args":{"id":10,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"console"}}},
{"type":"mark","name":"op_script_version","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":22,"duration":0},
{"type":"mark","name":"op_script_version","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":23,"duration":0},
{"type":"mark","name":"op_script_version","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":24,"duration":0},
{"type":"mark","name":"op_get_length","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"4"}},
{"type":"measure","name":"op_get_length","count":6,"duration":0},
{"type":"mark","name":"op_get_change_range","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":3,"oldVersion":"4","version":"5"}},
{"type":"measure","name":"op_get_change_range","count":4,"duration":0},
{"type":"mark","name":"op_get_text","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"5","start":3,"end":4}},
{"type":"measure","name":"op_get_text","count":6,"duration":0},
{"type":"mark","name":"op_dispose","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"4"}},
{"type":"measure","name":"op_dispose","count":4,"duration":0},
{"type":"measure","name":"request","count":9,"duration":5},
{"type":"measure","name":"completion_resolve","count":3,"duration":6},
{"type":"mark","name":"did_change","count":5,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":6},"contentChanges":[{"range":{"start":{"line":0,"character":4},"end":{"line":0,"character":4}},"rangeLength":0,"text":"t"}]}},
{"type":"measure","name":"did_change","count":5,"duration":0},
{"type":"mark","name":"completion_resolve","count":4,"args":{"label":"const","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"const","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":10,"args":{"id":11,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"const"}}},
{"type":"mark","name":"op_script_version","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":25,"duration":0},
{"type":"mark","name":"op_script_version","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":26,"duration":0},
{"type":"mark","name":"op_script_version","count":27,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":27,"duration":0},
{"type":"mark","name":"op_get_length","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"5"}},
{"type":"measure","name":"op_get_length","count":7,"duration":0},
{"type":"mark","name":"op_get_change_range","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":4,"oldVersion":"5","version":"6"}},
{"type":"measure","name":"op_get_change_range","count":5,"duration":0},
{"type":"mark","name":"op_get_text","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"6","start":4,"end":5}},
{"type":"measure","name":"op_get_text","count":7,"duration":0},
{"type":"mark","name":"op_dispose","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"5"}},
{"type":"measure","name":"op_dispose","count":5,"duration":0},
{"type":"measure","name":"request","count":10,"duration":7},
{"type":"measure","name":"completion_resolve","count":4,"duration":8},
{"type":"mark","name":"did_change","count":6,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":7},"contentChanges":[{"range":{"start":{"line":0,"character":5},"end":{"line":0,"character":5}},"rangeLength":0,"text":" "}]}},
{"type":"measure","name":"did_change","count":6,"duration":0},
{"type":"mark","name":"folding_range","count":2,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":4,"duration":0},
{"type":"mark","name":"request","count":11,"args":{"id":12,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":28,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":28,"duration":0},
{"type":"mark","name":"op_script_version","count":29,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":29,"duration":0},
{"type":"mark","name":"op_get_length","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1"}},
{"type":"measure","name":"op_get_length","count":8,"duration":0},
{"type":"mark","name":"op_get_change_range","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":6,"oldVersion":"1","version":"7"}},
{"type":"measure","name":"op_get_change_range","count":6,"duration":0},
{"type":"mark","name":"op_get_length","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7"}},
{"type":"measure","name":"op_get_length","count":9,"duration":0},
{"type":"mark","name":"op_get_text","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7","start":0,"end":6}},
{"type":"measure","name":"op_get_text","count":8,"duration":0},
{"type":"measure","name":"request","count":11,"duration":0},
{"type":"measure","name":"folding_range","count":2,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":12,"args":{"id":13,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":30,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":30,"duration":0},
{"type":"mark","name":"op_script_version","count":31,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":31,"duration":0},
{"type":"mark","name":"op_script_version","count":32,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":32,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":2,"duration":1},
{"type":"mark","name":"op_get_length","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"6"}},
{"type":"measure","name":"op_get_length","count":10,"duration":0},
{"type":"mark","name":"op_get_change_range","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":5,"oldVersion":"6","version":"7"}},
{"type":"measure","name":"update_diagnostics_deps","count":2,"duration":0},
{"type":"measure","name":"op_get_change_range","count":7,"duration":0},
{"type":"mark","name":"op_get_text","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7","start":5,"end":6}},
{"type":"measure","name":"op_get_text","count":9,"duration":0},
{"type":"mark","name":"op_dispose","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"6"}},
{"type":"measure","name":"op_dispose","count":6,"duration":0},
{"type":"mark","name":"op_script_version","count":33,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":33,"duration":0},
{"type":"mark","name":"op_script_version","count":34,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":34,"duration":0},
{"type":"mark","name":"op_script_version","count":35,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":35,"duration":0},
{"type":"mark","name":"op_script_version","count":36,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":36,"duration":0},
{"type":"mark","name":"op_script_version","count":37,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":37,"duration":0},
{"type":"mark","name":"op_script_version","count":38,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":38,"duration":0},
{"type":"measure","name":"request","count":12,"duration":7},
{"type":"measure","name":"update_diagnostics_ts","count":2,"duration":8},
{"type":"measure","name":"update_diagnostics","count":2,"duration":8},
{"type":"mark","name":"did_change","count":7,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":8},"contentChanges":[{"range":{"start":{"line":0,"character":6},"end":{"line":0,"character":6}},"rangeLength":0,"text":"p"}]}},
{"type":"measure","name":"did_change","count":7,"duration":0},
{"type":"mark","name":"completion","count":2,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":7},"context":{"triggerKind":1}}},
{"type":"mark","name":"get_line_index_sync","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":5,"duration":0},
{"type":"mark","name":"request","count":13,"args":{"id":14,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":7,"preferences":{"includeCompletionsWithInsertText":true}}},
{"type":"mark","name":"op_script_version","count":39,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":39,"duration":0},
{"type":"mark","name":"op_script_version","count":40,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":40,"duration":0},
{"type":"mark","name":"op_script_version","count":41,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":41,"duration":0},
{"type":"mark","name":"op_get_length","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7"}},
{"type":"measure","name":"op_get_length","count":11,"duration":0},
{"type":"mark","name":"op_get_change_range","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":6,"oldVersion":"7","version":"8"}},
{"type":"measure","name":"op_get_change_range","count":8,"duration":0},
{"type":"mark","name":"op_get_text","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"8","start":6,"end":7}},
{"type":"measure","name":"op_get_text","count":10,"duration":0},
{"type":"mark","name":"op_dispose","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7"}},
{"type":"measure","name":"op_dispose","count":7,"duration":0},
{"type":"measure","name":"request","count":13,"duration":4},
{"type":"measure","name":"completion","count":2,"duration":5},
{"type":"mark","name":"did_change","count":8,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":9},"contentChanges":[{"range":{"start":{"line":0,"character":7},"end":{"line":0,"character":7}},"rangeLength":0,"text":"a"}]}},
{"type":"measure","name":"did_change","count":8,"duration":0},
{"type":"mark","name":"did_change","count":9,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":10},"contentChanges":[{"range":{"start":{"line":0,"character":8},"end":{"line":0,"character":8}},"rangeLength":0,"text":"t"}]}},
{"type":"measure","name":"did_change","count":9,"duration":0},
{"type":"mark","name":"did_change","count":10,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":11},"contentChanges":[{"range":{"start":{"line":0,"character":9},"end":{"line":0,"character":9}},"rangeLength":0,"text":"h"}]}},
{"type":"measure","name":"did_change","count":10,"duration":0},
{"type":"mark","name":"did_change","count":11,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":12},"contentChanges":[{"range":{"start":{"line":0,"character":10},"end":{"line":0,"character":10}},"rangeLength":0,"text":" "}]}},
{"type":"measure","name":"did_change","count":11,"duration":0},
{"type":"mark","name":"did_change","count":12,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":13},"contentChanges":[{"range":{"start":{"line":0,"character":11},"end":{"line":0,"character":11}},"rangeLength":0,"text":"="}]}},
{"type":"measure","name":"did_change","count":12,"duration":0},
{"type":"mark","name":"did_change","count":13,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":14},"contentChanges":[{"range":{"start":{"line":0,"character":12},"end":{"line":0,"character":12}},"rangeLength":0,"text":" "}]}},
{"type":"measure","name":"did_change","count":13,"duration":0},
{"type":"mark","name":"folding_range","count":3,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":6,"duration":0},
{"type":"mark","name":"request","count":14,"args":{"id":15,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":42,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":42,"duration":0},
{"type":"mark","name":"op_script_version","count":43,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":43,"duration":0},
{"type":"mark","name":"op_get_length","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7"}},
{"type":"measure","name":"op_get_length","count":12,"duration":0},
{"type":"mark","name":"op_get_change_range","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":13,"oldVersion":"7","version":"14"}},
{"type":"measure","name":"op_get_change_range","count":9,"duration":0},
{"type":"mark","name":"op_get_length","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14"}},
{"type":"measure","name":"op_get_length","count":13,"duration":0},
{"type":"mark","name":"op_get_text","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14","start":0,"end":13}},
{"type":"measure","name":"op_get_text","count":11,"duration":0},
{"type":"measure","name":"request","count":14,"duration":1},
{"type":"measure","name":"folding_range","count":3,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":15,"args":{"id":16,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":3,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":3,"duration":0},
{"type":"mark","name":"op_script_version","count":44,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":44,"duration":0},
{"type":"mark","name":"op_script_version","count":45,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":45,"duration":0},
{"type":"mark","name":"op_script_version","count":46,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":46,"duration":0},
{"type":"mark","name":"op_get_length","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"8"}},
{"type":"measure","name":"op_get_length","count":14,"duration":0},
{"type":"mark","name":"op_get_change_range","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":7,"oldVersion":"8","version":"14"}},
{"type":"measure","name":"op_get_change_range","count":10,"duration":0},
{"type":"mark","name":"op_get_text","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14","start":7,"end":13}},
{"type":"measure","name":"op_get_text","count":12,"duration":0},
{"type":"mark","name":"op_dispose","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"8"}},
{"type":"measure","name":"op_dispose","count":8,"duration":0},
{"type":"mark","name":"op_script_version","count":47,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":47,"duration":0},
{"type":"mark","name":"op_script_version","count":48,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":48,"duration":0},
{"type":"mark","name":"op_script_version","count":49,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":49,"duration":0},
{"type":"mark","name":"op_script_version","count":50,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":50,"duration":0},
{"type":"mark","name":"op_script_version","count":51,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":51,"duration":0},
{"type":"mark","name":"op_script_version","count":52,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":52,"duration":0},
{"type":"measure","name":"request","count":15,"duration":6},
{"type":"measure","name":"update_diagnostics_ts","count":3,"duration":7},
{"type":"measure","name":"update_diagnostics","count":3,"duration":7},
{"type":"mark","name":"did_change","count":14,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":15},"contentChanges":[{"range":{"start":{"line":0,"character":13},"end":{"line":0,"character":13}},"rangeLength":0,"text":"n"}]}},
{"type":"measure","name":"did_change","count":14,"duration":0},
{"type":"mark","name":"completion","count":3,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":14},"context":{"triggerKind":1}}},
{"type":"mark","name":"get_line_index_sync","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":7,"duration":0},
{"type":"mark","name":"request","count":16,"args":{"id":17,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":14,"preferences":{"includeCompletionsWithInsertText":true}}},
{"type":"mark","name":"op_script_version","count":53,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":53,"duration":0},
{"type":"mark","name":"op_script_version","count":54,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":54,"duration":0},
{"type":"mark","name":"op_script_version","count":55,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":55,"duration":0},
{"type":"mark","name":"op_get_length","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14"}},
{"type":"measure","name":"op_get_length","count":15,"duration":0},
{"type":"mark","name":"op_get_change_range","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":13,"oldVersion":"14","version":"15"}},
{"type":"measure","name":"op_get_change_range","count":11,"duration":0},
{"type":"mark","name":"op_get_text","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"15","start":13,"end":14}},
{"type":"measure","name":"op_get_text","count":13,"duration":0},
{"type":"mark","name":"op_dispose","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14"}},
{"type":"measure","name":"op_dispose","count":9,"duration":0},
{"type":"measure","name":"request","count":16,"duration":9},
{"type":"measure","name":"completion","count":3,"duration":22},
{"type":"mark","name":"did_change","count":15,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":16},"contentChanges":[{"range":{"start":{"line":0,"character":14},"end":{"line":0,"character":14}},"rangeLength":0,"text":"e"}]}},
{"type":"measure","name":"did_change","count":15,"duration":0},
{"type":"mark","name":"completion_resolve","count":5,"args":{"label":"never","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":14,"name":"never","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":17,"args":{"id":18,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":14,"name":"never"}}},
{"type":"mark","name":"op_script_version","count":56,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":56,"duration":0},
{"type":"mark","name":"op_script_version","count":57,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":57,"duration":0},
{"type":"mark","name":"op_script_version","count":58,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":58,"duration":0},
{"type":"mark","name":"op_get_length","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"15"}},
{"type":"measure","name":"op_get_length","count":16,"duration":0},
{"type":"mark","name":"op_get_change_range","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":14,"oldVersion":"15","version":"16"}},
{"type":"measure","name":"op_get_change_range","count":12,"duration":0},
{"type":"mark","name":"op_get_text","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"16","start":14,"end":15}},
{"type":"measure","name":"op_get_text","count":14,"duration":0},
{"type":"mark","name":"op_dispose","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"15"}},
{"type":"measure","name":"op_dispose","count":10,"duration":0},
{"type":"measure","name":"request","count":17,"duration":5},
{"type":"measure","name":"completion_resolve","count":5,"duration":5},
{"type":"mark","name":"did_change","count":16,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":17},"contentChanges":[{"range":{"start":{"line":0,"character":15},"end":{"line":0,"character":15}},"rangeLength":0,"text":"w"}]}},
{"type":"measure","name":"did_change","count":16,"duration":0},
{"type":"mark","name":"completion_resolve","count":6,"args":{"label":"new","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":14,"name":"new","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":18,"args":{"id":19,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":14,"name":"new"}}},
{"type":"mark","name":"op_script_version","count":59,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":59,"duration":0},
{"type":"mark","name":"op_script_version","count":60,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":60,"duration":0},
{"type":"mark","name":"op_script_version","count":61,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":61,"duration":0},
{"type":"mark","name":"op_get_length","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"16"}},
{"type":"measure","name":"op_get_length","count":17,"duration":0},
{"type":"mark","name":"op_get_change_range","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":15,"oldVersion":"16","version":"17"}},
{"type":"measure","name":"op_get_change_range","count":13,"duration":0},
{"type":"mark","name":"op_get_text","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"17","start":15,"end":16}},
{"type":"measure","name":"op_get_text","count":15,"duration":0},
{"type":"mark","name":"op_dispose","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"16"}},
{"type":"measure","name":"op_dispose","count":11,"duration":0},
{"type":"measure","name":"request","count":18,"duration":5},
{"type":"measure","name":"completion_resolve","count":6,"duration":5},
{"type":"mark","name":"did_change","count":17,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":18},"contentChanges":[{"range":{"start":{"line":0,"character":16},"end":{"line":0,"character":16}},"rangeLength":0,"text":" "}]}},
{"type":"measure","name":"did_change","count":17,"duration":0},
{"type":"mark","name":"folding_range","count":4,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":8,"duration":0},
{"type":"mark","name":"request","count":19,"args":{"id":20,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":62,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":62,"duration":0},
{"type":"mark","name":"op_script_version","count":63,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":63,"duration":0},
{"type":"mark","name":"op_get_length","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14"}},
{"type":"measure","name":"op_get_length","count":18,"duration":0},
{"type":"mark","name":"op_get_change_range","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":17,"oldVersion":"14","version":"18"}},
{"type":"measure","name":"op_get_change_range","count":14,"duration":0},
{"type":"mark","name":"op_get_length","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18"}},
{"type":"measure","name":"op_get_length","count":19,"duration":0},
{"type":"mark","name":"op_get_text","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18","start":0,"end":17}},
{"type":"measure","name":"op_get_text","count":16,"duration":0},
{"type":"measure","name":"request","count":19,"duration":0},
{"type":"measure","name":"folding_range","count":4,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":20,"args":{"id":21,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":4,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":4,"duration":0},
{"type":"mark","name":"op_script_version","count":64,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":64,"duration":0},
{"type":"mark","name":"op_script_version","count":65,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":65,"duration":0},
{"type":"mark","name":"op_script_version","count":66,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":66,"duration":0},
{"type":"mark","name":"op_get_length","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"17"}},
{"type":"measure","name":"op_get_length","count":20,"duration":0},
{"type":"mark","name":"op_get_change_range","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":16,"oldVersion":"17","version":"18"}},
{"type":"measure","name":"op_get_change_range","count":15,"duration":0},
{"type":"mark","name":"op_get_text","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18","start":16,"end":17}},
{"type":"measure","name":"op_get_text","count":17,"duration":0},
{"type":"mark","name":"op_dispose","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"17"}},
{"type":"measure","name":"op_dispose","count":12,"duration":0},
{"type":"mark","name":"op_script_version","count":67,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":67,"duration":0},
{"type":"mark","name":"op_script_version","count":68,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":68,"duration":0},
{"type":"mark","name":"op_script_version","count":69,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":69,"duration":0},
{"type":"mark","name":"op_script_version","count":70,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":70,"duration":0},
{"type":"mark","name":"op_script_version","count":71,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":71,"duration":0},
{"type":"mark","name":"op_script_version","count":72,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":72,"duration":0},
{"type":"measure","name":"request","count":20,"duration":9},
{"type":"measure","name":"update_diagnostics_ts","count":4,"duration":10},
{"type":"measure","name":"update_diagnostics","count":4,"duration":10},
{"type":"mark","name":"did_change","count":18,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":19},"contentChanges":[{"range":{"start":{"line":0,"character":17},"end":{"line":0,"character":17}},"rangeLength":0,"text":"U"}]}},
{"type":"measure","name":"did_change","count":18,"duration":0},
{"type":"mark","name":"completion","count":4,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":18},"context":{"triggerKind":1}}},
{"type":"mark","name":"get_line_index_sync","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":9,"duration":0},
{"type":"mark","name":"request","count":21,"args":{"id":22,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":18,"preferences":{"includeCompletionsWithInsertText":true}}},
{"type":"mark","name":"op_script_version","count":73,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":73,"duration":0},
{"type":"mark","name":"op_script_version","count":74,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":74,"duration":0},
{"type":"mark","name":"op_script_version","count":75,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":75,"duration":0},
{"type":"mark","name":"op_get_length","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18"}},
{"type":"measure","name":"op_get_length","count":21,"duration":0},
{"type":"mark","name":"op_get_change_range","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":17,"oldVersion":"18","version":"19"}},
{"type":"measure","name":"op_get_change_range","count":16,"duration":0},
{"type":"mark","name":"op_get_text","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"19","start":17,"end":18}},
{"type":"measure","name":"op_get_text","count":18,"duration":0},
{"type":"mark","name":"op_dispose","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18"}},
{"type":"measure","name":"op_dispose","count":13,"duration":0},
{"type":"measure","name":"request","count":21,"duration":10},
{"type":"measure","name":"completion","count":4,"duration":23},
{"type":"mark","name":"completion_resolve","count":7,"args":{"label":"URIError","kind":6,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":18,"name":"URIError","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":22,"args":{"id":23,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":18,"name":"URIError"}}},
{"type":"mark","name":"op_script_version","count":76,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":76,"duration":0},
{"type":"mark","name":"op_script_version","count":77,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":77,"duration":0},
{"type":"mark","name":"op_script_version","count":78,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":78,"duration":0},
{"type":"measure","name":"request","count":22,"duration":5},
{"type":"measure","name":"completion_resolve","count":7,"duration":6},
{"type":"mark","name":"did_change","count":19,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":20},"contentChanges":[{"range":{"start":{"line":0,"character":18},"end":{"line":0,"character":18}},"rangeLength":0,"text":"R"}]}},
{"type":"measure","name":"did_change","count":19,"duration":0},
{"type":"mark","name":"did_change","count":20,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":21},"contentChanges":[{"range":{"start":{"line":0,"character":19},"end":{"line":0,"character":19}},"rangeLength":0,"text":"L"}]}},
{"type":"measure","name":"did_change","count":20,"duration":0},
{"type":"mark","name":"completion_resolve","count":8,"args":{"label":"URL","kind":7,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":18,"name":"URL","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":23,"args":{"id":24,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":18,"name":"URL"}}},
{"type":"mark","name":"op_script_version","count":79,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":79,"duration":0},
{"type":"mark","name":"op_script_version","count":80,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":80,"duration":0},
{"type":"mark","name":"op_script_version","count":81,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":81,"duration":0},
{"type":"mark","name":"op_get_length","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"19"}},
{"type":"measure","name":"op_get_length","count":22,"duration":0},
{"type":"mark","name":"op_get_change_range","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":18,"oldVersion":"19","version":"21"}},
{"type":"measure","name":"op_get_change_range","count":17,"duration":0},
{"type":"mark","name":"op_get_text","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"21","start":18,"end":20}},
{"type":"measure","name":"op_get_text","count":19,"duration":0},
{"type":"mark","name":"op_dispose","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"19"}},
{"type":"measure","name":"op_dispose","count":14,"duration":0},
{"type":"measure","name":"request","count":23,"duration":7},
{"type":"measure","name":"completion_resolve","count":8,"duration":8},
{"type":"mark","name":"folding_range","count":5,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":10,"duration":0},
{"type":"mark","name":"request","count":24,"args":{"id":25,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":82,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":82,"duration":0},
{"type":"mark","name":"op_script_version","count":83,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":83,"duration":0},
{"type":"mark","name":"op_get_length","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18"}},
{"type":"measure","name":"op_get_length","count":23,"duration":0},
{"type":"mark","name":"op_get_change_range","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":20,"oldVersion":"18","version":"21"}},
{"type":"measure","name":"op_get_change_range","count":18,"duration":0},
{"type":"mark","name":"op_get_length","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"21"}},
{"type":"measure","name":"op_get_length","count":24,"duration":0},
{"type":"mark","name":"op_get_text","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"21","start":0,"end":20}},
{"type":"measure","name":"op_get_text","count":20,"duration":0},
{"type":"measure","name":"request","count":24,"duration":0},
{"type":"measure","name":"folding_range","count":5,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":25,"args":{"id":26,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":84,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":84,"duration":0},
{"type":"mark","name":"op_script_version","count":85,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":85,"duration":0},
{"type":"mark","name":"op_script_version","count":86,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"update_diagnostics_lint","count":5,"duration":0},
{"type":"measure","name":"op_script_version","count":86,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":5,"duration":0},
{"type":"mark","name":"op_script_version","count":87,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":87,"duration":0},
{"type":"mark","name":"op_script_version","count":88,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":88,"duration":0},
{"type":"mark","name":"op_script_version","count":89,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":89,"duration":0},
{"type":"mark","name":"op_script_version","count":90,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":90,"duration":0},
{"type":"mark","name":"op_script_version","count":91,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":91,"duration":0},
{"type":"mark","name":"op_script_version","count":92,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":92,"duration":0},
{"type":"measure","name":"request","count":25,"duration":4},
{"type":"measure","name":"update_diagnostics_ts","count":5,"duration":4},
{"type":"measure","name":"update_diagnostics","count":5,"duration":4},
{"type":"mark","name":"code_action","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":20},"end":{"line":0,"character":20}},"context":{"diagnostics":[{"range":{"start":{"line":0,"character":13},"end":{"line":0,"character":20}},"severity":1,"code":2554,"source":"deno-ts","message":"Expected 1-2 arguments, but got 0.","relatedInformation":[]}]}}},
{"type":"mark","name":"get_line_index_sync","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":11,"duration":0},
{"type":"mark","name":"request","count":26,"args":{"id":27,"method":"getCodeFixes","specifier":"file:///Users/sr/lsp/mod.ts","startPosition":13,"endPosition":20,"errorCodes":["2554"]}},
{"type":"mark","name":"op_script_version","count":93,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":93,"duration":0},
{"type":"mark","name":"op_script_version","count":94,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":94,"duration":0},
{"type":"mark","name":"op_script_version","count":95,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":95,"duration":0},
{"type":"measure","name":"request","count":26,"duration":40},
{"type":"measure","name":"code_action","count":1,"duration":41},
{"type":"mark","name":"did_change","count":21,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":22},"contentChanges":[{"range":{"start":{"line":0,"character":17},"end":{"line":0,"character":20}},"rangeLength":3,"text":"URL"}]}},
{"type":"measure","name":"did_change","count":21,"duration":0},
{"type":"mark","name":"folding_range","count":6,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":12,"duration":0},
{"type":"mark","name":"request","count":27,"args":{"id":28,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":96,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":96,"duration":0},
{"type":"mark","name":"op_script_version","count":97,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":97,"duration":0},
{"type":"mark","name":"op_get_length","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"21"}},
{"type":"measure","name":"op_get_length","count":25,"duration":0},
{"type":"mark","name":"op_get_change_range","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":20,"oldVersion":"21","version":"22"}},
{"type":"measure","name":"op_get_change_range","count":19,"duration":0},
{"type":"mark","name":"op_get_length","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22"}},
{"type":"measure","name":"op_get_length","count":26,"duration":0},
{"type":"mark","name":"op_get_text","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22","start":0,"end":20}},
{"type":"measure","name":"op_get_text","count":21,"duration":0},
{"type":"measure","name":"request","count":27,"duration":0},
{"type":"measure","name":"folding_range","count":6,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":28,"args":{"id":29,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":98,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":98,"duration":0},
{"type":"mark","name":"op_script_version","count":99,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":99,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":6,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":6,"duration":0},
{"type":"mark","name":"op_script_version","count":100,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":100,"duration":0},
{"type":"mark","name":"op_get_length","count":27,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"21"}},
{"type":"measure","name":"op_get_length","count":27,"duration":0},
{"type":"mark","name":"op_get_change_range","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":20,"oldVersion":"21","version":"22"}},
{"type":"measure","name":"op_get_change_range","count":20,"duration":0},
{"type":"mark","name":"op_get_length","count":28,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22"}},
{"type":"measure","name":"op_get_length","count":28,"duration":0},
{"type":"mark","name":"op_get_text","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22","start":0,"end":20}},
{"type":"measure","name":"op_get_text","count":22,"duration":0},
{"type":"mark","name":"op_script_version","count":101,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":101,"duration":0},
{"type":"mark","name":"op_script_version","count":102,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":102,"duration":0},
{"type":"mark","name":"op_script_version","count":103,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":103,"duration":0},
{"type":"mark","name":"op_script_version","count":104,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":104,"duration":0},
{"type":"mark","name":"op_script_version","count":105,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":105,"duration":0},
{"type":"mark","name":"op_script_version","count":106,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":106,"duration":0},
{"type":"measure","name":"request","count":28,"duration":3},
{"type":"measure","name":"update_diagnostics_ts","count":6,"duration":4},
{"type":"measure","name":"update_diagnostics","count":6,"duration":4},
{"type":"mark","name":"did_change","count":22,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":23},"contentChanges":[{"range":{"start":{"line":0,"character":20},"end":{"line":0,"character":20}},"rangeLength":0,"text":"()"}]}},
{"type":"measure","name":"did_change","count":22,"duration":0},
{"type":"mark","name":"signature_help","count":1,"args":{"context":{"triggerKind":2,"triggerCharacter":"(","isRetrigger":false},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":21}}},
{"type":"mark","name":"get_line_index_sync","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":13,"duration":0},
{"type":"mark","name":"request","count":29,"args":{"id":30,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":21,"options":{"triggerReason":{"kind":"characterTyped","triggerCharacter":"("}}}},
{"type":"mark","name":"op_script_version","count":107,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":107,"duration":0},
{"type":"mark","name":"op_script_version","count":108,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":108,"duration":0},
{"type":"mark","name":"op_script_version","count":109,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":109,"duration":0},
{"type":"mark","name":"op_get_length","count":29,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22"}},
{"type":"measure","name":"op_get_length","count":29,"duration":0},
{"type":"mark","name":"op_get_change_range","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":20,"oldVersion":"22","version":"23"}},
{"type":"measure","name":"op_get_change_range","count":21,"duration":0},
{"type":"mark","name":"op_get_text","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23","start":20,"end":22}},
{"type":"measure","name":"op_get_text","count":23,"duration":0},
{"type":"mark","name":"op_dispose","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22"}},
{"type":"measure","name":"op_dispose","count":15,"duration":0},
{"type":"measure","name":"request","count":29,"duration":5},
{"type":"measure","name":"signature_help","count":1,"duration":5},
{"type":"mark","name":"folding_range","count":7,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":14,"duration":0},
{"type":"mark","name":"request","count":30,"args":{"id":31,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":110,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":110,"duration":0},
{"type":"mark","name":"op_script_version","count":111,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":111,"duration":0},
{"type":"mark","name":"op_get_length","count":30,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22"}},
{"type":"measure","name":"op_get_length","count":30,"duration":0},
{"type":"mark","name":"op_get_change_range","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":22,"oldVersion":"22","version":"23"}},
{"type":"measure","name":"op_get_change_range","count":22,"duration":0},
{"type":"mark","name":"op_get_length","count":31,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23"}},
{"type":"measure","name":"op_get_length","count":31,"duration":0},
{"type":"mark","name":"op_get_text","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23","start":0,"end":22}},
{"type":"measure","name":"op_get_text","count":24,"duration":0},
{"type":"measure","name":"request","count":30,"duration":0},
{"type":"measure","name":"folding_range","count":7,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":31,"args":{"id":32,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":112,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":112,"duration":0},
{"type":"mark","name":"op_script_version","count":113,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":113,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":7,"duration":0},
{"type":"mark","name":"op_script_version","count":114,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":114,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":7,"duration":0},
{"type":"mark","name":"op_script_version","count":115,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":115,"duration":0},
{"type":"mark","name":"op_script_version","count":116,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":116,"duration":0},
{"type":"mark","name":"op_script_version","count":117,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":117,"duration":0},
{"type":"mark","name":"op_script_version","count":118,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":118,"duration":0},
{"type":"mark","name":"op_script_version","count":119,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":119,"duration":0},
{"type":"mark","name":"op_script_version","count":120,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":120,"duration":0},
{"type":"measure","name":"request","count":31,"duration":3},
{"type":"measure","name":"update_diagnostics_ts","count":7,"duration":3},
{"type":"measure","name":"update_diagnostics","count":7,"duration":3},
{"type":"mark","name":"did_change","count":23,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":24},"contentChanges":[{"range":{"start":{"line":0,"character":21},"end":{"line":0,"character":21}},"rangeLength":0,"text":"\"\""}]}},
{"type":"measure","name":"did_change","count":23,"duration":0},
{"type":"mark","name":"completion","count":5,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":22},"context":{"triggerKind":2,"triggerCharacter":"\""}}},
{"type":"mark","name":"get_line_index_sync","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":15,"duration":0},
{"type":"mark","name":"request","count":32,"args":{"id":33,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":22,"preferences":{"includeCompletionsWithInsertText":true,"triggerCharacter":"\""}}},
{"type":"mark","name":"op_script_version","count":121,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":121,"duration":0},
{"type":"mark","name":"op_script_version","count":122,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":122,"duration":0},
{"type":"mark","name":"op_script_version","count":123,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":123,"duration":0},
{"type":"mark","name":"op_get_length","count":32,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23"}},
{"type":"measure","name":"op_get_length","count":32,"duration":0},
{"type":"mark","name":"op_get_change_range","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":22,"oldVersion":"23","version":"24"}},
{"type":"measure","name":"op_get_change_range","count":23,"duration":0},
{"type":"mark","name":"op_get_text","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24","start":21,"end":23}},
{"type":"measure","name":"op_get_text","count":25,"duration":0},
{"type":"mark","name":"op_dispose","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23"}},
{"type":"measure","name":"op_dispose","count":16,"duration":0},
{"type":"measure","name":"request","count":32,"duration":4},
{"type":"measure","name":"completion","count":5,"duration":5},
{"type":"mark","name":"signature_help","count":2,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":0}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":22}}},
{"type":"mark","name":"get_line_index_sync","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":16,"duration":0},
{"type":"mark","name":"request","count":33,"args":{"id":34,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":22,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":124,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":124,"duration":0},
{"type":"mark","name":"op_script_version","count":125,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":125,"duration":0},
{"type":"mark","name":"op_script_version","count":126,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":126,"duration":0},
{"type":"measure","name":"request","count":33,"duration":1},
{"type":"measure","name":"signature_help","count":2,"duration":1},
{"type":"mark","name":"folding_range","count":8,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":17,"duration":0},
{"type":"mark","name":"request","count":34,"args":{"id":35,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":127,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":127,"duration":0},
{"type":"mark","name":"op_script_version","count":128,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":128,"duration":0},
{"type":"mark","name":"op_get_length","count":33,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23"}},
{"type":"measure","name":"op_get_length","count":33,"duration":0},
{"type":"mark","name":"op_get_change_range","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":24,"oldVersion":"23","version":"24"}},
{"type":"measure","name":"op_get_change_range","count":24,"duration":0},
{"type":"mark","name":"op_get_length","count":34,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24"}},
{"type":"measure","name":"op_get_length","count":34,"duration":0},
{"type":"mark","name":"op_get_text","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24","start":0,"end":24}},
{"type":"measure","name":"op_get_text","count":26,"duration":0},
{"type":"measure","name":"request","count":34,"duration":0},
{"type":"measure","name":"folding_range","count":8,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":35,"args":{"id":36,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":129,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":129,"duration":0},
{"type":"mark","name":"op_script_version","count":130,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":130,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":8,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":8,"duration":0},
{"type":"mark","name":"op_script_version","count":131,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":131,"duration":0},
{"type":"mark","name":"op_script_version","count":132,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":132,"duration":0},
{"type":"mark","name":"op_script_version","count":133,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":133,"duration":0},
{"type":"mark","name":"op_script_version","count":134,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":134,"duration":0},
{"type":"mark","name":"op_script_version","count":135,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":135,"duration":0},
{"type":"mark","name":"op_script_version","count":136,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":136,"duration":0},
{"type":"mark","name":"op_script_version","count":137,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":137,"duration":0},
{"type":"measure","name":"request","count":35,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":8,"duration":3},
{"type":"measure","name":"update_diagnostics","count":8,"duration":3},
{"type":"mark","name":"code_action","count":2,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":22},"end":{"line":0,"character":22}},"context":{"diagnostics":[]}}},
{"type":"measure","name":"code_action","count":2,"duration":0},
{"type":"mark","name":"did_change","count":24,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":25},"contentChanges":[{"range":{"start":{"line":0,"character":22},"end":{"line":0,"character":22}},"rangeLength":0,"text":"."}]}},
{"type":"measure","name":"did_change","count":24,"duration":0},
{"type":"mark","name":"completion","count":6,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":23},"context":{"triggerKind":2,"triggerCharacter":"."}}},
{"type":"mark","name":"get_line_index_sync","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":18,"duration":0},
{"type":"mark","name":"request","count":36,"args":{"id":37,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":23,"preferences":{"includeCompletionsWithInsertText":true,"triggerCharacter":"."}}},
{"type":"mark","name":"op_script_version","count":138,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":138,"duration":0},
{"type":"mark","name":"op_script_version","count":139,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":139,"duration":0},
{"type":"mark","name":"op_script_version","count":140,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":140,"duration":0},
{"type":"mark","name":"op_get_length","count":35,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24"}},
{"type":"measure","name":"op_get_length","count":35,"duration":0},
{"type":"mark","name":"op_get_change_range","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":24,"oldVersion":"24","version":"25"}},
{"type":"measure","name":"op_get_change_range","count":25,"duration":0},
{"type":"mark","name":"op_get_text","count":27,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25","start":22,"end":23}},
{"type":"measure","name":"op_get_text","count":27,"duration":0},
{"type":"mark","name":"op_dispose","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24"}},
{"type":"measure","name":"op_dispose","count":17,"duration":0},
{"type":"measure","name":"request","count":36,"duration":3},
{"type":"measure","name":"completion","count":6,"duration":4},
{"type":"mark","name":"signature_help","count":3,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":0}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":23}}},
{"type":"mark","name":"get_line_index_sync","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":19,"duration":0},
{"type":"mark","name":"request","count":37,"args":{"id":38,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":23,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":141,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":141,"duration":0},
{"type":"mark","name":"op_script_version","count":142,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":142,"duration":0},
{"type":"mark","name":"op_script_version","count":143,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":143,"duration":0},
{"type":"measure","name":"request","count":37,"duration":1},
{"type":"measure","name":"signature_help","count":3,"duration":2},
{"type":"mark","name":"folding_range","count":9,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":20,"duration":0},
{"type":"mark","name":"request","count":38,"args":{"id":39,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":144,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":144,"duration":0},
{"type":"mark","name":"op_script_version","count":145,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":145,"duration":0},
{"type":"mark","name":"op_get_length","count":36,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24"}},
{"type":"measure","name":"op_get_length","count":36,"duration":0},
{"type":"mark","name":"op_get_change_range","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":25,"oldVersion":"24","version":"25"}},
{"type":"measure","name":"op_get_change_range","count":26,"duration":0},
{"type":"mark","name":"op_get_length","count":37,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25"}},
{"type":"measure","name":"op_get_length","count":37,"duration":0},
{"type":"mark","name":"op_get_text","count":28,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25","start":0,"end":25}},
{"type":"measure","name":"op_get_text","count":28,"duration":0},
{"type":"measure","name":"request","count":38,"duration":0},
{"type":"measure","name":"folding_range","count":9,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":39,"args":{"id":40,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":146,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":146,"duration":0},
{"type":"mark","name":"op_script_version","count":147,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":147,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":9,"duration":0},
{"type":"mark","name":"op_script_version","count":148,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":148,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":9,"duration":0},
{"type":"mark","name":"op_script_version","count":149,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":149,"duration":0},
{"type":"mark","name":"op_script_version","count":150,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":150,"duration":0},
{"type":"mark","name":"op_script_version","count":151,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":151,"duration":0},
{"type":"mark","name":"op_script_version","count":152,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":152,"duration":0},
{"type":"mark","name":"op_script_version","count":153,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":153,"duration":0},
{"type":"mark","name":"op_script_version","count":154,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":154,"duration":0},
{"type":"measure","name":"request","count":39,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":9,"duration":2},
{"type":"measure","name":"update_diagnostics","count":9,"duration":2},
{"type":"mark","name":"code_action","count":3,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":23},"end":{"line":0,"character":23}},"context":{"diagnostics":[]}}},
{"type":"measure","name":"code_action","count":3,"duration":0},
{"type":"mark","name":"signature_help","count":4,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":0}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":24}}},
{"type":"mark","name":"get_line_index_sync","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":21,"duration":0},
{"type":"mark","name":"request","count":40,"args":{"id":41,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":24,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":155,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":155,"duration":0},
{"type":"mark","name":"op_script_version","count":156,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":156,"duration":0},
{"type":"mark","name":"op_script_version","count":157,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":157,"duration":0},
{"type":"measure","name":"request","count":40,"duration":1},
{"type":"measure","name":"signature_help","count":4,"duration":1},
{"type":"mark","name":"code_action","count":4,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":24},"end":{"line":0,"character":24}},"context":{"diagnostics":[]}}},
{"type":"measure","name":"code_action","count":4,"duration":0},
{"type":"mark","name":"did_change","count":25,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":26},"contentChanges":[{"range":{"start":{"line":0,"character":24},"end":{"line":0,"character":24}},"rangeLength":0,"text":","}]}},
{"type":"measure","name":"did_change","count":25,"duration":0},
{"type":"mark","name":"did_change","count":26,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":27},"contentChanges":[{"range":{"start":{"line":0,"character":25},"end":{"line":0,"character":25}},"rangeLength":0,"text":" "}]}},
{"type":"measure","name":"did_change","count":26,"duration":0},
{"type":"mark","name":"signature_help","count":5,"args":{"context":{"triggerKind":2,"triggerCharacter":",","isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":0}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":26}}},
{"type":"mark","name":"get_line_index_sync","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":22,"duration":0},
{"type":"mark","name":"request","count":41,"args":{"id":42,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":26,"options":{"triggerReason":{"kind":"characterTyped","triggerCharacter":","}}}},
{"type":"mark","name":"op_script_version","count":158,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":158,"duration":0},
{"type":"mark","name":"op_script_version","count":159,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":159,"duration":0},
{"type":"mark","name":"op_script_version","count":160,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":160,"duration":0},
{"type":"mark","name":"op_get_length","count":38,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25"}},
{"type":"measure","name":"op_get_length","count":38,"duration":0},
{"type":"mark","name":"op_get_change_range","count":27,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":25,"oldVersion":"25","version":"27"}},
{"type":"measure","name":"op_get_change_range","count":27,"duration":0},
{"type":"mark","name":"op_get_text","count":29,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27","start":24,"end":26}},
{"type":"measure","name":"op_get_text","count":29,"duration":0},
{"type":"mark","name":"op_dispose","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25"}},
{"type":"measure","name":"op_dispose","count":18,"duration":0},
{"type":"measure","name":"request","count":41,"duration":4},
{"type":"measure","name":"signature_help","count":5,"duration":5},
{"type":"mark","name":"folding_range","count":10,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":23,"duration":0},
{"type":"mark","name":"request","count":42,"args":{"id":43,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":161,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":161,"duration":0},
{"type":"mark","name":"op_script_version","count":162,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":162,"duration":0},
{"type":"mark","name":"op_get_length","count":39,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25"}},
{"type":"measure","name":"op_get_length","count":39,"duration":0},
{"type":"mark","name":"op_get_change_range","count":28,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":27,"oldVersion":"25","version":"27"}},
{"type":"measure","name":"op_get_change_range","count":28,"duration":0},
{"type":"mark","name":"op_get_length","count":40,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27"}},
{"type":"measure","name":"op_get_length","count":40,"duration":0},
{"type":"mark","name":"op_get_text","count":30,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27","start":0,"end":27}},
{"type":"measure","name":"op_get_text","count":30,"duration":0},
{"type":"measure","name":"request","count":42,"duration":0},
{"type":"measure","name":"folding_range","count":10,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":43,"args":{"id":44,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":163,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":163,"duration":0},
{"type":"mark","name":"op_script_version","count":164,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":164,"duration":0},
{"type":"mark","name":"op_script_version","count":165,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":165,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":10,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":10,"duration":0},
{"type":"mark","name":"op_script_version","count":166,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":166,"duration":0},
{"type":"mark","name":"op_script_version","count":167,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":167,"duration":0},
{"type":"mark","name":"op_script_version","count":168,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":168,"duration":0},
{"type":"mark","name":"op_script_version","count":169,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":169,"duration":0},
{"type":"mark","name":"op_script_version","count":170,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":170,"duration":0},
{"type":"mark","name":"op_script_version","count":171,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":171,"duration":0},
{"type":"measure","name":"request","count":43,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":10,"duration":2},
{"type":"measure","name":"update_diagnostics","count":10,"duration":2},
{"type":"mark","name":"code_action","count":5,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":26},"end":{"line":0,"character":26}},"context":{"diagnostics":[]}}},
{"type":"measure","name":"code_action","count":5,"duration":0},
{"type":"mark","name":"did_change","count":27,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":28},"contentChanges":[{"range":{"start":{"line":0,"character":26},"end":{"line":0,"character":26}},"rangeLength":0,"text":"i"}]}},
{"type":"measure","name":"did_change","count":27,"duration":0},
{"type":"mark","name":"completion","count":7,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":27},"context":{"triggerKind":1}}},
{"type":"mark","name":"get_line_index_sync","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":24,"duration":0},
{"type":"mark","name":"request","count":44,"args":{"id":45,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":27,"preferences":{"includeCompletionsWithInsertText":true}}},
{"type":"mark","name":"op_script_version","count":172,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":172,"duration":0},
{"type":"mark","name":"op_script_version","count":173,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":173,"duration":0},
{"type":"mark","name":"op_script_version","count":174,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":174,"duration":0},
{"type":"mark","name":"op_get_length","count":41,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27"}},
{"type":"measure","name":"op_get_length","count":41,"duration":0},
{"type":"mark","name":"op_get_change_range","count":29,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":27,"oldVersion":"27","version":"28"}},
{"type":"measure","name":"op_get_change_range","count":29,"duration":0},
{"type":"mark","name":"op_get_text","count":31,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"28","start":26,"end":27}},
{"type":"measure","name":"op_get_text","count":31,"duration":0},
{"type":"mark","name":"op_dispose","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27"}},
{"type":"measure","name":"op_dispose","count":19,"duration":0},
{"type":"measure","name":"request","count":44,"duration":7},
{"type":"measure","name":"completion","count":7,"duration":21},
{"type":"mark","name":"completion_resolve","count":9,"args":{"label":"if","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"if","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":45,"args":{"id":46,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"if"}}},
{"type":"mark","name":"op_script_version","count":175,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":175,"duration":0},
{"type":"mark","name":"op_script_version","count":176,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":176,"duration":0},
{"type":"mark","name":"op_script_version","count":177,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":177,"duration":0},
{"type":"measure","name":"request","count":45,"duration":2},
{"type":"measure","name":"completion_resolve","count":9,"duration":3},
{"type":"mark","name":"did_change","count":28,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":29},"contentChanges":[{"range":{"start":{"line":0,"character":27},"end":{"line":0,"character":27}},"rangeLength":0,"text":"m"}]}},
{"type":"measure","name":"did_change","count":28,"duration":0},
{"type":"mark","name":"completion_resolve","count":10,"args":{"label":"implements","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"implements","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":46,"args":{"id":47,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"implements"}}},
{"type":"mark","name":"op_script_version","count":178,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":178,"duration":0},
{"type":"mark","name":"op_script_version","count":179,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":179,"duration":0},
{"type":"mark","name":"op_script_version","count":180,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":180,"duration":0},
{"type":"mark","name":"op_get_length","count":42,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"28"}},
{"type":"measure","name":"op_get_length","count":42,"duration":0},
{"type":"mark","name":"op_get_change_range","count":30,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":28,"oldVersion":"28","version":"29"}},
{"type":"measure","name":"op_get_change_range","count":30,"duration":0},
{"type":"mark","name":"op_get_text","count":32,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"29","start":27,"end":28}},
{"type":"measure","name":"op_get_text","count":32,"duration":0},
{"type":"mark","name":"op_dispose","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"28"}},
{"type":"measure","name":"op_dispose","count":20,"duration":0},
{"type":"measure","name":"request","count":46,"duration":4},
{"type":"measure","name":"completion_resolve","count":10,"duration":5},
{"type":"mark","name":"signature_help","count":6,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":1}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":28}}},
{"type":"mark","name":"get_line_index_sync","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":25,"duration":0},
{"type":"mark","name":"request","count":47,"args":{"id":48,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":28,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":181,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":181,"duration":0},
{"type":"mark","name":"op_script_version","count":182,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":182,"duration":0},
{"type":"mark","name":"op_script_version","count":183,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":183,"duration":0},
{"type":"measure","name":"request","count":47,"duration":1},
{"type":"measure","name":"signature_help","count":6,"duration":2},
{"type":"mark","name":"did_change","count":29,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":30},"contentChanges":[{"range":{"start":{"line":0,"character":28},"end":{"line":0,"character":28}},"rangeLength":0,"text":"p"}]}},
{"type":"measure","name":"did_change","count":29,"duration":0},
{"type":"mark","name":"did_change","count":30,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":31},"contentChanges":[{"range":{"start":{"line":0,"character":29},"end":{"line":0,"character":29}},"rangeLength":0,"text":"o"}]}},
{"type":"measure","name":"did_change","count":30,"duration":0},
{"type":"mark","name":"completion_resolve","count":11,"args":{"label":"import","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"import","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":48,"args":{"id":49,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"import"}}},
{"type":"mark","name":"op_script_version","count":184,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":184,"duration":0},
{"type":"mark","name":"op_script_version","count":185,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":185,"duration":0},
{"type":"mark","name":"op_script_version","count":186,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":186,"duration":0},
{"type":"mark","name":"op_get_length","count":43,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"29"}},
{"type":"measure","name":"op_get_length","count":43,"duration":0},
{"type":"mark","name":"op_get_change_range","count":31,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":29,"oldVersion":"29","version":"31"}},
{"type":"measure","name":"op_get_change_range","count":31,"duration":0},
{"type":"mark","name":"op_get_text","count":33,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"31","start":28,"end":30}},
{"type":"measure","name":"op_get_text","count":33,"duration":0},
{"type":"mark","name":"op_dispose","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"29"}},
{"type":"measure","name":"op_dispose","count":21,"duration":0},
{"type":"measure","name":"request","count":48,"duration":4},
{"type":"measure","name":"completion_resolve","count":11,"duration":4},
{"type":"mark","name":"did_change","count":31,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":32},"contentChanges":[{"range":{"start":{"line":0,"character":30},"end":{"line":0,"character":30}},"rangeLength":0,"text":"r"}]}},
{"type":"measure","name":"did_change","count":31,"duration":0},
{"type":"mark","name":"signature_help","count":7,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":1}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":31}}},
{"type":"mark","name":"get_line_index_sync","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":26,"duration":0},
{"type":"mark","name":"request","count":49,"args":{"id":50,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":31,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":187,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":187,"duration":0},
{"type":"mark","name":"op_script_version","count":188,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":188,"duration":0},
{"type":"mark","name":"op_script_version","count":189,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":189,"duration":0},
{"type":"mark","name":"op_get_length","count":44,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"31"}},
{"type":"measure","name":"op_get_length","count":44,"duration":0},
{"type":"mark","name":"op_get_change_range","count":32,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":31,"oldVersion":"31","version":"32"}},
{"type":"measure","name":"op_get_change_range","count":32,"duration":0},
{"type":"mark","name":"op_get_text","count":34,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"32","start":30,"end":31}},
{"type":"measure","name":"op_get_text","count":34,"duration":0},
{"type":"mark","name":"op_dispose","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"31"}},
{"type":"measure","name":"op_dispose","count":22,"duration":0},
{"type":"measure","name":"request","count":49,"duration":6},
{"type":"measure","name":"signature_help","count":7,"duration":6},
{"type":"mark","name":"did_change","count":32,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":33},"contentChanges":[{"range":{"start":{"line":0,"character":31},"end":{"line":0,"character":31}},"rangeLength":0,"text":"t"}]}},
{"type":"measure","name":"did_change","count":32,"duration":0},
{"type":"mark","name":"signature_help","count":8,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":1}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":32}}},
{"type":"mark","name":"get_line_index_sync","count":27,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":27,"duration":0},
{"type":"mark","name":"request","count":50,"args":{"id":51,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":32,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":190,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":190,"duration":0},
{"type":"mark","name":"op_script_version","count":191,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":191,"duration":0},
{"type":"mark","name":"op_script_version","count":192,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":192,"duration":0},
{"type":"mark","name":"op_get_length","count":45,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"32"}},
{"type":"measure","name":"op_get_length","count":45,"duration":0},
{"type":"mark","name":"op_get_change_range","count":33,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":32,"oldVersion":"32","version":"33"}},
{"type":"measure","name":"op_get_change_range","count":33,"duration":0},
{"type":"mark","name":"op_get_text","count":35,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"33","start":31,"end":32}},
{"type":"measure","name":"op_get_text","count":35,"duration":0},
{"type":"mark","name":"op_dispose","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"32"}},
{"type":"measure","name":"op_dispose","count":23,"duration":0},
{"type":"measure","name":"request","count":50,"duration":3},
{"type":"measure","name":"signature_help","count":8,"duration":4},
{"type":"mark","name":"folding_range","count":11,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":28,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":28,"duration":0},
{"type":"mark","name":"request","count":51,"args":{"id":52,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":193,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":193,"duration":0},
{"type":"mark","name":"op_script_version","count":194,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":194,"duration":0},
{"type":"mark","name":"op_get_length","count":46,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27"}},
{"type":"measure","name":"op_get_length","count":46,"duration":0},
{"type":"mark","name":"op_get_change_range","count":34,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":33,"oldVersion":"27","version":"33"}},
{"type":"measure","name":"op_get_change_range","count":34,"duration":0},
{"type":"mark","name":"op_get_length","count":47,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"33"}},
{"type":"measure","name":"op_get_length","count":47,"duration":0},
{"type":"mark","name":"op_get_text","count":36,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"33","start":0,"end":33}},
{"type":"measure","name":"op_get_text","count":36,"duration":0},
{"type":"measure","name":"request","count":51,"duration":0},
{"type":"measure","name":"folding_range","count":11,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":52,"args":{"id":53,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":11,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":11,"duration":0},
{"type":"mark","name":"op_script_version","count":195,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":195,"duration":0},
{"type":"mark","name":"op_script_version","count":196,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":196,"duration":0},
{"type":"mark","name":"op_script_version","count":197,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":197,"duration":0},
{"type":"mark","name":"op_script_version","count":198,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":198,"duration":0},
{"type":"mark","name":"op_script_version","count":199,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":199,"duration":0},
{"type":"mark","name":"op_script_version","count":200,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":200,"duration":0},
{"type":"mark","name":"op_script_version","count":201,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":201,"duration":0},
{"type":"mark","name":"op_script_version","count":202,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":202,"duration":0},
{"type":"mark","name":"op_script_version","count":203,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":203,"duration":0},
{"type":"measure","name":"request","count":52,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":11,"duration":3},
{"type":"measure","name":"update_diagnostics","count":11,"duration":3},
{"type":"mark","name":"code_action","count":6,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":32},"end":{"line":0,"character":32}},"context":{"diagnostics":[{"range":{"start":{"line":0,"character":26},"end":{"line":0,"character":32}},"severity":1,"code":1135,"source":"deno-ts","message":"Argument expression expected."}]}}},
{"type":"mark","name":"get_line_index_sync","count":29,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":29,"duration":0},
{"type":"mark","name":"request","count":53,"args":{"id":54,"method":"getCodeFixes","specifier":"file:///Users/sr/lsp/mod.ts","startPosition":26,"endPosition":32,"errorCodes":["1135"]}},
{"type":"mark","name":"op_script_version","count":204,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":204,"duration":0},
{"type":"mark","name":"op_script_version","count":205,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":205,"duration":0},
{"type":"mark","name":"op_script_version","count":206,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":206,"duration":0},
{"type":"measure","name":"request","count":53,"duration":0},
{"type":"measure","name":"code_action","count":6,"duration":0},
{"type":"mark","name":"did_change","count":33,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":34},"contentChanges":[{"range":{"start":{"line":0,"character":26},"end":{"line":0,"character":32}},"rangeLength":6,"text":"import"}]}},
{"type":"measure","name":"did_change","count":33,"duration":0},
{"type":"mark","name":"signature_help","count":9,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":1}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":32}}},
{"type":"mark","name":"get_line_index_sync","count":30,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":30,"duration":0},
{"type":"mark","name":"request","count":54,"args":{"id":55,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":32,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":207,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":207,"duration":0},
{"type":"mark","name":"op_script_version","count":208,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":208,"duration":0},
{"type":"mark","name":"op_script_version","count":209,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":209,"duration":0},
{"type":"mark","name":"op_get_length","count":48,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"33"}},
{"type":"measure","name":"op_get_length","count":48,"duration":0},
{"type":"mark","name":"op_get_change_range","count":35,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":33,"oldVersion":"33","version":"34"}},
{"type":"measure","name":"op_get_change_range","count":35,"duration":0},
{"type":"mark","name":"op_get_length","count":49,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34"}},
{"type":"measure","name":"op_get_length","count":49,"duration":0},
{"type":"mark","name":"op_get_text","count":37,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34","start":0,"end":33}},
{"type":"measure","name":"op_get_text","count":37,"duration":0},
{"type":"measure","name":"request","count":54,"duration":2},
{"type":"measure","name":"signature_help","count":9,"duration":3},
{"type":"mark","name":"folding_range","count":12,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":31,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":31,"duration":0},
{"type":"mark","name":"request","count":55,"args":{"id":56,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":210,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":210,"duration":0},
{"type":"mark","name":"op_script_version","count":211,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":211,"duration":0},
{"type":"mark","name":"op_get_length","count":50,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"33"}},
{"type":"measure","name":"op_get_length","count":50,"duration":0},
{"type":"mark","name":"op_get_change_range","count":36,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":33,"oldVersion":"33","version":"34"}},
{"type":"measure","name":"op_get_change_range","count":36,"duration":0},
{"type":"mark","name":"op_get_length","count":51,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34"}},
{"type":"measure","name":"op_get_length","count":51,"duration":0},
{"type":"mark","name":"op_get_text","count":38,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34","start":0,"end":33}},
{"type":"measure","name":"op_get_text","count":38,"duration":0},
{"type":"measure","name":"request","count":55,"duration":0},
{"type":"measure","name":"folding_range","count":12,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":56,"args":{"id":57,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":12,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":12,"duration":0},
{"type":"mark","name":"op_script_version","count":212,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":212,"duration":0},
{"type":"mark","name":"op_script_version","count":213,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":213,"duration":0},
{"type":"mark","name":"op_script_version","count":214,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":214,"duration":0},
{"type":"mark","name":"op_script_version","count":215,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":215,"duration":0},
{"type":"mark","name":"op_script_version","count":216,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":216,"duration":0},
{"type":"mark","name":"op_script_version","count":217,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":217,"duration":0},
{"type":"mark","name":"op_script_version","count":218,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":218,"duration":0},
{"type":"mark","name":"op_script_version","count":219,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":219,"duration":0},
{"type":"mark","name":"op_script_version","count":220,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":220,"duration":0},
{"type":"measure","name":"request","count":56,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":12,"duration":2},
{"type":"measure","name":"update_diagnostics","count":12,"duration":2},
{"type":"mark","name":"did_change","count":34,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":35},"contentChanges":[{"range":{"start":{"line":0,"character":32},"end":{"line":0,"character":32}},"rangeLength":0,"text":"."}]}},
{"type":"measure","name":"did_change","count":34,"duration":0},
{"type":"mark","name":"completion","count":8,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":33},"context":{"triggerKind":2,"triggerCharacter":"."}}},
{"type":"mark","name":"get_line_index_sync","count":32,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":32,"duration":0},
{"type":"mark","name":"request","count":57,"args":{"id":58,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":33,"preferences":{"includeCompletionsWithInsertText":true,"triggerCharacter":"."}}},
{"type":"mark","name":"op_script_version","count":221,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":221,"duration":0},
{"type":"mark","name":"op_script_version","count":222,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":222,"duration":0},
{"type":"mark","name":"op_script_version","count":223,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":223,"duration":0},
{"type":"mark","name":"op_get_length","count":52,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34"}},
{"type":"measure","name":"op_get_length","count":52,"duration":0},
{"type":"mark","name":"op_get_change_range","count":37,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":33,"oldVersion":"34","version":"35"}},
{"type":"measure","name":"op_get_change_range","count":37,"duration":0},
{"type":"mark","name":"op_get_text","count":39,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35","start":32,"end":33}},
{"type":"measure","name":"op_get_text","count":39,"duration":0},
{"type":"mark","name":"op_dispose","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34"}},
{"type":"measure","name":"op_dispose","count":24,"duration":0},
{"type":"measure","name":"request","count":57,"duration":9},
{"type":"measure","name":"completion","count":8,"duration":10},
{"type":"mark","name":"completion_resolve","count":12,"args":{"label":"meta","kind":5,"sortText":"1","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":33,"name":"meta","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":58,"args":{"id":59,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":33,"name":"meta"}}},
{"type":"mark","name":"op_script_version","count":224,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":224,"duration":0},
{"type":"mark","name":"op_script_version","count":225,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":225,"duration":0},
{"type":"mark","name":"op_script_version","count":226,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":226,"duration":0},
Unable to get completion info from TypeScript: TypeError: Cannot read property 'kind' of undefined
at getRootDeclaration (deno:cli/tsc/00_typescript.js:16600:21)
at Object.isCatchClauseVariableDeclarationOrBindingElement (deno:cli/tsc/00_typescript.js:14152:20)
at getTypeOfVariableOrParameterOrPropertyWorker (deno:cli/tsc/00_typescript.js:51624:20)
at getTypeOfVariableOrParameterOrProperty (deno:cli/tsc/00_typescript.js:51587:28)
at getTypeOfSymbol (deno:cli/tsc/00_typescript.js:51930:24)
at getTypeOfSymbolAtLocation (deno:cli/tsc/00_typescript.js:65150:20)
at Object.getTypeOfSymbolAtLocation (deno:cli/tsc/00_typescript.js:44091:35)
at Object.getSymbolDisplayPartsDocumentationAndSymbolKind (deno:cli/tsc/00_typescript.js:131138:97)
at deno:cli/tsc/00_typescript.js:120534:41
at Object.runWithCancellationToken (deno:cli/tsc/00_typescript.js:44374:28)
[Error - 1:11:57 PM] Request completionItem/resolve failed.
Message: Internal error
Code: -32603
{"type":"mark","name":"signature_help","count":10,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":1}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":33}}},
{"type":"mark","name":"get_line_index_sync","count":33,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":33,"duration":0},
{"type":"mark","name":"request","count":59,"args":{"id":60,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":33,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":227,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":227,"duration":0},
{"type":"mark","name":"op_script_version","count":228,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":228,"duration":0},
{"type":"mark","name":"op_script_version","count":229,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":229,"duration":0},
Failed to request to tsserver: Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70605:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70580:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72941:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72832:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72479:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69001:35)
at chooseOverload (deno:cli/tsc/00_typescript.js:69510:25)
at resolveCall (deno:cli/tsc/00_typescript.js:69384:26)
at resolveNewExpression (deno:cli/tsc/00_typescript.js:69853:24)
at resolveSignature (deno:cli/tsc/00_typescript.js:70165:28)
[Error - 1:11:57 PM] Request textDocument/signatureHelp failed.
Message: Invalid request
Code: -32600
{"type":"mark","name":"folding_range","count":13,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":34,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":34,"duration":0},
{"type":"mark","name":"request","count":60,"args":{"id":61,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":230,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":230,"duration":0},
{"type":"mark","name":"op_script_version","count":231,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":231,"duration":0},
{"type":"mark","name":"op_get_length","count":53,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34"}},
{"type":"measure","name":"op_get_length","count":53,"duration":0},
{"type":"mark","name":"op_get_change_range","count":38,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":34,"oldVersion":"34","version":"35"}},
{"type":"measure","name":"op_get_change_range","count":38,"duration":0},
{"type":"mark","name":"op_get_length","count":54,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35"}},
{"type":"measure","name":"op_get_length","count":54,"duration":0},
{"type":"mark","name":"op_get_text","count":40,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35","start":0,"end":34}},
{"type":"measure","name":"op_get_text","count":40,"duration":0},
{"type":"measure","name":"request","count":60,"duration":0},
{"type":"measure","name":"folding_range","count":13,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":61,"args":{"id":62,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":13,"duration":0},
{"type":"mark","name":"op_script_version","count":232,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":232,"duration":0},
{"type":"mark","name":"op_script_version","count":233,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":233,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":13,"duration":0},
{"type":"mark","name":"op_script_version","count":234,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":234,"duration":0},
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70605:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70580:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72941:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72832:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72479:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69001:35)
at chooseOverload (deno:cli/tsc/00_typescript.js:69510:25)
at resolveCall (deno:cli/tsc/00_typescript.js:69384:26)
at resolveNewExpression (deno:cli/tsc/00_typescript.js:69853:24)
at resolveSignature (deno:cli/tsc/00_typescript.js:70165:28)
{"type":"measure","name":"request","count":61,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":13,"duration":2},
{"type":"measure","name":"update_diagnostics","count":13,"duration":2},
{"type":"mark","name":"did_change","count":35,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":36},"contentChanges":[{"range":{"start":{"line":0,"character":33},"end":{"line":0,"character":33}},"rangeLength":0,"text":"m"}]}},
{"type":"measure","name":"did_change","count":35,"duration":0},
{"type":"mark","name":"folding_range","count":14,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":35,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":35,"duration":0},
{"type":"mark","name":"request","count":62,"args":{"id":63,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":235,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":235,"duration":0},
{"type":"mark","name":"op_script_version","count":236,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":236,"duration":0},
{"type":"mark","name":"op_get_length","count":55,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35"}},
{"type":"measure","name":"op_get_length","count":55,"duration":0},
{"type":"mark","name":"op_get_change_range","count":39,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":34,"oldVersion":"35","version":"36"}},
{"type":"measure","name":"op_get_change_range","count":39,"duration":0},
{"type":"mark","name":"op_get_text","count":41,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36","start":33,"end":34}},
{"type":"measure","name":"op_get_text","count":41,"duration":0},
{"type":"mark","name":"op_dispose","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35"}},
{"type":"measure","name":"op_dispose","count":25,"duration":0},
{"type":"measure","name":"request","count":62,"duration":0},
{"type":"measure","name":"folding_range","count":14,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":63,"args":{"id":64,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":14,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":14,"duration":0},
{"type":"mark","name":"op_script_version","count":237,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":237,"duration":0},
{"type":"mark","name":"op_script_version","count":238,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":238,"duration":0},
{"type":"mark","name":"op_script_version","count":239,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":239,"duration":0},
{"type":"mark","name":"op_get_length","count":56,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35"}},
{"type":"measure","name":"op_get_length","count":56,"duration":0},
{"type":"mark","name":"op_get_change_range","count":40,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":35,"oldVersion":"35","version":"36"}},
{"type":"measure","name":"op_get_change_range","count":40,"duration":0},
{"type":"mark","name":"op_get_length","count":57,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36"}},
{"type":"measure","name":"op_get_length","count":57,"duration":0},
{"type":"mark","name":"op_get_text","count":42,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36","start":0,"end":35}},
{"type":"measure","name":"op_get_text","count":42,"duration":0},
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70605:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70580:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72941:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72832:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72479:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69001:35)
at chooseOverload (deno:cli/tsc/00_typescript.js:69510:25)
at resolveCall (deno:cli/tsc/00_typescript.js:69384:26)
at resolveNewExpression (deno:cli/tsc/00_typescript.js:69853:24)
at resolveSignature (deno:cli/tsc/00_typescript.js:70165:28)
{"type":"measure","name":"request","count":63,"duration":5},
{"type":"measure","name":"update_diagnostics_ts","count":14,"duration":6},
{"type":"measure","name":"update_diagnostics","count":14,"duration":6},
{"type":"mark","name":"did_change","count":36,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":37},"contentChanges":[{"range":{"start":{"line":0,"character":33},"end":{"line":0,"character":34}},"rangeLength":1,"text":"meta"}]}},
{"type":"measure","name":"did_change","count":36,"duration":0},
{"type":"mark","name":"folding_range","count":15,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":36,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":36,"duration":0},
{"type":"mark","name":"request","count":64,"args":{"id":65,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":240,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":240,"duration":0},
{"type":"mark","name":"op_script_version","count":241,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":241,"duration":0},
{"type":"mark","name":"op_get_length","count":58,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36"}},
{"type":"measure","name":"op_get_length","count":58,"duration":0},
{"type":"mark","name":"op_get_change_range","count":41,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":35,"oldVersion":"36","version":"37"}},
{"type":"measure","name":"op_get_change_range","count":41,"duration":0},
{"type":"mark","name":"op_get_text","count":43,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"37","start":34,"end":37}},
{"type":"measure","name":"op_get_text","count":43,"duration":0},
{"type":"mark","name":"op_dispose","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36"}},
{"type":"measure","name":"op_dispose","count":26,"duration":0},
{"type":"measure","name":"request","count":64,"duration":0},
{"type":"measure","name":"folding_range","count":15,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":65,"args":{"id":66,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":242,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":242,"duration":0},
{"type":"mark","name":"op_script_version","count":243,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":243,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":15,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":15,"duration":0},
{"type":"mark","name":"op_script_version","count":244,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":244,"duration":0},
{"type":"mark","name":"op_get_length","count":59,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36"}},
{"type":"measure","name":"op_get_length","count":59,"duration":0},
{"type":"mark","name":"op_get_change_range","count":42,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":38,"oldVersion":"36","version":"37"}},
{"type":"measure","name":"op_get_change_range","count":42,"duration":0},
{"type":"mark","name":"op_get_length","count":60,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"37"}},
{"type":"measure","name":"op_get_length","count":60,"duration":0},
{"type":"mark","name":"op_get_text","count":44,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"37","start":0,"end":38}},
{"type":"measure","name":"op_get_text","count":44,"duration":0},
{"type":"mark","name":"op_script_version","count":245,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":245,"duration":0},
{"type":"mark","name":"op_script_version","count":246,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":246,"duration":0},
{"type":"mark","name":"op_script_version","count":247,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":247,"duration":0},
{"type":"mark","name":"op_script_version","count":248,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":248,"duration":0},
{"type":"mark","name":"op_script_version","count":249,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":249,"duration":0},
{"type":"mark","name":"op_script_version","count":250,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":250,"duration":0},
{"type":"measure","name":"request","count":65,"duration":9},
{"type":"measure","name":"update_diagnostics_ts","count":15,"duration":9},
{"type":"measure","name":"update_diagnostics","count":15,"duration":10},
{"type":"mark","name":"code_action","count":7,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":37},"end":{"line":0,"character":37}},"context":{"diagnostics":[{"range":{"start":{"line":0,"character":26},"end":{"line":0,"character":37}},"severity":1,"code":2345,"source":"deno-ts","message":"Argument of type 'ImportMeta' is not assignable to parameter of type 'string | URL | undefined'.\n Type 'ImportMeta' is missing the following properties from type 'URL': hash, host, hostname, href, and 9 more."}]}}},
{"type":"mark","name":"get_line_index_sync","count":37,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":37,"duration":0},
{"type":"mark","name":"request","count":66,"args":{"id":67,"method":"getCodeFixes","specifier":"file:///Users/sr/lsp/mod.ts","startPosition":26,"endPosition":37,"errorCodes":["2345"]}},
{"type":"mark","name":"op_script_version","count":251,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":251,"duration":0},
{"type":"mark","name":"op_script_version","count":252,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":252,"duration":0},
{"type":"mark","name":"op_script_version","count":253,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":253,"duration":0},
{"type":"measure","name":"request","count":66,"duration":1},
{"type":"measure","name":"code_action","count":7,"duration":2},
{"type":"mark","name":"document_symbol","count":2,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":38,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":38,"duration":0},
{"type":"mark","name":"request","count":67,"args":{"id":68,"method":"getNavigationTree","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":254,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":254,"duration":0},
{"type":"mark","name":"op_script_version","count":255,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":255,"duration":0},
{"type":"measure","name":"request","count":67,"duration":1},
{"type":"measure","name":"document_symbol","count":2,"duration":2},
"><pre class="notranslate"><code class="notranslate">Starting Deno language server...
version: 1.10.1+1871ff5 (release, x86_64-apple-darwin)
Connected to "Visual Studio Code" 1.56.0
{"type":"mark","name":"update_tsconfig"},
{"type":"mark","name":"request","count":1,"args":{"id":2,"method":"configure","compilerOptions":{"allowJs":true,"esModuleInterop":true,"experimentalDecorators":true,"isolatedModules":true,"jsx":"react","lib":["deno.ns","deno.window","deno.unstable"],"module":"esnext","noEmit":true,"strict":true,"target":"esnext","useDefineForClassFields":true}}},
{"type":"measure","name":"request","count":1,"duration":1},
{"type":"measure","name":"update_tsconfig","count":1,"duration":168},
{"type":"mark","name":"request","count":2,"args":{"id":3,"method":"getSupportedCodeFixes"}},
{"type":"measure","name":"request","count":2,"duration":1},
{"type":"measure","name":"initialize","count":1,"duration":170},
language server initialized
{"type":"mark","name":"update_import_map"},
{"type":"measure","name":"update_import_map","count":1,"duration":0},
{"type":"mark","name":"update_registries"},
{"type":"measure","name":"update_registries","count":1,"duration":0},
Server ready.
{"type":"mark","name":"did_open","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","languageId":"typescript","version":1,"text":""}}},
{"type":"measure","name":"did_open","count":1,"duration":0},
{"type":"mark","name":"document_symbol","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":1,"duration":0},
{"type":"mark","name":"request","count":3,"args":{"id":4,"method":"getNavigationTree","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":1,"duration":0},
{"type":"mark","name":"op_script_version","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":2,"duration":0},
{"type":"mark","name":"op_get_length","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1"}},
{"type":"measure","name":"op_get_length","count":1,"duration":0},
{"type":"mark","name":"op_get_text","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1","start":0,"end":0}},
{"type":"measure","name":"op_get_text","count":1,"duration":0},
{"type":"measure","name":"request","count":3,"duration":2},
{"type":"measure","name":"document_symbol","count":1,"duration":3},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":4,"args":{"id":5,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":1,"duration":1},
{"type":"measure","name":"update_diagnostics_deps","count":1,"duration":0},
{"type":"mark","name":"op_script_version","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":3,"duration":0},
{"type":"mark","name":"op_script_version","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":4,"duration":0},
{"type":"mark","name":"op_get_length","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1"}},
{"type":"measure","name":"op_get_length","count":2,"duration":0},
{"type":"mark","name":"op_get_text","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1","start":0,"end":0}},
{"type":"measure","name":"op_get_text","count":2,"duration":0},
{"type":"mark","name":"folding_range","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":2,"duration":0},
{"type":"mark","name":"op_script_version","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":5,"duration":0},
{"type":"mark","name":"op_script_version","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":6,"duration":0},
{"type":"mark","name":"op_script_version","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":7,"duration":0},
{"type":"mark","name":"op_script_version","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":8,"duration":0},
{"type":"mark","name":"op_script_version","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":9,"duration":0},
{"type":"mark","name":"op_script_version","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":10,"duration":0},
{"type":"measure","name":"request","count":4,"duration":928},
{"type":"measure","name":"update_diagnostics_ts","count":1,"duration":929},
{"type":"measure","name":"update_diagnostics","count":1,"duration":929},
{"type":"mark","name":"request","count":5,"args":{"id":6,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":11,"duration":0},
{"type":"mark","name":"op_script_version","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":12,"duration":0},
{"type":"measure","name":"request","count":5,"duration":1},
{"type":"measure","name":"folding_range","count":1,"duration":813},
{"type":"mark","name":"did_change","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":2},"contentChanges":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"rangeLength":0,"text":"c"}]}},
{"type":"measure","name":"did_change","count":1,"duration":0},
{"type":"mark","name":"completion","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":1},"context":{"triggerKind":1}}},
{"type":"mark","name":"get_line_index_sync","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":3,"duration":0},
{"type":"mark","name":"request","count":6,"args":{"id":7,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":1,"preferences":{"includeCompletionsWithInsertText":true}}},
{"type":"mark","name":"op_script_version","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":13,"duration":0},
{"type":"mark","name":"op_script_version","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":14,"duration":0},
{"type":"mark","name":"op_script_version","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":15,"duration":0},
{"type":"mark","name":"op_get_length","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1"}},
{"type":"measure","name":"op_get_length","count":3,"duration":0},
{"type":"mark","name":"op_get_change_range","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":0,"oldVersion":"1","version":"2"}},
{"type":"measure","name":"op_get_change_range","count":1,"duration":0},
{"type":"mark","name":"op_get_text","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"2","start":0,"end":1}},
{"type":"measure","name":"op_get_text","count":3,"duration":0},
{"type":"mark","name":"op_dispose","count":1,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1"}},
{"type":"measure","name":"op_dispose","count":1,"duration":0},
{"type":"measure","name":"request","count":6,"duration":16},
{"type":"measure","name":"completion","count":1,"duration":30},
{"type":"mark","name":"did_change","count":2,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":3},"contentChanges":[{"range":{"start":{"line":0,"character":1},"end":{"line":0,"character":1}},"rangeLength":0,"text":"o"}]}},
{"type":"measure","name":"did_change","count":2,"duration":0},
{"type":"mark","name":"completion_resolve","count":1,"args":{"label":"confirm","kind":3,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"confirm","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":7,"args":{"id":8,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"confirm"}}},
{"type":"mark","name":"op_script_version","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":16,"duration":0},
{"type":"mark","name":"op_script_version","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":17,"duration":0},
{"type":"mark","name":"op_script_version","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":18,"duration":0},
{"type":"mark","name":"op_get_length","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"2"}},
{"type":"measure","name":"op_get_length","count":4,"duration":0},
{"type":"mark","name":"op_get_change_range","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":1,"oldVersion":"2","version":"3"}},
{"type":"measure","name":"op_get_change_range","count":2,"duration":0},
{"type":"mark","name":"op_get_text","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"3","start":1,"end":2}},
{"type":"measure","name":"op_get_text","count":4,"duration":0},
{"type":"mark","name":"op_dispose","count":2,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"2"}},
{"type":"measure","name":"op_dispose","count":2,"duration":0},
{"type":"measure","name":"request","count":7,"duration":15},
{"type":"measure","name":"completion_resolve","count":1,"duration":17},
{"type":"mark","name":"did_change","count":3,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":4},"contentChanges":[{"range":{"start":{"line":0,"character":2},"end":{"line":0,"character":2}},"rangeLength":0,"text":"n"}]}},
{"type":"measure","name":"did_change","count":3,"duration":0},
{"type":"mark","name":"completion_resolve","count":2,"args":{"label":"confirm","kind":3,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"confirm","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":8,"args":{"id":9,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"confirm"}}},
{"type":"mark","name":"op_script_version","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":19,"duration":0},
{"type":"mark","name":"op_script_version","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":20,"duration":0},
{"type":"mark","name":"op_script_version","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":21,"duration":0},
{"type":"mark","name":"op_get_length","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"3"}},
{"type":"measure","name":"op_get_length","count":5,"duration":0},
{"type":"mark","name":"op_get_change_range","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":2,"oldVersion":"3","version":"4"}},
{"type":"measure","name":"op_get_change_range","count":3,"duration":0},
{"type":"mark","name":"op_get_text","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"4","start":2,"end":3}},
{"type":"measure","name":"op_get_text","count":5,"duration":0},
{"type":"mark","name":"op_dispose","count":3,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"3"}},
{"type":"measure","name":"op_dispose","count":3,"duration":0},
{"type":"measure","name":"request","count":8,"duration":5},
{"type":"measure","name":"completion_resolve","count":2,"duration":7},
{"type":"mark","name":"did_change","count":4,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":5},"contentChanges":[{"range":{"start":{"line":0,"character":3},"end":{"line":0,"character":3}},"rangeLength":0,"text":"s"}]}},
{"type":"measure","name":"did_change","count":4,"duration":0},
{"type":"mark","name":"completion_resolve","count":3,"args":{"label":"console","kind":6,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"console","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":9,"args":{"id":10,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"console"}}},
{"type":"mark","name":"op_script_version","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":22,"duration":0},
{"type":"mark","name":"op_script_version","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":23,"duration":0},
{"type":"mark","name":"op_script_version","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":24,"duration":0},
{"type":"mark","name":"op_get_length","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"4"}},
{"type":"measure","name":"op_get_length","count":6,"duration":0},
{"type":"mark","name":"op_get_change_range","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":3,"oldVersion":"4","version":"5"}},
{"type":"measure","name":"op_get_change_range","count":4,"duration":0},
{"type":"mark","name":"op_get_text","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"5","start":3,"end":4}},
{"type":"measure","name":"op_get_text","count":6,"duration":0},
{"type":"mark","name":"op_dispose","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"4"}},
{"type":"measure","name":"op_dispose","count":4,"duration":0},
{"type":"measure","name":"request","count":9,"duration":5},
{"type":"measure","name":"completion_resolve","count":3,"duration":6},
{"type":"mark","name":"did_change","count":5,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":6},"contentChanges":[{"range":{"start":{"line":0,"character":4},"end":{"line":0,"character":4}},"rangeLength":0,"text":"t"}]}},
{"type":"measure","name":"did_change","count":5,"duration":0},
{"type":"mark","name":"completion_resolve","count":4,"args":{"label":"const","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"const","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":10,"args":{"id":11,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":1,"name":"const"}}},
{"type":"mark","name":"op_script_version","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":25,"duration":0},
{"type":"mark","name":"op_script_version","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":26,"duration":0},
{"type":"mark","name":"op_script_version","count":27,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":27,"duration":0},
{"type":"mark","name":"op_get_length","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"5"}},
{"type":"measure","name":"op_get_length","count":7,"duration":0},
{"type":"mark","name":"op_get_change_range","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":4,"oldVersion":"5","version":"6"}},
{"type":"measure","name":"op_get_change_range","count":5,"duration":0},
{"type":"mark","name":"op_get_text","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"6","start":4,"end":5}},
{"type":"measure","name":"op_get_text","count":7,"duration":0},
{"type":"mark","name":"op_dispose","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"5"}},
{"type":"measure","name":"op_dispose","count":5,"duration":0},
{"type":"measure","name":"request","count":10,"duration":7},
{"type":"measure","name":"completion_resolve","count":4,"duration":8},
{"type":"mark","name":"did_change","count":6,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":7},"contentChanges":[{"range":{"start":{"line":0,"character":5},"end":{"line":0,"character":5}},"rangeLength":0,"text":" "}]}},
{"type":"measure","name":"did_change","count":6,"duration":0},
{"type":"mark","name":"folding_range","count":2,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":4,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":4,"duration":0},
{"type":"mark","name":"request","count":11,"args":{"id":12,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":28,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":28,"duration":0},
{"type":"mark","name":"op_script_version","count":29,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":29,"duration":0},
{"type":"mark","name":"op_get_length","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"1"}},
{"type":"measure","name":"op_get_length","count":8,"duration":0},
{"type":"mark","name":"op_get_change_range","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":6,"oldVersion":"1","version":"7"}},
{"type":"measure","name":"op_get_change_range","count":6,"duration":0},
{"type":"mark","name":"op_get_length","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7"}},
{"type":"measure","name":"op_get_length","count":9,"duration":0},
{"type":"mark","name":"op_get_text","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7","start":0,"end":6}},
{"type":"measure","name":"op_get_text","count":8,"duration":0},
{"type":"measure","name":"request","count":11,"duration":0},
{"type":"measure","name":"folding_range","count":2,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":12,"args":{"id":13,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":30,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":30,"duration":0},
{"type":"mark","name":"op_script_version","count":31,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":31,"duration":0},
{"type":"mark","name":"op_script_version","count":32,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":32,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":2,"duration":1},
{"type":"mark","name":"op_get_length","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"6"}},
{"type":"measure","name":"op_get_length","count":10,"duration":0},
{"type":"mark","name":"op_get_change_range","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":5,"oldVersion":"6","version":"7"}},
{"type":"measure","name":"update_diagnostics_deps","count":2,"duration":0},
{"type":"measure","name":"op_get_change_range","count":7,"duration":0},
{"type":"mark","name":"op_get_text","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7","start":5,"end":6}},
{"type":"measure","name":"op_get_text","count":9,"duration":0},
{"type":"mark","name":"op_dispose","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"6"}},
{"type":"measure","name":"op_dispose","count":6,"duration":0},
{"type":"mark","name":"op_script_version","count":33,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":33,"duration":0},
{"type":"mark","name":"op_script_version","count":34,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":34,"duration":0},
{"type":"mark","name":"op_script_version","count":35,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":35,"duration":0},
{"type":"mark","name":"op_script_version","count":36,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":36,"duration":0},
{"type":"mark","name":"op_script_version","count":37,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":37,"duration":0},
{"type":"mark","name":"op_script_version","count":38,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":38,"duration":0},
{"type":"measure","name":"request","count":12,"duration":7},
{"type":"measure","name":"update_diagnostics_ts","count":2,"duration":8},
{"type":"measure","name":"update_diagnostics","count":2,"duration":8},
{"type":"mark","name":"did_change","count":7,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":8},"contentChanges":[{"range":{"start":{"line":0,"character":6},"end":{"line":0,"character":6}},"rangeLength":0,"text":"p"}]}},
{"type":"measure","name":"did_change","count":7,"duration":0},
{"type":"mark","name":"completion","count":2,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":7},"context":{"triggerKind":1}}},
{"type":"mark","name":"get_line_index_sync","count":5,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":5,"duration":0},
{"type":"mark","name":"request","count":13,"args":{"id":14,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":7,"preferences":{"includeCompletionsWithInsertText":true}}},
{"type":"mark","name":"op_script_version","count":39,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":39,"duration":0},
{"type":"mark","name":"op_script_version","count":40,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":40,"duration":0},
{"type":"mark","name":"op_script_version","count":41,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":41,"duration":0},
{"type":"mark","name":"op_get_length","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7"}},
{"type":"measure","name":"op_get_length","count":11,"duration":0},
{"type":"mark","name":"op_get_change_range","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":6,"oldVersion":"7","version":"8"}},
{"type":"measure","name":"op_get_change_range","count":8,"duration":0},
{"type":"mark","name":"op_get_text","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"8","start":6,"end":7}},
{"type":"measure","name":"op_get_text","count":10,"duration":0},
{"type":"mark","name":"op_dispose","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7"}},
{"type":"measure","name":"op_dispose","count":7,"duration":0},
{"type":"measure","name":"request","count":13,"duration":4},
{"type":"measure","name":"completion","count":2,"duration":5},
{"type":"mark","name":"did_change","count":8,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":9},"contentChanges":[{"range":{"start":{"line":0,"character":7},"end":{"line":0,"character":7}},"rangeLength":0,"text":"a"}]}},
{"type":"measure","name":"did_change","count":8,"duration":0},
{"type":"mark","name":"did_change","count":9,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":10},"contentChanges":[{"range":{"start":{"line":0,"character":8},"end":{"line":0,"character":8}},"rangeLength":0,"text":"t"}]}},
{"type":"measure","name":"did_change","count":9,"duration":0},
{"type":"mark","name":"did_change","count":10,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":11},"contentChanges":[{"range":{"start":{"line":0,"character":9},"end":{"line":0,"character":9}},"rangeLength":0,"text":"h"}]}},
{"type":"measure","name":"did_change","count":10,"duration":0},
{"type":"mark","name":"did_change","count":11,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":12},"contentChanges":[{"range":{"start":{"line":0,"character":10},"end":{"line":0,"character":10}},"rangeLength":0,"text":" "}]}},
{"type":"measure","name":"did_change","count":11,"duration":0},
{"type":"mark","name":"did_change","count":12,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":13},"contentChanges":[{"range":{"start":{"line":0,"character":11},"end":{"line":0,"character":11}},"rangeLength":0,"text":"="}]}},
{"type":"measure","name":"did_change","count":12,"duration":0},
{"type":"mark","name":"did_change","count":13,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":14},"contentChanges":[{"range":{"start":{"line":0,"character":12},"end":{"line":0,"character":12}},"rangeLength":0,"text":" "}]}},
{"type":"measure","name":"did_change","count":13,"duration":0},
{"type":"mark","name":"folding_range","count":3,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":6,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":6,"duration":0},
{"type":"mark","name":"request","count":14,"args":{"id":15,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":42,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":42,"duration":0},
{"type":"mark","name":"op_script_version","count":43,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":43,"duration":0},
{"type":"mark","name":"op_get_length","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"7"}},
{"type":"measure","name":"op_get_length","count":12,"duration":0},
{"type":"mark","name":"op_get_change_range","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":13,"oldVersion":"7","version":"14"}},
{"type":"measure","name":"op_get_change_range","count":9,"duration":0},
{"type":"mark","name":"op_get_length","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14"}},
{"type":"measure","name":"op_get_length","count":13,"duration":0},
{"type":"mark","name":"op_get_text","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14","start":0,"end":13}},
{"type":"measure","name":"op_get_text","count":11,"duration":0},
{"type":"measure","name":"request","count":14,"duration":1},
{"type":"measure","name":"folding_range","count":3,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":15,"args":{"id":16,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":3,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":3,"duration":0},
{"type":"mark","name":"op_script_version","count":44,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":44,"duration":0},
{"type":"mark","name":"op_script_version","count":45,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":45,"duration":0},
{"type":"mark","name":"op_script_version","count":46,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":46,"duration":0},
{"type":"mark","name":"op_get_length","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"8"}},
{"type":"measure","name":"op_get_length","count":14,"duration":0},
{"type":"mark","name":"op_get_change_range","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":7,"oldVersion":"8","version":"14"}},
{"type":"measure","name":"op_get_change_range","count":10,"duration":0},
{"type":"mark","name":"op_get_text","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14","start":7,"end":13}},
{"type":"measure","name":"op_get_text","count":12,"duration":0},
{"type":"mark","name":"op_dispose","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"8"}},
{"type":"measure","name":"op_dispose","count":8,"duration":0},
{"type":"mark","name":"op_script_version","count":47,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":47,"duration":0},
{"type":"mark","name":"op_script_version","count":48,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":48,"duration":0},
{"type":"mark","name":"op_script_version","count":49,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":49,"duration":0},
{"type":"mark","name":"op_script_version","count":50,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":50,"duration":0},
{"type":"mark","name":"op_script_version","count":51,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":51,"duration":0},
{"type":"mark","name":"op_script_version","count":52,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":52,"duration":0},
{"type":"measure","name":"request","count":15,"duration":6},
{"type":"measure","name":"update_diagnostics_ts","count":3,"duration":7},
{"type":"measure","name":"update_diagnostics","count":3,"duration":7},
{"type":"mark","name":"did_change","count":14,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":15},"contentChanges":[{"range":{"start":{"line":0,"character":13},"end":{"line":0,"character":13}},"rangeLength":0,"text":"n"}]}},
{"type":"measure","name":"did_change","count":14,"duration":0},
{"type":"mark","name":"completion","count":3,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":14},"context":{"triggerKind":1}}},
{"type":"mark","name":"get_line_index_sync","count":7,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":7,"duration":0},
{"type":"mark","name":"request","count":16,"args":{"id":17,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":14,"preferences":{"includeCompletionsWithInsertText":true}}},
{"type":"mark","name":"op_script_version","count":53,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":53,"duration":0},
{"type":"mark","name":"op_script_version","count":54,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":54,"duration":0},
{"type":"mark","name":"op_script_version","count":55,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":55,"duration":0},
{"type":"mark","name":"op_get_length","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14"}},
{"type":"measure","name":"op_get_length","count":15,"duration":0},
{"type":"mark","name":"op_get_change_range","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":13,"oldVersion":"14","version":"15"}},
{"type":"measure","name":"op_get_change_range","count":11,"duration":0},
{"type":"mark","name":"op_get_text","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"15","start":13,"end":14}},
{"type":"measure","name":"op_get_text","count":13,"duration":0},
{"type":"mark","name":"op_dispose","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14"}},
{"type":"measure","name":"op_dispose","count":9,"duration":0},
{"type":"measure","name":"request","count":16,"duration":9},
{"type":"measure","name":"completion","count":3,"duration":22},
{"type":"mark","name":"did_change","count":15,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":16},"contentChanges":[{"range":{"start":{"line":0,"character":14},"end":{"line":0,"character":14}},"rangeLength":0,"text":"e"}]}},
{"type":"measure","name":"did_change","count":15,"duration":0},
{"type":"mark","name":"completion_resolve","count":5,"args":{"label":"never","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":14,"name":"never","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":17,"args":{"id":18,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":14,"name":"never"}}},
{"type":"mark","name":"op_script_version","count":56,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":56,"duration":0},
{"type":"mark","name":"op_script_version","count":57,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":57,"duration":0},
{"type":"mark","name":"op_script_version","count":58,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":58,"duration":0},
{"type":"mark","name":"op_get_length","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"15"}},
{"type":"measure","name":"op_get_length","count":16,"duration":0},
{"type":"mark","name":"op_get_change_range","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":14,"oldVersion":"15","version":"16"}},
{"type":"measure","name":"op_get_change_range","count":12,"duration":0},
{"type":"mark","name":"op_get_text","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"16","start":14,"end":15}},
{"type":"measure","name":"op_get_text","count":14,"duration":0},
{"type":"mark","name":"op_dispose","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"15"}},
{"type":"measure","name":"op_dispose","count":10,"duration":0},
{"type":"measure","name":"request","count":17,"duration":5},
{"type":"measure","name":"completion_resolve","count":5,"duration":5},
{"type":"mark","name":"did_change","count":16,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":17},"contentChanges":[{"range":{"start":{"line":0,"character":15},"end":{"line":0,"character":15}},"rangeLength":0,"text":"w"}]}},
{"type":"measure","name":"did_change","count":16,"duration":0},
{"type":"mark","name":"completion_resolve","count":6,"args":{"label":"new","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":14,"name":"new","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":18,"args":{"id":19,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":14,"name":"new"}}},
{"type":"mark","name":"op_script_version","count":59,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":59,"duration":0},
{"type":"mark","name":"op_script_version","count":60,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":60,"duration":0},
{"type":"mark","name":"op_script_version","count":61,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":61,"duration":0},
{"type":"mark","name":"op_get_length","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"16"}},
{"type":"measure","name":"op_get_length","count":17,"duration":0},
{"type":"mark","name":"op_get_change_range","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":15,"oldVersion":"16","version":"17"}},
{"type":"measure","name":"op_get_change_range","count":13,"duration":0},
{"type":"mark","name":"op_get_text","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"17","start":15,"end":16}},
{"type":"measure","name":"op_get_text","count":15,"duration":0},
{"type":"mark","name":"op_dispose","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"16"}},
{"type":"measure","name":"op_dispose","count":11,"duration":0},
{"type":"measure","name":"request","count":18,"duration":5},
{"type":"measure","name":"completion_resolve","count":6,"duration":5},
{"type":"mark","name":"did_change","count":17,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":18},"contentChanges":[{"range":{"start":{"line":0,"character":16},"end":{"line":0,"character":16}},"rangeLength":0,"text":" "}]}},
{"type":"measure","name":"did_change","count":17,"duration":0},
{"type":"mark","name":"folding_range","count":4,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":8,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":8,"duration":0},
{"type":"mark","name":"request","count":19,"args":{"id":20,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":62,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":62,"duration":0},
{"type":"mark","name":"op_script_version","count":63,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":63,"duration":0},
{"type":"mark","name":"op_get_length","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"14"}},
{"type":"measure","name":"op_get_length","count":18,"duration":0},
{"type":"mark","name":"op_get_change_range","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":17,"oldVersion":"14","version":"18"}},
{"type":"measure","name":"op_get_change_range","count":14,"duration":0},
{"type":"mark","name":"op_get_length","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18"}},
{"type":"measure","name":"op_get_length","count":19,"duration":0},
{"type":"mark","name":"op_get_text","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18","start":0,"end":17}},
{"type":"measure","name":"op_get_text","count":16,"duration":0},
{"type":"measure","name":"request","count":19,"duration":0},
{"type":"measure","name":"folding_range","count":4,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":20,"args":{"id":21,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":4,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":4,"duration":0},
{"type":"mark","name":"op_script_version","count":64,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":64,"duration":0},
{"type":"mark","name":"op_script_version","count":65,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":65,"duration":0},
{"type":"mark","name":"op_script_version","count":66,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":66,"duration":0},
{"type":"mark","name":"op_get_length","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"17"}},
{"type":"measure","name":"op_get_length","count":20,"duration":0},
{"type":"mark","name":"op_get_change_range","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":16,"oldVersion":"17","version":"18"}},
{"type":"measure","name":"op_get_change_range","count":15,"duration":0},
{"type":"mark","name":"op_get_text","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18","start":16,"end":17}},
{"type":"measure","name":"op_get_text","count":17,"duration":0},
{"type":"mark","name":"op_dispose","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"17"}},
{"type":"measure","name":"op_dispose","count":12,"duration":0},
{"type":"mark","name":"op_script_version","count":67,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":67,"duration":0},
{"type":"mark","name":"op_script_version","count":68,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":68,"duration":0},
{"type":"mark","name":"op_script_version","count":69,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":69,"duration":0},
{"type":"mark","name":"op_script_version","count":70,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":70,"duration":0},
{"type":"mark","name":"op_script_version","count":71,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":71,"duration":0},
{"type":"mark","name":"op_script_version","count":72,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":72,"duration":0},
{"type":"measure","name":"request","count":20,"duration":9},
{"type":"measure","name":"update_diagnostics_ts","count":4,"duration":10},
{"type":"measure","name":"update_diagnostics","count":4,"duration":10},
{"type":"mark","name":"did_change","count":18,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":19},"contentChanges":[{"range":{"start":{"line":0,"character":17},"end":{"line":0,"character":17}},"rangeLength":0,"text":"U"}]}},
{"type":"measure","name":"did_change","count":18,"duration":0},
{"type":"mark","name":"completion","count":4,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":18},"context":{"triggerKind":1}}},
{"type":"mark","name":"get_line_index_sync","count":9,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":9,"duration":0},
{"type":"mark","name":"request","count":21,"args":{"id":22,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":18,"preferences":{"includeCompletionsWithInsertText":true}}},
{"type":"mark","name":"op_script_version","count":73,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":73,"duration":0},
{"type":"mark","name":"op_script_version","count":74,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":74,"duration":0},
{"type":"mark","name":"op_script_version","count":75,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":75,"duration":0},
{"type":"mark","name":"op_get_length","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18"}},
{"type":"measure","name":"op_get_length","count":21,"duration":0},
{"type":"mark","name":"op_get_change_range","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":17,"oldVersion":"18","version":"19"}},
{"type":"measure","name":"op_get_change_range","count":16,"duration":0},
{"type":"mark","name":"op_get_text","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"19","start":17,"end":18}},
{"type":"measure","name":"op_get_text","count":18,"duration":0},
{"type":"mark","name":"op_dispose","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18"}},
{"type":"measure","name":"op_dispose","count":13,"duration":0},
{"type":"measure","name":"request","count":21,"duration":10},
{"type":"measure","name":"completion","count":4,"duration":23},
{"type":"mark","name":"completion_resolve","count":7,"args":{"label":"URIError","kind":6,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":18,"name":"URIError","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":22,"args":{"id":23,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":18,"name":"URIError"}}},
{"type":"mark","name":"op_script_version","count":76,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":76,"duration":0},
{"type":"mark","name":"op_script_version","count":77,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":77,"duration":0},
{"type":"mark","name":"op_script_version","count":78,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":78,"duration":0},
{"type":"measure","name":"request","count":22,"duration":5},
{"type":"measure","name":"completion_resolve","count":7,"duration":6},
{"type":"mark","name":"did_change","count":19,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":20},"contentChanges":[{"range":{"start":{"line":0,"character":18},"end":{"line":0,"character":18}},"rangeLength":0,"text":"R"}]}},
{"type":"measure","name":"did_change","count":19,"duration":0},
{"type":"mark","name":"did_change","count":20,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":21},"contentChanges":[{"range":{"start":{"line":0,"character":19},"end":{"line":0,"character":19}},"rangeLength":0,"text":"L"}]}},
{"type":"measure","name":"did_change","count":20,"duration":0},
{"type":"mark","name":"completion_resolve","count":8,"args":{"label":"URL","kind":7,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":18,"name":"URL","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":23,"args":{"id":24,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":18,"name":"URL"}}},
{"type":"mark","name":"op_script_version","count":79,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":79,"duration":0},
{"type":"mark","name":"op_script_version","count":80,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":80,"duration":0},
{"type":"mark","name":"op_script_version","count":81,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":81,"duration":0},
{"type":"mark","name":"op_get_length","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"19"}},
{"type":"measure","name":"op_get_length","count":22,"duration":0},
{"type":"mark","name":"op_get_change_range","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":18,"oldVersion":"19","version":"21"}},
{"type":"measure","name":"op_get_change_range","count":17,"duration":0},
{"type":"mark","name":"op_get_text","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"21","start":18,"end":20}},
{"type":"measure","name":"op_get_text","count":19,"duration":0},
{"type":"mark","name":"op_dispose","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"19"}},
{"type":"measure","name":"op_dispose","count":14,"duration":0},
{"type":"measure","name":"request","count":23,"duration":7},
{"type":"measure","name":"completion_resolve","count":8,"duration":8},
{"type":"mark","name":"folding_range","count":5,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":10,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":10,"duration":0},
{"type":"mark","name":"request","count":24,"args":{"id":25,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":82,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":82,"duration":0},
{"type":"mark","name":"op_script_version","count":83,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":83,"duration":0},
{"type":"mark","name":"op_get_length","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"18"}},
{"type":"measure","name":"op_get_length","count":23,"duration":0},
{"type":"mark","name":"op_get_change_range","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":20,"oldVersion":"18","version":"21"}},
{"type":"measure","name":"op_get_change_range","count":18,"duration":0},
{"type":"mark","name":"op_get_length","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"21"}},
{"type":"measure","name":"op_get_length","count":24,"duration":0},
{"type":"mark","name":"op_get_text","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"21","start":0,"end":20}},
{"type":"measure","name":"op_get_text","count":20,"duration":0},
{"type":"measure","name":"request","count":24,"duration":0},
{"type":"measure","name":"folding_range","count":5,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":25,"args":{"id":26,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":84,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":84,"duration":0},
{"type":"mark","name":"op_script_version","count":85,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":85,"duration":0},
{"type":"mark","name":"op_script_version","count":86,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"update_diagnostics_lint","count":5,"duration":0},
{"type":"measure","name":"op_script_version","count":86,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":5,"duration":0},
{"type":"mark","name":"op_script_version","count":87,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":87,"duration":0},
{"type":"mark","name":"op_script_version","count":88,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":88,"duration":0},
{"type":"mark","name":"op_script_version","count":89,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":89,"duration":0},
{"type":"mark","name":"op_script_version","count":90,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":90,"duration":0},
{"type":"mark","name":"op_script_version","count":91,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":91,"duration":0},
{"type":"mark","name":"op_script_version","count":92,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":92,"duration":0},
{"type":"measure","name":"request","count":25,"duration":4},
{"type":"measure","name":"update_diagnostics_ts","count":5,"duration":4},
{"type":"measure","name":"update_diagnostics","count":5,"duration":4},
{"type":"mark","name":"code_action","count":1,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":20},"end":{"line":0,"character":20}},"context":{"diagnostics":[{"range":{"start":{"line":0,"character":13},"end":{"line":0,"character":20}},"severity":1,"code":2554,"source":"deno-ts","message":"Expected 1-2 arguments, but got 0.","relatedInformation":[]}]}}},
{"type":"mark","name":"get_line_index_sync","count":11,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":11,"duration":0},
{"type":"mark","name":"request","count":26,"args":{"id":27,"method":"getCodeFixes","specifier":"file:///Users/sr/lsp/mod.ts","startPosition":13,"endPosition":20,"errorCodes":["2554"]}},
{"type":"mark","name":"op_script_version","count":93,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":93,"duration":0},
{"type":"mark","name":"op_script_version","count":94,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":94,"duration":0},
{"type":"mark","name":"op_script_version","count":95,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":95,"duration":0},
{"type":"measure","name":"request","count":26,"duration":40},
{"type":"measure","name":"code_action","count":1,"duration":41},
{"type":"mark","name":"did_change","count":21,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":22},"contentChanges":[{"range":{"start":{"line":0,"character":17},"end":{"line":0,"character":20}},"rangeLength":3,"text":"URL"}]}},
{"type":"measure","name":"did_change","count":21,"duration":0},
{"type":"mark","name":"folding_range","count":6,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":12,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":12,"duration":0},
{"type":"mark","name":"request","count":27,"args":{"id":28,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":96,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":96,"duration":0},
{"type":"mark","name":"op_script_version","count":97,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":97,"duration":0},
{"type":"mark","name":"op_get_length","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"21"}},
{"type":"measure","name":"op_get_length","count":25,"duration":0},
{"type":"mark","name":"op_get_change_range","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":20,"oldVersion":"21","version":"22"}},
{"type":"measure","name":"op_get_change_range","count":19,"duration":0},
{"type":"mark","name":"op_get_length","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22"}},
{"type":"measure","name":"op_get_length","count":26,"duration":0},
{"type":"mark","name":"op_get_text","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22","start":0,"end":20}},
{"type":"measure","name":"op_get_text","count":21,"duration":0},
{"type":"measure","name":"request","count":27,"duration":0},
{"type":"measure","name":"folding_range","count":6,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":28,"args":{"id":29,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":98,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":98,"duration":0},
{"type":"mark","name":"op_script_version","count":99,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":99,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":6,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":6,"duration":0},
{"type":"mark","name":"op_script_version","count":100,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":100,"duration":0},
{"type":"mark","name":"op_get_length","count":27,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"21"}},
{"type":"measure","name":"op_get_length","count":27,"duration":0},
{"type":"mark","name":"op_get_change_range","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":20,"oldVersion":"21","version":"22"}},
{"type":"measure","name":"op_get_change_range","count":20,"duration":0},
{"type":"mark","name":"op_get_length","count":28,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22"}},
{"type":"measure","name":"op_get_length","count":28,"duration":0},
{"type":"mark","name":"op_get_text","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22","start":0,"end":20}},
{"type":"measure","name":"op_get_text","count":22,"duration":0},
{"type":"mark","name":"op_script_version","count":101,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":101,"duration":0},
{"type":"mark","name":"op_script_version","count":102,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":102,"duration":0},
{"type":"mark","name":"op_script_version","count":103,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":103,"duration":0},
{"type":"mark","name":"op_script_version","count":104,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":104,"duration":0},
{"type":"mark","name":"op_script_version","count":105,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":105,"duration":0},
{"type":"mark","name":"op_script_version","count":106,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":106,"duration":0},
{"type":"measure","name":"request","count":28,"duration":3},
{"type":"measure","name":"update_diagnostics_ts","count":6,"duration":4},
{"type":"measure","name":"update_diagnostics","count":6,"duration":4},
{"type":"mark","name":"did_change","count":22,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":23},"contentChanges":[{"range":{"start":{"line":0,"character":20},"end":{"line":0,"character":20}},"rangeLength":0,"text":"()"}]}},
{"type":"measure","name":"did_change","count":22,"duration":0},
{"type":"mark","name":"signature_help","count":1,"args":{"context":{"triggerKind":2,"triggerCharacter":"(","isRetrigger":false},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":21}}},
{"type":"mark","name":"get_line_index_sync","count":13,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":13,"duration":0},
{"type":"mark","name":"request","count":29,"args":{"id":30,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":21,"options":{"triggerReason":{"kind":"characterTyped","triggerCharacter":"("}}}},
{"type":"mark","name":"op_script_version","count":107,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":107,"duration":0},
{"type":"mark","name":"op_script_version","count":108,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":108,"duration":0},
{"type":"mark","name":"op_script_version","count":109,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":109,"duration":0},
{"type":"mark","name":"op_get_length","count":29,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22"}},
{"type":"measure","name":"op_get_length","count":29,"duration":0},
{"type":"mark","name":"op_get_change_range","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":20,"oldVersion":"22","version":"23"}},
{"type":"measure","name":"op_get_change_range","count":21,"duration":0},
{"type":"mark","name":"op_get_text","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23","start":20,"end":22}},
{"type":"measure","name":"op_get_text","count":23,"duration":0},
{"type":"mark","name":"op_dispose","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22"}},
{"type":"measure","name":"op_dispose","count":15,"duration":0},
{"type":"measure","name":"request","count":29,"duration":5},
{"type":"measure","name":"signature_help","count":1,"duration":5},
{"type":"mark","name":"folding_range","count":7,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":14,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":14,"duration":0},
{"type":"mark","name":"request","count":30,"args":{"id":31,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":110,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":110,"duration":0},
{"type":"mark","name":"op_script_version","count":111,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":111,"duration":0},
{"type":"mark","name":"op_get_length","count":30,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"22"}},
{"type":"measure","name":"op_get_length","count":30,"duration":0},
{"type":"mark","name":"op_get_change_range","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":22,"oldVersion":"22","version":"23"}},
{"type":"measure","name":"op_get_change_range","count":22,"duration":0},
{"type":"mark","name":"op_get_length","count":31,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23"}},
{"type":"measure","name":"op_get_length","count":31,"duration":0},
{"type":"mark","name":"op_get_text","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23","start":0,"end":22}},
{"type":"measure","name":"op_get_text","count":24,"duration":0},
{"type":"measure","name":"request","count":30,"duration":0},
{"type":"measure","name":"folding_range","count":7,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":31,"args":{"id":32,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":112,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":112,"duration":0},
{"type":"mark","name":"op_script_version","count":113,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":113,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":7,"duration":0},
{"type":"mark","name":"op_script_version","count":114,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":114,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":7,"duration":0},
{"type":"mark","name":"op_script_version","count":115,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":115,"duration":0},
{"type":"mark","name":"op_script_version","count":116,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":116,"duration":0},
{"type":"mark","name":"op_script_version","count":117,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":117,"duration":0},
{"type":"mark","name":"op_script_version","count":118,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":118,"duration":0},
{"type":"mark","name":"op_script_version","count":119,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":119,"duration":0},
{"type":"mark","name":"op_script_version","count":120,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":120,"duration":0},
{"type":"measure","name":"request","count":31,"duration":3},
{"type":"measure","name":"update_diagnostics_ts","count":7,"duration":3},
{"type":"measure","name":"update_diagnostics","count":7,"duration":3},
{"type":"mark","name":"did_change","count":23,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":24},"contentChanges":[{"range":{"start":{"line":0,"character":21},"end":{"line":0,"character":21}},"rangeLength":0,"text":"\"\""}]}},
{"type":"measure","name":"did_change","count":23,"duration":0},
{"type":"mark","name":"completion","count":5,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":22},"context":{"triggerKind":2,"triggerCharacter":"\""}}},
{"type":"mark","name":"get_line_index_sync","count":15,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":15,"duration":0},
{"type":"mark","name":"request","count":32,"args":{"id":33,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":22,"preferences":{"includeCompletionsWithInsertText":true,"triggerCharacter":"\""}}},
{"type":"mark","name":"op_script_version","count":121,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":121,"duration":0},
{"type":"mark","name":"op_script_version","count":122,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":122,"duration":0},
{"type":"mark","name":"op_script_version","count":123,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":123,"duration":0},
{"type":"mark","name":"op_get_length","count":32,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23"}},
{"type":"measure","name":"op_get_length","count":32,"duration":0},
{"type":"mark","name":"op_get_change_range","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":22,"oldVersion":"23","version":"24"}},
{"type":"measure","name":"op_get_change_range","count":23,"duration":0},
{"type":"mark","name":"op_get_text","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24","start":21,"end":23}},
{"type":"measure","name":"op_get_text","count":25,"duration":0},
{"type":"mark","name":"op_dispose","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23"}},
{"type":"measure","name":"op_dispose","count":16,"duration":0},
{"type":"measure","name":"request","count":32,"duration":4},
{"type":"measure","name":"completion","count":5,"duration":5},
{"type":"mark","name":"signature_help","count":2,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":0}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":22}}},
{"type":"mark","name":"get_line_index_sync","count":16,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":16,"duration":0},
{"type":"mark","name":"request","count":33,"args":{"id":34,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":22,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":124,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":124,"duration":0},
{"type":"mark","name":"op_script_version","count":125,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":125,"duration":0},
{"type":"mark","name":"op_script_version","count":126,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":126,"duration":0},
{"type":"measure","name":"request","count":33,"duration":1},
{"type":"measure","name":"signature_help","count":2,"duration":1},
{"type":"mark","name":"folding_range","count":8,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":17,"duration":0},
{"type":"mark","name":"request","count":34,"args":{"id":35,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":127,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":127,"duration":0},
{"type":"mark","name":"op_script_version","count":128,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":128,"duration":0},
{"type":"mark","name":"op_get_length","count":33,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"23"}},
{"type":"measure","name":"op_get_length","count":33,"duration":0},
{"type":"mark","name":"op_get_change_range","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":24,"oldVersion":"23","version":"24"}},
{"type":"measure","name":"op_get_change_range","count":24,"duration":0},
{"type":"mark","name":"op_get_length","count":34,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24"}},
{"type":"measure","name":"op_get_length","count":34,"duration":0},
{"type":"mark","name":"op_get_text","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24","start":0,"end":24}},
{"type":"measure","name":"op_get_text","count":26,"duration":0},
{"type":"measure","name":"request","count":34,"duration":0},
{"type":"measure","name":"folding_range","count":8,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":35,"args":{"id":36,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":129,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":129,"duration":0},
{"type":"mark","name":"op_script_version","count":130,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":130,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":8,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":8,"duration":0},
{"type":"mark","name":"op_script_version","count":131,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":131,"duration":0},
{"type":"mark","name":"op_script_version","count":132,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":132,"duration":0},
{"type":"mark","name":"op_script_version","count":133,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":133,"duration":0},
{"type":"mark","name":"op_script_version","count":134,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":134,"duration":0},
{"type":"mark","name":"op_script_version","count":135,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":135,"duration":0},
{"type":"mark","name":"op_script_version","count":136,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":136,"duration":0},
{"type":"mark","name":"op_script_version","count":137,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":137,"duration":0},
{"type":"measure","name":"request","count":35,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":8,"duration":3},
{"type":"measure","name":"update_diagnostics","count":8,"duration":3},
{"type":"mark","name":"code_action","count":2,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":22},"end":{"line":0,"character":22}},"context":{"diagnostics":[]}}},
{"type":"measure","name":"code_action","count":2,"duration":0},
{"type":"mark","name":"did_change","count":24,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":25},"contentChanges":[{"range":{"start":{"line":0,"character":22},"end":{"line":0,"character":22}},"rangeLength":0,"text":"."}]}},
{"type":"measure","name":"did_change","count":24,"duration":0},
{"type":"mark","name":"completion","count":6,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":23},"context":{"triggerKind":2,"triggerCharacter":"."}}},
{"type":"mark","name":"get_line_index_sync","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":18,"duration":0},
{"type":"mark","name":"request","count":36,"args":{"id":37,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":23,"preferences":{"includeCompletionsWithInsertText":true,"triggerCharacter":"."}}},
{"type":"mark","name":"op_script_version","count":138,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":138,"duration":0},
{"type":"mark","name":"op_script_version","count":139,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":139,"duration":0},
{"type":"mark","name":"op_script_version","count":140,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":140,"duration":0},
{"type":"mark","name":"op_get_length","count":35,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24"}},
{"type":"measure","name":"op_get_length","count":35,"duration":0},
{"type":"mark","name":"op_get_change_range","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":24,"oldVersion":"24","version":"25"}},
{"type":"measure","name":"op_get_change_range","count":25,"duration":0},
{"type":"mark","name":"op_get_text","count":27,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25","start":22,"end":23}},
{"type":"measure","name":"op_get_text","count":27,"duration":0},
{"type":"mark","name":"op_dispose","count":17,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24"}},
{"type":"measure","name":"op_dispose","count":17,"duration":0},
{"type":"measure","name":"request","count":36,"duration":3},
{"type":"measure","name":"completion","count":6,"duration":4},
{"type":"mark","name":"signature_help","count":3,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":0}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":23}}},
{"type":"mark","name":"get_line_index_sync","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":19,"duration":0},
{"type":"mark","name":"request","count":37,"args":{"id":38,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":23,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":141,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":141,"duration":0},
{"type":"mark","name":"op_script_version","count":142,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":142,"duration":0},
{"type":"mark","name":"op_script_version","count":143,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":143,"duration":0},
{"type":"measure","name":"request","count":37,"duration":1},
{"type":"measure","name":"signature_help","count":3,"duration":2},
{"type":"mark","name":"folding_range","count":9,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":20,"duration":0},
{"type":"mark","name":"request","count":38,"args":{"id":39,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":144,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":144,"duration":0},
{"type":"mark","name":"op_script_version","count":145,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":145,"duration":0},
{"type":"mark","name":"op_get_length","count":36,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"24"}},
{"type":"measure","name":"op_get_length","count":36,"duration":0},
{"type":"mark","name":"op_get_change_range","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":25,"oldVersion":"24","version":"25"}},
{"type":"measure","name":"op_get_change_range","count":26,"duration":0},
{"type":"mark","name":"op_get_length","count":37,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25"}},
{"type":"measure","name":"op_get_length","count":37,"duration":0},
{"type":"mark","name":"op_get_text","count":28,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25","start":0,"end":25}},
{"type":"measure","name":"op_get_text","count":28,"duration":0},
{"type":"measure","name":"request","count":38,"duration":0},
{"type":"measure","name":"folding_range","count":9,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":39,"args":{"id":40,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":146,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":146,"duration":0},
{"type":"mark","name":"op_script_version","count":147,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":147,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":9,"duration":0},
{"type":"mark","name":"op_script_version","count":148,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":148,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":9,"duration":0},
{"type":"mark","name":"op_script_version","count":149,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":149,"duration":0},
{"type":"mark","name":"op_script_version","count":150,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":150,"duration":0},
{"type":"mark","name":"op_script_version","count":151,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":151,"duration":0},
{"type":"mark","name":"op_script_version","count":152,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":152,"duration":0},
{"type":"mark","name":"op_script_version","count":153,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":153,"duration":0},
{"type":"mark","name":"op_script_version","count":154,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":154,"duration":0},
{"type":"measure","name":"request","count":39,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":9,"duration":2},
{"type":"measure","name":"update_diagnostics","count":9,"duration":2},
{"type":"mark","name":"code_action","count":3,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":23},"end":{"line":0,"character":23}},"context":{"diagnostics":[]}}},
{"type":"measure","name":"code_action","count":3,"duration":0},
{"type":"mark","name":"signature_help","count":4,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":0}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":24}}},
{"type":"mark","name":"get_line_index_sync","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":21,"duration":0},
{"type":"mark","name":"request","count":40,"args":{"id":41,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":24,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":155,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":155,"duration":0},
{"type":"mark","name":"op_script_version","count":156,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":156,"duration":0},
{"type":"mark","name":"op_script_version","count":157,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":157,"duration":0},
{"type":"measure","name":"request","count":40,"duration":1},
{"type":"measure","name":"signature_help","count":4,"duration":1},
{"type":"mark","name":"code_action","count":4,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":24},"end":{"line":0,"character":24}},"context":{"diagnostics":[]}}},
{"type":"measure","name":"code_action","count":4,"duration":0},
{"type":"mark","name":"did_change","count":25,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":26},"contentChanges":[{"range":{"start":{"line":0,"character":24},"end":{"line":0,"character":24}},"rangeLength":0,"text":","}]}},
{"type":"measure","name":"did_change","count":25,"duration":0},
{"type":"mark","name":"did_change","count":26,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":27},"contentChanges":[{"range":{"start":{"line":0,"character":25},"end":{"line":0,"character":25}},"rangeLength":0,"text":" "}]}},
{"type":"measure","name":"did_change","count":26,"duration":0},
{"type":"mark","name":"signature_help","count":5,"args":{"context":{"triggerKind":2,"triggerCharacter":",","isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":0}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":26}}},
{"type":"mark","name":"get_line_index_sync","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":22,"duration":0},
{"type":"mark","name":"request","count":41,"args":{"id":42,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":26,"options":{"triggerReason":{"kind":"characterTyped","triggerCharacter":","}}}},
{"type":"mark","name":"op_script_version","count":158,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":158,"duration":0},
{"type":"mark","name":"op_script_version","count":159,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":159,"duration":0},
{"type":"mark","name":"op_script_version","count":160,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":160,"duration":0},
{"type":"mark","name":"op_get_length","count":38,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25"}},
{"type":"measure","name":"op_get_length","count":38,"duration":0},
{"type":"mark","name":"op_get_change_range","count":27,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":25,"oldVersion":"25","version":"27"}},
{"type":"measure","name":"op_get_change_range","count":27,"duration":0},
{"type":"mark","name":"op_get_text","count":29,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27","start":24,"end":26}},
{"type":"measure","name":"op_get_text","count":29,"duration":0},
{"type":"mark","name":"op_dispose","count":18,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25"}},
{"type":"measure","name":"op_dispose","count":18,"duration":0},
{"type":"measure","name":"request","count":41,"duration":4},
{"type":"measure","name":"signature_help","count":5,"duration":5},
{"type":"mark","name":"folding_range","count":10,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":23,"duration":0},
{"type":"mark","name":"request","count":42,"args":{"id":43,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":161,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":161,"duration":0},
{"type":"mark","name":"op_script_version","count":162,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":162,"duration":0},
{"type":"mark","name":"op_get_length","count":39,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"25"}},
{"type":"measure","name":"op_get_length","count":39,"duration":0},
{"type":"mark","name":"op_get_change_range","count":28,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":27,"oldVersion":"25","version":"27"}},
{"type":"measure","name":"op_get_change_range","count":28,"duration":0},
{"type":"mark","name":"op_get_length","count":40,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27"}},
{"type":"measure","name":"op_get_length","count":40,"duration":0},
{"type":"mark","name":"op_get_text","count":30,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27","start":0,"end":27}},
{"type":"measure","name":"op_get_text","count":30,"duration":0},
{"type":"measure","name":"request","count":42,"duration":0},
{"type":"measure","name":"folding_range","count":10,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":43,"args":{"id":44,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":163,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":163,"duration":0},
{"type":"mark","name":"op_script_version","count":164,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":164,"duration":0},
{"type":"mark","name":"op_script_version","count":165,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":165,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":10,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":10,"duration":0},
{"type":"mark","name":"op_script_version","count":166,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":166,"duration":0},
{"type":"mark","name":"op_script_version","count":167,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":167,"duration":0},
{"type":"mark","name":"op_script_version","count":168,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":168,"duration":0},
{"type":"mark","name":"op_script_version","count":169,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":169,"duration":0},
{"type":"mark","name":"op_script_version","count":170,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":170,"duration":0},
{"type":"mark","name":"op_script_version","count":171,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":171,"duration":0},
{"type":"measure","name":"request","count":43,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":10,"duration":2},
{"type":"measure","name":"update_diagnostics","count":10,"duration":2},
{"type":"mark","name":"code_action","count":5,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":26},"end":{"line":0,"character":26}},"context":{"diagnostics":[]}}},
{"type":"measure","name":"code_action","count":5,"duration":0},
{"type":"mark","name":"did_change","count":27,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":28},"contentChanges":[{"range":{"start":{"line":0,"character":26},"end":{"line":0,"character":26}},"rangeLength":0,"text":"i"}]}},
{"type":"measure","name":"did_change","count":27,"duration":0},
{"type":"mark","name":"completion","count":7,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":27},"context":{"triggerKind":1}}},
{"type":"mark","name":"get_line_index_sync","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":24,"duration":0},
{"type":"mark","name":"request","count":44,"args":{"id":45,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":27,"preferences":{"includeCompletionsWithInsertText":true}}},
{"type":"mark","name":"op_script_version","count":172,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":172,"duration":0},
{"type":"mark","name":"op_script_version","count":173,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":173,"duration":0},
{"type":"mark","name":"op_script_version","count":174,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":174,"duration":0},
{"type":"mark","name":"op_get_length","count":41,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27"}},
{"type":"measure","name":"op_get_length","count":41,"duration":0},
{"type":"mark","name":"op_get_change_range","count":29,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":27,"oldVersion":"27","version":"28"}},
{"type":"measure","name":"op_get_change_range","count":29,"duration":0},
{"type":"mark","name":"op_get_text","count":31,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"28","start":26,"end":27}},
{"type":"measure","name":"op_get_text","count":31,"duration":0},
{"type":"mark","name":"op_dispose","count":19,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27"}},
{"type":"measure","name":"op_dispose","count":19,"duration":0},
{"type":"measure","name":"request","count":44,"duration":7},
{"type":"measure","name":"completion","count":7,"duration":21},
{"type":"mark","name":"completion_resolve","count":9,"args":{"label":"if","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"if","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":45,"args":{"id":46,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"if"}}},
{"type":"mark","name":"op_script_version","count":175,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":175,"duration":0},
{"type":"mark","name":"op_script_version","count":176,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":176,"duration":0},
{"type":"mark","name":"op_script_version","count":177,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":177,"duration":0},
{"type":"measure","name":"request","count":45,"duration":2},
{"type":"measure","name":"completion_resolve","count":9,"duration":3},
{"type":"mark","name":"did_change","count":28,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":29},"contentChanges":[{"range":{"start":{"line":0,"character":27},"end":{"line":0,"character":27}},"rangeLength":0,"text":"m"}]}},
{"type":"measure","name":"did_change","count":28,"duration":0},
{"type":"mark","name":"completion_resolve","count":10,"args":{"label":"implements","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"implements","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":46,"args":{"id":47,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"implements"}}},
{"type":"mark","name":"op_script_version","count":178,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":178,"duration":0},
{"type":"mark","name":"op_script_version","count":179,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":179,"duration":0},
{"type":"mark","name":"op_script_version","count":180,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":180,"duration":0},
{"type":"mark","name":"op_get_length","count":42,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"28"}},
{"type":"measure","name":"op_get_length","count":42,"duration":0},
{"type":"mark","name":"op_get_change_range","count":30,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":28,"oldVersion":"28","version":"29"}},
{"type":"measure","name":"op_get_change_range","count":30,"duration":0},
{"type":"mark","name":"op_get_text","count":32,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"29","start":27,"end":28}},
{"type":"measure","name":"op_get_text","count":32,"duration":0},
{"type":"mark","name":"op_dispose","count":20,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"28"}},
{"type":"measure","name":"op_dispose","count":20,"duration":0},
{"type":"measure","name":"request","count":46,"duration":4},
{"type":"measure","name":"completion_resolve","count":10,"duration":5},
{"type":"mark","name":"signature_help","count":6,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":1}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":28}}},
{"type":"mark","name":"get_line_index_sync","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":25,"duration":0},
{"type":"mark","name":"request","count":47,"args":{"id":48,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":28,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":181,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":181,"duration":0},
{"type":"mark","name":"op_script_version","count":182,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":182,"duration":0},
{"type":"mark","name":"op_script_version","count":183,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":183,"duration":0},
{"type":"measure","name":"request","count":47,"duration":1},
{"type":"measure","name":"signature_help","count":6,"duration":2},
{"type":"mark","name":"did_change","count":29,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":30},"contentChanges":[{"range":{"start":{"line":0,"character":28},"end":{"line":0,"character":28}},"rangeLength":0,"text":"p"}]}},
{"type":"measure","name":"did_change","count":29,"duration":0},
{"type":"mark","name":"did_change","count":30,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":31},"contentChanges":[{"range":{"start":{"line":0,"character":29},"end":{"line":0,"character":29}},"rangeLength":0,"text":"o"}]}},
{"type":"measure","name":"did_change","count":30,"duration":0},
{"type":"mark","name":"completion_resolve","count":11,"args":{"label":"import","kind":14,"sortText":"5","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"import","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":48,"args":{"id":49,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":27,"name":"import"}}},
{"type":"mark","name":"op_script_version","count":184,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":184,"duration":0},
{"type":"mark","name":"op_script_version","count":185,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":185,"duration":0},
{"type":"mark","name":"op_script_version","count":186,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":186,"duration":0},
{"type":"mark","name":"op_get_length","count":43,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"29"}},
{"type":"measure","name":"op_get_length","count":43,"duration":0},
{"type":"mark","name":"op_get_change_range","count":31,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":29,"oldVersion":"29","version":"31"}},
{"type":"measure","name":"op_get_change_range","count":31,"duration":0},
{"type":"mark","name":"op_get_text","count":33,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"31","start":28,"end":30}},
{"type":"measure","name":"op_get_text","count":33,"duration":0},
{"type":"mark","name":"op_dispose","count":21,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"29"}},
{"type":"measure","name":"op_dispose","count":21,"duration":0},
{"type":"measure","name":"request","count":48,"duration":4},
{"type":"measure","name":"completion_resolve","count":11,"duration":4},
{"type":"mark","name":"did_change","count":31,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":32},"contentChanges":[{"range":{"start":{"line":0,"character":30},"end":{"line":0,"character":30}},"rangeLength":0,"text":"r"}]}},
{"type":"measure","name":"did_change","count":31,"duration":0},
{"type":"mark","name":"signature_help","count":7,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":1}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":31}}},
{"type":"mark","name":"get_line_index_sync","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":26,"duration":0},
{"type":"mark","name":"request","count":49,"args":{"id":50,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":31,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":187,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":187,"duration":0},
{"type":"mark","name":"op_script_version","count":188,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":188,"duration":0},
{"type":"mark","name":"op_script_version","count":189,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":189,"duration":0},
{"type":"mark","name":"op_get_length","count":44,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"31"}},
{"type":"measure","name":"op_get_length","count":44,"duration":0},
{"type":"mark","name":"op_get_change_range","count":32,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":31,"oldVersion":"31","version":"32"}},
{"type":"measure","name":"op_get_change_range","count":32,"duration":0},
{"type":"mark","name":"op_get_text","count":34,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"32","start":30,"end":31}},
{"type":"measure","name":"op_get_text","count":34,"duration":0},
{"type":"mark","name":"op_dispose","count":22,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"31"}},
{"type":"measure","name":"op_dispose","count":22,"duration":0},
{"type":"measure","name":"request","count":49,"duration":6},
{"type":"measure","name":"signature_help","count":7,"duration":6},
{"type":"mark","name":"did_change","count":32,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":33},"contentChanges":[{"range":{"start":{"line":0,"character":31},"end":{"line":0,"character":31}},"rangeLength":0,"text":"t"}]}},
{"type":"measure","name":"did_change","count":32,"duration":0},
{"type":"mark","name":"signature_help","count":8,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":1}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":32}}},
{"type":"mark","name":"get_line_index_sync","count":27,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":27,"duration":0},
{"type":"mark","name":"request","count":50,"args":{"id":51,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":32,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":190,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":190,"duration":0},
{"type":"mark","name":"op_script_version","count":191,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":191,"duration":0},
{"type":"mark","name":"op_script_version","count":192,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":192,"duration":0},
{"type":"mark","name":"op_get_length","count":45,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"32"}},
{"type":"measure","name":"op_get_length","count":45,"duration":0},
{"type":"mark","name":"op_get_change_range","count":33,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":32,"oldVersion":"32","version":"33"}},
{"type":"measure","name":"op_get_change_range","count":33,"duration":0},
{"type":"mark","name":"op_get_text","count":35,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"33","start":31,"end":32}},
{"type":"measure","name":"op_get_text","count":35,"duration":0},
{"type":"mark","name":"op_dispose","count":23,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"32"}},
{"type":"measure","name":"op_dispose","count":23,"duration":0},
{"type":"measure","name":"request","count":50,"duration":3},
{"type":"measure","name":"signature_help","count":8,"duration":4},
{"type":"mark","name":"folding_range","count":11,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":28,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":28,"duration":0},
{"type":"mark","name":"request","count":51,"args":{"id":52,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":193,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":193,"duration":0},
{"type":"mark","name":"op_script_version","count":194,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":194,"duration":0},
{"type":"mark","name":"op_get_length","count":46,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"27"}},
{"type":"measure","name":"op_get_length","count":46,"duration":0},
{"type":"mark","name":"op_get_change_range","count":34,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":33,"oldVersion":"27","version":"33"}},
{"type":"measure","name":"op_get_change_range","count":34,"duration":0},
{"type":"mark","name":"op_get_length","count":47,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"33"}},
{"type":"measure","name":"op_get_length","count":47,"duration":0},
{"type":"mark","name":"op_get_text","count":36,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"33","start":0,"end":33}},
{"type":"measure","name":"op_get_text","count":36,"duration":0},
{"type":"measure","name":"request","count":51,"duration":0},
{"type":"measure","name":"folding_range","count":11,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":52,"args":{"id":53,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":11,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":11,"duration":0},
{"type":"mark","name":"op_script_version","count":195,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":195,"duration":0},
{"type":"mark","name":"op_script_version","count":196,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":196,"duration":0},
{"type":"mark","name":"op_script_version","count":197,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":197,"duration":0},
{"type":"mark","name":"op_script_version","count":198,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":198,"duration":0},
{"type":"mark","name":"op_script_version","count":199,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":199,"duration":0},
{"type":"mark","name":"op_script_version","count":200,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":200,"duration":0},
{"type":"mark","name":"op_script_version","count":201,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":201,"duration":0},
{"type":"mark","name":"op_script_version","count":202,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":202,"duration":0},
{"type":"mark","name":"op_script_version","count":203,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":203,"duration":0},
{"type":"measure","name":"request","count":52,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":11,"duration":3},
{"type":"measure","name":"update_diagnostics","count":11,"duration":3},
{"type":"mark","name":"code_action","count":6,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":32},"end":{"line":0,"character":32}},"context":{"diagnostics":[{"range":{"start":{"line":0,"character":26},"end":{"line":0,"character":32}},"severity":1,"code":1135,"source":"deno-ts","message":"Argument expression expected."}]}}},
{"type":"mark","name":"get_line_index_sync","count":29,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":29,"duration":0},
{"type":"mark","name":"request","count":53,"args":{"id":54,"method":"getCodeFixes","specifier":"file:///Users/sr/lsp/mod.ts","startPosition":26,"endPosition":32,"errorCodes":["1135"]}},
{"type":"mark","name":"op_script_version","count":204,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":204,"duration":0},
{"type":"mark","name":"op_script_version","count":205,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":205,"duration":0},
{"type":"mark","name":"op_script_version","count":206,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":206,"duration":0},
{"type":"measure","name":"request","count":53,"duration":0},
{"type":"measure","name":"code_action","count":6,"duration":0},
{"type":"mark","name":"did_change","count":33,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":34},"contentChanges":[{"range":{"start":{"line":0,"character":26},"end":{"line":0,"character":32}},"rangeLength":6,"text":"import"}]}},
{"type":"measure","name":"did_change","count":33,"duration":0},
{"type":"mark","name":"signature_help","count":9,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":1}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":32}}},
{"type":"mark","name":"get_line_index_sync","count":30,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":30,"duration":0},
{"type":"mark","name":"request","count":54,"args":{"id":55,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":32,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":207,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":207,"duration":0},
{"type":"mark","name":"op_script_version","count":208,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":208,"duration":0},
{"type":"mark","name":"op_script_version","count":209,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":209,"duration":0},
{"type":"mark","name":"op_get_length","count":48,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"33"}},
{"type":"measure","name":"op_get_length","count":48,"duration":0},
{"type":"mark","name":"op_get_change_range","count":35,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":33,"oldVersion":"33","version":"34"}},
{"type":"measure","name":"op_get_change_range","count":35,"duration":0},
{"type":"mark","name":"op_get_length","count":49,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34"}},
{"type":"measure","name":"op_get_length","count":49,"duration":0},
{"type":"mark","name":"op_get_text","count":37,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34","start":0,"end":33}},
{"type":"measure","name":"op_get_text","count":37,"duration":0},
{"type":"measure","name":"request","count":54,"duration":2},
{"type":"measure","name":"signature_help","count":9,"duration":3},
{"type":"mark","name":"folding_range","count":12,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":31,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":31,"duration":0},
{"type":"mark","name":"request","count":55,"args":{"id":56,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":210,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":210,"duration":0},
{"type":"mark","name":"op_script_version","count":211,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":211,"duration":0},
{"type":"mark","name":"op_get_length","count":50,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"33"}},
{"type":"measure","name":"op_get_length","count":50,"duration":0},
{"type":"mark","name":"op_get_change_range","count":36,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":33,"oldVersion":"33","version":"34"}},
{"type":"measure","name":"op_get_change_range","count":36,"duration":0},
{"type":"mark","name":"op_get_length","count":51,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34"}},
{"type":"measure","name":"op_get_length","count":51,"duration":0},
{"type":"mark","name":"op_get_text","count":38,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34","start":0,"end":33}},
{"type":"measure","name":"op_get_text","count":38,"duration":0},
{"type":"measure","name":"request","count":55,"duration":0},
{"type":"measure","name":"folding_range","count":12,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":56,"args":{"id":57,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":12,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":12,"duration":0},
{"type":"mark","name":"op_script_version","count":212,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":212,"duration":0},
{"type":"mark","name":"op_script_version","count":213,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":213,"duration":0},
{"type":"mark","name":"op_script_version","count":214,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":214,"duration":0},
{"type":"mark","name":"op_script_version","count":215,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":215,"duration":0},
{"type":"mark","name":"op_script_version","count":216,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":216,"duration":0},
{"type":"mark","name":"op_script_version","count":217,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":217,"duration":0},
{"type":"mark","name":"op_script_version","count":218,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":218,"duration":0},
{"type":"mark","name":"op_script_version","count":219,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":219,"duration":0},
{"type":"mark","name":"op_script_version","count":220,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":220,"duration":0},
{"type":"measure","name":"request","count":56,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":12,"duration":2},
{"type":"measure","name":"update_diagnostics","count":12,"duration":2},
{"type":"mark","name":"did_change","count":34,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":35},"contentChanges":[{"range":{"start":{"line":0,"character":32},"end":{"line":0,"character":32}},"rangeLength":0,"text":"."}]}},
{"type":"measure","name":"did_change","count":34,"duration":0},
{"type":"mark","name":"completion","count":8,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":33},"context":{"triggerKind":2,"triggerCharacter":"."}}},
{"type":"mark","name":"get_line_index_sync","count":32,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":32,"duration":0},
{"type":"mark","name":"request","count":57,"args":{"id":58,"method":"getCompletions","specifier":"file:///Users/sr/lsp/mod.ts","position":33,"preferences":{"includeCompletionsWithInsertText":true,"triggerCharacter":"."}}},
{"type":"mark","name":"op_script_version","count":221,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":221,"duration":0},
{"type":"mark","name":"op_script_version","count":222,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":222,"duration":0},
{"type":"mark","name":"op_script_version","count":223,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":223,"duration":0},
{"type":"mark","name":"op_get_length","count":52,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34"}},
{"type":"measure","name":"op_get_length","count":52,"duration":0},
{"type":"mark","name":"op_get_change_range","count":37,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":33,"oldVersion":"34","version":"35"}},
{"type":"measure","name":"op_get_change_range","count":37,"duration":0},
{"type":"mark","name":"op_get_text","count":39,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35","start":32,"end":33}},
{"type":"measure","name":"op_get_text","count":39,"duration":0},
{"type":"mark","name":"op_dispose","count":24,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34"}},
{"type":"measure","name":"op_dispose","count":24,"duration":0},
{"type":"measure","name":"request","count":57,"duration":9},
{"type":"measure","name":"completion","count":8,"duration":10},
{"type":"mark","name":"completion_resolve","count":12,"args":{"label":"meta","kind":5,"sortText":"1","insertTextFormat":1,"data":{"tsc":{"specifier":"file:///Users/sr/lsp/mod.ts","position":33,"name":"meta","useCodeSnippet":false}}}},
{"type":"mark","name":"request","count":58,"args":{"id":59,"method":"getCompletionDetails","args":{"specifier":"file:///Users/sr/lsp/mod.ts","position":33,"name":"meta"}}},
{"type":"mark","name":"op_script_version","count":224,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":224,"duration":0},
{"type":"mark","name":"op_script_version","count":225,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":225,"duration":0},
{"type":"mark","name":"op_script_version","count":226,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":226,"duration":0},
Unable to get completion info from TypeScript: TypeError: Cannot read property 'kind' of undefined
at getRootDeclaration (deno:cli/tsc/00_typescript.js:16600:21)
at Object.isCatchClauseVariableDeclarationOrBindingElement (deno:cli/tsc/00_typescript.js:14152:20)
at getTypeOfVariableOrParameterOrPropertyWorker (deno:cli/tsc/00_typescript.js:51624:20)
at getTypeOfVariableOrParameterOrProperty (deno:cli/tsc/00_typescript.js:51587:28)
at getTypeOfSymbol (deno:cli/tsc/00_typescript.js:51930:24)
at getTypeOfSymbolAtLocation (deno:cli/tsc/00_typescript.js:65150:20)
at Object.getTypeOfSymbolAtLocation (deno:cli/tsc/00_typescript.js:44091:35)
at Object.getSymbolDisplayPartsDocumentationAndSymbolKind (deno:cli/tsc/00_typescript.js:131138:97)
at deno:cli/tsc/00_typescript.js:120534:41
at Object.runWithCancellationToken (deno:cli/tsc/00_typescript.js:44374:28)
[Error - 1:11:57 PM] Request completionItem/resolve failed.
Message: Internal error
Code: -32603
{"type":"mark","name":"signature_help","count":10,"args":{"context":{"triggerKind":3,"isRetrigger":true,"activeSignatureHelp":{"signatures":[{"label":"URL(url: string, base?: string | URL | undefined): URL","parameters":[{"label":"url: string"},{"label":"base?: string | URL | undefined"}]}],"activeSignature":0,"activeParameter":1}},"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"position":{"line":0,"character":33}}},
{"type":"mark","name":"get_line_index_sync","count":33,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":33,"duration":0},
{"type":"mark","name":"request","count":59,"args":{"id":60,"method":"getSignatureHelpItems","specifier":"file:///Users/sr/lsp/mod.ts","position":33,"options":{"triggerReason":{"kind":"retrigger"}}}},
{"type":"mark","name":"op_script_version","count":227,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":227,"duration":0},
{"type":"mark","name":"op_script_version","count":228,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":228,"duration":0},
{"type":"mark","name":"op_script_version","count":229,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":229,"duration":0},
Failed to request to tsserver: Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70605:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70580:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72941:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72832:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72479:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69001:35)
at chooseOverload (deno:cli/tsc/00_typescript.js:69510:25)
at resolveCall (deno:cli/tsc/00_typescript.js:69384:26)
at resolveNewExpression (deno:cli/tsc/00_typescript.js:69853:24)
at resolveSignature (deno:cli/tsc/00_typescript.js:70165:28)
[Error - 1:11:57 PM] Request textDocument/signatureHelp failed.
Message: Invalid request
Code: -32600
{"type":"mark","name":"folding_range","count":13,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":34,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":34,"duration":0},
{"type":"mark","name":"request","count":60,"args":{"id":61,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":230,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":230,"duration":0},
{"type":"mark","name":"op_script_version","count":231,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":231,"duration":0},
{"type":"mark","name":"op_get_length","count":53,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"34"}},
{"type":"measure","name":"op_get_length","count":53,"duration":0},
{"type":"mark","name":"op_get_change_range","count":38,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":34,"oldVersion":"34","version":"35"}},
{"type":"measure","name":"op_get_change_range","count":38,"duration":0},
{"type":"mark","name":"op_get_length","count":54,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35"}},
{"type":"measure","name":"op_get_length","count":54,"duration":0},
{"type":"mark","name":"op_get_text","count":40,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35","start":0,"end":34}},
{"type":"measure","name":"op_get_text","count":40,"duration":0},
{"type":"measure","name":"request","count":60,"duration":0},
{"type":"measure","name":"folding_range","count":13,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":61,"args":{"id":62,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":13,"duration":0},
{"type":"mark","name":"op_script_version","count":232,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":232,"duration":0},
{"type":"mark","name":"op_script_version","count":233,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":233,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":13,"duration":0},
{"type":"mark","name":"op_script_version","count":234,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":234,"duration":0},
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70605:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70580:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72941:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72832:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72479:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69001:35)
at chooseOverload (deno:cli/tsc/00_typescript.js:69510:25)
at resolveCall (deno:cli/tsc/00_typescript.js:69384:26)
at resolveNewExpression (deno:cli/tsc/00_typescript.js:69853:24)
at resolveSignature (deno:cli/tsc/00_typescript.js:70165:28)
{"type":"measure","name":"request","count":61,"duration":2},
{"type":"measure","name":"update_diagnostics_ts","count":13,"duration":2},
{"type":"measure","name":"update_diagnostics","count":13,"duration":2},
{"type":"mark","name":"did_change","count":35,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":36},"contentChanges":[{"range":{"start":{"line":0,"character":33},"end":{"line":0,"character":33}},"rangeLength":0,"text":"m"}]}},
{"type":"measure","name":"did_change","count":35,"duration":0},
{"type":"mark","name":"folding_range","count":14,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":35,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":35,"duration":0},
{"type":"mark","name":"request","count":62,"args":{"id":63,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":235,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":235,"duration":0},
{"type":"mark","name":"op_script_version","count":236,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":236,"duration":0},
{"type":"mark","name":"op_get_length","count":55,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35"}},
{"type":"measure","name":"op_get_length","count":55,"duration":0},
{"type":"mark","name":"op_get_change_range","count":39,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":34,"oldVersion":"35","version":"36"}},
{"type":"measure","name":"op_get_change_range","count":39,"duration":0},
{"type":"mark","name":"op_get_text","count":41,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36","start":33,"end":34}},
{"type":"measure","name":"op_get_text","count":41,"duration":0},
{"type":"mark","name":"op_dispose","count":25,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35"}},
{"type":"measure","name":"op_dispose","count":25,"duration":0},
{"type":"measure","name":"request","count":62,"duration":0},
{"type":"measure","name":"folding_range","count":14,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":63,"args":{"id":64,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"measure","name":"update_diagnostics_lint","count":14,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":14,"duration":0},
{"type":"mark","name":"op_script_version","count":237,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":237,"duration":0},
{"type":"mark","name":"op_script_version","count":238,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":238,"duration":0},
{"type":"mark","name":"op_script_version","count":239,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":239,"duration":0},
{"type":"mark","name":"op_get_length","count":56,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"35"}},
{"type":"measure","name":"op_get_length","count":56,"duration":0},
{"type":"mark","name":"op_get_change_range","count":40,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":35,"oldVersion":"35","version":"36"}},
{"type":"measure","name":"op_get_change_range","count":40,"duration":0},
{"type":"mark","name":"op_get_length","count":57,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36"}},
{"type":"measure","name":"op_get_length","count":57,"duration":0},
{"type":"mark","name":"op_get_text","count":42,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36","start":0,"end":35}},
{"type":"measure","name":"op_get_text","count":42,"duration":0},
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70605:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70580:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72941:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72832:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72479:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69001:35)
at chooseOverload (deno:cli/tsc/00_typescript.js:69510:25)
at resolveCall (deno:cli/tsc/00_typescript.js:69384:26)
at resolveNewExpression (deno:cli/tsc/00_typescript.js:69853:24)
at resolveSignature (deno:cli/tsc/00_typescript.js:70165:28)
{"type":"measure","name":"request","count":63,"duration":5},
{"type":"measure","name":"update_diagnostics_ts","count":14,"duration":6},
{"type":"measure","name":"update_diagnostics","count":14,"duration":6},
{"type":"mark","name":"did_change","count":36,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts","version":37},"contentChanges":[{"range":{"start":{"line":0,"character":33},"end":{"line":0,"character":34}},"rangeLength":1,"text":"meta"}]}},
{"type":"measure","name":"did_change","count":36,"duration":0},
{"type":"mark","name":"folding_range","count":15,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":36,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":36,"duration":0},
{"type":"mark","name":"request","count":64,"args":{"id":65,"method":"getOutliningSpans","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":240,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":240,"duration":0},
{"type":"mark","name":"op_script_version","count":241,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":241,"duration":0},
{"type":"mark","name":"op_get_length","count":58,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36"}},
{"type":"measure","name":"op_get_length","count":58,"duration":0},
{"type":"mark","name":"op_get_change_range","count":41,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":35,"oldVersion":"36","version":"37"}},
{"type":"measure","name":"op_get_change_range","count":41,"duration":0},
{"type":"mark","name":"op_get_text","count":43,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"37","start":34,"end":37}},
{"type":"measure","name":"op_get_text","count":43,"duration":0},
{"type":"mark","name":"op_dispose","count":26,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36"}},
{"type":"measure","name":"op_dispose","count":26,"duration":0},
{"type":"measure","name":"request","count":64,"duration":0},
{"type":"measure","name":"folding_range","count":15,"duration":1},
{"type":"mark","name":"update_diagnostics"},
{"type":"mark","name":"update_diagnostics_lint"},
{"type":"mark","name":"update_diagnostics_ts"},
{"type":"mark","name":"update_diagnostics_deps"},
{"type":"mark","name":"request","count":65,"args":{"id":66,"method":"getDiagnostics","specifiers":["file:///Users/sr/lsp/mod.ts"]}},
{"type":"mark","name":"op_script_version","count":242,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":242,"duration":0},
{"type":"mark","name":"op_script_version","count":243,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":243,"duration":0},
{"type":"measure","name":"update_diagnostics_lint","count":15,"duration":0},
{"type":"measure","name":"update_diagnostics_deps","count":15,"duration":0},
{"type":"mark","name":"op_script_version","count":244,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":244,"duration":0},
{"type":"mark","name":"op_get_length","count":59,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"36"}},
{"type":"measure","name":"op_get_length","count":59,"duration":0},
{"type":"mark","name":"op_get_change_range","count":42,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","oldLength":38,"oldVersion":"36","version":"37"}},
{"type":"measure","name":"op_get_change_range","count":42,"duration":0},
{"type":"mark","name":"op_get_length","count":60,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"37"}},
{"type":"measure","name":"op_get_length","count":60,"duration":0},
{"type":"mark","name":"op_get_text","count":44,"args":{"specifier":"file:///Users/sr/lsp/mod.ts","version":"37","start":0,"end":38}},
{"type":"measure","name":"op_get_text","count":44,"duration":0},
{"type":"mark","name":"op_script_version","count":245,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":245,"duration":0},
{"type":"mark","name":"op_script_version","count":246,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":246,"duration":0},
{"type":"mark","name":"op_script_version","count":247,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":247,"duration":0},
{"type":"mark","name":"op_script_version","count":248,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":248,"duration":0},
{"type":"mark","name":"op_script_version","count":249,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":249,"duration":0},
{"type":"mark","name":"op_script_version","count":250,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":250,"duration":0},
{"type":"measure","name":"request","count":65,"duration":9},
{"type":"measure","name":"update_diagnostics_ts","count":15,"duration":9},
{"type":"measure","name":"update_diagnostics","count":15,"duration":10},
{"type":"mark","name":"code_action","count":7,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"},"range":{"start":{"line":0,"character":37},"end":{"line":0,"character":37}},"context":{"diagnostics":[{"range":{"start":{"line":0,"character":26},"end":{"line":0,"character":37}},"severity":1,"code":2345,"source":"deno-ts","message":"Argument of type 'ImportMeta' is not assignable to parameter of type 'string | URL | undefined'.\n Type 'ImportMeta' is missing the following properties from type 'URL': hash, host, hostname, href, and 9 more."}]}}},
{"type":"mark","name":"get_line_index_sync","count":37,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":37,"duration":0},
{"type":"mark","name":"request","count":66,"args":{"id":67,"method":"getCodeFixes","specifier":"file:///Users/sr/lsp/mod.ts","startPosition":26,"endPosition":37,"errorCodes":["2345"]}},
{"type":"mark","name":"op_script_version","count":251,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":251,"duration":0},
{"type":"mark","name":"op_script_version","count":252,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":252,"duration":0},
{"type":"mark","name":"op_script_version","count":253,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":253,"duration":0},
{"type":"measure","name":"request","count":66,"duration":1},
{"type":"measure","name":"code_action","count":7,"duration":2},
{"type":"mark","name":"document_symbol","count":2,"args":{"textDocument":{"uri":"file:///Users/sr/lsp/mod.ts"}}},
{"type":"mark","name":"get_line_index_sync","count":38,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"get_line_index_sync","count":38,"duration":0},
{"type":"mark","name":"request","count":67,"args":{"id":68,"method":"getNavigationTree","specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"mark","name":"op_script_version","count":254,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":254,"duration":0},
{"type":"mark","name":"op_script_version","count":255,"args":{"specifier":"file:///Users/sr/lsp/mod.ts"}},
{"type":"measure","name":"op_script_version","count":255,"duration":0},
{"type":"measure","name":"request","count":67,"duration":1},
{"type":"measure","name":"document_symbol","count":2,"duration":2},
</code></pre></div>
</details> | 1 |
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const LogRow = React.createClass({
mixins: [PureRenderMixin],
render: function() {
return (
<TableRow>
<TableRowColumn >{this.props.dataVal.timestamp}</TableRowColumn>
<TableRowColumn >{this.props.dataVal.logLevel}</TableRowColumn>
<TableRowColumn >{this.props.dataVal.serviceType}</TableRowColumn>
<TableRowColumn>{this.props.dataVal.logMessage}</TableRowColumn>
<TableRowColumn >{this.props.dataVal.tailNumber}</TableRowColumn>
<TableRowColumn >{this.props.dataVal.logFilename}</TableRowColumn>
</TableRow>
);
}
})"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">LogRow</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">mixins</span>: <span class="pl-kos">[</span><span class="pl-v">PureRenderMixin</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-en">render</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">TableRow</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">TableRowColumn</span> <span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">dataVal</span><span class="pl-kos">.</span><span class="pl-c1">timestamp</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">TableRowColumn</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">TableRowColumn</span> <span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">dataVal</span><span class="pl-kos">.</span><span class="pl-c1">logLevel</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">TableRowColumn</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">TableRowColumn</span> <span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">dataVal</span><span class="pl-kos">.</span><span class="pl-c1">serviceType</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">TableRowColumn</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">TableRowColumn</span><span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">dataVal</span><span class="pl-kos">.</span><span class="pl-c1">logMessage</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">TableRowColumn</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">TableRowColumn</span> <span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">dataVal</span><span class="pl-kos">.</span><span class="pl-c1">tailNumber</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">TableRowColumn</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">TableRowColumn</span> <span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">dataVal</span><span class="pl-kos">.</span><span class="pl-c1">logFilename</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">TableRowColumn</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">TableRow</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></pre></div>
<p dir="auto">then I used it like this</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let logData = filteredObjects.map((dataVal, i) => <LogRow key={i} dataVal={dataVal} forId={'id'+i}/>);"><pre class="notranslate"><code class="notranslate">let logData = filteredObjects.map((dataVal, i) => <LogRow key={i} dataVal={dataVal} forId={'id'+i}/>);
</code></pre></div>
<p dir="auto">When I change it to a simple code below, the checkboxes on my table are visible</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" let logData = filteredObjects.map((dataVal, i) => <TableRow key={i}><TableRowColumn >{dataVal.timestamp}</TableRowColumn><TableRowColumn >{dataVal.logLevel}</TableRowColumn><TableRowColumn >{dataVal.serviceType}</TableRowColumn><TableRowColumn>{dataVal.logMessage}</TableRowColumn><TableRowColumn >{dataVal.tailNumber}</TableRowColumn><TableRowColumn >{dataVal.logFilename}</TableRowColumn></TableRow>);"><pre class="notranslate"><code class="notranslate"> let logData = filteredObjects.map((dataVal, i) => <TableRow key={i}><TableRowColumn >{dataVal.timestamp}</TableRowColumn><TableRowColumn >{dataVal.logLevel}</TableRowColumn><TableRowColumn >{dataVal.serviceType}</TableRowColumn><TableRowColumn>{dataVal.logMessage}</TableRowColumn><TableRowColumn >{dataVal.tailNumber}</TableRowColumn><TableRowColumn >{dataVal.logFilename}</TableRowColumn></TableRow>);
</code></pre></div>
<p dir="auto">I'm not sure if it's a Material-UI or ReactJS issue though.</p> | <p dir="auto">I have created a component which generates Table and another one which generates TableRows. The problem is that the checkbox on the rows are not showing.</p>
<p dir="auto">Any ideas?</p>
<p dir="auto">Thanks</p> | 1 |
<p dir="auto">Use tf.one_hot() on Windows 10, GPU, Nvidia 970. Error CUDA_ERROR_LAUNCH_FAILED happens.</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<p dir="auto">I have post an issue in <a href="http://stackoverflow.com/questions/41115476/tensorflow-gpu-cuda-error-launch-failed-on-tf-one-hot" rel="nofollow">http://stackoverflow.com/questions/41115476/tensorflow-gpu-cuda-error-launch-failed-on-tf-one-hot</a> . No solution found. More people report the same issue.</p>
<h3 dir="auto">Environment info</h3>
<ul dir="auto">
<li>TensorFlow 0.12.0-rc1</li>
<li>Python 3.5</li>
<li>CUDA 8.0</li>
<li>cuDNN 5.1</li>
<li>OS: Windows 10</li>
<li>GPU: GeForce GTX 970</li>
</ul>
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
idx_0 = tf.placeholder(tf.int64, [None])
mask = tf.one_hot(idx_0, 3, axis=-1)
sess = tf.Session()
sess.run(tf.global_variables_initializer())
a = sess.run([mask],feed_dict={idx_0:[0,1,2]})
print(a)"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
idx_0 = tf.placeholder(tf.int64, [None])
mask = tf.one_hot(idx_0, 3, axis=-1)
sess = tf.Session()
sess.run(tf.global_variables_initializer())
a = sess.run([mask],feed_dict={idx_0:[0,1,2]})
print(a)
</code></pre></div>
<h3 dir="auto">What other attempted solutions have you tried?</h3>
<ol dir="auto">
<li>Run the code in same machine, Linux, GPU. No error.</li>
<li>Run the code in same machine, Windows, CPU. No error.</li>
</ol>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">(If logs are large, please upload as attachment or provide link).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_driver.cc:1177] could not synchronize on CUDA context: CUDA_ERROR_LAUNCH_FAILED :: No stack trace available
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_event.cc:49] Error polling for event status: failed to query event: CUDA_ERROR_LAUNCH_FAILED
F c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_util.cc:370] GPU sync failed"><pre class="notranslate"><code class="notranslate">E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_driver.cc:1177] could not synchronize on CUDA context: CUDA_ERROR_LAUNCH_FAILED :: No stack trace available
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_event.cc:49] Error polling for event status: failed to query event: CUDA_ERROR_LAUNCH_FAILED
F c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_util.cc:370] GPU sync failed
</code></pre></div> | <p dir="auto">I'm using a LeNet-5 mnist example from Udacity's course. Link to the source code is below.<br>
Training works ok on a CPU (config = tf.ConfigProto(device_count = {'GPU': 0})),<br>
but fails in a GPU mode with the following 'CUDA_ERROR_ILLEGAL_ADDRESS' error:</p>
<blockquote>
<p dir="auto">I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:885] Found device 0 with properties:<br>
name: GeForce GTX 1060 6GB<br>
major: 6 minor: 1 memoryClockRate (GHz) 1.7845<br>
pciBusID 0000:01:00.0<br>
Total memory: 6.00GiB<br>
Free memory: 5.01GiB<br>
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:906] DMA: 0<br>
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:916] 0: Y<br>
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1060 6GB, pci bus id: 0000:01:00.0)<br>
Training...<br>
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_event.cc:49] Error polling for event status: failed to query event: <strong>CUDA_ERROR_ILLEGAL_ADDRESS</strong><br>
F c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_event_mgr.cc:198] Unexpected Event status: 1</p>
</blockquote>
<p dir="auto">I have reproduced same error on two setups.<br>
Environment 1 (Home PC):</p>
<ul dir="auto">
<li>windows 10;</li>
<li>latest anaconda 4.2.0, python 3.5;</li>
<li>cuda 8</li>
<li>cudnn 5.1 (for win10)</li>
<li>tensorflow 0.12.0 gpu (<a href="https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0-cp35-cp35m-win_amd64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0-cp35-cp35m-win_amd64.whl</a>)</li>
<li>GeForce GTX 1060 6Gb</li>
</ul>
<p dir="auto">Environment 2 (Work PC):</p>
<ul dir="auto">
<li>windows 7;</li>
<li>latest anaconda 4.2.0, python 3.5;</li>
<li>cuda 8</li>
<li>cudnn 5.1 (for win7)</li>
<li>tensorflow 0.12.0 gpu (<a href="https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0-cp35-cp35m-win_amd64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0-cp35-cp35m-win_amd64.whl</a>)</li>
<li>GeForce GTX 660 3Gb</li>
</ul>
<p dir="auto">I'm sharing two scripts with minor changes that allow a workaround:<br>
<a href="https://drive.google.com/open?id=0B6jkkqMOGy5cNHh3TVpxU283Ykk" rel="nofollow">https://drive.google.com/open?id=0B6jkkqMOGy5cNHh3TVpxU283Ykk</a></p>
<p dir="auto">Main difference:<br>
Script from example that crashes (LabLenetBad.py) uses raw mnist label data with the tf.one_hot() call.<br>
The workaround (LabLenetGood.py) reads mnist data with (one_hot=True) flag and does not use tf.one_hot() call on the Y placeholder.</p>
<p dir="auto">I think that tf.one_hot does not work properly on the gpu.</p> | 1 |
<p dir="auto">Classes <strong>with super class</strong> are very slow to <code class="notranslate">new</code>, in comparison to what [email protected] does. The difference can be found at <a href="https://fossies.org/diffs/babel/7.8.8_vs_7.9.0/packages/babel-plugin-transform-classes/test/fixtures/regression/T2997/output.js-diff.html" rel="nofollow">here</a>.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function test(Vec3) {
const t1 = Date.now();
(() => {
for (let i = 0; i < 1000000; ++i) {
const x = Math.random();
new Vec3(x, x, x); // Key line
}
})();
const t2 = Date.now();
console.log(`Past: ${t2 - t1}ms`);
}
test(require('./out/7.8.8/vec3.js').Vec3); // 18ms
test(require('./out/7.9.x/vec3.js').Vec3); // Oops, 2451ms!!"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-v">Vec3</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">t1</span> <span class="pl-c1">=</span> <span class="pl-v">Date</span><span class="pl-kos">.</span><span class="pl-en">now</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1"><</span> <span class="pl-c1">1000000</span><span class="pl-kos">;</span> <span class="pl-c1">++</span><span class="pl-s1">i</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">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-kos">;</span>
<span class="pl-k">new</span> <span class="pl-v">Vec3</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-s1">x</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Key line</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-v">Date</span><span class="pl-kos">.</span><span class="pl-en">now</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`Past: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">t2</span> <span class="pl-c1">-</span> <span class="pl-s1">t1</span><span class="pl-kos">}</span></span>ms`</span><span class="pl-kos">)</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-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./out/7.8.8/vec3.js'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">Vec3</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// 18ms</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./out/7.9.x/vec3.js'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">Vec3</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Oops, 2451ms!!</span></pre></div>
<p dir="auto">I have upload the test code to <a href="https://github.com/shrinktofit/babel-perf">this repository</a>. You can try it just by <code class="notranslate">node ./run-perf.js</code>.</p> | <blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/madole/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/madole">@madole</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6</li>
<li><strong>Node version:</strong> 5</li>
<li><strong>npm version:</strong> 3</li>
</ul>
<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 Animal {
constructor(name) {
this.name = name;
}
async getAge() {
const age = await getAgeFromAPI();
return age;
}
}
class Dog extends Animal {
async getAge() {
const age = await super.getAge();
return age * 7;
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Animal</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">name</span> <span class="pl-c1">=</span> <span class="pl-s1">name</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">async</span> <span class="pl-en">getAge</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">age</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-en">getAgeFromAPI</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-s1">age</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-v">Dog</span> <span class="pl-k">extends</span> <span class="pl-v">Animal</span> <span class="pl-kos">{</span>
<span class="pl-k">async</span> <span class="pl-en">getAge</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">age</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-en">getAge</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-s1">age</span> <span class="pl-c1">*</span> <span class="pl-c1">7</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">I should be able to call getAge on the Dog instance and it should call the parent's prototype method of the same name.</p>
<p dir="auto">It actually compiles to</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Dog extends Animal {
getAge() {
return (0, _bluebird.coroutine)(function* () {
const age = yield super.getAge();
return age * 7;
})();
}
}"><pre class="notranslate"><code class="notranslate">class Dog extends Animal {
getAge() {
return (0, _bluebird.coroutine)(function* () {
const age = yield super.getAge();
return age * 7;
})();
}
}
</code></pre></div>
<p dir="auto">Which means super is in the wrong scope... it could detect this scenario and compile to something like this..</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Dog extends Animal {
getAge() {
var _this = this;
return (0, _bluebird.coroutine)(function* () {
const age = yield Animal.prototype.getAge.call(_this);
return age * 5;
})();
}"><pre class="notranslate"><code class="notranslate">class Dog extends Animal {
getAge() {
var _this = this;
return (0, _bluebird.coroutine)(function* () {
const age = yield Animal.prototype.getAge.call(_this);
return age * 5;
})();
}
</code></pre></div> | 0 |
<p dir="auto">Opening this file: <a href="https://github.com/espadrine/aulx/blob/master/html/tokenizer.js">https://github.com/espadrine/aulx/blob/master/html/tokenizer.js</a></p>
<p dir="auto">Causes the parser to choke and Atom warns several times about not responding. Eventually you have to give up and quit the whole app.</p>
<p dir="auto">The exact line that is doing it is this: <a href="https://github.com/espadrine/aulx/blob/master/html/tokenizer.js#L63">https://github.com/espadrine/aulx/blob/master/html/tokenizer.js#L63</a></p>
<p dir="auto">If I remove the line there is no problem.</p>
<p dir="auto">I notice that when opening the file in Sublime 3 they don't syntax colorize that line at all. For any really long line they just skip it.</p>
<p dir="auto">Probably related issues:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="77211025" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/6830" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/6830/hovercard" href="https://github.com/atom/atom/issues/6830">#6830</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="60067445" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/5882" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/5882/hovercard" href="https://github.com/atom/atom/issues/5882">#5882</a></p>
<p dir="auto">The issue was reported by this guy: <a href="https://news.ycombinator.com/item?id=9782812" rel="nofollow">https://news.ycombinator.com/item?id=9782812</a></p> | <p dir="auto">May be a known issue, but files with large embedded images such as github's public/enterprise/maintenance.html will often cause Atom to freeze (MacVim actually struggles as well).</p>
<p dir="auto">Seems some of them (github's public/maintenance.html for instance) work fine when in soft wrap mode, or until you move your cursor to the long line when out of soft wrap.</p> | 1 |
<p dir="auto">This issue relates to scipy.stats.kstest. The one-sided test, as specified by the <code class="notranslate">alternative</code> argument, works in the opposite direction compared to the other statistical tests (ttest_ind, wilcoxon). In the example below, the p-values for the t-test and wilcoxon test are close to zero, but for the Kolmogorov-Smirnov test the p-value is 1.</p>
<h4 dir="auto">Reproducing code example:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import scipy.stats
import numpy as np
x = np.random.normal(mu, sigma, 1000)
scipy.stats.ttest_ind(x, x+2, alternative='less')
scipy.stats.wilcoxon(x, x+2, alternative='less')
scipy.stats.kstest(x, x+2, alternative='less')"><pre class="notranslate"><code class="notranslate">import scipy.stats
import numpy as np
x = np.random.normal(mu, sigma, 1000)
scipy.stats.ttest_ind(x, x+2, alternative='less')
scipy.stats.wilcoxon(x, x+2, alternative='less')
scipy.stats.kstest(x, x+2, alternative='less')
</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.6.0 1.19.2 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">1.6.0 1.19.2 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)
</code></pre></div> | <p dir="auto">Hi, I've found that the <code class="notranslate">stats.ks_2samp()</code> documentation notes section states:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In the one-sided test, the alternative is that the empirical
cumulative distribution function F(x) of the data1 variable is "less"
or "greater" than the empirical cumulative distribution function G(x)
of the data2 variable, ``F(x)<=G(x)``, resp. ``F(x)>=G(x)``."><pre class="notranslate"><code class="notranslate">In the one-sided test, the alternative is that the empirical
cumulative distribution function F(x) of the data1 variable is "less"
or "greater" than the empirical cumulative distribution function G(x)
of the data2 variable, ``F(x)<=G(x)``, resp. ``F(x)>=G(x)``.
</code></pre></div>
<p dir="auto">However, when running the function it has the opposite behavior. This is perhaps just a documentation error.</p>
<h4 dir="auto">Reproducing code example:</h4>
<p dir="auto">In the code below I generate two gaussian distributions with different means,<code class="notranslate">data1</code> has a smaller mean than <code class="notranslate">data2</code>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="data1 = np.random.normal(loc = 0, size = 100)
data2 = np.random.normal(loc = 5, size = 100)
# Should accept alternative hypothesis (data1 ECDF is less than data2's).
ks_2samp(data1, data2, alternative ='less')
>>>Ks_2sampResult(statistic=0.0, pvalue=1.0)
# Should reject alternative hypothesis
ks_2samp(data1, data2, alternative = 'greater')
>>>Ks_2sampResult(statistic=0.98, pvalue=2.197716889733508e-55)"><pre class="notranslate"><code class="notranslate">data1 = np.random.normal(loc = 0, size = 100)
data2 = np.random.normal(loc = 5, size = 100)
# Should accept alternative hypothesis (data1 ECDF is less than data2's).
ks_2samp(data1, data2, alternative ='less')
>>>Ks_2sampResult(statistic=0.0, pvalue=1.0)
# Should reject alternative hypothesis
ks_2samp(data1, data2, alternative = 'greater')
>>>Ks_2sampResult(statistic=0.98, pvalue=2.197716889733508e-55)
</code></pre></div>
<h4 dir="auto">Scipy/Numpy/Python version information:</h4>
<p dir="auto">Scipy version 1.4.1<br>
Numpy version 1.19.1<br>
sys.version_info(major=3, minor=7, micro=6, releaselevel='final', serial=0)</p> | 1 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>:</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<p dir="auto">This is the guts of the integration test I'm going to put up in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="860835979" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6733" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/6733/hovercard" href="https://github.com/celery/celery/pull/6733">#6733</a> :</p>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="child_chord = chord(identity.si(42), chain((identity.s(), )))
group_sig = group((child_chord, ))
res = group_sig.delay()
res.get(timeout=ARBITRARY)"><pre class="notranslate"><span class="pl-s1">child_chord</span> <span class="pl-c1">=</span> <span class="pl-en">chord</span>(<span class="pl-s1">identity</span>.<span class="pl-en">si</span>(<span class="pl-c1">42</span>), <span class="pl-en">chain</span>((<span class="pl-s1">identity</span>.<span class="pl-en">s</span>(), )))
<span class="pl-s1">group_sig</span> <span class="pl-c1">=</span> <span class="pl-en">group</span>((<span class="pl-s1">child_chord</span>, ))
<span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">group_sig</span>.<span class="pl-en">delay</span>()
<span class="pl-s1">res</span>.<span class="pl-en">get</span>(<span class="pl-s1">timeout</span><span class="pl-c1">=</span><span class="pl-v">ARBITRARY</span>)</pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<ul dir="auto">
<li>result object should be able to be gotten</li>
</ul>
<h1 dir="auto">Actual Behavior</h1>
<ul dir="auto">
<li><code class="notranslate">res.get()</code> raises <code class="notranslate">TimeoutError</code> no matter how long you set your timeout value (AFAICT)</li>
<li>A subsequent call to <code class="notranslate">res.get()</code> gets the result properly since the task(s) do run and by that time the results have probably landed</li>
</ul> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>Allow GroupResult.join timeout to be configurable in celery.chord_unlock (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="412434407" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/5349" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/5349/hovercard" href="https://github.com/celery/celery/issues/5349">#5349</a>)</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: master</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<p dir="auto">Look through celery source code to find out that base and redis result backend <code class="notranslate">join_func</code> is called with hardcoded timeout:<br>
<a href="https://github.com/celery/celery/blob/master/celery/backends/base.py#L930">base.py</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" with allow_join_result():
ret = j(timeout=3.0, propagate=True)"><pre class="notranslate"><code class="notranslate"> with allow_join_result():
ret = j(timeout=3.0, propagate=True)
</code></pre></div>
<p dir="auto"><a href="https://github.com/celery/celery/blob/master/celery/backends/redis.py#L471">redis.py</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" with allow_join_result():
resl = join_func(timeout=3.0, propagate=True)"><pre class="notranslate"><code class="notranslate"> with allow_join_result():
resl = join_func(timeout=3.0, propagate=True)
</code></pre></div>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">I expect that <code class="notranslate">result_chord_join_timeout</code> will affect timeout while working with chord parts.</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">With very large chords there are sudden timeouts which can't be eliminated by changing appropriate configuration option.</p> | 0 |
<p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43145877" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/8309" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/8309/hovercard" href="https://github.com/pandas-dev/pandas/issues/8309">#8309</a></p>
<p dir="auto">for example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pd.qcut([1,1,1,1,1,1,1,1,1,1,1,1,1,5,5,5], [0.00001, 0.5])"><pre class="notranslate"><span class="pl-s1">pd</span>.<span class="pl-en">qcut</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">5</span>,<span class="pl-c1">5</span>,<span class="pl-c1">5</span>], [<span class="pl-c1">0.00001</span>, <span class="pl-c1">0.5</span>])</pre></div>
<p dir="auto">will raise "ValueError: Bin edges must be unique: array([ 1., 1.])" exception</p>
<p dir="auto">Fix suggestion - add one new line:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def qcut(x, q, labels=None, retbins=False, precision=3):
if com.is_integer(q):
quantiles = np.linspace(0, 1, q + 1)
else:
quantiles = q
bins = algos.quantile(x, quantiles)
--->bins = np.unique(bins)
return _bins_to_cuts(x, bins, labels=labels, retbins=retbins,
precision=precision, include_lowest=True)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">qcut</span>(<span class="pl-s1">x</span>, <span class="pl-s1">q</span>, <span class="pl-s1">labels</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">retbins</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">precision</span><span class="pl-c1">=</span><span class="pl-c1">3</span>):
<span class="pl-k">if</span> <span class="pl-s1">com</span>.<span class="pl-en">is_integer</span>(<span class="pl-s1">q</span>):
<span class="pl-s1">quantiles</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-s1">q</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">quantiles</span> <span class="pl-c1">=</span> <span class="pl-s1">q</span>
<span class="pl-s1">bins</span> <span class="pl-c1">=</span> <span class="pl-s1">algos</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">x</span>, <span class="pl-s1">quantiles</span>)
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span><span class="pl-s1">bins</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">unique</span>(<span class="pl-s1">bins</span>)
<span class="pl-k">return</span> <span class="pl-en">_bins_to_cuts</span>(<span class="pl-s1">x</span>, <span class="pl-s1">bins</span>, <span class="pl-s1">labels</span><span class="pl-c1">=</span><span class="pl-s1">labels</span>, <span class="pl-s1">retbins</span><span class="pl-c1">=</span><span class="pl-s1">retbins</span>,
<span class="pl-s1">precision</span><span class="pl-c1">=</span><span class="pl-s1">precision</span>, <span class="pl-s1">include_lowest</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div> | <p dir="auto">pandas.cut and similar operate on the principle that bins start at one end of a line and finish at another. However, sometimes it is necessary to work with data that operates on a circular scale, for example compass directions.</p>
<p dir="auto">It would be a great enhancement if pd.cut could deal with these cases.<br>
I do not know of anything in numpy or pandas that currently deals with this situation, but it would be very useful.</p>
<h4 dir="auto">Current workaround</h4>
<p dir="auto">Currently this is accomplished by having a bin covering half of the real bin at each end of the scale, for example the bin 345° to15° would be covered by a bin of 0° to 15° and a bin of 345° to 360°. It is then necessary to assign the members of one category to the other, rename it, and then delete the unused category.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="data = pd.DataFrame(np.random.random(400) * 360, columns=["Direction"])
bins = np.array([-15, 15, 45, 75, 105, 135, 165, 195, 225, 255, 285, 315, 345, 375])
c = pd.cut(data.Direction, bins)
c[c=="(-15, 15]"] = "(345, 375]"
c = c.cat.remove_unused_categories()
cats = list(c.cat.categories)
cats[-1] = '(345, 15]'
c = c.cat.set_categories(cats)"><pre class="notranslate"><span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>(<span class="pl-c1">400</span>) <span class="pl-c1">*</span> <span class="pl-c1">360</span>, <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">"Direction"</span>])
<span class="pl-s1">bins</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">-</span><span class="pl-c1">15</span>, <span class="pl-c1">15</span>, <span class="pl-c1">45</span>, <span class="pl-c1">75</span>, <span class="pl-c1">105</span>, <span class="pl-c1">135</span>, <span class="pl-c1">165</span>, <span class="pl-c1">195</span>, <span class="pl-c1">225</span>, <span class="pl-c1">255</span>, <span class="pl-c1">285</span>, <span class="pl-c1">315</span>, <span class="pl-c1">345</span>, <span class="pl-c1">375</span>])
<span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">cut</span>(<span class="pl-s1">data</span>.<span class="pl-v">Direction</span>, <span class="pl-s1">bins</span>)
<span class="pl-s1">c</span>[<span class="pl-s1">c</span><span class="pl-c1">==</span><span class="pl-s">"(-15, 15]"</span>] <span class="pl-c1">=</span> <span class="pl-s">"(345, 375]"</span>
<span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">c</span>.<span class="pl-s1">cat</span>.<span class="pl-en">remove_unused_categories</span>()
<span class="pl-s1">cats</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">c</span>.<span class="pl-s1">cat</span>.<span class="pl-s1">categories</span>)
<span class="pl-s1">cats</span>[<span class="pl-c1">-</span><span class="pl-c1">1</span>] <span class="pl-c1">=</span> <span class="pl-s">'(345, 15]'</span>
<span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">c</span>.<span class="pl-s1">cat</span>.<span class="pl-en">set_categories</span>(<span class="pl-s1">cats</span>)</pre></div>
<h4 dir="auto">Desired behaviour</h4>
<p dir="auto">Better would be accepting a parameter indicating at what point the scale loops, e.g. zeroat=360. Other solutions may be possible, such as taking the structure of the list of bins to indicate that the scale loops.</p>
<p dir="auto">One issue is the order. How can the fact that 345 is both more than and less than 0 be dealt with, depending on what direction you are looking in? There is an order, but it isn't straight forward.</p> | 0 |
<p dir="auto">my project is about a self driving car by using an odroid-c2 and usb camera ,wich can detect barriers and Traffic lights !<br>
first step i succeed to realize the mjpeg streamer refering to this url: forum.odroid.com/viewtopic.php?f=52&t=23503<br>
and at the end i got a real live video by accesing to <a href="http://ip-adress:port/" rel="nofollow">http://ip-adress:port/</a><br>
now i want to link the output of the mjpeg streamer with the code of opencv : i want to put the output of the mjpeg as an input of opencv for detecting to carry on my project .So my question is :how can i include the output of mjpeg streamer in the opencv code ??</p> | <p dir="auto">my project is about a self driving car by using an odroid-c2 and usb camera ,wich can detect barriers and Traffic lights !<br>
first step i succeed to realize the mjpeg streamer refering to this url: forum.odroid.com/viewtopic.php?f=52&t=23503<br>
and at the end i got a real live video by accesing to <a href="http://ip-adress:port/" rel="nofollow">http://ip-adress:port/</a><br>
now i want to link the output of the mjpeg streamer with the code of opencv : i want to put the output of the mjpeg as an input of opencv for detecting to carry on my project .So my question is :how can i include the output of mjpeg streamer in the opencv code ??</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=gizit" rel="nofollow">Gisbert van Rossum</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6428?redirect=false" rel="nofollow">SPR-6428</a></strong> and commented</p>
<p dir="auto">When using 2 PropertyPlaceHolderConfigurers, placeholders declared (and given a value) in the first PPC are not resolved in the second PPC.</p>
<p dir="auto"><bean id="configurer1" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><br>
<property name="properties"><br>
<bean class="java.util.Properties"><br>
<constructor-arg><br>
<map><br>
<entry key="resourceDirPlaceHolder"><br>
<value>myResourceDir</value><br>
</entry><br>
</map><br>
</constructor-arg><br>
</bean><br>
</property><br>
<property name="order" value="1"/><br>
<property name="ignoreUnresolvablePlaceholders" value="true"/><br>
</bean><br>
<bean id="configurer2" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><br>
<property name="locations"><br>
<list><br>
<value>classpath:${resourceDirPlaceHolder}/props.properties</value><br>
</list><br>
</property><br>
</bean></p>
<p dir="auto">this configuration results in:</p>
<p dir="auto">java.io.FileNotFoundException: class path resource [${resourceDirPlaceHolder}/props.properties] cannot be opened because it does not exist</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/15954/multiplePPCs.zip" rel="nofollow">multiplePPCs.zip</a> (<em>4.84 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="398094795" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10389" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10389/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10389">#10389</a> only the first PropertyPlaceHolderConfigurer is initialized. Others are not (<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="398094795" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10389" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10389/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10389">#10389</a> only the first PropertyPlaceHolderConfigurer is initialized. Others are not</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-attic/spring-framework-issues/commit/09aea36859bb0d806eb4085a2c154cb781bd8345/hovercard" href="https://github.com/spring-attic/spring-framework-issues/commit/09aea36859bb0d806eb4085a2c154cb781bd8345">spring-attic/spring-framework-issues@<tt>09aea36</tt></a></p>
<p dir="auto">2 votes, 2 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=profiprog" rel="nofollow">Milan Skuhra</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9322?redirect=false" rel="nofollow">SPR-9322</a></strong> and commented</p>
<p dir="auto">I tried to inject collection of beans (services) twice, into two beans (registers); and every register has injected different count of services.<br>
Proxied bean was missing in second injection. It happend when first injection occurs and injecting proxied bean isn't created yet.</p>
<p dir="auto">I debug it and found that method org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(..) has critical role in decision process if proxied bean will be injected or not.<br>
If first injection occurs and proxied bean is not created yet, then method isTypeMatch(..) check injection suitability according to bean definition. Of course the proxied bean must be created to complete injection but apparently nothing check if type criteria is still matching after creation. When second injection occurs instance is already available and method isTypeMatch(..) check injection suitability according to instance - because it's a proxy it can return different result (as was in my case).</p>
<p dir="auto">I attached simple project with one test case where this specific case is simulated. Of course there are many possibilities to fix it, but when somebody else accidentally configure something like this, it can be really hard to find where is the problem.</p>
<p dir="auto">I suggest to duplicate condition (about suitability of bean to be injected) also after its creation.<br>
If condition changes, exclude it from candidates and log some warning message.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/19578/dependency-feature.tgz" rel="nofollow">dependency-feature.tgz</a> (<em>3.34 kB</em>)</li>
</ul>
<p dir="auto">2 votes, 2 watchers</p> | 0 |
<p dir="auto">If I compile the following code on the old compiler (with the module command line flag) I get the error 'error TS2058: Return type of exported function has or is using private type 'MyElement'.'</p>
<p dir="auto">If I use the new compiler and the --module flag it compiles with no complaints</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export module Foo
{
interface MyElement extends HTMLElement {
}
export function bar(): MyElement {
return null;
}
}
"><pre class="notranslate"><span class="pl-s1">export</span> <span class="pl-smi">module</span> <span class="pl-v">Foo</span>
<span class="pl-kos">{</span>
<span class="pl-s1">interface</span> <span class="pl-v">MyElement</span> <span class="pl-k">extends</span> <span class="pl-v">HTMLElement</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-v">MyElement</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1">null</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
</pre></div> | <p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.10</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let a;
let b = { a as string };
let c = { <string> a };"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">a</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-s1">a</span> <span class="pl-s1">as</span> string <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-kos"><</span><span class="pl-smi">string</span><span class="pl-kos">></span> <span class="pl-s1">a</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong><br>
The type of <code class="notranslate">b</code> and <code class="notranslate">c</code> should be <code class="notranslate">{ a: string }</code> and the output should be this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var a;
var b = { a: a };
var c = { a: a };"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">a</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-s1">a</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-s1">a</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Actual behavior:</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var a;
var b = { a: as, string: string };
var c = {} < string > a;
;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">a</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-s1">as</span><span class="pl-kos">,</span> <span class="pl-c1">string</span>: <span class="pl-s1">string</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-c1"><</span> <span class="pl-s1">string</span> <span class="pl-c1">></span> <span class="pl-s1">a</span><span class="pl-kos">;</span>
<span class="pl-kos">;</span></pre></div> | 0 |
<h2 dir="auto">Checklist</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
</ul>
<h2 dir="auto">Steps to reproduce</h2>
<p dir="auto">I'm using django 1.8 + Celery 4.0.1 + Kombu 4.0.1 + Redis as broker</p>
<p dir="auto">from kombu.common import Broadcast<br>
CELERY_QUEUE_BROADCAST = 'broadcast'<br>
CELERY_QUEUES = (Broadcast(queue=CELERY_QUEUE_BROADCAST), )</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/task/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/task">@task</a>(ignore_result=True, queue=CELERY_QUEUE_BROADCAST)<br>
def broadcast_task():<br>
print "task runned"</p>
<p dir="auto">started two workers<br>
celery -A proj worker -Q broadcast</p>
<p dir="auto">broadcast_task.delay()</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">tasks are performed by each worker at same time</p>
<h2 dir="auto">Actual behavior</h2>
<p dir="auto">tasks performed by one worker at same time</p>
<p dir="auto">also i placed my question on SO<br>
<a href="http://stackoverflow.com/questions/41639334/broadcast-messages-in-celery-4-x" rel="nofollow">http://stackoverflow.com/questions/41639334/broadcast-messages-in-celery-4-x</a></p> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Description</h1>
<p dir="auto">Freenode is dead, so the IRC channel moved to irc.libera.chat - however the README still mentions freenode</p>
<h1 dir="auto">Suggestions</h1>
<p dir="auto">modify the README so that users can find the correct IRC channel</p> | 0 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">It would be nice if it was possible to right click on a folder in Windows Explorer and select "Open in Terminal" sort of like you can do with PowerShell 6.0.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12264946/61650501-dcff7a80-ac81-11e9-9cce-2e6a3f3d8d79.png"><img src="https://user-images.githubusercontent.com/12264946/61650501-dcff7a80-ac81-11e9-9cce-2e6a3f3d8d79.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">It would also be nice to be able to type "terminal" on the windows explorer address bar and have terminal open on that folder (like powershell does).</p>
<p dir="auto">For example:</p>
<ol dir="auto">
<li>
<p dir="auto">Go to a folder in Windows Explorer (i.e. c:\temp)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12264946/61650634-23ed7000-ac82-11e9-8140-74b839c2fc2c.png"><img src="https://user-images.githubusercontent.com/12264946/61650634-23ed7000-ac82-11e9-8140-74b839c2fc2c.png" alt="image" style="max-width: 100%;"></a></p>
</li>
<li>
<p dir="auto">Type pwsh in the address bar and hit enter<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12264946/61650665-3667a980-ac82-11e9-8a6e-3a61f0187e69.png"><img src="https://user-images.githubusercontent.com/12264946/61650665-3667a980-ac82-11e9-8a6e-3a61f0187e69.png" alt="image" style="max-width: 100%;"></a></p>
</li>
<li>
<p dir="auto">A powershell 6.0 terminal window opens on the C:\temp folder:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12264946/61650734-58f9c280-ac82-11e9-8607-796612bbc4d5.png"><img src="https://user-images.githubusercontent.com/12264946/61650734-58f9c280-ac82-11e9-8607-796612bbc4d5.png" alt="image" style="max-width: 100%;"></a></p>
</li>
</ol> | <h1 dir="auto">Add "open Windows terminal here" to right-click context menu?</h1>
<p dir="auto">We know that, for windows 7, by default when we click "shift + right click with mouse" when we enter into a folder without selecting anything, we can see the option "open command window here".</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3152813/58607088-c287d100-82d0-11e9-9da9-7ca5fe2b493c.png"><img src="https://user-images.githubusercontent.com/3152813/58607088-c287d100-82d0-11e9-9da9-7ca5fe2b493c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">While for windows 10, by default when we click "shift + right click with mouse", we can see the option "open powershell window here".</p>
<p dir="auto">So for Windows 10 (version later than 1903), how can we make the following three options available in right-click context menu?</p>
<ul dir="auto">
<li>open command window here</li>
<li>open powershell window here</li>
<li>open Windows terminal here</li>
</ul>
<p dir="auto">Looking forward to your reply, thanks a lot~</p> | 1 |
<p dir="auto">Describe what you were doing when the bug occurred:<br>
1.<br>
2.<br>
3.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.10.1-f160547f47</p>
<p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19702:53)<br>
at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19574:26)<br>
at ProfilingCache_ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20115:11)<br>
at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34161:33)<br>
at Hh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:12807:7)<br>
at qi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13457:7)<br>
at mk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16074:86)<br>
at lk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15459:11)<br>
at kk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15451:23)<br>
at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15435:5)</p>
<p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34144:50)<br>
at div<br>
at div<br>
at div<br>
at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28206:3)<br>
at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35772:50)<br>
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29219:5)<br>
at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29336:32)<br>
at div<br>
at div<br>
at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32934:3)<br>
at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24322:3)<br>
at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24811:3)<br>
at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29404:3)<br>
at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36207:3)</p> | <p dir="auto">React components could use some way to dynamically add a handler to be called on unmount. Either some event handler like way (<code class="notranslate">this.addUnmountHandler</code>) or some other way to register a 'destructor'/destroy method for an object that a component is holding on to.</p>
<p dir="auto"><code class="notranslate">componentWillUnmount</code> exists but it does not scale well.</p>
<ul dir="auto">
<li>Every time you hold on to something you have to maintain two sections of code, with the cleanup code being separate from the rest of the code.</li>
<li>If you try to cleanup your code using helpers adding the cleanup code could be done in the very same function. But <code class="notranslate">componentWillUnmount</code> doesn't allow that.</li>
<li>Sometimes you end up adding a <code class="notranslate">this._fooSomethingProp</code> to a component you wouldn't normally need, just so that you can hold on to the destructor for use in <code class="notranslate">componentWillUnmount</code> because you can't add the cleanup code in the same closure you set it up in.</li>
</ul>
<hr>
<p dir="auto">Here's one sample use case of mine for unmount handlers.</p>
<p dir="auto">React is discouraging the use of mixins so I've been trying to move towards alternative patterns in new code. Some helpers only make sense on a component itself and wont work as a special component or a higher-order component.</p>
<p dir="auto">For some of these needs I've come up with a pattern that involves passing the component to a helper function that will mutate the component and provide some sort of service which is linked to the component.</p>
<p dir="auto">Two examples from my codebase:</p>
<p dir="auto"><code class="notranslate">ctxApi</code> provides a component with a version of my internal api which is 'scoped' to the component so that if the component is unmounted all of the api requests' HTTP requests are aborted.</p>
<p dir="auto"><code class="notranslate">setPending</code> adds a key to a pending state set and returns a <code class="notranslate">pending.cleanup</code> that will unset it, which is intended to be passed to a <code class="notranslate">.finally</code> handler. This pattern provides my buttons, etc... with pending text and spinners while waiting for HTTP requests.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="resendConfirmation(email) {
var pending = setPending(this, `${email}:resendConfirmation`);
ctxApi(this)
.then((api) => api.post('/self/resendConfirmationEmail', {email}))
.then(() => alertifyjs.notify("Confirmation message sent"))
.fin(pending.cleanup)
.catch(ignoreAbort)
.catch(notifyOnError)
.done();
}"><pre class="notranslate"><span class="pl-en">resendConfirmation</span><span class="pl-kos">(</span><span class="pl-s1">email</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">pending</span> <span class="pl-c1">=</span> <span class="pl-en">setPending</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">email</span><span class="pl-kos">}</span></span>:resendConfirmation`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">ctxApi</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">api</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">api</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-s">'/self/resendConfirmationEmail'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>email<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-s1">alertifyjs</span><span class="pl-kos">.</span><span class="pl-en">notify</span><span class="pl-kos">(</span><span class="pl-s">"Confirmation message sent"</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">fin</span><span class="pl-kos">(</span><span class="pl-s1">pending</span><span class="pl-kos">.</span><span class="pl-c1">cleanup</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span><span class="pl-s1">ignoreAbort</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span><span class="pl-s1">notifyOnError</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">done</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">The problem is that these helpers often need cleanup on unmount. <code class="notranslate">ctxApi</code> needs to abort requests on unmount. And <code class="notranslate">setPending</code> needs to break references so <code class="notranslate">setState</code> isn't called and it doesn't prevent gc. And while I can require that a call to a cleanup function be placed into <code class="notranslate">componentWillUnmount</code>. That is unnecessary boilerplate and easy to forget.</p>
<p dir="auto">It would be much preferable for these helpers to be able to register an unmount handler on the component instance so they can implicitly clean themselves up.</p> | 0 |
<h2 dir="auto">We hope to support the fuzzy query of encrypted fields</h2>
<p dir="auto">Now it is to report exceptions directly, and the algorithm can be implemented by itself</p>
<h3 dir="auto">Is your feature request related to a problem?</h3>
<p dir="auto">no</p> | <h2 dir="auto">sharding-sphere 3.0.0 , Tables not configured with sharding rules will not choice the defaultDataSrouces,and will choice the first dataSource in dataSourcesMap.</h2>
<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.0.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>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Tables not configured with sharding rules will not choice the defaultDataSrouces,and will choice the first dataSource in dataSourcesMap.</p>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">TableFiller will not fill the table to sqlStatement ,so RoutingEngineFactory not find the Correct DefaultDatabaseRoutingEngine.</p>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable):
Apple bootcamp 6.1"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable):
Apple bootcamp 6.1
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Open windows terminal and try to type <code class="notranslate">[</code> or <code class="notranslate">]</code></p>
<h1 dir="auto">Expected behaviour</h1>
<p dir="auto">One is able to type the characters</p>
<h1 dir="auto">Actual behaviour</h1>
<p dir="auto">In PowerShell one gets<br>
<code class="notranslate">digit-argument : 8</code></p>
<p dir="auto">in ubuntu one gets<br>
<code class="notranslate">(arg: 8)</code><br>
instead of the actual characters</p>
<p dir="auto">Typing the characters in CMD.exe works fine.</p> | <p dir="auto"><strong>Your Windows build number:</strong><br>
10.0.18362.86</p>
<p dir="auto"><strong>What you're doing and what's happening:</strong><br>
Trying to enter the <code class="notranslate">@</code> sign on a Swedish keyboard in a PowerShell console using <code class="notranslate">Alt Gr</code> + <code class="notranslate">2</code>.<br>
See animated gif:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/357872/57315225-7099c400-70f3-11e9-803f-4d60d11feef5.gif"><img src="https://user-images.githubusercontent.com/357872/57315225-7099c400-70f3-11e9-803f-4d60d11feef5.gif" alt="terminal" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>What's wrong / what should be happening instead:</strong><br>
Windows terminal shows <code class="notranslate">digit-argument</code> instead of outputting the <code class="notranslate">@</code> sign as expected.</p>
<p dir="auto">It's possible this is a PEBKAC error somehow but the problem doesn't show up in the normal PowerShell console... 😓</p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">Ever since installing VS Code I seem to have a problem with Git/Dropbox.</p>
<p dir="auto">Whenever I have a folder open in VS Code which is a git repository it seems to constantly update the index file and the FETCH_HEAD file. I don't mean every time I save a file, I mean every few seconds.</p>
<p dir="auto">This causes a problem with Dropbox because I'm using it to sync files between my home and work computers. The notifications in the bottom right of my screen keep coming thick and fast and it's driving me crazy. Not to mention that Dropbox is constantly uploading files because it thinks they've changed.</p>
<p dir="auto">Anyone else having this problem?</p>
<p dir="auto">Version of VS Code: 0.10.6</p> | <p dir="auto">Several times now I've had mysteriously deleted files when doing a git pull in a console while Visual Studio Code is running. I've seen this roughly since version 0.10.</p>
<p dir="auto">It seems that when auto-merging, Git is able to delete a file but not able to write the merged file back if it's open in Code. However that is just a hypothesis.</p>
<p dir="auto">Seen the issue last with git version 1.9.5.msysgit.1 and Code 0.10.2.</p> | 1 |
<p dir="auto">I implemented the custom operator that named 'test_custom' with reference to <a href="https://pytorch.org/tutorials/advanced/torch_script_custom_ops.html" rel="nofollow">torch_script_custom_ops</a>,then I convert the pytorch model to onnx,<br>
When I load the onnx model by dnn module, I have get the following error.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20365125/142836118-31e4a9a3-3fea-4b1c-a416-55868efe6694.png"><img src="https://user-images.githubusercontent.com/20365125/142836118-31e4a9a3-3fea-4b1c-a416-55868efe6694.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (Windows10):</li>
<li>ONNX Runtime installed from (pip install onnxruntime):</li>
<li>ONNX Runtime version:(1.9.0)</li>
<li>ONNX version : (1.10.2)</li>
<li>Python version: 3.7.4</li>
<li>Visual Studio version (2019):</li>
<li>OpenCV: 4.2.0</li>
</ul>
<p dir="auto">The step and code:</p>
<ul dir="auto">
<li>**step1: ** Implemented the custom ops in C++, test.cpp</li>
</ul>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include "torch/script.h"
torch::Tensor test_custom(torch::Tensor image, torch::Tensor warp) {
return image.clone();
}
static auto registry = torch::RegisterOperators("my_ops::test_custom", &test_custom);"><pre class="notranslate">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>torch/script.h<span class="pl-pds">"</span></span>
torch::Tensor <span class="pl-en">test_custom</span>(torch::Tensor image, torch::Tensor warp) {
<span class="pl-k">return</span> image.<span class="pl-c1">clone</span>();
}
<span class="pl-k">static</span> <span class="pl-k">auto</span> registry = torch::RegisterOperators(<span class="pl-s"><span class="pl-pds">"</span>my_ops::test_custom<span class="pl-pds">"</span></span>, &test_custom);</pre></div>
<ul dir="auto">
<li>**step2: ** Compiled my code by Cmake and get the shared library: <code class="notranslate">test_custom.dll</code>, CMakeLists.txt</li>
</ul>
<div class="highlight highlight-text-adblock notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
project(test_custom)
set(CMAKE_VERBOSE_MAKEFILE ON)
# Torch
set(TORCH_ROOT "D:/python/Lib/site-packages/torch")
include_directories(${TORCH_ROOT}/include)
link_directories(${TORCH_ROOT}/lib/)
# Define our library target
add_library(${PROJECT_NAME} SHARED test.cpp)
# Enable C++14
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14)
# Link against Torch
target_link_libraries(${PROJECT_NAME}
c10
torch_cpu
)"><pre class="notranslate">cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
project(test_custom)
set(CMAKE_VERBOSE_MAKEFILE ON)
<span class="pl-c"># Torch</span>
set(TORCH_ROOT "D:/python/Lib/site-packages/torch")
include_directories(<span class="pl-k">$</span>{TORCH_ROOT}/include)
link_directories(<span class="pl-k">$</span>{TORCH_ROOT}/lib/)
<span class="pl-c"># Define our library target</span>
add_library(<span class="pl-k">$</span>{PROJECT_NAME} SHARED test.cpp)
<span class="pl-c"># Enable C++14</span>
target_compile_features(<span class="pl-k">$</span>{PROJECT_NAME} PRIVATE cxx_std_14)
<span class="pl-c"># Link against Torch</span>
target_link_libraries(<span class="pl-k">$</span>{PROJECT_NAME}
c10
torch_cpu
)</pre></div>
<ul dir="auto">
<li>**step3: ** export the pytorch model to onnx</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
torch.ops.load_library("test_custom.dll")
class MyNet(torch.nn.Module):
def __init__(self, num_classes):
super(MyNet, self).__init__()
self.num_classes = num_classes
def forward(self, xyz, other):
return torch.ops.my_ops.test_custom(xyz, other)
def my_custom(g, xyz, other):
return g.op("my_ops::test_custom", xyz, other)
torch.onnx.register_custom_op_symbolic("my_ops::test_custom", my_custom, 9)
if __name__ == "__main__":
net = MyNet(2)
xyz = torch.rand((2, 3))
other = torch.rand((1, 3))
print("xyz: ", xyz)
out = net(xyz, other)
print("out: ", out)
# export onnx
torch.onnx.export(net,
(xyz, other),
"./model.onnx",
input_names=["points", "cate"],
output_names=["cls_prob"],
custom_opsets={"my_ops": 11},
dynamic_axes={
"points": {0: "channel", 1: "n_point"},
"cls_prob": {0: "channel", 1: "n"}
}
)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-s1">torch</span>.<span class="pl-s1">ops</span>.<span class="pl-en">load_library</span>(<span class="pl-s">"test_custom.dll"</span>)
<span class="pl-k">class</span> <span class="pl-v">MyNet</span>(<span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">Module</span>):
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">num_classes</span>):
<span class="pl-en">super</span>(<span class="pl-v">MyNet</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>()
<span class="pl-s1">self</span>.<span class="pl-s1">num_classes</span> <span class="pl-c1">=</span> <span class="pl-s1">num_classes</span>
<span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>):
<span class="pl-k">return</span> <span class="pl-s1">torch</span>.<span class="pl-s1">ops</span>.<span class="pl-s1">my_ops</span>.<span class="pl-en">test_custom</span>(<span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>)
<span class="pl-k">def</span> <span class="pl-en">my_custom</span>(<span class="pl-s1">g</span>, <span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>):
<span class="pl-k">return</span> <span class="pl-s1">g</span>.<span class="pl-en">op</span>(<span class="pl-s">"my_ops::test_custom"</span>, <span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>)
<span class="pl-s1">torch</span>.<span class="pl-s1">onnx</span>.<span class="pl-en">register_custom_op_symbolic</span>(<span class="pl-s">"my_ops::test_custom"</span>, <span class="pl-s1">my_custom</span>, <span class="pl-c1">9</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-s1">net</span> <span class="pl-c1">=</span> <span class="pl-v">MyNet</span>(<span class="pl-c1">2</span>)
<span class="pl-s1">xyz</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>((<span class="pl-c1">2</span>, <span class="pl-c1">3</span>))
<span class="pl-s1">other</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>((<span class="pl-c1">1</span>, <span class="pl-c1">3</span>))
<span class="pl-en">print</span>(<span class="pl-s">"xyz: "</span>, <span class="pl-s1">xyz</span>)
<span class="pl-s1">out</span> <span class="pl-c1">=</span> <span class="pl-en">net</span>(<span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>)
<span class="pl-en">print</span>(<span class="pl-s">"out: "</span>, <span class="pl-s1">out</span>)
<span class="pl-c"># export onnx</span>
<span class="pl-s1">torch</span>.<span class="pl-s1">onnx</span>.<span class="pl-en">export</span>(<span class="pl-s1">net</span>,
(<span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>),
<span class="pl-s">"./model.onnx"</span>,
<span class="pl-s1">input_names</span><span class="pl-c1">=</span>[<span class="pl-s">"points"</span>, <span class="pl-s">"cate"</span>],
<span class="pl-s1">output_names</span><span class="pl-c1">=</span>[<span class="pl-s">"cls_prob"</span>],
<span class="pl-s1">custom_opsets</span><span class="pl-c1">=</span>{<span class="pl-s">"my_ops"</span>: <span class="pl-c1">11</span>},
<span class="pl-s1">dynamic_axes</span><span class="pl-c1">=</span>{
<span class="pl-s">"points"</span>: {<span class="pl-c1">0</span>: <span class="pl-s">"channel"</span>, <span class="pl-c1">1</span>: <span class="pl-s">"n_point"</span>},
<span class="pl-s">"cls_prob"</span>: {<span class="pl-c1">0</span>: <span class="pl-s">"channel"</span>, <span class="pl-c1">1</span>: <span class="pl-s">"n"</span>}
}
)</pre></div>
<p dir="auto">the model structure is as follows<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20365125/142835198-57841834-49a3-41c6-98ba-dc3fd22e2260.png"><img src="https://user-images.githubusercontent.com/20365125/142835198-57841834-49a3-41c6-98ba-dc3fd22e2260.png" alt="image" style="max-width: 100%;"></a></p>
<ul dir="auto">
<li>**step4: ** call the onnx model by dnn</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import cv2
# load model
onnx_path = "./model.onnx"
cv2.cv2.dnn.readNetFromONNX(onnx_path )"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">cv2</span>
<span class="pl-c"># load model</span>
<span class="pl-s1">onnx_path</span> <span class="pl-c1">=</span> <span class="pl-s">"./model.onnx"</span>
<span class="pl-s1">cv2</span>.<span class="pl-s1">cv2</span>.<span class="pl-s1">dnn</span>.<span class="pl-en">readNetFromONNX</span>(<span class="pl-s1">onnx_path</span> )</pre></div>
<p dir="auto">I want to know how to call the custom operator in dnn module? someone can help me?</p> | <p dir="auto">I implemented the custom operator that named 'test_custom' with reference to <a href="https://pytorch.org/tutorials/advanced/torch_script_custom_ops.html" rel="nofollow">torch_script_custom_ops</a>,then I convert the pytorch model to onnx,<br>
When I load the onnx model by dnn module, I have get the following error.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20365125/142836118-31e4a9a3-3fea-4b1c-a416-55868efe6694.png"><img src="https://user-images.githubusercontent.com/20365125/142836118-31e4a9a3-3fea-4b1c-a416-55868efe6694.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (Windows10):</li>
<li>ONNX Runtime installed from (pip install onnxruntime):</li>
<li>ONNX Runtime version:(1.9.0)</li>
<li>ONNX version : (1.10.2)</li>
<li>Python version: 3.7.4</li>
<li>Visual Studio version (2019):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:</li>
<li>GPU model and memory: CPU only</li>
<li>OpenCV: 4.2.0</li>
</ul>
<p dir="auto">The step and code:</p>
<ul dir="auto">
<li>**step1: ** Implemented the custom ops in C++, test.cpp</li>
</ul>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include "torch/script.h"
torch::Tensor test_custom(torch::Tensor image, torch::Tensor warp) {
return image.clone();
}
static auto registry = torch::RegisterOperators("my_ops::test_custom", &test_custom);"><pre class="notranslate">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>torch/script.h<span class="pl-pds">"</span></span>
torch::Tensor <span class="pl-en">test_custom</span>(torch::Tensor image, torch::Tensor warp) {
<span class="pl-k">return</span> image.<span class="pl-c1">clone</span>();
}
<span class="pl-k">static</span> <span class="pl-k">auto</span> registry = torch::RegisterOperators(<span class="pl-s"><span class="pl-pds">"</span>my_ops::test_custom<span class="pl-pds">"</span></span>, &test_custom);</pre></div>
<ul dir="auto">
<li>**step2: ** Compiled my code by Cmake and get the shared library: <code class="notranslate">test_custom.dll</code>, CMakeLists.txt</li>
</ul>
<div class="highlight highlight-text-adblock notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
project(test_custom)
set(CMAKE_VERBOSE_MAKEFILE ON)
# Torch
set(TORCH_ROOT "D:/python/Lib/site-packages/torch")
include_directories(${TORCH_ROOT}/include)
link_directories(${TORCH_ROOT}/lib/)
# Define our library target
add_library(${PROJECT_NAME} SHARED test.cpp)
# Enable C++14
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14)
# Link against Torch
target_link_libraries(${PROJECT_NAME}
c10
torch_cpu
)"><pre class="notranslate">cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
project(test_custom)
set(CMAKE_VERBOSE_MAKEFILE ON)
<span class="pl-c"># Torch</span>
set(TORCH_ROOT "D:/python/Lib/site-packages/torch")
include_directories(<span class="pl-k">$</span>{TORCH_ROOT}/include)
link_directories(<span class="pl-k">$</span>{TORCH_ROOT}/lib/)
<span class="pl-c"># Define our library target</span>
add_library(<span class="pl-k">$</span>{PROJECT_NAME} SHARED test.cpp)
<span class="pl-c"># Enable C++14</span>
target_compile_features(<span class="pl-k">$</span>{PROJECT_NAME} PRIVATE cxx_std_14)
<span class="pl-c"># Link against Torch</span>
target_link_libraries(<span class="pl-k">$</span>{PROJECT_NAME}
c10
torch_cpu
)</pre></div>
<ul dir="auto">
<li>**step3: ** export the pytorch model to onnx</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
torch.ops.load_library("test_custom.dll")
class MyNet(torch.nn.Module):
def __init__(self, num_classes):
super(MyNet, self).__init__()
self.num_classes = num_classes
def forward(self, xyz, other):
return torch.ops.my_ops.test_custom(xyz, other)
def my_custom(g, xyz, other):
return g.op("my_ops::test_custom", xyz, other)
torch.onnx.register_custom_op_symbolic("my_ops::test_custom", my_custom, 9)
if __name__ == "__main__":
net = MyNet(2)
xyz = torch.rand((2, 3))
other = torch.rand((1, 3))
print("xyz: ", xyz)
out = net(xyz, other)
print("out: ", out)
# export onnx
torch.onnx.export(net,
(xyz, other),
"./model.onnx",
input_names=["points", "cate"],
output_names=["cls_prob"],
custom_opsets={"my_ops": 11},
dynamic_axes={
"points": {0: "channel", 1: "n_point"},
"cls_prob": {0: "channel", 1: "n"}
}
)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-s1">torch</span>.<span class="pl-s1">ops</span>.<span class="pl-en">load_library</span>(<span class="pl-s">"test_custom.dll"</span>)
<span class="pl-k">class</span> <span class="pl-v">MyNet</span>(<span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">Module</span>):
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">num_classes</span>):
<span class="pl-en">super</span>(<span class="pl-v">MyNet</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>()
<span class="pl-s1">self</span>.<span class="pl-s1">num_classes</span> <span class="pl-c1">=</span> <span class="pl-s1">num_classes</span>
<span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>):
<span class="pl-k">return</span> <span class="pl-s1">torch</span>.<span class="pl-s1">ops</span>.<span class="pl-s1">my_ops</span>.<span class="pl-en">test_custom</span>(<span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>)
<span class="pl-k">def</span> <span class="pl-en">my_custom</span>(<span class="pl-s1">g</span>, <span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>):
<span class="pl-k">return</span> <span class="pl-s1">g</span>.<span class="pl-en">op</span>(<span class="pl-s">"my_ops::test_custom"</span>, <span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>)
<span class="pl-s1">torch</span>.<span class="pl-s1">onnx</span>.<span class="pl-en">register_custom_op_symbolic</span>(<span class="pl-s">"my_ops::test_custom"</span>, <span class="pl-s1">my_custom</span>, <span class="pl-c1">9</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-s1">net</span> <span class="pl-c1">=</span> <span class="pl-v">MyNet</span>(<span class="pl-c1">2</span>)
<span class="pl-s1">xyz</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>((<span class="pl-c1">2</span>, <span class="pl-c1">3</span>))
<span class="pl-s1">other</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>((<span class="pl-c1">1</span>, <span class="pl-c1">3</span>))
<span class="pl-en">print</span>(<span class="pl-s">"xyz: "</span>, <span class="pl-s1">xyz</span>)
<span class="pl-s1">out</span> <span class="pl-c1">=</span> <span class="pl-en">net</span>(<span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>)
<span class="pl-en">print</span>(<span class="pl-s">"out: "</span>, <span class="pl-s1">out</span>)
<span class="pl-c"># export onnx</span>
<span class="pl-s1">torch</span>.<span class="pl-s1">onnx</span>.<span class="pl-en">export</span>(<span class="pl-s1">net</span>,
(<span class="pl-s1">xyz</span>, <span class="pl-s1">other</span>),
<span class="pl-s">"./model.onnx"</span>,
<span class="pl-s1">input_names</span><span class="pl-c1">=</span>[<span class="pl-s">"points"</span>, <span class="pl-s">"cate"</span>],
<span class="pl-s1">output_names</span><span class="pl-c1">=</span>[<span class="pl-s">"cls_prob"</span>],
<span class="pl-s1">custom_opsets</span><span class="pl-c1">=</span>{<span class="pl-s">"my_ops"</span>: <span class="pl-c1">11</span>},
<span class="pl-s1">dynamic_axes</span><span class="pl-c1">=</span>{
<span class="pl-s">"points"</span>: {<span class="pl-c1">0</span>: <span class="pl-s">"channel"</span>, <span class="pl-c1">1</span>: <span class="pl-s">"n_point"</span>},
<span class="pl-s">"cls_prob"</span>: {<span class="pl-c1">0</span>: <span class="pl-s">"channel"</span>, <span class="pl-c1">1</span>: <span class="pl-s">"n"</span>}
}
)</pre></div>
<p dir="auto">the model structure is as follows<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20365125/142835198-57841834-49a3-41c6-98ba-dc3fd22e2260.png"><img src="https://user-images.githubusercontent.com/20365125/142835198-57841834-49a3-41c6-98ba-dc3fd22e2260.png" alt="image" style="max-width: 100%;"></a></p>
<ul dir="auto">
<li>**step4: ** call the onnx model by dnn</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import cv2
# load model
onnx_path = "./model.onnx"
cv2.cv2.dnn.readNetFromONNX(onnx_path )"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">cv2</span>
<span class="pl-c"># load model</span>
<span class="pl-s1">onnx_path</span> <span class="pl-c1">=</span> <span class="pl-s">"./model.onnx"</span>
<span class="pl-s1">cv2</span>.<span class="pl-s1">cv2</span>.<span class="pl-s1">dnn</span>.<span class="pl-en">readNetFromONNX</span>(<span class="pl-s1">onnx_path</span> )</pre></div>
<p dir="auto">I want to know how to call the custom operator in dnn module?</p> | 1 |
<p dir="auto">I have a "dynamic" component that is loaded through a <code class="notranslate">DynamicComponentLoader</code>. In that dynamic component I'm trying to set a template variable. But for some reason this doesn't seem to get parsed by Angular. Eventhough the exact same thing works fine from the "main" component.</p>
<p dir="auto">Here is an example of my problem: <a href="http://plnkr.co/edit/38mf2kWzH16RjTNcyLEO?p=preview" rel="nofollow">http://plnkr.co/edit/38mf2kWzH16RjTNcyLEO?p=preview</a></p>
<p dir="auto">You should see two texts. A text in a <code class="notranslate">h2</code> tag, which has a dynamic <code class="notranslate">id</code> attribute. This <code class="notranslate">id</code> attribute is successfully parsed</p>
<p dir="auto">Then the <code class="notranslate">Dynamic</code> component is loaded underneath that <code class="notranslate">h2</code> element. The <code class="notranslate">div</code> that says <strong>_I should have a dynamic ID</strong>_ has no <code class="notranslate">id</code> attribute anymore. For some reason the variable isn't parsed. Even worse, the entire <code class="notranslate">id</code> tag disappeared.</p>
<p dir="auto">Bug?</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>
{{ '9999-12-31T23:59:59Z' : date:'short'}} => page errors out without an error in the console<br>
{{ '9998-12-31T23:59:59Z' : date:'short'}} => formats to 1/1/9999 12:59 PM</p>
<p dir="auto"><strong>Expected behavior</strong><br>
{{ '9999-12-31T23:59:59Z' : date:'short'}} => 1/1/9999, 12:59 PM<br>
{{ '9998-12-31T23:59:59Z' : date:'short'}} => 1/1/10000, 12:59 PM</p>
<p dir="auto">(current behaviour in Chrome)</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Plunkr to replicate it: <a href="https://plnkr.co/edit/xTi4YetvG8ASlS7vPdg3?p=preview" rel="nofollow">https://plnkr.co/edit/xTi4YetvG8ASlS7vPdg3?p=preview</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Browser consistency</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Windows 10</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.2.4</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [IE11 | Edge ]</p>
</li>
</ul>
<ul dir="auto">
<li><strong>Language:</strong> [TypeScript 2.0.3]</li>
</ul> | 0 |
<p dir="auto">Params specified using axios.create are ignored. Here's a test case:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const axios = require('axios');
const agent = axios.create({
baseURL: 'https://www.test.com',
params: {
test: 'test',
},
});
Promise.all([
agent.get('/'),
agent.get('/', { params: { foobar: 'foo' } }),
]).then((arr) => arr.map(({ request: { path } }) => console.log(path)));"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">axios</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'axios'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">agent</span> <span class="pl-c1">=</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">baseURL</span>: <span class="pl-s">'https://www.test.com'</span><span class="pl-kos">,</span>
<span class="pl-c1">params</span>: <span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-s">'test'</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-v">Promise</span><span class="pl-kos">.</span><span class="pl-en">all</span><span class="pl-kos">(</span><span class="pl-kos">[</span>
<span class="pl-s1">agent</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-s1">agent</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">params</span>: <span class="pl-kos">{</span> <span class="pl-c1">foobar</span>: <span class="pl-s">'foo'</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">arr</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">arr</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">request</span>: <span class="pl-kos">{</span> path <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></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">path</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">EXPECTED OUTPUT:<br>
/?test=test<br>
/?test=test&foobar=foo</p>
<p dir="auto">ACTUAL OUTPUT<br>
/<br>
/?foobar=foo</p> | <p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">Specific request params do not get merged with the instance default params.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const instance = axios.create({
baseURL: "http://www.example.com",
params: {
q: "question",
}
});"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">baseURL</span>: <span class="pl-s">"http://www.example.com"</span><span class="pl-kos">,</span>
<span class="pl-c1">params</span>: <span class="pl-kos">{</span>
<span class="pl-c1">q</span>: <span class="pl-s">"question"</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="instance.get("/page",
{
params: {
page: 2
}
}
)"><pre class="notranslate"><span class="pl-s1">instance</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">"/page"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">params</span>: <span class="pl-kos">{</span>
<span class="pl-c1">page</span>: <span class="pl-c1">2</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">)</span></pre></div>
<p dir="auto">What happens is that the request param object overrides the instance default param object. The instance no longer has a query param of <code class="notranslate">q</code>.</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">According to the docs, all configuration options are <em>merged</em>. <a href="https://github.com/axios/axios#instance-methods">https://github.com/axios/axios#instance-methods</a></p>
<p dir="auto">I expected request to contain both <code class="notranslate">q</code> and <code class="notranslate">page</code> params. This is also how it was working in version 0.18.0, which is how I noticed.</p>
<p dir="auto"><strong>Environment:</strong></p>
<ul dir="auto">
<li>Axios Version: 0.19.0</li>
<li>OS: 10.14.5 (18F132)</li>
<li>Browser: Node Express, and Chrome</li>
<li>Browser: Node 10.15.0, Chrome Version 74.0.3729.169 (Official Build) (64-bit)</li>
</ul> | 1 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.2</li>
<li>Operating System / Platform => Windows 64 Bit</li>
<li>Compiler => Visual Studio 2015</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I compiled OpenCV4.1.2 from source , add OpenVINO R3 support and banding to python3.6.4.<br>
When i use net.setPreferableBackend(cv2.dnn.DNN_BACKEND_INFERENCE_ENGINE)<br>
net.setPreferableTarget(cv2.dnn.DNN_TARGET_OPENCL) to load darknet yolov3.weights, it comes to failed with log:<br>
cv2.error: OpenCV(4.1.2) D:\software\opencv-4.1.2\modules\dnn\src\op_inf_engine.cpp:704: error: (-215:Assertion failed) Failed to initialize Inference Engine backend: Unsupported primitive of type: OpenCVLayer name: yolo_106 in function 'cv::dnn::InfEngineBackendNet::initPlugin'</p>
<p dir="auto">Can anyone help me?</p>
<h5 dir="auto">Steps to reproduce</h5> | <p dir="auto">Corrupt JPEG data: 1 extraneous bytes before marker 0xdb</p> | 0 |
<p dir="auto">I think that exception should be handled/wrapped internally and be reraised as a <code class="notranslate">RequestException</code>-based exception.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "X:\dev\rotaryboard\daemon\testdaemon.py", line 117, in <module>
res = foobar_cmd()
File "X:\dev\rotaryboard\daemon\testdaemon.py", line 53, in foobar_cmd
return requests.get(url, params=params, auth=('foobar', 'meow'), timeout=0.1).json()
File "F:\Python27\lib\site-packages\requests\api.py", line 55, in get
return request('get', url, **kwargs)
File "F:\Python27\lib\site-packages\requests\api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "F:\Python27\lib\site-packages\requests\sessions.py", line 382, in request
resp = self.send(prep, **send_kwargs)
File "F:\Python27\lib\site-packages\requests\sessions.py", line 485, in send
r = adapter.send(request, **kwargs)
File "F:\Python27\lib\site-packages\requests\adapters.py", line 388, in send
r.content
File "F:\Python27\lib\site-packages\requests\models.py", line 676, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File "F:\Python27\lib\site-packages\requests\models.py", line 615, in generate
decode_content=True):
File "F:\Python27\lib\site-packages\requests\packages\urllib3\response.py", line 236, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "F:\Python27\lib\site-packages\requests\packages\urllib3\response.py", line 183, in read
data = self._fp.read(amt)
File "F:\Python27\lib\httplib.py", line 552, in read
s = self.fp.read(amt)
File "F:\Python27\lib\httplib.py", line 1288, in read
return s + self._file.read(amt - len(s))
File "F:\Python27\lib\socket.py", line 378, in read
data = self._sock.recv(left)
socket.timeout: timed out"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "X:\dev\rotaryboard\daemon\testdaemon.py", line 117, in <module>
res = foobar_cmd()
File "X:\dev\rotaryboard\daemon\testdaemon.py", line 53, in foobar_cmd
return requests.get(url, params=params, auth=('foobar', 'meow'), timeout=0.1).json()
File "F:\Python27\lib\site-packages\requests\api.py", line 55, in get
return request('get', url, **kwargs)
File "F:\Python27\lib\site-packages\requests\api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "F:\Python27\lib\site-packages\requests\sessions.py", line 382, in request
resp = self.send(prep, **send_kwargs)
File "F:\Python27\lib\site-packages\requests\sessions.py", line 485, in send
r = adapter.send(request, **kwargs)
File "F:\Python27\lib\site-packages\requests\adapters.py", line 388, in send
r.content
File "F:\Python27\lib\site-packages\requests\models.py", line 676, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File "F:\Python27\lib\site-packages\requests\models.py", line 615, in generate
decode_content=True):
File "F:\Python27\lib\site-packages\requests\packages\urllib3\response.py", line 236, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "F:\Python27\lib\site-packages\requests\packages\urllib3\response.py", line 183, in read
data = self._fp.read(amt)
File "F:\Python27\lib\httplib.py", line 552, in read
s = self.fp.read(amt)
File "F:\Python27\lib\httplib.py", line 1288, in read
return s + self._file.read(amt - len(s))
File "F:\Python27\lib\socket.py", line 378, in read
data = self._sock.recv(left)
socket.timeout: timed out
</code></pre></div> | <p dir="auto">When <em>timeout</em> parameter is used, socket operations can thrown <em>socket.timeout</em> exception, which is not converted into <em>requests.exceptions.Timeout</em>. This causes users to handle two different types of exceptions, which essentially represent the same error.</p>
<p dir="auto">Here is corresponding traceback:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> r=requests.get('http://files.animeblog.ru/manga/Bakuman/Bakuman_vol01.rar', timeout=0.5)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/u/vpython/lib/python2.7/site-packages/requests/api.py", line 55, in get
return request('get', url, **kwargs)
File "/Users/u/vpython/lib/python2.7/site-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/u/vpython/lib/python2.7/site-packages/requests/sessions.py", line 279, in request
resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies)
File "/Users/u/vpython/lib/python2.7/site-packages/requests/sessions.py", line 374, in send
r = adapter.send(request, **kwargs)
File "/Users/u/vpython/lib/python2.7/site-packages/requests/adapters.py", line 222, in send
r.content
File "/Users/u/vpython/lib/python2.7/site-packages/requests/models.py", line 550, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File "/Users/u/vpython/lib/python2.7/site-packages/requests/models.py", line 496, in generate
chunk = self.raw.read(chunk_size)
File "/Users/u/vpython/lib/python2.7/site-packages/requests/packages/urllib3/response.py", line 148, in read
return self._fp.read(amt)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 561, in read
s = self.fp.read(amt)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 380, in read
data = self._sock.recv(left)
socket.timeout: timed out"><pre class="notranslate"><code class="notranslate">>>> r=requests.get('http://files.animeblog.ru/manga/Bakuman/Bakuman_vol01.rar', timeout=0.5)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/u/vpython/lib/python2.7/site-packages/requests/api.py", line 55, in get
return request('get', url, **kwargs)
File "/Users/u/vpython/lib/python2.7/site-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/u/vpython/lib/python2.7/site-packages/requests/sessions.py", line 279, in request
resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies)
File "/Users/u/vpython/lib/python2.7/site-packages/requests/sessions.py", line 374, in send
r = adapter.send(request, **kwargs)
File "/Users/u/vpython/lib/python2.7/site-packages/requests/adapters.py", line 222, in send
r.content
File "/Users/u/vpython/lib/python2.7/site-packages/requests/models.py", line 550, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File "/Users/u/vpython/lib/python2.7/site-packages/requests/models.py", line 496, in generate
chunk = self.raw.read(chunk_size)
File "/Users/u/vpython/lib/python2.7/site-packages/requests/packages/urllib3/response.py", line 148, in read
return self._fp.read(amt)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 561, in read
s = self.fp.read(amt)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 380, in read
data = self._sock.recv(left)
socket.timeout: timed out
</code></pre></div> | 1 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/707" rel="nofollow">http://projects.scipy.org/scipy/ticket/707</a> on 2008-07-23 by trac user rjansen, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wnbell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wnbell">@wnbell</a>.</em></p>
<p dir="auto">Hi,</p>
<p dir="auto">I'm trying to compile scipy on Solaris 10:</p>
<p dir="auto">After, what seems to be a succesfull LAPACK and ATLAS build with the GNU compiler 4.0.2 (switched to sunfreeware python,w hich is build with GNU compilers<br>
and installing NumPy with same compiler, I'm bumped into the following error below when trying to compile SciPy.</p>
<p dir="auto">This same error shows also when using the Sun Studio 12 compiler chain. (everything rebuild with Sun compilers, due to the python used from the blastwave.org packages)</p>
<p dir="auto">The SciPy build stage seems to switch/default to Sun Studio compiler again</p>
<p dir="auto">scipy/optimize/minpack2/dcstep.f:<br>
dcstep:<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2602: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2603: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2604: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2605: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2606: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2607: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2608: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2609: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2610: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2611: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2612: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2614: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools.h", line 409: Error: multiplies is not a member of std.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: While instantiating "csr_elmul_csr<int, int>(const int, const int, const int_, const int_, const int_, const int_, const int_, const int_, std::vector<em>, std::vector</em>, std::vector<em>)".<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: Instantiated from non-template code.<br>
"scipy/sparse/sparsetools/sparsetools.h", line 409: Error: Unexpected type name "T" encountered.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: While instantiating "csr_elmul_csr<int, int>(const int, const int, const int</em>, const int_, const int_, const int_, const int_, const int_, std::vector<em>, std::vector</em>, std::vector<em>)".<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: Instantiated from non-template code.<br>
"scipy/sparse/sparsetools/sparsetools.h", line 409: Error: Operand expected instead of ")".<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: While instantiating "csr_elmul_csr<int, int>(const int, const int, const int</em>, const int_, const int_, const int_, const int_, const int_, std::vector<em>, std::vector</em>, std::vector<em>)".<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: Instantiated from non-template code.<br>
3 Error(s) and 12 Warning(s) detected.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2602: Warning: String literal converted to char</em> in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2603: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2604: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2605: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2606: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2607: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2608: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2609: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2610: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2611: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2612: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 2614: Warning: String literal converted to char* in initialization.<br>
"scipy/sparse/sparsetools/sparsetools.h", line 409: Error: multiplies is not a member of std.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: While instantiating "csr_elmul_csr<int, int>(const int, const int, const int_, const int_, const int_, const int_, const int_, const int_, std::vector<em>, std::vector</em>, std::vector<em>)".<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: Instantiated from non-template code.<br>
"scipy/sparse/sparsetools/sparsetools.h", line 409: Error: Unexpected type name "T" encountered.<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: While instantiating "csr_elmul_csr<int, int>(const int, const int, const int</em>, const int_, const int_, const int_, const int_, const int_, std::vector<em>, std::vector</em>, std::vector<em>)".<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: Instantiated from non-template code.<br>
"scipy/sparse/sparsetools/sparsetools.h", line 409: Error: Operand expected instead of ")".<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: While instantiating "csr_elmul_csr<int, int>(const int, const int, const int</em>, const int_, const int_, const int_, const int_, const int_, std::vector<em>, std::vector</em>, std::vector*)".<br>
"scipy/sparse/sparsetools/sparsetools_wrap.cxx", line 15087: Where: Instantiated from non-template code.<br>
3 Error(s) and 12 Warning(s) detected.<br>
error: Setup script exited with error: Command "CC -DNDEBUG -xO3 -xtarget=ultra -xarch=v8 -Iscipy/sparse/sparsetools -I/opt/csw/lib/python/site-packages/numpy-1.1.0-py2.5-solaris-2.10-sun4u.egg/numpy/core/include -I/opt/csw/include/python2.5 -c scipy/sparse/sparsetools/sparsetools_wrap.cxx -o build/temp.solaris-2.10-sun4u-2.5/scipy/sparse/sparsetools/sparsetools_wrap.o" failed with exit status 3</p>
<p dir="auto">Any ideas or hints ? Or a real good cookbook to building Scipy with the Sun Studio compilers.</p>
<p dir="auto">TIA</p>
<p dir="auto">Regards</p> | <p dir="auto">Hi all,</p>
<p dir="auto">This issue is meant to be read by people interested in a SciPy (package) sprint.</p>
<p dir="auto">First things first: SciPy is a library covering very diverse topics, so <strong>do something you're interested in</strong> (say you're into signal processing, then ask one of the core developers or experienced users about what could make sense to tackle in <code class="notranslate">scipy.signal</code>).</p>
<p dir="auto">Before you begin, please review the <a href="http://scipy.github.io/devdocs/#developer-documentation" rel="nofollow">developer documentation</a>. <a href="http://scipy.github.io/devdocs/hacking.html" rel="nofollow">Ways to Contribute</a> gives a good overview of how you can improve SciPy, and the <a href="http://scipy.github.io/devdocs/dev/contributor/contributor_toc.html" rel="nofollow">SciPy Contributor Guide</a> contains all the information you need to get started.</p>
<p dir="auto">Here I'll list some ideas for things to do that are relatively easy to do, so suitable also for anyone who is new to contributing to an open source library.</p>
<h3 dir="auto">Documentation</h3>
<p dir="auto">Documentation is often nice to get started with, if you want to focus on the process of contributing and don't want to worry too much about e.g. setting up for local development on your laptop. A valuable thing to do is to add nice examples to docstrings for functions that don't yet have an example; see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="213959876" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/7168" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/7168/hovercard" href="https://github.com/scipy/scipy/issues/7168">gh-7168</a> for an overview. Another option is to add tutorials (e.g. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="460707562" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/10358" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/10358/hovercard" href="https://github.com/scipy/scipy/issues/10358">gh-10358</a>).</p>
<h3 dir="auto">Finishing up open pull requests</h3>
<p dir="auto">If you're comfortable with Git and want to make an impact by helping to reduce our backlog of open PRs, that would be awesome! <a href="https://github.com/scipy/scipy/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3Aneeds-work+updated%3A%3C%3D2019-01-01+">Here </a> is a list of PRs that appear to be stalled. <em>Please comment in the PR to avoid duplicate efforts.</em></p>
<p dir="auto">When you take over an open PR, this is what you will likely want to do:</p>
<ol dir="auto">
<li>Check out the branch from which the PR was sent (requires adding the repo of the user who sent the PR as a <code class="notranslate">remote</code> first; see the latter half of <a href="http://scipy.github.io/devdocs/dev/contributor/reviewing_prs.html#reviewing-prs" rel="nofollow">this</a> for commands).</li>
<li>Rebase on the current <code class="notranslate">master</code> branch (see <a href="http://scipy.github.io/devdocs/dev/gitwash/useful_git.html#rebasing-on-master" rel="nofollow">here</a> for commands).</li>
<li>Finish up remaining work, addressing open comments, etc.</li>
<li>Create a new PR from your branch, linking to the old one (i.e. In a comment, write <code class="notranslate">supersedes and closes gh-xxxx</code>).</li>
</ol>
<p dir="auto">If you choose to revise the commit history, please preserve original authorship of the code you started from.</p>
<h3 dir="auto">Tackling new issues</h3>
<p dir="auto">There is a "good first issue" label, for issues that can be suitable to get started with if you're new to SciPy development. Click <a href="https://github.com/scipy/scipy/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22">here</a> for a list. <em>Please comment in the issue to avoid duplicate efforts.</em></p>
<h3 dir="auto">Your own idea</h3>
<p dir="auto">If it's an <em>existing issue</em>, or performance improvement, or another way of improving something that already is present in SciPy - go for it!</p>
<p dir="auto">If you are thinking of adding a <em>new feature</em>, please discuss it with a core developer first (at least some sanity checking to ensure that it's something that SciPy would in principle like to include).</p>
<h3 dir="auto">For domain experts</h3>
<p dir="auto">If you have expertise in a particular domain (e.g. statistics, numerical optimization, signal processing, ...) then you can make very valuable contributions by reviewing open pull requests in that domain. <em>You do not have to be familiar with SciPy development to review PRs</em>. If you can say "I understand this algorithm and it looks like the implementation is correct" or "I've tested this on my data and it works as expected", that's super helpful.</p>
<h3 dir="auto">Discussion channels</h3>
<p dir="auto">(event specific options go here)</p>
<ul dir="auto">
<li>GitHub works too.</li>
<li>the mailing list is the place to propose new features; there's probably a bit slower turnaround, but it could be the appropriate channel.</li>
</ul> | 0 |
<p dir="auto">I am trying to find a better packing way than browserify file into one.</p> | <h4 dir="auto">Use case:</h4>
<p dir="auto">You create a library/tool that has dependencies.<br>
You want to distribute your library in a UMD format (and have it work in the browser without a user having to use something like system.js to polyfill "require")</p>
<h4 dir="auto">Current solution:</h4>
<p dir="auto">Using browserify to do the inlining work or create a custom build system to support this.</p>
<h4 dir="auto">Ideal solution:</h4>
<p dir="auto">A flag to enable this joining inside of babel.</p>
<h4 dir="auto">Why does this belong in core?</h4>
<p dir="auto">If you support exporting to UMD, then for it to be truly universal inlining the dependencies is essential.</p>
<p dir="auto">Thanks <g-emoji class="g-emoji" alias="space_invader" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f47e.png">👾</g-emoji></p> | 1 |
<ul dir="auto">
<li>VSCode Version: 0.10.13-insider</li>
<li>OS Version: win10</li>
</ul>
<p dir="auto">How can i switch back to the <code class="notranslate">English commands</code> or the console can support both 'English' and 'Chinese'?When i'm coding, I have to switch the IME.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7921431/14130287/67cf555e-f664-11e5-9c1d-072d51adf8d0.png"><img src="https://cloud.githubusercontent.com/assets/7921431/14130287/67cf555e-f664-11e5-9c1d-072d51adf8d0.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7921431/14130295/753ae82a-f664-11e5-8968-a89819e031ac.png"><img src="https://cloud.githubusercontent.com/assets/7921431/14130295/753ae82a-f664-11e5-8968-a89819e031ac.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/espresso3389/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/espresso3389">@espresso3389</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143601805" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/4679" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/4679/hovercard" href="https://github.com/microsoft/vscode/issues/4679">#4679</a>:</p>
<blockquote>
<p dir="auto">I'm on Windows 10 and the IME is ATOK; a Japanese thirdparty IME.<br>
Even with MS-IME, the behavior is same.<br>
Typing "git: プル" correctly works but doing "git プル" does not work.<br>
The search function does not seem to work with Japanese characters.</p>
</blockquote>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2193314/14063489/67b2e16e-f388-11e5-8539-ff5dbf2efb3a.gif"><img src="https://cloud.githubusercontent.com/assets/2193314/14063489/67b2e16e-f388-11e5-8539-ff5dbf2efb3a.gif" alt="eea0c49e-f3a0-11e5-9726-32dff53190f6" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Is there an optimization to not recheck characters if the last character is replaced? While not being shown here, Japanese IMEs can also transforms multiple Japanese characters into an even smaller number of characters, by going from English -> Kana -> Kanji.</p> | 1 |
<p dir="auto"><strong>Describe the feature</strong>:<br>
Currently <code class="notranslate">epoch_millis</code> has what appears to be an arbitrary 13 character upper limit on what can be parsed. The <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html" rel="nofollow">date format documentation</a> indicates that the year range is between 1653 and 2286, and that you should use a different formatter if your values exceed that range.</p>
<p dir="auto">Because <code class="notranslate">epoch_seconds</code> is a subset of the <code class="notranslate">epoch_millis</code> format, it too has a strange upper limit of 10 characters.</p>
<p dir="auto">We commonly receive (incorrect) data with epoch millisecond values with more than 13 characters.</p>
<p dir="auto">For <code class="notranslate">epoch_millis</code>, one might assume this low number of digits is an attempt to prevent 32 signed int overflow, but that doesn't compute.</p>
<p dir="auto">Max signed 32 bit int is 2147483647, which is 10 digits.</p>
<p dir="auto">The underlying library used by Elasticsearch for Date parsing is Joda Time, and uses <code class="notranslate">DateTime(millis, DateTimeZone.UTC)</code> to construct an immutable DateTime value from <code class="notranslate">epoch_millis</code> , where <code class="notranslate">millis</code> is a Java Long value. <code class="notranslate">millis</code> can certainly accept more than 13 chars of digits.</p>
<p dir="auto">Cross-post alert:<br>
I've asked this question in the <a href="https://discuss.elastic.co/t/epoch-millis-has-a-maximum-of-13-digits-joda-time-accepts-a-long/50508" rel="nofollow">discussion forums</a> as well.</p>
<p dir="auto">I have a PR ready to submit, pending the outcome of this discussion.</p> | <p dir="auto">The suggester API is a good choice to get simple suggestions. But these suggestions may take additional informations into account. Typing in something like <code class="notranslate">restaurant</code> will result in restaurants all over the world. But in this case the geolocation of the request can be used to get better results, namely those which are close to point of the request. Another usecase could be a simple <code class="notranslate">type</code> or <code class="notranslate">group</code> information which allows the suggester to return results fitting this context.<br>
In general the suggester should be able to handle generic information and create result with this information taken into account.</p> | 0 |
<p dir="auto">In the "Install" tab under "Settings", the search box is no longer searching when the enter key is pressed. In order to search I have to click on the inactive button in the button group with "Packages/Themes", then click back to the category that I actually want to search. I'm on a new MacBook running OS X 10.10 with Atom v0.206.0.</p> | <p dir="auto">Steps to reproduce:</p>
<ol dir="auto">
<li>Open settings</li>
<li>Install</li>
<li>Search for anything and press enter to run the search</li>
<li>Items come up</li>
<li>Repeat 3-4 if you want to to prove that it'll work again and again</li>
<li>Close settings tab</li>
<li>Open settings (it should still be on install pane)</li>
<li>Search for anything and press enter to run the search</li>
<li>It doesn't work</li>
</ol>
<p dir="auto">As a side note, you can make it work by toggling to themes and then back to packages. So presumably the keybinding gets lost when the tab is first closed.</p>
<p dir="auto">I'm using Atom 2.0.7.</p>
<p dir="auto">Screencap (though not overly helpful as you'l have to trust that I'm pressing enter after typing my search terms!):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/412784/8057188/092f4748-0ea7-11e5-959e-24f7111c1488.gif"><img src="https://cloud.githubusercontent.com/assets/412784/8057188/092f4748-0ea7-11e5-959e-24f7111c1488.gif" alt="settings" data-animated-image="" style="max-width: 100%;"></a></p> | 1 |
<h4 dir="auto">Claim Your Front End Development Certificate</h4>
<p dir="auto"><a href="https://www.freecodecamp.com/challenges/claim-your-front-end-development-certificate" rel="nofollow">https://www.freecodecamp.com/challenges/claim-your-front-end-development-certificate</a></p>
<h4 dir="auto">Step 3 displaying challenge map multiple times (infinite loop?), loading prompt never finishes</h4>
<p dir="auto">After reaching step 3 where my profile is checked to see if I've completed all Front End Dev challenges, I receive an error 'Oops! There was an issue.'</p>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Google Chrome, 49.0.2623.110 and Firefox 45.01</li>
<li>Operating System: Windows 10</li>
<li>Mobile, Desktop, or Tablet: Desktop</li>
</ul>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// If relevant, paste all of your challenge code in here
"><pre class="notranslate"><span class="pl-c">// If relevant, paste all of your challenge code in here</span></pre></div>
<h4 dir="auto">Screenshot</h4>
<p dir="auto"><a href="https://gyazo.com/0e10378398c445a1dc2f73f3d2f62fe3" rel="nofollow">https://gyazo.com/0e10378398c445a1dc2f73f3d2f62fe3</a><br>
<a href="https://gyazo.com/2443b85e5a3ab91aaefc7b8598363c63" rel="nofollow">https://gyazo.com/2443b85e5a3ab91aaefc7b8598363c63</a><br>
<a href="https://gyazo.com/6e5660840a48d40d9d244862a57e52b1" rel="nofollow">https://gyazo.com/6e5660840a48d40d9d244862a57e52b1</a></p> | <p dir="auto">Hi, this looks to be the same as issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121925058" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/5174" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/5174/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/5174">#5174</a>, which is closed.</p>
<p dir="auto">When I try to claim my front end development certificate at:<br>
<a href="https://www.freecodecamp.com/challenges/claim-your-front-end-development-certificate" rel="nofollow">https://www.freecodecamp.com/challenges/claim-your-front-end-development-certificate</a></p>
<p dir="auto">When I get to step 3, and I click "Open link in new tab (this unlocks this step)", I get an "Oops" error.</p>
<p dir="auto">Console log says:<br>
Failed to parse SourceMap: <a href="https://www.freecodecamp.com/challenges/rx.all.map" rel="nofollow">https://www.freecodecamp.com/challenges/rx.all.map</a></p>
<p dir="auto">Screenshot below:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9951362/14366150/2f14af12-fcc6-11e5-82ce-dfef605976f6.png"><img src="https://cloud.githubusercontent.com/assets/9951362/14366150/2f14af12-fcc6-11e5-82ce-dfef605976f6.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p>
<p dir="auto">The following field/index produces an error in SA 0.4.2 / MySQL 5:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="table = sa.Table('resource_path', self.db_metadata,
sa.Column('id', sa.Integer, primary_key = True),
sa.Column('path', sa.Binary(255), index = True),
mysql_engine='INNODB'
)
table.create(checkfirst = True)"><pre class="notranslate"><code class="notranslate">table = sa.Table('resource_path', self.db_metadata,
sa.Column('id', sa.Integer, primary_key = True),
sa.Column('path', sa.Binary(255), index = True),
mysql_engine='INNODB'
)
table.create(checkfirst = True)
</code></pre></div>
<p dir="auto">The complete error message is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "Guard/DBTest.py", line 43, in setUp
self.assert_(self.db.install())
File "/home/sam/code/spiff_guard/tests/Guard/../../src/Guard/DB.py",
line 35, in install
table.create(checkfirst = True)
File "/var/lib/python-support/python2.5/sqlalchemy/schema.py", line 300, in create
self.metadata.create_all(bind=bind, checkfirst=checkfirst,
tables=[self](self))
File "/var/lib/python-support/python2.5/sqlalchemy/schema.py", line 1215, in create_all
bind.create(self, checkfirst=checkfirst, tables=tables)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 1131, in create
self._run_visitor(self.dialect.schemagenerator, entity, connection=connection, **kwargs)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 1160, in _run_visitor
visitorcallable(self.dialect, conn, **kwargs).traverse(element)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/visitors.py", line 76, in traverse
meth(target)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/compiler.py", line 760, in visit_metadata
self.traverse_single(table)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/visitors.py", line 30, in traverse_single
return meth(obj, **kwargs)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/compiler.py", line 796, in visit_table
self.traverse_single(index)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/visitors.py", line 30, in traverse_single
return meth(obj, **kwargs)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/compiler.py", line 881, in visit_index
self.execute()
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 1760, in execute
return self.connection.execute(self.buffer.getvalue())
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 844, in execute
return Connection.executors[c](c)(self, object, multiparams, params)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 854, in _execute_text
self.__execute_raw(context)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 916, in __execute_raw
self._cursor_execute(context.cursor, context.statement, context.parameters[0](0), context=context)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 953, in _cursor_execute
self._handle_dbapi_exception(e, statement, parameters, cursor)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 935, in _handle_dbapi_exception
raise exceptions.DBAPIError.instance(statement, parameters, e, connection_invalidated=is_disconnect)
OperationalError: (OperationalError) (1170, "BLOB/TEXT column 'path' used in key specification without a key length") 'CREATE INDEX
ix_guard_resource_path_path ON guard_resource_path (path)' {}"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "Guard/DBTest.py", line 43, in setUp
self.assert_(self.db.install())
File "/home/sam/code/spiff_guard/tests/Guard/../../src/Guard/DB.py",
line 35, in install
table.create(checkfirst = True)
File "/var/lib/python-support/python2.5/sqlalchemy/schema.py", line 300, in create
self.metadata.create_all(bind=bind, checkfirst=checkfirst,
tables=[self](self))
File "/var/lib/python-support/python2.5/sqlalchemy/schema.py", line 1215, in create_all
bind.create(self, checkfirst=checkfirst, tables=tables)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 1131, in create
self._run_visitor(self.dialect.schemagenerator, entity, connection=connection, **kwargs)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 1160, in _run_visitor
visitorcallable(self.dialect, conn, **kwargs).traverse(element)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/visitors.py", line 76, in traverse
meth(target)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/compiler.py", line 760, in visit_metadata
self.traverse_single(table)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/visitors.py", line 30, in traverse_single
return meth(obj, **kwargs)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/compiler.py", line 796, in visit_table
self.traverse_single(index)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/visitors.py", line 30, in traverse_single
return meth(obj, **kwargs)
File "/var/lib/python-support/python2.5/sqlalchemy/sql/compiler.py", line 881, in visit_index
self.execute()
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 1760, in execute
return self.connection.execute(self.buffer.getvalue())
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 844, in execute
return Connection.executors[c](c)(self, object, multiparams, params)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 854, in _execute_text
self.__execute_raw(context)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 916, in __execute_raw
self._cursor_execute(context.cursor, context.statement, context.parameters[0](0), context=context)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 953, in _cursor_execute
self._handle_dbapi_exception(e, statement, parameters, cursor)
File "/var/lib/python-support/python2.5/sqlalchemy/engine/base.py", line 935, in _handle_dbapi_exception
raise exceptions.DBAPIError.instance(statement, parameters, e, connection_invalidated=is_disconnect)
OperationalError: (OperationalError) (1170, "BLOB/TEXT column 'path' used in key specification without a key length") 'CREATE INDEX
ix_guard_resource_path_path ON guard_resource_path (path)' {}
</code></pre></div>
<p dir="auto">The same thing happens when using Index() explicitly. The same table specification works in SA 0.3.</p> | <p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p>
<p dir="auto">This MAY be related to changes in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384613818" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/965" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/965/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/965">#965</a>, however, I had to make the following change. The program worked without change with 4.0.0. The same problem shows up in 0.4.2b, and possibly earlier versions.</p>
<p dir="auto">The traceback:</p>
<p dir="auto">File "/usr/lib/python2.3/site-packages/SQLAlchemy-0.4.2p3-py2.3.egg/sqlalchemy/orm/<strong>init</strong>.py", line 544, in mapper<br>
return Mapper(class_, local_table, *args, **params)<br>
File "/usr/lib/python2.3/site-packages/SQLAlchemy-0.4.2p3-py2.3.egg/sqlalchemy/orm/mapper.py", line 160, in <strong>init</strong><br>
self._compile_pks()<br>
File "/usr/lib/python2.3/site-packages/SQLAlchemy-0.4.2p3-py2.3.egg/sqlalchemy/orm/mapper.py", line 416, in _compile_pks<br>
if t.primary_key and pk_cols.issuperset(t.primary_key):<br>
File "/usr/lib/python2.3/sets.py", line 318, in issuperset<br>
self._binary_sanity_check(other)<br>
File "/usr/lib/python2.3/sets.py", line 343, in _binary_sanity_check<br>
raise TypeError, "Binary operation only permitted between sets"<br>
TypeError: Binary operation only permitted between sets</p>
<p dir="auto">The change will be added as a file.</p>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/957/y.patch">y.patch</a></p> | 0 |
<h3 dir="auto">Description</h3>
<p dir="auto">My team has an airflow stack orchestrating many of our ETL jobs. Recently, we noticed a bug in one of our hourly job's code causing a large number of hourly datasets to be malformed(more than 500). Thus, after fixing the ETL job, we have the need to rerun all the impacted DAG runs to correct the data.</p>
<p dir="auto">I learnt that it's possible to batch initiate DAG reruns through the "Browse" -> "Task Instances" view, where I can filter out the task instances I want to rerun through execution date and dag Id and simply clear their states. However, since we set a concurrency limit for DAG runs, after we initiate the reruns, it appears that airflow is prioritizing reruns over latest runs, so out latest DAG runs got delayed. As we have a agreement with our consumers on data processing time, we don't want the latest DAG runs to get delayed.</p>
<p dir="auto">I'm wondering if it's possible for Airflow to support a more intuitive and safe way to rerun DAG's in batch, where reruns only start if they don't impact latest runs.</p>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">Backfill/rerun is a common use case for ETL workflows. I feel it could be valuable to make it safe and more intuitive.</p>
<h3 dir="auto">Related issues</h3>
<p dir="auto">Didn't find related issues after some simple searches. Please let me know if this is discussed somewhere else before.</p>
<h3 dir="auto">Are you willing to submit a 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"><strong>Description of the problem</strong></p>
<p dir="auto">A common workflow we have is running daily DAGs not dependent of past runs. When deployed, It need to catch up for many years before the runs are up to date and can be used by analysts.</p>
<p dir="auto">The problem is that most of times, recent runs are more used/valuable than performing ETL of execution time 20 years ago. In practice we deploy the DAG two times, one for filling recent data and one for filling since inception.</p>
<p dir="auto"><strong>Feature requested</strong></p>
<p dir="auto">A flag (<code class="notranslate">back_run=False</code>) on DAG class. If this flag is set to <code class="notranslate">True</code>, DAG runs are scheduled in reverse order.</p>
<p dir="auto">E.g. consider we're on day <code class="notranslate">10</code> and in the middle of the process a new run for day <code class="notranslate">11</code> happens:<br>
the DAG runs would be scheduled like <code class="notranslate">10 -> 9 -> 8 -> 11 -> 7 -> 6 -> 5</code> (assuming the run for <code class="notranslate">11</code> happened after running for day <code class="notranslate">8</code>). This flag can only be used if <code class="notranslate">depends_on_past=False</code></p> | 1 |
<p dir="auto">I'm using numpy 1.12.0 version.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> a= np.load('a.npy')
>>> len(a)
1030703
>>> np.fft.fft(a[0:len(a)-3])
array([-18765.00000000 +0.j , 11107.65388924+14875.98484147j,
-1335.17295525 +4724.62925166j, ...,
-386.13524067 +590.33225249j, -1335.17295525 -4724.62925166j,
11107.65388924-14875.98484147j])
>>> np.fft.fft(a)"><pre class="notranslate"><code class="notranslate">>>> a= np.load('a.npy')
>>> len(a)
1030703
>>> np.fft.fft(a[0:len(a)-3])
array([-18765.00000000 +0.j , 11107.65388924+14875.98484147j,
-1335.17295525 +4724.62925166j, ...,
-386.13524067 +590.33225249j, -1335.17295525 -4724.62925166j,
11107.65388924-14875.98484147j])
>>> np.fft.fft(a)
</code></pre></div>
<p dir="auto">I've interrupted cause np.fft.fft(a) doesn't return while 1hours.</p>
<p dir="auto">Data I used<br>
<a href="http://home.wisewolf.org/static/a.npy" rel="nofollow">http://home.wisewolf.org/static/a.npy</a></p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/506" rel="nofollow">http://projects.scipy.org/numpy/ticket/506</a> on 2007-04-27 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cournape/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cournape">@cournape</a>, assigned to unknown.</em></p>
<p dir="auto">Currently, using fft on arrays of size which has a prime number is extremely slow (up to 15 minutes for eg an array of size 100003). The major problem though is that the code being uninterruptible, this effectively kills the current python session. My understanding is that the fft in numpy is using fftpack converted in C, which uses a O(N^2) algorithm for prime numbers ? Would it be possible at least to make the code interruptible ?</p>
<p dir="auto">{{</p>
<h1 dir="auto">!python</h1>
<p dir="auto">import numpy as N<br>
from scipy import fftpack</p>
<h1 dir="auto">prime is a prime number</h1>
<p dir="auto">prime = 100003</p>
<p dir="auto">a = N.random.randn(prime)</p>
<p dir="auto">print 'scipy computing...'<br>
fftpack.fft(a)</p>
<p dir="auto">print 'numpy computing...'<br>
N.fft.fft(a)<br>
}}</p> | 1 |
<p dir="auto">Move Destructor into the React namespace so my typescript can use it.</p>
<p dir="auto">React version: 17.0.2</p>
<h2 dir="auto">Steps To Reproduce</h2>
<p dir="auto">I want to create functional hook components that replace commonly duplicated code - for instance, I am commonly using my event bus.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// somewhere...
const AppContext = createContext<{ eventbus: EventEmitter }>({ eventbus: new EventEmitter() })
// elsewhere...
const { eventBus } = useContext(AppContext)
useEffect(() => {
if (!eventBus) return
if (!otherThing) return
if (someStateThing) eventBus.emit("setup", otherThing.bit(someStateThing))
return (): void => void eventBus.emit("cleanup", otherThing.bit(someStateThing))
}, [ eventBus, otherThing, someStateThing ] )"><pre class="notranslate"><span class="pl-c">// somewhere...</span>
<span class="pl-k">const</span> <span class="pl-smi">AppContext</span> <span class="pl-c1">=</span> <span class="pl-en">createContext</span><span class="pl-kos"><</span><span class="pl-kos">{</span> <span class="pl-c1">eventbus</span>: <span class="pl-smi">EventEmitter</span> <span class="pl-kos">}</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">eventbus</span>: <span class="pl-k">new</span> <span class="pl-smi">EventEmitter</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-c">// elsewhere...</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> eventBus <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">useContext</span><span class="pl-kos">(</span><span class="pl-smi">AppContext</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-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">eventBus</span><span class="pl-kos">)</span> <span class="pl-k">return</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">otherThing</span><span class="pl-kos">)</span> <span class="pl-k">return</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">someStateThing</span><span class="pl-kos">)</span> <span class="pl-s1">eventBus</span><span class="pl-kos">.</span><span class="pl-en">emit</span><span class="pl-kos">(</span><span class="pl-s">"setup"</span><span class="pl-kos">,</span> <span class="pl-s1">otherThing</span><span class="pl-kos">.</span><span class="pl-en">bit</span><span class="pl-kos">(</span><span class="pl-s1">someStateThing</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-c1">=></span> <span class="pl-k">void</span> <span class="pl-s1">eventBus</span><span class="pl-kos">.</span><span class="pl-en">emit</span><span class="pl-kos">(</span><span class="pl-s">"cleanup"</span><span class="pl-kos">,</span> <span class="pl-s1">otherThing</span><span class="pl-kos">.</span><span class="pl-en">bit</span><span class="pl-kos">(</span><span class="pl-s1">someStateThing</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span> <span class="pl-s1">eventBus</span><span class="pl-kos">,</span> <span class="pl-s1">otherThing</span><span class="pl-kos">,</span> <span class="pl-s1">someStateThing</span> <span class="pl-kos">]</span> <span class="pl-kos">)</span></pre></div>
<p dir="auto">But I want to compose something I can use like this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="useEffectWithEventBus((eventBus) => {
if (!otherThing) return
eventBus.emit(otherThing.bit(someStateThing))
(): void => void eventBus.emit("cleanup", otherThing.bit(someStateThing))
}, [otherThing, someStateThing])"><pre class="notranslate"><span class="pl-en">useEffectWithEventBus</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">eventBus</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">!</span><span class="pl-s1">otherThing</span><span class="pl-kos">)</span> <span class="pl-k">return</span>
<span class="pl-s1">eventBus</span><span class="pl-kos">.</span><span class="pl-en">emit</span><span class="pl-kos">(</span><span class="pl-s1">otherThing</span><span class="pl-kos">.</span><span class="pl-en">bit</span><span class="pl-kos">(</span><span class="pl-s1">someStateThing</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">void</span> <span class="pl-c1">=></span> <span class="pl-k">void</span> <span class="pl-s1">eventBus</span><span class="pl-kos">.</span><span class="pl-en">emit</span><span class="pl-kos">(</span><span class="pl-s">"cleanup"</span><span class="pl-kos">,</span> <span class="pl-s1">otherThing</span><span class="pl-kos">.</span><span class="pl-en">bit</span><span class="pl-kos">(</span><span class="pl-s1">someStateThing</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">otherThing</span><span class="pl-kos">,</span> <span class="pl-s1">someStateThing</span><span class="pl-kos">]</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">But when I go to try and define that</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const useEffectWithEventBus: (cb: (eventbus: EventEmitter) => void | Destructor, deps: DependencyList) => void = (cb, deps) => {
const { eventBus } = useContext(AppContext)
useEffect(() => cb(eventBus), [ eventBus, ...deps ])
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">useEffectWithEventBus</span>: <span class="pl-kos">(</span><span class="pl-s1">cb</span>: <span class="pl-kos">(</span><span class="pl-s1">eventbus</span>: <span class="pl-smi">EventEmitter</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-c1">|</span> <span class="pl-smi">Destructor</span><span class="pl-kos">,</span> <span class="pl-s1">deps</span>: <span class="pl-smi">DependencyList</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">cb</span><span class="pl-kos">,</span> <span class="pl-s1">deps</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> eventBus <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">useContext</span><span class="pl-kos">(</span><span class="pl-smi">AppContext</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-en">cb</span><span class="pl-kos">(</span><span class="pl-s1">eventBus</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">[</span> <span class="pl-s1">eventBus</span><span class="pl-kos">,</span> ...<span class="pl-s1">deps</span> <span class="pl-kos">]</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><code class="notranslate">Cannot find name Destructor</code></p>
<p dir="auto">But EffectCallback IS <code class="notranslate">() => void | Destructor</code></p>
<p dir="auto">And destructor is <code class="notranslate">type Destructor = () => void | { [UNDEFINED_VOID_ONLY]: never };</code></p>
<p dir="auto">Its not inside the React Namespace - Destructor is mysteriously limited to the File scope of the react index? So I can't define my custom hook to have a function that can return a destructor... because I don't have access to the Destructor type.</p>
<p dir="auto">I thought, well, maybe I can just do functional composition on that... but... how do I define my callback out of the scope where eventBus is pulled from the context? I might be able to get it in there functionally by using the .call(this) context...</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const useEffectWithEventBus: (cb: EffectCallback, deps: DependencyList) => void = (cb, deps) => {
const { eventBus } = useContext(AppContext)
useEffect(() => cb.call(eventBus), [ eventBus, ...deps ])
}
useEffectWithEventBus(() => {
if (!otherThing) return
this?.emit(otherThing.bit(someStateThing))
(): void => void this?.emit("cleanup", otherThing.bit(someStateThing))
}, [otherThing, someStateThing])"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">useEffectWithEventBus</span>: <span class="pl-kos">(</span><span class="pl-s1">cb</span>: <span class="pl-smi">EffectCallback</span><span class="pl-kos">,</span> <span class="pl-s1">deps</span>: <span class="pl-smi">DependencyList</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">cb</span><span class="pl-kos">,</span> <span class="pl-s1">deps</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> eventBus <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">useContext</span><span class="pl-kos">(</span><span class="pl-smi">AppContext</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-s1">cb</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">eventBus</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">[</span> <span class="pl-s1">eventBus</span><span class="pl-kos">,</span> ...<span class="pl-s1">deps</span> <span class="pl-kos">]</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-en">useEffectWithEventBus</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-c1">!</span><span class="pl-s1">otherThing</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-en">emit</span><span class="pl-kos">(</span><span class="pl-s1">otherThing</span><span class="pl-kos">.</span><span class="pl-en">bit</span><span class="pl-kos">(</span><span class="pl-s1">someStateThing</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">void</span> <span class="pl-c1">=></span> <span class="pl-k">void</span> <span class="pl-smi">this</span><span class="pl-kos">?.</span><span class="pl-en">emit</span><span class="pl-kos">(</span><span class="pl-s">"cleanup"</span><span class="pl-kos">,</span> <span class="pl-s1">otherThing</span><span class="pl-kos">.</span><span class="pl-en">bit</span><span class="pl-kos">(</span><span class="pl-s1">someStateThing</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">otherThing</span><span class="pl-kos">,</span> <span class="pl-s1">someStateThing</span><span class="pl-kos">]</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">But then the compiler thinks that this might be undefined (true) and it has no idea that this refers to an <code class="notranslate">EventEmitter</code> - and it eludes me how(or even if is possible) to type narrow <code class="notranslate">this</code> to an <code class="notranslate">EventEmitter</code>. (that's pretty advanced typing don't you think?)</p>
<h2 dir="auto">The current behavior</h2>
<p dir="auto">Destructor type not exported enough to use in my code</p>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">Destructor type is exported enough to use in my code</p> | <p dir="auto">Describe what you were doing when the bug occurred:<br>
1.<br>
2.<br>
3.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.11.0-39713716aa</p>
<p dir="auto">Call stack: at store_Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22171:35)<br>
at store_Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22187:26)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29770:63<br>
at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23893:18)<br>
at Ii (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:14002:76)<br>
at Hi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13993:10)<br>
at uk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16728: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 List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23588:30)<br>
at div<br>
at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:3111:5)<br>
at div<br>
at div<br>
at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29531:47)<br>
at div<br>
at div<br>
at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28680:3)<br>
at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29121:3)<br>
at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34645:52)<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 |
<p dir="auto">Our React app was triggering the following error during navigation events:</p>
<p dir="auto"><code class="notranslate">Uncaught TypeError: Cannot read property 'firstChild' of undefined</code></p>
<p dir="auto">The error was occurring in the function <code class="notranslate">findComponentRoot</code>, when it failed to find a component for an event callback.</p>
<p dir="auto">In our app, this was happening when we would navigate during a blur event, and call <code class="notranslate">unmountComponentAtNode</code> on the rendering, in order to refresh the page. The docs for <code class="notranslate">unmountComponentAtNode</code> say</p>
<blockquote>
<p dir="auto">Remove a mounted React component from the DOM and clean up its event handlers and state</p>
</blockquote>
<p dir="auto">However, this does not seem to be the case. After we refresh the page with <code class="notranslate">unmountComponentAtNode</code>, there were other React-bound callbacks still in React's queue for that event. Leading to the error.</p>
<p dir="auto">The docs and intuition seem to imply <code class="notranslate">unmountComponentAtNode</code> should clear these callbacks, since it knows the components will no longer exist to handle them.</p> | <p dir="auto">Hi,</p>
<p dir="auto">When trying to unmount my whole app, I got some error.</p>
<blockquote>
<p dir="auto">Uncaught TypeError: Cannot read property 'firstChild' of undefined<br>
ReactMount.js:606ReactMount.findComponentRoot<br>
ReactMount.js:606ReactMount.findReactNodeByID ReactMount.js:552getNode<br>
ReactMount.js:128executeDispatch EventPluginUtils.js:109SimpleEventPlugin.executeDispatch<br>
SimpleEventPlugin.js:305forEachEventDispatch EventPluginUtils.js:95executeDispatchesInOrder<br>
EventPluginUtils.js:119executeDispatchesAndRelease EventPluginHub.js:46forEachAccumulated<br>
forEachAccumulated.js:25EventPluginHub.processEventQueue<br>
EventPluginHub.js:251runEventQueueInBatch<br>
ReactEventEmitterMixin.js:18ReactEventEmitterMixin.handleTopLevel<br>
ReactEventEmitterMixin.js:44handleTopLevelImpl ReactEventListener.js:80Mixin.perform<br>
Transaction.js:134ReactDefaultBatchingStrategy.batchedUpdates<br>
ReactDefaultBatchingStrategy.js:66batchedUpdates<br>
ReactUpdates.js:109ReactEventListener.dispatchEvent ReactEventListener.js:175</p>
</blockquote>
<p dir="auto">I think it's not a big deal.</p>
<p dir="auto">According to what I see with the debugger, it seems to be because a <code class="notranslate">SyntheticMouseEvent</code> is trying to get dispatched. And I guess the target has just been unmounted...</p>
<p dir="auto">Note that my use case looks like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var Hello = React.createClass({
render: function() {
return <div onClick={unmount}>Hello {this.props.name}</div>;
}
});"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">Hello</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-en">render</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">unmount</span><span class="pl-kos">}</span><span class="pl-c1">></span>Hello <span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">name</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-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">When using an <code class="notranslate">unmount</code> synchronous implementation, I get this error.<br>
When adding a setTimeout 0 in the unmount code, I got no error.</p>
<p dir="auto">I could not reproduce this in a jsfiddle, but I guess it's probably because I don't really know how batching work in React.</p> | 1 |
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/amenonsen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/amenonsen">@amenonsen</a> on 2016-05-07T16:06:34Z</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ec2_vpc_net</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0 (devel 56ba10365c) last updated 2016/05/05 17:12:03 (GMT +550)"><pre class="notranslate"><code class="notranslate">ansible 2.2.0 (devel 56ba10365c) last updated 2016/05/05 17:12:03 (GMT +550)
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">Default</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">ec2_vpc_net always sets "changed" when state=present, because the code calls update_vpc_tags() and sets changed if <code class="notranslate">tags is not None or name is not None</code>, regardless of whether the vpc exists or not. So if you specify name and cidr_block, the tags are always updated.</p>
<p dir="auto">cc: @defionscode</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- ec2_vpc_net:
state: present
name: ExampleVPC
cidr_block: 192.0.2.0/24
register: vpc
- fail: msg="I created a VPC"
when: vpc.changed"><pre class="notranslate"><code class="notranslate">- ec2_vpc_net:
state: present
name: ExampleVPC
cidr_block: 192.0.2.0/24
register: vpc
- fail: msg="I created a VPC"
when: vpc.changed
</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="153602255" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/3613" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/3613/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/3613">ansible/ansible-modules-core#3613</a></p> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">Azure Cloud Module<br>
Azure inventory script</p>
<p dir="auto">We have a discussion <a href="https://github.com/ansible/ansible/pull/23494" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible/pull/23494/hovercard">in this PR</a> about authentication and routing to the correct endpoints for the Azure modules, considering Public Azure / Gov / German / China and even Azure Stack. I wanted to open an issue about the step after: ApiVersion and profile.</p>
<p dir="auto">REST API are versioned on Azure (usually it's a date, but it's not required). There is no default ApiVersion at the REST API level, but the SDK uses the <strong>latest on public Azure</strong> transparently (but you can define it). This raises a few issues when we talk about "not public Azure":</p>
<ul dir="auto">
<li>The latest on public Azure might be not available on Gov / German / China yet (<a href="https://github.com/Azure/azure-sdk-for-python/issues/1023" data-hovercard-type="issue" data-hovercard-url="/Azure/azure-sdk-for-python/issues/1023/hovercard">example</a>)</li>
<li>There is definitely no way that Azure Stack supports the latest on Public Azure</li>
<li>ApiVersion are not always backward compatible (Storage Mgmt 2016-06-01 is breaking for instance). This means SDK code is different and not backward compatible.</li>
<li>New ApiVersion brings new options, that were not available before.</li>
</ul>
<p dir="auto">It makes support for several clouds at the same time a strategy question. This is some example of strategy, and it's not exhaustive:</p>
<ul dir="auto">
<li>
<p dir="auto">Put the apiversion in the plugin name (for instance azure_rm_deployment_2017_06_01). The set of options of this plugin is fixed, but this increases the number of modules and is not "public azure friendly". You can ensure that using this plugin will never break, whatever the new ApiVersion released.</p>
</li>
<li>
<p dir="auto">Make one plugin with conditional code "if/else apiversion". This makes parameters more complex (with test like <code class="notranslate">if api_version==xxx and new_option: raise InvalidOptionForThisApiVersion()</code>). "public azure" is automatic, but your Ansible script might break if there is a new ApiVersion released, and the plugin should have a "api_version" parameter to fix it.</p>
</li>
</ul>
<p dir="auto">A few facts to help to discuss:</p>
<ul dir="auto">
<li>SDK packages supports multiple ApiVersion. I ensure you that anytime if an ApiVersion was supported, the code is still here. So if you fix an ApiVersion, you can update safely the Python package (using semver) your ApiVersion is still there.</li>
<li>We are adding the notion of "Profile", roughly a dictionary of available ApiVersion for a given endpoint. So discussion about discovery is not the main point here I think.</li>
</ul>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nitzmahone/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nitzmahone">@nitzmahone</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/johanste/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johanste">@johanste</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tstringer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tstringer">@tstringer</a></p> | 0 |
<p dir="auto">Angular doesn't work in IE11. This plunker is minimal reproduction:</p>
<p dir="auto">Check this plunker please in IE11.<br>
<a href="https://plnkr.co/edit/LOJWgfDGvtKQzhxuD8Wa?p=preview" rel="nofollow">https://plnkr.co/edit/LOJWgfDGvtKQzhxuD8Wa?p=preview</a></p>
<p dir="auto">It doesn't work with webpack as well.</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>
The Plunker suggested to reproduce issues doesn’t contain the core.js shim. Therefore, the sample won’t even boot on Internet Explorer: <a href="http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5" rel="nofollow">http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5</a></p>
<p dir="auto">Plunk is referenced here: <a href="https://github.com/angular/angular/blame/master/.github/ISSUE_TEMPLATE.md#L22">https://github.com/angular/angular/blame/master/.github/ISSUE_TEMPLATE.md#L22</a></p>
<p dir="auto"><strong>Expected behavior</strong><br>
You should add <code class="notranslate"><script src="https://unpkg.com/[email protected]/client/shim.min.js"></script></code> in line 8 of <code class="notranslate">index.html</code> to make sure IE bugs can also be reproduced.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<ol dir="auto">
<li>Open Plunk in Internet Explorer: <a href="http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5" rel="nofollow">http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5</a></li>
<li>See the error message in the console: <code class="notranslate">TypeError: Unable to get property 'apply' of undefined or null reference</code></li>
</ol>
<ul dir="auto">
<li>
<p dir="auto"><strong>Browser:</strong> IE</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> all</p>
</li>
</ul> | 1 |
<p dir="auto">When koa-router is wrapped by next, /graphiql become 404</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">/graphiql should not 404</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">/graphiql 404</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">wrapped with next js, this code below will make /graphiql 404</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const Koa = require('koa');
const Router = require('koa-router');
const koaBody = require('koa-bodyparser');
const next = require('next');
const { graphqlKoa, graphiqlKoa } = require('apollo-server-koa');
const { makeExecutableSchema } = require('graphql-tools');
const dev = process.env.NODE_ENV !== 'production';
const app = next({ dev });
const handle = app.getRequestHandler();
app.prepare()
.then(() => {
const server = new Koa();
const router = new Router();
router.get('*', async (ctx) => {
await handle(ctx.req, ctx.res);
});
const typeDefs = `
type Query {
hello: String
}
`;
const resolvers = {
Query: {
hello: () => 'Hello world!',
},
};
// Put together a schema
const schema = makeExecutableSchema({
typeDefs,
resolvers,
});
router.post('/graphql', koaBody(), graphqlKoa({ schema }));
router.get('/graphql', graphqlKoa({ schema }));
router.get('/graphiql', graphiqlKoa({ endpointURL: '/graphql' }));
server.use(router.routes());
server.use(router.allowedMethods());
server.listen(3000, (err) => {
if (err) throw err;
console.log('> Ready on http://localhost:3000');
});
})
.catch((ex) => {
console.error(ex.stack);
process.exit(1);
});"><pre class="notranslate"><code class="notranslate">const Koa = require('koa');
const Router = require('koa-router');
const koaBody = require('koa-bodyparser');
const next = require('next');
const { graphqlKoa, graphiqlKoa } = require('apollo-server-koa');
const { makeExecutableSchema } = require('graphql-tools');
const dev = process.env.NODE_ENV !== 'production';
const app = next({ dev });
const handle = app.getRequestHandler();
app.prepare()
.then(() => {
const server = new Koa();
const router = new Router();
router.get('*', async (ctx) => {
await handle(ctx.req, ctx.res);
});
const typeDefs = `
type Query {
hello: String
}
`;
const resolvers = {
Query: {
hello: () => 'Hello world!',
},
};
// Put together a schema
const schema = makeExecutableSchema({
typeDefs,
resolvers,
});
router.post('/graphql', koaBody(), graphqlKoa({ schema }));
router.get('/graphql', graphqlKoa({ schema }));
router.get('/graphiql', graphiqlKoa({ endpointURL: '/graphql' }));
server.use(router.routes());
server.use(router.allowedMethods());
server.listen(3000, (err) => {
if (err) throw err;
console.log('> Ready on http://localhost:3000');
});
})
.catch((ex) => {
console.error(ex.stack);
process.exit(1);
});
</code></pre></div>
<p dir="auto">but if we change the code like this, i can access <code class="notranslate">/graphiql</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const Koa = require('koa');
const Router = require('koa-router');
const koaBody = require('koa-bodyparser');
const { graphqlKoa, graphiqlKoa } = require('apollo-server-koa');
const { makeExecutableSchema } = require('graphql-tools');
const app = new Koa();
const router = new Router();
const PORT = 3000;
const typeDefs = `
type Query {
hello: String
}
`;
const resolvers = {
Query: {
hello: () => 'Hello world!',
},
};
const myGraphQLSchema = makeExecutableSchema({
typeDefs,
resolvers,
});
// koaBody is needed just for POST.
router.post('/graphql', koaBody(), graphqlKoa({ schema: myGraphQLSchema }));
router.get('/graphql', graphqlKoa({ schema: myGraphQLSchema }));
router.get('/graphiql', graphiqlKoa({ endpointURL: '/graphql' }));
app.use(router.routes());
app.use(router.allowedMethods());
app.listen(3000, (err) => {
if (err) throw err;
console.log('> Ready on http://localhost:3000');
});"><pre class="notranslate"><code class="notranslate">const Koa = require('koa');
const Router = require('koa-router');
const koaBody = require('koa-bodyparser');
const { graphqlKoa, graphiqlKoa } = require('apollo-server-koa');
const { makeExecutableSchema } = require('graphql-tools');
const app = new Koa();
const router = new Router();
const PORT = 3000;
const typeDefs = `
type Query {
hello: String
}
`;
const resolvers = {
Query: {
hello: () => 'Hello world!',
},
};
const myGraphQLSchema = makeExecutableSchema({
typeDefs,
resolvers,
});
// koaBody is needed just for POST.
router.post('/graphql', koaBody(), graphqlKoa({ schema: myGraphQLSchema }));
router.get('/graphql', graphqlKoa({ schema: myGraphQLSchema }));
router.get('/graphiql', graphiqlKoa({ endpointURL: '/graphql' }));
app.use(router.routes());
app.use(router.allowedMethods());
app.listen(3000, (err) => {
if (err) throw err;
console.log('> Ready on http://localhost:3000');
});
</code></pre></div>
<p dir="auto">response console</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" DONE Compiled successfully in 2128ms 22:59:14
> Ready on http://localhost:3000
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql"><pre class="notranslate"><code class="notranslate"> DONE Compiled successfully in 2128ms 22:59:14
> Ready on http://localhost:3000
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
Client pings, but there's no entry for page: /graphiql
</code></pre></div>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>5.1.0</td>
</tr>
<tr>
<td>node</td>
<td>8.9.4</td>
</tr>
<tr>
<td>OS</td>
<td>ubuntu 17</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
</tbody>
</table>
<p dir="auto">Here's my complete dependencies</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "dependencies": {
"apollo-server-koa": "^1.3.4",
"bcrypt": "^2.0.0",
"bluebird": "^3.5.1",
"dotenv": "^5.0.1",
"googleapis": "^28.1.0",
"graphql": "^0.13.2",
"graphql-tools": "^2.24.0",
"isomorphic-unfetch": "^2.0.0",
"koa": "^2.5.0",
"koa-bodyparser": "^4.2.0",
"koa-router": "^7.4.0",
"lodash": "^4.17.5",
"next": "^5.1.0",
"pg": "^7.4.1",
"pg-hstore": "^2.3.2",
"react": "^16.3.1",
"react-dom": "^16.3.1",
"reactstrap": "^5.0.0",
"sequelize": "^4.37.6",
"styled-jsx": "^2.2.6",
"xlsx": "^0.12.8"
},"><pre class="notranslate"><code class="notranslate"> "dependencies": {
"apollo-server-koa": "^1.3.4",
"bcrypt": "^2.0.0",
"bluebird": "^3.5.1",
"dotenv": "^5.0.1",
"googleapis": "^28.1.0",
"graphql": "^0.13.2",
"graphql-tools": "^2.24.0",
"isomorphic-unfetch": "^2.0.0",
"koa": "^2.5.0",
"koa-bodyparser": "^4.2.0",
"koa-router": "^7.4.0",
"lodash": "^4.17.5",
"next": "^5.1.0",
"pg": "^7.4.1",
"pg-hstore": "^2.3.2",
"react": "^16.3.1",
"react-dom": "^16.3.1",
"reactstrap": "^5.0.0",
"sequelize": "^4.37.6",
"styled-jsx": "^2.2.6",
"xlsx": "^0.12.8"
},
</code></pre></div> | <h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">When you use react a component residing outside the main Next.js project folder which uses hooks. You end up getting <code class="notranslate">Invalid hook call</code> error and the application breaks. Components without hooks work as expected.</p>
<p dir="auto">The bug appears in all versions <code class="notranslate">>9.0.5</code> when you change the webpack config so that files outside the main folder are transpiled. It’s working fine in <code class="notranslate"><=9.0.5</code></p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Check out the repro at <a href="https://github.com/baldurh/next-9.0.6-bug-repro">https://github.com/baldurh/next-9.0.6-bug-repro</a></p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">The code should not break when using files outside the project folder.</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: N/A</li>
<li>Browser: N/A</li>
<li>Version of Next.js: <code class="notranslate">>=9.0.6</code></li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">I know this is probably not a common use of Next.js but in our project we’re using a monorepo and have a shared folder with components used by multiple applications. It would be nice to get this working again. If someone finds an alternative config we could use I’d also be happy to do that <g-emoji class="g-emoji" alias="slightly_smiling_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f642.png">🙂</g-emoji></p> | 0 |
<p dir="auto">I have a page with url denied in server.js (I should see the content of the _error page instead of the original "post.js" content), but when I access this url, the _error content is almost instantly rerendered by the original "post.js" content. Is there any way how to avoid this strange behavior?</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">After visitng localhost:3000/post url without additional parameter the server should post content of the custom _error.js page. (This behavior is standart in next v. 3.0.1)</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The _error page is loaded, but almost instantly rerendered with post.js content. This behavior happens on next v. 3.0.2 and later.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Download or clone this repo <a href="https://github.com/josefkrajkar/custom-express-server">https://github.com/josefkrajkar/custom-express-server</a></li>
<li>Install dependencies <code class="notranslate">npm install</code></li>
<li>Run the dev server with command <code class="notranslate">npm run dev</code></li>
<li>Visit the <code class="notranslate">localhost:3000/post</code> in your browser</li>
</ol>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>3.0.2</td>
</tr>
<tr>
<td>node</td>
<td>8.1.3</td>
</tr>
<tr>
<td>OS</td>
<td>MacOs Sierra 10.12.6</td>
</tr>
<tr>
<td>browser</td>
<td>Google Chrome 61.0.3163.100</td>
</tr>
</tbody>
</table> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?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">Importing a constant and using it in a <code class="notranslate"><style jsx></code> tag should work as per the documentation in tests using Jest</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The imported constant is <code class="notranslate">undefined</code> when used in the <code class="notranslate"><style jsx></code> template string (but is still defined elsewhere in the file)</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Make the following minor changes to the <code class="notranslate">with-jest</code> example app (<a href="https://github.com/zeit/next.js/tree/canary/examples/with-jest">https://github.com/zeit/next.js/tree/canary/examples/with-jest</a>):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// with-jest-app/pages/index.js
import { red } from '../colors'; // new
export default () => (
<div>
<style jsx>{`
p {
color: ${red};
}
`}</style>
<p>Hello World!</p>
</div>
);"><pre class="notranslate"><span class="pl-c">// with-jest-app/pages/index.js</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">red</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../colors'</span><span class="pl-kos">;</span> <span class="pl-c">// new</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">style</span> <span class="pl-c1">jsx</span><span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-s">`</span>
<span class="pl-s"> p {</span>
<span class="pl-s"> color: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">red</span><span class="pl-kos">}</span></span>;</span>
<span class="pl-s"> }</span>
<span class="pl-s"> `</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">style</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">p</span><span class="pl-c1">></span>Hello World!<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// new file: with-jest-app/colors.js
export const red = '#F00';"><pre class="notranslate"><span class="pl-c">// new file: with-jest-app/colors.js</span>
<span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-s1">red</span> <span class="pl-c1">=</span> <span class="pl-s">'#F00'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">No other changes to config, etc are required to reproduce the issue.</p>
<p dir="auto">In Next 5.x this works as expected both when running the app and also when using Jest.<br>
In Next 6.0.0 this works as expected when running the app but the Jest tests fail claiming:<br>
<code class="notranslate">ReferenceError: red is not defined</code>.</p>
<p dir="auto">I've found these workarounds that solve the issue (albeit in an ugly way) and may help you to diagnose the issue:</p>
<ol dir="auto">
<li>Assign to another variable first:</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// with-jest-app/pages/index.js
import { red } from '../colors';
const alias = red;
export default () => (
<div>
<style jsx>{`
p {
color: ${alias};
}
`}</style>
<p>Hello World!</p>
</div>
);"><pre class="notranslate"><span class="pl-c">// with-jest-app/pages/index.js</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">red</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../colors'</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">alias</span> <span class="pl-c1">=</span> <span class="pl-s1">red</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">style</span> <span class="pl-c1">jsx</span><span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-s">`</span>
<span class="pl-s"> p {</span>
<span class="pl-s"> color: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">alias</span><span class="pl-kos">}</span></span>;</span>
<span class="pl-s"> }</span>
<span class="pl-s"> `</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">style</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">p</span><span class="pl-c1">></span>Hello World!<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<ol start="2" dir="auto">
<li>Convert the variable expression into a boolean expression:</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// with-jest-app/pages/index.js
import { red } from '../colors';
export default () => (
<div>
<style jsx>{`
p {
color: ${true && red};
}
`}</style>
<p>Hello World!</p>
</div>
);"><pre class="notranslate"><span class="pl-c">// with-jest-app/pages/index.js</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">red</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../colors'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">style</span> <span class="pl-c1">jsx</span><span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-s">`</span>
<span class="pl-s"> p {</span>
<span class="pl-s"> color: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">true</span> <span class="pl-c1">&&</span> <span class="pl-s1">red</span><span class="pl-kos">}</span></span>;</span>
<span class="pl-s"> }</span>
<span class="pl-s"> `</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">style</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">p</span><span class="pl-c1">></span>Hello World!<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">Was trying to upgrade another (much larger) app to Next v6.0.0<br>
Note: It's entirely possible that this is actually an issue with another project (styled-jsx, jest, babel, etc) but as I noticed it when upgrading Next and am not sure how to narrow it down any further I have raised the issue here - I'm happy to close this issue and raise it on one of the other projects if you think that's more appropriate.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>6.0.0</td>
</tr>
<tr>
<td>node</td>
<td>8.6.0</td>
</tr>
<tr>
<td>OS</td>
<td>Linux</td>
</tr>
<tr>
<td>Jest</td>
<td>22.4.3</td>
</tr>
</tbody>
</table> | 0 |
<ul dir="auto">
<li>VSCode Version:</li>
<li>OS Version:</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>edit a file (VSCode marks it as needing to be saved)</li>
<li>Alt+F+S</li>
</ol>
<p dir="auto">file doesn't save. in any other windows program, chording Alt+F (let go of F, keep holding Alt) + S will save the file.</p>
<p dir="auto">if you let go of "Alt" between F and S, it works. my muscle memory is messing with me.</p> | <p dir="auto">New line character (\n) not detected in regular expression search. It is treated as string even when regular expression option is selected.</p> | 0 |
<p dir="auto">twisted.internet.base.ThreadedResolver currently (18.9.1.dev0) uses socket.gethostbyname to do DNS resolution, which does not support IPv6.</p>
<p dir="auto">Meanwhile, scrapy currently (1.5.0) uses ThreadedResolver to do DNS resolution, thus unable to crawl host name with IPv6 address only or pure IPv6 ip address.</p>
<p dir="auto"><a href="https://github.com/scrapy/scrapy/blob/1fd1702a11a56ecbe9851ba4f9d3c10797e262dd/scrapy/resolver.py">https://github.com/scrapy/scrapy/blob/1fd1702a11a56ecbe9851ba4f9d3c10797e262dd/scrapy/resolver.py</a></p>
<p dir="auto">Script to reproduce the scrapy exception:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if [ ! -d testvenv ]; then virtualenv -p python testvenv ; fi
. testvenv/bin/activate
pip install -q scrapy # or install twisted and scrapy from source repository
python -m scrapy shell http://ipv6.google.com
# raises:
# twisted.internet.error.DNSLookupError: DNS lookup failed: no results for hostname lookup: ipv6.google.com.
python -m scrapy shell http://[::1] # no need for existing web server in [::1]:80
# raises:
# twisted.internet.error.DNSLookupError: DNS lookup failed: no results for hostname lookup: ::1."><pre class="notranslate"><span class="pl-k">if</span> [ <span class="pl-k">!</span> <span class="pl-k">-d</span> testvenv ]<span class="pl-k">;</span> <span class="pl-k">then</span> virtualenv -p python testvenv <span class="pl-k">;</span> <span class="pl-k">fi</span>
<span class="pl-c1">.</span> testvenv/bin/activate
pip install -q scrapy <span class="pl-c"><span class="pl-c">#</span> or install twisted and scrapy from source repository</span>
python -m scrapy shell http://ipv6.google.com
<span class="pl-c"><span class="pl-c">#</span> raises:</span>
<span class="pl-c"><span class="pl-c">#</span> twisted.internet.error.DNSLookupError: DNS lookup failed: no results for hostname lookup: ipv6.google.com.</span>
python -m scrapy shell http://[::1] <span class="pl-c"><span class="pl-c">#</span> no need for existing web server in [::1]:80</span>
<span class="pl-c"><span class="pl-c">#</span> raises:</span>
<span class="pl-c"><span class="pl-c">#</span> twisted.internet.error.DNSLookupError: DNS lookup failed: no results for hostname lookup: ::1.</span></pre></div>
<p dir="auto">But the default resolver in recent twisted supports IPv6 well.</p>
<p dir="auto">Delete <code class="notranslate">reactor.installResolver(self._get_dns_resolver())</code> in<br>
<a href="https://github.com/scrapy/scrapy/blob/master/scrapy/crawler.py#L289">https://github.com/scrapy/scrapy/blob/master/scrapy/crawler.py#L289</a><br>
and test again:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python -m scrapy shell http://ipv6.google.com
python -m scrapy shell http://[::1]"><pre class="notranslate"><code class="notranslate">python -m scrapy shell http://ipv6.google.com
python -m scrapy shell http://[::1]
</code></pre></div>
<p dir="auto">it works and no DNSLookupError exception raised.</p>
<p dir="auto">Although CachingThreadedResolver is used to cache DNS query, I think that compatibility with IPv6 outweigh the requirement of in process DNS cache, or we can reimplement DNS cache using middleware. At least, how about supply a option for user to explicitly enable IPv6 support in case the <code class="notranslate">DNSCACHE_ENABLED = False</code>?<br>
Regarding the timeout option in getHostByName, I think there should be other approaches to set DNS query timeout (I'm not familiar with twisted).</p>
<p dir="auto">In deed, I tried creating PR to twisted to make <code class="notranslate">ThreadedResolver.getHostByName</code> use <code class="notranslate">getaddrinfo</code> to support IPv6, but after discussing with cdunklau in irc://freenode/twisted-dev , I realised it's a backward incompatible change and is unlikely to be accepted, then concluded that the best option is to use the the default IPv6 compatible resolver in twisted instead of antiquated <code class="notranslate">ThreadedResolver.getHostByName</code>.</p>
<p dir="auto">(note: to use the new default resolver which is IPv6 compatible, the required Twisted version should also be updated)</p> | <p dir="auto">I'm running into problems while trying to run the example on the scrapy.org home page from the FOSDEM IPv6-only Wi-Fi network. (The scraper works fine from an IPv4 network.)</p>
<p dir="auto">If both IPv4 and IPv6 are enabled on my computer (OS X Yosemite), and the IPv4 is configured with DHCP, and thus gets a self-assigned address (169.254.x.x), then I get timeout errors:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ scrapy runspider myspider.py
:0: UserWarning: You do not have a working installation of the service_identity module: 'No module named service_identity'. Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied. Without the service_identity module and a recent enough pyOpenSSL to support it, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.
2015-01-31 12:13:32+0100 [scrapy] INFO: Scrapy 0.24.4 started (bot: scrapybot)
2015-01-31 12:13:32+0100 [scrapy] INFO: Optional features available: ssl, http11
2015-01-31 12:13:32+0100 [scrapy] INFO: Overridden settings: {}
2015-01-31 12:13:32+0100 [scrapy] INFO: Enabled extensions: LogStats, TelnetConsole, CloseSpider, WebService, CoreStats, SpiderState
2015-01-31 12:13:32+0100 [scrapy] INFO: Enabled downloader middlewares: HttpAuthMiddleware, DownloadTimeoutMiddleware, UserAgentMiddleware, RetryMiddleware, DefaultHeadersMiddleware, MetaRefreshMiddleware, HttpCompressionMiddleware, RedirectMiddleware, CookiesMiddleware, ChunkedTransferMiddleware, DownloaderStats
2015-01-31 12:13:32+0100 [scrapy] INFO: Enabled spider middlewares: HttpErrorMiddleware, OffsiteMiddleware, RefererMiddleware, UrlLengthMiddleware, DepthMiddleware
2015-01-31 12:13:32+0100 [scrapy] INFO: Enabled item pipelines:
2015-01-31 12:13:32+0100 [blogspider] INFO: Spider opened
2015-01-31 12:13:32+0100 [blogspider] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2015-01-31 12:13:32+0100 [scrapy] DEBUG: Telnet console listening on 127.0.0.1:6023
2015-01-31 12:13:32+0100 [scrapy] DEBUG: Web service listening on 127.0.0.1:6080
2015-01-31 12:14:32+0100 [blogspider] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2015-01-31 12:14:48+0100 [blogspider] DEBUG: Retrying <GET http://blog.scrapinghub.com> (failed 1 times): TCP connection timed out: 60: Operation timed out.
2015-01-31 12:15:32+0100 [blogspider] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2015-01-31 12:16:03+0100 [blogspider] DEBUG: Retrying <GET http://blog.scrapinghub.com> (failed 2 times): TCP connection timed out: 60: Operation timed out.
2015-01-31 12:16:32+0100 [blogspider] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2015-01-31 12:17:18+0100 [blogspider] DEBUG: Gave up retrying <GET http://blog.scrapinghub.com> (failed 3 times): TCP connection timed out: 60: Operation timed out.
2015-01-31 12:17:18+0100 [blogspider] ERROR: Error downloading <GET http://blog.scrapinghub.com>: TCP connection timed out: 60: Operation timed out.
2015-01-31 12:17:18+0100 [blogspider] INFO: Closing spider (finished)
2015-01-31 12:17:18+0100 [blogspider] INFO: Dumping Scrapy stats:
{'downloader/exception_count': 3,
'downloader/exception_type_count/twisted.internet.error.TCPTimedOutError': 3,
'downloader/request_bytes': 657,
'downloader/request_count': 3,
'downloader/request_method_count/GET': 3,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2015, 1, 31, 11, 17, 18, 494774),
'log_count/DEBUG': 5,
'log_count/ERROR': 1,
'log_count/INFO': 10,
'scheduler/dequeued': 3,
'scheduler/dequeued/memory': 3,
'scheduler/enqueued': 3,
'scheduler/enqueued/memory': 3,
'start_time': datetime.datetime(2015, 1, 31, 11, 13, 32, 955024)}
2015-01-31 12:17:18+0100 [blogspider] INFO: Spider closed (finished)"><pre class="notranslate"><code class="notranslate">$ scrapy runspider myspider.py
:0: UserWarning: You do not have a working installation of the service_identity module: 'No module named service_identity'. Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied. Without the service_identity module and a recent enough pyOpenSSL to support it, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.
2015-01-31 12:13:32+0100 [scrapy] INFO: Scrapy 0.24.4 started (bot: scrapybot)
2015-01-31 12:13:32+0100 [scrapy] INFO: Optional features available: ssl, http11
2015-01-31 12:13:32+0100 [scrapy] INFO: Overridden settings: {}
2015-01-31 12:13:32+0100 [scrapy] INFO: Enabled extensions: LogStats, TelnetConsole, CloseSpider, WebService, CoreStats, SpiderState
2015-01-31 12:13:32+0100 [scrapy] INFO: Enabled downloader middlewares: HttpAuthMiddleware, DownloadTimeoutMiddleware, UserAgentMiddleware, RetryMiddleware, DefaultHeadersMiddleware, MetaRefreshMiddleware, HttpCompressionMiddleware, RedirectMiddleware, CookiesMiddleware, ChunkedTransferMiddleware, DownloaderStats
2015-01-31 12:13:32+0100 [scrapy] INFO: Enabled spider middlewares: HttpErrorMiddleware, OffsiteMiddleware, RefererMiddleware, UrlLengthMiddleware, DepthMiddleware
2015-01-31 12:13:32+0100 [scrapy] INFO: Enabled item pipelines:
2015-01-31 12:13:32+0100 [blogspider] INFO: Spider opened
2015-01-31 12:13:32+0100 [blogspider] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2015-01-31 12:13:32+0100 [scrapy] DEBUG: Telnet console listening on 127.0.0.1:6023
2015-01-31 12:13:32+0100 [scrapy] DEBUG: Web service listening on 127.0.0.1:6080
2015-01-31 12:14:32+0100 [blogspider] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2015-01-31 12:14:48+0100 [blogspider] DEBUG: Retrying <GET http://blog.scrapinghub.com> (failed 1 times): TCP connection timed out: 60: Operation timed out.
2015-01-31 12:15:32+0100 [blogspider] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2015-01-31 12:16:03+0100 [blogspider] DEBUG: Retrying <GET http://blog.scrapinghub.com> (failed 2 times): TCP connection timed out: 60: Operation timed out.
2015-01-31 12:16:32+0100 [blogspider] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2015-01-31 12:17:18+0100 [blogspider] DEBUG: Gave up retrying <GET http://blog.scrapinghub.com> (failed 3 times): TCP connection timed out: 60: Operation timed out.
2015-01-31 12:17:18+0100 [blogspider] ERROR: Error downloading <GET http://blog.scrapinghub.com>: TCP connection timed out: 60: Operation timed out.
2015-01-31 12:17:18+0100 [blogspider] INFO: Closing spider (finished)
2015-01-31 12:17:18+0100 [blogspider] INFO: Dumping Scrapy stats:
{'downloader/exception_count': 3,
'downloader/exception_type_count/twisted.internet.error.TCPTimedOutError': 3,
'downloader/request_bytes': 657,
'downloader/request_count': 3,
'downloader/request_method_count/GET': 3,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2015, 1, 31, 11, 17, 18, 494774),
'log_count/DEBUG': 5,
'log_count/ERROR': 1,
'log_count/INFO': 10,
'scheduler/dequeued': 3,
'scheduler/dequeued/memory': 3,
'scheduler/enqueued': 3,
'scheduler/enqueued/memory': 3,
'start_time': datetime.datetime(2015, 1, 31, 11, 13, 32, 955024)}
2015-01-31 12:17:18+0100 [blogspider] INFO: Spider closed (finished)
</code></pre></div>
<p dir="auto">If I turn off IPv4 completely, then scrapy fails with "No route to host" errors:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ scrapy runspider myspider.py
:0: UserWarning: You do not have a working installation of the service_identity module: 'No module named service_identity'. Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied. Without the service_identity module and a recent enough pyOpenSSL to support it, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.
2015-01-31 12:10:06+0100 [scrapy] INFO: Scrapy 0.24.4 started (bot: scrapybot)
2015-01-31 12:10:06+0100 [scrapy] INFO: Optional features available: ssl, http11
2015-01-31 12:10:06+0100 [scrapy] INFO: Overridden settings: {}
2015-01-31 12:10:06+0100 [scrapy] INFO: Enabled extensions: LogStats, TelnetConsole, CloseSpider, WebService, CoreStats, SpiderState
2015-01-31 12:10:06+0100 [scrapy] INFO: Enabled downloader middlewares: HttpAuthMiddleware, DownloadTimeoutMiddleware, UserAgentMiddleware, RetryMiddleware, DefaultHeadersMiddleware, MetaRefreshMiddleware, HttpCompressionMiddleware, RedirectMiddleware, CookiesMiddleware, ChunkedTransferMiddleware, DownloaderStats
2015-01-31 12:10:06+0100 [scrapy] INFO: Enabled spider middlewares: HttpErrorMiddleware, OffsiteMiddleware, RefererMiddleware, UrlLengthMiddleware, DepthMiddleware
2015-01-31 12:10:06+0100 [scrapy] INFO: Enabled item pipelines:
2015-01-31 12:10:06+0100 [blogspider] INFO: Spider opened
2015-01-31 12:10:06+0100 [blogspider] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2015-01-31 12:10:06+0100 [scrapy] DEBUG: Telnet console listening on 127.0.0.1:6023
2015-01-31 12:10:06+0100 [scrapy] DEBUG: Web service listening on 127.0.0.1:6080
2015-01-31 12:10:06+0100 [blogspider] DEBUG: Retrying <GET http://blog.scrapinghub.com> (failed 1 times): No route to host: 51: Network is unreachable.
2015-01-31 12:10:06+0100 [blogspider] DEBUG: Retrying <GET http://blog.scrapinghub.com> (failed 2 times): No route to host: 51: Network is unreachable.
2015-01-31 12:10:06+0100 [blogspider] DEBUG: Gave up retrying <GET http://blog.scrapinghub.com> (failed 3 times): No route to host: 51: Network is unreachable.
2015-01-31 12:10:06+0100 [blogspider] ERROR: Error downloading <GET http://blog.scrapinghub.com>: No route to host: 51: Network is unreachable.
2015-01-31 12:10:06+0100 [blogspider] INFO: Closing spider (finished)
2015-01-31 12:10:06+0100 [blogspider] INFO: Dumping Scrapy stats:
{'downloader/exception_count': 3,
'downloader/exception_type_count/twisted.internet.error.NoRouteError': 3,
'downloader/request_bytes': 657,
'downloader/request_count': 3,
'downloader/request_method_count/GET': 3,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2015, 1, 31, 11, 10, 6, 482287),
'log_count/DEBUG': 5,
'log_count/ERROR': 1,
'log_count/INFO': 7,
'scheduler/dequeued': 3,
'scheduler/dequeued/memory': 3,
'scheduler/enqueued': 3,
'scheduler/enqueued/memory': 3,
'start_time': datetime.datetime(2015, 1, 31, 11, 10, 6, 463382)}
2015-01-31 12:10:06+0100 [blogspider] INFO: Spider closed (finished)"><pre class="notranslate"><code class="notranslate">$ scrapy runspider myspider.py
:0: UserWarning: You do not have a working installation of the service_identity module: 'No module named service_identity'. Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied. Without the service_identity module and a recent enough pyOpenSSL to support it, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.
2015-01-31 12:10:06+0100 [scrapy] INFO: Scrapy 0.24.4 started (bot: scrapybot)
2015-01-31 12:10:06+0100 [scrapy] INFO: Optional features available: ssl, http11
2015-01-31 12:10:06+0100 [scrapy] INFO: Overridden settings: {}
2015-01-31 12:10:06+0100 [scrapy] INFO: Enabled extensions: LogStats, TelnetConsole, CloseSpider, WebService, CoreStats, SpiderState
2015-01-31 12:10:06+0100 [scrapy] INFO: Enabled downloader middlewares: HttpAuthMiddleware, DownloadTimeoutMiddleware, UserAgentMiddleware, RetryMiddleware, DefaultHeadersMiddleware, MetaRefreshMiddleware, HttpCompressionMiddleware, RedirectMiddleware, CookiesMiddleware, ChunkedTransferMiddleware, DownloaderStats
2015-01-31 12:10:06+0100 [scrapy] INFO: Enabled spider middlewares: HttpErrorMiddleware, OffsiteMiddleware, RefererMiddleware, UrlLengthMiddleware, DepthMiddleware
2015-01-31 12:10:06+0100 [scrapy] INFO: Enabled item pipelines:
2015-01-31 12:10:06+0100 [blogspider] INFO: Spider opened
2015-01-31 12:10:06+0100 [blogspider] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2015-01-31 12:10:06+0100 [scrapy] DEBUG: Telnet console listening on 127.0.0.1:6023
2015-01-31 12:10:06+0100 [scrapy] DEBUG: Web service listening on 127.0.0.1:6080
2015-01-31 12:10:06+0100 [blogspider] DEBUG: Retrying <GET http://blog.scrapinghub.com> (failed 1 times): No route to host: 51: Network is unreachable.
2015-01-31 12:10:06+0100 [blogspider] DEBUG: Retrying <GET http://blog.scrapinghub.com> (failed 2 times): No route to host: 51: Network is unreachable.
2015-01-31 12:10:06+0100 [blogspider] DEBUG: Gave up retrying <GET http://blog.scrapinghub.com> (failed 3 times): No route to host: 51: Network is unreachable.
2015-01-31 12:10:06+0100 [blogspider] ERROR: Error downloading <GET http://blog.scrapinghub.com>: No route to host: 51: Network is unreachable.
2015-01-31 12:10:06+0100 [blogspider] INFO: Closing spider (finished)
2015-01-31 12:10:06+0100 [blogspider] INFO: Dumping Scrapy stats:
{'downloader/exception_count': 3,
'downloader/exception_type_count/twisted.internet.error.NoRouteError': 3,
'downloader/request_bytes': 657,
'downloader/request_count': 3,
'downloader/request_method_count/GET': 3,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2015, 1, 31, 11, 10, 6, 482287),
'log_count/DEBUG': 5,
'log_count/ERROR': 1,
'log_count/INFO': 7,
'scheduler/dequeued': 3,
'scheduler/dequeued/memory': 3,
'scheduler/enqueued': 3,
'scheduler/enqueued/memory': 3,
'start_time': datetime.datetime(2015, 1, 31, 11, 10, 6, 463382)}
2015-01-31 12:10:06+0100 [blogspider] INFO: Spider closed (finished)
</code></pre></div>
<p dir="auto">Note that I can open the blog.scrapinghub.com site in Safari, so the target web site does support IPv6 and the problem seems to be on scrapy's side.</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=andersk" rel="nofollow">Anders Kobberup</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9263?redirect=false" rel="nofollow">SPR-9263</a></strong> and commented</p>
<p dir="auto">We are having a rising amount of issues where the symptom is that random properties that have been autowired into our beans (via <code class="notranslate">@autowired</code> setter methods) turns our null, without any exceptions during start up.<br>
This means that we have no way of knowing whether our production setup is actually functioning as expected, or if it will encounter nullpointers as the diferent parts of the platform is used. Also the only way to "fix" any such nullpointer is to restart the application, which obviously is not good.</p>
<p dir="auto">I have traced the problem down to what i believe is a concurrency flaw in checkPropertySkipping in InjectionMetadata.InjectedElement.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="172: protected boolean checkPropertySkipping(PropertyValues pvs) {
173: if (this.skip == null) {
174: if (pvs != null) {
175: synchronized (pvs) {
176: if (this.skip == null) {
177: if (this.pd != null) {
178: if (pvs.contains(this.pd.getName())) {
179: // Explicit value provided as part of the bean definition.
180: this.skip = true;
181: return true;
182: }
183: else if (pvs instanceof MutablePropertyValues) {
184: ((MutablePropertyValues) pvs).registerProcessedProperty(this.pd.getName());
185: }
186: }
187: }
188: }
189: }
190: this.skip = false;
191: }
192: return this.skip;
193: }"><pre class="notranslate"><code class="notranslate">172: protected boolean checkPropertySkipping(PropertyValues pvs) {
173: if (this.skip == null) {
174: if (pvs != null) {
175: synchronized (pvs) {
176: if (this.skip == null) {
177: if (this.pd != null) {
178: if (pvs.contains(this.pd.getName())) {
179: // Explicit value provided as part of the bean definition.
180: this.skip = true;
181: return true;
182: }
183: else if (pvs instanceof MutablePropertyValues) {
184: ((MutablePropertyValues) pvs).registerProcessedProperty(this.pd.getName());
185: }
186: }
187: }
188: }
189: }
190: this.skip = false;
191: }
192: return this.skip;
193: }
</code></pre></div>
<p dir="auto">Consider the scenario where at least two threads are creating an instance of a given bean, which have autowired properties. Both of these threads will enter the 'Inject(...)' method, and from here go to checkPropertySkipping (the argument for both threads are the same PropertyValues object).</p>
<p dir="auto">Thread A will enter the synchronized block, while Thread B will be halted before this block.<br>
Thread A will proceed to the inside of the synchronized block, and enter the 'else if' block, and register the propertyname in the PropertyValues object as processed (line 184).<br>
As soon as Thread A exits the synchronized block, the java scheduler halts Thread A and resumes Thread B which will enter the synch block and, as Thread A has been halted and thus not having set 'this.skip = false' (line 190), the 'if(this.skip == null)' statement (line 176) will return true.<br>
After this, thread A may continue running (the object that it is creating will be created correctly).</p>
<p dir="auto">Thread B will evaluate the 'if (pvs.contains(this.pd.getName()))' statement, which will return true, as Thread A has registered the property name as processed, and as a result Thread B will set 'this.skip = true' (line 180) and return.</p>
<p dir="auto">As 'skip' has been set to true on this InjectedElement, every later invocation of checkPropertySkipping after this will return true, and thus every later object that is instantiated will not have this dependency injected.</p>
<p dir="auto">The obvious solution is to ensure that 'this.skip = false' is also set within the synchronized block (add a line containing 'this.skip = false;' after line 187), thus ensuring that any threads that are awaiting the monitor will evaluate the if statement at line 176, to false and thus not setting 'this.skip = true'.</p>
<p dir="auto">In order to see if this is more than just a theoretical posibility that multiple threads will enter this code, i have created a small test class that can simulate this method being invoked by multiple threads. The test i have run, show that it will happen.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import java.util.ArrayList;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
public class SynchTest {
private final Object mutex = new Object();
private Boolean finished;
private AtomicInteger numberOfCompletions = new AtomicInteger( 0 );
private int testNumber;
public SynchTest( int TestNumber ) {
this.testNumber = TestNumber;
}
public Runn getRunn() {
return new Runn();
}
void gotThrough() {
final int nCount = numberOfCompletions.incrementAndGet();
if ( nCount > 1 ) {
//woops - this is not good!!
System.out.println( "In test " + testNumber + ", " + nCount + " got into the synch block!!" );
}
}
private class Runn implements Callable<Object> {
@Override
public Object call() throws Exception {
if ( finished == null ) {
synchronized ( mutex ) {
if ( finished == null ) {
gotThrough();
}
}
finished = false;
}
return null;
}
}
public static void main( String[] args ) throws InterruptedException {
ExecutorService cThreadPool = Executors.newFixedThreadPool( 5 );
ArrayList<Runn> cRunnables = new ArrayList<>();
for ( int i = 0 ; i < 1000 ; i++ ) {
SynchTest cTest = new SynchTest( i );
for ( int j = 0 ; j < 5 ; j++ ) {
cRunnables.add( cTest.getRunn() );
}
}
System.out.println( "Invoking "+cRunnables.size()+" tasks" );
cThreadPool.invokeAll( cRunnables );
cThreadPool.shutdown();
cThreadPool.awaitTermination( 5, TimeUnit.DAYS );
}
}"><pre class="notranslate"><code class="notranslate">import java.util.ArrayList;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
public class SynchTest {
private final Object mutex = new Object();
private Boolean finished;
private AtomicInteger numberOfCompletions = new AtomicInteger( 0 );
private int testNumber;
public SynchTest( int TestNumber ) {
this.testNumber = TestNumber;
}
public Runn getRunn() {
return new Runn();
}
void gotThrough() {
final int nCount = numberOfCompletions.incrementAndGet();
if ( nCount > 1 ) {
//woops - this is not good!!
System.out.println( "In test " + testNumber + ", " + nCount + " got into the synch block!!" );
}
}
private class Runn implements Callable<Object> {
@Override
public Object call() throws Exception {
if ( finished == null ) {
synchronized ( mutex ) {
if ( finished == null ) {
gotThrough();
}
}
finished = false;
}
return null;
}
}
public static void main( String[] args ) throws InterruptedException {
ExecutorService cThreadPool = Executors.newFixedThreadPool( 5 );
ArrayList<Runn> cRunnables = new ArrayList<>();
for ( int i = 0 ; i < 1000 ; i++ ) {
SynchTest cTest = new SynchTest( i );
for ( int j = 0 ; j < 5 ; j++ ) {
cRunnables.add( cTest.getRunn() );
}
}
System.out.println( "Invoking "+cRunnables.size()+" tasks" );
cThreadPool.invokeAll( cRunnables );
cThreadPool.shutdown();
cThreadPool.awaitTermination( 5, TimeUnit.DAYS );
}
}
</code></pre></div>
<p dir="auto">Heres the result of just one run:</p>
<p dir="auto">Invoking 5000 tasks<br>
In test 695, 2 got into the synch block!!<br>
In test 765, 2 got into the synch block!!<br>
In test 824, 2 got into the synch block!!<br>
In test 872, 2 got into the synch block!!<br>
In test 981, 2 got into the synch block!!</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398153507" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14439" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14439/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14439">#14439</a> Autowired properties can remain unset during concurrent instantiation of prototype-beans (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118207" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13894" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13894/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13894">#13894</a> Concurrent retrieval of prototype-scoped beans may result in null <code class="notranslate">@Autowired</code> fields</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=olamy" rel="nofollow">Olivier Lamy</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5385?redirect=false" rel="nofollow">SPR-5385</a></strong> and commented</p>
<p dir="auto">All artifactIds has changed in 3.0M1.<br>
It will be a REAL NIGTHMARE for maven users when upgrading due to all artifactIds change !!<br>
This will break a lot of builds for people who wants to upgrade !!<br>
Please any chance to revert to this non backward compatible change ????</p>
<hr>
<p dir="auto">Olivier<br>
Maven PMC</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 M1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398091977" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9974" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9974/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9974">#9974</a> Fix Maven POMs (<em><strong>"depends on"</strong></em>)</li>
</ul>
<p dir="auto">12 votes, 12 watchers</p> | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.