text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<h4 dir="auto">Code Sample</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd df = pd.DataFrame({ 'a': [1, 1, 2, 3], 'b': [None, 1, 2, 3], 'c': [1,2,3,4], }) grouped = df.groupby(('a', 'b')) print('Number of groups:', len(grouped)) # Number of groups: 4 num_iterations = 0 for _ in grouped: num_iterations += 1 print('Number of groups iterated over:', num_iterations) # Number of groups iterated over: 3"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({ <span class="pl-s">'a'</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s">'b'</span>: [<span class="pl-c1">None</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s">'c'</span>: [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>], }) <span class="pl-s1">grouped</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>((<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>)) <span class="pl-en">print</span>(<span class="pl-s">'Number of groups:'</span>, <span class="pl-en">len</span>(<span class="pl-s1">grouped</span>)) <span class="pl-c"># Number of groups: 4</span> <span class="pl-s1">num_iterations</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-k">for</span> <span class="pl-s1">_</span> <span class="pl-c1">in</span> <span class="pl-s1">grouped</span>: <span class="pl-s1">num_iterations</span> <span class="pl-c1">+=</span> <span class="pl-c1">1</span> <span class="pl-en">print</span>(<span class="pl-s">'Number of groups iterated over:'</span>, <span class="pl-s1">num_iterations</span>) <span class="pl-c"># Number of groups iterated over: 3</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Presently, when a <code class="notranslate">GroupBy</code> object is iterated over, any group where one of the columns grouped by is <code class="notranslate">None</code> is skipped.</p> <p dir="auto">This is a problem because when iterating over groups, we expect to iterate over all groups.</p> <p dir="auto">It is also a problem because it is not sensible to say the length of an iterable is <code class="notranslate">x</code> when iterating over it only performs some <code class="notranslate">y &lt; x</code> number of iterations.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">I'd expect iterating over a <code class="notranslate">GroupBy</code> object to iterate over all groups, regardless of the value in the key columns.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS <hr> <p dir="auto">commit: None<br> python: 3.5.2.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 2.6.32-504.12.2.el6.x86_64<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8</p> <p dir="auto">pandas: 0.18.1<br> nose: 1.3.7<br> pip: 9.0.1<br> setuptools: 23.0.0<br> Cython: 0.24<br> numpy: 1.11.1<br> scipy: 0.17.1<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 5.1.0<br> sphinx: 1.4.1<br> patsy: 0.4.1<br> dateutil: 2.5.3<br> pytz: 2016.4<br> blosc: None<br> bottleneck: 1.1.0<br> tables: 3.3.0<br> numexpr: 2.6.0<br> matplotlib: 1.5.1<br> openpyxl: 2.3.2<br> xlrd: 1.0.0<br> xlwt: 1.1.2<br> xlsxwriter: 0.9.2<br> lxml: 3.6.0<br> bs4: 4.4.1<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.0.13<br> pymysql: None<br> psycopg2: 2.6.2 (dt dec pq3 ext)<br> jinja2: 2.8<br> boto: 2.40.0<br> pandas_datareader: None</p> </details>
<p dir="auto">ENH: maybe for now just provide a warning if dropping the nan rows when pivotting...</p> <p dir="auto">rom ml</p> <p dir="auto"><a href="http://stackoverflow.com/questions/16860172/python-pandas-pivot-table-silently-drops-indices-with-nans" rel="nofollow">http://stackoverflow.com/questions/16860172/python-pandas-pivot-table-silently-drops-indices-with-nans</a></p> <p dir="auto">This is effectivly trying to groupby on a NaN, currently not allowed</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [13]: a = [['a', 'b', 12, 12, 12], ['a', nan, 12.3, 233., 12], ['b', 'a', 123.23, 123, 1], ['a', 'b', 1, 1, 1.]] In [14]: df = DataFrame(a, columns=['a', 'b', 'c', 'd', 'e']) In [15]: df.groupby(['a','b']).sum() Out[15]: c d e a b a b 13.00 13 13 b a 123.23 123 1"><pre class="notranslate"><code class="notranslate">In [13]: a = [['a', 'b', 12, 12, 12], ['a', nan, 12.3, 233., 12], ['b', 'a', 123.23, 123, 1], ['a', 'b', 1, 1, 1.]] In [14]: df = DataFrame(a, columns=['a', 'b', 'c', 'd', 'e']) In [15]: df.groupby(['a','b']).sum() Out[15]: c d e a b a b 13.00 13 13 b a 123.23 123 1 </code></pre></div> <p dir="auto">Workaround to fill the index with a dummy, pivot, and replace</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" In [31]: df2 = df.copy() In [32]: df2['dummy'] = np.nan In [33]: df2['b'] = df2['b'].fillna('dummy') In [34]: df2 Out[34]: a b c d e dummy 0 a b 12.00 12 12 NaN 1 a dummy 12.30 233 12 NaN 2 b a 123.23 123 1 NaN 3 a b 1.00 1 1 NaN In [35]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum) Out[35]: a b c d e 0 a b 13.00 13 13 1 a dummy 12.30 233 12 2 b a 123.23 123 1 In [36]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum).replace('dummy',np.nan) Out[36]: a b c d e 0 a b 13.00 13 13 1 a NaN 12.30 233 12 2 b a 123.23 123 1 "><pre class="notranslate"><code class="notranslate"> In [31]: df2 = df.copy() In [32]: df2['dummy'] = np.nan In [33]: df2['b'] = df2['b'].fillna('dummy') In [34]: df2 Out[34]: a b c d e dummy 0 a b 12.00 12 12 NaN 1 a dummy 12.30 233 12 NaN 2 b a 123.23 123 1 NaN 3 a b 1.00 1 1 NaN In [35]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum) Out[35]: a b c d e 0 a b 13.00 13 13 1 a dummy 12.30 233 12 2 b a 123.23 123 1 In [36]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum).replace('dummy',np.nan) Out[36]: a b c d e 0 a b 13.00 13 13 1 a NaN 12.30 233 12 2 b a 123.23 123 1 </code></pre></div>
1
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce/21728/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce/21728/</a></p> <p dir="auto">Failed: [k8s.io] V1Job should scale a job up {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:127 Aug 16 08:11:16.645: Couldn't delete ns &quot;e2e-tests-v1job-gmj3l&quot;: namespace e2e-tests-v1job-gmj3l was not deleted within limit: timed out waiting for the condition, pods remaining: [] /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:265"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:127 Aug 16 08:11:16.645: Couldn't delete ns "e2e-tests-v1job-gmj3l": namespace e2e-tests-v1job-gmj3l was not deleted within limit: timed out waiting for the condition, pods remaining: [] /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:265 </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169069185" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29976" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29976/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29976">#29976</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="170717834" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30464" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30464/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30464">#30464</a></p>
<p dir="auto">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:127<br> Aug 16 08:11:16.645: Couldn't delete ns "e2e-tests-v1job-gmj3l": namespace e2e-tests-v1job-gmj3l was not deleted within limit: timed out waiting for the condition, pods remaining: []<br> /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:265</p>
1
<p dir="auto">Forked from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57521563" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/4396" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/4396/hovercard" href="https://github.com/kubernetes/kubernetes/pull/4396">#4396</a> and probably other issues.</p> <p dir="auto">Nodes and other infrastructure resources (e.g., persistent volumes) should go into a namespace, such as kubernetes. Not putting them into a namespaces, creates special cases everywhere.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/derekwaynecarr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/derekwaynecarr">@derekwaynecarr</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/smarterclayton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smarterclayton">@smarterclayton</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lavalamp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lavalamp">@lavalamp</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thockin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thockin">@thockin</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/erictune/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/erictune">@erictune</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/markturansky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/markturansky">@markturansky</a></p>
<p dir="auto">See issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="64830457" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/6079" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/6079/hovercard" href="https://github.com/kubernetes/kubernetes/issues/6079">#6079</a> as the roll-up for node upgrades.</p> <p dir="auto">This issue is to do an in-place upgrade of the kubelet and kube-proxy binaries while a node is running. Docker and the kernel/OS are not changed. This upgrade can only be performed if the requested new version of kubelet and kube-proxy are compatible with the existing Docker and kernel/OS version; see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="59120791" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/4855" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/4855/hovercard" href="https://github.com/kubernetes/kubernetes/issues/4855">#4855</a> for more details on versioning.</p> <p dir="auto">We simply want to download the new (kube*) node binaries, stop the old ones, and start the new ones (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44849533" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1573" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1573/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1573">#1573</a>). That way, the pods continue to run, and we don't have to migrate any storage. Possible complications include:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53803962" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/3333" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/3333/hovercard" href="https://github.com/kubernetes/kubernetes/issues/3333">#3333</a> leftover state or configuration of the VM will cause unwanted side effects after the upgrade is complete</li> <li>the configuration of the node (environment variables, flags passed to kube_, something salt does) might change between kube_ versions</li> <li>when kube* binaries are stopped, the master might think the pods are all gone, and schedule new copies of the pods elsewhere throughout the cluster</li> </ul> <p dir="auto">The following requirements follow:</p> <ul dir="auto"> <li>smart salt stanzas: idempotency, can run on a previously salted node</li> <li>must have an upgrade grace period where the pods are considered alive even if they cannot be health-checked by kubernetes</li> </ul> <p dir="auto">The tests for this feature are tracked in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="70520944" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/7256" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/7256/hovercard" href="https://github.com/kubernetes/kubernetes/issues/7256">#7256</a>.</p> <p dir="auto">References:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="59120791" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/4855" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/4855/hovercard" href="https://github.com/kubernetes/kubernetes/issues/4855">#4855</a> cluster versioning</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53803962" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/3333" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/3333/hovercard" href="https://github.com/kubernetes/kubernetes/issues/3333">#3333</a> lively debate about kubelet &amp; kube-proxy upgrades, specifically in-place <em>vs</em> fresh-node</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44849533" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1573" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1573/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1573">#1573</a> online kubelet upgrades; the original issue for this work item</li> </ul>
0
<p dir="auto">When renaming a file the file explorer becomes grey. After hitting ENTER to confirm the changed name, the explorer view (file names) stays grey instead of becoming white. Does appear randomly. The working files view works as expected.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1742426/13597381/96b56028-e518-11e5-8027-4b78448c13f4.png"><img src="https://cloud.githubusercontent.com/assets/1742426/13597381/96b56028-e518-11e5-8027-4b78448c13f4.png" alt="bildschirmfoto 2016-03-08 um 10 22 18" style="max-width: 100%;"></a></p> <p dir="auto">Using vs code v0.10.10-insider (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/5b5f4db87c10345b9d5c8d0bed745bcad4533135/hovercard" href="https://github.com/microsoft/vscode/commit/5b5f4db87c10345b9d5c8d0bed745bcad4533135"><tt>5b5f4db</tt></a>)<br> Max OSX 10.11.3</p>
<ul dir="auto"> <li>VSCode Version: 1.2.0</li> <li>OS Version: OS X 10.11.5 (15F34)</li> </ul> <p dir="auto">Kudos:</p> <p dir="auto">I love the new integrated terminal feature!</p> <p dir="auto">Task I am trying to do:</p> <p dir="auto">Clear the screen after typing a series of terminal commands.</p> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>On a Mac, open the integrated terminal (e.g. Ctrl-`)</li> <li>Type in a few commands.</li> <li>Clear the screen by pressing Cmd-K. (Cmd-K is a standard key for clearing the screen in apps like Console, Terminal, the Safari and Chrome Web Inspectors, etc.)</li> </ol> <p dir="auto">It works, but VSCode thinks that is the first key of a multi-key command and waits for and swallows the next keypress. It should recognize Cmd-K in the context of the integrated terminal.</p> <p dir="auto">Other things I tried:</p> <ul dir="auto"> <li>Using the Unix <code class="notranslate">clear</code> command partly works. If you close and re-open the terminal, the previously “cleared” text reappears.</li> </ul>
0
<ul dir="auto"> <li>Electron version: 3.1.1</li> <li>Operating system: Mac 10.12.2</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">When I refresh the app by pressing <code class="notranslate">command+r</code> the page should refresh and the vibrancy effect should not be removed.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">When I actually refresh the page, the vibrancy effect is removed and I only get a white background.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Here is my main code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function createWindow() { var bounds = getBounds(); var options = { vibrancy: 'light', width: bounds.width, height: bounds.height, x: bounds.x, y: bounds.y, titleBarStyle: 'hidden' } mainWindow = new BrowserWindow(options); mainWindow.loadURL(viewFile); mainWindow.on('close', () =&gt; { saveBounds(); }); mainWindow.on('closed', () =&gt; { mainWindow = null; }); return mainWindow; }"><pre class="notranslate"><code class="notranslate">function createWindow() { var bounds = getBounds(); var options = { vibrancy: 'light', width: bounds.width, height: bounds.height, x: bounds.x, y: bounds.y, titleBarStyle: 'hidden' } mainWindow = new BrowserWindow(options); mainWindow.loadURL(viewFile); mainWindow.on('close', () =&gt; { saveBounds(); }); mainWindow.on('closed', () =&gt; { mainWindow = null; }); return mainWindow; } </code></pre></div> <p dir="auto">getBounds just loads the bounds from a json file.</p>
<ul dir="auto"> <li>Electron version: 1.4.13 (currently the latest)</li> <li>Operating system: OS X El Capitan (10.11.4)</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">When the web page reloads the vibrancy set on the <code class="notranslate">BrowserWindow</code> should remain active.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">When the web page reloads (either using <code class="notranslate">[Cmd+R]</code>, or in my case, due to Create React App) the vibrancy which was active prior to the reload is lost.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">If you use the sample code on the <a href="http://electron.atom.io/docs/tutorial/quick-start/#write-your-first-electron-app" rel="nofollow">Quick Start</a> page, and replace the <code class="notranslate">BrowserWindow</code> creation code with the following...</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// ... win = new BrowserWindow({ width: 800, height: 600, vibrancy: 'light' }); // ..."><pre class="notranslate"><span class="pl-c">// ...</span> <span class="pl-s1">win</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">,</span> <span class="pl-c1">vibrancy</span>: <span class="pl-s">'light'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// ...</span></pre></div> <p dir="auto">Then load up the app and press <code class="notranslate">[Cmd+R]</code> on your keyboard. The vibrancy is lost, and the page background goes back to white (web page default).</p>
1
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Riim/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Riim">@Riim</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.x.x</li> </ul> <h3 dir="auto">Options</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="loaders: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel', query: { presets: ['es2015'] } } ]"><pre class="notranslate"><code class="notranslate">loaders: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel', query: { presets: ['es2015'] } } ] </code></pre></div> <h3 dir="auto">Input code</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let Component = createClass({ setTimeout(cb, delay) { let id = nextUID(); let timeoutId = setTimeout(() =&gt; { delete this._disposables[id]; cb.call(this); }, delay); let _clearTimeout = () =&gt; { if (this._disposables[id]) { clearTimeout(timeoutId); delete this._disposables[id]; } }; let timeout = this._disposables[id] = { clear: _clearTimeout, dispose: _clearTimeout }; return timeout; } });"><pre class="notranslate"><code class="notranslate">let Component = createClass({ setTimeout(cb, delay) { let id = nextUID(); let timeoutId = setTimeout(() =&gt; { delete this._disposables[id]; cb.call(this); }, delay); let _clearTimeout = () =&gt; { if (this._disposables[id]) { clearTimeout(timeoutId); delete this._disposables[id]; } }; let timeout = this._disposables[id] = { clear: _clearTimeout, dispose: _clearTimeout }; return timeout; } }); </code></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">Output code in babel5:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Component = createClass({ setTimeout: (function (_setTimeout) { function setTimeout(_x2, _x3) { return _setTimeout.apply(this, arguments); } setTimeout.toString = function () { return _setTimeout.toString(); }; return setTimeout; })(function (cb, delay) { var _this4 = this; var id = nextUID(); var timeoutId = setTimeout(function () { delete _this4._disposables[id]; cb.call(_this4); }, delay); var _clearTimeout = function _clearTimeout() { if (_this4._disposables[id]) { clearTimeout(timeoutId); delete _this4._disposables[id]; } }; var timeout = this._disposables[id] = { clear: _clearTimeout, dispose: _clearTimeout }; return timeout; }) });"><pre class="notranslate"><code class="notranslate">var Component = createClass({ setTimeout: (function (_setTimeout) { function setTimeout(_x2, _x3) { return _setTimeout.apply(this, arguments); } setTimeout.toString = function () { return _setTimeout.toString(); }; return setTimeout; })(function (cb, delay) { var _this4 = this; var id = nextUID(); var timeoutId = setTimeout(function () { delete _this4._disposables[id]; cb.call(_this4); }, delay); var _clearTimeout = function _clearTimeout() { if (_this4._disposables[id]) { clearTimeout(timeoutId); delete _this4._disposables[id]; } }; var timeout = this._disposables[id] = { clear: _clearTimeout, dispose: _clearTimeout }; return timeout; }) }); </code></pre></div> <p dir="auto">Output code in babel6:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var _this4 = this; var Component = createClass({ setTimeout: (function (_setTimeout) { function setTimeout(_x2, _x3) { return _setTimeout.apply(this, arguments); } setTimeout.toString = function () { return _setTimeout.toString(); }; return setTimeout; })(function (cb, delay) { var id = nextUID(); var timeoutId = setTimeout(function () { delete _this4._disposables[id]; cb.call(_this4); }, delay); var _clearTimeout = function _clearTimeout() { if (_this4._disposables[id]) { clearTimeout(timeoutId); delete _this4._disposables[id]; } }; var timeout = this._disposables[id] = { clear: _clearTimeout, dispose: _clearTimeout }; return timeout; }) });"><pre class="notranslate"><code class="notranslate">var _this4 = this; var Component = createClass({ setTimeout: (function (_setTimeout) { function setTimeout(_x2, _x3) { return _setTimeout.apply(this, arguments); } setTimeout.toString = function () { return _setTimeout.toString(); }; return setTimeout; })(function (cb, delay) { var id = nextUID(); var timeoutId = setTimeout(function () { delete _this4._disposables[id]; cb.call(_this4); }, delay); var _clearTimeout = function _clearTimeout() { if (_this4._disposables[id]) { clearTimeout(timeoutId); delete _this4._disposables[id]; } }; var timeout = this._disposables[id] = { clear: _clearTimeout, dispose: _clearTimeout }; return timeout; }) }); </code></pre></div>
<p dir="auto">It fails with <code class="notranslate">"&lt;name&gt;" is read-only</code>.</p> <p dir="auto">Sample code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A { b() { const b = 1; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">A</span> <span class="pl-kos">{</span> <span class="pl-en">b</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">b</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div>
0
<p dir="auto">Let's say we have two pages: PageA, PageB, and they have pageA.js and pageB.js. Both of them depdends on a common bunch of stuffs, which can be packed into a file called "common.js".<br> pageA.js:<br> <code class="notranslate">require(['common', 'someOtherThingsANeeds'], function(){//do sth.})</code><br> pageB.js:<br> <code class="notranslate">require(['common', 'someOtherThingsBNeeds'], function(){//do sth.})</code></p> <p dir="auto">I want to load chunks when the page runs, so I use a config like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" new CommonsChunkPlugin({ name: &quot;pageA&quot;, async: true, }), new CommonsChunkPlugin({ name: &quot;pageB&quot;, async: true, })"><pre class="notranslate"><code class="notranslate"> new CommonsChunkPlugin({ name: "pageA", async: true, }), new CommonsChunkPlugin({ name: "pageB", async: true, }) </code></pre></div> <p dir="auto">But it comes out that both chunks of pageA and pageB have the same content of module "common", which are duplicated and should be extracted to a single module called "common"</p> <p dir="auto">In <a href="https://github.com/webpack/webpack/tree/master/examples/multiple-commons-chunks">this</a> example, we can just specify something like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" new CommonsChunkPlugin({ name: &quot;commons.js&quot;, chunks: [&quot;pageA&quot;, &quot;pageB&quot;, &quot;admin-commons.js&quot;], minChunks: 2 }),"><pre class="notranslate"><code class="notranslate"> new CommonsChunkPlugin({ name: "commons.js", chunks: ["pageA", "pageB", "admin-commons.js"], minChunks: 2 }), </code></pre></div> <p dir="auto">However, I have to declare the reference of "common.js" in the html file. In addition, I can't control when my "common.js" should be loaded by js. And I can't control my dependencies in my js only. I have to remember to write it and I have to ordering the declarations in an old way.</p> <p dir="auto">In r.js of require.js, there's such a config that we can customize which of the modules should be seperated into individual ones, like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="modules:[ { name:&quot;common&quot;, include:[ &quot;allThingsCommonNeeds&quot; ] }, { name:&quot;pageA&quot;, include:[ &quot;blabla ], exclude:[&quot;common&quot;] }]"><pre class="notranslate"><code class="notranslate">modules:[ { name:"common", include:[ "allThingsCommonNeeds" ] }, { name:"pageA", include:[ "blabla ], exclude:["common"] }] </code></pre></div> <p dir="auto">So how could I achieve this by webpack? Do you guys have any suggestions or ideas? Thank you very much.</p>
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">Webpack 5 persistent cache + EnvironmentPlugin: environment variables changing doesn't affect cache.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <ul dir="auto"> <li>make webpack config with persistent cache and EnvironmentPlugin</li> <li>build code, for example, with env variable <code class="notranslate">TEST_VAR=1</code>, output code will contain value <code class="notranslate">1</code></li> <li>next build with <code class="notranslate">TEST_VAR=2</code>, output code will still contain value <code class="notranslate">1</code></li> </ul> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Environment variable change will affect output code.</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5<br> Node.js version: 12<br> Operating System: macOS</p>
0
<p dir="auto">When you clone an Object3D object that contains animation, the newly created object cannot be displayed in the scene.</p>
<p dir="auto">Skinned material need their own geometry to work. This is because the material deforms the geometry, so if you share the same geometry between two meshes with deformation, things are going to get weird (at least that's how I understand it).</p> <p dir="auto">Now the problem is, if you load a mesh from a FBX or something else and it contains at some point a skinned mesh, and you need multiple instances of it, here's what happens:</p> <ul dir="auto"> <li>You call <code class="notranslate">clone();</code> on the mesh to generate your new instances</li> <li>The <code class="notranslate">clone</code> function doesn't generate a new geometry, so both models share geometry, and things gets bad (the mesh doesn't appear at all).</li> </ul> <p dir="auto">Here's a code sample: I was able to replicate this problem in the <code class="notranslate">webgl_loader_fbx.html</code> demo with a simple modification: Just clone the mesh once loaded before using it, and you'll see that the cloned version of it doesn't work:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="loader.load( 'models/fbx/xsi_man_skinning.fbx', function( originalObject ) { // Using a clone of the mesh, it won't work var object = originalObject.clone(); object.mixer = new THREE.AnimationMixer( object ); mixers.push( object.mixer ); var action = object.mixer.clipAction( object.animations[ 0 ] ); action.play(); scene.add( object ); }, onProgress, onError );"><pre class="notranslate"><span class="pl-s1">loader</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">(</span> <span class="pl-s">'models/fbx/xsi_man_skinning.fbx'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span> <span class="pl-s1">originalObject</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Using a clone of the mesh, it won't work</span> <span class="pl-k">var</span> <span class="pl-s1">object</span> <span class="pl-c1">=</span> <span class="pl-s1">originalObject</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-s1">object</span><span class="pl-kos">.</span><span class="pl-c1">mixer</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">AnimationMixer</span><span class="pl-kos">(</span> <span class="pl-s1">object</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">mixers</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span> <span class="pl-s1">object</span><span class="pl-kos">.</span><span class="pl-c1">mixer</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">action</span> <span class="pl-c1">=</span> <span class="pl-s1">object</span><span class="pl-kos">.</span><span class="pl-c1">mixer</span><span class="pl-kos">.</span><span class="pl-en">clipAction</span><span class="pl-kos">(</span> <span class="pl-s1">object</span><span class="pl-kos">.</span><span class="pl-c1">animations</span><span class="pl-kos">[</span> <span class="pl-c1">0</span> <span class="pl-kos">]</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">action</span><span class="pl-kos">.</span><span class="pl-en">play</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">scene</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span> <span class="pl-s1">object</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">onProgress</span><span class="pl-kos">,</span> <span class="pl-s1">onError</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Is there a way to fix this behaviour? Like a deep clone function that also recreates geometries?</p> <p dir="auto">If not, should I just write a function that recursively recreates all the meshes in my object, regenerating their geometry? Or is it a bad idea?</p>
1
<p dir="auto">if you load a gltf model with some skinned animation and then try to clone that mesh - you will find yourself in a bit of a pickle!</p> <p dir="auto">Skinned geometry loaded with GLTF has no "bones" property, which is expected by "SkinnedMesh", see:<br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/mrdoob/three.js/blob/17264b950a70d7c9db097c03797b6be77adf94b3/src/objects/SkinnedMesh.js#L38-L47">three.js/src/objects/SkinnedMesh.js</a> </p> <p class="mb-0 color-fg-muted"> Lines 38 to 47 in <a data-pjax="true" class="commit-tease-sha" href="/mrdoob/three.js/commit/17264b950a70d7c9db097c03797b6be77adf94b3">17264b9</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="L38" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="38"></td> <td id="LC38" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">initBones</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> <tr class="border-0"> <td id="L39" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="39"></td> <td id="LC39" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L40" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="40"></td> <td id="LC40" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">var</span> <span class="pl-s1">bones</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">bone</span><span class="pl-kos">,</span> <span class="pl-s1">gbone</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L41" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="41"></td> <td id="LC41" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">var</span> <span class="pl-s1">i</span><span class="pl-kos">,</span> <span class="pl-s1">il</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L42" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="42"></td> <td id="LC42" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L43" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="43"></td> <td id="LC43" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">geometry</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">geometry</span><span class="pl-kos">.</span><span class="pl-c1">bones</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> <tr class="border-0"> <td id="L44" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="44"></td> <td id="LC44" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L45" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="45"></td> <td id="LC45" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">// first, create array of 'Bone' objects from geometry data</span> </td> </tr> <tr class="border-0"> <td id="L46" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="46"></td> <td id="LC46" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L47" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="47"></td> <td id="LC47" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> <span class="pl-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">geometry</span><span class="pl-kos">.</span><span class="pl-c1">bones</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">&lt;</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> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">so you'll end up with a skinned mesh, alright, but your character will have no spine! ..or any other bones for that matter. From my experience - the mesh will not render at all as a result.</p>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">GLTF2 models that are clones do not displayed correctly. This is for a number of reasons</p> <ul dir="auto"> <li>the onBeforeRender callback is not copied</li> <li>GLTFShader is not cloned across</li> <li>SkinnedModel skeleton is reinitialised to 0 bones and the source skinnedmodel skeleton is not cloned</li> </ul> <p dir="auto"><a href="http://jsfiddle.net/mn768h35/" rel="nofollow">http://jsfiddle.net/mn768h35/</a></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" checked=""> r85</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
1
<p dir="auto">Not certain if this is a bug or defined behaviour (but then the error message is not clear in any case).</p> <p dir="auto">In 0.13.1:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [28]: df = pd.DataFrame(np.random.randn(9).reshape(3,3), index=[0.1,0.2,0.2], columns=['a','b','c']) In [29]: df Out[29]: a b c 0.1 1.711117 1.218853 -1.322363 0.2 0.956266 0.230374 -1.005935 0.2 -0.137729 -0.993931 -0.902793 In [30]: df.ix[0.2,'a'] Out[30]: array([ 0.95626607, -0.13772877]) In [31]: df.ix[0.2] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ... ValueError: Length mismatch: Expected axis has 0 elements, new values have 2 ele ments"><pre class="notranslate"><code class="notranslate">In [28]: df = pd.DataFrame(np.random.randn(9).reshape(3,3), index=[0.1,0.2,0.2], columns=['a','b','c']) In [29]: df Out[29]: a b c 0.1 1.711117 1.218853 -1.322363 0.2 0.956266 0.230374 -1.005935 0.2 -0.137729 -0.993931 -0.902793 In [30]: df.ix[0.2,'a'] Out[30]: array([ 0.95626607, -0.13772877]) In [31]: df.ix[0.2] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ... ValueError: Length mismatch: Expected axis has 0 elements, new values have 2 ele ments </code></pre></div> <p dir="auto">In master, both (<code class="notranslate">df.loc[0.2]</code> and <code class="notranslate">df.loc[0.2, 'a']</code>) give this error message. Wile for integer index, this works.</p>
<p dir="auto">Series.unique returns an numpy array but np.unique(series) returns a series. Not sure if it is intentional but it might be better to keep both the calls consistent.</p> <p dir="auto">In [173]: a[:10]<br> Out[173]:<br> 0 4<br> 1 210<br> 2 210<br> 3 210<br> 4 3197<br> 5 3197<br> 6 3197<br> 7 3457<br> 8 3713<br> 9 3741</p> <p dir="auto">In [174]: a[:10].unique()<br> Out[174]: array([ 4, 210, 3197, 3457, 3713, 3741])</p> <p dir="auto">In [176]: np.unique(a[:10])<br> Out[176]:<br> 0 4<br> 1 210<br> 4 3197<br> 7 3457<br> 8 3713<br> 9 3741</p>
0
<p dir="auto">This code:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type A end Base.convert{F}(::Type{A}, x::F, v::Union{F,Vector{F}} = one(F)) = A()"><pre class="notranslate">type A <span class="pl-k">end</span> Base<span class="pl-k">.</span><span class="pl-en">convert</span><span class="pl-c1">{F}</span>(<span class="pl-k">::</span><span class="pl-c1">Type{A}</span>, x<span class="pl-k">::</span><span class="pl-c1">F</span>, v<span class="pl-k">::</span><span class="pl-c1">Union{F,Vector{F}}</span> <span class="pl-k">=</span> <span class="pl-en">one</span>(F)) <span class="pl-k">=</span> <span class="pl-c1">A</span>()</pre></div> <p dir="auto">on Julia v0.4.3 gives</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; convert(A, 0.1) A() julia&gt; convert(A, 0.1, 0.2) A() julia&gt; convert(A, 0.1, [0.2]) ERROR: MethodError: `convert` has no method matching convert(::Type{A}, ::Float64, ::Array{Float64,1}) This may have arisen from a call to the constructor A(...), since type constructors fall back to convert methods. Closest candidates are: convert{F}(::Type{A}, ::F) convert{F}(::Type{A}, ::F, ::Union{Array{F,1},F}) call{T}(::Type{T}, ::Any) ..."><pre class="notranslate"><code class="notranslate">julia&gt; convert(A, 0.1) A() julia&gt; convert(A, 0.1, 0.2) A() julia&gt; convert(A, 0.1, [0.2]) ERROR: MethodError: `convert` has no method matching convert(::Type{A}, ::Float64, ::Array{Float64,1}) This may have arisen from a call to the constructor A(...), since type constructors fall back to convert methods. Closest candidates are: convert{F}(::Type{A}, ::F) convert{F}(::Type{A}, ::F, ::Union{Array{F,1},F}) call{T}(::Type{T}, ::Any) ... </code></pre></div> <p dir="auto">I would expect that the last call also works. If I define <code class="notranslate">convert()</code>, where <code class="notranslate">F</code> is replaced by <code class="notranslate">Float64</code>, it works.</p> <p dir="auto">On v0.5 from the juliabox.org</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; convert(A, 0.1) A(Error showing value of type A: ERROR: MethodError: `one` has no method matching one(::Type{A}) [inlined code] from ./none:1 in Type(Type{Pair{A,B}}, Symbol, A) at ./operators.jl:507 in show_default(Base.#show_default, IOContext{Base.Terminals.TTYTerminal}, Any) at ./show.jl:80 [inlined code] from ./show.jl:73 in showcompact(Base.#showcompact, Base.Terminals.TTYTerminal, A) at ./show.jl:1432 in writemime(Base.Multimedia.#writemime, Base.Terminals.TTYTerminal, MIME{symbol(&quot;text/plain&quot;)}, A) at ./replutil.jl:4 [inlined code] from ./expr.jl:8 in display(Base.Multimedia.#display, Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, MIME{symbol(&quot;text/plain&quot;)}, Any) at ./REPL.jl:114 [inlined code] from ./expr.jl:8 in display(Base.Multimedia.#display, Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, Any) at ./REPL.jl:117 [inlined code] from ./multimedia.jl:151 in display(Base.Multimedia.#display, Any) at ./multimedia.jl:163 in print_response(Base.REPL.#print_response, Base.Terminals.TTYTerminal, Any, Void, Bool, Bool, Void) at ./REPL.jl:134 in print_response(Base.REPL.#print_response, Base.REPL.LineEditREPL, Any, Void, Bool, Bool) at ./REPL.jl:121 in #18(Base.REPL.##18#19{Bool,Base.#parse_input_line,Base.REPL.LineEditREPL,Base.LineEdit.Prompt}, Base.LineEdit.MIState, Base.AbstractIOBuffer{Array{UInt8,1}}, Bool) at ./REPL.jl:626 in run_interface at ./LineEdit.jl:1611 in run_frontend at ./REPL.jl:859 in run_repl(Base.REPL.#run_repl, Base.REPL.LineEditREPL, Base.##479#480) at ./REPL.jl:167 in _start at ./client.jl:342 julia&gt; convert(A, 0.1, 0.1) A(Error showing value of type A: ERROR: MethodError: `one` has no method matching one(::Type{A}) [inlined code] from ./none:1 in Type(Type{Pair{A,B}}, Symbol, A) at ./operators.jl:507 in show_default(Base.#show_default, IOContext{Base.Terminals.TTYTerminal}, Any) at ./show.jl:80 [inlined code] from ./show.jl:73 in showcompact(Base.#showcompact, Base.Terminals.TTYTerminal, A) at ./show.jl:1432 in writemime(Base.Multimedia.#writemime, Base.Terminals.TTYTerminal, MIME{symbol(&quot;text/plain&quot;)}, A) at ./replutil.jl:4 [inlined code] from ./expr.jl:8 in display(Base.Multimedia.#display, Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, MIME{symbol(&quot;text/plain&quot;)}, Any) at ./REPL.jl:114 [inlined code] from ./expr.jl:8 in display(Base.Multimedia.#display, Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, Any) at ./REPL.jl:117 [inlined code] from ./multimedia.jl:151 in display(Base.Multimedia.#display, Any) at ./multimedia.jl:163 in print_response(Base.REPL.#print_response, Base.Terminals.TTYTerminal, Any, Void, Bool, Bool, Void) at ./REPL.jl:134 in print_response(Base.REPL.#print_response, Base.REPL.LineEditREPL, Any, Void, Bool, Bool) at ./REPL.jl:121 in #18(Base.REPL.##18#19{Bool,Base.#parse_input_line,Base.REPL.LineEditREPL,Base.LineEdit.Prompt}, Base.LineEdit.MIState, Base.AbstractIOBuffer{Array{UInt8,1}}, Bool) at ./REPL.jl:626 in run_interface at ./LineEdit.jl:1611 in run_frontend at ./REPL.jl:859 in run_repl(Base.REPL.#run_repl, Base.REPL.LineEditREPL, Base.##479#480) at ./REPL.jl:167 in _start at ./client.jl:342 julia&gt; convert(A, 0.1, [0.1]) ERROR: MethodError: `convert` has no method matching convert(::Type{A}, ::Float64, ::Array{Float64,1}) This may have arisen from a call to the constructor A(...), since type constructors fall back to convert methods. Closest candidates are: convert{F}(::Type{A}, ::F) convert{F}(::Type{A}, ::F, ::Union{Array{F,1},F}) (::Type{BoundsError})(::ANY, ::ANY) ... in eval at ./boot.jl:267 "><pre class="notranslate"><code class="notranslate">julia&gt; convert(A, 0.1) A(Error showing value of type A: ERROR: MethodError: `one` has no method matching one(::Type{A}) [inlined code] from ./none:1 in Type(Type{Pair{A,B}}, Symbol, A) at ./operators.jl:507 in show_default(Base.#show_default, IOContext{Base.Terminals.TTYTerminal}, Any) at ./show.jl:80 [inlined code] from ./show.jl:73 in showcompact(Base.#showcompact, Base.Terminals.TTYTerminal, A) at ./show.jl:1432 in writemime(Base.Multimedia.#writemime, Base.Terminals.TTYTerminal, MIME{symbol("text/plain")}, A) at ./replutil.jl:4 [inlined code] from ./expr.jl:8 in display(Base.Multimedia.#display, Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, MIME{symbol("text/plain")}, Any) at ./REPL.jl:114 [inlined code] from ./expr.jl:8 in display(Base.Multimedia.#display, Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, Any) at ./REPL.jl:117 [inlined code] from ./multimedia.jl:151 in display(Base.Multimedia.#display, Any) at ./multimedia.jl:163 in print_response(Base.REPL.#print_response, Base.Terminals.TTYTerminal, Any, Void, Bool, Bool, Void) at ./REPL.jl:134 in print_response(Base.REPL.#print_response, Base.REPL.LineEditREPL, Any, Void, Bool, Bool) at ./REPL.jl:121 in #18(Base.REPL.##18#19{Bool,Base.#parse_input_line,Base.REPL.LineEditREPL,Base.LineEdit.Prompt}, Base.LineEdit.MIState, Base.AbstractIOBuffer{Array{UInt8,1}}, Bool) at ./REPL.jl:626 in run_interface at ./LineEdit.jl:1611 in run_frontend at ./REPL.jl:859 in run_repl(Base.REPL.#run_repl, Base.REPL.LineEditREPL, Base.##479#480) at ./REPL.jl:167 in _start at ./client.jl:342 julia&gt; convert(A, 0.1, 0.1) A(Error showing value of type A: ERROR: MethodError: `one` has no method matching one(::Type{A}) [inlined code] from ./none:1 in Type(Type{Pair{A,B}}, Symbol, A) at ./operators.jl:507 in show_default(Base.#show_default, IOContext{Base.Terminals.TTYTerminal}, Any) at ./show.jl:80 [inlined code] from ./show.jl:73 in showcompact(Base.#showcompact, Base.Terminals.TTYTerminal, A) at ./show.jl:1432 in writemime(Base.Multimedia.#writemime, Base.Terminals.TTYTerminal, MIME{symbol("text/plain")}, A) at ./replutil.jl:4 [inlined code] from ./expr.jl:8 in display(Base.Multimedia.#display, Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, MIME{symbol("text/plain")}, Any) at ./REPL.jl:114 [inlined code] from ./expr.jl:8 in display(Base.Multimedia.#display, Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, Any) at ./REPL.jl:117 [inlined code] from ./multimedia.jl:151 in display(Base.Multimedia.#display, Any) at ./multimedia.jl:163 in print_response(Base.REPL.#print_response, Base.Terminals.TTYTerminal, Any, Void, Bool, Bool, Void) at ./REPL.jl:134 in print_response(Base.REPL.#print_response, Base.REPL.LineEditREPL, Any, Void, Bool, Bool) at ./REPL.jl:121 in #18(Base.REPL.##18#19{Bool,Base.#parse_input_line,Base.REPL.LineEditREPL,Base.LineEdit.Prompt}, Base.LineEdit.MIState, Base.AbstractIOBuffer{Array{UInt8,1}}, Bool) at ./REPL.jl:626 in run_interface at ./LineEdit.jl:1611 in run_frontend at ./REPL.jl:859 in run_repl(Base.REPL.#run_repl, Base.REPL.LineEditREPL, Base.##479#480) at ./REPL.jl:167 in _start at ./client.jl:342 julia&gt; convert(A, 0.1, [0.1]) ERROR: MethodError: `convert` has no method matching convert(::Type{A}, ::Float64, ::Array{Float64,1}) This may have arisen from a call to the constructor A(...), since type constructors fall back to convert methods. Closest candidates are: convert{F}(::Type{A}, ::F) convert{F}(::Type{A}, ::F, ::Union{Array{F,1},F}) (::Type{BoundsError})(::ANY, ::ANY) ... in eval at ./boot.jl:267 </code></pre></div>
<p dir="auto">This works:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; f(x::Int; y::Union(Symbol, Int)=:foo) = println(y) # methods for generic function f f(x::Int64) at none:1 julia&gt; f(1) foo julia&gt; f(1, y=:bar) bar julia&gt; f(1, y=3) 3"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-en">f</span>(x<span class="pl-k">::</span><span class="pl-c1">Int</span>; y<span class="pl-k">::</span><span class="pl-c1">Union(Symbol, Int)</span><span class="pl-k">=</span><span class="pl-c1">:foo</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(y) <span class="pl-c"><span class="pl-c">#</span> methods for generic function f</span> <span class="pl-c1">f</span>(x<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at none<span class="pl-k">:</span><span class="pl-c1">1</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">f</span>(<span class="pl-c1">1</span>) foo julia<span class="pl-k">&gt;</span> <span class="pl-c1">f</span>(<span class="pl-c1">1</span>, y<span class="pl-k">=</span><span class="pl-c1">:bar</span>) bar julia<span class="pl-k">&gt;</span> <span class="pl-c1">f</span>(<span class="pl-c1">1</span>, y<span class="pl-k">=</span><span class="pl-c1">3</span>) <span class="pl-c1">3</span></pre></div> <p dir="auto">A parametric version instead fails with a cryptic message:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; g{T}(x::T; y::Union(Symbol, T)=:foo) = println(y) # methods for generic function g g{T}(x::T) at none:1 julia&gt; g(1) ERROR: no method g#g2(Symbol,Int64) julia&gt; g(1, y=:bar) ERROR: no method g#g2(Symbol,Int64) julia&gt; g(1, y=3) 3"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-en">g</span><span class="pl-c1">{T}</span>(x<span class="pl-k">::</span><span class="pl-c1">T</span>; y<span class="pl-k">::</span><span class="pl-c1">Union(Symbol, T)</span><span class="pl-k">=</span><span class="pl-c1">:foo</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(y) <span class="pl-c"><span class="pl-c">#</span> methods for generic function g</span> <span class="pl-c1">g</span><span class="pl-c1">{T}</span>(x<span class="pl-k">::</span><span class="pl-c1">T</span>) at none<span class="pl-k">:</span><span class="pl-c1">1</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">g</span>(<span class="pl-c1">1</span>) ERROR<span class="pl-k">:</span> no method g<span class="pl-c"><span class="pl-c">#</span>g2(Symbol,Int64)</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">g</span>(<span class="pl-c1">1</span>, y<span class="pl-k">=</span><span class="pl-c1">:bar</span>) ERROR<span class="pl-k">:</span> no method g<span class="pl-c"><span class="pl-c">#</span>g2(Symbol,Int64)</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">g</span>(<span class="pl-c1">1</span>, y<span class="pl-k">=</span><span class="pl-c1">3</span>) <span class="pl-c1">3</span></pre></div> <p dir="auto">Possibly related, this should be an error but less cryptic and preferrably when the function is defined rather than used.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; h(x::Int; y::Int=0.0) = println(y) # methods for generic function h h(x::Int64) at none:1 julia&gt; h(1) ERROR: no method h#g3(Float64,Int64)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-en">h</span>(x<span class="pl-k">::</span><span class="pl-c1">Int</span>; y<span class="pl-k">::</span><span class="pl-c1">Int</span><span class="pl-k">=</span><span class="pl-c1">0.0</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(y) <span class="pl-c"><span class="pl-c">#</span> methods for generic function h</span> <span class="pl-c1">h</span>(x<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at none<span class="pl-k">:</span><span class="pl-c1">1</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">h</span>(<span class="pl-c1">1</span>) ERROR<span class="pl-k">:</span> no method h<span class="pl-c"><span class="pl-c">#</span>g3(Float64,Int64)</span></pre></div>
1
<p dir="auto">I know there are a lot of threads out there but I cannot found an "official" solution to this question.</p> <p dir="auto">What is the best way of removing the padding between the columns, and the container?</p> <p dir="auto">Sorry if the question already have an answer.</p>
<p dir="auto">I have tried to make my layout <strong>100%</strong>. And for that I didn't use any <code class="notranslate">&lt;div class ="container"&gt;</code>. Just started with <code class="notranslate">&lt;div class ="row"&gt;</code>.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-md-3&quot;&gt; &lt;div class=&quot;sectionLeft&quot;&gt; Sidebar Content &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-md-9&quot;&gt; Test content &lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-md-3</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">sectionLeft</span>"<span class="pl-kos">&gt;</span> Sidebar Content <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-md-9</span>"<span class="pl-kos">&gt;</span> Test content <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">but it showing <strong>horizontal scroll bar</strong>. I don't know why. But I saw that it may cause from <code class="notranslate">margin-left</code> and <code class="notranslate">margin-right</code> negative value.<br> But I am using Bootstrap v3.0.0 it should be fixed.</p> <p dir="auto">Please see my full code from <a href="http://bootply.com/81888" rel="nofollow">http://bootply.com/81888</a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/5d9c94e3dc891dfa866a1901863f1e50e2276d747796b42d4d1d7257770cdb25/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313039353030382f313137313037302f30353136666662362d323066622d313165332d383965312d3461396164353535366237622e6a7067"><img src="https://camo.githubusercontent.com/5d9c94e3dc891dfa866a1901863f1e50e2276d747796b42d4d1d7257770cdb25/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313039353030382f313137313037302f30353136666662362d323066622d313165332d383965312d3461396164353535366237622e6a7067" alt="screenshot" data-canonical-src="https://f.cloud.github.com/assets/1095008/1171070/0516ffb6-20fb-11e3-89e1-4a9ad5556b7b.jpg" style="max-width: 100%;"></a></p>
1
<p dir="auto">Per <a href="https://arxiv.org/abs/1502.01852" rel="nofollow">https://arxiv.org/abs/1502.01852</a> I'm giving the channel-wise <a href="http://pytorch.org/docs/stable/nn.html#torch.nn.PReLU" rel="nofollow">PReLUs</a> a try, as in:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nn.PReLU(num_parameters=num_channels)"><pre class="notranslate"><code class="notranslate">nn.PReLU(num_parameters=num_channels) </code></pre></div> <p dir="auto">When accidentally getting the <code class="notranslate">num_parameters</code> argument wrong it seems like we crash hard with an invalid <code class="notranslate">free</code> somewhere in native code.</p> <p dir="auto">Can we put some guards in place to not hard-crash here and maybe even show the user a useful error message?</p> <p dir="auto">Here is the crash log, hope that helps:</p> <details> <summary>Backtrace</summary> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="*** Error in `python3': free(): invalid pointer: 0x00007fb5ee875d40 *** [179/1882] ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fb5ff54f7e5] /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7fb5ff55837a] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fb5ff55c53c] /usr/local/lib/python3.6/dist-packages/torch/_thnn/_THCUNN.cpython-36m-x86_64-linux-gnu.so(+0x2b492)[0x7fb5a6d96492] python3(_PyCFunction_FastCallKeywords+0x9e)[0x51e55e] python3[0x5789e9] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3(PyEval_EvalCodeEx+0x28c)[0x578f4c] python3[0x4f6b73] python3(PyObject_Call+0x3a)[0x4e2f0a] /usr/local/lib/python3.6/dist-packages/torch/_C.cpython-36m-x86_64-linux-gnu.so(_Z17THPFunction_applyP7_objectS0_+0x271)[0x7fb5ed37dac1] python3(_PyCFunction_FastCallKeywords+0x9e)[0x51e55e] python3[0x5789e9] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3[0x5799fd] python3[0x578acc] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3(_PyFunction_FastCallDict+0x133)[0x57a3e3] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3(_PyEval_EvalFrameDefault+0x1ab5)[0x5729e5] python3[0x57047f] python3(_PyFunction_FastCallDict+0x1da)[0x57a48a] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3[0x5333ee] python3(_PyObject_FastCallKeywords+0x10b)[0x4e2a2b] python3[0x578b75] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3(_PyFunction_FastCallDict+0x133)[0x57a3e3] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3(_PyEval_EvalFrameDefault+0x1ab5)[0x5729e5] python3[0x57047f] python3(_PyFunction_FastCallDict+0x1da)[0x57a48a] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3[0x5333ee] python3(_PyObject_FastCallKeywords+0x10b)[0x4e2a2b] python3[0x578b75] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3(_PyFunction_FastCallDict+0x133)[0x57a3e3] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3(_PyEval_EvalFrameDefault+0x1ab5)[0x5729e5] python3[0x57047f] python3(_PyFunction_FastCallDict+0x1da)[0x57a48a] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3[0x5333ee] python3(_PyObject_FastCallKeywords+0x10b)[0x4e2a2b] python3[0x578b75] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3[0x5799fd] python3[0x578acc] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3[0x5707ae] python3[0x579abb] python3[0x578acc] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3[0x57047f] python3(PyEval_EvalCode+0x23)[0x5701f3] python3[0x56e0ee]"><pre class="notranslate"><code class="notranslate">*** Error in `python3': free(): invalid pointer: 0x00007fb5ee875d40 *** [179/1882] ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fb5ff54f7e5] /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7fb5ff55837a] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fb5ff55c53c] /usr/local/lib/python3.6/dist-packages/torch/_thnn/_THCUNN.cpython-36m-x86_64-linux-gnu.so(+0x2b492)[0x7fb5a6d96492] python3(_PyCFunction_FastCallKeywords+0x9e)[0x51e55e] python3[0x5789e9] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3(PyEval_EvalCodeEx+0x28c)[0x578f4c] python3[0x4f6b73] python3(PyObject_Call+0x3a)[0x4e2f0a] /usr/local/lib/python3.6/dist-packages/torch/_C.cpython-36m-x86_64-linux-gnu.so(_Z17THPFunction_applyP7_objectS0_+0x271)[0x7fb5ed37dac1] python3(_PyCFunction_FastCallKeywords+0x9e)[0x51e55e] python3[0x5789e9] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3[0x5799fd] python3[0x578acc] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3(_PyFunction_FastCallDict+0x133)[0x57a3e3] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3(_PyEval_EvalFrameDefault+0x1ab5)[0x5729e5] python3[0x57047f] python3(_PyFunction_FastCallDict+0x1da)[0x57a48a] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3[0x5333ee] python3(_PyObject_FastCallKeywords+0x10b)[0x4e2a2b] python3[0x578b75] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3(_PyFunction_FastCallDict+0x133)[0x57a3e3] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3(_PyEval_EvalFrameDefault+0x1ab5)[0x5729e5] python3[0x57047f] python3(_PyFunction_FastCallDict+0x1da)[0x57a48a] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3[0x5333ee] python3(_PyObject_FastCallKeywords+0x10b)[0x4e2a2b] python3[0x578b75] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3(_PyFunction_FastCallDict+0x133)[0x57a3e3] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3(_PyEval_EvalFrameDefault+0x1ab5)[0x5729e5] python3[0x57047f] python3(_PyFunction_FastCallDict+0x1da)[0x57a48a] python3(_PyObject_Call_Prepend+0x24c)[0x4e383c] python3(PyObject_Call+0x3a)[0x4e2f0a] python3[0x5333ee] python3(_PyObject_FastCallKeywords+0x10b)[0x4e2a2b] python3[0x578b75] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3[0x5799fd] python3[0x578acc] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3[0x5707ae] python3[0x579abb] python3[0x578acc] python3(_PyEval_EvalFrameDefault+0x3da)[0x57130a] python3[0x57047f] python3(PyEval_EvalCode+0x23)[0x5701f3] python3[0x56e0ee] </code></pre></div> </details> <h2 dir="auto">System Info</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PyTorch version: 0.3.1 Is debug build: No CUDA used to build PyTorch: 8.0.61 OS: Ubuntu 16.04.4 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 CMake version: version 3.5.1 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 8.0.61 GPU models and configuration: GPU 0: Tesla K80 Nvidia driver version: 384.66 cuDNN version: Probably one of the following: /usr/lib/x86_64-linux-gnu/libcudnn.so.6.0.21 /usr/lib/x86_64-linux-gnu/libcudnn_static_v6.a /usr/local/lib/python3.6/dist-packages/torch/lib/libcudnn-900fef33.so.7.0.5 Versions of relevant libraries: [pip3] numpy (1.14.2) [pip3] torch (0.3.1) [pip3] torchvision (0.2.0) [conda] Could not collect"><pre class="notranslate"><code class="notranslate">PyTorch version: 0.3.1 Is debug build: No CUDA used to build PyTorch: 8.0.61 OS: Ubuntu 16.04.4 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 CMake version: version 3.5.1 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 8.0.61 GPU models and configuration: GPU 0: Tesla K80 Nvidia driver version: 384.66 cuDNN version: Probably one of the following: /usr/lib/x86_64-linux-gnu/libcudnn.so.6.0.21 /usr/lib/x86_64-linux-gnu/libcudnn_static_v6.a /usr/local/lib/python3.6/dist-packages/torch/lib/libcudnn-900fef33.so.7.0.5 Versions of relevant libraries: [pip3] numpy (1.14.2) [pip3] torch (0.3.1) [pip3] torchvision (0.2.0) [conda] Could not collect </code></pre></div>
<p dir="auto">Previously, my desktop was using libtorch 1.2.0 release and everything worked.<br> After generating the exe, I wanted to take the notebook for on-site deployment. I installed libtorch on the notebook. At that time, it had been updated to 1.3.1 but reported the C4146 error. Even if I commented out everything in the main function, the error was still reported.<br> In the end, I had to re-download 1.2.0 on my laptop to resolve this issue.<br> I wonder if this problem is a bug?</p>
0
<ol dir="auto"> <li>What version of Go are you using (<code class="notranslate">go version</code>)?<br> 1.6</li> <li>What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?<br> linux amd64</li> <li>What did you do?<br> <a href="https://play.golang.org/p/1zJjQLBlMK" rel="nofollow">https://play.golang.org/p/1zJjQLBlMK</a></li> <li>What did you expect to see?<br> I want <code class="notranslate">float32(1e-45) == float32(math.SmallestNonzeroFloat32)</code> to be true</li> <li>What did you see instead?<br> I got <code class="notranslate">float32(1e-45) == 0</code> to be true, which is unexpected.<br> However <code class="notranslate">float32(1.1e-45) == float32(math.SmallestNonzeroFloat32)</code> is true, as expected.<br> I don't know whether there are other values that may be affected as well. I have not tried to find the faulty code.</li> </ol> <p dir="auto">I think that <code class="notranslate">fmt.{Print,Scan}</code> and <code class="notranslate">strconv.{Append,Format,Parse}Float</code> are correct; at least my manual testing showed that I could perform roundtrips from <code class="notranslate">math.SmallestNonzeroFloat32</code>, and some other manually-tested values.</p> <p dir="auto">But I believe that the compiler is doing the wrong thing, since <code class="notranslate">1e-45</code> is closer to <code class="notranslate">math.SmallestNonzeroFloat32</code> than it is to <code class="notranslate">0</code>. The spec says that we should "round to the nearest representable constant" and "rounding using IEEE 754 round-to-even rules" in the sections on constants and conversions, respectively.<br> <a href="https://golang.org/ref/spec#Constants" rel="nofollow">https://golang.org/ref/spec#Constants</a><br> <a href="https://golang.org/ref/spec#Conversions" rel="nofollow">https://golang.org/ref/spec#Conversions</a></p> <p dir="auto">FYI the reason this is affecting me is because I have written a Go code generator, for an IDL language similar to protobufs. My language supports generating Go constants and values. When I generate a constant representing <code class="notranslate">math.SmallestNonzeroFloat32</code>, I end up with <code class="notranslate">float32(1e-45)</code> in my generated code, but that is broken since it is interpreted as <code class="notranslate">float32(0)</code> by the Go compiler.</p> <p dir="auto">Note that this is a different problem from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="105901749" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/12576" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/12576/hovercard" href="https://github.com/golang/go/issues/12576">#12576</a>, which has examples where very small non-zero floating-point exact constants should be rounded to 0, and the question is whether to pick -0 or 0, and we've (now) picked 0.</p>
<p dir="auto">This is a follow-up to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="137069594" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/14553" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/14553/hovercard" href="https://github.com/golang/go/issues/14553">#14553</a>. In the special case of a math.Float number that is smaller than the smallest denormal, but that should be rounded up to the smallest denormal, rounding up doesn't happen for values x with <code class="notranslate">0.5 * 2**-149 (0.1000p-149) &lt; x &lt; 0.75 * 2**-149 (0.1100p-149)</code> for float32 (analogously for float64).</p> <p dir="auto">Since the compiler is using this code, for these numbers we get the wrong bit patterns when converting/rounding at compile-time (constant evaluation):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main import ( &quot;fmt&quot; &quot;math&quot; ) const p149 = 1.0 / (1 &lt;&lt; 149) // 1p-149 const ( m0000 = 0x0 / 16.0 * p149 // = 0.0000p-149 m1000 = 0x8 / 16.0 * p149 // = 0.1000p-149 m1001 = 0x9 / 16.0 * p149 // = 0.1001p-149 m1011 = 0xb / 16.0 * p149 // = 0.1011p-149 m1100 = 0xc / 16.0 * p149 // = 0.1100p-149 ) func main() { print(float32(m0000), f32(m0000)) print(float32(m1000), f32(m1000)) print(float32(m1001), f32(m1001)) print(float32(m1011), f32(m1011)) print(float32(m1100), f32(m1100)) } func f32(x float64) float32 { return float32(x) } func print(a, b float32) { fmt.Printf(&quot;%016x %016x\n&quot;, math.Float32bits(a), math.Float32bits(b)) }"><pre class="notranslate"><code class="notranslate">package main import ( "fmt" "math" ) const p149 = 1.0 / (1 &lt;&lt; 149) // 1p-149 const ( m0000 = 0x0 / 16.0 * p149 // = 0.0000p-149 m1000 = 0x8 / 16.0 * p149 // = 0.1000p-149 m1001 = 0x9 / 16.0 * p149 // = 0.1001p-149 m1011 = 0xb / 16.0 * p149 // = 0.1011p-149 m1100 = 0xc / 16.0 * p149 // = 0.1100p-149 ) func main() { print(float32(m0000), f32(m0000)) print(float32(m1000), f32(m1000)) print(float32(m1001), f32(m1001)) print(float32(m1011), f32(m1011)) print(float32(m1100), f32(m1100)) } func f32(x float64) float32 { return float32(x) } func print(a, b float32) { fmt.Printf("%016x %016x\n", math.Float32bits(a), math.Float32bits(b)) } </code></pre></div> <p dir="auto">produces</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000001 0000000000000000 0000000000000001 0000000000000001 0000000000000001"><pre class="notranslate"><code class="notranslate">0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000001 0000000000000000 0000000000000001 0000000000000001 0000000000000001 </code></pre></div> <p dir="auto">(the left column is incorrect).</p> <p dir="auto">The problem in this case seems to be with rounding per se, and not so much the Float32/64 conversions.</p>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/sharding-sphere/sharding-sphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="http://shardingsphere.io/document/current/en/overview/" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">3.1.0</p> <h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3> <p dir="auto">Sharding-JDBC</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">support dynamic parameter on INSERT ON DUPLICATE KEY UPDATE.<br> for example (mybatis mapper):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSERT INTO BlackMember (memberId, activeId, passiveId, project, platform, source) VALUE (#{memberId}, #{activeId}, #{passiveId},#{project}, #{platform}, #{source}) ON DUPLICATE KEY UPDATE shieldStatus = #{shieldStatus}"><pre class="notranslate"><code class="notranslate">INSERT INTO BlackMember (memberId, activeId, passiveId, project, platform, source) VALUE (#{memberId}, #{activeId}, #{passiveId},#{project}, #{platform}, #{source}) ON DUPLICATE KEY UPDATE shieldStatus = #{shieldStatus} </code></pre></div> <h3 dir="auto">Actual behavior</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Cause: java.sql.SQLException: No value specified for parameter 7"><pre class="notranslate"><code class="notranslate">Cause: java.sql.SQLException: No value specified for parameter 7 </code></pre></div> <h3 dir="auto">Reason analyze (If you can)</h3> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> <h3 dir="auto">PS</h3> <p dir="auto">Although I can find some explanation about why this feature should not be supported <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="345640477" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/1066" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/1066/hovercard" href="https://github.com/apache/shardingsphere/issues/1066">#1066</a> , it's not convictive enough I think. As the official doc says sharding-jdbc is 100% compatible for single-node routing SQL, it will not be true if this issue exists, and I find it's really hard to migrate my projects from Mycat to the Sharding-Sphere since it is common usage in my projects.<br> So, could you please reconsider the possibility to support this feature.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1615053/51166056-322a9000-18dd-11e9-91dc-30ba06085892.png"><img src="https://user-images.githubusercontent.com/1615053/51166056-322a9000-18dd-11e9-91dc-30ba06085892.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">4.0.0-RC1<br> jOOQ 3.11.11</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> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="select dest_regional_fee_1.LOGNO from dest_regional_fee_1 where dest_regional_fee_1.ID = ?"><pre class="notranslate"><code class="notranslate">select dest_regional_fee_1.LOGNO from dest_regional_fee_1 where dest_regional_fee_1.ID = ? </code></pre></div> <h3 dir="auto">Actual behavior</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="select dest_regional_fee.LOGNO from dest_regional_fee_1 where dest_regional_fee_1.ID = ?"><pre class="notranslate"><code class="notranslate">select dest_regional_fee.LOGNO from dest_regional_fee_1 where dest_regional_fee_1.ID = ? </code></pre></div> <h3 dir="auto">Reason analyze (If you can)</h3> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-08-12 23:25:12.950 INFO 2833 --- [ main] ShardingSphere-SQL : Logic SQL: select dest_regional_fee.LOGNO from dest_regional_fee where dest_regional_fee.ID = ? 2019-08-12 23:25:12.952 INFO 2833 --- [ main] ShardingSphere-SQL : Actual SQL: ds0 ::: select dest_regional_fee.LOGNO from dest_regional_fee_1 where dest_regional_fee_1.ID = ? ::: [100]"><pre class="notranslate"><code class="notranslate">2019-08-12 23:25:12.950 INFO 2833 --- [ main] ShardingSphere-SQL : Logic SQL: select dest_regional_fee.LOGNO from dest_regional_fee where dest_regional_fee.ID = ? 2019-08-12 23:25:12.952 INFO 2833 --- [ main] ShardingSphere-SQL : Actual SQL: ds0 ::: select dest_regional_fee.LOGNO from dest_regional_fee_1 where dest_regional_fee_1.ID = ? ::: [100] </code></pre></div>
0
<p dir="auto">Right now Scikit-Learn provides several <a href="http://scikit-learn.org/stable/modules/naive_bayes.html" rel="nofollow">Naive Bayes models</a>.</p> <ul dir="auto"> <li><code class="notranslate">GaussianNB</code>: For continuous features that are assumed to be Gaussian distributed.</li> <li><code class="notranslate">MultinomialNB</code>: For discreet features that are multinomially distributed, e.g. counts of words of occurrences</li> <li><code class="notranslate">BernoulliNB</code>: For indicator features (True/False) which are assumed to be Bernoulli distributed</li> </ul> <p dir="auto">The obvious thing that is missing is a variant for categorical features like color for instance. It is of course possible to use dummy encoding to transform a categorical feature into indicator features for each category but this breaks the categorical correlation. If a car is red, it obviously isn't green and yellow.</p> <p dir="auto">So long story short, are there any plans to add a <code class="notranslate">CategoricalNB</code>? Would you like to see a PR? Or am I missing here something obvious?</p>
<p dir="auto">Random Forest is a popular classification technique; recent benchmarks [1][2] have shown that performance of sklearn's RandomForestClassifier is inferior to competing software implementations.</p> <p dir="auto">The performance penalty most likely stems from the underlying tree building procedure, however, changes here require considerable effort. These changes include:</p> <ul dir="auto"> <li>Better representations for data set partitions (currently we use a bit mask)</li> </ul> <p dir="auto">Some low-hanging fruits may be found in the forest module itself:</p> <ul dir="auto"> <li>Sampling w/ replacement requires memory copies and re-computation of X_argsorted -&gt; this can be mitigated by introducing sample weights (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2706412" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/522" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/522/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/522">#522</a>)</li> </ul> <p dir="auto">[1] <a href="http://continuum.io/blog/wiserf-use-cases-and-benchmarks" rel="nofollow">http://continuum.io/blog/wiserf-use-cases-and-benchmarks</a><br> [2] <a href="http://wise.io/wiserf.html" rel="nofollow">http://wise.io/wiserf.html</a></p>
0
<p dir="auto">penguins = sns.load_dataset("penguins")<br> sns.displot(data=penguins, x="flipper_length_mm", col='species', facet_kws=dict(sharex=False, sharey=False))</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3391614/218545874-ff5a5360-3310-4cc7-b410-878fa7e266a6.png"><img src="https://user-images.githubusercontent.com/3391614/218545874-ff5a5360-3310-4cc7-b410-878fa7e266a6.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The x-axis should not be shared.</p>
<p dir="auto">I am trying to use <code class="notranslate">displot</code> to plot distributions of different variables in the same figure. I might be using <code class="notranslate">displot</code> incorrectly, but it seems to me that the <code class="notranslate">sharex</code> option passed to <code class="notranslate">facet_kws</code> is not working correctly (while <code class="notranslate">sharey</code> does work as expected).</p> <p dir="auto">Simple code snippet to reproduce:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd import seaborn as sns from matplotlib import pyplot as plt titanic = sns.load_dataset(&quot;titanic&quot;) df = pd.melt(titanic, id_vars=[&quot;sex&quot;, &quot;class&quot;], value_vars=[&quot;fare&quot;, &quot;age&quot;]) sns.displot( data=df, x=&quot;value&quot;, col=&quot;variable&quot;, hue=&quot;sex&quot;, facet_kws={&quot;sharex&quot;: False, &quot;sharey&quot;: False}, ) plt.savefig(&quot;test.png&quot;)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">titanic</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"titanic"</span>) <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">melt</span>(<span class="pl-s1">titanic</span>, <span class="pl-s1">id_vars</span><span class="pl-c1">=</span>[<span class="pl-s">"sex"</span>, <span class="pl-s">"class"</span>], <span class="pl-s1">value_vars</span><span class="pl-c1">=</span>[<span class="pl-s">"fare"</span>, <span class="pl-s">"age"</span>]) <span class="pl-s1">sns</span>.<span class="pl-en">displot</span>( <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">df</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">"value"</span>, <span class="pl-s1">col</span><span class="pl-c1">=</span><span class="pl-s">"variable"</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">"sex"</span>, <span class="pl-s1">facet_kws</span><span class="pl-c1">=</span>{<span class="pl-s">"sharex"</span>: <span class="pl-c1">False</span>, <span class="pl-s">"sharey"</span>: <span class="pl-c1">False</span>}, ) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">"test.png"</span>)</pre></div> <p dir="auto">The result is the following:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11348981/115027257-c6706c80-9ec3-11eb-95c1-19b27e0b0e46.png"><img src="https://user-images.githubusercontent.com/11348981/115027257-c6706c80-9ec3-11eb-95c1-19b27e0b0e46.png" alt="test" style="max-width: 100%;"></a></p> <p dir="auto">As you can see, the <code class="notranslate">y</code> axes have different values, while the <code class="notranslate">x</code> axes seem to be shared despite the <code class="notranslate">"sharex": False</code> keyword.</p>
0
<h3 dir="auto">Bug summary</h3> <p dir="auto">In jupyter lab, the code snippet below sets the title of the axis to the x,y coords of a mouse click, however in matplotlib 3.5.2 specifically, the clicks aren't registered unless I'm clicking around using the pan or zoom controls of the interactive widget. Downgrading to matplotlib 3.5.1, the clicks are registered with just the cursor as expected with the same ipympl version 0.9.1.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt %matplotlib widget fig, ax = plt.subplots(figsize=(5,5)) plt.plot(np.random.randint(0, 5, 5)) plt.show() def onclick(event): ax.set_title(f'x={event.x}, y={event.y}') print(f'x={event.x}, y={event.y}') fig.canvas.mpl_connect('button_press_event', onclick)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-c1">%</span><span class="pl-s1">matplotlib</span> <span class="pl-s1">widget</span> <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">5</span>,<span class="pl-c1">5</span>)) <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>, <span class="pl-c1">5</span>, <span class="pl-c1">5</span>)) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>() <span class="pl-k">def</span> <span class="pl-en">onclick</span>(<span class="pl-s1">event</span>): <span class="pl-s1">ax</span>.<span class="pl-en">set_title</span>(<span class="pl-s">f'x=<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">event</span>.<span class="pl-s1">x</span><span class="pl-kos">}</span></span>, y=<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">event</span>.<span class="pl-s1">y</span><span class="pl-kos">}</span></span>'</span>) <span class="pl-en">print</span>(<span class="pl-s">f'x=<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">event</span>.<span class="pl-s1">x</span><span class="pl-kos">}</span></span>, y=<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">event</span>.<span class="pl-s1">y</span><span class="pl-kos">}</span></span>'</span>) <span class="pl-s1">fig</span>.<span class="pl-s1">canvas</span>.<span class="pl-en">mpl_connect</span>(<span class="pl-s">'button_press_event'</span>, <span class="pl-s1">onclick</span>)</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">No axis title after clicking inside the plot with just a regular cursor<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26208374/180457943-08bf7053-0870-45bc-88c7-f22791d8d26a.png"><img width="514" alt="Screen Shot 2022-07-22 at 9 13 29 AM" src="https://user-images.githubusercontent.com/26208374/180457943-08bf7053-0870-45bc-88c7-f22791d8d26a.png" style="max-width: 100%;"></a></p> <p dir="auto">Axis title set after clicking inside the plot with the pan tool of the interactive widget (same if using the zoom tool)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26208374/180457956-538d1a22-c741-483f-881e-94f710761529.png"><img width="518" alt="Screen Shot 2022-07-22 at 9 12 03 AM" src="https://user-images.githubusercontent.com/26208374/180457956-538d1a22-c741-483f-881e-94f710761529.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">This screenshot was taken with mpl version 3.5.1 where the regular cursor click was registered and the axis title was changed<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26208374/180458756-8db913fe-addc-428f-911b-d8232fa05133.png"><img width="519" alt="Screen Shot 2022-07-22 at 9 17 51 AM" src="https://user-images.githubusercontent.com/26208374/180458756-8db913fe-addc-428f-911b-d8232fa05133.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional information</h3> <p dir="auto">It's also interesting that under mpl 3.5.2, the cursor remains as the finger cursor icon after clicking while in mpl 3.5.1, the cursor icon changes back to the regular pointer - I'm not sure what that means but it is a difference in behavior...</p> <p dir="auto">Some relevant package versions:<br> matplotlib 3.5.2<br> ipympl 0.9.1<br> jupyterlab 3.4.3</p> <h3 dir="auto">Operating system</h3> <p dir="auto">reproduced on both Ubuntu and macOS</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.2</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">module://ipympl.backend_nbagg</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.8.13</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto">3.4.3</p> <h3 dir="auto">Installation</h3> <p dir="auto">pip</p>
<h3 dir="auto">Bug summary</h3> <p dir="auto">A regression between release versions 3.5.1 and 3.5.2 causes figures to fail to redraw after an initial plot is added using the <code class="notranslate">pyplot</code> interface in an interactive IPython session. This has been observed with both <code class="notranslate">pyplot.plot</code> and <code class="notranslate">pyplot.tripcolor</code>. The figure will show the first plot drawn, but subsequent calls to <code class="notranslate">pyplot.plot</code> and <code class="notranslate">pyplot.tripcolor</code> fail to update an on-screen figure until <code class="notranslate">pyplot.draw</code> is invoked. This has been observed with IPython versions 8.3.0 (current) and 8.2.0.</p> <p dir="auto">Both the Qt5 and Tk backends exhibit the same issues.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Install matplotlib and ipython in a virtualenv python3 -m venv ~/mpl.venv . ~/mpl.venv/bin/activate pip install matplotlib ipython # Make sure to start with a clean config mv ~/.ipython ~/.ipython.backup mv ~/.config/matplotlib .config/matplotlib.backup # Run `pylab` ipython --pylab=tk # ... the following are commands issues in the ipython prompt plot(arange(10)) plot(-arange(10)) draw()"><pre class="notranslate"><span class="pl-c"># Install matplotlib and ipython in a virtualenv</span> <span class="pl-s1">python3</span> <span class="pl-c1">-</span><span class="pl-s1">m</span> <span class="pl-s1">venv</span> <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span>.<span class="pl-s1">venv</span> . <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span>.<span class="pl-s1">venv</span><span class="pl-c1">/</span><span class="pl-s1">bin</span><span class="pl-c1">/</span><span class="pl-s1">activate</span> <span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-s1">matplotlib</span> <span class="pl-s1">ipython</span> <span class="pl-c"># Make sure to start with a clean config</span> <span class="pl-s1">mv</span> <span class="pl-c1">~</span><span class="pl-c1">/</span>.<span class="pl-s1">ipython</span> <span class="pl-c1">~</span><span class="pl-c1">/</span>.<span class="pl-s1">ipython</span>.<span class="pl-s1">backup</span> <span class="pl-s1">mv</span> <span class="pl-c1">~</span><span class="pl-c1">/</span>.<span class="pl-s1">config</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span> .<span class="pl-s1">config</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">backup</span> <span class="pl-c"># Run `pylab`</span> <span class="pl-s1">ipython</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-s1">pylab</span><span class="pl-c1">=</span><span class="pl-s1">tk</span> <span class="pl-c"># ... the following are commands issues in the ipython prompt</span> <span class="pl-en">plot</span>(<span class="pl-en">arange</span>(<span class="pl-c1">10</span>)) <span class="pl-en">plot</span>(<span class="pl-c1">-</span><span class="pl-en">arange</span>(<span class="pl-c1">10</span>)) <span class="pl-en">draw</span>()</pre></div> <h3 dir="auto">Actual outcome</h3> <ol dir="auto"> <li>After the first <code class="notranslate">plot</code> command, a figure appears with a <code class="notranslate">y = x</code> line shown.</li> <li>After the second <code class="notranslate">plot</code> command, the figure does not update.</li> <li>After the <code class="notranslate">draw</code> command, the figure updates to show both the <code class="notranslate">y = x</code> and <code class="notranslate">y = -x</code> lines.</li> </ol> <h3 dir="auto">Expected outcome</h3> <ol dir="auto"> <li>After the first <code class="notranslate">plot</code> command, a figure appears with a <code class="notranslate">y = x</code> line shown. (This is as expected.)</li> <li>After the second <code class="notranslate">plot</code> command, the figure updates with the addition of a <code class="notranslate">y = -x</code> line. (This is the deviation.)</li> <li>The <code class="notranslate">draw</code> command should produce no visible change in the figure.</li> </ol> <h3 dir="auto">Additional information</h3> <p dir="auto">This regression has been bisected to commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matplotlib/matplotlib/commit/f937b0ab5ef9d5ffe9f2f58f6391357783cc4afa/hovercard" href="https://github.com/matplotlib/matplotlib/commit/f937b0ab5ef9d5ffe9f2f58f6391357783cc4afa"><tt>f937b0a</tt></a>.</p> <p dir="auto">The testbed is a current Void Linux system running Python 3.10.4, including the system <code class="notranslate">python3-tkinter</code> package for a GUI. (As noted above, this bug is also present with the Qt5 backend.) All packages were installed in a virtual environment. The output of <code class="notranslate">pip freeze</code> is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="asttokens==2.0.5 backcall==0.2.0 cycler==0.11.0 decorator==5.1.1 executing==0.8.3 fonttools==4.33.3 ipython==8.3.0 jedi==0.18.1 kiwisolver==1.4.2 matplotlib==3.6.0.dev155+gf937b0ab5e matplotlib-inline==0.1.3 numpy==1.22.3 packaging==21.3 parso==0.8.3 pexpect==4.8.0 pickleshare==0.7.5 Pillow==9.1.0 prompt-toolkit==3.0.29 ptyprocess==0.7.0 pure-eval==0.2.2 Pygments==2.12.0 pyparsing==3.0.9 python-dateutil==2.8.2 setuptools-scm==6.4.2 six==1.16.0 stack-data==0.2.0 tk==0.1.0 tomli==2.0.1 traitlets==5.2.0 wcwidth==0.2.5"><pre class="notranslate"><code class="notranslate">asttokens==2.0.5 backcall==0.2.0 cycler==0.11.0 decorator==5.1.1 executing==0.8.3 fonttools==4.33.3 ipython==8.3.0 jedi==0.18.1 kiwisolver==1.4.2 matplotlib==3.6.0.dev155+gf937b0ab5e matplotlib-inline==0.1.3 numpy==1.22.3 packaging==21.3 parso==0.8.3 pexpect==4.8.0 pickleshare==0.7.5 Pillow==9.1.0 prompt-toolkit==3.0.29 ptyprocess==0.7.0 pure-eval==0.2.2 Pygments==2.12.0 pyparsing==3.0.9 python-dateutil==2.8.2 setuptools-scm==6.4.2 six==1.16.0 stack-data==0.2.0 tk==0.1.0 tomli==2.0.1 traitlets==5.2.0 wcwidth==0.2.5 </code></pre></div> <p dir="auto">(Note that the funny <code class="notranslate">matplotlib</code> version comes from a local git repo checked out to the problematic commit.)</p> <h3 dir="auto">Operating system</h3> <p dir="auto">Void Linux x86_64</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.2</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">TkAgg, Qt5Agg</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.10.4</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto">None</p> <h3 dir="auto">Installation</h3> <p dir="auto">pip</p>
1
<p dir="auto">The ES7 proposal is available at: <a href="https://github.com/leebyron/ecmascript-more-export-from">https://github.com/leebyron/ecmascript-more-export-from</a></p> <p dir="auto">The additions include:</p> <p dir="auto">reexporting default:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// proposed: export v from &quot;mod&quot;; // symmetric to: import v from &quot;mod&quot;; export {v};"><pre class="notranslate"><span class="pl-c">// proposed:</span> <span class="pl-k">export</span> <span class="pl-s1">v</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span><span class="pl-kos">;</span> <span class="pl-c">// symmetric to:</span> <span class="pl-k">import</span> <span class="pl-s1">v</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-kos">{</span><span class="pl-s1">v</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">reexporting as sub-module:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// proposed: export * as ns from &quot;mod&quot;; // symmetric to: import * as ns from &quot;mod&quot;; export {ns};"><pre class="notranslate"><span class="pl-c">// proposed:</span> <span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">ns</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span><span class="pl-kos">;</span> <span class="pl-c">// symmetric to:</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">ns</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-kos">{</span><span class="pl-s1">ns</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">also allowing combining</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// proposed export v, {x, y as w} from &quot;mod&quot; // symmetric to import v, {x, y as w} from &quot;mod&quot; As well as // proposed export v, * as ns from &quot;mod&quot; // symmetric to import v, * as ns from &quot;mod&quot;"><pre class="notranslate"><span class="pl-c">// proposed</span> <span class="pl-s1">export</span> <span class="pl-s1">v</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>x<span class="pl-kos">,</span> y <span class="pl-s1">as</span> <span class="pl-s1">w</span><span class="pl-kos">}</span> <span class="pl-s1">from</span> <span class="pl-s">"mod"</span> <span class="pl-c">// symmetric to</span> <span class="pl-k">import</span> <span class="pl-s1">v</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-s1">y</span> <span class="pl-k">as</span> <span class="pl-s1">w</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span> <span class="pl-smi">As</span> <span class="pl-s1">well</span> <span class="pl-k">as</span> <span class="pl-c">// proposed</span> <span class="pl-smi">export</span> <span class="pl-s1">v</span><span class="pl-kos">,</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">ns</span> <span class="pl-s1">from</span> <span class="pl-s">"mod"</span> <span class="pl-c">// symmetric to</span> <span class="pl-k">import</span> <span class="pl-s1">v</span><span class="pl-kos">,</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">ns</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span></pre></div>
<p dir="auto">Looking at history : <a href="https://github.com/Microsoft/TypeScript/commits/master/bin/lib.d.ts">https://github.com/Microsoft/TypeScript/commits/master/bin/lib.d.ts</a></p> <p dir="auto">Was there on April 11 : <a href="https://github.com/Microsoft/TypeScript/blob/6f1feffe6710a3201fb46a0b01e16051bfc18a29/bin/lib.d.ts#L1689">https://github.com/Microsoft/TypeScript/blob/6f1feffe6710a3201fb46a0b01e16051bfc18a29/bin/lib.d.ts#L1689</a></p> <p dir="auto">Isn't there on April 18: <a href="https://github.com/Microsoft/TypeScript/blob/b8ebf561f94ea27ecfc6af3c2b20661e6fcd79ed/bin/lib.d.ts">https://github.com/Microsoft/TypeScript/blob/b8ebf561f94ea27ecfc6af3c2b20661e6fcd79ed/bin/lib.d.ts</a></p> <p dir="auto">Report by Atom-TypeScript user <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vaughnroyko/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vaughnroyko">@vaughnroyko</a></p> <p dir="auto">The following code now fails (source from : <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView</a>):</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var littleEndian = (function() { var buffer = new ArrayBuffer(2); new DataView(buffer).setInt16(0, 256, true); return new Int16Array(buffer)[0] === 256; })(); console.log(littleEndian); // true or false"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">littleEndian</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">buffer</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">ArrayBuffer</span><span class="pl-kos">(</span><span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">new</span> <span class="pl-smi">DataView</span><span class="pl-kos">(</span><span class="pl-s1">buffer</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">setInt16</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">256</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-smi">Int16Array</span><span class="pl-kos">(</span><span class="pl-s1">buffer</span><span class="pl-kos">)</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span> <span class="pl-c1">===</span> <span class="pl-c1">256</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">littleEndian</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// true or false</span></pre></div>
0
<p dir="auto">Autocompletion of variable names, auto closing of brackets and so on doesn't seem to work in .jsx-files. Shouldn't these files work the same way as the regular .js-files with the exception of supporting the JSX syntax?</p>
<p dir="auto">I know VSCode has not support JSX yet but it didn't appear so much error highlights in the last version, even I had already changed my language mode into <code class="notranslate">Plain Text</code>.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6079112/11261584/f5e2e9d0-8eb0-11e5-8388-e6711dc718f9.PNG"><img src="https://cloud.githubusercontent.com/assets/6079112/11261584/f5e2e9d0-8eb0-11e5-8388-e6711dc718f9.PNG" alt="2" style="max-width: 100%;"></a></p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.1</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>Compiler =&gt; Visual Studio 2017</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto"><code class="notranslate">cv::MotionJpegCapture</code> crashes if <code class="notranslate">grabFrame</code> is called after the end of stream is reached due to unchecked iterator increment <code class="notranslate">++m_frame_iterator</code>.</p> <h5 dir="auto">Steps to reproduce</h5> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include &lt;opencv2/videoio.hpp&gt; int main() { cv::VideoCapture capture( &quot;some MJPEG video file&quot; ); cv::Mat image; while( capture &gt;&gt; image, !image.empty() ); capture &gt;&gt; image; // &lt; deque iterator is not incrementable return EXIT_SUCCESS; }"><pre class="notranslate">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>opencv2/videoio.hpp<span class="pl-pds">&gt;</span></span> <span class="pl-k">int</span> <span class="pl-en">main</span>() { cv::VideoCapture <span class="pl-smi">capture</span>( <span class="pl-s"><span class="pl-pds">"</span>some MJPEG video file<span class="pl-pds">"</span></span> ); cv::Mat image; <span class="pl-k">while</span>( capture &gt;&gt; image, !image.<span class="pl-c1">empty</span>() ); capture &gt;&gt; image; <span class="pl-c"><span class="pl-c">//</span> &lt; deque iterator is not incrementable</span> <span class="pl-k">return</span> EXIT_SUCCESS; }</pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 2.4+ (All versions since 2012)</li> <li>Operating System / Platform =&gt; Debian 64 Bit</li> <li>Compiler =&gt; GCC 6</li> </ul> <h5 dir="auto">Detailed description</h5> <h6 dir="auto">Background</h6> <p dir="auto">I found this issue while trying to use the Conan package manager. I realise that the OpenCV does not provide any official package manager support, but I believe this fix could help others too. <a href="https://github.com/conan-community/community/issues/114">https://github.com/conan-community/community/issues/114</a></p> <h6 dir="auto">Description</h6> <p dir="auto">In the FindOpenEXR.cmake file (<a href="https://github.com/opencv/opencv/blob/master/cmake/OpenCVFindOpenEXR.cmake">https://github.com/opencv/opencv/blob/master/cmake/OpenCVFindOpenEXR.cmake</a>), there is support for using a variable called 'OPENEXR_ROOT' to find a version of OpenEXR installed in a user-defined location. Currently this is a cache variable with a default of C:\Deploy and is only defined/useable in Windows:</p> <div class="highlight highlight-source-cmake notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if(WIN32) SET(OPENEXR_ROOT &quot;C:/Deploy&quot; CACHE STRING &quot;Path to the OpenEXR \&quot;Deploy\&quot; folder&quot;) if(CMAKE_CL_64) SET(OPENEXR_LIBSEARCH_SUFFIXES x64/Release x64 x64/Debug) elseif(MSVC) SET(OPENEXR_LIBSEARCH_SUFFIXES Win32/Release Win32 Win32/Debug) endif() else() set(OPENEXR_ROOT &quot;&quot;) endif()"><pre class="notranslate"><span class="pl-k">if</span>(<span class="pl-k">WIN32</span>) <span class="pl-c1">SET</span>(OPENEXR_ROOT <span class="pl-s">"C:/Deploy"</span> <span class="pl-k">CACHE</span> STRING <span class="pl-s">"Path to the OpenEXR <span class="pl-cce">\"</span>Deploy<span class="pl-cce">\"</span> folder"</span>) <span class="pl-k">if</span>(CMAKE_CL_64) <span class="pl-c1">SET</span>(OPENEXR_LIBSEARCH_SUFFIXES x64/Release x64 x64/Debug) <span class="pl-k">elseif</span>(MSVC) <span class="pl-c1">SET</span>(OPENEXR_LIBSEARCH_SUFFIXES Win32/Release Win32 Win32/Debug) <span class="pl-k">endif</span>() <span class="pl-k">else</span>() <span class="pl-c1">set</span>(OPENEXR_ROOT <span class="pl-s">""</span>) <span class="pl-k">endif</span>()</pre></div> <p dir="auto">It would be great if it could also be a cache variable for other platforms, we can keep the default to "", as it is being set to now.</p> <p dir="auto">The second thing that would be required is to change the following blob:</p> <div class="highlight highlight-source-cmake notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SET(LIBRARY_PATHS /usr/lib /usr/local/lib /sw/lib /opt/local/lib &quot;${ProgramFiles_ENV_PATH}/OpenEXR/lib/static&quot; &quot;${OPENEXR_ROOT}/lib&quot;)"><pre class="notranslate"><span class="pl-c1">SET</span>(LIBRARY_PATHS /usr/lib /usr/local/lib /sw/lib /opt/local/lib <span class="pl-s">"<span class="pl-smi">${ProgramFiles_ENV_PATH}</span>/OpenEXR/lib/static"</span> <span class="pl-s">"<span class="pl-smi">${OPENEXR_ROOT}</span>/lib"</span>)</pre></div> <p dir="auto">to</p> <div class="highlight highlight-source-cmake notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SET(LIBRARY_PATHS &quot;${OPENEXR_ROOT}/lib&quot; /usr/lib /usr/local/lib /sw/lib /opt/local/lib &quot;${ProgramFiles_ENV_PATH}/OpenEXR/lib/static&quot;)"><pre class="notranslate"><span class="pl-c1">SET</span>(LIBRARY_PATHS <span class="pl-s">"<span class="pl-smi">${OPENEXR_ROOT}</span>/lib"</span> /usr/lib /usr/local/lib /sw/lib /opt/local/lib <span class="pl-s">"<span class="pl-smi">${ProgramFiles_ENV_PATH}</span>/OpenEXR/lib/static"</span>)</pre></div> <p dir="auto">i.e. if we explicitly define OPENEXR_ROOT then we would expect to search that location first before any system installed versions. This is in particular important for use with package managers (which is where I ran into the problem).</p> <p dir="auto">If there are problems using that OPENEXR_ROOT for whatever reason, maybe it would be OK to use a new variable instead e.g. OPENEXR_USER_ROOT, which could default?</p>
0
<p dir="auto">When running Flutter on desktop (<a href="https://github.com/google/flutter-desktop-embedding">desktop embedder</a>), hitting the Enter key while editing a TextField doesn't call onSubmitted or onEditingComplete. This only happens on iOS and Android simulators.</p>
<p dir="auto">Enter key blurs the field, which is unexpected. It essentially maps to the "done" key on the android keyboard which hides the keyboard, but that seems wrong when using a physical keyboard. We should seek UX guidance on what the right behavior is here.</p>
1
<p dir="auto">I'm working on a library using TypeScript called <a href="https://github.com/jiaweihli/monapt">monapt</a>. I have a grunt task to compile multiple files and concatenate them together. However, the output definition has some potential downsides. (I can't remember exactly what they are at the moment, but hopefully someone else can shed some light on this)</p> <p dir="auto">Here is a common manual fix I need to do every time before release: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/jklmli/monapt/commit/0da8b09c64f9870a815c389eac1a0dd38e4f65fe/hovercard" href="https://github.com/jklmli/monapt/commit/0da8b09c64f9870a815c389eac1a0dd38e4f65fe">jklmli/monapt@<tt>0da8b09</tt></a></p>
<p dir="auto">Tried using allowJs with a minified version of google analytics and ran into some duplicate identifier errors. Cut down testcase:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function bar(a) { if (a) this.x = 1; else this.x = 1; // This also fails and is closer to the actual minified GA version. // a ? (this.x = 1) : (this.x = 1); } "><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-s1">a</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">a</span><span class="pl-kos">)</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">x</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-k">else</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">x</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// This also fails and is closer to the actual minified GA version. </span> <span class="pl-c">// a ? (this.x = 1) : (this.x = 1); </span> <span class="pl-kos">}</span> </pre></div> <div class="highlight highlight-source-batchfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tsc --allowJs pretty.js --out foo.js pretty.js(3,5): error TS2300: Duplicate identifier 'x'. pretty.js(5,5): error TS2300: Duplicate identifier 'x'."><pre class="notranslate">tsc --allowJs pretty.js --out foo.js pretty.js(3,5): error TS2300: Duplicate identifier 'x'. pretty.js(5,5): error TS2300: Duplicate identifier 'x'.</pre></div>
0
<p dir="auto"><em>Please make sure that this is a build/installation issue. 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:build_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04.5 LTS - docker images tensorflow/tensorflow:latest and tensorflow/devel</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): source</li> <li>TensorFlow version: commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/a2bb5db1bf7931b0dc2cd08e53b8798489568198/hovercard" href="https://github.com/tensorflow/tensorflow/commit/a2bb5db1bf7931b0dc2cd08e53b8798489568198"><tt>a2bb5db</tt></a></li> <li>Python version: Python 2.7.12</li> <li>Installed using virtualenv? pip? conda?: sources</li> <li>Bazel version (if compiling from source): 0.19.2</li> <li>GCC/Compiler version (if compiling from source): gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609</li> <li>CUDA/cuDNN version: -</li> <li>GPU model and memory: -</li> </ul> <p dir="auto"><strong>Describe the problem</strong><br> Some of the tests don't compile because of the incorrect order of parameters and cause the following error:<br> <code class="notranslate">sorry, unimplemented: non-trivial designated initializers not supported</code></p> <p dir="auto">Problem is caused by the order in designated initializer which is different from the order in struct.</p> <p dir="auto">How should be tensorflow tested so that this test passes? It even doesn't pass on official Google tensorflow images.<br> <strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong><br> bazel test --config=opt --test_size_filters=small,medium -- tensorflow/lite/toco/tflite:operator_test</p> <p dir="auto"><strong>Any other info / logs</strong></p>
<p dir="auto"><em>Please make sure that this is a build/installation issue. 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:build_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04.1 LTS</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): source</li> <li>TensorFlow version: commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/a2bb5db1bf7931b0dc2cd08e53b8798489568198/hovercard" href="https://github.com/tensorflow/tensorflow/commit/a2bb5db1bf7931b0dc2cd08e53b8798489568198"><tt>a2bb5db</tt></a></li> <li>Python version: 2.7.15rc1</li> <li>Installed using virtualenv? pip? conda?: sources</li> <li>Bazel version (if compiling from source): 0.20.0</li> <li>GCC/Compiler version (if compiling from source): gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0</li> <li>CUDA/cuDNN version: -</li> <li>GPU model and memory: -</li> </ul> <p dir="auto"><strong>Describe the problem</strong><br> During compilation I get an error: sorry, unimplemented: non-trivial designated initializers not supported.<br> It can be solved by setting all function pointers to null and applying initialization in order as in the struct defintion.<br> <strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong><br> bazel test --verbose_failures tensorflow/lite/delegates/nnapi:nnapi_delegate</p> <p dir="auto"><strong>Any other info / logs</strong><br> I attach diff which fixes this error for me.<br> <a href="https://github.com/tensorflow/tensorflow/files/2901455/diff.txt">diff.txt</a></p>
1
<h5 dir="auto">Feature Request</h5> <p dir="auto">I like sticking with Three.js' built in animation system so everything works off the same clock. Most of the stuff you find on the internet suggests using a third party tweening api, but that must be out of date because AnimationClip.js really takes care of business for just about anything you want. However, I don't see any way to pass an easing function to guide the interpolation process. It looks like the mixer autonomously makes the decision later and everything comes out linear.</p> <p dir="auto">Any chance you could let us pass an easing function on creation of a clip?</p> <p dir="auto">Best Regards</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"> r79</li> <li>[X ] r78</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>[] All of them</li> <li>[X ] Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> IOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">I would like to refactor THREE.Interpolant to be a bit simplier base class that has less assumptions about how it will be used. This would make it more flexible.</p> <p dir="auto">I would like to make the following changes:</p> <ul dir="auto"> <li>Remove the assumption in the base class that there is one sampleValues buffer, it has a sampleSize and it has a resultsBuffer. Rather I would prefer if the base class made no assumptions on the storage structure. We could then have a THREE.BufferInterpolant derived class that has these assumptions. This is a coupling reduction change.</li> <li>I would like to create a separate findIndex( time, optionalSuggestedIndex ) function isolated finding the current index given the current time and an optional suggested start index for the search. It will return a single integer, which is -1 if the time is before the range and T (where T is the size of the time array) if the time is after the range. This will remove the idea that different types of interpolators are called based on the results of the search -- you can still do that based on the returned integer value but it won't be tightly coupled as it is now.</li> <li>I would also like to remove the loop type/extrapolator awareness from the findIndex() function - if someone is ping/pong or repeat, that can be determined before going into the findIndex() function as it is fully separable.</li> <li>I would like to move _cachedIndex out of the base class and have it as an optional parameter to evaluate() -- just as a means of speeding up the search (it would be passed to findIndex.) The reason is I would like to share these Interpolants between multiple animations that may not be synchronized and thus I would be accessing the same Interpolant class in two or more ways, and thus I could use a different cachedIndex for each usage. This is reducing the coupling. THREE.BufferInterpolant could still have it if desired.</li> <li>Rename "ending" to "extrapolation" to be more consistent with other programs. (The other term that is used is "wrap" type but "extrapolation" I feel is better.)</li> <li>I would like to synchronize the extrapolation names with Loop names as much as possible as that is generally what they support. Right now we do not have an Extrapolation mode that matches up with LoopPingPong and the other two Wrap/Extrapolation names that do align with Loop modes are not that suggestive. I am unsure what is the right solution here. Here is what unity uses for both AnimationClips and AnimationCurves: <a href="http://docs.unity3d.com/ScriptReference/WrapMode.html" rel="nofollow">http://docs.unity3d.com/ScriptReference/WrapMode.html</a></li> <li>Rename parameterPosition to time as that is the majority use case? (This is just a personal preference.)</li> </ul> <p dir="auto">The reason is I would like to replicate the behavior of Unity3D's AnimationCurve more closely:</p> <p dir="auto"><a href="http://docs.unity3d.com/ScriptReference/AnimationCurve.html" rel="nofollow">http://docs.unity3d.com/ScriptReference/AnimationCurve.html</a></p> <p dir="auto">The main features of Unity3D's Animation Curve is that each keyframe has a value, and an inTangent and an outTangent. If you set inTangent and outTangent to 0 you get linear interpolation but if you set them to 1 each you get cubic interpolation. This is really useful for precise control of keyframe animations.</p> <p dir="auto">There is another pattern that is often used in animation it is the TCB pattern used by FBX, Maya, 3DS Max and Softimage. It uses on a per key basis a value (vec3, quat, etc.) + bias + continuity + tension - which is again is multiple bits of data per key that I would like to be able to support.</p> <p dir="auto">But I guess if we have baked all these flat animation primitives so deeply into mixer, can I do this decoupling so I can use more expressive animation curves and custom ones?</p> <p dir="auto">/ping <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tschw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tschw">@tschw</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" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r76</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> IOS</li> </ul>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <h1 dir="auto">Expected behavior</h1> <h1 dir="auto">Actual behavior</h1>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Version 10.0.18362.239 Windows Terminal version (if applicable):0.2.1831.0 Symfony 4.3"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Version 10.0.18362.239 Windows Terminal version (if applicable):0.2.1831.0 Symfony 4.3 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Render a block with background color after the text. The used command is from Symfony 4.3. I can provide instructions or find the exact control codes that were used if needed.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">A solid block of background color. The screenshot is from cmd.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12109622/61876774-4d163680-aef6-11e9-8cb6-eef0265530c0.png"><img src="https://user-images.githubusercontent.com/12109622/61876774-4d163680-aef6-11e9-8cb6-eef0265530c0.png" alt="image" style="max-width: 100%;"></a></p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The background color ends after the text.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12109622/61876748-3cfe5700-aef6-11e9-9625-e86fbc63af85.png"><img src="https://user-images.githubusercontent.com/12109622/61876748-3cfe5700-aef6-11e9-9625-e86fbc63af85.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">This is a somewhat cosmetic/quality of life issue, but I found the compiler error in this particular case could have been much more helpful.</p> <p dir="auto"><strong>TypeScript Version:</strong> 1.8.9</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="interface A { } class B extends A { }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-k">extends</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong> An error alluding to the fact that <code class="notranslate">A</code> cannot be extended because it is an interface.</p> <p dir="auto"><strong>Actual behavior:</strong></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="a.ts(2,17): error TS2304: Cannot find name 'A'."><pre class="notranslate">a.ts(2,17): error TS2304: Cannot find name <span class="pl-s"><span class="pl-pds">'</span>A<span class="pl-pds">'</span></span>.</pre></div>
<p dir="auto"><strong>TypeScript Version:</strong><br> 1.8.7</p> <p dir="auto"><strong>Code</strong></p> <p dir="auto">tsconfig.json</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;module&quot;: &quot;commonjs&quot;, &quot;target&quot;: &quot;es6&quot;, &quot;declaration&quot;: true }, &quot;files&quot;: [ &quot;main.ts&quot;, &quot;mytypes.ts&quot; ] }"><pre class="notranslate">{ <span class="pl-ent">"compilerOptions"</span>: { <span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>commonjs<span class="pl-pds">"</span></span>, <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>es6<span class="pl-pds">"</span></span>, <span class="pl-ent">"declaration"</span>: <span class="pl-c1">true</span> }, <span class="pl-ent">"files"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>main.ts<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>mytypes.ts<span class="pl-pds">"</span></span> ] }</pre></div> <p dir="auto">main.ts</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {MyClassAlias} from './mytypes'; let a: MyClassAlias = new MyClassAlias();"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">MyClassAlias</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./mytypes'</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">a</span>: <span class="pl-smi">MyClassAlias</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">MyClassAlias</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">mytypes.ts</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export class MyClass { public a: number; } export type MyClassAlias = MyClass;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">MyClass</span> <span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-c1">a</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-smi">MyClassAlias</span> <span class="pl-c1">=</span> <span class="pl-smi">MyClass</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> Object created using alias type.</p> <p dir="auto"><strong>Actual behavior:</strong><br> Compilation error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="main.ts(3,27): error TS2304: Cannot find name 'MyClassAlias'. "><pre class="notranslate"><code class="notranslate">main.ts(3,27): error TS2304: Cannot find name 'MyClassAlias'. </code></pre></div> <p dir="auto">in <code class="notranslate">vscode</code> (0.10.11) syntax is marked as error as well:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/14092227/14333957/8ed73bb0-fc51-11e5-8e7d-459b05b0f03b.png"><img src="https://cloud.githubusercontent.com/assets/14092227/14333957/8ed73bb0-fc51-11e5-8e7d-459b05b0f03b.png" alt="snip_20160406234306" style="max-width: 100%;"></a></p> <p dir="auto">but IntelliSense seems to work:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/14092227/14333989/c42ea8c0-fc51-11e5-89eb-04dc58dff1ad.png"><img src="https://cloud.githubusercontent.com/assets/14092227/14333989/c42ea8c0-fc51-11e5-89eb-04dc58dff1ad.png" alt="snip_20160406234539" style="max-width: 100%;"></a></p>
1
<p dir="auto">class Test { static name = "what"; } will report "what" for Test.name in IE11 but "Test" in FF and Chrome. This seems to be by design (<a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Function/name" rel="nofollow">https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Function/name</a>). Either the use of 'name' should be not allowed at all or the compiler should do some name mangling - although according to the specs the first option seems to be more appropriate.</p>
<p dir="auto"><strong>TypeScript Version:</strong><br> 1.8.5</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="function FeedPig(what:number) { print(&quot;the pig ate &quot; + what + &quot; pigs at 8:12&quot;); } FeedPig([1,2,3]);"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-smi">FeedPig</span><span class="pl-kos">(</span><span class="pl-s1">what</span>:<span class="pl-smi">number</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">print</span><span class="pl-kos">(</span><span class="pl-s">"the pig ate "</span> <span class="pl-c1">+</span> <span class="pl-s1">what</span> <span class="pl-c1">+</span> <span class="pl-s">" pigs at 8:12"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-smi">FeedPig</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Compiler Invocation</strong><br> Using typescriptServices.js:<br> <code class="notranslate">ts.transpile(source, null, filename)</code></p> <p dir="auto"><strong>Expected behavior:</strong><br> Type error</p> <p dir="auto"><strong>Actual behavior:</strong><br> Code compiles successfully and produces the output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="the pig ate 1,2,3 pigs at 8:12"><pre class="notranslate"><code class="notranslate">the pig ate 1,2,3 pigs at 8:12 </code></pre></div>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Windows build number: [Version 10.0.18362.267] Windows 10 Professional Version 1903 Windows Terminal version (if applicable): whatever is out-of-the-box Any other software?"><pre class="notranslate"><code class="notranslate"> Windows build number: [Version 10.0.18362.267] Windows 10 Professional Version 1903 Windows Terminal version (if applicable): whatever is out-of-the-box Any other software? </code></pre></div> <ul dir="auto"> <li>Ubuntu 18.04.LTS from the Microsoft Store fully updated with<br> <code class="notranslate">sudo apt update ; sudo apt upgrade</code></li> <li>The joe editor installed in Ubuntu with<br> <code class="notranslate">sudo apt install joe</code></li> </ul> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Start the joe editor with a new file without specifying a filename</li> <li>Type 3 lines at least to see what happens, e.g.:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="line1 line2 line3"><pre class="notranslate"><code class="notranslate">line1 line2 line3 </code></pre></div> <ol start="3" dir="auto"> <li>Go back with the cursor to the beginning of line2.</li> <li>Press the ENTER key.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">A new line should be inserted in the place of the cursor and the part of the file starting with the cursor position was in should be scrolled down on the screen and the last shown line should scroll out (disappear) and the cursor should move one line down.</p> <p dir="auto">I.e. you should see</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="line1 line2 line3"><pre class="notranslate"><code class="notranslate">line1 line2 line3 </code></pre></div> <p dir="auto">and the new cursor position should be at the beginning of line2</p> <p dir="auto"><strong>Note that after saving the file, the expected behavior is what correctly happens in the file data, only the display behavior is incorrect.</strong></p> <p dir="auto"><strong>Note, that this worked correctly in Windows 1803 with the same Ubuntu 18.04 LTS and joe versions. The upgrade to Windows 1903 broke this, and reinstalling joe and reinstalling the entire Ubuntu 18.04 LTS distribution did not fix this either.</strong></p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">No scrolling of the part after the cursor happens, instead the line the cursor was in is cleared (becomes empty, not disappear), and the cursor (correctly) moves down to the beginning of the next line.</p> <p dir="auto">I.e. you see</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="line1 line3"><pre class="notranslate"><code class="notranslate">line1 line3 </code></pre></div> <p dir="auto">and the cursor position is at the beginning of line3.</p> <p dir="auto"><strong>Note that after saving the file, the expected behavior is what correctly happens to the file data, only the display behavior is incorrect.</strong></p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): 0.5.2762.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): 0.5.2762.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Issue an EL (clear to end of line, <code class="notranslate">\e[K</code>) when the cursor is at the rightmost position, in "pending wrap" a.k.a. "delayed eol wrap" state. Print further characters. E.g.:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="printf &quot;%$(tput cols)s\e[K%s\n&quot; 0123456789 abcdef"><pre class="notranslate"><code class="notranslate">printf "%$(tput cols)s\e[K%s\n" 0123456789 abcdef </code></pre></div> <h1 dir="auto">Expected behavior</h1> <p dir="auto">xterm's behavior, and as far as I know the "official" one is that EL clears the "delayed eol wrap" state along with erasing the last column (<code class="notranslate">9</code>), resulting in (denoting the right margin by a "left one eighth block" <code class="notranslate">▏</code>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 012345678a▏ bcdef ▏"><pre class="notranslate"><code class="notranslate"> 012345678a▏ bcdef ▏ </code></pre></div> <p dir="auto">Some terminals, including <a href="https://bugzilla.gnome.org/show_bug.cgi?id=740789" rel="nofollow">VTE</a>, iTerm2, Kitty, Konsole, PuTTY 0.73 intentionally deviate: make EL not clear the "delayed eol wrap" flag and not erase the last character either:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 0123456789▏ abcdef ▏"><pre class="notranslate"><code class="notranslate"> 0123456789▏ abcdef ▏ </code></pre></div> <p dir="auto">Rationale:</p> <p dir="auto">There are several utilities that want to just simply print some text with colors or other attributes, without caring about the terminal width or doing anything more complex terminal driving. If these attributes include a background color too, the behavior is messy across a linewrap, due to the <a href="https://bugzilla.gnome.org/show_bug.cgi?id=754596" rel="nofollow">terribly designed bce (background color earse)</a> feature. (Now, VTE, and perhaps some other emulators too, intentionally implement bce differently, as another means of mitigating the problem I'm describing here, but let's leave that to another day.)</p> <p dir="auto">As a workaround for the background color problem, several utilities decide to also emit an EL after restoring the background color, to earse the faulty color there. And they often don't realize that this introduces an even more serious issue: at linewrap, a character might get dropped from the output. An example is <a href="http://savannah.gnu.org/bugs/?36831" rel="nofollow">grep</a> with its default settings. PuTTY 0.73's changelog refers to gcc.</p> <p dir="auto">Notes We (VTE) haven't received any bugreport about it, nor did I saw one in Kitty's, Konsole's or iTerm2's bugtracker. Also there's no vttest test case for this.</p> <p dir="auto">I do recommend that you follow our behavior here. :)</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The last digit <code class="notranslate">9</code> is wiped out by EL for no apparent reason since the "delayed eol wrap" state isn't cleared, the first letter <code class="notranslate">a</code> is printed in the next line anyway:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 012345678 ▏ abcdef ▏"><pre class="notranslate"><code class="notranslate"> 012345678 ▏ abcdef ▏ </code></pre></div> <p dir="auto">Or, at 38 columns:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="echo 'The quick brown fox jumps over the lazy dog.' | GREP_COLORS='ms=1;91' grep z The quick brown fox jumps over the la ▏ y dog. ▏"><pre class="notranslate"><code class="notranslate">echo 'The quick brown fox jumps over the lazy dog.' | GREP_COLORS='ms=1;91' grep z The quick brown fox jumps over the la ▏ y dog. ▏ </code></pre></div>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2> <p dir="auto"><code class="notranslate">torch.mean</code> currently only accepts a single dimension. It should also accept a tuple of dimensions like <code class="notranslate">torch.sum</code> does.</p> <h2 dir="auto">Motivation</h2> <p dir="auto">Makes code cleaner and more concise when taking the mean of some quantity across multiple dimensions. An example of this is taking the mean of some pixel-wise quantity over an image (which has two dimensions, and potentially a color channel).</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">Current workaround is chaining <code class="notranslate">.mean</code>s repeatedly, as in <code class="notranslate">array.mean(0).mean(0).mean(0)</code> to take the mean over the first three dimensions of an array.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> mean</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> var, std</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> max, min</li> </ul> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/VitalyFedyunin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/VitalyFedyunin">@VitalyFedyunin</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ngimel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ngimel">@ngimel</a></p>
1
<p dir="auto">Hi,</p> <p dir="auto">I'm just wondering why <code class="notranslate">numpy</code> can be installed on Windows using <code class="notranslate">pip</code>, while for <code class="notranslate">scipy</code> it seems that it requires a compilation?</p> <p dir="auto">Are there any plans to make this command work on windows on the future: <code class="notranslate">pip install scipy</code>?</p> <p dir="auto">Thanks.</p>
<p dir="auto">It would be very helpful to have binary wheel packages for Windows platform.</p> <p dir="auto">I think it might work to build those wheels using Appveyor service: <a href="http://www.appveyor.com/" rel="nofollow">http://www.appveyor.com/</a></p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ pwd /tmp/scratch $ ls main.go x_amd64.s x_other.go $ cat main.go package main func main() { println(foo()) } $ cat x_amd64.s TEXT ·foo(SB), 7, $0 MOVQ $43, ret+0(FP) RET $ cat x_other.go package main func foo() int { return 42 }"><pre class="notranslate"><code class="notranslate">$ pwd /tmp/scratch $ ls main.go x_amd64.s x_other.go $ cat main.go package main func main() { println(foo()) } $ cat x_amd64.s TEXT ·foo(SB), 7, $0 MOVQ $43, ret+0(FP) RET $ cat x_other.go package main func foo() int { return 42 } </code></pre></div> <p dir="auto">Note that foo has two bodies defined: one returns 42, the other returns 43. Surely this should be a compile or asm or link error, yet "go build" seems happy:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ go build -x &amp;&amp; ./scratch &amp;&amp; rm ./scratch WORK=/tmp/go-build115513716 mkdir -p $WORK/_/tmp/scratch/_obj/ mkdir -p $WORK/_/tmp/scratch/_obj/exe/ cd /tmp/scratch /home/nt/go/pkg/tool/linux_amd64/compile -o $WORK/_/tmp/scratch.a -trimpath $WORK -p main -buildid acfccd74ae478f8fecc64195dd5e90e7757cec11 -D _/tmp/scratch -I $WORK -pack -asmhdr $WORK/_/tmp/scratch/_obj/go_asm.h ./main.go ./x_other.go /home/nt/go/pkg/tool/linux_amd64/asm -o $WORK/_/tmp/scratch/_obj/x_amd64.o -trimpath $WORK -I $WORK/_/tmp/scratch/_obj/ -I /home/nt/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./x_amd64.s pack r $WORK/_/tmp/scratch.a $WORK/_/tmp/scratch/_obj/x_amd64.o # internal cd . /home/nt/go/pkg/tool/linux_amd64/link -o $WORK/_/tmp/scratch/_obj/exe/a.out -L $WORK -extld=gcc -buildmode=exe -buildid=acfccd74ae478f8fecc64195dd5e90e7757cec11 $WORK/_/tmp/scratch.a mv $WORK/_/tmp/scratch/_obj/exe/a.out scratch 42"><pre class="notranslate"><code class="notranslate">$ go build -x &amp;&amp; ./scratch &amp;&amp; rm ./scratch WORK=/tmp/go-build115513716 mkdir -p $WORK/_/tmp/scratch/_obj/ mkdir -p $WORK/_/tmp/scratch/_obj/exe/ cd /tmp/scratch /home/nt/go/pkg/tool/linux_amd64/compile -o $WORK/_/tmp/scratch.a -trimpath $WORK -p main -buildid acfccd74ae478f8fecc64195dd5e90e7757cec11 -D _/tmp/scratch -I $WORK -pack -asmhdr $WORK/_/tmp/scratch/_obj/go_asm.h ./main.go ./x_other.go /home/nt/go/pkg/tool/linux_amd64/asm -o $WORK/_/tmp/scratch/_obj/x_amd64.o -trimpath $WORK -I $WORK/_/tmp/scratch/_obj/ -I /home/nt/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./x_amd64.s pack r $WORK/_/tmp/scratch.a $WORK/_/tmp/scratch/_obj/x_amd64.o # internal cd . /home/nt/go/pkg/tool/linux_amd64/link -o $WORK/_/tmp/scratch/_obj/exe/a.out -L $WORK -extld=gcc -buildmode=exe -buildid=acfccd74ae478f8fecc64195dd5e90e7757cec11 $WORK/_/tmp/scratch.a mv $WORK/_/tmp/scratch/_obj/exe/a.out scratch 42 </code></pre></div> <p dir="auto">Changing the</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="func foo() int { return 42 }"><pre class="notranslate"><code class="notranslate">func foo() int { return 42 } </code></pre></div> <p dir="auto">to be</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="func foo() int"><pre class="notranslate"><code class="notranslate">func foo() int </code></pre></div> <p dir="auto">in x_other.go now has "go build" picking up the other definition:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ vim x_other.go $ cat x_other.go package main func foo() int $ go build -x &amp;&amp; ./scratch &amp;&amp; rm ./scratch WORK=/tmp/go-build732255335 mkdir -p $WORK/_/tmp/scratch/_obj/ mkdir -p $WORK/_/tmp/scratch/_obj/exe/ cd /tmp/scratch /home/nt/go/pkg/tool/linux_amd64/compile -o $WORK/_/tmp/scratch.a -trimpath $WORK -p main -buildid acfccd74ae478f8fecc64195dd5e90e7757cec11 -D _/tmp/scratch -I $WORK -pack -asmhdr $WORK/_/tmp/scratch/_obj/go_asm.h ./main.go ./x_other.go /home/nt/go/pkg/tool/linux_amd64/asm -o $WORK/_/tmp/scratch/_obj/x_amd64.o -trimpath $WORK -I $WORK/_/tmp/scratch/_obj/ -I /home/nt/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./x_amd64.s pack r $WORK/_/tmp/scratch.a $WORK/_/tmp/scratch/_obj/x_amd64.o # internal cd . /home/nt/go/pkg/tool/linux_amd64/link -o $WORK/_/tmp/scratch/_obj/exe/a.out -L $WORK -extld=gcc -buildmode=exe -buildid=acfccd74ae478f8fecc64195dd5e90e7757cec11 $WORK/_/tmp/scratch.a mv $WORK/_/tmp/scratch/_obj/exe/a.out scratch 43"><pre class="notranslate"><code class="notranslate">$ vim x_other.go $ cat x_other.go package main func foo() int $ go build -x &amp;&amp; ./scratch &amp;&amp; rm ./scratch WORK=/tmp/go-build732255335 mkdir -p $WORK/_/tmp/scratch/_obj/ mkdir -p $WORK/_/tmp/scratch/_obj/exe/ cd /tmp/scratch /home/nt/go/pkg/tool/linux_amd64/compile -o $WORK/_/tmp/scratch.a -trimpath $WORK -p main -buildid acfccd74ae478f8fecc64195dd5e90e7757cec11 -D _/tmp/scratch -I $WORK -pack -asmhdr $WORK/_/tmp/scratch/_obj/go_asm.h ./main.go ./x_other.go /home/nt/go/pkg/tool/linux_amd64/asm -o $WORK/_/tmp/scratch/_obj/x_amd64.o -trimpath $WORK -I $WORK/_/tmp/scratch/_obj/ -I /home/nt/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./x_amd64.s pack r $WORK/_/tmp/scratch.a $WORK/_/tmp/scratch/_obj/x_amd64.o # internal cd . /home/nt/go/pkg/tool/linux_amd64/link -o $WORK/_/tmp/scratch/_obj/exe/a.out -L $WORK -extld=gcc -buildmode=exe -buildid=acfccd74ae478f8fecc64195dd5e90e7757cec11 $WORK/_/tmp/scratch.a mv $WORK/_/tmp/scratch/_obj/exe/a.out scratch 43 </code></pre></div> <p dir="auto">Still, something ain't right. Re-inserting that</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ return 42 }"><pre class="notranslate"><code class="notranslate">{ return 42 } </code></pre></div> <p dir="auto">into the x_other.go file gives:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ vim x_other.go $ cat x_other.go package main func foo() int { return 42 } $ go vet : x_amd64.s:1: [amd64] foo: function foo missing Go declaration exit status 1"><pre class="notranslate"><code class="notranslate">$ vim x_other.go $ cat x_other.go package main func foo() int { return 42 } $ go vet : x_amd64.s:1: [amd64] foo: function foo missing Go declaration exit status 1 </code></pre></div>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <ol dir="auto"> <li>What version of Go are you using (<code class="notranslate">go version</code>)?</li> </ol> <p dir="auto">go version devel +beabd87 Tue Mar 8 06:02:15 2016 +0000 freebsd/amd64</p> <ol dir="auto"> <li>What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</li> </ol> <pre class="notranslate">GOARCH="amd64" GOBIN="/home/rhinofly/home/ds/sandspace/go/bin.freebsd-amd64" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="freebsd" GOOS="freebsd" GOPATH="/home/rhinofly/home/ds/sandspace/external/:/home/rhinofly/home/ds/sandspace/golibs/" GORACE="" GOROOT="/home/rhinofly/home/ds/sandspace/go" GOTOOLDIR="/home/rhinofly/home/ds/sandspace/go/pkg/tool/freebsd_amd64" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -gno-record-gcc-switches" CXX="clang++" CGO_ENABLED="1" </pre> <pre class="notranslate">$ ifconfig -a em0: flags=8843 metric 0 mtu 1500 options=209b ether 66:30:38:38:64:30 inet 10.236.12.201 netmask 0xffffff00 broadcast 10.236.12.255 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 groups: lo </pre> <pre class="notranslate">$ uname -a FreeBSD rhinofly-devel-800201.localdomain 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r295683: Wed Feb 17 02:07:17 UTC 2016 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64 </pre> <ol dir="auto"> <li>What did you do?<br> (Use play.golang.org to provide a runnable example, if possible.)</li> </ol> <p dir="auto">git clone <a href="https://github.com/golang/go.git">https://github.com/golang/go.git</a> tips-go &amp;&amp; cd tips-go/src &amp;&amp; ./all.bash</p> <ol dir="auto"> <li>What did you expect to see?</li> </ol> <p dir="auto">build done without error and warning.</p> <ol dir="auto"> <li>What did you see instead? <pre class="notranslate">--- FAIL: TestInterfaces (0.00s) interface_test.go:74: route ip+net: invalid network interface name FAIL FAIL net 2.240s </pre> </li> </ol> <p dir="auto">detail data by fmt.Printf(%v):</p> <pre class="notranslate">all interfaces data: ift=[{1 1500 dc:05:00:00:00:00:00:00:00:ca:9a:3b:00:00:00:00:94:49:13:00:00:00:00:00:00:00:00:00:00:00:00:00:1f:61:0a:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:44:63:57:67:00:00:00:00:08:dc:76:04:00:00:00:00:18:1f:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:06:00:00:00:00:00:00:00:01:00:00:00:00:00:00:00:6b:f0:dc:56:00:00:00:00:3f:f6:05:00:00:00:00:00:38:12:01:00:06:03:06:00 up|broadcast|multicast} {2 16384 00:40:00:00:00:00:00:00:00:00:00:00:00:00:00:00:9d:ac:01:00:00:00:00:00:00:00:00:00:00:00:00:00:9d:ac:01:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:2b:d2:32:0c:00:00:00:00:2b:d2:32:0c:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:0f:0e:00:00:00:00:00:00:01:00:00:00:00:00:00:00:6a:f0:dc:56:00:00:00:00:5d:8e:08:00:00:00:00:00:38:12:02:00:18:03:00:00 up|loopback|multicast}] test failed: ifi={1 1500 dc:05:00:00:00:00:00:00:00:ca:9a:3b:00:00:00:00:94:49:13:00:00:00:00:00:00:00:00:00:00:00:00:00:1f:61:0a:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:44:63:57:67:00:00:00:00:08:dc:76:04:00:00:00:00:18:1f:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:06:00:00:00:00:00:00:00:01:00:00:00:00:00:00:00:6b:f0:dc:56:00:00:00:00:3f:f6:05:00:00:00:00:00:38:12:01:00:06:03:06:00 up|broadcast|multicast}, ifxn-, err=route ip+net: invalid network interface name </pre>
0
<p dir="auto">When performing a hot reload in an application which uses a plugin with background execution, the background isolate is not updated with the latest code.</p>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">For my App i using the TabbarView(). On the Profile Page i get bottom overflow issue, when the keyboard open...</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/27279514/43768420-99039b2a-9a37-11e8-93bf-6affa09dc9cb.gif"><img src="https://user-images.githubusercontent.com/27279514/43768420-99039b2a-9a37-11e8-93bf-6affa09dc9cb.gif" alt="textfield_issue_tabbarview" data-animated-image="" style="max-width: 100%;"></a></p> <h3 dir="auto">Tabbar Controller Page</h3> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@override Widget build(BuildContext context) { return new Scaffold( body: new TabBarView( controller: _tabController, children: &lt;Widget&gt;[ new Home(), new CreateEvent(), new Profile( auth: widget.auth, onSignedOut: widget.onSignedOut, ), ], ), bottomNavigationBar: Container( decoration: BoxDecoration( color: Colors.white, boxShadow: &lt;BoxShadow&gt;[ new BoxShadow( color: const Color.fromARGB(255, 173, 183, 189), offset: new Offset(0.0, 0.0), blurRadius: 5.0, ), ], ), child: TabBar( controller: _tabController, indicatorColor: Colors.white, unselectedLabelColor: Colors.grey, labelColor: Theme.of(context).primaryColor, tabs: &lt;Widget&gt;[ Tab( icon: Icon(Icons.home), ), Tab( icon: Icon( Icons.add_box, ), ), Tab( icon: Icon(Icons.account_box), ) ], ), ), ); } }"><pre class="notranslate"><span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Scaffold</span>( body<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TabBarView</span>( controller<span class="pl-k">:</span> _tabController, children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">Home</span>(), <span class="pl-k">new</span> <span class="pl-c1">CreateEvent</span>(), <span class="pl-k">new</span> <span class="pl-c1">Profile</span>( auth<span class="pl-k">:</span> widget.auth, onSignedOut<span class="pl-k">:</span> widget.onSignedOut, ), ], ), bottomNavigationBar<span class="pl-k">:</span> <span class="pl-c1">Container</span>( decoration<span class="pl-k">:</span> <span class="pl-c1">BoxDecoration</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.white, boxShadow<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">BoxShadow</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">BoxShadow</span>( color<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Color</span>.<span class="pl-en">fromARGB</span>(<span class="pl-c1">255</span>, <span class="pl-c1">173</span>, <span class="pl-c1">183</span>, <span class="pl-c1">189</span>), offset<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Offset</span>(<span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span>), blurRadius<span class="pl-k">:</span> <span class="pl-c1">5.0</span>, ), ], ), child<span class="pl-k">:</span> <span class="pl-c1">TabBar</span>( controller<span class="pl-k">:</span> _tabController, indicatorColor<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.white, unselectedLabelColor<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.grey, labelColor<span class="pl-k">:</span> <span class="pl-c1">Theme</span>.<span class="pl-en">of</span>(context).primaryColor, tabs<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-c1">Tab</span>( icon<span class="pl-k">:</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.home), ), <span class="pl-c1">Tab</span>( icon<span class="pl-k">:</span> <span class="pl-c1">Icon</span>( <span class="pl-c1">Icons</span>.add_box, ), ), <span class="pl-c1">Tab</span>( icon<span class="pl-k">:</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.account_box), ) ], ), ), ); } }</pre></div> <h3 dir="auto">Profile Page</h3> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@override Widget build(BuildContext context) { print(auth.getCurrentUserEmail()); return Scaffold( appBar: AppBar( title: Text('Profile'), ), body: Container( color: Color.fromARGB(255, 220, 220, 220), child: Form( child: Column( children: &lt;Widget&gt;[ Container( margin: EdgeInsets.only(top: 20.0), decoration: BoxDecoration( color: Colors.white, ), child: buildEmailTextField(), ), Container( margin: EdgeInsets.only(top: 20.0), decoration: BoxDecoration( color: Colors.white, ), child: buildUsernameTextField(), ), Container( margin: EdgeInsets.only(top: 20.0,), child: RaisedButton( textColor: Colors.white, color: Color.fromARGB(255, 120, 27, 35), child: Text('LOGOUT'), onPressed: _signOut, ), ) ], ), ), ), ); } }"><pre class="notranslate"><span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-en">print</span>(auth.<span class="pl-en">getCurrentUserEmail</span>()); <span class="pl-k">return</span> <span class="pl-c1">Scaffold</span>( appBar<span class="pl-k">:</span> <span class="pl-c1">AppBar</span>( title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Profile'</span>), ), body<span class="pl-k">:</span> <span class="pl-c1">Container</span>( color<span class="pl-k">:</span> <span class="pl-c1">Color</span>.<span class="pl-en">fromARGB</span>(<span class="pl-c1">255</span>, <span class="pl-c1">220</span>, <span class="pl-c1">220</span>, <span class="pl-c1">220</span>), child<span class="pl-k">:</span> <span class="pl-c1">Form</span>( child<span class="pl-k">:</span> <span class="pl-c1">Column</span>( children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-c1">Container</span>( margin<span class="pl-k">:</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(top<span class="pl-k">:</span> <span class="pl-c1">20.0</span>), decoration<span class="pl-k">:</span> <span class="pl-c1">BoxDecoration</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.white, ), child<span class="pl-k">:</span> <span class="pl-en">buildEmailTextField</span>(), ), <span class="pl-c1">Container</span>( margin<span class="pl-k">:</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(top<span class="pl-k">:</span> <span class="pl-c1">20.0</span>), decoration<span class="pl-k">:</span> <span class="pl-c1">BoxDecoration</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.white, ), child<span class="pl-k">:</span> <span class="pl-en">buildUsernameTextField</span>(), ), <span class="pl-c1">Container</span>( margin<span class="pl-k">:</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(top<span class="pl-k">:</span> <span class="pl-c1">20.0</span>,), child<span class="pl-k">:</span> <span class="pl-c1">RaisedButton</span>( textColor<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.white, color<span class="pl-k">:</span> <span class="pl-c1">Color</span>.<span class="pl-en">fromARGB</span>(<span class="pl-c1">255</span>, <span class="pl-c1">120</span>, <span class="pl-c1">27</span>, <span class="pl-c1">35</span>), child<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'LOGOUT'</span>), onPressed<span class="pl-k">:</span> _signOut, ), ) ], ), ), ), ); } }</pre></div> <h2 dir="auto">Logs</h2> <h3 dir="auto">flutter run --verbose</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ +35 ms] [/Volumes/DEV/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +43 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/dev [ ] [/Volumes/DEV/flutter/] git rev-parse --abbrev-ref HEAD [ +13 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] dev [ ] [/Volumes/DEV/flutter/] git ls-remote --get-url origin [ +12 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [/Volumes/DEV/flutter/] git log -n 1 --pretty=format:%H [ +27 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 66091f969653fd3535b265ddcd87436901858a1d [ +1 ms] [/Volumes/DEV/flutter/] git log -n 1 --pretty=format:%ar [ +13 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 4 weeks ago [ +1 ms] [/Volumes/DEV/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +24 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.5.7-0-g66091f969 [ +159 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +56 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 3.1 [ +236 ms] /Volumes/DEV/Android/sdk/platform-tools/adb devices -l [ +9 ms] Exit code 0 from: /Volumes/DEV/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached emulator-5554 device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:2 [ +10 ms] idevice_id -h [ +75 ms] which ideviceinstaller [ +5 ms] Exit code 0 from: which ideviceinstaller [ ] /usr/local/bin/ideviceinstaller [ ] which iproxy [ +5 ms] Exit code 0 from: which iproxy [ ] /usr/local/bin/iproxy [ +30 ms] which ideviceinstaller [ +6 ms] Exit code 0 from: which ideviceinstaller [ ] /usr/local/bin/ideviceinstaller [ ] which iproxy [ +4 ms] Exit code 0 from: which iproxy [ ] /usr/local/bin/iproxy [+1808 ms] /usr/bin/xcrun simctl list --json devices [ +135 ms] More than one device connected; please specify a device with the '-d &lt;deviceId&gt;' flag, or use '-d all' to act on all devices. [ +4 ms] /Volumes/DEV/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop [ +109 ms] ro.hardware = ranchu [ +4 ms] Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator) [ ] Niklas iPhone • b47a5be21426ba0ed7c4976ce2bfaedbf44acf4a • ios • iOS 11.4 [ ] iPhone 6 • C3477E4C-BEA7-4532-BEBC-28120BC4F22D • ios • iOS 11.4 (simulator) [ +11 ms] &quot;flutter run&quot; took 2.608ms. #0 throwToolExit (package:flutter_tools/src/base/common.dart:26) #1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:255) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:326) &lt;asynchronous suspension&gt; #3 FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:282) &lt;asynchronous suspension&gt; #4 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #5 _rootRun (dart:async/zone.dart:1126) #6 _CustomZone.run (dart:async/zone.dart:1023) #7 _runZoned (dart:async/zone.dart:1518) #8 runZoned (dart:async/zone.dart:1465) #9 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #10 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:273) #11 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #12 FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:322) &lt;asynchronous suspension&gt; #13 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #14 _rootRun (dart:async/zone.dart:1126) #15 _CustomZone.run (dart:async/zone.dart:1023) #16 _runZoned (dart:async/zone.dart:1518) #17 runZoned (dart:async/zone.dart:1465) #18 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #19 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:278) &lt;asynchronous suspension&gt; #20 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #21 new Future.sync (dart:async/future.dart:222) #22 CommandRunner.run (package:args/command_runner.dart:109) #23 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:187) #24 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:59) &lt;asynchronous suspension&gt; #25 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #26 _rootRun (dart:async/zone.dart:1126) #27 _CustomZone.run (dart:async/zone.dart:1023) #28 _runZoned (dart:async/zone.dart:1518) #29 runZoned (dart:async/zone.dart:1465) #30 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #31 runInContext (package:flutter_tools/src/context_runner.dart:42) &lt;asynchronous suspension&gt; #32 run (package:flutter_tools/runner.dart:50) #33 main (package:flutter_tools/executable.dart:50) &lt;asynchronous suspension&gt; #34 main (file:///Volumes/DEV/flutter/packages/flutter_tools/bin/flutter_tools.dart:8) #35 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #36 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)"><pre class="notranslate"><code class="notranslate">[ +35 ms] [/Volumes/DEV/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +43 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/dev [ ] [/Volumes/DEV/flutter/] git rev-parse --abbrev-ref HEAD [ +13 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] dev [ ] [/Volumes/DEV/flutter/] git ls-remote --get-url origin [ +12 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [/Volumes/DEV/flutter/] git log -n 1 --pretty=format:%H [ +27 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 66091f969653fd3535b265ddcd87436901858a1d [ +1 ms] [/Volumes/DEV/flutter/] git log -n 1 --pretty=format:%ar [ +13 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 4 weeks ago [ +1 ms] [/Volumes/DEV/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +24 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.5.7-0-g66091f969 [ +159 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +56 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 3.1 [ +236 ms] /Volumes/DEV/Android/sdk/platform-tools/adb devices -l [ +9 ms] Exit code 0 from: /Volumes/DEV/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached emulator-5554 device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:2 [ +10 ms] idevice_id -h [ +75 ms] which ideviceinstaller [ +5 ms] Exit code 0 from: which ideviceinstaller [ ] /usr/local/bin/ideviceinstaller [ ] which iproxy [ +5 ms] Exit code 0 from: which iproxy [ ] /usr/local/bin/iproxy [ +30 ms] which ideviceinstaller [ +6 ms] Exit code 0 from: which ideviceinstaller [ ] /usr/local/bin/ideviceinstaller [ ] which iproxy [ +4 ms] Exit code 0 from: which iproxy [ ] /usr/local/bin/iproxy [+1808 ms] /usr/bin/xcrun simctl list --json devices [ +135 ms] More than one device connected; please specify a device with the '-d &lt;deviceId&gt;' flag, or use '-d all' to act on all devices. [ +4 ms] /Volumes/DEV/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop [ +109 ms] ro.hardware = ranchu [ +4 ms] Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator) [ ] Niklas iPhone • b47a5be21426ba0ed7c4976ce2bfaedbf44acf4a • ios • iOS 11.4 [ ] iPhone 6 • C3477E4C-BEA7-4532-BEBC-28120BC4F22D • ios • iOS 11.4 (simulator) [ +11 ms] "flutter run" took 2.608ms. #0 throwToolExit (package:flutter_tools/src/base/common.dart:26) #1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:255) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:326) &lt;asynchronous suspension&gt; #3 FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:282) &lt;asynchronous suspension&gt; #4 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #5 _rootRun (dart:async/zone.dart:1126) #6 _CustomZone.run (dart:async/zone.dart:1023) #7 _runZoned (dart:async/zone.dart:1518) #8 runZoned (dart:async/zone.dart:1465) #9 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #10 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:273) #11 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #12 FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:322) &lt;asynchronous suspension&gt; #13 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #14 _rootRun (dart:async/zone.dart:1126) #15 _CustomZone.run (dart:async/zone.dart:1023) #16 _runZoned (dart:async/zone.dart:1518) #17 runZoned (dart:async/zone.dart:1465) #18 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #19 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:278) &lt;asynchronous suspension&gt; #20 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #21 new Future.sync (dart:async/future.dart:222) #22 CommandRunner.run (package:args/command_runner.dart:109) #23 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:187) #24 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:59) &lt;asynchronous suspension&gt; #25 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #26 _rootRun (dart:async/zone.dart:1126) #27 _CustomZone.run (dart:async/zone.dart:1023) #28 _runZoned (dart:async/zone.dart:1518) #29 runZoned (dart:async/zone.dart:1465) #30 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #31 runInContext (package:flutter_tools/src/context_runner.dart:42) &lt;asynchronous suspension&gt; #32 run (package:flutter_tools/runner.dart:50) #33 main (package:flutter_tools/executable.dart:50) &lt;asynchronous suspension&gt; #34 main (file:///Volumes/DEV/flutter/packages/flutter_tools/bin/flutter_tools.dart:8) #35 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #36 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) </code></pre></div> <h3 dir="auto">flutter analyze</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing events... warning • This function declares a return type of 'Widget', but doesn't end with a return statement • lib/root_page.dart:51:3 1 issue found. (ran in 3.5s)"><pre class="notranslate"><code class="notranslate">Analyzing events... warning • This function declares a return type of 'Widget', but doesn't end with a return statement • lib/root_page.dart:51:3 1 issue found. (ran in 3.5s) </code></pre></div> <h3 dir="auto">flutter doctor -v</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel dev, v0.5.7, on Mac OS X 10.13.2 17C88, locale de-DE) • Flutter version 0.5.7 at /Volumes/DEV/flutter • Framework revision 66091f9696 (4 weeks ago), 2018-07-09 12:52:41 -0700 • Engine revision 6fe748490d • Dart version 2.0.0-dev.63.0.flutter-4c9689c1d2 [✓] Android toolchain - develop for Android devices (Android SDK 28.0.1) • Android SDK at /Volumes/DEV/Android/sdk/ • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.1 • ANDROID_HOME = /Volumes/DEV/Android/sdk/ • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.4.1, Build version 9F2000 • ios-deploy 1.9.2 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] VS Code (version 1.25.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.16.0 [✓] Connected devices (3 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator) • Niklas iPhone • b47a5be21426ba0ed7c4976ce2bfaedbf44acf4a • ios • iOS 11.4 • iPhone 6 • C3477E4C-BEA7-4532-BEBC-28120BC4F22D • ios • iOS 11.4 (simulator) • No issues found! "><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel dev, v0.5.7, on Mac OS X 10.13.2 17C88, locale de-DE) • Flutter version 0.5.7 at /Volumes/DEV/flutter • Framework revision 66091f9696 (4 weeks ago), 2018-07-09 12:52:41 -0700 • Engine revision 6fe748490d • Dart version 2.0.0-dev.63.0.flutter-4c9689c1d2 [✓] Android toolchain - develop for Android devices (Android SDK 28.0.1) • Android SDK at /Volumes/DEV/Android/sdk/ • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.1 • ANDROID_HOME = /Volumes/DEV/Android/sdk/ • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.4.1, Build version 9F2000 • ios-deploy 1.9.2 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] VS Code (version 1.25.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.16.0 [✓] Connected devices (3 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator) • Niklas iPhone • b47a5be21426ba0ed7c4976ce2bfaedbf44acf4a • ios • iOS 11.4 • iPhone 6 • C3477E4C-BEA7-4532-BEBC-28120BC4F22D • ios • iOS 11.4 (simulator) • No issues found! </code></pre></div>
0
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I start a SimpleDialog with a list in it . When I start the Dialog on the phone all is fine. In the emulator I get an exception which does not provide info to get to the root cause or useable information. (for me ;))<br> Phone and Emulator:<br> • Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)<br> • Moto G 5 Plus • ZY224DHFWG • android-arm • Android 7.0 (API 24)</p> <p dir="auto">After simplifying the code I could reproduce the behavior with this simple code.<br> The error shows up on the emulator only it renders fine on my phone (Moto G5plus and Pixel). Also using shrinkWrap does not make a difference:</p> <p dir="auto">I also checked these other defects bt it seems the error message is still not helping to get to the problem and I dont know why I actually need any height setting in the code snippet below.</p> <p dir="auto">These are the related defects:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="209315911" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/8321" data-hovercard-type="pull_request" data-hovercard-url="/flutter/flutter/pull/8321/hovercard" href="https://github.com/flutter/flutter/pull/8321">#8321</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="209110739" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/8296" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/8296/hovercard" href="https://github.com/flutter/flutter/issues/8296">#8296</a></p> <p dir="auto"><strong>Does not work in Emulator</strong></p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" _showDialog(BuildContext context) =&gt; showDialog&lt;Null&gt;( context: context, child: new SimpleDialog(children: &lt;Widget&gt;[ new ListView( // shrinkWrap: true, // addRepaintBoundaries: true, children: &lt;Widget&gt;[ const Text('1'), const Text('2'), const Text('3'), const Text('4') ]) ])); "><pre class="notranslate"> <span class="pl-en">_showDialog</span>(<span class="pl-c1">BuildContext</span> context) <span class="pl-k">=&gt;</span> <span class="pl-en">showDialog</span>&lt;<span class="pl-c1">Null</span>&gt;( context<span class="pl-k">:</span> context, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">SimpleDialog</span>(children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">ListView</span>( <span class="pl-c">// shrinkWrap: true,</span> <span class="pl-c">// addRepaintBoundaries: true,</span> children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'1'</span>), <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'2'</span>), <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'3'</span>), <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'4'</span>) ]) ])); </pre></div> <p dir="auto"><strong>Does not work in emulator:</strong></p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" onTap: () =&gt; showDialog&lt;String&gt;( context: context, child: new SimpleDialog(children: &lt;Widget&gt;[ new Container( height: MediaQuery.of(context).size.height * 0.5, width: double.INFINITY, child: new ListView( shrinkWrap: true, children: &lt;Widget&gt;[ const Text('1'), const Text('2'), const Text('3'), const Text('4') ])) ])),"><pre class="notranslate"> onTap<span class="pl-k">:</span> () <span class="pl-k">=&gt;</span> <span class="pl-en">showDialog</span>&lt;<span class="pl-c1">String</span>&gt;( context<span class="pl-k">:</span> context, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">SimpleDialog</span>(children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">Container</span>( height<span class="pl-k">:</span> <span class="pl-c1">MediaQuery</span>.<span class="pl-en">of</span>(context).size.height <span class="pl-k">*</span> <span class="pl-c1">0.5</span>, width<span class="pl-k">:</span> <span class="pl-c1">double</span>.<span class="pl-c1">INFINITY</span>, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">ListView</span>( shrinkWrap<span class="pl-k">:</span> <span class="pl-c1">true</span>, children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'1'</span>), <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'2'</span>), <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'3'</span>), <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'4'</span>) ])) ])),</pre></div> <p dir="auto"><strong>Does work in Emulator</strong></p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" onTap: () =&gt; showDialog&lt;String&gt;( context: context, child: new SimpleDialog(children: &lt;Widget&gt;[ new Container( height: MediaQuery.of(context).size.height * 0.5, width: MediaQuery.of(context).size.width * 0.5, child: new ListView( shrinkWrap: true, children: &lt;Widget&gt;[ const Text('1'), const Text('2'), const Text('3'), const Text('4') ])) ])), "><pre class="notranslate"> onTap<span class="pl-k">:</span> () <span class="pl-k">=&gt;</span> <span class="pl-en">showDialog</span>&lt;<span class="pl-c1">String</span>&gt;( context<span class="pl-k">:</span> context, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">SimpleDialog</span>(children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">Container</span>( height<span class="pl-k">:</span> <span class="pl-c1">MediaQuery</span>.<span class="pl-en">of</span>(context).size.height <span class="pl-k">*</span> <span class="pl-c1">0.5</span>, width<span class="pl-k">:</span> <span class="pl-c1">MediaQuery</span>.<span class="pl-en">of</span>(context).size.width <span class="pl-k">*</span> <span class="pl-c1">0.5</span>, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">ListView</span>( shrinkWrap<span class="pl-k">:</span> <span class="pl-c1">true</span>, children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'1'</span>), <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'2'</span>), <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'3'</span>), <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'4'</span>) ])) ])), </pre></div> <h2 dir="auto">Exception Log</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] I/flutter (31525): 158 2018-01-09 23:55:45.322504 FINEST ui.chat_message_widget.dart: _renderImage -&gt; [ ] I/flutter (31525): message.mediaUrl : https://firebasestorage.googleapis.com/v0/b/lambdbdev.appspot.com/o/test_showcase%2FZvN0bw7GMMaZ9N3UotByzH8zFb33%2FZvN0bw7GMMaZ9N3UotByzH8zFb33%2Fimage_e4370613-a4be-4237-8087-eab74b5416e2.jpg?alt=media&amp;token=c9452337-361c-4682-a03f-a199f77ec615, https://firebasestorage.googleapis.com/v0/b/lambdbdev.appspot.com/o/test_showcase%2FZvN0bw7GMMaZ9N3UotByzH8zFb33%2FZvN0bw7GMMaZ9N3UotByzH8zFb33%2Fimage_e4370613-a4be-4237-8087-eab74b5416e2_thumb.jpg?alt=media&amp;token=c9452337-361c-4682-a03f-a199f77ec615 [ ] I/flutter (31525): message.mediaIsUploading : false [ ] I/flutter (31525): message.mediaSize.x : 2268 [ ] I/flutter (31525): message.mediaSize.y : 4032 [ ] I/flutter (31525): message.readByUsers : {} [ ] I/flutter (31525): message.isMediaUploadFailed : false [ +2 ms] I/flutter (31525): 159 2018-01-09 23:55:45.324700 FINEST ui.busy_overlay.dart: isLoading: {false} [ ] I/flutter (31525): supportsIsLoading: {true} [ ] I/flutter (31525): height: {4032.0} [ ] I/flutter (31525): width: {2268.0} [ ] I/flutter (31525): child: {FadeInImage} [ ] I/flutter (31525): borderRadius: {BorderRadius.circular(25.0)} [ +127 ms] I/flutter (31525): 160 2018-01-09 23:55:45.453467 SEVERE lookatmybaby_flutter.sentry_error_reporter: Context: during performLayout(), library: rendering library [ +2 ms] I/flutter (31525): error: RenderShrinkWrappingViewport does not support returning intrinsic dimensions. [ ] I/flutter (31525): Calculating the intrinsic dimensions would require instantiating every child of the viewport, which defeats the point of viewports being lazy. [ ] I/flutter (31525): If you are merely trying to shrink-wrap the viewport in the main axis direction, you should be able to achieve that effect by just giving the viewport loose constraints, without needing to measure its intrinsic dimensions. [ +7 ms] I/flutter (31525): #0 RenderShrinkWrappingViewport.debugThrowIfNotCheckingIntrinsics.&lt;anonymous closure&gt; (package:flutter/src/rendering/viewport.dart:1211) [ ] I/flutter (31525): #1 RenderShrinkWrappingViewport.debugThrowIfNotCheckingIntrinsics (package:flutter/src/rendering/viewport.dart:1221) [ ] I/flutter (31525): #2 RenderViewportBase.computeMaxIntrinsicHeight (package:flutter/src/rendering/viewport.dart:229) [ ] I/flutter (31525): #3 RenderBox._computeIntrinsicDimension.&lt;anonymous closure&gt; (package:flutter/src/rendering/box.dart:1050) [ ] I/flutter (31525): #4 _HashVMBase&amp;MapMixin&amp;&amp;_LinkedHashMapMixin.putIfAbsent (dart:collection-patch/dart:collection/compact_hash.dart:275) [ ] I/flutter (31525): #5 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1048) [ ] I/flutter (31525): #6 RenderBox.getMaxIntrinsicHeight (package:flutter/src/rendering/box.dart:1381) [ ] I/flutter (31525): #7 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.computeMaxIntrinsicHeight (package:flutter/src/rendering/proxy_box.dart:91) [ ] I/flutter (31525): #8 RenderBox._computeIntrinsicDimension.&lt;anonymous closure&gt; (package:flutter/src/rendering/box.dar [ ] I/flutter (31525): 161 2018-01-09 23:55:45.463717 SEVERE lookatmybaby_flutter.sentry_error_reporter: Context: during performLayout(), library: rendering library [ ] I/flutter (31525): error: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1433: 'hasSize': is not true. [ +2 ms] I/flutter (31525): #0 _AssertionError._doThrowNew (dart:core-patch/dart:core/errors_patch.dart:37) [ ] I/flutter (31525): #1 _AssertionError._throwNew (dart:core-patch/dart:core/errors_patch.dart:33) [ ] I/flutter (31525): #2 RenderBox.size (package:flutter/src/rendering/box.dart:1433) [ ] I/flutter (31525): #3 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:106) [ ] I/flutter (31525): #4 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #5 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105) [ ] I/flutter (31525): #6 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1003) [ ] I/flutter (31525): #7 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #8 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:255) [ ] I/flutter (31525): #9 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #10 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199) [ ] I/flutter (31525): #11 RenderObject [ ] I/flutter (31525): 162 2018-01-09 23:55:45.468066 SEVERE lookatmybaby_flutter.sentry_error_reporter: Context: during performLayout(), library: rendering library [ ] I/flutter (31525): error: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1433: 'hasSize': is not true. [ +3 ms] I/flutter (31525): #0 _AssertionError._doThrowNew (dart:core-patch/dart:core/errors_patch.dart:37) [ ] I/flutter (31525): #1 _AssertionError._throwNew (dart:core-patch/dart:core/errors_patch.dart:33) [ ] I/flutter (31525): #2 RenderBox.size (package:flutter/src/rendering/box.dart:1433) [ ] I/flutter (31525): #3 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:106) [ ] I/flutter (31525): #4 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1003) [ ] I/flutter (31525): #5 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #6 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:255) [ ] I/flutter (31525): #7 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #8 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199) [ ] I/flutter (31525): #9 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #10 RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:381) [ ] I/flutter (31525): #11 RenderObject.layout (package:flutter/src/render [ ] I/flutter (31525): 163 2018-01-09 23:55:45.472362 SEVERE lookatmybaby_flutter.sentry_error_reporter: Context: during performLayout(), library: rendering library [ ] I/flutter (31525): error: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1433: 'hasSize': is not true. [ +1 ms] I/flutter (31525): #0 _AssertionError._doThrowNew (dart:core-patch/dart:core/errors_patch.dart:37) [ ] I/flutter (31525): #1 _AssertionError._throwNew (dart:core-patch/dart:core/errors_patch.dart:33) [ ] I/flutter (31525): #2 RenderBox.size (package:flutter/src/rendering/box.dart:1433) [ ] I/flutter (31525): #3 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:256) [ ] I/flutter (31525): #4 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #5 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199) [ ] I/flutter (31525): #6 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #7 RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:381) [ ] I/flutter (31525): #8 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #9 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105) [ ] I/flutter (31525): #10 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #11 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.perfo [ +1 ms] I/flutter (31525): 164 2018-01-09 23:55:45.475519 SEVERE lookatmybaby_flutter.sentry_error_reporter: Context: during performLayout(), library: rendering library [ ] I/flutter (31525): error: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1433: 'hasSize': is not true. [ +3 ms] I/flutter (31525): #0 _AssertionError._doThrowNew (dart:core-patch/dart:core/errors_patch.dart:37) [ ] I/flutter (31525): #1 _AssertionError._throwNew (dart:core-patch/dart:core/errors_patch.dart:33) [ ] I/flutter (31525): #2 RenderBox.size (package:flutter/src/rendering/box.dart:1433) [ ] I/flutter (31525): #3 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:203) [ ] I/flutter (31525): #4 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #5 RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:381) [ ] I/flutter (31525): #6 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #7 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105) [ ] I/flutter (31525): #8 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #9 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105) [ ] I/flutter (31525): #10 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #11 RenderBox&amp;RenderObjectWith "><pre class="notranslate"><code class="notranslate">[ ] I/flutter (31525): 158 2018-01-09 23:55:45.322504 FINEST ui.chat_message_widget.dart: _renderImage -&gt; [ ] I/flutter (31525): message.mediaUrl : https://firebasestorage.googleapis.com/v0/b/lambdbdev.appspot.com/o/test_showcase%2FZvN0bw7GMMaZ9N3UotByzH8zFb33%2FZvN0bw7GMMaZ9N3UotByzH8zFb33%2Fimage_e4370613-a4be-4237-8087-eab74b5416e2.jpg?alt=media&amp;token=c9452337-361c-4682-a03f-a199f77ec615, https://firebasestorage.googleapis.com/v0/b/lambdbdev.appspot.com/o/test_showcase%2FZvN0bw7GMMaZ9N3UotByzH8zFb33%2FZvN0bw7GMMaZ9N3UotByzH8zFb33%2Fimage_e4370613-a4be-4237-8087-eab74b5416e2_thumb.jpg?alt=media&amp;token=c9452337-361c-4682-a03f-a199f77ec615 [ ] I/flutter (31525): message.mediaIsUploading : false [ ] I/flutter (31525): message.mediaSize.x : 2268 [ ] I/flutter (31525): message.mediaSize.y : 4032 [ ] I/flutter (31525): message.readByUsers : {} [ ] I/flutter (31525): message.isMediaUploadFailed : false [ +2 ms] I/flutter (31525): 159 2018-01-09 23:55:45.324700 FINEST ui.busy_overlay.dart: isLoading: {false} [ ] I/flutter (31525): supportsIsLoading: {true} [ ] I/flutter (31525): height: {4032.0} [ ] I/flutter (31525): width: {2268.0} [ ] I/flutter (31525): child: {FadeInImage} [ ] I/flutter (31525): borderRadius: {BorderRadius.circular(25.0)} [ +127 ms] I/flutter (31525): 160 2018-01-09 23:55:45.453467 SEVERE lookatmybaby_flutter.sentry_error_reporter: Context: during performLayout(), library: rendering library [ +2 ms] I/flutter (31525): error: RenderShrinkWrappingViewport does not support returning intrinsic dimensions. [ ] I/flutter (31525): Calculating the intrinsic dimensions would require instantiating every child of the viewport, which defeats the point of viewports being lazy. [ ] I/flutter (31525): If you are merely trying to shrink-wrap the viewport in the main axis direction, you should be able to achieve that effect by just giving the viewport loose constraints, without needing to measure its intrinsic dimensions. [ +7 ms] I/flutter (31525): #0 RenderShrinkWrappingViewport.debugThrowIfNotCheckingIntrinsics.&lt;anonymous closure&gt; (package:flutter/src/rendering/viewport.dart:1211) [ ] I/flutter (31525): #1 RenderShrinkWrappingViewport.debugThrowIfNotCheckingIntrinsics (package:flutter/src/rendering/viewport.dart:1221) [ ] I/flutter (31525): #2 RenderViewportBase.computeMaxIntrinsicHeight (package:flutter/src/rendering/viewport.dart:229) [ ] I/flutter (31525): #3 RenderBox._computeIntrinsicDimension.&lt;anonymous closure&gt; (package:flutter/src/rendering/box.dart:1050) [ ] I/flutter (31525): #4 _HashVMBase&amp;MapMixin&amp;&amp;_LinkedHashMapMixin.putIfAbsent (dart:collection-patch/dart:collection/compact_hash.dart:275) [ ] I/flutter (31525): #5 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1048) [ ] I/flutter (31525): #6 RenderBox.getMaxIntrinsicHeight (package:flutter/src/rendering/box.dart:1381) [ ] I/flutter (31525): #7 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.computeMaxIntrinsicHeight (package:flutter/src/rendering/proxy_box.dart:91) [ ] I/flutter (31525): #8 RenderBox._computeIntrinsicDimension.&lt;anonymous closure&gt; (package:flutter/src/rendering/box.dar [ ] I/flutter (31525): 161 2018-01-09 23:55:45.463717 SEVERE lookatmybaby_flutter.sentry_error_reporter: Context: during performLayout(), library: rendering library [ ] I/flutter (31525): error: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1433: 'hasSize': is not true. [ +2 ms] I/flutter (31525): #0 _AssertionError._doThrowNew (dart:core-patch/dart:core/errors_patch.dart:37) [ ] I/flutter (31525): #1 _AssertionError._throwNew (dart:core-patch/dart:core/errors_patch.dart:33) [ ] I/flutter (31525): #2 RenderBox.size (package:flutter/src/rendering/box.dart:1433) [ ] I/flutter (31525): #3 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:106) [ ] I/flutter (31525): #4 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #5 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105) [ ] I/flutter (31525): #6 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1003) [ ] I/flutter (31525): #7 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #8 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:255) [ ] I/flutter (31525): #9 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #10 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199) [ ] I/flutter (31525): #11 RenderObject [ ] I/flutter (31525): 162 2018-01-09 23:55:45.468066 SEVERE lookatmybaby_flutter.sentry_error_reporter: Context: during performLayout(), library: rendering library [ ] I/flutter (31525): error: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1433: 'hasSize': is not true. [ +3 ms] I/flutter (31525): #0 _AssertionError._doThrowNew (dart:core-patch/dart:core/errors_patch.dart:37) [ ] I/flutter (31525): #1 _AssertionError._throwNew (dart:core-patch/dart:core/errors_patch.dart:33) [ ] I/flutter (31525): #2 RenderBox.size (package:flutter/src/rendering/box.dart:1433) [ ] I/flutter (31525): #3 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:106) [ ] I/flutter (31525): #4 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1003) [ ] I/flutter (31525): #5 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #6 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:255) [ ] I/flutter (31525): #7 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #8 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199) [ ] I/flutter (31525): #9 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #10 RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:381) [ ] I/flutter (31525): #11 RenderObject.layout (package:flutter/src/render [ ] I/flutter (31525): 163 2018-01-09 23:55:45.472362 SEVERE lookatmybaby_flutter.sentry_error_reporter: Context: during performLayout(), library: rendering library [ ] I/flutter (31525): error: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1433: 'hasSize': is not true. [ +1 ms] I/flutter (31525): #0 _AssertionError._doThrowNew (dart:core-patch/dart:core/errors_patch.dart:37) [ ] I/flutter (31525): #1 _AssertionError._throwNew (dart:core-patch/dart:core/errors_patch.dart:33) [ ] I/flutter (31525): #2 RenderBox.size (package:flutter/src/rendering/box.dart:1433) [ ] I/flutter (31525): #3 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:256) [ ] I/flutter (31525): #4 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #5 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199) [ ] I/flutter (31525): #6 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #7 RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:381) [ ] I/flutter (31525): #8 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #9 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105) [ ] I/flutter (31525): #10 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #11 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.perfo [ +1 ms] I/flutter (31525): 164 2018-01-09 23:55:45.475519 SEVERE lookatmybaby_flutter.sentry_error_reporter: Context: during performLayout(), library: rendering library [ ] I/flutter (31525): error: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1433: 'hasSize': is not true. [ +3 ms] I/flutter (31525): #0 _AssertionError._doThrowNew (dart:core-patch/dart:core/errors_patch.dart:37) [ ] I/flutter (31525): #1 _AssertionError._throwNew (dart:core-patch/dart:core/errors_patch.dart:33) [ ] I/flutter (31525): #2 RenderBox.size (package:flutter/src/rendering/box.dart:1433) [ ] I/flutter (31525): #3 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:203) [ ] I/flutter (31525): #4 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #5 RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:381) [ ] I/flutter (31525): #6 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #7 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105) [ ] I/flutter (31525): #8 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #9 RenderBox&amp;RenderObjectWithChildMixin&amp;RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105) [ ] I/flutter (31525): #10 RenderObject.layout (package:flutter/src/rendering/object.dart:1551) [ ] I/flutter (31525): #11 RenderBox&amp;RenderObjectWith </code></pre></div> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Projects\lambDev\lookatmybaby_shared&gt;flutter doctor [√] Flutter (on Microsoft Windows [Version 10.0.16299.192], locale en-US, channel alpha) • Flutter at c:\sdks\flutter • Framework revision 8f65fec5f5 (4 weeks ago), 2017-12-12 09:50:14 -0800 • Engine revision edaecdc8b8 • Tools Dart version 1.25.0-dev.11.0 • Engine Dart version 2.0.0-edge.d8ae797298c3a6cf8dc9f4558707bd2672224d3e [√] Android toolchain - develop for Android devices (Android SDK 27.0.2) • Android SDK at C:\Users\ride4\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.2 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [√] Android Studio (version 3.0) • Android Studio at C:\Program Files\Android\Android Studio • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [√] IntelliJ IDEA Community Edition (version 2017.2) • Flutter plugin version 19.1 • Dart plugin version 172.4343.25 [√] Connected devices • Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator) • Moto G 5 Plus • ZY224DHFWG • android-arm • Android 7.0 (API 24) • Nexus 5 • 03b71506f0b4f6b6 • android-arm • Android 6.0.1 (API 23)"><pre class="notranslate"><code class="notranslate">C:\Projects\lambDev\lookatmybaby_shared&gt;flutter doctor [√] Flutter (on Microsoft Windows [Version 10.0.16299.192], locale en-US, channel alpha) • Flutter at c:\sdks\flutter • Framework revision 8f65fec5f5 (4 weeks ago), 2017-12-12 09:50:14 -0800 • Engine revision edaecdc8b8 • Tools Dart version 1.25.0-dev.11.0 • Engine Dart version 2.0.0-edge.d8ae797298c3a6cf8dc9f4558707bd2672224d3e [√] Android toolchain - develop for Android devices (Android SDK 27.0.2) • Android SDK at C:\Users\ride4\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.2 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [√] Android Studio (version 3.0) • Android Studio at C:\Program Files\Android\Android Studio • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [√] IntelliJ IDEA Community Edition (version 2017.2) • Flutter plugin version 19.1 • Dart plugin version 172.4343.25 [√] Connected devices • Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator) • Moto G 5 Plus • ZY224DHFWG • android-arm • Android 7.0 (API 24) • Nexus 5 • 03b71506f0b4f6b6 • android-arm • Android 6.0.1 (API 23) </code></pre></div>
<p dir="auto">The <code class="notranslate">AboutListTile</code> class that provides list of all licenses used by an app contains a lot of duplicates.</p> <p dir="auto">The class is located here: <a href="https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/about.dart">https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/about.dart</a></p> <p dir="auto">Please remove the duplicating entries.</p>
0
<p dir="auto">[f|t]s_module_loader has unnecessary duplicated code.</p>
<p dir="auto">Hello,</p> <p dir="auto">After trying for a couple of time on many different install, Deno does not seem to build on ARM platforms,</p> <p dir="auto">I know there is a bug that has been recently patched after the NAPI bug that occured :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Caused by: process didn't exit successfully: `/tmp/cargo-installOYnaBk/release/build/deno-007064bedc20ccfe/build-script-build` (exit status: 101) --- stderr thread 'main' panicked at 'Missing ./napi_sym/symbol_exports.json! This is a bug in napi_sym: Os { code: 2, kind: NotFound, message: &quot;No such file or directory&quot; }', /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/deno-1.26.1/build.rs:354:65 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish..."><pre class="notranslate"><code class="notranslate">Caused by: process didn't exit successfully: `/tmp/cargo-installOYnaBk/release/build/deno-007064bedc20ccfe/build-script-build` (exit status: 101) --- stderr thread 'main' panicked at 'Missing ./napi_sym/symbol_exports.json! This is a bug in napi_sym: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/deno-1.26.1/build.rs:354:65 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... </code></pre></div> <p dir="auto">This seems to be fixed on master however.. there's now something else on the main branch :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Building [=======================&gt; ] 886/887: deno(bin) error: linking with `cc` failed: exit status: 1 | = note: &quot;cc&quot; &quot;/tmp/rustc8figy5/symbols.o&quot; &quot;/tmp/cargo-installGMFLYG/release/deps/deno-a43bf147a58f1098.deno_emit-89aa5c977eb8594f.deno_emit.1c994cce-cgu.0.rcgu.o.rcgu.o&quot; &quot;-Wl,--as-needed&quot; &quot;-L&quot; &quot;/tmp/cargo-installGMFLYG/release/deps&quot; &quot;-L&quot; &quot;/tmp/cargo-installGMFLYG/release/gn_out/obj&quot; &quot;-L&quot; &quot;/tmp/cargo-installGMFLYG/release/build/ring-0beefcbac786742d/out&quot; &quot;-L&quot; &quot;/tmp/cargo-installGMFLYG/release/build/libsqlite3-sys-d2f30d487d144aaa/out&quot; &quot;-L&quot; &quot;/tmp/cargo-installGMFLYG/release/build/libffi-sys-8f5020895edb14cf/out/libffi-root/lib&quot; &quot;-L&quot; &quot;/tmp/cargo-installGMFLYG/release/build/libffi-sys-8f5020895edb14cf/out/libffi-root/lib64&quot; &quot;-L&quot; &quot;/tmp/cargo-installGMFLYG/release/build/lzzzz-58d69c089844a321/out&quot; &quot;-L&quot; &quot;/tmp/cargo-installGMFLYG/release/build/sys-info-f5ddac2bff6c14e9/out&quot; &quot;-L&quot; &quot;/tmp/cargo-installGMFLYG/release/build/zstd-sys-1a83c9d5fc0362a9/out&quot; &quot;-L&quot; &quot;/home/ubuntu/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib&quot; &quot;-Wl,-Bstatic&quot; &quot;/tmp/rustc8figy5/libzstd_sys-7e83e14319244e0d.rlib&quot; &quot;/tmp/rustc8figy5/libsys_info-8e8b0e45422ab787.rlib&quot; &quot;/tmp/rustc8figy5/liblzzzz-beb1d4c11488b121.rlib&quot; &quot;/tmp/rustc8figy5/liblibffi_sys-e326ef2e20352594.rlib&quot; &quot;/tmp/rustc8figy5/libring-10a0f63861f5a1da.rlib&quot; &quot;/tmp/rustc8figy5/liblibsqlite3_sys-7dbcc2f42a55fa3d.rlib&quot; &quot;/tmp/rustc8figy5/libv8-71106ed27ce211a5.rlib&quot; &quot;/home/ubuntu/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcompiler_builtins-e0edb30d3bc4ef0f.rlib&quot; &quot;-Wl,-Bdynamic&quot; &quot;-ldl&quot; &quot;-lgcc_s&quot; &quot;-lutil&quot; &quot;-lrt&quot; &quot;-lpthread&quot; &quot;-lm&quot; &quot;-ldl&quot; &quot;-lc&quot; &quot;-Wl,--eh-frame-hdr&quot; &quot;-Wl,-znoexecstack&quot; &quot;-L&quot; &quot;/home/ubuntu/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib&quot; &quot;-o&quot; &quot;/tmp/cargo-installGMFLYG/release/deps/deno-a43bf147a58f1098&quot; &quot;-Wl,--gc-sections&quot; &quot;-pie&quot; &quot;-Wl,-zrelro,-znow&quot; &quot;-nodefaultlibs&quot; &quot;-Wl,--export-dynamic-symbol-list=/home/ubuntu/.cargo/git/checkouts/deno-22855de1c03c9128/07213de/cli/generated_symbol_exports_list_linux.def&quot; = note: /usr/bin/ld:/home/ubuntu/.cargo/git/checkouts/deno-22855de1c03c9128/07213de/cli/generated_symbol_exports_list_linux.def:1: syntax error in dynamic list collect2: error: ld returned 1 exit status"><pre class="notranslate"><code class="notranslate"> Building [=======================&gt; ] 886/887: deno(bin) error: linking with `cc` failed: exit status: 1 | = note: "cc" "/tmp/rustc8figy5/symbols.o" "/tmp/cargo-installGMFLYG/release/deps/deno-a43bf147a58f1098.deno_emit-89aa5c977eb8594f.deno_emit.1c994cce-cgu.0.rcgu.o.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/cargo-installGMFLYG/release/deps" "-L" "/tmp/cargo-installGMFLYG/release/gn_out/obj" "-L" "/tmp/cargo-installGMFLYG/release/build/ring-0beefcbac786742d/out" "-L" "/tmp/cargo-installGMFLYG/release/build/libsqlite3-sys-d2f30d487d144aaa/out" "-L" "/tmp/cargo-installGMFLYG/release/build/libffi-sys-8f5020895edb14cf/out/libffi-root/lib" "-L" "/tmp/cargo-installGMFLYG/release/build/libffi-sys-8f5020895edb14cf/out/libffi-root/lib64" "-L" "/tmp/cargo-installGMFLYG/release/build/lzzzz-58d69c089844a321/out" "-L" "/tmp/cargo-installGMFLYG/release/build/sys-info-f5ddac2bff6c14e9/out" "-L" "/tmp/cargo-installGMFLYG/release/build/zstd-sys-1a83c9d5fc0362a9/out" "-L" "/home/ubuntu/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustc8figy5/libzstd_sys-7e83e14319244e0d.rlib" "/tmp/rustc8figy5/libsys_info-8e8b0e45422ab787.rlib" "/tmp/rustc8figy5/liblzzzz-beb1d4c11488b121.rlib" "/tmp/rustc8figy5/liblibffi_sys-e326ef2e20352594.rlib" "/tmp/rustc8figy5/libring-10a0f63861f5a1da.rlib" "/tmp/rustc8figy5/liblibsqlite3_sys-7dbcc2f42a55fa3d.rlib" "/tmp/rustc8figy5/libv8-71106ed27ce211a5.rlib" "/home/ubuntu/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcompiler_builtins-e0edb30d3bc4ef0f.rlib" "-Wl,-Bdynamic" "-ldl" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/ubuntu/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-o" "/tmp/cargo-installGMFLYG/release/deps/deno-a43bf147a58f1098" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" "-Wl,--export-dynamic-symbol-list=/home/ubuntu/.cargo/git/checkouts/deno-22855de1c03c9128/07213de/cli/generated_symbol_exports_list_linux.def" = note: /usr/bin/ld:/home/ubuntu/.cargo/git/checkouts/deno-22855de1c03c9128/07213de/cli/generated_symbol_exports_list_linux.def:1: syntax error in dynamic list collect2: error: ld returned 1 exit status </code></pre></div> <p dir="auto">Any idea/update on this bug?</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">As a user who is navigating the react-router enabled site using the keyboard, I have made my way to a Tabs component, and it is displaying keyboard focus properly. To select the focused tab, I hit space bar, and react-router updates my view to the corresponding component.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When selecting the keyboard focused tab by hitting spacebar, a javascript error is thrown from Material UI.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ButtonBase.js:149 Uncaught TypeError: Cannot read property 'start' of null at TouchRipple.&lt;anonymous&gt; (ButtonBase.js:149) at commitCallbacks (react-dom.development.js:7250) at commitLifeCycles (react-dom.development.js:11524) at commitAllLifeCycles (react-dom.development.js:12294) at HTMLUnknownElement.callCallback (react-dom.development.js:1299) at Object.invokeGuardedCallbackDev (react-dom.development.js:1338) at invokeGuardedCallback (react-dom.development.js:1195) at commitAllWork (react-dom.development.js:12415) at workLoop (react-dom.development.js:12687) at HTMLUnknownElement.callCallback (react-dom.development.js:1299) (anonymous) @ ButtonBase.js:149 commitCallbacks @ react-dom.development.js:7250 commitLifeCycles @ react-dom.development.js:11524 commitAllLifeCycles @ react-dom.development.js:12294 callCallback @ react-dom.development.js:1299 invokeGuardedCallbackDev @ react-dom.development.js:1338 invokeGuardedCallback @ react-dom.development.js:1195 commitAllWork @ react-dom.development.js:12415 workLoop @ react-dom.development.js:12687 callCallback @ react-dom.development.js:1299 invokeGuardedCallbackDev @ react-dom.development.js:1338 invokeGuardedCallback @ react-dom.development.js:1195 performWork @ react-dom.development.js:12800 batchedUpdates @ react-dom.development.js:13244 performFiberBatchedUpdates @ react-dom.development.js:1646 stackBatchedUpdates @ react-dom.development.js:1637 batchedUpdates @ react-dom.development.js:1651 batchedUpdatesWithControlledComponents @ react-dom.development.js:1664 dispatchEvent @ react-dom.development.js:1874"><pre class="notranslate"><code class="notranslate">ButtonBase.js:149 Uncaught TypeError: Cannot read property 'start' of null at TouchRipple.&lt;anonymous&gt; (ButtonBase.js:149) at commitCallbacks (react-dom.development.js:7250) at commitLifeCycles (react-dom.development.js:11524) at commitAllLifeCycles (react-dom.development.js:12294) at HTMLUnknownElement.callCallback (react-dom.development.js:1299) at Object.invokeGuardedCallbackDev (react-dom.development.js:1338) at invokeGuardedCallback (react-dom.development.js:1195) at commitAllWork (react-dom.development.js:12415) at workLoop (react-dom.development.js:12687) at HTMLUnknownElement.callCallback (react-dom.development.js:1299) (anonymous) @ ButtonBase.js:149 commitCallbacks @ react-dom.development.js:7250 commitLifeCycles @ react-dom.development.js:11524 commitAllLifeCycles @ react-dom.development.js:12294 callCallback @ react-dom.development.js:1299 invokeGuardedCallbackDev @ react-dom.development.js:1338 invokeGuardedCallback @ react-dom.development.js:1195 commitAllWork @ react-dom.development.js:12415 workLoop @ react-dom.development.js:12687 callCallback @ react-dom.development.js:1299 invokeGuardedCallbackDev @ react-dom.development.js:1338 invokeGuardedCallback @ react-dom.development.js:1195 performWork @ react-dom.development.js:12800 batchedUpdates @ react-dom.development.js:13244 performFiberBatchedUpdates @ react-dom.development.js:1646 stackBatchedUpdates @ react-dom.development.js:1637 batchedUpdates @ react-dom.development.js:1651 batchedUpdatesWithControlledComponents @ react-dom.development.js:1664 dispatchEvent @ react-dom.development.js:1874 </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto"><a href="https://codesandbox.io/s/m4l0lryoxy" rel="nofollow"><img src="https://camo.githubusercontent.com/90808661433696bc57dce8d4ad732307b5cec6270e6b846f114dcd7ee7f9458a/68747470733a2f2f636f646573616e64626f782e696f2f7374617469632f696d672f706c61792d636f646573616e64626f782e737667" alt="Edit MaterialUI/React-Router Bug" data-canonical-src="https://codesandbox.io/static/img/play-codesandbox.svg" style="max-width: 100%;"></a></p> <ol dir="auto"> <li>Press Tab key until keyboard focus is on the "Bar" Item.</li> <li>Press spacebar</li> <li>Observe JS error</li> </ol> <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.30</td> </tr> <tr> <td>React</td> <td>16.0.0</td> </tr> <tr> <td>React Router</td> <td>4.2.2</td> </tr> <tr> <td>browser</td> <td>All</td> </tr> </tbody> </table>
<p dir="auto">Not sure if this is a bug or something I'm doing wrong. I've upgraded to v1.0.0-alpha.1 to fix issues with the react-tap-event-plugin, and trying to modify things to suit the new docs but my drawer won't open.</p> <p dir="auto">When I attempt to open it, I get this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot read property 'contains' of null at eval (contains.js:17) at Modal.focus (Modal.js:209) at Modal.handleShow (Modal.js:237) at Modal.componentDidUpdate (Modal.js:185) at commitLifeCycles (react-dom.development.js:13462) at commitAllLifeCycles (react-dom.development.js:13987) at HTMLUnknownElement.boundFunc (react-dom.development.js:229) at invokeGuardedCallback (react-dom.development.js:243) at invokeGuardedCallback (react-dom.development.js:278) at commitAllWork (react-dom.development.js:14100)"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot read property 'contains' of null at eval (contains.js:17) at Modal.focus (Modal.js:209) at Modal.handleShow (Modal.js:237) at Modal.componentDidUpdate (Modal.js:185) at commitLifeCycles (react-dom.development.js:13462) at commitAllLifeCycles (react-dom.development.js:13987) at HTMLUnknownElement.boundFunc (react-dom.development.js:229) at invokeGuardedCallback (react-dom.development.js:243) at invokeGuardedCallback (react-dom.development.js:278) at commitAllWork (react-dom.development.js:14100) </code></pre></div> <p dir="auto">The drawer is toggled open by setting a state variable which is bound to the "open" prop of Drawer.<br> The Drawer itself looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Drawer anchor=&quot;left&quot; docked={false} open={menuOpen} onRequestClose={toggleMenu} onClick={toggleMenu} classes={classes}&gt; &lt;div&gt;This is a test&lt;/div&gt; &lt;/Drawer"><pre class="notranslate"><code class="notranslate">&lt;Drawer anchor="left" docked={false} open={menuOpen} onRequestClose={toggleMenu} onClick={toggleMenu} classes={classes}&gt; &lt;div&gt;This is a test&lt;/div&gt; &lt;/Drawer </code></pre></div> <p dir="auto">toggleMenu is a function that just toggles the menuOpen boolean. From poring through the code it seems the modal has no content, but I can't figure out why. If I dump out modalContent at Modal.js:208 it comes back empty.</p> <p dir="auto">I've tried lots of variations of content, none of them make any difference. The error only occurs once I click to open the drawer.</p> <p dir="auto">I'm working on React 16.0.0-alpha.12</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=arjen.poutsma" rel="nofollow">Arjen Poutsma</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5690?redirect=false" rel="nofollow">SPR-5690</a></strong> and commented</p> <p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398094092" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10294" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10294/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10294">#10294</a>:</p> <p dir="auto">It is useful to filter <code class="notranslate">@RequestMapping</code> method based on request headers, similarly to filtering by paramters. In effect, this feature would look something like:</p> <p dir="auto"><code class="notranslate">@RequestMapping</code>(value = "/hotels", header = "content-type=text/*")</p> <p dir="auto">This would match requests where the Content-Type header is 'text/plain', 'text/html', etc.</p> <hr> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398092899" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10107" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10107/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10107">#10107</a> <code class="notranslate">@RequestMapping</code> to narrow on Request Header details (<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="398084849" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9046" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9046/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9046">#9046</a> <code class="notranslate">@RequestMapping</code> narrowing based on presence of command object (<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="398094092" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10294" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10294/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10294">#10294</a> Content-type filtering in <code class="notranslate">@RequestMapping</code></li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/afa461892fa69851b4253ad18f88c21209e2eb81/hovercard" href="https://github.com/spring-projects/spring-framework/commit/afa461892fa69851b4253ad18f88c21209e2eb81"><tt>afa4618</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=newry" rel="nofollow">Ray</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9802?redirect=false" rel="nofollow">SPR-9802</a></strong> and commented</p> <p dir="auto">We tried to upgrade Spring framework from 2.5.5 to 3.1.1, during performance test we found that TransactionInterceptor will add some performance overhead because introduce of following method:<br> org.springframework.transaction.interceptor.TransactionAspectSupport.methodIdentification(java.lang.reflect.Method,java.lang.Class)</p> <p dir="auto">This new method will call Class.getDeclaredMethods() instead of using the method passed in directly.</p> <p dir="auto">If there are multiple transaction pointcuts defined and invoked in one call, the performance will be affected badly.</p> <p dir="auto">Can we do fallback support as 2.5.5 or add cache support for the method instead of call Class.getDeclaredMethods() each time?</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="398154702" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14606" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14606/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14606">#14606</a> Performance degradation for after Spring 3 (<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="398105904" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11975" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11975/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11975">#11975</a> Transaction names should use the concrete class name</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/89b365120ad577bd5ad8007044991a2b6742304b/hovercard" href="https://github.com/spring-projects/spring-framework/commit/89b365120ad577bd5ad8007044991a2b6742304b"><tt>89b3651</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/2c8b7fe0935a5934d7b6357086b17f3ac45cb66c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/2c8b7fe0935a5934d7b6357086b17f3ac45cb66c"><tt>2c8b7fe</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/49294c9d008ab63d3b33d708fc48b3f4321785db/hovercard" href="https://github.com/spring-projects/spring-framework/commit/49294c9d008ab63d3b33d708fc48b3f4321785db"><tt>49294c9</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/bbfc807b0c6e2b064c52368163255fdbd4d256cb/hovercard" href="https://github.com/spring-projects/spring-framework/commit/bbfc807b0c6e2b064c52368163255fdbd4d256cb"><tt>bbfc807</tt></a></p> <p dir="auto">2 votes, 5 watchers</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.1.0"><pre class="notranslate"><code class="notranslate">ansible 2.1.1.0 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 16.04</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">group_vars are ignored if the inventory is the output of a script that is stored in a subdirectory. This includes the popular ec2 inventory script. This bug was introduced in 2.1.1.0 (2.1.0.0 works fine).</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <h6 dir="auto"><code class="notranslate">inventory/script.sh</code></h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#!/bin/sh echo '{&quot;webservers&quot;: [&quot;paperberry&quot;]}'"><pre class="notranslate"><code class="notranslate">#!/bin/sh echo '{"webservers": ["paperberry"]}' </code></pre></div> <h6 dir="auto"><code class="notranslate">group_vars/all.yml</code>:</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- frontend_path: /var/www/html"><pre class="notranslate"><code class="notranslate"> --- frontend_path: /var/www/html </code></pre></div> <h6 dir="auto"><code class="notranslate">playbooks/webservers.yml</code>:</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - hosts: all connection: local tasks: - debug: var=frontend_path"><pre class="notranslate"><code class="notranslate"> --- - hosts: all connection: local tasks: - debug: var=frontend_path </code></pre></div> <p dir="auto">Run the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -i inventory/script.sh playbooks/webservers.yml "><pre class="notranslate"><code class="notranslate">ansible-playbook -i inventory/script.sh playbooks/webservers.yml </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">ansible 2.1.0.0 shows</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [paperberry] =&gt; { &quot;frontend_path&quot;: &quot;/var/www/html&quot; }"><pre class="notranslate"><code class="notranslate">ok: [paperberry] =&gt; { "frontend_path": "/var/www/html" } </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">ansible 2.1.1.0 shows</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [paperberry] =&gt; { &quot;frontend_path&quot;: &quot;VARIABLE IS NOT DEFINED!&quot; }"><pre class="notranslate"><code class="notranslate">ok: [paperberry] =&gt; { "frontend_path": "VARIABLE IS NOT DEFINED!" } </code></pre></div>
<p dir="auto">The ability to have role dependencies is nice, but it would be even better to be able to<br> call a role as a task with parameters. It would still be ok having to define the role as a<br> dependency in meta, but perhaps with a run tag, for example:</p> <p dir="auto">meta/main.yml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies: - role: pre arg: bar - role: bar auto: false - role: finalize auto: post"><pre class="notranslate"><code class="notranslate">dependencies: - role: pre arg: bar - role: bar auto: false - role: finalize auto: post </code></pre></div> <p dir="auto">the default is then, as now, auto: pre<br> and then in tasks/main.yml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: do something that I do alot from different places role: bar arg=baz"><pre class="notranslate"><code class="notranslate">- name: do something that I do alot from different places role: bar arg=baz </code></pre></div>
0
<p dir="auto">I can write Persian text (almost same as Arabic) in Atom even though it does not appear right to left. I can live with it, the problem is when I try to edit the text and I position the cursor somewhere inside the text and begin to type, the characters appear somewhere else, a few characters away.</p> <p dir="auto">To show you a good example of correct behavior I should mention <em>gedit</em>. Using <em>gedit</em> to write Persian blog posts in markdown format, I have no problem entering and editing the text. Everything works as expected, I don't know which GUI component is being used in Atom and Gedit, probably that's the difference. Here are some screenshots showing the texts but I have no way to show the typing problem.</p> <p dir="auto">In Atom:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3101557/5486071/d7a93dfa-86a2-11e4-8cbb-9dc595dbaf25.png"><img src="https://cloud.githubusercontent.com/assets/3101557/5486071/d7a93dfa-86a2-11e4-8cbb-9dc595dbaf25.png" alt="Typing Persian in Atom" style="max-width: 100%;"></a></p> <p dir="auto">In gedit:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3101557/5486082/f9bd0566-86a2-11e4-96c6-1869da23f305.png"><img src="https://cloud.githubusercontent.com/assets/3101557/5486082/f9bd0566-86a2-11e4-96c6-1869da23f305.png" alt="The same text in gedit" style="max-width: 100%;"></a></p>
<p dir="auto">Halp ticket:</p> <ul dir="auto"> <li>support/e61e5074bc3011e396a434cf997499c3</li> </ul> <blockquote> <p dir="auto">Support for Unicode is incomplete. Unicode characters are shown, but the cursor get stuck, and the navigation with the keyboard arrows stop working.</p> </blockquote> <p dir="auto">The user was using this string as an example <code class="notranslate">ג׳ג׳ג׳dwdwdww</code></p> <p dir="auto">Here's a GIF of me pressing just the right arrow key to get from the beginning of the string to the end:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/38924/2644705/38820a02-bf2b-11e3-8c5c-917400a391d1.gif"><img src="https://cloud.githubusercontent.com/assets/38924/2644705/38820a02-bf2b-11e3-8c5c-917400a391d1.gif" alt="test1006" data-animated-image="" style="max-width: 100%;"></a></p>
1
<p dir="auto">Instead of consuming 250 milli-cores, recourse consumer consumes nearly 400 milli-cores. This causes flakiness of autoscaling e2e tests:<br> <a href="http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gce-autoscaling/1521/" rel="nofollow">http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gce-autoscaling/1521/</a></p> <p dir="auto"><strong>Horizontal pod autoscaling [Skipped][Autoscaling Suite] should scale from 1 pod to 3 pods and from 3 to 5 (scale resource: CPU)</strong><br> /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:47<br> Oct 28 03:27:29.523: Number of replicas has changed: expected 3, got 4</p> <p dir="auto">Logs from controller-manager:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I1028 10:27:25.876466 6 metrics_client.go:135] Sum of cpu requested: {1.500 DecimalSI} I1028 10:27:25.878913 6 metrics_client.go:172] Metrics available: { &quot;items&quot;: [ { &quot;metrics&quot;: [ { &quot;timestamp&quot;: &quot;2015-10-28T10:25:00Z&quot;, &quot;value&quot;: 0 }, { &quot;timestamp&quot;: &quot;2015-10-28T10:24:00Z&quot;, &quot;value&quot;: 180 } ], &quot;latestTimestamp&quot;: &quot;2015-10-28T10:25:00Z&quot; }, { &quot;metrics&quot;: [ { &quot;timestamp&quot;: &quot;2015-10-28T10:25:00Z&quot;, &quot;value&quot;: 227 } ], &quot;latestTimestamp&quot;: &quot;2015-10-28T10:25:00Z&quot; }, { &quot;metrics&quot;: [ { &quot;timestamp&quot;: &quot;2015-10-28T10:25:00Z&quot;, &quot;value&quot;: 122 }, { &quot;timestamp&quot;: &quot;2015-10-28T10:24:00Z&quot;, &quot;value&quot;: 80 } ], &quot;latestTimestamp&quot;: &quot;2015-10-28T10:25:00Z&quot; } ] } I1028 10:27:25.884889 6 horizontal.go:154] Successfull rescale of rc, old size: 3, new size: 4"><pre class="notranslate"><code class="notranslate">I1028 10:27:25.876466 6 metrics_client.go:135] Sum of cpu requested: {1.500 DecimalSI} I1028 10:27:25.878913 6 metrics_client.go:172] Metrics available: { "items": [ { "metrics": [ { "timestamp": "2015-10-28T10:25:00Z", "value": 0 }, { "timestamp": "2015-10-28T10:24:00Z", "value": 180 } ], "latestTimestamp": "2015-10-28T10:25:00Z" }, { "metrics": [ { "timestamp": "2015-10-28T10:25:00Z", "value": 227 } ], "latestTimestamp": "2015-10-28T10:25:00Z" }, { "metrics": [ { "timestamp": "2015-10-28T10:25:00Z", "value": 122 }, { "timestamp": "2015-10-28T10:24:00Z", "value": 80 } ], "latestTimestamp": "2015-10-28T10:25:00Z" } ] } I1028 10:27:25.884889 6 horizontal.go:154] Successfull rescale of rc, old size: 3, new size: 4 </code></pre></div>
<p dir="auto"><a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-autoscaling/1893/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-autoscaling/1893/</a></p> <p dir="auto">Horizontal pod autoscaling (scale resource: CPU) [Skipped] [Autoscaling] ReplicationController Should scale from 1 pod to 3 pods and from 3 to 5</p> <p dir="auto">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:56 Nov 30 13:28:33.651: timeout waiting 10m0s for pods size to be 3</p>
1
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>Downloaded 9.0.2 and 9.0.3 electron.exe --version does not provide anything</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>Windows 10 Insider preview (build 19631.1)</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>8.3.5</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Double-click on electron in file explorer should open a window.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Nothing happens. Starting from a terminal does not open a UI and does not show any trace even using</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS C:\Users\olivi\Downloads\electron903&gt; .\electron.exe --version PS C:\Users\olivi\Downloads\electron903&gt; .\electron.exe --enable-logging -v=10 PS C:\Users\olivi\Downloads\electron903&gt;"><pre class="notranslate"><code class="notranslate">PS C:\Users\olivi\Downloads\electron903&gt; .\electron.exe --version PS C:\Users\olivi\Downloads\electron903&gt; .\electron.exe --enable-logging -v=10 PS C:\Users\olivi\Downloads\electron903&gt; </code></pre></div> <h3 dir="auto">To Reproduce</h3> <ol dir="auto"> <li>Downloaded electron-v9.0.3-win32-x64.zip from the releases.</li> <li>Unzip it in a directory</li> <li>Double click on electron.exe in the file explorer</li> <li>Or run .\electron.exe in the directory from a windows terminal</li> <li>Absolutely nothing happens, and you get back to the prompt</li> </ol> <h3 dir="auto">Additional Information</h3> <p dir="auto">Bug discovered while testing keeweb 1.15.x which runs on electron 9.0.x<br> Keeweb 1.14.3 running on electron 8.2.5 works fine<br> I downloaded electron 8.3.5 and did the same (unzip in a directory and double clic) and it works!!!</p>
<p dir="auto">I have a function that is called several times in a loop that is trying to access cookies, but after few times i get the following error:</p> <p dir="auto">Electron: 1.4.11</p> <p dir="auto">Cannot get property 'cookies' on missing remote object 16127<br> Error: Cannot get property 'cookies' on missing remote object 16127<br> at throwRPCError (D:\devel\work\js\microstockr.desktop\node_modules\electron-prebuilt\dist\resources\electron.asar\browser\rpc-server.js:143:17)<br> at EventEmitter. (D:\devel\work\js\microstockr.desktop\node_modules\electron-prebuilt\dist\resources\electron.asar\browser\rpc-server.js:368:7)<br> at emitThree (events.js:116:13)<br> at EventEmitter.emit (events.js:194:7)<br> at WebContents. (D:\devel\work\js\microstockr.desktop\node_modules\electron-prebuilt\dist\resources\electron.asar\browser\api\web-contents.js:231:13)<br> at emitTwo (events.js:106:13)<br> at WebContents.emit (events.js:191:7)</p> <p dir="auto">The code is:<br> var session = require('electron').remote.session;<br> session.defaultSession.cookies.get({ url: url }, function(err, domainCookies) {.....});</p>
0
<p dir="auto">Very helpful in storing additional info per property. for example a display name or some other application specific annotations for a property</p>
<p dir="auto">A mapping can have a _meta element - but it only keeps it if declared on the top level.<br> When using the _meta to annotate a mapping, or keeping custom configuration on it, or using it for some binding - a lot of times besides the top level you also need more custom data on a field level. So you need the mapping to keep also _meta nodes defined under fields.</p>
1
<h2 dir="auto">PC details</h2> <ul dir="auto"> <li>scipy==0.12.0</li> <li><code class="notranslate">Linux dana 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux</code></li> <li>Intel(R) Xeon(R) CPU E5-1650 0 @ 3.20GHz</li> <li>Linked against Intel MKL (though issue replicated on a machine linked against Atlas)</li> </ul> <h2 dir="auto">Issue</h2> <p dir="auto">With this <a href="https://gist.github.com/patricksnape/6793845">mesh</a> I am seeing inconsistent results from <code class="notranslate">scipy.spatial.Delaunay</code>. Assuming that the mesh has been loaded using <code class="notranslate">numpy.loadtxt</code> into a variable called <code class="notranslate">points</code>, I duplicate the issue as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from scipy.spatial import Delaunay scipy_t = Delaunay(points).simplices"><pre class="notranslate"><code class="notranslate">from scipy.spatial import Delaunay scipy_t = Delaunay(points).simplices </code></pre></div> <p dir="auto">I have some code that checks the consistency of a triangulation (in terms of ordering) and the above code generates an inconsistent triangulation.</p> <h2 dir="auto">Ground Truth</h2> <p dir="auto">In order to sanity check I compared the triangulation against the one created by <code class="notranslate">pyhull</code>. This is created using the same point set as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from pyhull.delaunay import DelaunayTri pyhull_t = np.asarray(DelaunayTri(points).vertices)"><pre class="notranslate"><code class="notranslate">from pyhull.delaunay import DelaunayTri pyhull_t = np.asarray(DelaunayTri(points).vertices) </code></pre></div> <p dir="auto">I've also generated the triangulation in Matlab using both <code class="notranslate">delaunay</code> and <code class="notranslate">delaunayn</code> and it yields results identical to <code class="notranslate">pyhull_t</code>. My triangulation consistency verifier also confirms that the <code class="notranslate">pyhull_t</code> triangulation is correct.</p> <h2 dir="auto">Options</h2> <p dir="auto">In order to try and ensure that <code class="notranslate">scipy.spatial.Delaunay</code> is applying the same algorithm as <code class="notranslate">pyhull</code>, I dove in to their source code. There I noticed that they always set the following flags:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="i Qt Qc Qbb"><pre class="notranslate"><code class="notranslate">i Qt Qc Qbb </code></pre></div> <p dir="auto">but running with those flags as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from scipy.spatial import Delaunay scipy_t = Delaunay(points, qhull_options='Qbb Qc').simplices"><pre class="notranslate"><code class="notranslate">from scipy.spatial import Delaunay scipy_t = Delaunay(points, qhull_options='Qbb Qc').simplices </code></pre></div> <p dir="auto">still does not yield correct results.</p> <h2 dir="auto">Example output</h2> <p dir="auto">An example of the triangulation I am seeing using the flags <code class="notranslate">Qbb Qc</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print scipy_t [[16549 35521 21080] [58451 78938 91348] [38031 32638 33401] ..., [47968 47967 48281] [47968 47656 47969] [47968 47655 47656]] print pyhull_t [[35521 16549 21080] [78938 58451 91348] [32638 38031 33401] ..., [47968 47967 48281] [47656 47968 47969] [47655 47968 47656]]"><pre class="notranslate"><code class="notranslate">print scipy_t [[16549 35521 21080] [58451 78938 91348] [38031 32638 33401] ..., [47968 47967 48281] [47968 47656 47969] [47968 47655 47656]] print pyhull_t [[35521 16549 21080] [78938 58451 91348] [32638 38031 33401] ..., [47968 47967 48281] [47656 47968 47969] [47655 47968 47656]] </code></pre></div> <p dir="auto">where we can see that the same indices are being generated, but the first two are sometimes swapped.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/642" rel="nofollow">http://projects.scipy.org/scipy/ticket/642</a> on 2008-04-15 by trac user AchimGaedke, assigned to unknown.</em></p> <p dir="auto">Hello!</p> <p dir="auto">I use scipy.optimize.leastsq to adopt paramters of a model to measured data. Each evaluation of that model costs 1.5 h of computation time. Unfortunately I can not specify a gradient function.</p> <p dir="auto">While observing the approximation process I found that the first 3 runs were always with the same parameters. First I thought, the parameter variation for gradient approximation is too tiny for a simple print command. Later I found out, that these three runs were independent of the number of fit parameters.</p> <p dir="auto">A closer look to the code reveals the reason (svn dir trunk/scipy/optimize):</p> <p dir="auto">1st call is to check with python code wether the function is valid</p> <p dir="auto">line 265 of minpack.py</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="m = check_func(func,x0,args,n)[0]"><pre class="notranslate"><code class="notranslate">m = check_func(func,x0,args,n)[0] </code></pre></div> <p dir="auto">2nd call is to get the right amount of memory for paramters.</p> <p dir="auto">line 449 of _ _ minpack.h</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ap_fvec = (PyArrayObject *)call_python_function(fcn, n, x, extra_args, 1, minpack_error);"><pre class="notranslate"><code class="notranslate">ap_fvec = (PyArrayObject *)call_python_function(fcn, n, x, extra_args, 1, minpack_error); </code></pre></div> <p dir="auto">3rd call is from inside the fortran algorithm (the essential one!)</p> <p dir="auto">Unfortunately that behaviour is not described and I would eagerly demand to avoid the superficial calls to the function.</p>
0
<p dir="auto">The scipy implementation of the hyp1f1 function exhibits a huge inaccuracy based on a comparison to mpmath's arbitrary-precision and double-precision implementations (shown below) as well as GSL, all of which agree (GSL gives <code class="notranslate">1.649746910616242567826e+00</code>). The input here comes from GSL's included tests.</p> <h4 dir="auto">Reproducing code example:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 3.6.8 (default, Aug 20 2019, 17:12:48) [GCC 8.3.0] on linux Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; from mpmath import * &gt;&gt;&gt; from scipy import special &gt;&gt;&gt; mp.hyp1f1(100, 200, 1.0) mpf('1.6497469106162459') &gt;&gt;&gt; fp.hyp1f1(100, 200, 1.0) 1.6497469106162461 &gt;&gt;&gt; special.hyp1f1(100, 200, 1.0) 4.654116242484843e+42"><pre class="notranslate"><code class="notranslate">Python 3.6.8 (default, Aug 20 2019, 17:12:48) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; from mpmath import * &gt;&gt;&gt; from scipy import special &gt;&gt;&gt; mp.hyp1f1(100, 200, 1.0) mpf('1.6497469106162459') &gt;&gt;&gt; fp.hyp1f1(100, 200, 1.0) 1.6497469106162461 &gt;&gt;&gt; special.hyp1f1(100, 200, 1.0) 4.654116242484843e+42 </code></pre></div> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <p dir="auto">1.3.1 1.17.2 sys.version_info(major=3, minor=6, micro=8, releaselevel='final', serial=0)&lt;!-- You can simply run the following and paste the result in a code block</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)"><pre class="notranslate"><code class="notranslate">import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info) </code></pre></div> <p dir="auto">--&gt;</p>
<p dir="auto">hyp1f1 explodes for modestly large arguments. For example:</p> <p dir="auto">scipy.special.hyp1f1(30, 70, 20j)</p> <p dir="auto">returns</p> <p dir="auto">(-1748.2243027213672+51.441200608645886j)</p> <p dir="auto">which is completely wrong (whenever 1 &lt; a &lt; b and z is purely imaginary, abs(1F1(a,b,z)) &lt;= 1).</p> <p dir="auto">This doesn't seem to be insoluble, since the package mpmath (also open sourced here on GitHub) returns what seems to be the correct answer:</p> <p dir="auto">mpmath.hyp1f1(30, 70, 20j)<br> mpc(real='-0.32066129006007188', imag='0.38180277645752586')</p> <p dir="auto">(I assume this is correct because Mathematica returns the same result. It would be very unlikely if they were both wrong and returned the same answer).</p> <p dir="auto">Moreover, I did a simple test. Simply using the Taylor series expansion gives the correct result. The problem with scipy's implementation seems to be in using a recurrence relation to lower the value of 'a' until it is &lt; 2. The recurrence relation relation used is Abramowitz 13.4.1, but I think this is unstable.</p>
1
<p dir="auto">I am using the gradle 2.8 and java 1.8.0_20 to build the master branch of the elasticsearch and get the error:<br> <strong>AutoExpandReplicas.java:44 : cannot assign to the final variable min</strong><br> <strong>min = Integer.parseInt(sMin);</strong><br> I have searched the google and there is no answer.</p>
<p dir="auto">I've just updated to JDK 7 update 72 and 1.4.0.Beta1 doesn't work any more (win 8.1).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# java -version java version &quot;1.7.0_72&quot; Java(TM) SE Runtime Environment (build 1.7.0_72-b14) Java HotSpot(TM) Client VM (build 24.72-b04, mixed mode, sharing)"><pre class="notranslate"><code class="notranslate"># java -version java version "1.7.0_72" Java(TM) SE Runtime Environment (build 1.7.0_72-b14) Java HotSpot(TM) Client VM (build 24.72-b04, mixed mode, sharing) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2014-10-25 00:37:58,821][INFO ][node ] [Thog] version[1.4.0.Beta1], pid[6224], build[1f25669/2014-10-01T14:58:15Z] [2014-10-25 00:37:58,822][INFO ][node ] [Thog] initializing ... [2014-10-25 00:37:58,827][INFO ][plugins ] [Thog] loaded [], sites [] [2014-10-25 00:38:01,206][INFO ][node ] [Thog] initialized [2014-10-25 00:38:01,206][INFO ][node ] [Thog] starting ... [2014-10-25 00:38:01,308][INFO ][transport ] [Thog] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/192.168.1.50:9300]} [2014-10-25 00:38:01,351][INFO ][discovery.zen.ping.multicast] [Thog] multicast failed to start [SocketException[An invalid argument was supplied]], disabling [2014-10-25 00:38:01,353][INFO ][discovery ] [Thog] elasticsearch/Sk3GjLbeTduVCehGYnfdRg [2014-10-25 00:38:01,359][WARN ][discovery.zen.ping.multicast] [Thog] failed to send multicast ping request: NullPointerException[null] [2014-10-25 00:38:02,860][WARN ][discovery.zen.ping.multicast] [Thog] failed to send multicast ping request: NullPointerException[null] [2014-10-25 00:38:04,372][INFO ][cluster.service ] [Thog] new_master [Thog][Sk3GjLbeTduVCehGYnfdRg][cerberus][inet[/192.168.1.50:9300]], reason: zen-disco-join (elected_as_master) [2014-10-25 00:38:04,415][INFO ][http ] [Thog] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/192.168.1.50:9200]} [2014-10-25 00:38:04,416][INFO ][node ] [Thog] started [2014-10-25 00:38:04,926][INFO ][gateway ] [Thog] recovered [2] indices into cluster_state"><pre class="notranslate"><code class="notranslate">[2014-10-25 00:37:58,821][INFO ][node ] [Thog] version[1.4.0.Beta1], pid[6224], build[1f25669/2014-10-01T14:58:15Z] [2014-10-25 00:37:58,822][INFO ][node ] [Thog] initializing ... [2014-10-25 00:37:58,827][INFO ][plugins ] [Thog] loaded [], sites [] [2014-10-25 00:38:01,206][INFO ][node ] [Thog] initialized [2014-10-25 00:38:01,206][INFO ][node ] [Thog] starting ... [2014-10-25 00:38:01,308][INFO ][transport ] [Thog] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/192.168.1.50:9300]} [2014-10-25 00:38:01,351][INFO ][discovery.zen.ping.multicast] [Thog] multicast failed to start [SocketException[An invalid argument was supplied]], disabling [2014-10-25 00:38:01,353][INFO ][discovery ] [Thog] elasticsearch/Sk3GjLbeTduVCehGYnfdRg [2014-10-25 00:38:01,359][WARN ][discovery.zen.ping.multicast] [Thog] failed to send multicast ping request: NullPointerException[null] [2014-10-25 00:38:02,860][WARN ][discovery.zen.ping.multicast] [Thog] failed to send multicast ping request: NullPointerException[null] [2014-10-25 00:38:04,372][INFO ][cluster.service ] [Thog] new_master [Thog][Sk3GjLbeTduVCehGYnfdRg][cerberus][inet[/192.168.1.50:9300]], reason: zen-disco-join (elected_as_master) [2014-10-25 00:38:04,415][INFO ][http ] [Thog] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/192.168.1.50:9200]} [2014-10-25 00:38:04,416][INFO ][node ] [Thog] started [2014-10-25 00:38:04,926][INFO ][gateway ] [Thog] recovered [2] indices into cluster_state </code></pre></div> <p dir="auto">1.4.0.Beta1 works fine with 7u67 and 8u25. It looks like only 7u72 is problematic (potentially 7u71).<br> Tested 1.3.4 on 7u72 and it seems to be <del>working fine</del>.<br> Verified the java version and the same problem occurs - clearly something has changed in the JDK.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# java -version java version &quot;1.7.0_72&quot; Java(TM) SE Runtime Environment (build 1.7.0_72-b14) Java HotSpot(TM) Client VM (build 24.72-b04, mixed mode, sharing) # elasticsearch [2014-10-25 00:50:20,068][INFO ][node ] [Wendell Vaughn] version[1.3.4], pid[7220], build[a70f3cc/2014-09-30T09:07:17Z] [2014-10-25 00:50:20,070][INFO ][node ] [Wendell Vaughn] initializing ... [2014-10-25 00:50:20,074][INFO ][plugins ] [Wendell Vaughn] loaded [], sites [] [2014-10-25 00:50:22,367][INFO ][node ] [Wendell Vaughn] initialized [2014-10-25 00:50:22,367][INFO ][node ] [Wendell Vaughn] starting ... [2014-10-25 00:50:22,472][INFO ][transport ] [Wendell Vaughn] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/192.168.1.50:9300]} [2014-10-25 00:50:22,570][INFO ][discovery.zen.ping.multicast] [Wendell Vaughn] multicast failed to start [SocketException[An invalid argument was supplied]], disabling [2014-10-25 00:50:22,571][INFO ][discovery ] [Wendell Vaughn] elasticsearch/iROZFsnQQb-2OUFP6bA_bA [2014-10-25 00:50:22,600][WARN ][discovery.zen.ping.multicast] [Wendell Vaughn] failed to send multicast ping request: NullPointerException[null] [2014-10-25 00:50:24,102][WARN ][discovery.zen.ping.multicast] [Wendell Vaughn] failed to send multicast ping request: NullPointerException[null] [2014-10-25 00:50:25,605][INFO ][cluster.service ] [Wendell Vaughn] new_master [Wendell Vaughn][iROZFsnQQb-2OUFP6bA_bA][cerberus][inet[/192.168.1.50:9300]], reason: zen-disco-join (elected_as_master) [2014-10-25 00:50:25,638][INFO ][gateway ] [Wendell Vaughn] recovered [0] indices into cluster_state [2014-10-25 00:50:25,649][INFO ][http ] [Wendell Vaughn] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/192.168.1.50:9200]} [2014-10-25 00:50:25,650][INFO ][node ] [Wendell Vaughn] started"><pre class="notranslate"><code class="notranslate"># java -version java version "1.7.0_72" Java(TM) SE Runtime Environment (build 1.7.0_72-b14) Java HotSpot(TM) Client VM (build 24.72-b04, mixed mode, sharing) # elasticsearch [2014-10-25 00:50:20,068][INFO ][node ] [Wendell Vaughn] version[1.3.4], pid[7220], build[a70f3cc/2014-09-30T09:07:17Z] [2014-10-25 00:50:20,070][INFO ][node ] [Wendell Vaughn] initializing ... [2014-10-25 00:50:20,074][INFO ][plugins ] [Wendell Vaughn] loaded [], sites [] [2014-10-25 00:50:22,367][INFO ][node ] [Wendell Vaughn] initialized [2014-10-25 00:50:22,367][INFO ][node ] [Wendell Vaughn] starting ... [2014-10-25 00:50:22,472][INFO ][transport ] [Wendell Vaughn] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/192.168.1.50:9300]} [2014-10-25 00:50:22,570][INFO ][discovery.zen.ping.multicast] [Wendell Vaughn] multicast failed to start [SocketException[An invalid argument was supplied]], disabling [2014-10-25 00:50:22,571][INFO ][discovery ] [Wendell Vaughn] elasticsearch/iROZFsnQQb-2OUFP6bA_bA [2014-10-25 00:50:22,600][WARN ][discovery.zen.ping.multicast] [Wendell Vaughn] failed to send multicast ping request: NullPointerException[null] [2014-10-25 00:50:24,102][WARN ][discovery.zen.ping.multicast] [Wendell Vaughn] failed to send multicast ping request: NullPointerException[null] [2014-10-25 00:50:25,605][INFO ][cluster.service ] [Wendell Vaughn] new_master [Wendell Vaughn][iROZFsnQQb-2OUFP6bA_bA][cerberus][inet[/192.168.1.50:9300]], reason: zen-disco-join (elected_as_master) [2014-10-25 00:50:25,638][INFO ][gateway ] [Wendell Vaughn] recovered [0] indices into cluster_state [2014-10-25 00:50:25,649][INFO ][http ] [Wendell Vaughn] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/192.168.1.50:9200]} [2014-10-25 00:50:25,650][INFO ][node ] [Wendell Vaughn] started </code></pre></div>
0
<ul dir="auto"> <li>Electron version: v1.8.2-beta.3</li> <li>Operating system: window7</li> </ul> <h3 dir="auto">Expected behavior</h3> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Open DevTools, click on any key in the console, the entire application crashes</p> <p dir="auto">####Scenario Restore</p> <ol dir="auto"> <li>Execute /script/build.py No error occurred.</li> <li>After deployment, find the electron.exe in out and open the electron through the command line. 3. Open DevTools, click on any key in the console, the entire application crashes.</li> </ol>
<ul dir="auto"> <li>Electron version: 1.8.2-beta.3</li> <li>Operating system: Windows_NT 10.0.15063</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">When devtools are open I should be able to type directly into the console.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">When you type into the console in devtools it crashes the electron app without showing any errors.</p> <h3 dir="auto">How to reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/electron/electron-api-demos.git cd electron-api-demos npm install --save-dev [email protected] npm install npm start"><pre class="notranslate"><code class="notranslate">git clone https://github.com/electron/electron-api-demos.git cd electron-api-demos npm install --save-dev [email protected] npm install npm start </code></pre></div> <p dir="auto">When the electron window opens, go to View menu, then Toggle Developer Tools option.<br> Go to Console tab.<br> Click into the console by the &gt; and start typing anything.</p>
1
<ol dir="auto"> <li>Right Click</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.209.0<br> <strong>System</strong>: Microsoft Windows 8.1<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\src\window-event-handler.js:148:33) at HTMLDocument.handler (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\src\window-event-handler.js:148:33) at HTMLDocument.handler (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Admin\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 2x -1:03.8.0 typescript:go-to-declaration (button.btn.selected) -0:57.8.0 typescript:build (button.btn.selected) -0:53.2.0 linter:lint (atom-text-editor.editor) -0:48.9.0 core:backspace (atom-text-editor.editor.is-focused) -0:46.9.0 core:save (atom-text-editor.editor.is-focused) -0:46.9.0 linter:lint (atom-text-editor.editor.is-focused) -0:42.6.0 typescript:build (atom-text-editor.editor.is-focused) -0:29.6.0 editor:newline (atom-text-editor.editor.is-focused) -0:29.5.0 editor:newline-below (atom-text-editor.editor.is-focused) -0:29.2.0 core:save (atom-text-editor.editor.is-focused) -0:29.2.0 linter:lint (atom-text-editor.editor.is-focused) -0:27.9.0 editor:newline (atom-text-editor.editor.is-focused) -0:27.3.0 core:save (atom-text-editor.editor.is-focused) -0:27.3.0 linter:lint (atom-text-editor.editor.is-focused) -0:20.8.0 core:save (atom-text-editor.editor.is-focused) -0:20.8.0 linter:lint (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> 2x -1:03.8.0 typescript:go-to-declaration (button.btn.selected) -0:57.8.0 typescript:build (button.btn.selected) -0:53.2.0 linter:lint (atom-text-editor.editor) -0:48.9.0 core:backspace (atom-text-editor.editor.is-focused) -0:46.9.0 core:save (atom-text-editor.editor.is-focused) -0:46.9.0 linter:lint (atom-text-editor.editor.is-focused) -0:42.6.0 typescript:build (atom-text-editor.editor.is-focused) -0:29.6.0 editor:newline (atom-text-editor.editor.is-focused) -0:29.5.0 editor:newline-below (atom-text-editor.editor.is-focused) -0:29.2.0 core:save (atom-text-editor.editor.is-focused) -0:29.2.0 linter:lint (atom-text-editor.editor.is-focused) -0:27.9.0 editor:newline (atom-text-editor.editor.is-focused) -0:27.3.0 core:save (atom-text-editor.editor.is-focused) -0:27.3.0 linter:lint (atom-text-editor.editor.is-focused) -0:20.8.0 core:save (atom-text-editor.editor.is-focused) -0:20.8.0 linter:lint (atom-text-editor.editor.is-focused) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;base16-tomorrow-dark-theme&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;preferredLineLength&quot;: 140, &quot;softWrap&quot;: true, &quot;fontSize&quot;: 13, &quot;tabLength&quot;: 4 } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>base16-tomorrow-dark-theme<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"preferredLineLength"</span>: <span class="pl-c1">140</span>, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">13</span>, <span class="pl-ent">"tabLength"</span>: <span class="pl-c1">4</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User .bin, vundefined atom-typescript, v4.5.9 last-cursor-position, v0.9.0 linter, v0.12.7 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> .<span class="pl-smi">bin</span>, vundefined atom<span class="pl-k">-</span>typescript, v4.<span class="pl-ii">5</span>.<span class="pl-ii">9</span> last<span class="pl-k">-</span>cursor<span class="pl-k">-</span>position, v0.<span class="pl-ii">9</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">7</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;node_modules&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ], &quot;disabledPackages&quot;: [ &quot;Tern&quot; ], &quot;projectHome&quot;: &quot;Y:\\app-tfoumax&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User autocomplete-plus, v2.12.0 autocomplete-snippets, v1.2.0 javascript-snippets, v1.0.0 jshint, v1.3.5 language-ejs, v0.1.0 linter, v0.12.1 pretty-json, v0.3.3 save-session, v0.14.0 Search, v0.4.0 seti-syntax, v0.4.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">Can no longer start superset in docker on latest master branch (commit: <code class="notranslate">ff6773df4ed7d3baca15f19baf30a793b4fce248</code>)</p> <h3 dir="auto">Expected results</h3> <p dir="auto"><code class="notranslate">docker-init.sh</code> script doesn't error out.</p> <p dir="auto">Here's the command working when I <code class="notranslate">git checkout 300c4ecb0f6798e5901dcb88a034c53e708ff0b4</code> :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="docker-compose run --rm superset ./docker-init.sh Starting superset_redis_1 ... done Starting superset_postgres_1 ... done + '[' 1 -ne 0 ']' + exec ./docker-init.sh + export FLASK_APP=superset:app + FLASK_APP=superset:app + flask fab create-admin Username [admin]: User first name [admin]: User last name [user]: Email [[email protected]]: Password: Repeat for confirmation: Loaded your LOCAL configuration at [/home/superset/superset/superset_config.py] 2019-11-20 22:34:51,404:INFO:root:logging was configured successfully 2019-11-20 22:34:51,591:INFO:root:Configured event logger of type &lt;class 'superset.utils.log.DBEventLogger'&gt; 2019-11-20 22:34:52,054:DEBUG:asyncio:Using selector: EpollSelector Recognized Database Authentications. Admin User admin created. + superset db upgrade Loaded your LOCAL configuration at [/home/superset/superset/superset_config.py] 2019-11-20 22:34:54,214:INFO:root:logging was configured successfully 2019-11-20 22:34:54,324:INFO:root:Configured event logger of type &lt;class 'superset.utils.log.DBEventLogger'&gt; 2019-11-20 22:34:54,636:DEBUG:asyncio:Using selector: EpollSelector INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. INFO [alembic.runtime.migration] Running upgrade -&gt; 4e6a06bad7a8, Init INFO [alembic.runtime.migration] Running upgrade 4e6a06bad7a8 -&gt; 5a7bad26f2a7, empty message INFO [alembic.runtime.migration] Running upgrade 5a7bad26f2a7 -&gt; 1e2841a4128, empty message INFO [alembic.runtime.migration] Running upgrade 1e2841a4128 -&gt; 2929af7925ed, TZ offsets in data sources INFO [alembic.runtime.migration] Running upgrade 2929af7925ed -&gt; 289ce07647b, Add encrypted password field INFO [alembic.runtime.migration] Running upgrade 289ce07647b -&gt; 1a48a5411020, adding slug to dash INFO [alembic.runtime.migration] Running upgrade 1a48a5411020 -&gt; 315b3f4da9b0, adding log model INFO [alembic.runtime.migration] Running upgrade 315b3f4da9b0 -&gt; 55179c7f25c7, sqla_descr INFO [alembic.runtime.migration] Running upgrade 55179c7f25c7 -&gt; 12d55656cbca, is_featured INFO [alembic.runtime.migration] Running upgrade 12d55656cbca -&gt; 2591d77e9831, user_id INFO [alembic.runtime.migration] Running upgrade 2591d77e9831 -&gt; 8e80a26a31db, empty message INFO [alembic.runtime.migration] Running upgrade 8e80a26a31db -&gt; 7dbf98566af7, empty message INFO [alembic.runtime.migration] Running upgrade 7dbf98566af7 -&gt; 43df8de3a5f4, empty message INFO [alembic.runtime.migration] Running upgrade 43df8de3a5f4 -&gt; d827694c7555, css templates INFO [alembic.runtime.migration] Running upgrade d827694c7555 -&gt; 430039611635, log more INFO [alembic.runtime.migration] Running upgrade 430039611635 -&gt; 18e88e1cc004, making audit nullable INFO [alembic.runtime.migration] Running upgrade 18e88e1cc004 -&gt; 836c0bf75904, cache_timeouts INFO [alembic.runtime.migration] Running upgrade 18e88e1cc004 -&gt; a2d606a761d9, adding favstar model INFO [alembic.runtime.migration] Running upgrade a2d606a761d9, 836c0bf75904 -&gt; d2424a248d63, empty message INFO [alembic.runtime.migration] Running upgrade d2424a248d63 -&gt; 763d4b211ec9, fixing audit fk INFO [alembic.runtime.migration] Running upgrade d2424a248d63 -&gt; 1d2ddd543133, log dt INFO [alembic.runtime.migration] Running upgrade 1d2ddd543133, 763d4b211ec9 -&gt; fee7b758c130, empty message INFO [alembic.runtime.migration] Running upgrade fee7b758c130 -&gt; 867bf4f117f9, Adding extra field to Database model INFO [alembic.runtime.migration] Running upgrade 867bf4f117f9 -&gt; bb51420eaf83, add schema to table model INFO [alembic.runtime.migration] Running upgrade bb51420eaf83 -&gt; b4456560d4f3, change_table_unique_constraint INFO [alembic.runtime.migration] Running upgrade b4456560d4f3 -&gt; 4fa88fe24e94, owners_many_to_many INFO [alembic.runtime.migration] Running upgrade 4fa88fe24e94 -&gt; c3a8f8611885, Materializing permission INFO [alembic.runtime.migration] Running upgrade c3a8f8611885 -&gt; f0fbf6129e13, Adding verbose_name to tablecolumn INFO [alembic.runtime.migration] Running upgrade f0fbf6129e13 -&gt; 956a063c52b3, adjusting key length INFO [alembic.runtime.migration] Running upgrade 956a063c52b3 -&gt; 1226819ee0e3, Fix wrong constraint on table columns INFO [alembic.runtime.migration] Running upgrade 1226819ee0e3 -&gt; d8bc074f7aad, Add new field 'is_restricted' to SqlMetric and DruidMetric INFO [alembic.runtime.migration] Running upgrade d8bc074f7aad -&gt; 27ae655e4247, Make creator owners INFO [alembic.runtime.migration] Running upgrade 27ae655e4247 -&gt; 960c69cb1f5b, add dttm_format related fields in table_columns INFO [alembic.runtime.migration] Running upgrade 960c69cb1f5b -&gt; f162a1dea4c4, d3format_by_metric INFO [alembic.runtime.migration] Running upgrade f162a1dea4c4 -&gt; ad82a75afd82, Update models to support storing the queries. INFO [alembic.runtime.migration] Running upgrade ad82a75afd82 -&gt; 3c3ffe173e4f, add_sql_string_to_table INFO [alembic.runtime.migration] Running upgrade 3c3ffe173e4f -&gt; 41f6a59a61f2, database options for sql lab INFO [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -&gt; 4500485bde7d, allow_run_sync_async INFO [alembic.runtime.migration] Running upgrade 4500485bde7d -&gt; 65903709c321, allow_dml INFO [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -&gt; 33d996bcc382, update slice model INFO [alembic.runtime.migration] Running upgrade 33d996bcc382, 65903709c321 -&gt; b347b202819b, empty message INFO [alembic.runtime.migration] Running upgrade b347b202819b -&gt; 5e4a03ef0bf0, Add access_request table to manage requests to access datastores. INFO [alembic.runtime.migration] Running upgrade 5e4a03ef0bf0 -&gt; eca4694defa7, sqllab_setting_defaults INFO [alembic.runtime.migration] Running upgrade eca4694defa7 -&gt; ab3d66c4246e, add_cache_timeout_to_druid_cluster INFO [alembic.runtime.migration] Running upgrade eca4694defa7 -&gt; 3b626e2a6783, Sync DB with the models.py. INFO [alembic.runtime.migration] Running upgrade 3b626e2a6783, ab3d66c4246e -&gt; ef8843b41dac, empty message INFO [alembic.runtime.migration] Running upgrade ef8843b41dac -&gt; b46fa1b0b39e, Add json_metadata to the tables table. INFO [alembic.runtime.migration] Running upgrade b46fa1b0b39e -&gt; 7e3ddad2a00b, results_key to query INFO [alembic.runtime.migration] Running upgrade 7e3ddad2a00b -&gt; ad4d656d92bc, Add avg() to default metrics INFO [alembic.runtime.migration] Running upgrade ad4d656d92bc -&gt; c611f2b591b8, dim_spec INFO [alembic.runtime.migration] Running upgrade c611f2b591b8 -&gt; e46f2d27a08e, materialize perms INFO [alembic.runtime.migration] Running upgrade e46f2d27a08e -&gt; f1f2d4af5b90, Enable Filter Select INFO [alembic.runtime.migration] Running upgrade e46f2d27a08e -&gt; 525c854f0005, log_this_plus INFO [alembic.runtime.migration] Running upgrade 525c854f0005, f1f2d4af5b90 -&gt; 6414e83d82b7, empty message INFO [alembic.runtime.migration] Running upgrade 6414e83d82b7 -&gt; 1296d28ec131, Adds params to the datasource (druid) table INFO [alembic.runtime.migration] Running upgrade 1296d28ec131 -&gt; f18570e03440, Add index on the result key to the query table. INFO [alembic.runtime.migration] Running upgrade f18570e03440 -&gt; bcf3126872fc, Add keyvalue table INFO [alembic.runtime.migration] Running upgrade f18570e03440 -&gt; db0c65b146bd, update_slice_model_json INFO [alembic.runtime.migration] Running upgrade db0c65b146bd -&gt; a99f2f7c195a, rewriting url from shortner with new format INFO [alembic.runtime.migration] Running upgrade a99f2f7c195a, bcf3126872fc -&gt; d6db5a5cdb5d, empty message INFO [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -&gt; b318dfe5fb6c, adding verbose_name to druid column INFO [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -&gt; 732f1c06bcbf, add fetch values predicate INFO [alembic.runtime.migration] Running upgrade 732f1c06bcbf, b318dfe5fb6c -&gt; ea033256294a, empty message INFO [alembic.runtime.migration] Running upgrade b318dfe5fb6c -&gt; db527d8c4c78, Add verbose name to DruidCluster and Database INFO [alembic.runtime.migration] Running upgrade db527d8c4c78, ea033256294a -&gt; 979c03af3341, empty message INFO [alembic.runtime.migration] Running upgrade 979c03af3341 -&gt; a6c18f869a4e, query.start_running_time INFO [alembic.runtime.migration] Running upgrade a6c18f869a4e -&gt; 2fcdcb35e487, saved_queries INFO [alembic.runtime.migration] Running upgrade 2fcdcb35e487 -&gt; a65458420354, add_result_backend_time_logging INFO [alembic.runtime.migration] Running upgrade a65458420354 -&gt; ca69c70ec99b, tracking_url INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; a9c47e2c1547, add impersonate_user to dbs INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; ddd6ebdd853b, annotations INFO [alembic.runtime.migration] Running upgrade a9c47e2c1547, ddd6ebdd853b -&gt; d39b1e37131d, empty message INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; 19a814813610, Adding metric warning_text INFO [alembic.runtime.migration] Running upgrade 19a814813610, a9c47e2c1547 -&gt; 472d2f73dfd4, empty message INFO [alembic.runtime.migration] Running upgrade 472d2f73dfd4, d39b1e37131d -&gt; f959a6652acd, empty message INFO [alembic.runtime.migration] Running upgrade f959a6652acd -&gt; 4736ec66ce19, empty message INFO [alembic.runtime.migration] Running upgrade 4736ec66ce19 -&gt; 67a6ac9b727b, update_spatial_params INFO [alembic.runtime.migration] Running upgrade 67a6ac9b727b -&gt; 21e88bc06c02 INFO [alembic.runtime.migration] Running upgrade 21e88bc06c02 -&gt; e866bd2d4976, smaller_grid Revision ID: e866bd2d4976 Revises: 21e88bc06c02 Create Date: 2018-02-13 08:07:40.766277 INFO [alembic.runtime.migration] Running upgrade e866bd2d4976 -&gt; e68c4473c581, allow_multi_schema_metadata_fetch INFO [alembic.runtime.migration] Running upgrade e68c4473c581 -&gt; f231d82b9b26, empty message INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; bf706ae5eb46, cal_heatmap_metric_to_metrics INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; 30bb17c0dc76, empty message INFO [alembic.runtime.migration] Running upgrade 30bb17c0dc76, bf706ae5eb46 -&gt; c9495751e314, empty message INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; 130915240929, is_sqllab_view INFO [alembic.runtime.migration] Running upgrade 130915240929, c9495751e314 -&gt; 5ccf602336a0, empty message INFO [alembic.runtime.migration] Running upgrade 5ccf602336a0 -&gt; e502db2af7be, add template_params to tables INFO [alembic.runtime.migration] Running upgrade e502db2af7be -&gt; c5756bec8b47, Time grain SQLA INFO [alembic.runtime.migration] Running upgrade c5756bec8b47 -&gt; afb7730f6a9c, remove empty filters INFO [alembic.runtime.migration] Running upgrade afb7730f6a9c -&gt; 80a67c5192fa, single pie chart metric INFO [alembic.runtime.migration] Running upgrade 80a67c5192fa -&gt; bddc498dd179, adhoc filters INFO [alembic.runtime.migration] Running upgrade bddc498dd179 -&gt; 4451805bbaa1, remove double percents INFO [alembic.runtime.migration] Running upgrade bddc498dd179 -&gt; 3dda56f1c4c6, Migrate num_period_compare and period_ratio_type INFO [alembic.runtime.migration] Running upgrade 3dda56f1c4c6 -&gt; 1d9e835a84f9, empty message INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; 705732c70154, empty message INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; fc480c87706c, empty message INFO [alembic.runtime.migration] Running upgrade fc480c87706c -&gt; bebcf3fed1fe, Migrate dashboard position_json data from V1 to V2 INFO [alembic.runtime.migration] Running upgrade bebcf3fed1fe, 705732c70154 -&gt; ec1f88a35cc6, empty message INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; e3970889f38e, empty message INFO [alembic.runtime.migration] Running upgrade 705732c70154, e3970889f38e -&gt; 46ba6aaaac97, empty message INFO [alembic.runtime.migration] Running upgrade 46ba6aaaac97, ec1f88a35cc6 -&gt; c18bd4186f15, empty message INFO [alembic.runtime.migration] Running upgrade c18bd4186f15 -&gt; 7fcdcde0761c, Reduce position_json size by remove extra space and component id prefix INFO [alembic.runtime.migration] Running upgrade 7fcdcde0761c -&gt; 0c5070e96b57, add user attributes table INFO [alembic.runtime.migration] Running upgrade 0c5070e96b57 -&gt; 1a1d627ebd8e, position_json INFO [alembic.runtime.migration] Running upgrade 1a1d627ebd8e -&gt; 55e910a74826, add_metadata_column_to_annotation_model.py INFO [alembic.runtime.migration] Running upgrade 55e910a74826 -&gt; 4ce8df208545, empty message INFO [alembic.runtime.migration] Running upgrade 4ce8df208545 -&gt; 46f444d8b9b7, remove_coordinator_from_druid_cluster_model.py INFO [alembic.runtime.migration] Running upgrade 46f444d8b9b7 -&gt; a61b40f9f57f, remove allow_run_sync INFO [alembic.runtime.migration] Running upgrade a61b40f9f57f -&gt; 6c7537a6004a, models for email reports INFO [alembic.runtime.migration] Running upgrade 6c7537a6004a -&gt; 3e1b21cd94a4, change_owner_to_m2m_relation_on_datasources.py INFO [alembic.runtime.migration] Running upgrade 6c7537a6004a -&gt; cefabc8f7d38, Increase size of name column in ab_view_menu INFO [alembic.runtime.migration] Running upgrade 55e910a74826 -&gt; 0b1f1ab473c0, Add extra column to Query INFO [alembic.runtime.migration] Running upgrade 0b1f1ab473c0, cefabc8f7d38, 3e1b21cd94a4 -&gt; de021a1ca60d, empty message INFO [alembic.runtime.migration] Running upgrade de021a1ca60d -&gt; fb13d49b72f9, better_filters INFO [alembic.runtime.migration] Running upgrade fb13d49b72f9 -&gt; a33a03f16c4a, Add extra column to SavedQuery INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; c829ff0b37d0, empty message INFO [alembic.runtime.migration] Running upgrade c829ff0b37d0 -&gt; 7467e77870e4, remove_aggs INFO [alembic.runtime.migration] Running upgrade 7467e77870e4, de021a1ca60d -&gt; fbd55e0f83eb, empty message INFO [alembic.runtime.migration] Running upgrade fbd55e0f83eb, fb13d49b72f9 -&gt; 8b70aa3d0f87, empty message INFO [alembic.runtime.migration] Running upgrade 8b70aa3d0f87, a33a03f16c4a -&gt; 18dc26817ad2, empty message INFO [alembic.runtime.migration] Running upgrade 18dc26817ad2 -&gt; c617da68de7d, form nullable INFO [alembic.runtime.migration] Running upgrade c617da68de7d -&gt; c82ee8a39623, Add implicit tags INFO [alembic.runtime.migration] Running upgrade 18dc26817ad2 -&gt; e553e78e90c5, add_druid_auth_py.py INFO [alembic.runtime.migration] Running upgrade e553e78e90c5, c82ee8a39623 -&gt; 45e7da7cfeba, empty message INFO [alembic.runtime.migration] Running upgrade 45e7da7cfeba -&gt; 80aa3f04bc82, Add Parent ids in dashboard layout metadata INFO [alembic.runtime.migration] Running upgrade 80aa3f04bc82 -&gt; d94d33dbe938, form strip INFO [alembic.runtime.migration] Running upgrade d94d33dbe938 -&gt; 937d04c16b64, update datasources INFO [alembic.runtime.migration] Running upgrade 937d04c16b64 -&gt; 7f2635b51f5d, update base columns INFO [alembic.runtime.migration] Running upgrade 7f2635b51f5d -&gt; e9df189e5c7e, update base metrics INFO [alembic.runtime.migration] Running upgrade e9df189e5c7e -&gt; afc69274c25a, update the sql, select_sql, and executed_sql columns in the query table in mysql dbs to be long text columns INFO [alembic.runtime.migration] Running upgrade afc69274c25a -&gt; d7c1a0d6f2da, Remove limit used from query model INFO [alembic.runtime.migration] Running upgrade d7c1a0d6f2da -&gt; ab8c66efdd01, resample INFO [alembic.runtime.migration] Running upgrade ab8c66efdd01 -&gt; b4a38aa87893, deprecate database expression INFO [alembic.runtime.migration] Running upgrade b4a38aa87893 -&gt; d6ffdf31bdd4, Add published column to dashboards INFO [alembic.runtime.migration] Running upgrade d6ffdf31bdd4 -&gt; 190188938582, Remove duplicated entries in dashboard_slices table and add unique constraint INFO [alembic.runtime.migration] Running upgrade 190188938582 -&gt; def97f26fdfb, Add index to tagged_object INFO [alembic.runtime.migration] Running upgrade def97f26fdfb -&gt; 11c737c17cc6, deprecate_restricted_metrics INFO [alembic.runtime.migration] Running upgrade 11c737c17cc6 -&gt; 258b5280a45e, form strip leading and trailing whitespace INFO [alembic.runtime.migration] Running upgrade 258b5280a45e -&gt; 1495eb914ad3, time range INFO [alembic.runtime.migration] Running upgrade 1495eb914ad3 -&gt; b6fa807eac07, make_names_non_nullable INFO [alembic.runtime.migration] Running upgrade b6fa807eac07 -&gt; cca2f5d568c8, add encrypted_extra to dbs INFO [alembic.runtime.migration] Running upgrade cca2f5d568c8 -&gt; c2acd2cf3df2, alter type of dbs encrypted_extra INFO [alembic.runtime.migration] Running upgrade c2acd2cf3df2 -&gt; 78ee127d0d1d, reconvert legacy filters into adhoc INFO [alembic.runtime.migration] Running upgrade 78ee127d0d1d -&gt; db4b49eb0782, Add tables for SQL Lab state + '[' '' = yes ']' + superset init Loaded your LOCAL configuration at [/home/superset/superset/superset_config.py] 2019-11-20 22:34:57,629:INFO:root:logging was configured successfully 2019-11-20 22:34:57,740:INFO:root:Configured event logger of type &lt;class 'superset.utils.log.DBEventLogger'&gt; 2019-11-20 22:34:58,056:DEBUG:asyncio:Using selector: EpollSelector 2019-11-20 22:34:58,930:INFO:root:Creating database reference for examples 2019-11-20 22:35:04,502:INFO:root:Syncing role definition 2019-11-20 22:35:04,534:INFO:root:Syncing Admin perms 2019-11-20 22:35:04,627:INFO:root:Syncing Alpha perms 2019-11-20 22:35:05,053:INFO:root:Syncing Gamma perms 2019-11-20 22:35:05,470:INFO:root:Syncing granter perms 2019-11-20 22:35:05,810:INFO:root:Syncing sql_lab perms 2019-11-20 22:35:06,206:INFO:root:Fetching a set of all perms to lookup which ones are missing 2019-11-20 22:35:06,290:INFO:root:Creating missing datasource permissions. 2019-11-20 22:35:06,295:INFO:root:Creating missing database permissions. 2019-11-20 22:35:06,306:INFO:root:Creating missing metrics permissions 2019-11-20 22:35:06,310:INFO:root:Cleaning faulty perms"><pre class="notranslate"><code class="notranslate">docker-compose run --rm superset ./docker-init.sh Starting superset_redis_1 ... done Starting superset_postgres_1 ... done + '[' 1 -ne 0 ']' + exec ./docker-init.sh + export FLASK_APP=superset:app + FLASK_APP=superset:app + flask fab create-admin Username [admin]: User first name [admin]: User last name [user]: Email [[email protected]]: Password: Repeat for confirmation: Loaded your LOCAL configuration at [/home/superset/superset/superset_config.py] 2019-11-20 22:34:51,404:INFO:root:logging was configured successfully 2019-11-20 22:34:51,591:INFO:root:Configured event logger of type &lt;class 'superset.utils.log.DBEventLogger'&gt; 2019-11-20 22:34:52,054:DEBUG:asyncio:Using selector: EpollSelector Recognized Database Authentications. Admin User admin created. + superset db upgrade Loaded your LOCAL configuration at [/home/superset/superset/superset_config.py] 2019-11-20 22:34:54,214:INFO:root:logging was configured successfully 2019-11-20 22:34:54,324:INFO:root:Configured event logger of type &lt;class 'superset.utils.log.DBEventLogger'&gt; 2019-11-20 22:34:54,636:DEBUG:asyncio:Using selector: EpollSelector INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. INFO [alembic.runtime.migration] Running upgrade -&gt; 4e6a06bad7a8, Init INFO [alembic.runtime.migration] Running upgrade 4e6a06bad7a8 -&gt; 5a7bad26f2a7, empty message INFO [alembic.runtime.migration] Running upgrade 5a7bad26f2a7 -&gt; 1e2841a4128, empty message INFO [alembic.runtime.migration] Running upgrade 1e2841a4128 -&gt; 2929af7925ed, TZ offsets in data sources INFO [alembic.runtime.migration] Running upgrade 2929af7925ed -&gt; 289ce07647b, Add encrypted password field INFO [alembic.runtime.migration] Running upgrade 289ce07647b -&gt; 1a48a5411020, adding slug to dash INFO [alembic.runtime.migration] Running upgrade 1a48a5411020 -&gt; 315b3f4da9b0, adding log model INFO [alembic.runtime.migration] Running upgrade 315b3f4da9b0 -&gt; 55179c7f25c7, sqla_descr INFO [alembic.runtime.migration] Running upgrade 55179c7f25c7 -&gt; 12d55656cbca, is_featured INFO [alembic.runtime.migration] Running upgrade 12d55656cbca -&gt; 2591d77e9831, user_id INFO [alembic.runtime.migration] Running upgrade 2591d77e9831 -&gt; 8e80a26a31db, empty message INFO [alembic.runtime.migration] Running upgrade 8e80a26a31db -&gt; 7dbf98566af7, empty message INFO [alembic.runtime.migration] Running upgrade 7dbf98566af7 -&gt; 43df8de3a5f4, empty message INFO [alembic.runtime.migration] Running upgrade 43df8de3a5f4 -&gt; d827694c7555, css templates INFO [alembic.runtime.migration] Running upgrade d827694c7555 -&gt; 430039611635, log more INFO [alembic.runtime.migration] Running upgrade 430039611635 -&gt; 18e88e1cc004, making audit nullable INFO [alembic.runtime.migration] Running upgrade 18e88e1cc004 -&gt; 836c0bf75904, cache_timeouts INFO [alembic.runtime.migration] Running upgrade 18e88e1cc004 -&gt; a2d606a761d9, adding favstar model INFO [alembic.runtime.migration] Running upgrade a2d606a761d9, 836c0bf75904 -&gt; d2424a248d63, empty message INFO [alembic.runtime.migration] Running upgrade d2424a248d63 -&gt; 763d4b211ec9, fixing audit fk INFO [alembic.runtime.migration] Running upgrade d2424a248d63 -&gt; 1d2ddd543133, log dt INFO [alembic.runtime.migration] Running upgrade 1d2ddd543133, 763d4b211ec9 -&gt; fee7b758c130, empty message INFO [alembic.runtime.migration] Running upgrade fee7b758c130 -&gt; 867bf4f117f9, Adding extra field to Database model INFO [alembic.runtime.migration] Running upgrade 867bf4f117f9 -&gt; bb51420eaf83, add schema to table model INFO [alembic.runtime.migration] Running upgrade bb51420eaf83 -&gt; b4456560d4f3, change_table_unique_constraint INFO [alembic.runtime.migration] Running upgrade b4456560d4f3 -&gt; 4fa88fe24e94, owners_many_to_many INFO [alembic.runtime.migration] Running upgrade 4fa88fe24e94 -&gt; c3a8f8611885, Materializing permission INFO [alembic.runtime.migration] Running upgrade c3a8f8611885 -&gt; f0fbf6129e13, Adding verbose_name to tablecolumn INFO [alembic.runtime.migration] Running upgrade f0fbf6129e13 -&gt; 956a063c52b3, adjusting key length INFO [alembic.runtime.migration] Running upgrade 956a063c52b3 -&gt; 1226819ee0e3, Fix wrong constraint on table columns INFO [alembic.runtime.migration] Running upgrade 1226819ee0e3 -&gt; d8bc074f7aad, Add new field 'is_restricted' to SqlMetric and DruidMetric INFO [alembic.runtime.migration] Running upgrade d8bc074f7aad -&gt; 27ae655e4247, Make creator owners INFO [alembic.runtime.migration] Running upgrade 27ae655e4247 -&gt; 960c69cb1f5b, add dttm_format related fields in table_columns INFO [alembic.runtime.migration] Running upgrade 960c69cb1f5b -&gt; f162a1dea4c4, d3format_by_metric INFO [alembic.runtime.migration] Running upgrade f162a1dea4c4 -&gt; ad82a75afd82, Update models to support storing the queries. INFO [alembic.runtime.migration] Running upgrade ad82a75afd82 -&gt; 3c3ffe173e4f, add_sql_string_to_table INFO [alembic.runtime.migration] Running upgrade 3c3ffe173e4f -&gt; 41f6a59a61f2, database options for sql lab INFO [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -&gt; 4500485bde7d, allow_run_sync_async INFO [alembic.runtime.migration] Running upgrade 4500485bde7d -&gt; 65903709c321, allow_dml INFO [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -&gt; 33d996bcc382, update slice model INFO [alembic.runtime.migration] Running upgrade 33d996bcc382, 65903709c321 -&gt; b347b202819b, empty message INFO [alembic.runtime.migration] Running upgrade b347b202819b -&gt; 5e4a03ef0bf0, Add access_request table to manage requests to access datastores. INFO [alembic.runtime.migration] Running upgrade 5e4a03ef0bf0 -&gt; eca4694defa7, sqllab_setting_defaults INFO [alembic.runtime.migration] Running upgrade eca4694defa7 -&gt; ab3d66c4246e, add_cache_timeout_to_druid_cluster INFO [alembic.runtime.migration] Running upgrade eca4694defa7 -&gt; 3b626e2a6783, Sync DB with the models.py. INFO [alembic.runtime.migration] Running upgrade 3b626e2a6783, ab3d66c4246e -&gt; ef8843b41dac, empty message INFO [alembic.runtime.migration] Running upgrade ef8843b41dac -&gt; b46fa1b0b39e, Add json_metadata to the tables table. INFO [alembic.runtime.migration] Running upgrade b46fa1b0b39e -&gt; 7e3ddad2a00b, results_key to query INFO [alembic.runtime.migration] Running upgrade 7e3ddad2a00b -&gt; ad4d656d92bc, Add avg() to default metrics INFO [alembic.runtime.migration] Running upgrade ad4d656d92bc -&gt; c611f2b591b8, dim_spec INFO [alembic.runtime.migration] Running upgrade c611f2b591b8 -&gt; e46f2d27a08e, materialize perms INFO [alembic.runtime.migration] Running upgrade e46f2d27a08e -&gt; f1f2d4af5b90, Enable Filter Select INFO [alembic.runtime.migration] Running upgrade e46f2d27a08e -&gt; 525c854f0005, log_this_plus INFO [alembic.runtime.migration] Running upgrade 525c854f0005, f1f2d4af5b90 -&gt; 6414e83d82b7, empty message INFO [alembic.runtime.migration] Running upgrade 6414e83d82b7 -&gt; 1296d28ec131, Adds params to the datasource (druid) table INFO [alembic.runtime.migration] Running upgrade 1296d28ec131 -&gt; f18570e03440, Add index on the result key to the query table. INFO [alembic.runtime.migration] Running upgrade f18570e03440 -&gt; bcf3126872fc, Add keyvalue table INFO [alembic.runtime.migration] Running upgrade f18570e03440 -&gt; db0c65b146bd, update_slice_model_json INFO [alembic.runtime.migration] Running upgrade db0c65b146bd -&gt; a99f2f7c195a, rewriting url from shortner with new format INFO [alembic.runtime.migration] Running upgrade a99f2f7c195a, bcf3126872fc -&gt; d6db5a5cdb5d, empty message INFO [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -&gt; b318dfe5fb6c, adding verbose_name to druid column INFO [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -&gt; 732f1c06bcbf, add fetch values predicate INFO [alembic.runtime.migration] Running upgrade 732f1c06bcbf, b318dfe5fb6c -&gt; ea033256294a, empty message INFO [alembic.runtime.migration] Running upgrade b318dfe5fb6c -&gt; db527d8c4c78, Add verbose name to DruidCluster and Database INFO [alembic.runtime.migration] Running upgrade db527d8c4c78, ea033256294a -&gt; 979c03af3341, empty message INFO [alembic.runtime.migration] Running upgrade 979c03af3341 -&gt; a6c18f869a4e, query.start_running_time INFO [alembic.runtime.migration] Running upgrade a6c18f869a4e -&gt; 2fcdcb35e487, saved_queries INFO [alembic.runtime.migration] Running upgrade 2fcdcb35e487 -&gt; a65458420354, add_result_backend_time_logging INFO [alembic.runtime.migration] Running upgrade a65458420354 -&gt; ca69c70ec99b, tracking_url INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; a9c47e2c1547, add impersonate_user to dbs INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; ddd6ebdd853b, annotations INFO [alembic.runtime.migration] Running upgrade a9c47e2c1547, ddd6ebdd853b -&gt; d39b1e37131d, empty message INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; 19a814813610, Adding metric warning_text INFO [alembic.runtime.migration] Running upgrade 19a814813610, a9c47e2c1547 -&gt; 472d2f73dfd4, empty message INFO [alembic.runtime.migration] Running upgrade 472d2f73dfd4, d39b1e37131d -&gt; f959a6652acd, empty message INFO [alembic.runtime.migration] Running upgrade f959a6652acd -&gt; 4736ec66ce19, empty message INFO [alembic.runtime.migration] Running upgrade 4736ec66ce19 -&gt; 67a6ac9b727b, update_spatial_params INFO [alembic.runtime.migration] Running upgrade 67a6ac9b727b -&gt; 21e88bc06c02 INFO [alembic.runtime.migration] Running upgrade 21e88bc06c02 -&gt; e866bd2d4976, smaller_grid Revision ID: e866bd2d4976 Revises: 21e88bc06c02 Create Date: 2018-02-13 08:07:40.766277 INFO [alembic.runtime.migration] Running upgrade e866bd2d4976 -&gt; e68c4473c581, allow_multi_schema_metadata_fetch INFO [alembic.runtime.migration] Running upgrade e68c4473c581 -&gt; f231d82b9b26, empty message INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; bf706ae5eb46, cal_heatmap_metric_to_metrics INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; 30bb17c0dc76, empty message INFO [alembic.runtime.migration] Running upgrade 30bb17c0dc76, bf706ae5eb46 -&gt; c9495751e314, empty message INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; 130915240929, is_sqllab_view INFO [alembic.runtime.migration] Running upgrade 130915240929, c9495751e314 -&gt; 5ccf602336a0, empty message INFO [alembic.runtime.migration] Running upgrade 5ccf602336a0 -&gt; e502db2af7be, add template_params to tables INFO [alembic.runtime.migration] Running upgrade e502db2af7be -&gt; c5756bec8b47, Time grain SQLA INFO [alembic.runtime.migration] Running upgrade c5756bec8b47 -&gt; afb7730f6a9c, remove empty filters INFO [alembic.runtime.migration] Running upgrade afb7730f6a9c -&gt; 80a67c5192fa, single pie chart metric INFO [alembic.runtime.migration] Running upgrade 80a67c5192fa -&gt; bddc498dd179, adhoc filters INFO [alembic.runtime.migration] Running upgrade bddc498dd179 -&gt; 4451805bbaa1, remove double percents INFO [alembic.runtime.migration] Running upgrade bddc498dd179 -&gt; 3dda56f1c4c6, Migrate num_period_compare and period_ratio_type INFO [alembic.runtime.migration] Running upgrade 3dda56f1c4c6 -&gt; 1d9e835a84f9, empty message INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; 705732c70154, empty message INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; fc480c87706c, empty message INFO [alembic.runtime.migration] Running upgrade fc480c87706c -&gt; bebcf3fed1fe, Migrate dashboard position_json data from V1 to V2 INFO [alembic.runtime.migration] Running upgrade bebcf3fed1fe, 705732c70154 -&gt; ec1f88a35cc6, empty message INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; e3970889f38e, empty message INFO [alembic.runtime.migration] Running upgrade 705732c70154, e3970889f38e -&gt; 46ba6aaaac97, empty message INFO [alembic.runtime.migration] Running upgrade 46ba6aaaac97, ec1f88a35cc6 -&gt; c18bd4186f15, empty message INFO [alembic.runtime.migration] Running upgrade c18bd4186f15 -&gt; 7fcdcde0761c, Reduce position_json size by remove extra space and component id prefix INFO [alembic.runtime.migration] Running upgrade 7fcdcde0761c -&gt; 0c5070e96b57, add user attributes table INFO [alembic.runtime.migration] Running upgrade 0c5070e96b57 -&gt; 1a1d627ebd8e, position_json INFO [alembic.runtime.migration] Running upgrade 1a1d627ebd8e -&gt; 55e910a74826, add_metadata_column_to_annotation_model.py INFO [alembic.runtime.migration] Running upgrade 55e910a74826 -&gt; 4ce8df208545, empty message INFO [alembic.runtime.migration] Running upgrade 4ce8df208545 -&gt; 46f444d8b9b7, remove_coordinator_from_druid_cluster_model.py INFO [alembic.runtime.migration] Running upgrade 46f444d8b9b7 -&gt; a61b40f9f57f, remove allow_run_sync INFO [alembic.runtime.migration] Running upgrade a61b40f9f57f -&gt; 6c7537a6004a, models for email reports INFO [alembic.runtime.migration] Running upgrade 6c7537a6004a -&gt; 3e1b21cd94a4, change_owner_to_m2m_relation_on_datasources.py INFO [alembic.runtime.migration] Running upgrade 6c7537a6004a -&gt; cefabc8f7d38, Increase size of name column in ab_view_menu INFO [alembic.runtime.migration] Running upgrade 55e910a74826 -&gt; 0b1f1ab473c0, Add extra column to Query INFO [alembic.runtime.migration] Running upgrade 0b1f1ab473c0, cefabc8f7d38, 3e1b21cd94a4 -&gt; de021a1ca60d, empty message INFO [alembic.runtime.migration] Running upgrade de021a1ca60d -&gt; fb13d49b72f9, better_filters INFO [alembic.runtime.migration] Running upgrade fb13d49b72f9 -&gt; a33a03f16c4a, Add extra column to SavedQuery INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; c829ff0b37d0, empty message INFO [alembic.runtime.migration] Running upgrade c829ff0b37d0 -&gt; 7467e77870e4, remove_aggs INFO [alembic.runtime.migration] Running upgrade 7467e77870e4, de021a1ca60d -&gt; fbd55e0f83eb, empty message INFO [alembic.runtime.migration] Running upgrade fbd55e0f83eb, fb13d49b72f9 -&gt; 8b70aa3d0f87, empty message INFO [alembic.runtime.migration] Running upgrade 8b70aa3d0f87, a33a03f16c4a -&gt; 18dc26817ad2, empty message INFO [alembic.runtime.migration] Running upgrade 18dc26817ad2 -&gt; c617da68de7d, form nullable INFO [alembic.runtime.migration] Running upgrade c617da68de7d -&gt; c82ee8a39623, Add implicit tags INFO [alembic.runtime.migration] Running upgrade 18dc26817ad2 -&gt; e553e78e90c5, add_druid_auth_py.py INFO [alembic.runtime.migration] Running upgrade e553e78e90c5, c82ee8a39623 -&gt; 45e7da7cfeba, empty message INFO [alembic.runtime.migration] Running upgrade 45e7da7cfeba -&gt; 80aa3f04bc82, Add Parent ids in dashboard layout metadata INFO [alembic.runtime.migration] Running upgrade 80aa3f04bc82 -&gt; d94d33dbe938, form strip INFO [alembic.runtime.migration] Running upgrade d94d33dbe938 -&gt; 937d04c16b64, update datasources INFO [alembic.runtime.migration] Running upgrade 937d04c16b64 -&gt; 7f2635b51f5d, update base columns INFO [alembic.runtime.migration] Running upgrade 7f2635b51f5d -&gt; e9df189e5c7e, update base metrics INFO [alembic.runtime.migration] Running upgrade e9df189e5c7e -&gt; afc69274c25a, update the sql, select_sql, and executed_sql columns in the query table in mysql dbs to be long text columns INFO [alembic.runtime.migration] Running upgrade afc69274c25a -&gt; d7c1a0d6f2da, Remove limit used from query model INFO [alembic.runtime.migration] Running upgrade d7c1a0d6f2da -&gt; ab8c66efdd01, resample INFO [alembic.runtime.migration] Running upgrade ab8c66efdd01 -&gt; b4a38aa87893, deprecate database expression INFO [alembic.runtime.migration] Running upgrade b4a38aa87893 -&gt; d6ffdf31bdd4, Add published column to dashboards INFO [alembic.runtime.migration] Running upgrade d6ffdf31bdd4 -&gt; 190188938582, Remove duplicated entries in dashboard_slices table and add unique constraint INFO [alembic.runtime.migration] Running upgrade 190188938582 -&gt; def97f26fdfb, Add index to tagged_object INFO [alembic.runtime.migration] Running upgrade def97f26fdfb -&gt; 11c737c17cc6, deprecate_restricted_metrics INFO [alembic.runtime.migration] Running upgrade 11c737c17cc6 -&gt; 258b5280a45e, form strip leading and trailing whitespace INFO [alembic.runtime.migration] Running upgrade 258b5280a45e -&gt; 1495eb914ad3, time range INFO [alembic.runtime.migration] Running upgrade 1495eb914ad3 -&gt; b6fa807eac07, make_names_non_nullable INFO [alembic.runtime.migration] Running upgrade b6fa807eac07 -&gt; cca2f5d568c8, add encrypted_extra to dbs INFO [alembic.runtime.migration] Running upgrade cca2f5d568c8 -&gt; c2acd2cf3df2, alter type of dbs encrypted_extra INFO [alembic.runtime.migration] Running upgrade c2acd2cf3df2 -&gt; 78ee127d0d1d, reconvert legacy filters into adhoc INFO [alembic.runtime.migration] Running upgrade 78ee127d0d1d -&gt; db4b49eb0782, Add tables for SQL Lab state + '[' '' = yes ']' + superset init Loaded your LOCAL configuration at [/home/superset/superset/superset_config.py] 2019-11-20 22:34:57,629:INFO:root:logging was configured successfully 2019-11-20 22:34:57,740:INFO:root:Configured event logger of type &lt;class 'superset.utils.log.DBEventLogger'&gt; 2019-11-20 22:34:58,056:DEBUG:asyncio:Using selector: EpollSelector 2019-11-20 22:34:58,930:INFO:root:Creating database reference for examples 2019-11-20 22:35:04,502:INFO:root:Syncing role definition 2019-11-20 22:35:04,534:INFO:root:Syncing Admin perms 2019-11-20 22:35:04,627:INFO:root:Syncing Alpha perms 2019-11-20 22:35:05,053:INFO:root:Syncing Gamma perms 2019-11-20 22:35:05,470:INFO:root:Syncing granter perms 2019-11-20 22:35:05,810:INFO:root:Syncing sql_lab perms 2019-11-20 22:35:06,206:INFO:root:Fetching a set of all perms to lookup which ones are missing 2019-11-20 22:35:06,290:INFO:root:Creating missing datasource permissions. 2019-11-20 22:35:06,295:INFO:root:Creating missing database permissions. 2019-11-20 22:35:06,306:INFO:root:Creating missing metrics permissions 2019-11-20 22:35:06,310:INFO:root:Cleaning faulty perms </code></pre></div> <p dir="auto">what you expected to happen.</p> <h3 dir="auto">Actual results</h3> <p dir="auto">Script errors with <code class="notranslate">Error: A valid Flask application was not obtained from "superset:app".</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ docker-compose run --rm superset ./docker-init.sh Creating network &quot;superset_default&quot; with the default driver Creating superset_redis_1 ... done Creating superset_postgres_1 ... done + '[' 1 -ne 0 ']' + exec ./docker-init.sh + export FLASK_APP=superset:app + FLASK_APP=superset:app + flask fab create-admin Username [admin]: User first name [admin]: User last name [user]: Email [[email protected]]: Password: Repeat for confirmation: Usage: flask fab create-admin [OPTIONS] Error: A valid Flask application was not obtained from &quot;superset:app&quot;."><pre class="notranslate"><code class="notranslate">$ docker-compose run --rm superset ./docker-init.sh Creating network "superset_default" with the default driver Creating superset_redis_1 ... done Creating superset_postgres_1 ... done + '[' 1 -ne 0 ']' + exec ./docker-init.sh + export FLASK_APP=superset:app + FLASK_APP=superset:app + flask fab create-admin Username [admin]: User first name [admin]: User last name [user]: Email [[email protected]]: Password: Repeat for confirmation: Usage: flask fab create-admin [OPTIONS] Error: A valid Flask application was not obtained from "superset:app". </code></pre></div> <h4 dir="auto">How to reproduce the bug</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/apache/incubator-superset/ cd incubator-superset/contrib/docker docker-compose run --rm superset ./docker-init.sh"><pre class="notranslate"><code class="notranslate">git clone https://github.com/apache/incubator-superset/ cd incubator-superset/contrib/docker docker-compose run --rm superset ./docker-init.sh </code></pre></div> <h3 dir="auto">Environment</h3> <p dir="auto">Superset commit <code class="notranslate">ff6773df4ed7d3baca15f19baf30a793b4fce248</code><br> <code class="notranslate">Docker version 18.09.9-ce, build 039a7df</code></p> <h3 dir="auto">Checklist</h3> <p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul dir="auto"> <li>[X ] I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li>[ X] I have reproduced the issue with at least the latest released version of superset.</li> <li>[ X] I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">Pretty sure this is due to changes in <a href="https://github.com/apache/incubator-superset/pull/8418" data-hovercard-type="pull_request" data-hovercard-url="/apache/superset/pull/8418/hovercard">this PR</a> that was merged in earlier today. I checked out the commit immediately before that (<code class="notranslate">git checkout 300c4ecb0f6798e5901dcb88a034c53e708ff0b4</code>) and everything worked just fine.</p> <p dir="auto">I tried to update the <code class="notranslate">docker-init.sh</code> script so <code class="notranslate">FLASK_APP="superset.app:create_app()"</code>. That got passed the initial error but more popped up.</p>
<p dir="auto">When setting up hierarchical filters, the user might select the parent filter to be the child filter and the child filter to be the parent. While this is an obvious mistake from the user, the UI should not freeze but should instead emit a proper error.</p> <h4 dir="auto">How to reproduce the bug</h4> <ol dir="auto"> <li>Go to a Dashboard</li> <li>Add a filter named "Parent Filter"</li> <li>Add another filter named "Child Filter"</li> <li>Set the "Child Filter" to use the "Parent Filter" in the hierarchy</li> <li>Set the "Parent Filter" to use the "Child Filter" in the hierarchy</li> <li>Click on Save</li> <li>Observe that the UI freezes out</li> </ol> <h3 dir="auto">Expected results</h3> <p dir="auto">The UI should emit a proper error, such "Cannot used child filter as parent"</p> <h3 dir="auto">Actual results</h3> <p dir="auto">The UI freezes and no humanly understandable error is emitted</p> <h4 dir="auto">Screenshots</h4> <details open="" class="details-reset border rounded-2"> <summary class="px-3 py-2"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-camera-video"> <path d="M16 3.75v8.5a.75.75 0 0 1-1.136.643L11 10.575v.675A1.75 1.75 0 0 1 9.25 13h-7.5A1.75 1.75 0 0 1 0 11.25v-6.5C0 3.784.784 3 1.75 3h7.5c.966 0 1.75.784 1.75 1.75v.675l3.864-2.318A.75.75 0 0 1 16 3.75Zm-6.5 1a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-6.5ZM11 8.825l3.5 2.1v-5.85l-3.5 2.1Z"></path> </svg> <span aria-label="Video description Video.Game.Sales.2.mp4" class="m-1">Video.Game.Sales.2.mp4</span> <span class="dropdown-caret"></span> </summary> <video src="https://user-images.githubusercontent.com/60598000/135250851-4f424819-d7e2-4bb1-b314-ead1c66b3ab5.mp4" data-canonical-src="https://user-images.githubusercontent.com/60598000/135250851-4f424819-d7e2-4bb1-b314-ead1c66b3ab5.mp4" controls="controls" muted="muted" class="d-block rounded-bottom-2 border-top width-fit" style="max-height:640px; min-height: 200px"> </video> </details> <h3 dir="auto">Environment</h3> <p dir="auto">(please complete the following information):</p> <ul dir="auto"> <li>browser type and version: chrome</li> <li>superset version: <code class="notranslate">superset version</code> latest master</li> <li>python version: <code class="notranslate">python --version</code></li> <li>node.js version: <code class="notranslate">node -v</code></li> <li>any feature flags active: native filters and cross-filters</li> </ul> <h3 dir="auto">Checklist</h3> <p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">Add any other context about the problem here.</p>
0
<p dir="auto">For the one who will tag this issue: Affects <strong>Linux</strong> version. Likely is a bug. Causes a crash.</p> <p dir="auto">I'm not sure where the issue is, but since it's Atom that crashes as a result, I assume I should report it here. If it turns out to be issue somewhere else, I'll take my time to report it in the appropriate place.</p> <h3 dir="auto">Software involved</h3> <ol dir="auto"> <li>Firefox Developer Edition 40.0a2 (installed from <a href="https://launchpad.net/~ubuntu-mozilla-daily/+archive/ubuntu/firefox-aurora" rel="nofollow">Firefox Aurora PPA</a> as <code class="notranslate">firefox</code>)</li> <li>Atom 0.210.0 (installed from <a href="https://launchpad.net/~webupd8team/+archive/ubuntu/atom" rel="nofollow">Webupd8 PPA</a>)</li> <li>Linux Mint 17.1 Rebecca, XFCE edition, fully updated and with XFCE 4.12</li> </ol> <p dir="auto">Not sure if the last one is important, I'll add others to the list or remove the point altogether if the specific Linux distro turns out to be irrelevant.</p> <h3 dir="auto">Steps to reproduce:</h3> <ol dir="auto"> <li>Run Firefox and open some tabs</li> <li>Run Atom in safe mode to isolate the issue (I used <code class="notranslate">atom --safe .</code> from terminal)</li> <li>Grab one of the Firefox' tabs and drag it over the Atom's window, not releasing the mouse button</li> </ol> <p dir="auto"><strong>Result</strong>: Atom crashes, outputting the following into the terminal:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[10718:0622/124154:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on. ATTENTION: default value of option force_s3tc_enable overridden by environment. App load time: 288ms [10755:0622/124154:INFO:renderer_main.cc(212)] Renderer process started [10718:0622/124154:INFO:CONSOLE(175)] &quot;Enabled theme 'tomorrow-night-eighties-syntax' is not installed.&quot;, source: /opt/atom/resources/app.asar/src/theme-manager.js (175) [10718:0622/124155:INFO:CONSOLE(175)] &quot;Enabled theme 'tomorrow-night-eighties-syntax' is not installed.&quot;, source: /opt/atom/resources/app.asar/src/theme-manager.js (175) [10718:0622/124155:INFO:CONSOLE(175)] &quot;Enabled theme 'tomorrow-night-eighties-syntax' is not installed.&quot;, source: /opt/atom/resources/app.asar/src/theme-manager.js (175) [10718:0622/124156:INFO:CONSOLE(56)] &quot;Window load time: 1439ms&quot;, source: file:///opt/atom/resources/app.asar/static/index.js (56) The program 'atom' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAtom (invalid Atom parameter)'. (Details: serial 1312 error_code 5 request_code 20 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)"><pre class="notranslate"><code class="notranslate">[10718:0622/124154:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on. ATTENTION: default value of option force_s3tc_enable overridden by environment. App load time: 288ms [10755:0622/124154:INFO:renderer_main.cc(212)] Renderer process started [10718:0622/124154:INFO:CONSOLE(175)] "Enabled theme 'tomorrow-night-eighties-syntax' is not installed.", source: /opt/atom/resources/app.asar/src/theme-manager.js (175) [10718:0622/124155:INFO:CONSOLE(175)] "Enabled theme 'tomorrow-night-eighties-syntax' is not installed.", source: /opt/atom/resources/app.asar/src/theme-manager.js (175) [10718:0622/124155:INFO:CONSOLE(175)] "Enabled theme 'tomorrow-night-eighties-syntax' is not installed.", source: /opt/atom/resources/app.asar/src/theme-manager.js (175) [10718:0622/124156:INFO:CONSOLE(56)] "Window load time: 1439ms", source: file:///opt/atom/resources/app.asar/static/index.js (56) The program 'atom' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAtom (invalid Atom parameter)'. (Details: serial 1312 error_code 5 request_code 20 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) </code></pre></div>
<p dir="auto">Atom Version: 0.129.0<br> Video of me triggering the bug: <a href="http://ara.sh/private/atom-crash.ogv" rel="nofollow">http://ara.sh/private/atom-crash.ogv</a><br> Reproducible every time.</p> <p dir="auto">Environment:<br> Ubuntu 14.04 (all updates installed as of filing this issue)<br> Unity desktop environment</p> <p dir="auto">Repro steps:</p> <ol dir="auto"> <li>Launch atom from the Terminal</li> <li>Open a Firefox window (or use an existing one)</li> <li>Drag the Firefox tab anywhere over the Atom window</li> </ol> <p dir="auto">Actual behavior:<br> It crashes</p> <p dir="auto">Expected behavior:<br> Not crash :-)</p> <p dir="auto">Additional Information:<br> The terminal prints out the following after the crash:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[7950:0920/180947:ERROR:browser_main_loop.cc(161)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on. [7950:0920/180947:ERROR:browser_main_loop.cc(189)] GTK theme error: Unable to locate theme engine in module_path: &quot;pixmap&quot;, ATTENTION: default value of option force_s3tc_enable overridden by environment. App load time: 88ms [7984:0920/180947:INFO:renderer_main.cc(227)] Renderer process started [7950:0920/180948:INFO:CONSOLE(18)] &quot;Window load time: 778ms&quot;, source: /opt/atom/resources/app/src/window-bootstrap.js (18) The program 'atom' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAtom (invalid Atom parameter)'. (Details: serial 1360 error_code 5 request_code 20 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)"><pre class="notranslate"><code class="notranslate">[7950:0920/180947:ERROR:browser_main_loop.cc(161)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on. [7950:0920/180947:ERROR:browser_main_loop.cc(189)] GTK theme error: Unable to locate theme engine in module_path: "pixmap", ATTENTION: default value of option force_s3tc_enable overridden by environment. App load time: 88ms [7984:0920/180947:INFO:renderer_main.cc(227)] Renderer process started [7950:0920/180948:INFO:CONSOLE(18)] "Window load time: 778ms", source: /opt/atom/resources/app/src/window-bootstrap.js (18) The program 'atom' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAtom (invalid Atom parameter)'. (Details: serial 1360 error_code 5 request_code 20 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) </code></pre></div>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.6</li> <li>Operating System version: macos 10.15.13</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>Spring boot 1.5.2 ,when update dubbo 2.5.3 to 2.7.6 ,I have some problems</li> <li>my config is &lt;dubbo:application name="indicatiors" owner="xxx"/&gt;</li> <li>No application config found or it's not a valid config! Please add &lt;dubbo:application name="..." /&gt;</li> </ol> <p dir="auto">只在特定的项目里面发生这个问题,但是整体的环境都是一样的</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">run error</p> <p dir="auto">the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Caused by: java.lang.IllegalStateException: No application config found or it's not a valid config! Please add &lt;dubbo:application name=&quot;...&quot; /&gt; to your spring config. at org.apache.dubbo.config.utils.ConfigValidationUtils.validateApplicationConfig(ConfigValidationUtils.java:371) at org.apache.dubbo.config.bootstrap.DubboBootstrap.checkGlobalConfigs(DubboBootstrap.java:526) at org.apache.dubbo.config.bootstrap.DubboBootstrap.initialize(DubboBootstrap.java:513) at org.apache.dubbo.config.bootstrap.DubboBootstrap.init(DubboBootstrap.java:494) at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:190) at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:158) at org.apache.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:68) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ... 64 common frames omitted"><pre class="notranslate"><code class="notranslate">Caused by: java.lang.IllegalStateException: No application config found or it's not a valid config! Please add &lt;dubbo:application name="..." /&gt; to your spring config. at org.apache.dubbo.config.utils.ConfigValidationUtils.validateApplicationConfig(ConfigValidationUtils.java:371) at org.apache.dubbo.config.bootstrap.DubboBootstrap.checkGlobalConfigs(DubboBootstrap.java:526) at org.apache.dubbo.config.bootstrap.DubboBootstrap.initialize(DubboBootstrap.java:513) at org.apache.dubbo.config.bootstrap.DubboBootstrap.init(DubboBootstrap.java:494) at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:190) at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:158) at org.apache.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:68) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ... 64 common frames omitted </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: Centos7</li> <li>Java version: openjdk1.8+</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">看了以前18年的提及的issue,但是没看到很好的解决方法,官网提供的解决方案是通过telnet参数限制命令数量,但是还是希望能够做到直接关闭telnet功能,不知道还有什么方式能够做到</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<ul dir="auto"> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: v5.0.0-beta.1</li> <li>Operating System (Platform and Version): Windows 10 Version 1803 build 17134.523</li> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable): v4.0.3</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> Menu item click function should execute. e.g. toggle dev tools</p> <p dir="auto"><strong>Actual behavior</strong><br> Clicking any application menu item causes electron to crash.</p> <p dir="auto"><strong>To Reproduce</strong><br> Run electron-api-demos with 5.0.0-beta.1 and click any application menu item. Node integration to true for it to launch properly.</p>
<ul dir="auto"> <li><strong>Electron Version</strong> (output of <code class="notranslate">node_modules/.bin/electron --version</code>): <ul dir="auto"> <li>5.0.0-beta.2</li> </ul> </li> <li><strong>Operating System</strong> (Platform and Version): <ul dir="auto"> <li>Windows 7 Professional (SP1)</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Not crash</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Crash 3221225477</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto"><a href="https://github.com/Gvozd/electron-quick-start/tree/issue-16883">https://github.com/Gvozd/electron-quick-start/tree/issue-16883</a><br> based on electron-quick-start. only updated electron to 5.0.0-beta.2<br> try to open devtools from menu - crash</p>
1
<p dir="auto"><strong>Description</strong><br> <a href="https://phpunit.de/announcements/phpunit-8.html" rel="nofollow">PHPUnit 8</a> has just been released. In addition to new features, the following has been deprecated and will be removed in PHPUnit 9:</p> <ul dir="auto"> <li><code class="notranslate">assertInternalType()</code> and <code class="notranslate">assertNotInternalType()</code></li> <li><code class="notranslate">assertArraySubset()</code></li> <li>Annotation(s) for expecting exceptions</li> <li>Assertions (and helper methods) that operate on (non-public) attributes</li> <li>Optional parameters of <code class="notranslate">assertEquals()</code> and <code class="notranslate">assertNotEquals()</code></li> <li><code class="notranslate">TestListener</code> interface</li> <li>Optional parameters of <code class="notranslate">assertContains()</code> and <code class="notranslate">assertNotContains()</code> as well as using these methods with string haystacks</li> </ul> <p dir="auto">Full details at <a href="https://phpunit.de/announcements/phpunit-8.html" rel="nofollow">https://phpunit.de/announcements/phpunit-8.html</a></p> <p dir="auto">Let's review our tests to make sure we don't use these. Thanks.</p>
<p dir="auto"><strong>Description</strong><br> Allow to specifying a "message name" which define the type of message that can be handled.</p> <p dir="auto"><strong>Example</strong></p> <p dir="auto">Simple use-case where my main message can be extended:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php use App\Messenger\MessageInterface; class RandomMessage implements MessageInterface { protected $name = 'test' // getter }"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-k">use</span> <span class="pl-v">App</span>\<span class="pl-v">Messenger</span>\<span class="pl-v">MessageInterface</span>; <span class="pl-k">class</span> <span class="pl-v">RandomMessage</span> <span class="pl-k">implements</span> <span class="pl-v">MessageInterface</span> { <span class="pl-k">protected</span> <span class="pl-s1"><span class="pl-c1">$</span>name</span> = <span class="pl-s">'test'</span> <span class="pl-c">// getter</span> }</pre></div> <p dir="auto">The RandomMessage children:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php class NewRandomMessage extends RandomMessage { protected $name = 'newTest' // getter }"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-k">class</span> <span class="pl-v">NewRandomMessage</span> <span class="pl-k">extends</span> <span class="pl-v">RandomMessage</span> { <span class="pl-k">protected</span> <span class="pl-s1"><span class="pl-c1">$</span>name</span> = <span class="pl-s">'newTest'</span> <span class="pl-c">// getter</span> }</pre></div> <p dir="auto">Now the handler:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php use App\Messenger\MessageInterface; use Symfony\Component\Messenger\Handler\MessageHandlerInterface; class RandomHandler implements MessageHandlerInterface { public static function getHandledMessage(): string { return 'newTest'; } public function __invoke(MessageInterface $message): void { /** $message NewRandomMessage */ if ($message-&gt;getName() !== static::getHandledMessage()) { return; } } }"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-k">use</span> <span class="pl-v">App</span>\<span class="pl-v">Messenger</span>\<span class="pl-v">MessageInterface</span>; <span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">Messenger</span>\<span class="pl-v">Handler</span>\<span class="pl-v">MessageHandlerInterface</span>; <span class="pl-k">class</span> <span class="pl-v">RandomHandler</span> <span class="pl-k">implements</span> <span class="pl-v">MessageHandlerInterface</span> { <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-k">function</span> <span class="pl-en">getHandledMessage</span>(): <span class="pl-smi">string</span> { <span class="pl-k">return</span> <span class="pl-s">'newTest'</span>; } <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">__invoke</span>(<span class="pl-smi"><span class="pl-smi">MessageInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>message</span>): <span class="pl-smi">void</span> { <span class="pl-c">/** $message NewRandomMessage */</span> <span class="pl-k">if</span> (<span class="pl-s1"><span class="pl-c1">$</span>message</span>-&gt;<span class="pl-en">getName</span>() !== <span class="pl-smi"><span class="pl-k">static</span></span>::<span class="pl-en">getHandledMessage</span>()) { <span class="pl-k">return</span>; } } }</pre></div> <p dir="auto">This method (the name should be improved but for me, that's like the <code class="notranslate">EventSusbscriberInterface</code> one) can ease the process when a message can be extended, once handled, the message keep the same type in the Handler but the developer can indicate that only this type of message can be handled, this allow to use <code class="notranslate">switch</code> in the same handler in order to keep a small amount of handlers.</p> <p dir="auto">The <code class="notranslate">MessageInterface::getName()</code> is just for demonstration purpose (it can be a constant or anything else that can be called).</p> <p dir="auto">Thanks for the feedback.</p> <p dir="auto"><strong>EDIT: Example for a new interface</strong></p> <p dir="auto">Here's the new interface that can be added in order to allow this approach:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier &lt;[email protected]&gt; * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Messenger\Handler; interface MessageListenerInterface extends MessageHandlerInterface { /** * Returns the name of the message to be handled. * * It returns a string which contain the name of the message: * * return Message::NAME; * * Or: * * return 'test'; * * The `__invoke` method of the handler can use a defined interface. */ public static function getHandledMessage(): string; }"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-c">/*</span> <span class="pl-c"> * This file is part of the Symfony package.</span> <span class="pl-c"> *</span> <span class="pl-c"> * (c) Fabien Potencier &lt;[email protected]&gt;</span> <span class="pl-c"> *</span> <span class="pl-c"> * For the full copyright and license information, please view the LICENSE</span> <span class="pl-c"> * file that was distributed with this source code.</span> <span class="pl-c"> */</span> <span class="pl-k">namespace</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">Messenger</span>\<span class="pl-v">Handler</span>; <span class="pl-k">interface</span> <span class="pl-v">MessageListenerInterface</span> <span class="pl-k">extends</span> <span class="pl-v">MessageHandlerInterface</span> { <span class="pl-c">/**</span> <span class="pl-c"> * Returns the name of the message to be handled.</span> <span class="pl-c"> *</span> <span class="pl-c"> * It returns a string which contain the name of the message:</span> <span class="pl-c"> *</span> <span class="pl-c"> * return Message::NAME;</span> <span class="pl-c"> *</span> <span class="pl-c"> * Or:</span> <span class="pl-c"> *</span> <span class="pl-c"> * return 'test';</span> <span class="pl-c"> *</span> <span class="pl-c"> * The `__invoke` method of the handler can use a defined interface.</span> <span class="pl-c"> */</span> <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-k">function</span> <span class="pl-en">getHandledMessage</span>(): <span class="pl-smi">string</span>; }</pre></div>
0
<p dir="auto"><strong>Thanks for reading!</strong></p> <p dir="auto">I will show something to intro this issue.</p> <p dir="auto"><strong>I have test two images:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="image one original size 157 × 266"><pre class="notranslate"><code class="notranslate">image one original size 157 × 266 </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6055764/9401110/d96ac1e2-47fc-11e5-9f87-916d4b4800e4.jpg"><img src="https://cloud.githubusercontent.com/assets/6055764/9401110/d96ac1e2-47fc-11e5-9f87-916d4b4800e4.jpg" alt="img_20150820_145618 01 01" style="max-width: 100%;"></a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="image two original size 3264 × 2448"><pre class="notranslate"><code class="notranslate">image two original size 3264 × 2448 </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6055764/9401576/1f087d1e-4804-11e5-93b2-5c8a577cb9bb.jpg"><img src="https://cloud.githubusercontent.com/assets/6055764/9401576/1f087d1e-4804-11e5-93b2-5c8a577cb9bb.jpg" alt="img_20150820_145618" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Test One:</strong><br> layout</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;ImageView android:id=&quot;@+id/photoView&quot; android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;match_parent&quot; android:scaleType=&quot;centerInside&quot; android:background=&quot;#2aa0a6&quot;/&gt;"><pre class="notranslate">&lt;<span class="pl-ent">ImageView</span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/photoView<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">scaleType</span>=<span class="pl-s"><span class="pl-pds">"</span>centerInside<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">background</span>=<span class="pl-s"><span class="pl-pds">"</span>#2aa0a6<span class="pl-pds">"</span></span>/&gt;</pre></div> <p dir="auto">code</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(getActivity()) .load(path) .asBitmap() .into(new BitmapImageViewTarget(mPhotoView) { @Override public void onResourceReady(Bitmap resource, GlideAnimation&lt;? super Bitmap&gt; glideAnimation) { super.onResourceReady(resource, glideAnimation); Log.e(&quot;Glide Test&quot;, &quot;imageView scaleType=centerInside&quot; + &quot; width=&quot; + mPhotoView.getWidth() + &quot; height=&quot; + mPhotoView.getHeight() + &quot;, &quot; + &quot; onResourceReady:&quot; + &quot; bitmap width=&quot; + resource.getWidth() + &quot; height=&quot; + resource.getHeight()); } });"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-en">getActivity</span>()) .<span class="pl-en">load</span>(<span class="pl-s1">path</span>) .<span class="pl-en">asBitmap</span>() .<span class="pl-en">into</span>(<span class="pl-k">new</span> <span class="pl-smi">BitmapImageViewTarget</span>(<span class="pl-s1">mPhotoView</span>) { <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onResourceReady</span>(<span class="pl-smi">Bitmap</span> <span class="pl-s1">resource</span>, <span class="pl-smi">GlideAnimation</span>&lt;? <span class="pl-en">super</span> <span class="pl-smi">Bitmap</span>&gt; <span class="pl-s1">glideAnimation</span>) { <span class="pl-en">super</span>.<span class="pl-en">onResourceReady</span>(<span class="pl-s1">resource</span>, <span class="pl-s1">glideAnimation</span>); <span class="pl-smi">Log</span>.<span class="pl-en">e</span>(<span class="pl-s">"Glide Test"</span>, <span class="pl-s">"imageView scaleType=centerInside"</span> + <span class="pl-s">" width="</span> + <span class="pl-s1">mPhotoView</span>.<span class="pl-en">getWidth</span>() + <span class="pl-s">" height="</span> + <span class="pl-s1">mPhotoView</span>.<span class="pl-en">getHeight</span>() + <span class="pl-s">", "</span> + <span class="pl-s">" onResourceReady:"</span> + <span class="pl-s">" bitmap width="</span> + <span class="pl-s1">resource</span>.<span class="pl-en">getWidth</span>() + <span class="pl-s">" height="</span> + <span class="pl-s1">resource</span>.<span class="pl-en">getHeight</span>()); } });</pre></div> <p dir="auto">test result log</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="image one 08-21 12:00:44.192 10260-10260/im.varicom.colorful E/Glide Test﹕ imageView scaleType=centerInside width=1080 height=1920, onResourceReady: bitmap width=157 height=226 image two 08-21 12:00:44.414 10260-10260/im.varicom.colorful E/Glide Test﹕ imageView scaleType=centerInside width=1080 height=1920, onResourceReady: bitmap width=3264 height=2448"><pre class="notranslate"><span class="pl-en">image</span> <span class="pl-en">one</span> <span class="pl-c1">08</span>-<span class="pl-c1">21</span> <span class="pl-c1">12</span><span class="pl-pds">:00</span><span class="pl-pds">:44</span><span class="pl-kos">.</span><span class="pl-c1">192</span> <span class="pl-c1">10260</span>-<span class="pl-c1">10260</span>/<span class="pl-en">im</span><span class="pl-kos">.</span><span class="pl-en">varicom</span><span class="pl-kos">.</span><span class="pl-en">colorful</span> <span class="pl-c1">E</span>/<span class="pl-v">Glide</span> <span class="pl-v">Test﹕</span> <span class="pl-en">imageView</span> <span class="pl-s1">scaleType</span><span class="pl-c1">=</span><span class="pl-en">centerInside</span> <span class="pl-s1">width</span><span class="pl-c1">=</span><span class="pl-c1">1080</span> <span class="pl-s1">height</span><span class="pl-c1">=</span><span class="pl-c1">1920</span><span class="pl-kos">,</span> <span class="pl-en">onResourceReady</span>: <span class="pl-en">bitmap</span> <span class="pl-s1">width</span><span class="pl-c1">=</span><span class="pl-c1">157</span> <span class="pl-s1">height</span><span class="pl-c1">=</span><span class="pl-c1">226</span> <span class="pl-en">image</span> <span class="pl-en">two</span> <span class="pl-c1">08</span>-<span class="pl-c1">21</span> <span class="pl-c1">12</span><span class="pl-pds">:00</span><span class="pl-pds">:44</span><span class="pl-kos">.</span><span class="pl-c1">414</span> <span class="pl-c1">10260</span>-<span class="pl-c1">10260</span>/<span class="pl-en">im</span><span class="pl-kos">.</span><span class="pl-en">varicom</span><span class="pl-kos">.</span><span class="pl-en">colorful</span> <span class="pl-c1">E</span>/<span class="pl-v">Glide</span> <span class="pl-v">Test﹕</span> <span class="pl-en">imageView</span> <span class="pl-s1">scaleType</span><span class="pl-c1">=</span><span class="pl-en">centerInside</span> <span class="pl-s1">width</span><span class="pl-c1">=</span><span class="pl-c1">1080</span> <span class="pl-s1">height</span><span class="pl-c1">=</span><span class="pl-c1">1920</span><span class="pl-kos">,</span> <span class="pl-en">onResourceReady</span>: <span class="pl-en">bitmap</span> <span class="pl-s1">width</span><span class="pl-c1">=</span><span class="pl-c1">3264</span> <span class="pl-s1">height</span><span class="pl-c1">=</span><span class="pl-c1">2448</span></pre></div> <p dir="auto">My conclusion:<br> the <code class="notranslate">image one</code>'s width and height both <code class="notranslate">smaller than</code> the imageView size, <strong>it is show normally</strong>.</p> <p dir="auto">the <code class="notranslate">image two</code>'s width and height both <code class="notranslate">larger than</code> the imageView size, the result bitmap width and height is the original size. I think it is not the right way!<br> <strong>it let waste a lot of memory and let load the big image slower,<br> if the image show in ViewPager, scroll will not smooth.</strong></p> <p dir="auto">(I think the best way is let result bitmap size <code class="notranslate">not larger than</code> the <code class="notranslate">imageView</code> size when the <code class="notranslate">image</code> size larger than the <code class="notranslate">imageView</code> size)</p> <p dir="auto"> <br>  <br> <strong>Test Two:</strong><br> layout</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;ImageView android:id=&quot;@+id/photoView&quot; android:layout_width=&quot;200dp&quot; android:layout_height=&quot;200dp&quot; android:scaleType=&quot;centerInside&quot; android:layout_centerInParent=&quot;true&quot; android:background=&quot;#2aa0a6&quot;/&gt;"><pre class="notranslate">&lt;<span class="pl-ent">ImageView</span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/photoView<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>200dp<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>200dp<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">scaleType</span>=<span class="pl-s"><span class="pl-pds">"</span>centerInside<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_centerInParent</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">background</span>=<span class="pl-s"><span class="pl-pds">"</span>#2aa0a6<span class="pl-pds">"</span></span>/&gt;</pre></div> <p dir="auto">code</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(getActivity()) .load(path) .asBitmap() .into(new BitmapImageViewTarget(mPhotoView) { @Override public void onResourceReady(Bitmap resource, GlideAnimation&lt;? super Bitmap&gt; glideAnimation) { super.onResourceReady(resource, glideAnimation); Log.e(&quot;Glide Test&quot;, &quot;imageView scaleType=centerInside&quot; + &quot; width=&quot; + mPhotoView.getWidth() + &quot; height=&quot; + mPhotoView.getHeight() + &quot;, &quot; + &quot; onResourceReady:&quot; + &quot; bitmap width=&quot; + resource.getWidth() + &quot; height=&quot; + resource.getHeight()); } });"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-en">getActivity</span>()) .<span class="pl-en">load</span>(<span class="pl-s1">path</span>) .<span class="pl-en">asBitmap</span>() .<span class="pl-en">into</span>(<span class="pl-k">new</span> <span class="pl-smi">BitmapImageViewTarget</span>(<span class="pl-s1">mPhotoView</span>) { <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onResourceReady</span>(<span class="pl-smi">Bitmap</span> <span class="pl-s1">resource</span>, <span class="pl-smi">GlideAnimation</span>&lt;? <span class="pl-en">super</span> <span class="pl-smi">Bitmap</span>&gt; <span class="pl-s1">glideAnimation</span>) { <span class="pl-en">super</span>.<span class="pl-en">onResourceReady</span>(<span class="pl-s1">resource</span>, <span class="pl-s1">glideAnimation</span>); <span class="pl-smi">Log</span>.<span class="pl-en">e</span>(<span class="pl-s">"Glide Test"</span>, <span class="pl-s">"imageView scaleType=centerInside"</span> + <span class="pl-s">" width="</span> + <span class="pl-s1">mPhotoView</span>.<span class="pl-en">getWidth</span>() + <span class="pl-s">" height="</span> + <span class="pl-s1">mPhotoView</span>.<span class="pl-en">getHeight</span>() + <span class="pl-s">", "</span> + <span class="pl-s">" onResourceReady:"</span> + <span class="pl-s">" bitmap width="</span> + <span class="pl-s1">resource</span>.<span class="pl-en">getWidth</span>() + <span class="pl-s">" height="</span> + <span class="pl-s1">resource</span>.<span class="pl-en">getHeight</span>()); } });</pre></div> <p dir="auto">test result log</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="image one 08-21 12:42:30.365 8109-8109/im.varicom.colorful E/Glide Test﹕ imageView scaleType=centerInside width=600 height=600, onResourceReady: bitmap width=157 height=226 image two 08-21 12:42:30.364 8109-8109/im.varicom.colorful E/Glide Test﹕ imageView scaleType=centerInside width=600 height=600, onResourceReady: bitmap width=816 height=612"><pre class="notranslate"><span class="pl-en">image</span> <span class="pl-en">one</span> <span class="pl-c1">08</span>-<span class="pl-c1">21</span> <span class="pl-c1">12</span><span class="pl-pds">:42</span><span class="pl-pds">:30</span><span class="pl-kos">.</span><span class="pl-c1">365</span> <span class="pl-c1">8109</span>-<span class="pl-c1">8109</span>/<span class="pl-en">im</span><span class="pl-kos">.</span><span class="pl-en">varicom</span><span class="pl-kos">.</span><span class="pl-en">colorful</span> <span class="pl-c1">E</span>/<span class="pl-v">Glide</span> <span class="pl-v">Test﹕</span> <span class="pl-en">imageView</span> <span class="pl-s1">scaleType</span><span class="pl-c1">=</span><span class="pl-en">centerInside</span> <span class="pl-s1">width</span><span class="pl-c1">=</span><span class="pl-c1">600</span> <span class="pl-s1">height</span><span class="pl-c1">=</span><span class="pl-c1">600</span><span class="pl-kos">,</span> <span class="pl-en">onResourceReady</span>: <span class="pl-en">bitmap</span> <span class="pl-s1">width</span><span class="pl-c1">=</span><span class="pl-c1">157</span> <span class="pl-s1">height</span><span class="pl-c1">=</span><span class="pl-c1">226</span> <span class="pl-en">image</span> <span class="pl-en">two</span> <span class="pl-c1">08</span>-<span class="pl-c1">21</span> <span class="pl-c1">12</span><span class="pl-pds">:42</span><span class="pl-pds">:30</span><span class="pl-kos">.</span><span class="pl-c1">364</span> <span class="pl-c1">8109</span>-<span class="pl-c1">8109</span>/<span class="pl-en">im</span><span class="pl-kos">.</span><span class="pl-en">varicom</span><span class="pl-kos">.</span><span class="pl-en">colorful</span> <span class="pl-c1">E</span>/<span class="pl-v">Glide</span> <span class="pl-v">Test﹕</span> <span class="pl-en">imageView</span> <span class="pl-s1">scaleType</span><span class="pl-c1">=</span><span class="pl-en">centerInside</span> <span class="pl-s1">width</span><span class="pl-c1">=</span><span class="pl-c1">600</span> <span class="pl-s1">height</span><span class="pl-c1">=</span><span class="pl-c1">600</span><span class="pl-kos">,</span> <span class="pl-en">onResourceReady</span>: <span class="pl-en">bitmap</span> <span class="pl-s1">width</span><span class="pl-c1">=</span><span class="pl-c1">816</span> <span class="pl-s1">height</span><span class="pl-c1">=</span><span class="pl-c1">612</span></pre></div> <p dir="auto">My conclusion:<br> When the <code class="notranslate">imageView</code> size change, the image which width and height both <code class="notranslate">smaller than</code> the imageView size, <strong>it will show normally</strong>.</p> <p dir="auto">But, if the image width and height both <code class="notranslate">larger than</code> the imageView size, the result bitmap size sometimes will change also .</p> <p dir="auto">But above all, I think when ImageView scaleType is centerInside, glide load the result bitmap size may be wrong!<br> I think the best way is let result bitmap size <code class="notranslate">not larger than</code> the <code class="notranslate">imageView</code> size when the <code class="notranslate">image</code> size larger than the <code class="notranslate">imageView</code> size.</p>
<p dir="auto">Sometimes we need to load image for center inside, but I have not found this method!</p> <p dir="auto">Can add method for center inside?</p>
1
<p dir="auto">Running on super old distro (don't ask), yields errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ /home/glen/.deno/bin/deno --help /home/glen/.deno/bin/deno: /lib64/libgcc_s.so.1: version `GCC_4.0.0' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libm.so.6: version `GLIBC_2.27' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.7' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.9' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.10' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.14' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.15' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.18' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.25' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.27' not found (required by /home/glen/.deno/bin/deno)"><pre class="notranslate"><code class="notranslate">$ /home/glen/.deno/bin/deno --help /home/glen/.deno/bin/deno: /lib64/libgcc_s.so.1: version `GCC_4.0.0' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libm.so.6: version `GLIBC_2.27' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.7' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.9' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.10' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.14' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.15' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.18' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.25' not found (required by /home/glen/.deno/bin/deno) /home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.27' not found (required by /home/glen/.deno/bin/deno) </code></pre></div> <p dir="auto">perhaps possible to add fully static build, not to rely on glibc and gcc?</p>
<p dir="auto">Previously I was able to use <code class="notranslate">--target x86_64-unknown-linux-musl</code> on rusty_v8 and deno (excluding the plugin). <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="534497075" data-permission-text="Title is private" data-url="https://github.com/denoland/rusty_v8/issues/49" data-hovercard-type="issue" data-hovercard-url="/denoland/rusty_v8/issues/49/hovercard" href="https://github.com/denoland/rusty_v8/issues/49">denoland/rusty_v8#49</a></p> <blockquote> <p dir="auto">It's unclear to me if it's best to <em>only</em> target x86_64-unknown-linux-musl or to additionally support it. e.g. sccache seems to <a href="https://github.com/mozilla/sccache/releases/tag/0.2.12"><em>only</em> provide binaries for that target</a>.</p> </blockquote> <p dir="auto">The one concern is that glibc is required for plugins (but I don't know if that means glibc cannot be used on a binary created with musl <g-emoji class="g-emoji" alias="man_shrugging" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f937-2642.png">🤷‍♂</g-emoji> ).</p> <p dir="auto">This is useful for platforms without glibc, examples alpine linux and amazon linux (which is occasionally a pain building, so would be helpful if a compatible binaries was in deno's CI).</p> <p dir="auto">xlink: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="514915123" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3243" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3243/hovercard" href="https://github.com/denoland/deno/issues/3243">#3243</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="405973482" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1658" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1658/hovercard" href="https://github.com/denoland/deno/issues/1658">#1658</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="397656973" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1495" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1495/hovercard" href="https://github.com/denoland/deno/issues/1495">#1495</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="523818128" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3356" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3356/hovercard" href="https://github.com/denoland/deno/issues/3356">#3356</a></p>
1
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Electron Version</h3> <p dir="auto">12.0.2</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">macOS</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">MacOS Big Sur 11.2.3</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">x64</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto">12.0.2</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Set proxy IP</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">I set proxy to report error: err_ NO_ SUPPORTED_ PROXIES。 How to solve this problem?</p> <p dir="auto"><code class="notranslate">app.commandLine.appendSwitch('proxy-server', 'socks5://username:password@ip:port')</code><br> <code class="notranslate">win.webContents.session.setProxy({proxyRules: 'socks5://username:password@ip:port'})</code></p> <p dir="auto">Thanks!!!</p> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><em>No response</em></p>
<ul dir="auto"> <li>Electron version: 1.8.4, recent master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/0d7becff87743924f4fe639b802c405af47672aa/hovercard" href="https://github.com/electron/electron/commit/0d7becff87743924f4fe639b802c405af47672aa"><tt>0d7becf</tt></a>)</li> <li>Operating system: win7 sp1 x64</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">it should navigate using the set proxy</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">net::ERR_NO_SUPPORTED_PROXIES is logged in the devtools console</p> <h3 dir="auto">How to reproduce</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict'; const {app, BrowserWindow} = require('electron'), path = require('path'); let brWin; app.commandLine.appendSwitch('proxy-server', 'http://user:password@proxy_host:proxy_port'); app.on('ready', () =&gt; { brWin = new BrowserWindow({ width: 1366, height: 768, closable: true, show: true, frame: true, useContentSize: true, webPreferences: { devtools: true, nodeIntegration: false, webviewTag: false, sandbox: false, allowRunningInsecureContent: true, offscreen: false, webSecurity: true, contextIsolation: true, //preload: path.join(__dirname, 'preload.js'), }, }); brWin.loadURL('about:blank'); brWin.webContents.openDevTools({mode: 'right'}); }); app.on('window-all-closed', () =&gt; app.exit());"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-kos">{</span>app<span class="pl-kos">,</span> BrowserWindow<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">brWin</span><span class="pl-kos">;</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-c1">commandLine</span><span class="pl-kos">.</span><span class="pl-en">appendSwitch</span><span class="pl-kos">(</span><span class="pl-s">'proxy-server'</span><span class="pl-kos">,</span> <span class="pl-s">'http://user:password@proxy_host:proxy_port'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">brWin</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1366</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">768</span><span class="pl-kos">,</span> <span class="pl-c1">closable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">show</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">frame</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">useContentSize</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">webPreferences</span>: <span class="pl-kos">{</span> <span class="pl-c1">devtools</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">nodeIntegration</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">webviewTag</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">sandbox</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">allowRunningInsecureContent</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">offscreen</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">webSecurity</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">contextIsolation</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c">//preload: path.join(__dirname, 'preload.js'),</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">brWin</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s">'about:blank'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">brWin</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">openDevTools</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">mode</span>: <span class="pl-s">'right'</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'window-all-closed'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">exit</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <ul dir="auto"> <li>load the above app</li> <li>in the devtools <code class="notranslate">location = 'http://example.org'</code></li> </ul>
1
<ul dir="auto"> <li>VSCode Version: 1.0.0</li> <li>OS Version: Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Create a simple html component (Angular, Aurelia, etc.) file. For example: "my-component.html"</li> <li>Set its content to something like: "<code class="notranslate">&lt;template&gt;&lt;div&gt;&lt;div&gt;&lt;img /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/template&gt;</code>" all on one line.</li> <li>Press Alt+Shift+F to format the code.</li> <li>Nothing happens.</li> </ol> <p dir="auto">Notes:</p> <ul dir="auto"> <li>Formatting other file types like TS, JS, and C# works fine.</li> <li>Formatting full HTML files works. For example, "<code class="notranslate">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</code>" formats fine.</li> <li>Code successfully recognizes the "Language Mode" for the component file but still doesn't work.</li> </ul>
<ul dir="auto"> <li>VSCode Version: 1.0.0</li> <li>OS Version: OSX 10.11.4</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Try to auto format the following HTML<br> <code class="notranslate">&lt;template&gt;&lt;div&gt;Hello&lt;/div&gt;&lt;div&gt;World&lt;/div&gt;&lt;/template&gt;</code></li> </ol> <p dir="auto">I expect to get something like this</p> <p dir="auto"><code class="notranslate">&lt;template&gt;</code><br> <code class="notranslate">____&lt;div&gt;Hello&lt;/div&gt;</code><br> <code class="notranslate">____&lt;div&gt;World&lt;/div&gt;</code><br> <code class="notranslate">&lt;/template&gt;</code></p> <p dir="auto">But it does not work. If I replace the <code class="notranslate">&lt;template&gt;</code> tag with <code class="notranslate">&lt;div&gt;</code> then the auto format works correctly. This issue was not present in the previous version.</p> <p dir="auto">Thanks,</p>
1
<p dir="auto">Hi,</p> <p dir="auto">Would it be possible to have PointCloud.raycast() supporting PointCloud.material.sizeAttenuation = true?</p> <p dir="auto">Right now PointCloud.raycast() assumes that all the particles are of the same size, which is not the case if sizeAttenuation is used.</p> <p dir="auto">Many thanks.<br> Ricardo</p>
<p dir="auto">Thanks so much for adding PointCloud support for RayCasting in r.61! Unless I am missing something, the current implementation assumes that the points are all of the same size. Is it possible to make the raycaster aware of the gl_PointSize of each point, rather than uniformly using params.PointCloud.threshold?</p> <p dir="auto">Thanks,<br> Mike Cantor</p>
1
<p dir="auto">sometimes, you can get a large array of flakes due to oome errors.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" +++ [0307 09:08:06] Building go targets for linux/amd64: cmd/hyperkube +++ [0307 09:08:27] Placing binaries SUCCESS Verifying ./hack/../hack/verify-flags-underscore.py SUCCESS + ./hack/test-go.sh Running tests for APIVersion: v1,extensions/v1beta1,metrics/v1alpha1 with etcdPrefix: registry +++ [0307 09:08:51] Running tests without code coverage # testmain fatal error: runtime: out of memory runtime stack: runtime.throw(0x698ac0, 0x16) /usr/local/go/src/runtime/panic.go:527 +0x90 runtime.sysMap(0xc82b8f0000, 0x1100000, 0x42f800, 0x7b0258) /usr/local/go/src/runtime/mem_linux.go:203 +0x9b runtime.mHeap_SysAlloc(0x791840, 0x1100000, 0x0) /usr/local/go/src/runtime/malloc.go:426 +0x160 runtime.mHeap_Grow(0x791840, 0x880, 0x0) /usr/local/go/src/runtime/mheap.go:628 +0x63 runtime.mHeap_AllocSpanLocked(0x791840, 0x880, 0x100) /usr/local/go/src/runtime/mheap.go:532 +0x5f1 runtime.mHeap_Alloc_m(0x791840, 0x880, 0x100000000, 0xc800000001) /usr/local/go/src/runtime/mheap.go:425 +0x1ac runtime.mHeap_Alloc.func1() /usr/local/go/src/runtime/mheap.go:484 +0x41 runtime.systemstack(0xc820095ee0) /usr/local/go/src/runtime/asm_amd64.s:278 +0xab runtime.mHeap_Alloc(0x791840, 0x880, 0x10100000000, 0x41348f) /usr/local/go/src/runtime/mheap.go:485 +0x63 runtime.largeAlloc(0x1100000, 0x0, 0x0) /usr/local/go/src/runtime/malloc.go:748 +0xb3 runtime.mallocgc.func3() /usr/local/go/src/runtime/malloc.go:637 +0x33 runtime.systemstack(0xc8204e2c40) /usr/local/go/src/runtime/asm_amd64.s:262 +0x79 runtime.mstart() /usr/local/go/src/runtime/proc1.go:668"><pre class="notranslate"><code class="notranslate"> +++ [0307 09:08:06] Building go targets for linux/amd64: cmd/hyperkube +++ [0307 09:08:27] Placing binaries SUCCESS Verifying ./hack/../hack/verify-flags-underscore.py SUCCESS + ./hack/test-go.sh Running tests for APIVersion: v1,extensions/v1beta1,metrics/v1alpha1 with etcdPrefix: registry +++ [0307 09:08:51] Running tests without code coverage # testmain fatal error: runtime: out of memory runtime stack: runtime.throw(0x698ac0, 0x16) /usr/local/go/src/runtime/panic.go:527 +0x90 runtime.sysMap(0xc82b8f0000, 0x1100000, 0x42f800, 0x7b0258) /usr/local/go/src/runtime/mem_linux.go:203 +0x9b runtime.mHeap_SysAlloc(0x791840, 0x1100000, 0x0) /usr/local/go/src/runtime/malloc.go:426 +0x160 runtime.mHeap_Grow(0x791840, 0x880, 0x0) /usr/local/go/src/runtime/mheap.go:628 +0x63 runtime.mHeap_AllocSpanLocked(0x791840, 0x880, 0x100) /usr/local/go/src/runtime/mheap.go:532 +0x5f1 runtime.mHeap_Alloc_m(0x791840, 0x880, 0x100000000, 0xc800000001) /usr/local/go/src/runtime/mheap.go:425 +0x1ac runtime.mHeap_Alloc.func1() /usr/local/go/src/runtime/mheap.go:484 +0x41 runtime.systemstack(0xc820095ee0) /usr/local/go/src/runtime/asm_amd64.s:278 +0xab runtime.mHeap_Alloc(0x791840, 0x880, 0x10100000000, 0x41348f) /usr/local/go/src/runtime/mheap.go:485 +0x63 runtime.largeAlloc(0x1100000, 0x0, 0x0) /usr/local/go/src/runtime/malloc.go:748 +0xb3 runtime.mallocgc.func3() /usr/local/go/src/runtime/malloc.go:637 +0x33 runtime.systemstack(0xc8204e2c40) /usr/local/go/src/runtime/asm_amd64.s:262 +0x79 runtime.mstart() /usr/local/go/src/runtime/proc1.go:668 </code></pre></div> <p dir="auto">and</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok k8s.io/kubernetes/pkg/kubelet/qos 1.# testmain fatal error: runtime: out of memory runtime stack: runtime.throw(0x698ac0, 0x16) /usr/local/go/src/runtime/panic.go:527 +0x90 runtime.sysMap(0xc83c4f0000, 0x100000, 0x68b00, 0x7b0258) /usr/local/go/src/runtime/mem_linux.go:203 +0x9b runtime.mHeap_SysAlloc(0x791840, 0x100000, 0x0) /usr/local/go/src/runtime/malloc.go:426 +0x160 runtime.mHeap_Grow(0x791840, 0x50, 0x0) /usr/local/go/src/runtime/mheap.go:628 +0x63 runtime.mHeap_AllocSpanLocked(0x791840, 0x4b, 0x7fc647a6ad90) /usr/local/go/src/runtime/mheap.go:532 +0x5f1 runtime.mHeap_Alloc_m(0x791840, 0x4b, 0x100000000, 0x7fc647a6ad90) /usr/local/go/src/runtime/mheap.go:425 +0x1ac runtime.mHeap_Alloc.func1() /usr/local/go/src/runtime/mheap.go:484 +0x41 runtime.systemstack(0xc8204fdee0) /usr/local/go/src/runtime/asm_amd64.s:278 +0xab runtime.mHeap_Alloc(0x791840, 0x4b, 0x100000000, 0x7fc647a6adf0) /usr/local/go/src/runtime/mheap.go:485 +0x63 runtime.largeAlloc(0x96000, 0x3, 0xc83c462000) /usr/local/go/src/runtime/malloc.go:748 +0xb3 runtime.mallocgc.func3() /usr/local/go/src/runtime/malloc.go:637 +0x33 runtime.systemstack(0xc820028000) /usr/local/go/src/runtime/asm_amd64.s:262 +0x79 runtime.mstart() /usr/local/go/src/runtime/proc1.go:668 goroutine 1 [running]: "><pre class="notranslate"><code class="notranslate">ok k8s.io/kubernetes/pkg/kubelet/qos 1.# testmain fatal error: runtime: out of memory runtime stack: runtime.throw(0x698ac0, 0x16) /usr/local/go/src/runtime/panic.go:527 +0x90 runtime.sysMap(0xc83c4f0000, 0x100000, 0x68b00, 0x7b0258) /usr/local/go/src/runtime/mem_linux.go:203 +0x9b runtime.mHeap_SysAlloc(0x791840, 0x100000, 0x0) /usr/local/go/src/runtime/malloc.go:426 +0x160 runtime.mHeap_Grow(0x791840, 0x50, 0x0) /usr/local/go/src/runtime/mheap.go:628 +0x63 runtime.mHeap_AllocSpanLocked(0x791840, 0x4b, 0x7fc647a6ad90) /usr/local/go/src/runtime/mheap.go:532 +0x5f1 runtime.mHeap_Alloc_m(0x791840, 0x4b, 0x100000000, 0x7fc647a6ad90) /usr/local/go/src/runtime/mheap.go:425 +0x1ac runtime.mHeap_Alloc.func1() /usr/local/go/src/runtime/mheap.go:484 +0x41 runtime.systemstack(0xc8204fdee0) /usr/local/go/src/runtime/asm_amd64.s:278 +0xab runtime.mHeap_Alloc(0x791840, 0x4b, 0x100000000, 0x7fc647a6adf0) /usr/local/go/src/runtime/mheap.go:485 +0x63 runtime.largeAlloc(0x96000, 0x3, 0xc83c462000) /usr/local/go/src/runtime/malloc.go:748 +0xb3 runtime.mallocgc.func3() /usr/local/go/src/runtime/malloc.go:637 +0x33 runtime.systemstack(0xc820028000) /usr/local/go/src/runtime/asm_amd64.s:262 +0x79 runtime.mstart() /usr/local/go/src/runtime/proc1.go:668 goroutine 1 [running]: </code></pre></div> <p dir="auto">and so on</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Project: kubernetes-jenkins-pull Zone: us-central1-b +++ [0307 10:43:30] Verifying Prerequisites.... +++ [0307 10:43:40] Building Docker image kube-build:build-8f5624d469. +++ [0307 10:44:35] Running build command.... +++ [0307 10:44:36] Creating data container Go version: go version go1.4.2 linux/amd64 +++ [0307 10:44:48] Multiple platforms requested and available 58G &gt;= threshold 11G, building platforms in parallel +++ [0307 10:44:48] Building go targets for linux/amd64 linux/arm in parallel (output will appear in a burst when complete): cmd/kube-proxy cmd/kube-apiserver cmd/kube-controller-manager cmd/kubelet cmd/kubemark cmd/hyperkube cmd/linkcheck plugin/cmd/kube-scheduler +++ [0307 10:44:49] linux/amd64: go build started go build github.com/coreos/go-semver/semver: /usr/src/go/pkg/tool/linux_amd64/6g: fork/exec /usr/src/go/pkg/tool/linux_amd64/6g: cannot allocate memory !!! Error in /go/src/k8s.io/kubernetes/hack/lib/golang.sh:433 'go install &quot;${goflags[@]:+${goflags[@]}}&quot; -ldflags &quot;${goldflags}&quot; &quot;${nonstatics[@]:+${nonstatics[@]}}&quot;' exited with status 1 Call stack: 1: /go/src/k8s.io/kubernetes/hack/lib/golang.sh:433 kube::golang::build_binaries_for_platform(...) 2: /go/src/k8s.io/kubernetes/hack/lib/golang.sh:557 kube::golang::build_binaries(...) 3: hack/build-cross.sh:28 main(...)"><pre class="notranslate"><code class="notranslate">Project: kubernetes-jenkins-pull Zone: us-central1-b +++ [0307 10:43:30] Verifying Prerequisites.... +++ [0307 10:43:40] Building Docker image kube-build:build-8f5624d469. +++ [0307 10:44:35] Running build command.... +++ [0307 10:44:36] Creating data container Go version: go version go1.4.2 linux/amd64 +++ [0307 10:44:48] Multiple platforms requested and available 58G &gt;= threshold 11G, building platforms in parallel +++ [0307 10:44:48] Building go targets for linux/amd64 linux/arm in parallel (output will appear in a burst when complete): cmd/kube-proxy cmd/kube-apiserver cmd/kube-controller-manager cmd/kubelet cmd/kubemark cmd/hyperkube cmd/linkcheck plugin/cmd/kube-scheduler +++ [0307 10:44:49] linux/amd64: go build started go build github.com/coreos/go-semver/semver: /usr/src/go/pkg/tool/linux_amd64/6g: fork/exec /usr/src/go/pkg/tool/linux_amd64/6g: cannot allocate memory !!! Error in /go/src/k8s.io/kubernetes/hack/lib/golang.sh:433 'go install "${goflags[@]:+${goflags[@]}}" -ldflags "${goldflags}" "${nonstatics[@]:+${nonstatics[@]}}"' exited with status 1 Call stack: 1: /go/src/k8s.io/kubernetes/hack/lib/golang.sh:433 kube::golang::build_binaries_for_platform(...) 2: /go/src/k8s.io/kubernetes/hack/lib/golang.sh:557 kube::golang::build_binaries(...) 3: hack/build-cross.sh:28 main(...) </code></pre></div>
1
<p dir="auto">In version 14.2, if the duplicate filter should detect whether the URL its ignoring has been sent to a Spider previously. If not, it should not silently ignore the duplicate URL. A recent Request I did had a 302 redirect to an identical URL, before redirecting to a unique URL. It took half an hour before I realized that the scheduler was ignoring the first redirect. There were no debug indications or exceptions raised. I set dont_filter to True, which fixed the situation, as expected.</p> <p dir="auto">Scrapy should either raise a quiet exception of some sort or realize that a duplicate URL had not previously been sent to a spider instead of silently ignoring duplicates.</p> <p dir="auto">P.S.: I don't know why the site sent me to a duplicate URL, but it had modified cookies in the response.</p>
<h3 dir="auto">Description</h3> <p dir="auto">In Scrapy 2.6, an ItemLoader instantiated with a base item keeps a reference to a single same item and instead of loading new items, it repeats the values added, therefore, producing duplicate items.</p> <h3 dir="auto">Steps to Reproduce</h3> <p dir="auto">Run the following script:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from scrapy.loader import ItemLoader base_item = {} for i in range(5): il = ItemLoader(item=base_item) il.add_value('b', i) new_item = il.load_item() print(new_item)"><pre class="notranslate"><code class="notranslate">from scrapy.loader import ItemLoader base_item = {} for i in range(5): il = ItemLoader(item=base_item) il.add_value('b', i) new_item = il.load_item() print(new_item) </code></pre></div> <p dir="auto">Output when ran in <code class="notranslate">scrapinghub-stack-scrapy:2.6</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{'b': [0]} {'b': [0, 1]} {'b': [0, 1, 2]} {'b': [0, 1, 2, 3]} {'b': [0, 1, 2, 3, 4]}"><pre class="notranslate"><code class="notranslate">{'b': [0]} {'b': [0, 1]} {'b': [0, 1, 2]} {'b': [0, 1, 2, 3]} {'b': [0, 1, 2, 3, 4]} </code></pre></div> <p dir="auto">Output when ran in <code class="notranslate">scrapinghub-stack-scrapy:1.6</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{'b': [0]} {'b': [1]} {'b': [2]} {'b': [3]} {'b': [4]}"><pre class="notranslate"><code class="notranslate">{'b': [0]} {'b': [1]} {'b': [2]} {'b': [3]} {'b': [4]} </code></pre></div> <p dir="auto"><strong>Expected behavior:</strong> The output should be the same as when ran in older Scrapy stack: <code class="notranslate">scrapinghub-stack-scrapy:1.6</code></p> <p dir="auto"><strong>Possible resolution:</strong> Deep copying the <code class="notranslate">base_item</code> works as intended:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from scrapy.loader import ItemLoader from copy import deepcopy base_item = {} for i in range(5): il = ItemLoader(item=deepcopy(base_item)) il.add_value('b', i) new_item = il.load_item() print(new_item)"><pre class="notranslate"><code class="notranslate">from scrapy.loader import ItemLoader from copy import deepcopy base_item = {} for i in range(5): il = ItemLoader(item=deepcopy(base_item)) il.add_value('b', i) new_item = il.load_item() print(new_item) </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{'b': [0]} {'b': [1]} {'b': [2]} {'b': [3]} {'b': [4]}"><pre class="notranslate"><code class="notranslate">{'b': [0]} {'b': [1]} {'b': [2]} {'b': [3]} {'b': [4]} </code></pre></div>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tedberg" rel="nofollow">Ted Bergeron</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4528?redirect=false" rel="nofollow">SPR-4528</a></strong> and commented</p> <p dir="auto">Based on my article: <a href="http://www.triview.com/articles/hibernate/validator/canmeetyourneeds.html" rel="nofollow">http://www.triview.com/articles/hibernate/validator/canmeetyourneeds.html</a> provide built in integration with hibernate validator.</p> <p dir="auto">This may be broken down into several issues:</p> <ol dir="auto"> <li>Extend JSP tag library to search for validation annotations via reflection. Render fields with css classes such as required, email, etc. Add maxlength attribute, etc.</li> <li>Native support to invoke the proper Hibernate ClassValidator and convert the InvalidValue array to a Spring Errors object.</li> <li>Extend JSP tags to render semantic html wrapper around form fields. Include div, label and field.</li> <li>Extend JSP tags to render with enhanced features, such as adding popup calendar for Date. Consider extracting info from assigned PropertyEditor.</li> <li>Add basic, included JavaScript validation support and/or integration with a major javascript framework such as prototype, jquery, ext, etc.</li> </ol> <hr> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/13732/triview_custom_tags.zip" rel="nofollow">triview_custom_tags.zip</a> (<em>6.05 MB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/13733/validator_whitepaper.zip" rel="nofollow">validator_whitepaper.zip</a> (<em>7.57 MB</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="398048646" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/4803" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/4803/hovercard" href="https://github.com/spring-projects/spring-framework/issues/4803">#4803</a> Support for declarative validation (Hibernate Validator, anticipating JSR 303) (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto">2 votes, 3 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jacorob" rel="nofollow">Bob Jacoby</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7940?redirect=false" rel="nofollow">SPR-7940</a></strong> and commented</p> <p dir="auto">One of my beans (using the <code class="notranslate">@Component</code> annotation) implements the ApplicationListener interface. The bean is also proxied (uses the <code class="notranslate">@Transaction</code> annotation on a few methods). After initializing the context my AbstractApplicationEventMulticaster defaultRetriever contains the bean instance in the applicationListener set, and the name of the bean in the applicationListenerBeans set.</p> <p dir="auto">This causes a problem when the listeners are retrieved (AbstractApplicationEventMulticaster getApplicationListeners):<br> for (ApplicationListener listener : this.defaultRetriever.applicationListeners) {<br> if (supportsEvent(listener, eventType, sourceType)) {<br> retriever.applicationListeners.add(listener);<br> allListeners.add(listener);<br> }<br> }<br> if (!this.defaultRetriever.applicationListenerBeans.isEmpty()) {<br> BeanFactory beanFactory = getBeanFactory();<br> for (String listenerBeanName : this.defaultRetriever.applicationListenerBeans) {<br> ApplicationListener listener = beanFactory.getBean(listenerBeanName, ApplicationListener.class);<br> if (!allListeners.contains(listener) &amp;&amp; supportsEvent(listener, eventType, sourceType)) {<br> retriever.applicationListenerBeans.add(listenerBeanName);<br> allListeners.add(listener);<br> }<br> }<br> }</p> <p dir="auto">First all the listener bean instances are added to the list. Then the beans are retrieved from the beanfactory via the name. However, the bean factory will return the proxy rather than the bean itself. End result will be that both the bean and the proxy surrounding the bean are added to the allListeners list, which results in the onApplicationEvent being called twice for every event.</p> <p dir="auto">Ideally the proxy would be the only one added to the list.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/19458/SPR-7940.zip" rel="nofollow">SPR-7940.zip</a> (<em>5.96 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="398154622" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14597" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14597/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14597">#14597</a> Documentation inconsistency vs implementation - scoped-proxy beans (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/7b703b7e9b6d31d2d09cb977e59c83f65bd70b6f/hovercard" href="https://github.com/spring-projects/spring-framework/commit/7b703b7e9b6d31d2d09cb977e59c83f65bd70b6f"><tt>7b703b7</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/924c869b8adeaf8fe3da047d0bbf0137ffa9ddce/hovercard" href="https://github.com/spring-projects/spring-framework/commit/924c869b8adeaf8fe3da047d0bbf0137ffa9ddce"><tt>924c869</tt></a></p> <p dir="auto">2 votes, 5 watchers</p>
0
<p dir="auto">system:W7 32<br> npm:2.15.0<br> node:V4.4.2<br> electron:v1.1.0</p> <p dir="auto">Masters,I am new to electron and nodejs,please help me.<br> When I run "npm install --save-dev electron-rebuild", install unsuccess</p> <p dir="auto">Partial log:<br> 14474 error Windows_NT 6.1.7601<br> 14475 error argv "D:\WorkProgram\nodejs\node.exe" "D:\WorkProgram\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--save-dev" "electron-rebuild"<br> 14476 error node v4.4.2<br> 14477 error npm v2.15.0<br> 14478 error code ELIFECYCLE<br> 14479 error [email protected] install: node-gyp rebuild<br> 14479 error Exit status 1<br> 14480 error Failed at the [email protected] install script 'node-gyp rebuild'.<br> 14480 error This is most likely a problem with the nslog package,<br> 14480 error not with npm itself.<br> 14480 error Tell the author that this fails on your system:<br> 14480 error node-gyp rebuild<br> 14480 error You can get information on how to open an issue for this project with:<br> 14480 error npm bugs nslog<br> 14480 error Or if that isn't available, you can get their info via:<br> 14480 error<br> 14480 error npm owner ls nslog<br> 14480 error There is likely additional logging output above.<br> 14481 verbose exit [ 1, true ]<br> 14482 verbose unbuild node_modules\electron-rebuild\node_modules\nslog<br> 14483 info preuninstall [email protected]<br> 14484 info uninstall [email protected]<br> 14485 verbose unbuild rmStuff [email protected] from C:\Users\Administrator\node_modules<br> 14486 verbose unbuild rmStuff in C:\Users\Administrator\node_modules\electron-rebuild\node_modules<br> 14487 info postuninstall [email protected]<br> 14488 silly gentlyRm C:\Users\Administrator\node_modules\electron-rebuild\node_modules\nslog is being purged from base C:\Users\Administrator<br> 14489 verbose gentlyRm don't care about contents; nuking C:\Users\Administrator\node_modules\electron-rebuild\node_modules\nslog<br> 14490 silly vacuum-fs purging C:\Users\Administrator\node_modules\electron-rebuild\node_modules\nslog<br> 14491 silly vacuum-fs quitting because other entries in C:\Users\Administrator\node_modules\electron-rebuild\node_modules<br> 14492 verbose unbuild node_modules\electron-rebuild<br> 14493 info preuninstall [email protected]<br> 14494 info uninstall [email protected]<br> 14495 verbose unbuild rmStuff [email protected] from C:\Users\Administrator\node_modules<br> 14496 silly gentlyRm C:\Users\Administrator\node_modules.bin\electron-rebuild.cmd is being gently removed<br> 14497 silly gentlyRm verifying C:\Users\Administrator is an npm working directory<br> 14498 silly gentlyRm containing path C:\Users\Administrator is under npm's control, in C:\Users\Administrator<br> 14499 silly gentlyRm deletion target C:\Users\Administrator\node_modules.bin\electron-rebuild.cmd is under C:\Users\Administrator<br> 14500 verbose gentlyRm vacuuming from C:\Users\Administrator\node_modules.bin\electron-rebuild.cmd up to C:\Users\Administrator<br> 14501 silly gentlyRm C:\Users\Administrator\node_modules.bin\electron-rebuild is being gently removed<br> 14502 silly gentlyRm verifying C:\Users\Administrator is an npm working directory<br> 14503 silly gentlyRm containing path C:\Users\Administrator is under npm's control, in C:\Users\Administrator<br> 14504 silly gentlyRm deletion target C:\Users\Administrator\node_modules.bin\electron-rebuild is under C:\Users\Administrator<br> 14505 verbose gentlyRm vacuuming from C:\Users\Administrator\node_modules.bin\electron-rebuild up to C:\Users\Administrator<br> 14506 info postuninstall [email protected]<br> 14507 silly gentlyRm C:\Users\Administrator\node_modules\electron-rebuild is being purged from base C:\Users\Administrator<br> 14508 verbose gentlyRm don't care about contents; nuking C:\Users\Administrator\node_modules\electron-rebuild<br> 14509 silly vacuum-fs purging C:\Users\Administrator\node_modules\electron-rebuild<br> 14510 silly vacuum-fs quitting because other entries in C:\Users\Administrator\node_modules</p>
<p dir="auto">system:W7 32<br> npm:2.15.0<br> node:V4.4.2<br> electron:v1.1.0</p> <p dir="auto">Masters,I am new to electron and nodejs,please help me.<br> When I run "npm install --save-dev electron-rebuild", install unsuccess</p> <p dir="auto">Partial log:<br> 14474 error Windows_NT 6.1.7601<br> 14475 error argv "D:\WorkProgram\nodejs\node.exe" "D:\WorkProgram\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--save-dev" "electron-rebuild"<br> 14476 error node v4.4.2<br> 14477 error npm v2.15.0<br> 14478 error code ELIFECYCLE<br> 14479 error [email protected] install: <code class="notranslate">node-gyp rebuild</code><br> 14479 error Exit status 1<br> 14480 error Failed at the [email protected] install script 'node-gyp rebuild'.<br> 14480 error This is most likely a problem with the nslog package,<br> 14480 error not with npm itself.<br> 14480 error Tell the author that this fails on your system:<br> 14480 error node-gyp rebuild<br> 14480 error You can get information on how to open an issue for this project with:<br> 14480 error npm bugs nslog<br> 14480 error Or if that isn't available, you can get their info via:<br> 14480 error<br> 14480 error npm owner ls nslog<br> 14480 error There is likely additional logging output above.<br> 14481 verbose exit [ 1, true ]<br> 14482 verbose unbuild node_modules\electron-rebuild\node_modules\nslog<br> 14483 info preuninstall [email protected]<br> 14484 info uninstall [email protected]<br> 14485 verbose unbuild rmStuff [email protected] from C:\Users\Administrator\node_modules<br> 14486 verbose unbuild rmStuff in C:\Users\Administrator\node_modules\electron-rebuild\node_modules<br> 14487 info postuninstall [email protected]<br> 14488 silly gentlyRm C:\Users\Administrator\node_modules\electron-rebuild\node_modules\nslog is being purged from base C:\Users\Administrator<br> 14489 verbose gentlyRm don't care about contents; nuking C:\Users\Administrator\node_modules\electron-rebuild\node_modules\nslog<br> 14490 silly vacuum-fs purging C:\Users\Administrator\node_modules\electron-rebuild\node_modules\nslog<br> 14491 silly vacuum-fs quitting because other entries in C:\Users\Administrator\node_modules\electron-rebuild\node_modules<br> 14492 verbose unbuild node_modules\electron-rebuild<br> 14493 info preuninstall [email protected]<br> 14494 info uninstall [email protected]<br> 14495 verbose unbuild rmStuff [email protected] from C:\Users\Administrator\node_modules<br> 14496 silly gentlyRm C:\Users\Administrator\node_modules.bin\electron-rebuild.cmd is being gently removed<br> 14497 silly gentlyRm verifying C:\Users\Administrator is an npm working directory<br> 14498 silly gentlyRm containing path C:\Users\Administrator is under npm's control, in C:\Users\Administrator<br> 14499 silly gentlyRm deletion target C:\Users\Administrator\node_modules.bin\electron-rebuild.cmd is under C:\Users\Administrator<br> 14500 verbose gentlyRm vacuuming from C:\Users\Administrator\node_modules.bin\electron-rebuild.cmd up to C:\Users\Administrator<br> 14501 silly gentlyRm C:\Users\Administrator\node_modules.bin\electron-rebuild is being gently removed<br> 14502 silly gentlyRm verifying C:\Users\Administrator is an npm working directory<br> 14503 silly gentlyRm containing path C:\Users\Administrator is under npm's control, in C:\Users\Administrator<br> 14504 silly gentlyRm deletion target C:\Users\Administrator\node_modules.bin\electron-rebuild is under C:\Users\Administrator<br> 14505 verbose gentlyRm vacuuming from C:\Users\Administrator\node_modules.bin\electron-rebuild up to C:\Users\Administrator<br> 14506 info postuninstall [email protected]<br> 14507 silly gentlyRm C:\Users\Administrator\node_modules\electron-rebuild is being purged from base C:\Users\Administrator<br> 14508 verbose gentlyRm don't care about contents; nuking C:\Users\Administrator\node_modules\electron-rebuild<br> 14509 silly vacuum-fs purging C:\Users\Administrator\node_modules\electron-rebuild<br> 14510 silly vacuum-fs quitting because other entries in C:\Users\Administrator\node_modules</p>
1
<p dir="auto">The type system does a great job at mirroring most type patterns in JS, all except mixins/traits, anything that decorates types - which unfortunately is very common in JS.</p> <p dir="auto">Without it the type system remains incomplete - that is, we're still one step short of being able to describe JavaScript mixin type patterns.</p> <p dir="auto"><a href="https://typescript.codeplex.com/wikipage?title=Mixins%20in%20TypeScript" rel="nofollow">Duplication and interfaces</a> are not the answer, because this does not reflect what's actually happening in JavaScript - e.g. not duplication, but type decoration of sorts. Not sure if I'm using the correct terminology here.</p> <p dir="auto"><a href="https://github.com/muut/riotjs/blob/master/lib/observable.js">This small library</a> is an example of a real-world decorator - duplicating all of it's method declarations in every single model type in a view-model hierarchy would be extremely impractical.</p> <p dir="auto">The following is a simplified example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class User { public name: string; } interface Events { on(event: string, callback: {():void}); // other methods here... } function addEvents&lt;T&gt;(object: T): T { // decorate the object: object['on'] = function() { // ... } return &lt;T&gt; {}; } var user = addEvents(new User());"><pre class="notranslate"><code class="notranslate">class User { public name: string; } interface Events { on(event: string, callback: {():void}); // other methods here... } function addEvents&lt;T&gt;(object: T): T { // decorate the object: object['on'] = function() { // ... } return &lt;T&gt; {}; } var user = addEvents(new User()); </code></pre></div> <p dir="auto">The drawback here is you have to choose which is more important - that <code class="notranslate">User</code> is still a <code class="notranslate">User</code> after being decorated by <code class="notranslate">addEvents()</code>, or that it is now also <code class="notranslate">Events</code>. There is no direct way to document this type pattern - your only option currently is to document the shape of the resulting type fully, duplicating all the member declarations contributed by the decorator.</p> <p dir="auto">I propose syntax along the lines of the following, to support type alternatives:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function addEvents&lt;T&gt;(object: T): T|Events { // decorate the object: object['on'] = function() { // ... } return &lt;T|Events&gt; {}; } var user = addEvents(new User());"><pre class="notranslate"><code class="notranslate">function addEvents&lt;T&gt;(object: T): T|Events { // decorate the object: object['on'] = function() { // ... } return &lt;T|Events&gt; {}; } var user = addEvents(new User()); </code></pre></div> <p dir="auto">The return type of the call is now <code class="notranslate">User|Events</code> which is a distinct composite type composed members of <code class="notranslate">User</code> and <code class="notranslate">Events</code>.</p> <p dir="auto">The resulting composite type extends <code class="notranslate">User</code> and implements <code class="notranslate">Events</code>, and should pass type-checks for both.</p> <p dir="auto">This should facilitate type-safe traits/mixins and probably other arbitrary type-patterns possible in JS.</p> <p dir="auto">Static type-hints with composite types are implemented in this way in e.g. PhpStorm using php-doc annotations, and it works well.</p> <p dir="auto">I think this may be a simpler and more flexible way to support mixins/traits, without explicitly adding support for those patterns specifically.</p> <p dir="auto">Thoughts?</p>
<p dir="auto">It would simplify a lot of use cases if we could override relational, equality, additive, and Multiplicative operators.</p> <p dir="auto">My initial thoughts on how this would work is that functions would replace the operators with functions when compiling to JavaScript.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class MyClass { constructor() { } public Operator &gt; (value: any):boolean { // compare value } } var myClass = new MyClass(); if(myClass &gt; otherValue){ // Do stuff }"><pre class="notranslate"><code class="notranslate">class MyClass { constructor() { } public Operator &gt; (value: any):boolean { // compare value } } var myClass = new MyClass(); if(myClass &gt; otherValue){ // Do stuff } </code></pre></div> <p dir="auto">Becomes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var MyClass = (function () { function MyClass() { } MyClass.prototype.greaterThan = function (value) { // compare value }; return MyClass; })(); var myClass = new MyClass(); if (myClass.greaterThan(otherValue) { // do Stuff }"><pre class="notranslate"><code class="notranslate">var MyClass = (function () { function MyClass() { } MyClass.prototype.greaterThan = function (value) { // compare value }; return MyClass; })(); var myClass = new MyClass(); if (myClass.greaterThan(otherValue) { // do Stuff } </code></pre></div>
0
<p dir="auto">I have two containers in a stack and both containers have GestureDetector.The OnTap for the first container is working fine but it's not working with another container.<br> The first container is the image and the second one is the green background aligned partially over the first container.</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" new Stack( alignment: Alignment(0.0, 1.44), children: &lt;Widget&gt;[ GestureDetector( onTap: () =&gt; _openImage(context), child: Container( width: 340.0, foregroundDecoration: new BoxDecoration( color: Color.fromRGBO(155, 85, 250, 0.55)), height: 240.0, child: FadeInImage.assetNetwork( placeholder: 'assets/dimlight.png', image: post.imageUrl, fit: BoxFit.cover, ), ), ), new GestureDetector( child: new Container( color: Colors.green, child: Row( mainAxisSize: MainAxisSize.max, children: &lt;Widget&gt;[ SizedBox(width: 7.0), CircleAvatar( backgroundImage: new AssetImage(&quot;assets/boy.png&quot;) radius: 30.0, ), SizedBox( width: 7.0, ), Column( crossAxisAlignment: CrossAxisAlignment.start, children: &lt;Widget&gt;[ new SizedBox( height: 20.0, ), Text( post.user.name, style: TextStyle(fontWeight: FontWeight.bold), ), Text( getTimeString(post.timestamp.toString()), style: TextStyle( color: Colors.grey, fontSize: 10.0), ), ], ), SizedBox( width: 20.0, ), ], ), ), onTap: () =&gt; _navigateToDetails(context), ) ], )"><pre class="notranslate"> <span class="pl-k">new</span> <span class="pl-c1">Stack</span>( alignment<span class="pl-k">:</span> <span class="pl-c1">Alignment</span>(<span class="pl-c1">0.0</span>, <span class="pl-c1">1.44</span>), children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-c1">GestureDetector</span>( onTap<span class="pl-k">:</span> () <span class="pl-k">=&gt;</span> <span class="pl-en">_openImage</span>(context), child<span class="pl-k">:</span> <span class="pl-c1">Container</span>( width<span class="pl-k">:</span> <span class="pl-c1">340.0</span>, foregroundDecoration<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">BoxDecoration</span>( color<span class="pl-k">:</span> <span class="pl-c1">Color</span>.<span class="pl-en">fromRGBO</span>(<span class="pl-c1">155</span>, <span class="pl-c1">85</span>, <span class="pl-c1">250</span>, <span class="pl-c1">0.55</span>)), height<span class="pl-k">:</span> <span class="pl-c1">240.0</span>, child<span class="pl-k">:</span> <span class="pl-c1">FadeInImage</span>.<span class="pl-en">assetNetwork</span>( placeholder<span class="pl-k">:</span> <span class="pl-s">'assets/dimlight.png'</span>, image<span class="pl-k">:</span> post.imageUrl, fit<span class="pl-k">:</span> <span class="pl-c1">BoxFit</span>.cover, ), ), ), <span class="pl-k">new</span> <span class="pl-c1">GestureDetector</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.green, child<span class="pl-k">:</span> <span class="pl-c1">Row</span>( mainAxisSize<span class="pl-k">:</span> <span class="pl-c1">MainAxisSize</span>.max, children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-c1">SizedBox</span>(width<span class="pl-k">:</span> <span class="pl-c1">7.0</span>), <span class="pl-c1">CircleAvatar</span>( backgroundImage<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">AssetImage</span>(<span class="pl-s">"assets/boy.png"</span>) radius<span class="pl-k">:</span> <span class="pl-c1">30.0</span>, ), <span class="pl-c1">SizedBox</span>( width<span class="pl-k">:</span> <span class="pl-c1">7.0</span>, ), <span class="pl-c1">Column</span>( crossAxisAlignment<span class="pl-k">:</span> <span class="pl-c1">CrossAxisAlignment</span>.start, children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">SizedBox</span>( height<span class="pl-k">:</span> <span class="pl-c1">20.0</span>, ), <span class="pl-c1">Text</span>( post.user.name, style<span class="pl-k">:</span> <span class="pl-c1">TextStyle</span>(fontWeight<span class="pl-k">:</span> <span class="pl-c1">FontWeight</span>.bold), ), <span class="pl-c1">Text</span>( <span class="pl-en">getTimeString</span>(post.timestamp.<span class="pl-en">toString</span>()), style<span class="pl-k">:</span> <span class="pl-c1">TextStyle</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.grey, fontSize<span class="pl-k">:</span> <span class="pl-c1">10.0</span>), ), ], ), <span class="pl-c1">SizedBox</span>( width<span class="pl-k">:</span> <span class="pl-c1">20.0</span>, ), ], ), ), onTap<span class="pl-k">:</span> () <span class="pl-k">=&gt;</span> <span class="pl-en">_navigateToDetails</span>(context), ) ], )</pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>installed flutter and dependencies</li> <li>started the ios simulator</li> <li>created an app</li> <li>wanted to run the app on ios but got errors</li> </ol> <p dir="auto">What should I do?</p> <p dir="auto">This is the log of output...from command line...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="iMac:~ shyamalc$ flutter create myapp Creating project myapp: myapp/.atom/launches/main.yaml myapp/.gitignore myapp/android/AndroidManifest.xml myapp/android/res/mipmap-hdpi/ic_launcher.png myapp/android/res/mipmap-mdpi/ic_launcher.png myapp/android/res/mipmap-xhdpi/ic_launcher.png myapp/android/res/mipmap-xxhdpi/ic_launcher.png myapp/android/res/mipmap-xxxhdpi/ic_launcher.png myapp/flutter.yaml myapp/ios/.gitignore myapp/ios/Flutter/Debug.xcconfig myapp/ios/Flutter/Release.xcconfig myapp/ios/Podfile myapp/ios/Podfile.lock myapp/ios/Pods/Pods.xcodeproj/project.pbxproj myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-acknowledgements.markdown myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-acknowledgements.plist myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-dummy.m myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig myapp/ios/Runner/AppDelegate.h myapp/ios/Runner/AppDelegate.m myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-76.png myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small.png myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Base.lproj/LaunchScreen.storyboard myapp/ios/Runner/Base.lproj/Main.storyboard myapp/ios/Runner/Info.plist myapp/ios/Runner/main.m myapp/ios/Runner.xcodeproj/project.pbxproj myapp/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata myapp/ios/Runner.xcworkspace/contents.xcworkspacedata myapp/lib/main.dart myapp/pubspec.yaml myapp/README.md Running 'pub get' in myapp... 7.5s [✓] Flutter is fully installed. (on Mac OS, channel alpha) [✓] Android toolchain - develop for Android devices is fully installed. (Android SDK 23.0.3) [✓] iOS toolchain - develop for iOS devices is fully installed. (Xcode 8.0) [✓] Atom - a lightweight development environment for Flutter is fully installed. All done! In order to run your application, type: $ cd /Users/shyamalc/myapp $ flutter run iMac:~ shyamalc$ cd myapp/ iMac:myapp shyamalc$ ls README.md flutter.yaml lib pubspec.yaml android ios pubspec.lock iMac:myapp shyamalc$ flutter run More than one device connected; please specify a device with the '-d &lt;deviceId&gt;' flag. • aa3f70302e79bda72735b84d05839505d1f5c31c • ios iPhone SE • F4DE0080-CF21-45EA-A216-27A4F823C960 • ios iMac:myapp shyamalc$ flutter run -d ios No device found with id 'ios'. iMac:myapp shyamalc$ flutter run -d aa3f70302e79bda72735b84d05839505d1f5c31c Running lib/main.dart on ... ^C iMac:myapp shyamalc$ flutter run -d F4DE0080-CF21-45EA-A216-27A4F823C960 Running lib/main.dart on iPhone SE... CoreSimulatorBridge: Pasteboard change listener callback port &lt;NSMachPort: 0x7f7fc7e035f0&gt; registered CoreSimulatorBridge: Getting container class internal daemon! CoreSimulatorBridge: Pasteboard change listener callback port &lt;NSMachPort: 0x7f7fc7e04a70&gt; registered locationd: Location icon should now be in state 'Inactive' logd: metadata shared cached uuid is null (using logd's shared cache info) NewsToday (64315) logd: Failed to harvest strings for pathless uuid '00000000-0000-0000-0000-000000000000' NewsToday: Failed to inherit CoreMedia permissions from 63561: (null) NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Getting container class internal daemon! Aug 13 21:44:08 iMac com.apple.CoreSimulator.SimDevice.F4DE0080-CF21-45EA-A216-27A4F823C960.launchd_sim[63544] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit accountsd: Getting container class internal daemon! accountsd: [daemon] +[ACDTCCUtilities TCCStateForClient:accountTypeID:] (25) &quot;Cannot check access to a private account type: com.apple.account.AppleAccount&quot; accountsd: [daemon] -[ACDAccountStoreFilter accountsWithAccountType:handler:] (293) &quot;Client NewsToday is not allowed to access accounts of type com.apple.account.AppleAccount.&quot; NewsToday: [core] __42-[ACAccountStore accountsWithAccountType:]_block_invoke_2 (208) &quot;Error returned from daemon: Error Domain=com.apple.accounts Code=9 &quot;(null)&quot;&quot; NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. NewsToday: *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL backboardd: [Common] Unable to bootstrap_look_up port with name com.apple.news.widget.gsEvents: unknown error code (1102) SpringBoard: HW kbd: Failed to set com.apple.news.widget as keyboard focus NewsToday: No active animation block! filecoordinationd: Getting container class internal daemon! NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. SpringBoard: Unbalanced calls to begin/end appearance transitions for &lt;_WGWidgetRemoteViewController: 0x7f85f58ec800&gt;. kbd: DEBUG:ProactiveQuickType:IC: Getting contacts with address book limit: 10000, found on device limit: 100 kbd: AppleLanguages preference: ( en ) kbd: Preferred localization: ( English ) kbd: &gt;&gt;&gt; Loading sample shortcut from /Users/shyamalc/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/TextInput.framework/English.lproj/TIUserDictionarySampleShortcuts.plist kbd: DEBUG:ProactiveQuickType:IC: received contacts count = 8, elapsed = 108.586967 msec cloudd: [LogFacilityCK] Could not create primary backing account kbd: Getting container class internal daemon! kbd: Detect and clean shortcut duplicates. kbd: Deduplication completed (number of duplicated shortcuts = 0) kbd: Saving observed local peer identity to com.apple.Preferences kbd: &gt;&gt;&gt; sending out shortcut changes notif kbd: AppleLanguages preference: ( en ) kbd: Preferred localization: ( English ) kbd: &gt;&gt;&gt; Loading sample shortcut from /Users/shyamalc/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/TextInput.framework/English.lproj/TIUserDictionarySampleShortcuts.plist kbd: &gt;&gt;&gt; sending out shortcut changes notif kbd: Detect and clean shortcut duplicates. kbd: Deduplication completed (number of duplicated shortcuts = 0) ^C"><pre class="notranslate"><code class="notranslate">iMac:~ shyamalc$ flutter create myapp Creating project myapp: myapp/.atom/launches/main.yaml myapp/.gitignore myapp/android/AndroidManifest.xml myapp/android/res/mipmap-hdpi/ic_launcher.png myapp/android/res/mipmap-mdpi/ic_launcher.png myapp/android/res/mipmap-xhdpi/ic_launcher.png myapp/android/res/mipmap-xxhdpi/ic_launcher.png myapp/android/res/mipmap-xxxhdpi/ic_launcher.png myapp/flutter.yaml myapp/ios/.gitignore myapp/ios/Flutter/Debug.xcconfig myapp/ios/Flutter/Release.xcconfig myapp/ios/Podfile myapp/ios/Podfile.lock myapp/ios/Pods/Pods.xcodeproj/project.pbxproj myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-acknowledgements.markdown myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-acknowledgements.plist myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-dummy.m myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig myapp/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig myapp/ios/Runner/AppDelegate.h myapp/ios/Runner/AppDelegate.m myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-76.png myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small.png myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] myapp/ios/Runner/Base.lproj/LaunchScreen.storyboard myapp/ios/Runner/Base.lproj/Main.storyboard myapp/ios/Runner/Info.plist myapp/ios/Runner/main.m myapp/ios/Runner.xcodeproj/project.pbxproj myapp/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata myapp/ios/Runner.xcworkspace/contents.xcworkspacedata myapp/lib/main.dart myapp/pubspec.yaml myapp/README.md Running 'pub get' in myapp... 7.5s [✓] Flutter is fully installed. (on Mac OS, channel alpha) [✓] Android toolchain - develop for Android devices is fully installed. (Android SDK 23.0.3) [✓] iOS toolchain - develop for iOS devices is fully installed. (Xcode 8.0) [✓] Atom - a lightweight development environment for Flutter is fully installed. All done! In order to run your application, type: $ cd /Users/shyamalc/myapp $ flutter run iMac:~ shyamalc$ cd myapp/ iMac:myapp shyamalc$ ls README.md flutter.yaml lib pubspec.yaml android ios pubspec.lock iMac:myapp shyamalc$ flutter run More than one device connected; please specify a device with the '-d &lt;deviceId&gt;' flag. • aa3f70302e79bda72735b84d05839505d1f5c31c • ios iPhone SE • F4DE0080-CF21-45EA-A216-27A4F823C960 • ios iMac:myapp shyamalc$ flutter run -d ios No device found with id 'ios'. iMac:myapp shyamalc$ flutter run -d aa3f70302e79bda72735b84d05839505d1f5c31c Running lib/main.dart on ... ^C iMac:myapp shyamalc$ flutter run -d F4DE0080-CF21-45EA-A216-27A4F823C960 Running lib/main.dart on iPhone SE... CoreSimulatorBridge: Pasteboard change listener callback port &lt;NSMachPort: 0x7f7fc7e035f0&gt; registered CoreSimulatorBridge: Getting container class internal daemon! CoreSimulatorBridge: Pasteboard change listener callback port &lt;NSMachPort: 0x7f7fc7e04a70&gt; registered locationd: Location icon should now be in state 'Inactive' logd: metadata shared cached uuid is null (using logd's shared cache info) NewsToday (64315) logd: Failed to harvest strings for pathless uuid '00000000-0000-0000-0000-000000000000' NewsToday: Failed to inherit CoreMedia permissions from 63561: (null) NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Getting container class internal daemon! Aug 13 21:44:08 iMac com.apple.CoreSimulator.SimDevice.F4DE0080-CF21-45EA-A216-27A4F823C960.launchd_sim[63544] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit accountsd: Getting container class internal daemon! accountsd: [daemon] +[ACDTCCUtilities TCCStateForClient:accountTypeID:] (25) "Cannot check access to a private account type: com.apple.account.AppleAccount" accountsd: [daemon] -[ACDAccountStoreFilter accountsWithAccountType:handler:] (293) "Client NewsToday is not allowed to access accounts of type com.apple.account.AppleAccount." NewsToday: [core] __42-[ACAccountStore accountsWithAccountType:]_block_invoke_2 (208) "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)"" NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. NewsToday: *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL backboardd: [Common] Unable to bootstrap_look_up port with name com.apple.news.widget.gsEvents: unknown error code (1102) SpringBoard: HW kbd: Failed to set com.apple.news.widget as keyboard focus NewsToday: No active animation block! filecoordinationd: Getting container class internal daemon! NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. NewsToday: Could not successfully update network info during initialization. NewsToday: Normal message received by listener connection. Ignoring. SpringBoard: Unbalanced calls to begin/end appearance transitions for &lt;_WGWidgetRemoteViewController: 0x7f85f58ec800&gt;. kbd: DEBUG:ProactiveQuickType:IC: Getting contacts with address book limit: 10000, found on device limit: 100 kbd: AppleLanguages preference: ( en ) kbd: Preferred localization: ( English ) kbd: &gt;&gt;&gt; Loading sample shortcut from /Users/shyamalc/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/TextInput.framework/English.lproj/TIUserDictionarySampleShortcuts.plist kbd: DEBUG:ProactiveQuickType:IC: received contacts count = 8, elapsed = 108.586967 msec cloudd: [LogFacilityCK] Could not create primary backing account kbd: Getting container class internal daemon! kbd: Detect and clean shortcut duplicates. kbd: Deduplication completed (number of duplicated shortcuts = 0) kbd: Saving observed local peer identity to com.apple.Preferences kbd: &gt;&gt;&gt; sending out shortcut changes notif kbd: AppleLanguages preference: ( en ) kbd: Preferred localization: ( English ) kbd: &gt;&gt;&gt; Loading sample shortcut from /Users/shyamalc/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/TextInput.framework/English.lproj/TIUserDictionarySampleShortcuts.plist kbd: &gt;&gt;&gt; sending out shortcut changes notif kbd: Detect and clean shortcut duplicates. kbd: Deduplication completed (number of duplicated shortcuts = 0) ^C </code></pre></div> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="iMac:myapp shyamalc$ flutter doctor [✓] Flutter (on Mac OS, channel alpha) • Flutter at /Users/shyamalc/tensorflow/flutter • Framework revision 9a0a0d9903 (2 days ago), engine revision f8d80c4617 [✓] Android toolchain - develop for Android devices (Android SDK 23.0.3) • Android SDK at /Users/shyamalc/Library/Android/sdk • Platform android-N, build-tools 23.0.3 • Java(TM) SE Runtime Environment (build 1.8.0_66-b17) [✓] iOS toolchain - develop for iOS devices (Xcode 8.0) • XCode at /Applications/Xcode-beta.app/Contents/Developer • Xcode 8.0, Build version 8S128d [✓] Atom - a lightweight development environment for Flutter • flutter plugin version 0.2.4 • dartlang plugin version 0.6.35"><pre class="notranslate"><code class="notranslate">iMac:myapp shyamalc$ flutter doctor [✓] Flutter (on Mac OS, channel alpha) • Flutter at /Users/shyamalc/tensorflow/flutter • Framework revision 9a0a0d9903 (2 days ago), engine revision f8d80c4617 [✓] Android toolchain - develop for Android devices (Android SDK 23.0.3) • Android SDK at /Users/shyamalc/Library/Android/sdk • Platform android-N, build-tools 23.0.3 • Java(TM) SE Runtime Environment (build 1.8.0_66-b17) [✓] iOS toolchain - develop for iOS devices (Xcode 8.0) • XCode at /Applications/Xcode-beta.app/Contents/Developer • Xcode 8.0, Build version 8S128d [✓] Atom - a lightweight development environment for Flutter • flutter plugin version 0.2.4 • dartlang plugin version 0.6.35 </code></pre></div> <h2 dir="auto">Logs and Crash Reports</h2> <p dir="auto">n/a (output shown above)</p>
0
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.6.3</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Ubuntu 14.04</p> <h5 dir="auto">Summary:</h5> <p dir="auto">When using apache2_module for mpm_prefork a change occurs every playbook run, even though the module is already enabled.</p> <h5 dir="auto">Steps To Reproduce:</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Ensure mpm_prefork is enabled apache2_module: name=mpm_prefork"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Ensure mpm_prefork is enabled</span> <span class="pl-ent">apache2_module</span>: <span class="pl-s">name=mpm_prefork</span></pre></div> <h5 dir="auto">Expected Results:</h5> <p dir="auto">No change during playbook run.</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">A change occurs every run, even though mpm_prefork is already enabled:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# a2enmod mpm_prefork Considering conflict mpm_event for mpm_prefork: Considering conflict mpm_worker for mpm_prefork: Considering conflict mpm_itk for mpm_prefork: Module mpm_prefork already enabled"><pre class="notranslate"><code class="notranslate"># a2enmod mpm_prefork Considering conflict mpm_event for mpm_prefork: Considering conflict mpm_worker for mpm_prefork: Considering conflict mpm_itk for mpm_prefork: Module mpm_prefork already enabled </code></pre></div>
<p dir="auto">In Ansible Version 1.6.2 the module 'apache2_module', which was added in 1.6, always lists apache modules when being enabled as 'changed' if they have some dependencies.</p> <p dir="auto">Tested with the modules headers, deflate, rewrite, ssl.<br> Here's the output from Ansible:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [apache | Enable standard mods] ***************************************** &lt;ansibleCrawler&gt; REMOTE_MODULE apache2_module name=headers state=present ok: [ansibleCrawler] =&gt; (item=headers) =&gt; {&quot;changed&quot;: false, &quot;item&quot;: &quot;headers&quot;, &quot;result&quot;: &quot;Success&quot;} &lt;ansibleCrawler&gt; REMOTE_MODULE apache2_module name=deflate state=present changed: [ansibleCrawler] =&gt; (item=deflate) =&gt; {&quot;changed&quot;: true, &quot;item&quot;: &quot;deflate&quot;, &quot;result&quot;: &quot;Enabled&quot;} &lt;ansibleCrawler&gt; REMOTE_MODULE apache2_module name=rewrite state=present ok: [ansibleCrawler] =&gt; (item=rewrite) =&gt; {&quot;changed&quot;: false, &quot;item&quot;: &quot;rewrite&quot;, &quot;result&quot;: &quot;Success&quot;} &lt;ansibleCrawler&gt; REMOTE_MODULE apache2_module name=ssl state=present changed: [ansibleCrawler] =&gt; (item=ssl) =&gt; {&quot;changed&quot;: true, &quot;item&quot;: &quot;ssl&quot;, &quot;result&quot;: &quot;Enabled&quot;}"><pre class="notranslate"><code class="notranslate">TASK: [apache | Enable standard mods] ***************************************** &lt;ansibleCrawler&gt; REMOTE_MODULE apache2_module name=headers state=present ok: [ansibleCrawler] =&gt; (item=headers) =&gt; {"changed": false, "item": "headers", "result": "Success"} &lt;ansibleCrawler&gt; REMOTE_MODULE apache2_module name=deflate state=present changed: [ansibleCrawler] =&gt; (item=deflate) =&gt; {"changed": true, "item": "deflate", "result": "Enabled"} &lt;ansibleCrawler&gt; REMOTE_MODULE apache2_module name=rewrite state=present ok: [ansibleCrawler] =&gt; (item=rewrite) =&gt; {"changed": false, "item": "rewrite", "result": "Success"} &lt;ansibleCrawler&gt; REMOTE_MODULE apache2_module name=ssl state=present changed: [ansibleCrawler] =&gt; (item=ssl) =&gt; {"changed": true, "item": "ssl", "result": "Enabled"} </code></pre></div> <p dir="auto">And here's what manual execution of a2enmod on the target machine prints out:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@targetMachine ~ # a2enmod headers Module headers already enabled root@targetMachine ~ # a2enmod deflate Considering dependency filter for deflate: Module filter already enabled Module deflate already enabled root@targetMachine ~ # a2enmod rewrite Module rewrite already enabled root@targetMachine ~ # a2enmod ssl Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Module socache_shmcb already enabled Module ssl already enabled"><pre class="notranslate"><code class="notranslate">root@targetMachine ~ # a2enmod headers Module headers already enabled root@targetMachine ~ # a2enmod deflate Considering dependency filter for deflate: Module filter already enabled Module deflate already enabled root@targetMachine ~ # a2enmod rewrite Module rewrite already enabled root@targetMachine ~ # a2enmod ssl Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Module socache_shmcb already enabled Module ssl already enabled </code></pre></div> <p dir="auto">As you can see, this only involves modules which depend on others.<br> If using apache2_module with the notify directive, it would cause to always trigger the notification, e.g. restarting Apache.</p>
1
<p dir="auto">It is hard to get the zone to the correct position and correct size with the mouse.</p> <p dir="auto">It would be great if we get a edit button left of the close button. There i want to put in the position (x pos, y pos) and the size (width, height) - like in the program WindowManager.</p> <p dir="auto">Also it would be great if there is a grab/pick button, where i can choose a existing window to get the coordinates from it.</p> <p dir="auto">And also that i can setup a shortcut for this zone (like Ctrl+Alt+F1) to send the active window directly to this zone without mouse</p> <p dir="auto">And it would be also great, if i can see and setup there the position nr. of the zone (the dots you see when you drag a window with shift).</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">When creating custom zones, it's very hard to resize them exactly as you want. In order to get the result you desire, you need to do pixel-perfect movements with the mouse on zones with thick borders.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/57802679/68950401-c3e87f80-07c4-11ea-8077-7c8a44a433b1.png"><img src="https://user-images.githubusercontent.com/57802679/68950401-c3e87f80-07c4-11ea-8077-7c8a44a433b1.png" alt="image" style="max-width: 100%;"></a><br> It would be nice, if I could either enable snapping, or disable overlapping on demand. The zone border thickness could be smaller as well, it's hard to tell if your border is overlapping with another zone or not.</p> <p dir="auto">In the example below, I tried to get these 3 zones touching pixel-perfect, and eventually gave up trying to get rid of this ugly inconsistent gap<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/57802679/68950812-93551580-07c5-11ea-9cea-2559db32bc83.png"><img src="https://user-images.githubusercontent.com/57802679/68950812-93551580-07c5-11ea-9cea-2559db32bc83.png" alt="image" style="max-width: 100%;"></a></p>
0
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Follow the steps to integrate Google Sign In to iOS app from <a href="https://github.com/flutter/plugins/tree/master/packages/google_sign_in">here</a></p> <h2 dir="auto">Logs</h2> <p dir="auto"><code class="notranslate">flutter run</code> output</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ flutter_todo flutter run -d iP8+P Launching lib/main.dart on iP8+P in debug mode... Automatically signing iOS for device deployment using specified development team in Xcode project: S29F39HXPA Running pod install... 1.3s Running Xcode clean... 1.4s Starting Xcode build... ├─Building Dart code... 3.4s ├─Assembling Flutter resources... 4.1s └─Compiling, linking and signing... 0.7s Xcode build done 15.5s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ === BUILD TARGET google_sign_in OF PROJECT Pods WITH CONFIGURATION Debug === /Users/kalehv/.pub-cache/hosted/pub.dartlang.org/google_sign_in-2.1.0/ios/Classes/GoogleSignInPlugin.m:111:41: warning: 'UIApplicationOpenURLOptionsSourceApplicationKey' is only available on iOS 9.0 or newer [-Wunguarded-availability] NSString *sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In module 'UIKit' imported from /Users/kalehv/dev/flutter_todo/ios/Pods/Target Support Files/google_sign_in/google_sign_in-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:534:51: note: 'UIApplicationOpenURLOptionsSourceApplicationKey' has been explicitly marked partial here UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsSourceApplicationKey NS_AVAILABLE_IOS(9_0); // value is an NSString containing the bundle ID of the originating application ^ /Users/kalehv/.pub-cache/hosted/pub.dartlang.org/google_sign_in-2.1.0/ios/Classes/GoogleSignInPlugin.m:111:41: note: enclose 'UIApplicationOpenURLOptionsSourceApplicationKey' in an @available check to silence this warning NSString *sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/kalehv/.pub-cache/hosted/pub.dartlang.org/google_sign_in-2.1.0/ios/Classes/GoogleSignInPlugin.m:112:27: warning: 'UIApplicationOpenURLOptionsAnnotationKey' is only available on iOS 9.0 or newer [-Wunguarded-availability] id annotation = options[UIApplicationOpenURLOptionsAnnotationKey]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In module 'UIKit' imported from /Users/kalehv/dev/flutter_todo/ios/Pods/Target Support Files/google_sign_in/google_sign_in-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:535:51: note: 'UIApplicationOpenURLOptionsAnnotationKey' has been explicitly marked partial here UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsAnnotationKey NS_AVAILABLE_IOS(9_0); // value is a property-list typed object corresponding to what the originating application passed in UIDocumentInteractionController's annotation property ^ /Users/kalehv/.pub-cache/hosted/pub.dartlang.org/google_sign_in-2.1.0/ios/Classes/GoogleSignInPlugin.m:112:27: note: enclose 'UIApplicationOpenURLOptionsAnnotationKey' in an @available check to silence this warning id annotation = options[UIApplicationOpenURLOptionsAnnotationKey]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. === BUILD TARGET google_sign_in OF PROJECT Pods WITH CONFIGURATION Debug === ld: warning: -undefined dynamic_lookup is deprecated on iOS === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the &quot;Swift 3 @objc Inference&quot; build setting to &quot;Default&quot; for the &quot;Runner&quot; target. === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === /Users/kalehv/dev/flutter_todo/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'google_sign_in/GoogleSignInPlugin.h' file not found #import &lt;google_sign_in/GoogleSignInPlugin.h&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. Could not build the precompiled application for the device. Error launching application on iP8+P."><pre class="notranslate"><code class="notranslate">➜ flutter_todo flutter run -d iP8+P Launching lib/main.dart on iP8+P in debug mode... Automatically signing iOS for device deployment using specified development team in Xcode project: S29F39HXPA Running pod install... 1.3s Running Xcode clean... 1.4s Starting Xcode build... ├─Building Dart code... 3.4s ├─Assembling Flutter resources... 4.1s └─Compiling, linking and signing... 0.7s Xcode build done 15.5s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ === BUILD TARGET google_sign_in OF PROJECT Pods WITH CONFIGURATION Debug === /Users/kalehv/.pub-cache/hosted/pub.dartlang.org/google_sign_in-2.1.0/ios/Classes/GoogleSignInPlugin.m:111:41: warning: 'UIApplicationOpenURLOptionsSourceApplicationKey' is only available on iOS 9.0 or newer [-Wunguarded-availability] NSString *sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In module 'UIKit' imported from /Users/kalehv/dev/flutter_todo/ios/Pods/Target Support Files/google_sign_in/google_sign_in-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:534:51: note: 'UIApplicationOpenURLOptionsSourceApplicationKey' has been explicitly marked partial here UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsSourceApplicationKey NS_AVAILABLE_IOS(9_0); // value is an NSString containing the bundle ID of the originating application ^ /Users/kalehv/.pub-cache/hosted/pub.dartlang.org/google_sign_in-2.1.0/ios/Classes/GoogleSignInPlugin.m:111:41: note: enclose 'UIApplicationOpenURLOptionsSourceApplicationKey' in an @available check to silence this warning NSString *sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/kalehv/.pub-cache/hosted/pub.dartlang.org/google_sign_in-2.1.0/ios/Classes/GoogleSignInPlugin.m:112:27: warning: 'UIApplicationOpenURLOptionsAnnotationKey' is only available on iOS 9.0 or newer [-Wunguarded-availability] id annotation = options[UIApplicationOpenURLOptionsAnnotationKey]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In module 'UIKit' imported from /Users/kalehv/dev/flutter_todo/ios/Pods/Target Support Files/google_sign_in/google_sign_in-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:535:51: note: 'UIApplicationOpenURLOptionsAnnotationKey' has been explicitly marked partial here UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsAnnotationKey NS_AVAILABLE_IOS(9_0); // value is a property-list typed object corresponding to what the originating application passed in UIDocumentInteractionController's annotation property ^ /Users/kalehv/.pub-cache/hosted/pub.dartlang.org/google_sign_in-2.1.0/ios/Classes/GoogleSignInPlugin.m:112:27: note: enclose 'UIApplicationOpenURLOptionsAnnotationKey' in an @available check to silence this warning id annotation = options[UIApplicationOpenURLOptionsAnnotationKey]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. === BUILD TARGET google_sign_in OF PROJECT Pods WITH CONFIGURATION Debug === ld: warning: -undefined dynamic_lookup is deprecated on iOS === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target. === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === /Users/kalehv/dev/flutter_todo/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'google_sign_in/GoogleSignInPlugin.h' file not found #import &lt;google_sign_in/GoogleSignInPlugin.h&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. Could not build the precompiled application for the device. Error launching application on iP8+P. </code></pre></div> <hr> <p dir="auto"><code class="notranslate">flutter analyze</code> output</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ flutter_todo flutter analyze Analyzing /Users/kalehv/dev/flutter_todo... No issues found! Ran in 4.9s"><pre class="notranslate"><code class="notranslate">➜ flutter_todo flutter analyze Analyzing /Users/kalehv/dev/flutter_todo... No issues found! Ran in 4.9s </code></pre></div> <h2 dir="auto">Flutter Doctor</h2> <p dir="auto"><code class="notranslate">flutter doctor -v</code> output (Device IDs redacted)<br> Note - I am not using IntelliJ IDEA. I am using Android Studio instead.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ flutter_todo flutter doctor -v [✓] Flutter (on Mac OS X 10.13.3 17D102, locale en-US, channel beta) • Flutter version 0.1.4 at /Users/kalehv/Library/flutter • Framework revision f914e701c5 (8 days ago), 2018-02-19 21:12:17 +0000 • Engine revision 13cf22c284 • Dart version 2.0.0-dev.27.0-flutter-0d5cf900b0 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/kalehv/Library/Android/sdk • Android NDK at /Users/kalehv/Library/Android/sdk/ndk-bundle • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /Users/kalehv/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] 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.4.0 [✓] 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) [✓] Android Studio (version 3.0) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [!] IntelliJ IDEA Community Edition (version 2017.3.4) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [✓] VS Code (version 1.20.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Dart Code extension version 2.9.0 [✓] Connected devices • iP8+P • XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX • ios • iOS 11.2.5 • iPhone X • XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX • ios • iOS 11.2 (simulator) ! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">➜ flutter_todo flutter doctor -v [✓] Flutter (on Mac OS X 10.13.3 17D102, locale en-US, channel beta) • Flutter version 0.1.4 at /Users/kalehv/Library/flutter • Framework revision f914e701c5 (8 days ago), 2018-02-19 21:12:17 +0000 • Engine revision 13cf22c284 • Dart version 2.0.0-dev.27.0-flutter-0d5cf900b0 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/kalehv/Library/Android/sdk • Android NDK at /Users/kalehv/Library/Android/sdk/ndk-bundle • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /Users/kalehv/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] 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.4.0 [✓] 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) [✓] Android Studio (version 3.0) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [!] IntelliJ IDEA Community Edition (version 2017.3.4) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [✓] VS Code (version 1.20.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Dart Code extension version 2.9.0 [✓] Connected devices • iP8+P • XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX • ios • iOS 11.2.5 • iPhone X • XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX • ios • iOS 11.2 (simulator) ! Doctor found issues in 1 category. </code></pre></div> <p dir="auto">As you can see, for some reason, I am not able to add any dependency package and run the app for iOS. This issue is not specific to only google_sign_in.</p> <p dir="auto">Working fine on Android.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/588703/36778576-f59e0620-1c21-11e8-96e4-6735a14a7b48.png"><img width="1920" alt="screen shot 2018-02-28 at 12 17 36 am" src="https://user-images.githubusercontent.com/588703/36778576-f59e0620-1c21-11e8-96e4-6735a14a7b48.png" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce</h2> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="set -x mkdir -p Made_Podfiles_use_symlinks_to_local_pods_NOT_WORKING/ pushd Made_Podfiles_use_symlinks_to_local_pods_NOT_WORKING/ flutter create -t plugin -i swift --org com.failed failed &gt; /dev/null pushd failed/example flutter build ios --debug popd flutter create -t plugin -i swift --org com.success success &gt; /dev/null pushd success/example wget -q https://raw.githubusercontent.com/mravn-google/flutter/3723ec0383f79420486bb4ee5acf06ebd190b5cf/packages/flutter_tools/templates/cocoapods/Podfile-swift cp Podfile-swift ios/Podfile flutter build ios --debug popd popd"><pre class="notranslate"><span class="pl-c1">set</span> -x mkdir -p Made_Podfiles_use_symlinks_to_local_pods_NOT_WORKING/ <span class="pl-c1">pushd</span> Made_Podfiles_use_symlinks_to_local_pods_NOT_WORKING/ flutter create -t plugin -i swift --org com.failed failed <span class="pl-k">&gt;</span> /dev/null <span class="pl-c1">pushd</span> failed/example flutter build ios --debug <span class="pl-c1">popd</span> flutter create -t plugin -i swift --org com.success success <span class="pl-k">&gt;</span> /dev/null <span class="pl-c1">pushd</span> success/example wget -q https://raw.githubusercontent.com/mravn-google/flutter/3723ec0383f79420486bb4ee5acf06ebd190b5cf/packages/flutter_tools/templates/cocoapods/Podfile-swift cp Podfile-swift ios/Podfile flutter build ios --debug <span class="pl-c1">popd</span> <span class="pl-c1">popd</span></pre></div> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ ~ flutter doctor -v [✓] Flutter (Channel master, v0.1.8-pre.43, on Mac OS X 10.13.3 17D102, locale en-KR) • Flutter version 0.1.8-pre.43 at /Users/?????/flutter • Framework revision fe334e1652 (3 hours ago), 2018-03-02 17:54:51 -0800 • Engine revision 97b22348c8 • Dart version 2.0.0-dev.32.0.flutter-ee15c8eb68 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/?????/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /Users/?????/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b • ios-deploy 1.9.2 • CocoaPods version 1.3.1 [✓] Android Studio (version 3.0) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] IntelliJ IDEA Community Edition (version 2017.3.4) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 22.1.2 • Dart plugin version 173.4548.30 [✓] VS Code • VS Code at /Applications/Visual Studio Code.app/Contents • Dart Code extension version 2.8.0 [✓] Connected devices (1 available) • ????????????????????????????????????? • ios • iOS 11.2.6 • No issues found!"><pre class="notranslate"><code class="notranslate">➜ ~ flutter doctor -v [✓] Flutter (Channel master, v0.1.8-pre.43, on Mac OS X 10.13.3 17D102, locale en-KR) • Flutter version 0.1.8-pre.43 at /Users/?????/flutter • Framework revision fe334e1652 (3 hours ago), 2018-03-02 17:54:51 -0800 • Engine revision 97b22348c8 • Dart version 2.0.0-dev.32.0.flutter-ee15c8eb68 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/?????/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /Users/?????/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b • ios-deploy 1.9.2 • CocoaPods version 1.3.1 [✓] Android Studio (version 3.0) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] IntelliJ IDEA Community Edition (version 2017.3.4) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 22.1.2 • Dart plugin version 173.4548.30 [✓] VS Code • VS Code at /Applications/Visual Studio Code.app/Contents • Dart Code extension version 2.8.0 [✓] Connected devices (1 available) • ????????????????????????????????????? • ios • iOS 11.2.6 • No issues found! </code></pre></div>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">It's great that we can create random decimal numbers, but it's even more useful if we lot more useful to generate a random whole number.</p> <p dir="auto">Should read:<br> It's great that we can create random decimal numbers, but it's even more useful if we use it to generate a random whole number.</p>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript" rel="nofollow">http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">I believe there is a typo in the first paragraph of the tutorial:</p> <p dir="auto">"It's great that we can create random decimal numbers, but it's even more useful if we lot more useful to generate a random whole number."</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this</li> </ul>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.5</li> <li>Operating System version: win10</li> <li>Java version:1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">dubbo2.7.3升级2.7.5后之后<br> 发现 yml配置的dubbo.provider.version失效导致报空值指针错误</p>
0
<p dir="auto">Is there a way to get the equivalent of console.log functionality for the trace (e.g. page.log)? We have a few console.log but they obviously appear in the console and you can't determine when they occurred in relation to steps in the trace.</p>
<p dir="auto">When I use test.step I was expecting to see that step in the trace viewer actions list and not just in the source panel. This would be nice to see and be able to jump to a particular test location or at least have more context while diagnosing the test run. Especially if the contained step were indented below the step text.</p>
1
<p dir="auto">Currently, both <code class="notranslate">&lt;small&gt;</code> and <code class="notranslate">small</code> are set to a <code class="notranslate">font-size</code> of 85% <em>fixed</em>. The <code class="notranslate">@font-size-small</code> is <em>not</em> used to set it.</p> <p dir="auto">See <a href="https://github.com/twbs/bootstrap/blob/master/less/variables.less#L50"><code class="notranslate">~/less/variables.less</code> on L#50</a> for <code class="notranslate">@font-size-small</code>.</p> <p dir="auto">See <a href="https://github.com/twbs/bootstrap/blob/master/less/type.less#L80"><code class="notranslate">~/less/types.less</code> on L#80</a> for <code class="notranslate">small, .small</code> definitions.</p> <hr> <p dir="auto">Additional to that: <code class="notranslate">h1, h2, h3, .h1, .h2, .h3, h4, h5, h6, .h4, .h5, .h6</code> all have a <code class="notranslate">.small, small</code> setting as well: Are you sure that <code class="notranslate">65%</code> and <code class="notranslate">75%</code> is the correct assumption?</p>
<p dir="auto">Right now, the misc <code class="notranslate">.small</code> mixin in <code class="notranslate">type.less</code> is <a href="https://github.com/twbs/bootstrap/blob/10e9fef85c6afde2b3804df928d9351b0f110a6c/less/type.less#L80">hardwired to <code class="notranslate">85%</code></a>. That same 85% of base <a href="https://github.com/twbs/bootstrap/blob/10e9fef85c6afde2b3804df928d9351b0f110a6c/less/variables.less#L50">appears in <code class="notranslate">variables.less</code> as <code class="notranslate">@font-size-small</code></a>. Would it makes sense to have <code class="notranslate">.small</code> in <code class="notranslate">type.less</code> reference <code class="notranslate">@font-size-small</code> instead of having its own value?</p>
1
<p dir="auto">I was surprised (pleasantly so) to read that events bubble through portals and up the component tree rather than the DOM tree. Obviously this means I can detect clicks that occur within my component or child components without having to worry about whether they happen to be portal hosted.</p> <p dir="auto">However, another fairly common thing you may want to do is detect whether an event occurred <em>outside</em> of a component or child components. There are plenty of libraries out there that do this, but they all (AFAIK) use the DOM tree so don't have this same behaviour.</p> <p dir="auto">I was curious whether or not there is anything new, but unadvertised, in React 16 that can help with this part of the puzzle?</p>
<p dir="auto">React version: 17.0.2<br> Relay version: 12.0.0</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>Wrap a component with an ErrorBoundary class to manage errors. Something like this:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;ErrorBoundary FallbackComponent={ErrorFallback}&gt; &lt;Suspense fallback={ &lt;LoaderContainer&gt; &lt;LoaderIcon iconSize=&quot;xl&quot; /&gt; &lt;/LoaderContainer&gt; } &gt; &lt;DetailedStatusContainer /&gt; &lt;/Suspense&gt; &lt;/ErrorBoundary&gt;"><pre class="notranslate"><code class="notranslate"> &lt;ErrorBoundary FallbackComponent={ErrorFallback}&gt; &lt;Suspense fallback={ &lt;LoaderContainer&gt; &lt;LoaderIcon iconSize="xl" /&gt; &lt;/LoaderContainer&gt; } &gt; &lt;DetailedStatusContainer /&gt; &lt;/Suspense&gt; &lt;/ErrorBoundary&gt; </code></pre></div> <p dir="auto">On Detailed Status Container I have this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" const data = useLazyLoadQuery( RobotProductOverviewBySerialNumberQuery, serialNumber ); "><pre class="notranslate"><code class="notranslate"> const data = useLazyLoadQuery( RobotProductOverviewBySerialNumberQuery, serialNumber ); </code></pre></div> <ol start="2" dir="auto"> <li>If I sent an invalid value to the query, the ErrorBoundary will be executed because the query returns 500. That's expected, but check that the console has the following errors:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21174759/139734520-22ffb46a-9ea5-4c50-8daf-6ea8f5037781.png"><img src="https://user-images.githubusercontent.com/21174759/139734520-22ffb46a-9ea5-4c50-8daf-6ea8f5037781.png" alt="image" style="max-width: 100%;"></a></li> </ol> <p dir="auto">Is there a way to avoid the last two errors on the console?</p> <h2 dir="auto">The current behavior</h2> <p dir="auto">Console messages:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21174759/139734585-d9eca0cb-141d-4bf2-baf2-d2e24c9daa85.png"><img src="https://user-images.githubusercontent.com/21174759/139734585-d9eca0cb-141d-4bf2-baf2-d2e24c9daa85.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">Only shows 500 error message:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21174759/139734652-3c93b3b6-a777-4a00-90bb-d4dba4a3f23e.png"><img src="https://user-images.githubusercontent.com/21174759/139734652-3c93b3b6-a777-4a00-90bb-d4dba4a3f23e.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">So I was trying to workout why my parallel code was taking so long.<br> After-all I only sent the big datastructures once, though a closure as the function that was mapped over.<br> That should happen, once (I thought), since the function is constant<br> Not so</p> <p dir="auto">MWE:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="addprocs(5) immutable Foo bar::Char end #HACK: lets debug what is being serialised by overloading the calls function Base.serialize(s::Base.SerializationState, x::Foo) tic() Base.Serializer.serialize_any(s,x) tt=toq() open(&quot;ser_log.txt&quot;,&quot;a&quot;) do fp println(fp, tt) end end function test() st = Foo(rand('a':'z')) pmap(r-&gt;string(st.bar)^r, 1:100) #Base.pgenerate(default_worker_pool(), r-&gt;string(st.bar)^r, 1:100) |&gt; collect end"><pre class="notranslate"><code class="notranslate">addprocs(5) immutable Foo bar::Char end #HACK: lets debug what is being serialised by overloading the calls function Base.serialize(s::Base.SerializationState, x::Foo) tic() Base.Serializer.serialize_any(s,x) tt=toq() open("ser_log.txt","a") do fp println(fp, tt) end end function test() st = Foo(rand('a':'z')) pmap(r-&gt;string(st.bar)^r, 1:100) #Base.pgenerate(default_worker_pool(), r-&gt;string(st.bar)^r, 1:100) |&gt; collect end </code></pre></div> <p dir="auto">Then running the function and counting the lines in the log:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test() run(`wc -l ser_log.txt`) OUT&gt; 17"><pre class="notranslate"><code class="notranslate">test() run(`wc -l ser_log.txt`) OUT&gt; 17 </code></pre></div> <p dir="auto">So it was serialized 17 times for pmap.<br> If is switch to <code class="notranslate">pgenerate</code> is it 18 times (so about the same).<br> I believe that after the batchsplit step is done that is once serialisation of the closure, per batch that was sent.<br> It only need to be serialized once.</p> <p dir="auto">(in my nonMWE, it is happening millions of times, and takes 6 seconds a piece...)</p> <hr> <p dir="auto">I suspect this is already known, but I can't find an issue for it, so maybe not.</p> <p dir="auto">see also:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="91912504" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/11938" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/11938/hovercard" href="https://github.com/JuliaLang/julia/issues/11938">#11938</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="154380639" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/16322" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/16322/hovercard" href="https://github.com/JuliaLang/julia/issues/16322">#16322</a></li> </ul> <hr> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="versioninfo() Julia Version 0.5.0-dev+3928 Commit fdc4a85 (2016-05-06 04:46 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: AMD Opteron 63xx class CPU WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Piledriver) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.7.1 (ORCJIT, bdver2"><pre class="notranslate"><code class="notranslate">versioninfo() Julia Version 0.5.0-dev+3928 Commit fdc4a85 (2016-05-06 04:46 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: AMD Opteron 63xx class CPU WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Piledriver) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.7.1 (ORCJIT, bdver2 </code></pre></div>
<p dir="auto">[Originally posted on -dev by Fermat 618: https://groups.google.com/d/topic/julia-dev/MOt74gNrc9E/discussion]</p> <p dir="auto">When I assign a lambda to a function,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; f(x) = x + 2 julia&gt; f = (x) -&gt; x + 20 Warning: redefinition of constant f ignored. #&lt;function&gt; julia&gt; f(3) 5"><pre class="notranslate"><code class="notranslate">julia&gt; f(x) = x + 2 julia&gt; f = (x) -&gt; x + 20 Warning: redefinition of constant f ignored. #&lt;function&gt; julia&gt; f(3) 5 </code></pre></div> <p dir="auto">I find neither an Error is raised nor the assignment take effect.</p> <p dir="auto">It is very dangerous to ignore an error. A program that returns a wrong<br> answer is much more worse than a program that fails.</p> <p dir="auto">When I write something, I expected it to take effect. If it do not, I<br> expect an error. A warning is reasonable when someone write</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if (a = b) { xxx; }"><pre class="notranslate"><code class="notranslate"> if (a = b) { xxx; } </code></pre></div> <p dir="auto">in C. Even though <code class="notranslate">if (a == b)</code> is likely what one want, one can still<br> ignore the warning when he/she is sure <code class="notranslate">if (a = b)</code> is wanted. But this<br> is definitely not the case.</p> <p dir="auto">In my opinion, a well designed programming language should give as less<br> [warnings] as possible.</p>
0
<h2 dir="auto">📝 Provide a description of the new feature</h2> <p dir="auto"><em>What is the expected behavior of the proposed feature? What is the scenario this would be used?</em></p> <hr> <p dir="auto">I hope there's some configurable preference for setting priorities of results in PT run.<br> For example, I can set the priority of "launch an application" to high, so when I type, say "VSCode", in PT run while there's running instances of VSCode, the result of launching a new window of VSCode will be the first one, rather than switching to the exist VSCode window. Or conversely, set the priority of "switch to a window" to high to make switching to an exist VSCode window always shows at the first place, so I can use PT run as a perfect windows switcher as an instead of alt+tab.</p> <p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p>
<h1 dir="auto">History</h1> <p dir="auto">When first launched, it would be great if PowerToys Run could display a history of the last commands run (until keyboard input is made). This would help to replicate the old Run command's dropdown functionality which displays a history of commands.</p>
0
<p dir="auto">Because of PHP 7, <code class="notranslate">Symfony\Component\Console\Application::renderException()</code> should also accept <code class="notranslate">\Throwable</code> type.</p>
<p dir="auto">when a command throws a fatal error in PHP7, the exception produced is handled by global error handler, not application error handler.</p> <p dir="auto">thus the error message is properly handled, but the exit code is not.</p> <p dir="auto">such code for example (for tests or more) could lead to such behavior, under Symfony 2.8 / PHP 7<br> <code class="notranslate">$a = null; $a-&gt;getSmth();</code><br> under PHP 5.3 the above command execution would exit with non zero exit code.<br> under PHP7.* this would end up with exit code being zero, which is not good.</p> <p dir="auto">the problem is in the - Symfony/Component/Console/Application.php:124,<br> where only \Exception class is catched<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180367986" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/20111" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/20111/hovercard" href="https://github.com/symfony/symfony/pull/20111">#20111</a></p>
1
<p dir="auto">From <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://task.ms/21430356">MSFT:21430356</a></p> <p dir="auto">After CTRL+Scroll to zoom in and out a ton, the text gets garbled</p> <p dir="auto">I scrolled with CTRL+Scroll to make it really small and really big and went back and forth. Then, I can scroll up and get garbled text that only extends a few characters but are truncated rather than wrapping.</p>
<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.18932.1000] Windows Terminal version (if applicable): 0.2.1831.0 Any other software? VIM - Vi IMproved 8.1 (2018 May 18, compiled May 18 2018 18:26:56), 32bit Console version, [Korean]"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18932.1000] Windows Terminal version (if applicable): 0.2.1831.0 Any other software? VIM - Vi IMproved 8.1 (2018 May 18, compiled May 18 2018 18:26:56), 32bit Console version, [Korean] </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Start windows terminal with PowerShell 6.2.0 and runs Vim with <code class="notranslate">vim</code>.<br> <code class="notranslate">PATH</code> for vim was <code class="notranslate">C:\Program Files (x86)\Vim\vim81</code>.<br> Close tab with vim is running.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Tab must be closed. If the tab was only one, terminal must be terminated.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Entire terminal is crashed.</p>
0
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">I would love to be able to use Drizzle from SQLAlchemy... so it sort of needs a dialect. I'll start working on one...</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/1869/add_drizzle_dialect.patch">add_drizzle_dialect.patch</a></p>
<p dir="auto"><strong>Migrated issue, originally created by Chris Wilson (<a href="https://github.com/qris1">@qris1</a>)</strong></p> <p dir="auto">We have a complex system with mapped classes defined in many different files, used by different applications. Therefore we use derived-map polymorphic loading to load only those classes which are needed, sometimes when processing query results.</p> <p dir="auto">We have been running into problems with SQLAlchemy generating SQL that tries to violate database constraints, for example trying to insert the same row twice in a many-to-many association secondary table:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint &quot;cons_m2m_primary_key&quot; DETAIL: Key (id_foo, id_bar)=(182145, 29586) already exists. [SQL: 'INSERT INTO m2m (id_foo, id_bar) VALUES (%(id_foo)s, %(id_bar)s)'] [parameters: ({'id_foo': 182145, 'id_bar': 29586}, {'id_foo': 182145, 'id_bar': 29586})]"><pre class="notranslate"><code class="notranslate">IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "cons_m2m_primary_key" DETAIL: Key (id_foo, id_bar)=(182145, 29586) already exists. [SQL: 'INSERT INTO m2m (id_foo, id_bar) VALUES (%(id_foo)s, %(id_bar)s)'] [parameters: ({'id_foo': 182145, 'id_bar': 29586}, {'id_foo': 182145, 'id_bar': 29586})] </code></pre></div> <p dir="auto">We tracked this down to delayed initialisation of polymorphic classes and their subclasses resulting in duplicate event listeners being added for the backref relationship. This results in A.bs == [b], but B.as == [a, a]. Depending on the order in which the unitofwork flushes these out to the database, 50% of the time it will try to flush B.as first and generate SQL which violates the database constraints, as above.</p> <p dir="auto">Please consider the following abstract example, where the base class Animal is registered first, along with its relationship to Home, and then the polymorphic subclasses Mammal and Dog are loaded and configured in a separate step:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import Column, ForeignKey, Integer, Table, Text, create_engine, event from sqlalchemy.ext.declarative import declarative_base, declared_attr from sqlalchemy.orm import Mapper, configure_mappers, relationship, sessionmaker from sqlalchemy.orm.mapper import _mapper_registry # This event listener may be useful for debugging: if False: @event.listens_for(Mapper, 'mapper_configured') def receive_mapper_configured(mapper, class_): # assets_allowed = mapper._props.get('assets_allowed') homes = getattr(class_, 'homes', None) if homes is not None: dispatch = list(homes.dispatch.append) if len(dispatch) &gt; 2: print &quot;{} failed: {} ({})&quot;.format(class_, mapper, dispatch) assert len(dispatch) &lt;= 2, &quot;{}: {}&quot;.format(class_, dispatch) print &quot;{} configured: {} ({})&quot;.format(class_, mapper, repr(homes)) _mapper_registry.clear() Base = declarative_base() # Register these classes first, including the concrete polymorphic base class with the M2M association: class Home(Base): __tablename__ = 'home' id = Column(Integer, primary_key=True) name = Column(Text) class Animal(Base): __tablename__ = 'mammal' id = Column(Integer, primary_key=True) name = Column(Text) homes_table = Table(&quot;mammal_home&quot;, Base.metadata, Column('id_mammal', Integer, ForeignKey(id), primary_key=True), Column('id_home', Integer, ForeignKey(Home.id), primary_key=True) ) homes = relationship(Home, secondary=homes_table, backref='animals') species = Column(Text) @declared_attr def __mapper_args__(cls): return { 'polymorphic_on': cls.species, 'polymorphic_identity': cls.__name__, } # Register the first set of classes and create their Mappers configure_mappers() # Simulate dynamic loading of additional mapped classes class Mammal(Animal): pass class Dog(Mammal): pass # These new classes should not be configured at this point: unconfigured = [m for m in _mapper_registry if not m.configured] assert len(unconfigured) == 2, str(unconfigured) # Now register them in a separate pass. # # If we take the first branch, this test will fail randomly 50% of the time, depending on the order of # Mammal and Dog in _mapper_registry. The second branch manipulates the registry and calls configure_mappers() # twice to force the Mappers to register in the wrong order, causing the test to fail every time. if True: configure_mappers() else: old_mapper_registry = dict(_mapper_registry) del _mapper_registry[Mammal.__mapper__] Mapper._new_mappers = True configure_mappers() _mapper_registry[Mammal.__mapper__] = old_mapper_registry[Mammal.__mapper__] Mapper._new_mappers = True configure_mappers() # In this case, we know that we have hit the error: the event listeners are registered twice: assert len(Dog.homes.dispatch.append) == 4, list(Dog.homes.dispatch.append) assert len(Home.animals.dispatch.append) == 2, list(Home.animals.dispatch.append) assert len(Mammal.homes.dispatch.append) == 2, list(Mammal.homes.dispatch.append) # This assertion will fail 50% of the time if the first branch is taken, so I've commented it out, # and copied it under the second branch above where it should always &quot;succeed&quot; (indicating that the # event listeners are wrongly double-configured): # assert len(Dog.homes.dispatch.append) == 4, list(Dog.homes.dispatch.append) engine = create_engine('sqlite:///sqlalchemy_example.db') Base.metadata.create_all(engine) DBSession = sessionmaker(bind=engine) session = DBSession(autocommit=True) session.begin() home = Home(name=&quot;localhost&quot;) dog = Dog(name=&quot;fido&quot;, homes=[home]) assert len(dog.homes) == 1 assert len(home.animals) == 1, &quot;This fails: Dog is listed twice in home.animals: {}&quot;.format(home.animals) print &quot;Test passed: this will happen 50% of the time if the first branch is taken&quot;"><pre class="notranslate"><code class="notranslate">from sqlalchemy import Column, ForeignKey, Integer, Table, Text, create_engine, event from sqlalchemy.ext.declarative import declarative_base, declared_attr from sqlalchemy.orm import Mapper, configure_mappers, relationship, sessionmaker from sqlalchemy.orm.mapper import _mapper_registry # This event listener may be useful for debugging: if False: @event.listens_for(Mapper, 'mapper_configured') def receive_mapper_configured(mapper, class_): # assets_allowed = mapper._props.get('assets_allowed') homes = getattr(class_, 'homes', None) if homes is not None: dispatch = list(homes.dispatch.append) if len(dispatch) &gt; 2: print "{} failed: {} ({})".format(class_, mapper, dispatch) assert len(dispatch) &lt;= 2, "{}: {}".format(class_, dispatch) print "{} configured: {} ({})".format(class_, mapper, repr(homes)) _mapper_registry.clear() Base = declarative_base() # Register these classes first, including the concrete polymorphic base class with the M2M association: class Home(Base): __tablename__ = 'home' id = Column(Integer, primary_key=True) name = Column(Text) class Animal(Base): __tablename__ = 'mammal' id = Column(Integer, primary_key=True) name = Column(Text) homes_table = Table("mammal_home", Base.metadata, Column('id_mammal', Integer, ForeignKey(id), primary_key=True), Column('id_home', Integer, ForeignKey(Home.id), primary_key=True) ) homes = relationship(Home, secondary=homes_table, backref='animals') species = Column(Text) @declared_attr def __mapper_args__(cls): return { 'polymorphic_on': cls.species, 'polymorphic_identity': cls.__name__, } # Register the first set of classes and create their Mappers configure_mappers() # Simulate dynamic loading of additional mapped classes class Mammal(Animal): pass class Dog(Mammal): pass # These new classes should not be configured at this point: unconfigured = [m for m in _mapper_registry if not m.configured] assert len(unconfigured) == 2, str(unconfigured) # Now register them in a separate pass. # # If we take the first branch, this test will fail randomly 50% of the time, depending on the order of # Mammal and Dog in _mapper_registry. The second branch manipulates the registry and calls configure_mappers() # twice to force the Mappers to register in the wrong order, causing the test to fail every time. if True: configure_mappers() else: old_mapper_registry = dict(_mapper_registry) del _mapper_registry[Mammal.__mapper__] Mapper._new_mappers = True configure_mappers() _mapper_registry[Mammal.__mapper__] = old_mapper_registry[Mammal.__mapper__] Mapper._new_mappers = True configure_mappers() # In this case, we know that we have hit the error: the event listeners are registered twice: assert len(Dog.homes.dispatch.append) == 4, list(Dog.homes.dispatch.append) assert len(Home.animals.dispatch.append) == 2, list(Home.animals.dispatch.append) assert len(Mammal.homes.dispatch.append) == 2, list(Mammal.homes.dispatch.append) # This assertion will fail 50% of the time if the first branch is taken, so I've commented it out, # and copied it under the second branch above where it should always "succeed" (indicating that the # event listeners are wrongly double-configured): # assert len(Dog.homes.dispatch.append) == 4, list(Dog.homes.dispatch.append) engine = create_engine('sqlite:///sqlalchemy_example.db') Base.metadata.create_all(engine) DBSession = sessionmaker(bind=engine) session = DBSession(autocommit=True) session.begin() home = Home(name="localhost") dog = Dog(name="fido", homes=[home]) assert len(dog.homes) == 1 assert len(home.animals) == 1, "This fails: Dog is listed twice in home.animals: {}".format(home.animals) print "Test passed: this will happen 50% of the time if the first branch is taken" </code></pre></div> <p dir="auto">When <code class="notranslate">configure_mappers()</code> is called to configure the subclasses, it loops over the <code class="notranslate">_mapper_registry</code> in random order. Thus, it may configure <code class="notranslate">Dog</code> first and then <code class="notranslate">Mammal</code>, or vice versa.</p> <p dir="auto">When it configures <code class="notranslate">Dog</code> and <code class="notranslate">Mammal</code>, it will add two event listeners to their <code class="notranslate">homes.dispatch.append</code> list: <code class="notranslate">append</code> and <code class="notranslate">emit_backref_from_collection_append_event</code>. The latter adds the Dog/Mammal to the backref relationship, unconditionally (even if already present), so it must only be called once.</p> <p dir="auto">However, if it configures <code class="notranslate">Dog</code> first and <code class="notranslate">Mammal</code> second, then when it configures <code class="notranslate">Mammal</code> it loops over <code class="notranslate">mapper.self_and_descendants</code> (in <code class="notranslate">_register_attribute</code>) and thus registers the same event listeners on <code class="notranslate">Dog.homes.dispatch.append</code> again. So whenever a <code class="notranslate">Dog</code> is given some <code class="notranslate">homes</code>, it will be added <strong>twice</strong> to the <code class="notranslate">animals</code> collection on each of those <code class="notranslate">Homes</code>. This does not happen if <code class="notranslate">Mammal</code> is registered first and <code class="notranslate">Dog</code> second, because when post-configuring <code class="notranslate">Dog.homes</code>, <code class="notranslate">mapper.class_manager._attr_has_impl(self.key)</code> returns True and it is not initialised again.</p> <p dir="auto">I think the problem is related to the comment on <code class="notranslate">_post_configure_properties</code> which says "This is a deferred configuration step which is intended to execute once all mappers have been constructed." However this function is called whenever <code class="notranslate">configure_mappers()</code> finds unconfigured mappers, not only once. Possibly this changed at some point and violated some assumptions?</p> <p dir="auto">One fix would be to check <code class="notranslate">mapper.class_manager._attr_has_impl(key)</code> on each mapper when looping over <code class="notranslate">mapper.self_and_descendants</code>, to avoid registering it twice. However that might be a layering violation.</p> <p dir="auto">Another fix might be, when looping over mappers in <code class="notranslate">configure_mappers()</code> looking for unconfigured ones, to walk up the ancestor chain of each unconfigured mapper until we find the most ancient unconfigured one, and configure that first, followed by its children, and their children, and so on.</p>
0
<p dir="auto">Hi, I created an env with conda, installed TF, then installed PyTorch, then "pip install git+<a href="https://github.com/huggingface/transformers">https://github.com/huggingface/transformers</a>", but when I ran 'python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('I hate you'))"', it gave me the ImportError. How can I resolve this?</p>
<ul dir="auto"> <li><code class="notranslate">transformers</code> 4.2</li> <li>Platform: MacOS</li> <li>Python version: 3.7.9</li> <li>PyTorch version (GPU?): CPU</li> <li>Tensorflow version (GPU?): CPU</li> <li>Using GPU in script?: No</li> <li>Using distributed or parallel set-up in script?: No</li> <li>Pip Version: Latest</li> </ul> <p dir="auto">I can't import the pipeline function:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from transformers import pipeline"><pre class="notranslate"><code class="notranslate">from transformers import pipeline </code></pre></div> <p dir="auto">Gives the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; ImportError: cannot import name 'pipeline' from 'transformers' (unknown location)"><pre lang="Traceback" class="notranslate"><code class="notranslate">File "&lt;stdin&gt;", line 1, in &lt;module&gt; ImportError: cannot import name 'pipeline' from 'transformers' (unknown location) </code></pre></div>
1
<p dir="auto">The following code snippet:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np print(np.array(-2, dtype=np.float32).astype(np.uint8))"><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-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float32</span>).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">uint8</span>))</pre></div> <p dir="auto">returns different results on x86 and ARM:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ARM: &gt; 0 x86: &gt; 254"><pre class="notranslate"><span class="pl-v">ARM</span>: <span class="pl-c1">&gt;</span> <span class="pl-c1">0</span> <span class="pl-s1">x86</span>: <span class="pl-c1">&gt;</span> <span class="pl-c1">254</span></pre></div> <p dir="auto">The issue seems to be similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="606695936" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/16073" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/16073/hovercard" href="https://github.com/numpy/numpy/issues/16073">#16073</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7731398" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/2398" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/2398/hovercard" href="https://github.com/numpy/numpy/issues/2398">#2398</a>.<br> My guess is that <code class="notranslate">char</code> might be used internally, which "has an implementation-defined choice of “signed char” or “unsigned char” as its underlying type" (<a href="http://eel.is/c++draft/basic.types#basic.fundamental-7" rel="nofollow">source</a>, <a href="https://developer.arm.com/documentation/den0013/d/Porting/Miscellaneous-C-porting-issues/unsigned-char-and-signed-char" rel="nofollow">ARM reference</a>).</p> <p dir="auto">Using this assumption, I've rebuilt numpy using:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CFLAGS=&quot;-fsigned-char&quot; python setup.py develop -vvv"><pre class="notranslate"><code class="notranslate">CFLAGS="-fsigned-char" python setup.py develop -vvv </code></pre></div> <p dir="auto">but the behavior didn't change.</p> <p dir="auto">After discussing this issue with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/t-vi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/t-vi">@t-vi</a> I'm unsure, if this is expected (undefined) behavior or a bug, which could be fixed.</p> <p dir="auto">Numpy version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.22.0.dev0+1068.gdc7dafe70 3.8.10 | packaged by conda-forge | (default, May 11 2021, 06:25:29) [GCC 9.3.0]"><pre class="notranslate"><code class="notranslate">1.22.0.dev0+1068.gdc7dafe70 3.8.10 | packaged by conda-forge | (default, May 11 2021, 06:25:29) [GCC 9.3.0] </code></pre></div>
<p dir="auto">With <code class="notranslate">ndarray.astype(..., casting="unsafe")</code> float arrays with NaN/inf will be converted to <code class="notranslate">np.iinfo(dtype).min/max</code>,</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.array([1, np.nan], dtype=np.float32).astype(np.int32) array([ 1, -2147483648], dtype=int32) &gt;&gt;&gt; np.array([1, np.inf], dtype=np.float32).astype(np.int32) array([ 1, -2147483648], dtype=int32)"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float32</span>).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">int32</span>) <span class="pl-en">array</span>([ <span class="pl-c1">1</span>, <span class="pl-c1">-</span><span class="pl-c1">2147483648</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">int32</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>, <span class="pl-s1">np</span>.<span class="pl-s1">inf</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float32</span>).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">int32</span>) <span class="pl-en">array</span>([ <span class="pl-c1">1</span>, <span class="pl-c1">-</span><span class="pl-c1">2147483648</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">int32</span>)</pre></div> <p dir="auto">(there are also some inconsistencies there cf <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="97160346" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/6109" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/6109/hovercard" href="https://github.com/numpy/numpy/issues/6109">#6109</a>). This is very bad in practical applications as output data will be wrong by orders of magnitude. Other <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.astype.html" rel="nofollow"><code class="notranslate">casting</code> options</a> simply disallow casting float to int.</p> <p dir="auto">At the same time, casting from <code class="notranslate">dtype=np.object</code> works as expected,</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.array([1, np.inf], dtype=np.object).astype(np.int32) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; OverflowError: cannot convert float infinity to integer"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>, <span class="pl-s1">np</span>.<span class="pl-s1">inf</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">object</span>).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">int32</span>) <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"&lt;stdin&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-v">OverflowError</span>: <span class="pl-s1">cannot</span> <span class="pl-s1">convert</span> <span class="pl-s1">float</span> <span class="pl-s1">infinity</span> <span class="pl-s1">to</span> <span class="pl-s1">integer</span></pre></div> <p dir="auto">It could be useful to have some additional <code class="notranslate">casting</code> option allowing to convert int to float, but would error on NaN or inf. This could be done manually,</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if array.dtype.kind == 'f' and np.dtype(dtype).kind == 'i': # check for overflows and NaN _assert_all_finite(array) result = array.astype(dtype)"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-s1">array</span>.<span class="pl-s1">dtype</span>.<span class="pl-s1">kind</span> <span class="pl-c1">==</span> <span class="pl-s">'f'</span> <span class="pl-c1">and</span> <span class="pl-s1">np</span>.<span class="pl-en">dtype</span>(<span class="pl-s1">dtype</span>).<span class="pl-s1">kind</span> <span class="pl-c1">==</span> <span class="pl-s">'i'</span>: <span class="pl-c"># check for overflows and NaN</span> <span class="pl-en">_assert_all_finite</span>(<span class="pl-s1">array</span>) <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">array</span>.<span class="pl-en">astype</span>(<span class="pl-s1">dtype</span>)</pre></div> <p dir="auto">but having it in numpy would be useful.</p> <p dir="auto">I also wonder if there is really a case when not raising on such conversions is meaningful (even with <code class="notranslate">casting='unsafe'</code>). For instance pandas does this conversions as expected (using numpy dtypes),</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pd.Series([1, np.nan], dtype=np.float64).astype(np.int) [...] ValueError: Cannot convert non-finite values (NA or inf) to integer"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float64</span>).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">int</span>) [...] <span class="pl-v">ValueError</span>: <span class="pl-v">Cannot</span> <span class="pl-s1">convert</span> <span class="pl-s1">non</span><span class="pl-c1">-</span><span class="pl-s1">finite</span> <span class="pl-en">values</span> (<span class="pl-v">NA</span> <span class="pl-c1">or</span> <span class="pl-s1">inf</span>) <span class="pl-s1">to</span> <span class="pl-s1">integer</span></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import sys, numpy; print(numpy.__version__, sys.version) 1.16.4 3.7.3 (default, Mar 27 2019, 22:11:17) [GCC 7.3.0]"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import sys, numpy; print(numpy.__version__, sys.version) 1.16.4 3.7.3 (default, Mar 27 2019, 22:11:17) [GCC 7.3.0] </code></pre></div>
1
<p dir="auto">After closing a modal once, when I open it again and try to close (using the "Close" buton or "X" button) nothing happens.</p> <p dir="auto">I found that it has to do with commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/a4f0e8d37ab109c3f4476877854d4aea149fb1f2/hovercard" href="https://github.com/twbs/bootstrap/commit/a4f0e8d37ab109c3f4476877854d4aea149fb1f2"><tt>a4f0e8d</tt></a> (I reverted it and it works fine).</p> <p dir="auto">BS 3 RC2 tested with Chrome 28.</p>
<p dir="auto">Hi,</p> <p dir="auto">The code used on last Thursday worked fine. But after updated to latest code on Monday (GMT+8), the modal dialog when clicks to dismiss for seconds onward cannot be close.</p> <p dir="auto">I am checking on source code line 932, if I commented out this line then it is working again.</p> <p dir="auto">this.$element<br> .removeClass('in')<br> .attr('aria-hidden', true)<br> //.off('click.dismiss.modal')</p> <p dir="auto">Am I missing anything...?</p> <p dir="auto">Sorry for the grammar. Thanks.</p>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1080" rel="nofollow">http://projects.scipy.org/scipy/ticket/1080</a> on 2009-12-29 by trac user mshafiei, assigned to unknown.</em></p> <p dir="auto">the new version of scipy i.e. 0.7.1 and 0.7.0 des not include the "signal" subpackage. I need to inform my operating system is windows and I downloaded the .exe file for python 2.5. I installed older version 0.6 for using the signal processing subpackage of scipy. Please add these subpackage to new version as well.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1079" rel="nofollow">http://projects.scipy.org/scipy/ticket/1079</a> on 2009-12-29 by trac user mshafiei, assigned to unknown.</em></p> <p dir="auto">I installed new version of the scipy () for windows using exe file for python 2.5 and the subpackage "signal" does not exist. Since I needed some signal processing , I start to download the 0.7.0 version and I found that version have signal in its functions</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>Windows build number: [Windows 10 - 2004]</li> <li>PowerToys version: 0.20.0</li> </ul> <p dir="auto">Please open new issue in: <a href="https://github.com/microsoft/PowerToys/issues">https://github.com/microsoft/PowerToys/issues</a></p> <ol dir="auto"> <li>upload log file: C:\Users\cagla\AppData\Local\Microsoft\PowerToys\PowerToys Run\Logs\1.0.0\2020-08-03.txt</li> <li>copy below exception message</li> </ol> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/03/2020 13:23:52<br> Exception:<br> System.NullReferenceException: Object reference not set to an instance of an object.<br> at PowerLauncher.ViewModel.MainViewModel.Dispose(Boolean disposing)<br> at PowerLauncher.ViewModel.MainViewModel.Dispose()<br> at PowerLauncher.App.&lt;&gt;c__DisplayClass22_0.b__0()<br> at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)<br> at PowerLauncher.App.Dispose(Boolean disposing)<br> at PowerLauncher.App.Dispose()<br> at PowerLauncher.App.b__17_2(Object s, SessionEndingCancelEventArgs e)<br> at System.Windows.Application.OnSessionEnding(SessionEndingCancelEventArgs e)<br> at System.Windows.Application.WmQueryEndSession(IntPtr lParam, IntPtr&amp; refInt)<br> at System.Windows.Application.AppFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)<br> at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)<br> at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">import_tasks</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.1.0 config file = /mnt/c/Users/sumitkumar/Desktop/DGX-Upgrade/Ansible/git/ansible/ansible.cfg configured module search path = [u'/home/sumit/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /mnt/c/Users/sumitkumar/Desktop/DGX-Upgrade/Ansible/venv/local/lib/python2.7/site-packages/ansible executable location = /mnt/c/Users/sumitkumar/Desktop/DGX-Upgrade/Ansible/venv/bin/ansible python version = 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4]"><pre class="notranslate"><code class="notranslate">ansible 2.4.1.0 config file = /mnt/c/Users/sumitkumar/Desktop/DGX-Upgrade/Ansible/git/ansible/ansible.cfg configured module search path = [u'/home/sumit/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /mnt/c/Users/sumitkumar/Desktop/DGX-Upgrade/Ansible/venv/local/lib/python2.7/site-packages/ansible executable location = /mnt/c/Users/sumitkumar/Desktop/DGX-Upgrade/Ansible/venv/bin/ansible python version = 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">HOST_KEY_CHECKING(/foo/project/ansible.cfg) = False</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">The following documentation states that I can pass a variable to an imported or included task like <code class="notranslate">- import_tasks: wordpress.yml wp_user=timmy</code>. However, it only works for <code class="notranslate">include_tasks</code> and not when I use <code class="notranslate">import_tasks</code>. When using <code class="notranslate">import_tasks</code> in the aforementioned way, I get an exception that the passed variable is undefined - as can also be seen in the error section below.</p> <p dir="auto">Like I said, the same code works if I swap <code class="notranslate">import_tasks</code> with <code class="notranslate">include_tasks</code></p> <p dir="auto">Here's the document I'm referring to: <a href="https://docs.ansible.com/ansible/2.4/playbooks_reuse_includes.html#including-and-importing-task-files" rel="nofollow">https://docs.ansible.com/ansible/2.4/playbooks_reuse_includes.html#including-and-importing-task-files</a></p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <ol dir="auto"> <li>Have a playbook under tasks/abc.yml that relies on a variable that's not defined in vars, like:</li> </ol> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: echo shell: &quot;echo {{ my_special_var }}"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">echo</span> <span class="pl-ent">shell</span>: <span class="pl-s"><span class="pl-pds">"</span>echo {{ my_special_var }}</span></pre></div> <ol start="2" dir="auto"> <li>In your master playbook.yml, call the first task by adding this line:<br> <code class="notranslate">import_tasks: tasks/abc.yml my_special_var=Hello</code></li> </ol> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">The task is imported and the variable from the master playbook gets passed.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto"><code class="notranslate">...exception type: &lt;class 'ansible.errors.AnsibleUndefinedVariable'&gt;\nexception: 'my_special_var' is undefined</code></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>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">1.8.2</p> <h5 dir="auto">Environment:</h5> <p dir="auto">OSX 10.8.5</p> <h5 dir="auto">Summary:</h5> <p dir="auto">Fact gathering fails when cloud module deletes server and roles play is called with a when conditional.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Assuming utilization of a cloud module such as 'rax', you can set the count to 0 to remove the servers and then call out to roles, as such:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Build an exact count of cloud servers with incremented names hosts: local gather_facts: False tasks: - name: Server build requests local_action: module: rax credentials: ~/.raxpub name: test%03d.example.org flavor: performance1-1 image: ubuntu-1204-lts-precise-pangolin state: present count: 0 exact_count: yes group: webservers wait: yes register: rax - name: Setup nginx user: root hosts: webservers vars: operation: &quot;{{ wsoperation }}&quot; roles: - { role: nginx, when: operation == 'create' }"><pre class="notranslate"><code class="notranslate">- name: Build an exact count of cloud servers with incremented names hosts: local gather_facts: False tasks: - name: Server build requests local_action: module: rax credentials: ~/.raxpub name: test%03d.example.org flavor: performance1-1 image: ubuntu-1204-lts-precise-pangolin state: present count: 0 exact_count: yes group: webservers wait: yes register: rax - name: Setup nginx user: root hosts: webservers vars: operation: "{{ wsoperation }}" roles: - { role: nginx, when: operation == 'create' } </code></pre></div> <h5 dir="auto">Expected Results:</h5> <p dir="auto">It would expected that the when clause should trigger prior/during the gather facts call thus adhering to the conditional and passing tests.</p> <p dir="auto">I call this a bug because I assume no operations should happen for a play unless the conditional is met, this includes fact gathering.</p> <p dir="auto">Besides having a separate playbook with duplicated server logic, which defeats the purpose of this modules benefits, I do not see a proper work around.</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">Gather facts is triggered before the when operation is analyzed causing failure.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [webser-backend01] =&gt; SSH encountered an unknown error during the connection"><pre class="notranslate"><code class="notranslate">fatal: [webser-backend01] =&gt; SSH encountered an unknown error during the connection </code></pre></div>
0
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aayushkapoor206/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aayushkapoor206">@aayushkapoor206</a> on April 7, 2016 19:33</em></p> <ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Before<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13454335/14364253/a53ee48c-fd25-11e5-856a-c556e400f1f0.png"><img src="https://cloud.githubusercontent.com/assets/13454335/14364253/a53ee48c-fd25-11e5-856a-c556e400f1f0.png" alt="before" style="max-width: 100%;"></a></li> <li>After<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13454335/14364269/adbddb7c-fd25-11e5-8acd-2478c9ee2dfe.png"><img src="https://cloud.githubusercontent.com/assets/13454335/14364269/adbddb7c-fd25-11e5-8acd-2478c9ee2dfe.png" alt="after" style="max-width: 100%;"></a></li> </ol> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="146721554" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/5086" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/5086/hovercard" href="https://github.com/microsoft/vscode/issues/5086">microsoft/vscode#5086</a></em></p>
<p dir="auto">In VS Code (as it uses the built in formatter, I assume this is the best place to put the issue), the TS formatting produces this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo() .then&lt;void&gt;( function(): void { }, function(): void { } ) .then&lt;void&gt;( function(): void { }, function(): void { } );"><pre class="notranslate"><code class="notranslate">foo() .then&lt;void&gt;( function(): void { }, function(): void { } ) .then&lt;void&gt;( function(): void { }, function(): void { } ); </code></pre></div> <p dir="auto">I would expect this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo() .then&lt;void&gt;( function(): void { }, function(): void { } ) .then&lt;void&gt;( function(): void { }, function(): void { } );"><pre class="notranslate"><code class="notranslate">foo() .then&lt;void&gt;( function(): void { }, function(): void { } ) .then&lt;void&gt;( function(): void { }, function(): void { } ); </code></pre></div> <p dir="auto">The former is pretty hard to read.</p>
1
<p dir="auto">Right now while using decorators the javascript seems to work, but the types are too strict.</p> <p dir="auto">As you can see <a href="http://www.typescriptlang.org/Playground#src=declare%20var%20_%3A%20any%3B%0Aexport%20function%20Throttle%28milli%3A%20number%29%20%7B%0A%09interface%20Throttled%20extends%20Function%20%7B%0A%09%09%09now%3A%20Function%0A%09%7D%0A%09return%20function%3CT%20extends%20Throttled%3E%28target%3A%20Object%2C%20propertyKey%3A%20string%2C%20descriptor%3A%20TypedPropertyDescriptor%3CFunction%3E%29%3A%20TypedPropertyDescriptor%3CT%3E%20%7B%0A%09%09%09let%20originalMethod%20%3D%20descriptor.value%3B%0A%09%09%09%2F%2F%20NOTE%3A%20Do%20not%20use%20arrow%20syntax%20here.%20Use%20a%20function%20expression%20in%0A%09%09%09%2F%2F%20order%20to%20use%20the%20correct%20value%20of%20%60this%60%20in%20this%20method%0A%09%09%09descriptor.value%20%3D%20%3Cany%3E_.throttle%28function%28%29%20%7B%0A%09%09%09%09originalMethod.apply%28this%2C%20arguments%29%3B%0A%09%09%09%7D%2C%20milli%29%3B%0A%09%09%09%28%3CThrottled%3Edescriptor.value%29.now%20%3D%20%3Cany%3Efunction%28%29%20%7B%0A%09%09%09%09originalMethod.apply%28this%2C%20arguments%29%3B%0A%09%09%09%7D%3B%0A%09%09%09return%20%3CTypedPropertyDescriptor%3CT%3E%3Edescriptor%3B%0A%09%09%7D%0A%7D%0A%09%0A%0A%0A%09class%20Ctrl%20%7B%0A%0A%09%09constructor%28scope%3A%20any%29%20%7B%20%0A%09%09%20%20%20%20scope.%24watch%28%22foo%22%2C%20this.throttledByClassWatch%29%3B%0A%09%09%09this.throttledByClassWatch.now%28%29%20%2F%2Funrecommended%20now%20call%0A%09%09%7D%0A%09%09%40Throttle%28100000%29%0A%09%09private%20throttledByClassWatch%28%29%20%7B%0A%09%09%7D%0A%09%7D%0A" rel="nofollow">here</a> the following does not compile:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" declare var _: any; export function Throttle(milli: number) { interface Throttled extends Function { now: Function } return function&lt;T extends Throttled&gt;(target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor&lt;Function&gt;): TypedPropertyDescriptor&lt;T&gt; { let originalMethod = descriptor.value; // NOTE: Do not use arrow syntax here. Use a function expression in // order to use the correct value of `this` in this method descriptor.value = &lt;any&gt;_.throttle(function() { originalMethod.apply(this, arguments); }, milli); (&lt;Throttled&gt;descriptor.value).now = &lt;any&gt;function() { originalMethod.apply(this, arguments); }; return &lt;TypedPropertyDescriptor&lt;T&gt;&gt;descriptor; } } class Ctrl { constructor(scope: any) { scope.$watch(&quot;foo&quot;, this.throttledByClassWatch); this.throttledByClassWatch.now() //unrecommended now call } @Throttle(100000) private throttledByClassWatch() { } } "><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-s1">_</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-smi">Throttle</span><span class="pl-kos">(</span><span class="pl-s1">milli</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">interface</span> <span class="pl-smi">Throttled</span> <span class="pl-k">extends</span> <span class="pl-smi">Function</span> <span class="pl-kos">{</span> <span class="pl-c1">now</span>: <span class="pl-smi">Function</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-k">function</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">Throttled</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">Object</span><span class="pl-kos">,</span> <span class="pl-s1">propertyKey</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">descriptor</span>: <span class="pl-smi">TypedPropertyDescriptor</span><span class="pl-kos">&lt;</span><span class="pl-smi">Function</span><span class="pl-kos">&gt;</span><span class="pl-kos">)</span>: <span class="pl-smi">TypedPropertyDescriptor</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">originalMethod</span> <span class="pl-c1">=</span> <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">;</span> <span class="pl-c">// NOTE: Do not use arrow syntax here. Use a function expression in</span> <span class="pl-c">// order to use the correct value of `this` in this method</span> <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">=</span> <span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-s1">_</span><span class="pl-kos">.</span><span class="pl-en">throttle</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">originalMethod</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">milli</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-kos">&lt;</span><span class="pl-smi">Throttled</span><span class="pl-kos">&gt;</span><span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">now</span> <span class="pl-c1">=</span> <span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">originalMethod</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">&lt;</span><span class="pl-smi">TypedPropertyDescriptor</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-s1">descriptor</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Ctrl</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">scope</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">scope</span><span class="pl-kos">.</span><span class="pl-en">$watch</span><span class="pl-kos">(</span><span class="pl-s">"foo"</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">throttledByClassWatch</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">throttledByClassWatch</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-c">//unrecommended now call</span> <span class="pl-kos">}</span> @<span class="pl-smi">Throttle</span><span class="pl-kos">(</span><span class="pl-c1">100000</span><span class="pl-kos">)</span> <span class="pl-k">private</span> <span class="pl-en">throttledByClassWatch</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I might have the types a little wrong but I have tried many other permutations. It seems to be because the expected type is <code class="notranslate">declare type MethodDecorator = &lt;T&gt;(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor&lt;T&gt;) =&gt; TypedPropertyDescriptor&lt;T&gt; | void;</code> and so the input T must match the output T.</p> <p dir="auto">Ideally the <code class="notranslate">now</code> could also inherit the generic type <code class="notranslate">T</code> so it could be type checked.</p>
<p dir="auto">If we can get this to type check properly, we would have perfect support for boilerplate-free mixins:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare function Blah&lt;T&gt;(target: T): T &amp; {foo: number} @Blah class Foo { bar() { return this.foo; // Property 'foo' does not exist on type 'Foo' } } new Foo().foo; // Property 'foo' does not exist on type 'Foo'"><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">function</span> <span class="pl-smi">Blah</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span> <span class="pl-c1">&amp;</span> <span class="pl-kos">{</span><span class="pl-c1">foo</span>: <span class="pl-smi">number</span><span class="pl-kos">}</span> @<span class="pl-smi">Blah</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">foo</span><span class="pl-kos">;</span> <span class="pl-c">// Property 'foo' does not exist on type 'Foo'</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">new</span> <span class="pl-smi">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">foo</span><span class="pl-kos">;</span> <span class="pl-c">// Property 'foo' does not exist on type 'Foo'</span></pre></div>
1
<p dir="auto">I desire to visualize a mesh + its wireframe. The mesh is open and therefore some back faces are visible.</p> <p dir="auto">Using a solid color for the wireframe gives uneven contrast between the shaded triangles and the unshaded edges:</p> <p dir="auto"><a href="http://jsfiddle.net/4nf8y3z1/1/" rel="nofollow">http://jsfiddle.net/4nf8y3z1/1/</a></p> <p dir="auto">Using <code class="notranslate">lights: true</code> on the LineBasicMaterial seems not to work:</p> <p dir="auto"><a href="http://jsfiddle.net/4nf8y3z1/2/" rel="nofollow">http://jsfiddle.net/4nf8y3z1/2/</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot set property 'value' of undefined three.js:22031 Uncaught TypeError: Cannot set property 'needsUpdate' of undefined three.js:22031 Uncaught TypeError: Cannot set property 'needsUpdate' of undefined"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot set property 'value' of undefined three.js:22031 Uncaught TypeError: Cannot set property 'needsUpdate' of undefined three.js:22031 Uncaught TypeError: Cannot set property 'needsUpdate' of undefined </code></pre></div> <p dir="auto">As a workaround, I'm using a MeshPhongMaterial and a Mesh for the wireframe too, using the same geometry, and passing <code class="notranslate">wireframe: true</code>. This works great for the front-faces, but not for the back faces:</p> <p dir="auto"><a href="http://jsfiddle.net/4nf8y3z1/3/" rel="nofollow">http://jsfiddle.net/4nf8y3z1/3/</a></p> <p dir="auto">Therefore, I played a bit with the GLSL shaders to change the illumination models such that instead of saturating dotNL, it takes the absolute value, so that back faces are shaded exactly as if they were front-facing:</p> <p dir="auto"><a href="http://jsfiddle.net/4nf8y3z1/4/" rel="nofollow">http://jsfiddle.net/4nf8y3z1/4/</a></p> <p dir="auto">(this last jsfiddle is the same as the previous, except that it includes <a href="http://dalboris.com/threejs_wireframe_fix/three_fix.js" rel="nofollow">three_fix.js</a> instead of three.min.js)</p> <p dir="auto">I just wanted to share this with you, and let you decide whether you want to integrate these changes, possibly with more thought (is changing saturate -&gt; abs always ok, or could it break other thing? is the additional cost of the abs() ok? maybe this should be a parameter of the material? etc.).</p> <p dir="auto">For now, I just directly modified the build file three.js to get what I wanted, I don't have much more time for further investigation. :)</p> <p dir="auto">Great library by the way, I've started using it two days ago and I love it!</p>
<p dir="auto">Know of anything like that? Trying to learn more about the history, approach, goals, etc.<br> Thanks!</p>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.0.0</li> <li>Operating System / Platform =&gt; Windows7</li> <li>Compiler =&gt; VS</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">In <code class="notranslate">haarfeatures.cpp</code> in OpenCV I see the following implementation for V &amp; J Haar features:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" void CvHaarEvaluator::generateFeatures() { int mode = ((const CvHaarFeatureParams*)((CvFeatureParams*)featureParams))-&gt;mode; int offset = winSize.width + 1; for( int x = 0; x &lt; winSize.width; x++ ) { for( int y = 0; y &lt; winSize.height; y++ ) { for( int dx = 1; dx &lt;= winSize.width; dx++ ) { for( int dy = 1; dy &lt;= winSize.height; dy++ ) { // haar_x2 if ( (x+dx*2 &lt;= winSize.width) &amp;&amp; (y+dy &lt;= winSize.height) ) { features.push_back( Feature( offset, false, x, y, dx*2, dy, -1, x+dx, y, dx , dy, +2 ) ); } // haar_y2 if ( (x+dx &lt;= winSize.width) &amp;&amp; (y+dy*2 &lt;= winSize.height) ) { features.push_back( Feature( offset, false, x, y, dx, dy*2, -1, x, y+dy, dx, dy, +2 ) ); } // haar_x3 if ( (x+dx*3 &lt;= winSize.width) &amp;&amp; (y+dy &lt;= winSize.height) ) { features.push_back( Feature( offset, false, x, y, dx*3, dy, -1, x+dx, y, dx , dy, +3 ) ); } // haar_y3 if ( (x+dx &lt;= winSize.width) &amp;&amp; (y+dy*3 &lt;= winSize.height) ) { features.push_back( Feature( offset, false, x, y, dx, dy*3, -1, x, y+dy, dx, dy, +3 ) ); } // x2_y2 if ( (x+dx*2 &lt;= winSize.width) &amp;&amp; (y+dy*2 &lt;= winSize.height) ) { features.push_back( Feature( offset, false, x, y, dx*2, dy*2, -1, x, y, dx, dy, +2, x+dx, y+dy, dx, dy, +2 ) ); } } } } } numFeatures = (int)features.size(); } "><pre class="notranslate"><code class="notranslate"> void CvHaarEvaluator::generateFeatures() { int mode = ((const CvHaarFeatureParams*)((CvFeatureParams*)featureParams))-&gt;mode; int offset = winSize.width + 1; for( int x = 0; x &lt; winSize.width; x++ ) { for( int y = 0; y &lt; winSize.height; y++ ) { for( int dx = 1; dx &lt;= winSize.width; dx++ ) { for( int dy = 1; dy &lt;= winSize.height; dy++ ) { // haar_x2 if ( (x+dx*2 &lt;= winSize.width) &amp;&amp; (y+dy &lt;= winSize.height) ) { features.push_back( Feature( offset, false, x, y, dx*2, dy, -1, x+dx, y, dx , dy, +2 ) ); } // haar_y2 if ( (x+dx &lt;= winSize.width) &amp;&amp; (y+dy*2 &lt;= winSize.height) ) { features.push_back( Feature( offset, false, x, y, dx, dy*2, -1, x, y+dy, dx, dy, +2 ) ); } // haar_x3 if ( (x+dx*3 &lt;= winSize.width) &amp;&amp; (y+dy &lt;= winSize.height) ) { features.push_back( Feature( offset, false, x, y, dx*3, dy, -1, x+dx, y, dx , dy, +3 ) ); } // haar_y3 if ( (x+dx &lt;= winSize.width) &amp;&amp; (y+dy*3 &lt;= winSize.height) ) { features.push_back( Feature( offset, false, x, y, dx, dy*3, -1, x, y+dy, dx, dy, +3 ) ); } // x2_y2 if ( (x+dx*2 &lt;= winSize.width) &amp;&amp; (y+dy*2 &lt;= winSize.height) ) { features.push_back( Feature( offset, false, x, y, dx*2, dy*2, -1, x, y, dx, dy, +2, x+dx, y+dy, dx, dy, +2 ) ); } } } } } numFeatures = (int)features.size(); } </code></pre></div> <p dir="auto">Where each feature is represented by two (haar_x2, haar_y2, haar_x3, haar_y3) or three (x2_y2) rectangles and <strong>corresponding weights</strong> in order to compute the feature from the integral image.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="inline float CvHaarEvaluator::Feature::calc( const cv::Mat &amp;_sum, const cv::Mat &amp;_tilted, size_t y) const { const int* img = tilted ? _tilted.ptr&lt;int&gt;((int)y) : _sum.ptr&lt;int&gt;((int)y); float ret = rect[0].weight * (img[fastRect[0].p0] - img[fastRect[0].p1] - img[fastRect[0].p2] + img[fastRect[0].p3] ) + rect[1].weight * (img[fastRect[1].p0] - img[fastRect[1].p1] - img[fastRect[1].p2] + img[fastRect[1].p3] ); if( rect[2].weight != 0.0f ) ret += rect[2].weight * (img[fastRect[2].p0] - img[fastRect[2].p1] - img[fastRect[2].p2] + img[fastRect[2].p3] ); return ret; }"><pre class="notranslate"><code class="notranslate">inline float CvHaarEvaluator::Feature::calc( const cv::Mat &amp;_sum, const cv::Mat &amp;_tilted, size_t y) const { const int* img = tilted ? _tilted.ptr&lt;int&gt;((int)y) : _sum.ptr&lt;int&gt;((int)y); float ret = rect[0].weight * (img[fastRect[0].p0] - img[fastRect[0].p1] - img[fastRect[0].p2] + img[fastRect[0].p3] ) + rect[1].weight * (img[fastRect[1].p0] - img[fastRect[1].p1] - img[fastRect[1].p2] + img[fastRect[1].p3] ); if( rect[2].weight != 0.0f ) ret += rect[2].weight * (img[fastRect[2].p0] - img[fastRect[2].p1] - img[fastRect[2].p2] + img[fastRect[2].p3] ); return ret; } </code></pre></div> <p dir="auto">For haar_x2 the configuration is:</p> <p dir="auto"><a href="https://i.stack.imgur.com/uS6WH.png" rel="nofollow"><img src="https://camo.githubusercontent.com/18ba84726d5c264f90bf84d9cfcef257c697025614a113887e45b31faa5fef17/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f75533657482e706e67" alt="enter image description here" data-canonical-src="https://i.stack.imgur.com/uS6WH.png" style="max-width: 100%;"></a></p> <p dir="auto">so the first rectangle <code class="notranslate">(x, y, dx*2, dy)</code> represents the sum A+B (with weight -1)<br> and the second rectangle <code class="notranslate">(x+dx, y, dx, dy)</code> represents just B (with weight +2)<br> summing up with weights gives -(A + B) + 2 * B = B - A as it should. the same holds for haar_y2</p> <p dir="auto">for x2_y2 the configuration is:</p> <p dir="auto"><a href="https://i.stack.imgur.com/zWzKo.png" rel="nofollow"><img src="https://camo.githubusercontent.com/6ba309f087983faec533564c207fd37c575528b8202d21cf968e087276a07cc4/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f7a577a4b6f2e706e67" alt="enter image description here" data-canonical-src="https://i.stack.imgur.com/zWzKo.png" style="max-width: 100%;"></a></p> <p dir="auto">Here the first rectangle <code class="notranslate">(x, y, dx*2, dy*2)</code> represents (A + B + C + D),<br> the second rectangle <code class="notranslate">(x, y, dx, dy)</code> represents A<br> and the third rectangle <code class="notranslate">(x+dx, y+dy, dx, dy)</code> represents D<br> so with weights we get -(A + B + C + D) + 2 * A + 2 * D = A + D - (B + C)<br> as we should.</p> <p dir="auto"><strong>But</strong> for haar_x3 (and y3) the configuration is:</p> <p dir="auto"><a href="https://i.stack.imgur.com/2fyGl.png" rel="nofollow"><img src="https://camo.githubusercontent.com/8d9d2f203079e424c1bf05b14ce9d400425ebaa89472341ff3b65cc9ab17472b/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f326679476c2e706e67" alt="enter image description here" data-canonical-src="https://i.stack.imgur.com/2fyGl.png" style="max-width: 100%;"></a></p> <p dir="auto">so the first rectangle <code class="notranslate">(x, y, dx*3, dy)</code> represents (A + B + C)<br> and the second rectangle <code class="notranslate">(x+dx, y, dx, dy)</code> represents B.</p> <p dir="auto">Now, with weights we get -(A + B + C) + <strong>3*B</strong> = 2 * B - (A + C)<br> while the V &amp; J paper states that</p> <blockquote> <p dir="auto">"A three rectangle feature computes the sum within two outside<br> rectangles substracted from the sum in the center rectangle"</p> </blockquote> <p dir="auto"><a href="https://i.stack.imgur.com/Hffw5.png" rel="nofollow"><img src="https://camo.githubusercontent.com/efa665a761f5f9e528568181c1f5d08b2495654ceaeb50f017c5978ac60f8432/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f48666677352e706e67" alt="enter image description here" data-canonical-src="https://i.stack.imgur.com/Hffw5.png" style="max-width: 100%;"></a></p> <p dir="auto"><strong>I read this as B - (A + C) and not 2 * B - (A + C)!.</strong></p> <p dir="auto">Am I missing something here? or is this a bug? can anyone confirm this?</p> <h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Can anyone suggest how to create pbtxt file for architecture other than ssd, mask -rcnn and faster-rcnn.</p> <h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> <li>Operating System / Platform =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> <li>Compiler =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> </ul> <h5 dir="auto">Detailed description</h5> <h5 dir="auto">Steps to reproduce</h5>
0
<p dir="auto">Hi,</p> <p dir="auto">I am new to electron. I tried to build my own Internet browser with several tabs using electron. Each tab contains a webview element. I have put src value to each webview element but I found when I launch the browser only the webview in active tab was immediately loading. The rest of the webviews were not loading. It only starts to load if I select the tab belongs to the webview.</p> <p dir="auto">I want the webviews to load immediately when the browser launch. How can I do that?</p>
<p dir="auto">Hi,</p> <p dir="auto">It would be nice if element can be detached into separate window for rendering. I don't know if this can be done in electron atm.</p>
1
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">I need to use <code class="notranslate">StratifiedGroupKFold</code> on my data.</p> <p dir="auto">Unlike <code class="notranslate">cross_validate</code>, <code class="notranslate">SequentialFeatureSelector.fit</code> method has no <code class="notranslate">**fit_params</code> or <code class="notranslate">groups</code> parameter, so I can't use group split.</p> <h3 dir="auto">Describe your proposed solution</h3> <ul dir="auto"> <li>Adding <code class="notranslate">**fit_params</code> or <code class="notranslate">groups</code> parameter to <code class="notranslate">SequentialFeatureSelector.fit</code> method.</li> </ul> <h3 dir="auto">Describe alternatives you've considered, if relevant</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">I would like to be able to pass sample weights to the <code class="notranslate">fit</code> method of the estimator in <code class="notranslate">SequentialFeatureSelector</code>. (<code class="notranslate">SelectFromModel</code> has this feature as well.)</p> <p dir="auto">Looking at the code, it seems to me that <a href="https://github.com/scikit-learn/scikit-learn/blob/2e481f114169396660f0051eee1bcf6bcddfd556/sklearn/model_selection/_validation.py#L662"><code class="notranslate">sklearn.model_selection._validation._fit_and_score</code></a>, which is where the actual scoring takes place, already supports sample weights in cross-validation (i.e., takes care of passing only the weights for samples that are actually part of the fold).</p> <h3 dir="auto">Describe your proposed solution</h3> <p dir="auto">Based on my current understanding, <code class="notranslate">SequentialFeatureSelector.fit()</code> would need to get an additional argument <code class="notranslate">fit_params</code> (cf. <a href="https://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.SelectFromModel.html#sklearn.feature_selection.SelectFromModel.fit" rel="nofollow"><code class="notranslate">SelectFromModel.fit()</code></a>) that is passed on to the <code class="notranslate">cross_val_score</code> function called in <code class="notranslate">SequentialFeatureSelector._get_best_new_feature_score</code>. Everything else appears to be in place already.</p> <p dir="auto">if that's all it takes, I'm happy to prepare a PR. But I might very well be overlooking issues or unintended consequences.</p> <h3 dir="auto">Describe alternatives you've considered, if relevant</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
1
<p dir="auto">I'm not sure what the best medium to have this discussion in, so let's just use an issue for now.</p> <h3 dir="auto">WorkspaceView</h3> <p dir="auto"><strong>Add</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::eachPaneView # Rename of WorkspaceView::eachPane</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::getPaneViews # Rename of WorkspaceView::getPanes</li> </ul> <p dir="auto"><strong>Keep</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::appendToBottom</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::appendToLeft</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::appendToRight</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::appendToTop</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::prependToBottom</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::prependToLeft</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::prependToRight</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::prependToTop</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::eachEditorView</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::getActivePaneView</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::setTitle</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::updateTitle</li> </ul> <p dir="auto"><strong>Deprecate or Remove</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::getPanes # Renamed</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::eachPane # Renamed</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::confirmClose</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::focusNextPane</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::focusPaneAbove</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::focusPaneBelow</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::focusPaneOnLeft</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::focusPaneOnRight</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::focusPreviousPane</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::getActivePaneItem # This belongs on Workspace</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::getActivePane</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::getActiveView</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::getFocusedPane</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> WorkspaceView::indexOfPane</li> </ul> <h3 dir="auto">Workspace</h3> <p dir="auto"><strong>Add</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::getPanes</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::getActivePane</li> <li><del>Workspace::getActivePaneItem</del></li> </ul> <p dir="auto"><strong>Keep</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::getEditors</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::eachEditor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::getActiveEditor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::open</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::registerOpener</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::unregisterOpener</li> </ul> <p dir="auto"><strong>Deprecate or Remove</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::destroyActivePane # This should be Pane::destroy() or Pane::close()</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::saveActivePaneItem</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::saveActivePaneItemAs</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::reopenItemSync</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Workspace::destroyActivePaneItem</li> </ul>
<p dir="auto">Not sure how to describe this or what actually caused it. After hitting cmd+z a few times, the debugger opened and code started duplicating in my file strangely. I restarted atom and tried to open the folder again, but the window stays white and I get this in the console:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot call method 'addMarkerAtLevel' of undefined at IntervalSkipList.module.exports.IntervalSkipList.placeMarker (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/node_modules/interval-skip-list/lib/interval-skip-list.js:309:14) at IntervalSkipList.module.exports.IntervalSkipList.insert (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/node_modules/interval-skip-list/lib/interval-skip-list.js:116:12) at IntervalSkipList.module.exports.IntervalSkipList.update (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/node_modules/interval-skip-list/lib/interval-skip-list.js:140:19) at ArrayMarker.module.exports.ArrayMarker.updateIndices (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/array-marker.js:678:51) at new ArrayMarker (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/array-marker.js:44:12) at Array.module.exports.Array.finalizeCreation (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/array.js:79:30) at Map.module.exports.Map.finalizeCreation (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/map.js:54:15) at Array.module.exports.Array.finalizeCreation (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/array.js:97:15) at Map.module.exports.Map.finalizeCreation (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/map.js:54:15) at Map.module.exports.Map.finalizeCreation (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/map.js:54:15) at Database.module.exports.Database.applyOperations (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/database.js:282:18) at Function.module.exports.Database.deserialize (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/database.js:49:16) at Function.module.exports.Document.deserialize (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/document.js:48:32) at Atom.module.exports.Atom.loadWindowState (/Applications/Atom.app/Contents/Resources/app/src/atom.js:472:24) at Atom.module.exports.Atom.getWindowState (/Applications/Atom.app/Contents/Resources/app/src/atom.js:498:33) at Atom.module.exports.Atom.initialize (/Applications/Atom.app/Contents/Resources/app/src/atom.js:93:73) at Atom.module.exports.Atom.setUpEnvironment (/Applications/Atom.app/Contents/Resources/app/src/atom.js:98:19) at Object.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/app/src/window-bootstrap.js:17:8) at Object.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/app/src/window-bootstrap.js:25:4) at Module._compile (module.js:471:26) at Object.Module._extensions..js (module.js:489:10) at Module.load (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36) at Function.Module._load (module.js:327:12) at Module.require (module.js:379:17) at require (module.js:395:17) at window.onload (file:///Applications/Atom.app/Contents/Resources/app/static/index.html:12:9) index.html:20 window.onload"><pre class="notranslate"><code class="notranslate">TypeError: Cannot call method 'addMarkerAtLevel' of undefined at IntervalSkipList.module.exports.IntervalSkipList.placeMarker (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/node_modules/interval-skip-list/lib/interval-skip-list.js:309:14) at IntervalSkipList.module.exports.IntervalSkipList.insert (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/node_modules/interval-skip-list/lib/interval-skip-list.js:116:12) at IntervalSkipList.module.exports.IntervalSkipList.update (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/node_modules/interval-skip-list/lib/interval-skip-list.js:140:19) at ArrayMarker.module.exports.ArrayMarker.updateIndices (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/array-marker.js:678:51) at new ArrayMarker (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/array-marker.js:44:12) at Array.module.exports.Array.finalizeCreation (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/array.js:79:30) at Map.module.exports.Map.finalizeCreation (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/map.js:54:15) at Array.module.exports.Array.finalizeCreation (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/array.js:97:15) at Map.module.exports.Map.finalizeCreation (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/map.js:54:15) at Map.module.exports.Map.finalizeCreation (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/map.js:54:15) at Database.module.exports.Database.applyOperations (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/database.js:282:18) at Function.module.exports.Database.deserialize (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/database.js:49:16) at Function.module.exports.Document.deserialize (/Applications/Atom.app/Contents/Resources/app/node_modules/telepath/lib/document.js:48:32) at Atom.module.exports.Atom.loadWindowState (/Applications/Atom.app/Contents/Resources/app/src/atom.js:472:24) at Atom.module.exports.Atom.getWindowState (/Applications/Atom.app/Contents/Resources/app/src/atom.js:498:33) at Atom.module.exports.Atom.initialize (/Applications/Atom.app/Contents/Resources/app/src/atom.js:93:73) at Atom.module.exports.Atom.setUpEnvironment (/Applications/Atom.app/Contents/Resources/app/src/atom.js:98:19) at Object.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/app/src/window-bootstrap.js:17:8) at Object.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/app/src/window-bootstrap.js:25:4) at Module._compile (module.js:471:26) at Object.Module._extensions..js (module.js:489:10) at Module.load (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36) at Function.Module._load (module.js:327:12) at Module.require (module.js:379:17) at require (module.js:395:17) at window.onload (file:///Applications/Atom.app/Contents/Resources/app/static/index.html:12:9) index.html:20 window.onload </code></pre></div> <p dir="auto">I resolved the problem with this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rm -fr ~/.atom/storage"><pre class="notranslate"><code class="notranslate">rm -fr ~/.atom/storage </code></pre></div>
0
<h5 dir="auto">ISSUE TYPE</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 1.9.4 configured module search path = None"><pre class="notranslate"><code class="notranslate">ansible 1.9.4 configured module search path = None </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">No changes to /etc/ansible/ansible.cfg</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">ALL CentOS release 6.6 (Final)</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">\u001b[?25h\u001b[0G\u001b[K\u001b[?25h\u001b[0G\u001b[K/usr/bin/python: can't open file '\u001b[?25h\u001b[0G\u001b[K\u001b[?25h\u001b[0G\u001b[K/home/webdev/.ansible/tmp/ansible-tmp-1460969185.96-153456172544662/command': [Errno 2] No such file or directory<br> OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013\ndebug1: Reading configuration data /etc/ssh/ssh_config<br> debug1: Applying options for *<br> debug1: Connecting to 172.28.0.10 [172.28.0.10] port 32000.<br> debug1: fd 3 clearing O_NONBLOCK<br> debug1: Connection established.<br> debug1: identity file /home/webdev/.ssh/identity type -1<br> debug1: identity file /home/webdev/.ssh/identity-cert type -1<br> debug1: identity file /home/webdev/.ssh/id_rsa type 1<br> debug1: identity file /home/webdev/.ssh/id_rsa-cert type -1<br> debug1: identity file /home/webdev/.ssh/id_dsa type -1<br> debug1: identity file /home/webdev/.ssh/id_dsa-cert type -1<br> debug1: identity file /home/webdev/.ssh/id_ecdsa type -1<br> debug1: identity file /home/webdev/.ssh/id_ecdsa-cert type -1<br> debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3<br> debug1: match: OpenSSH_5.3 pat OpenSSH*<br> debug1: Enabling compatibility mode for protocol 2.0<br> debug1: Local version string SSH-2.0-OpenSSH_5.3<br> debug1: SSH2_MSG_KEXINIT sent<br> debug1: SSH2_MSG_KEXINIT received<br> debug1: kex: server-&gt;client aes128-ctr hmac-md5 <a href="mailto:[email protected]">[email protected]</a><br> debug1: kex: client-&gt;server aes128-ctr hmac-md5 <a href="mailto:[email protected]">[email protected]</a><br> debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&lt;1024&lt;8192) sent<br> debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP<br> debug1: SSH2_MSG_KEX_DH_GEX_INIT sent<br> debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY<br> debug1: checking without port identifier<br> Warning: Permanently added '[172.28.0.10]:32000' (RSA) to the list of known hosts.<br> debug1: ssh_rsa_verify: signature correct<br> debug1: SSH2_MSG_NEWKEYS sent<br> debug1: expecting SSH2_MSG_NEWKEYS<br> debug1: SSH2_MSG_NEWKEYS received<br> debug1: SSH2_MSG_SERVICE_REQUEST sent<br> debug1: SSH2_MSG_SERVICE_ACCEPT received<br> debug1: Authentications that can continue: publickey,password<br> debug1: Next authentication method: password<br> debug1: Enabling compression at level 6.<br> debug1: Authentication succeeded (password).<br> debug1: channel 0: new [client-session]<br> debug1: Requesting <a href="mailto:[email protected]">[email protected]</a><br> debug1: Entering interactive session.<br> debug1: Sending environment.<br> debug1: Sending env LANG = C<br> debug1: Sending command: /bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python \033[?25h\033[0G\033[K\033[?25h\033[0G\033[K/home/webdev/.ansible/tmp/ansible-tmp-1460969185.96-153456172544662/command; rm -rf \033[?25h\033[0G\033[K\033[?25h\033[0G\033[K/home/webdev/.ansible/tmp/ansible-tmp-1460969185.96-153456172544662/ &gt;/dev/null 2&gt;&amp;1'<br> debug1: client_input_channel_req: channel 0 rtype exit-status reply 0<br> debug1: client_input_channel_req: channel 0 rtype <a href="mailto:[email protected]">[email protected]</a> reply 0<br> debug1: channel 0: free: client-session, nchannels 1<br> debug1: fd 1 clearing O_NONBLOCK<br> debug1: fd 2 clearing O_NONBLOCK<br> Connection to 172.28.0.10 closed.<br> Transferred: sent 1896, received 2224 bytes, in 0.6 seconds<br> Bytes per second: sent 3016.0, received 3537.8<br> debug1: Exit status 0<br> debug1: compress outgoing: raw data 709, compressed 438, factor 0.62<br> debug1: compress incoming: raw data 324, compressed 246, factor 0.76</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">with the ip 172.18.8.203, get errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false' ansible 'all' -u 'webdev' -m shell -a 'rm -rf /data/web_publish/source/kaihubao/detection1460968430' -f 10 -T 600 -vvvv &lt;172.18.8.203&gt; ESTABLISH CONNECTION FOR USER: webdev &lt;172.18.8.203&gt; REMOTE_MODULE command rm -rf /data/web_publish/source/kaihubao/detection1460968430 #USE_SHELL &lt;172.18.8.203&gt; EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false -o Port=32000 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=600 172.18.8.203 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1460980711.71-205018944211005 &amp;&amp; chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1460980711.71-205018944211005 &amp;&amp; echo $HOME/.ansible/tmp/ansible-tmp-1460980711.71-205018944211005' /home/webdev/.ansible/tmp/ansible-tmp-1460980711.71-205018944211005/command &lt;172.18.8.203&gt; EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false -o Port=32000 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,pub/home/webdev/.ansible/tmp/ansible-tmp-1460980711.71-205018944211005/ &gt;/dev/null 2&gt;&amp;1'"><pre class="notranslate"><code class="notranslate"> ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false' ansible 'all' -u 'webdev' -m shell -a 'rm -rf /data/web_publish/source/kaihubao/detection1460968430' -f 10 -T 600 -vvvv &lt;172.18.8.203&gt; ESTABLISH CONNECTION FOR USER: webdev &lt;172.18.8.203&gt; REMOTE_MODULE command rm -rf /data/web_publish/source/kaihubao/detection1460968430 #USE_SHELL &lt;172.18.8.203&gt; EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false -o Port=32000 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=600 172.18.8.203 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1460980711.71-205018944211005 &amp;&amp; chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1460980711.71-205018944211005 &amp;&amp; echo $HOME/.ansible/tmp/ansible-tmp-1460980711.71-205018944211005' /home/webdev/.ansible/tmp/ansible-tmp-1460980711.71-205018944211005/command &lt;172.18.8.203&gt; EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false -o Port=32000 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,pub/home/webdev/.ansible/tmp/ansible-tmp-1460980711.71-205018944211005/ &gt;/dev/null 2&gt;&amp;1' </code></pre></div> <p dir="auto">with the ip 172.18.8.207, it success:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false' ansible 'all' -u 'webdev' -m shell -a 'rm -rf /data/web_publish/source/kaihubao/detection1460968430' -f 10 -T 600 -vvvv &lt;172.18.8.207&gt; ESTABLISH CONNECTION FOR USER: webdev &lt;172.18.8.207&gt; REMOTE_MODULE command rm -rf /data/web_publish/source/kaihubao/detection1460968430 #USE_SHELL &lt;172.18.8.207&gt; EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false -o Port=32000 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=600 172.18.8.207 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351 &amp;&amp; chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351 &amp;&amp; echo $HOME/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351' &lt;172.18.8.207&gt; PUT /tmp/tmptOJ0xX TO /home/webdev/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351/command &lt;172.18.8.207&gt; EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false -o Port=32000 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=600 172.18.8.207 /bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python /home/webdev/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351/command; rm -rf /home/webdev/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351/ &gt;/dev/null 2&gt;&amp;1'"><pre class="notranslate"><code class="notranslate"> ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false' ansible 'all' -u 'webdev' -m shell -a 'rm -rf /data/web_publish/source/kaihubao/detection1460968430' -f 10 -T 600 -vvvv &lt;172.18.8.207&gt; ESTABLISH CONNECTION FOR USER: webdev &lt;172.18.8.207&gt; REMOTE_MODULE command rm -rf /data/web_publish/source/kaihubao/detection1460968430 #USE_SHELL &lt;172.18.8.207&gt; EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false -o Port=32000 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=600 172.18.8.207 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351 &amp;&amp; chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351 &amp;&amp; echo $HOME/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351' &lt;172.18.8.207&gt; PUT /tmp/tmptOJ0xX TO /home/webdev/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351/command &lt;172.18.8.207&gt; EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=false -o Port=32000 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=600 172.18.8.207 /bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python /home/webdev/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351/command; rm -rf /home/webdev/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351/ &gt;/dev/null 2&gt;&amp;1' </code></pre></div> <p dir="auto">according to the debug info:<br> 172.18.8.207:<br> &lt;172.18.8.207&gt; PUT /tmp/tmptOJ0xX TO /home/webdev/.ansible/tmp/ansible-tmp-1460977186.14-114412108948351/command<br> 172.18.8.203:<br> does not have a line begin with PUT,and “/home/webdev/.ansible/tmp/ansible-tmp-1460980711.71-205018944211005/command” with this line</p> <p dir="auto">172.18.8.207 and 172.18.8.203 both has created the right directory 。</p> <h5 dir="auto">EXPECTED RESULTS</h5> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;!--- Paste verbatim command output between quotes --&gt;"><pre class="notranslate"><code class="notranslate">&lt;!--- Paste verbatim command output between quotes --&gt; </code></pre></div>
<p dir="auto">From <a href="https://groups.google.com/forum/#!topic/ansible-project/2JDkLFsvMcA" rel="nofollow">https://groups.google.com/forum/#!topic/ansible-project/2JDkLFsvMcA</a></p> <p dir="auto">I'm having some trouble with the new Ansible 2 when trying to run ping on a host that works with 1.9.4.</p> <p dir="auto">I'm getting the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible -i test all -m ping -u root -vvvvv -c paramiko Loaded callback minimal of type stdout, v2.0 &lt;10.10.0.242&gt; ESTABLISH CONNECTION FOR USER: root on PORT 22 TO 10.10.0.242 &lt;10.10.0.242&gt; EXEC mkdir -p &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542 )&quot; &amp;&amp; echo &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542 )&quot; &lt;10.10.0.242&gt; PUT /var/folders/1d/nqrbvtz120nb7r2rjqzpvs7m0000gn/T/tmpjR2gSS TO /home/root/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542/ping &lt;10.10.0.242&gt; EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/root/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542/ping; rm -rf &quot;/home/root/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542/&quot; &gt; /dev/null 2&gt;&amp;1 10.10.0.242 | FAILED! =&gt; { &quot;changed&quot;: false, &quot;failed&quot;: true, &quot;invocation&quot;: { &quot;module_name&quot;: &quot;ping&quot; }, &quot;module_stderr&quot;: &quot;&quot;, &quot;module_stdout&quot;: &quot;\u001b[?1034h{\&quot;invocation\&quot;: {\&quot;module_args\&quot;: {\&quot;data\&quot;: null}}, \&quot;changed\&quot;: false, \&quot;ping\&quot;: \&quot;pong\&quot;}\r\n&quot;, &quot;msg&quot;: &quot;MODULE FAILURE&quot;, &quot;parsed&quot;: false }"><pre class="notranslate"><code class="notranslate">$ ansible -i test all -m ping -u root -vvvvv -c paramiko Loaded callback minimal of type stdout, v2.0 &lt;10.10.0.242&gt; ESTABLISH CONNECTION FOR USER: root on PORT 22 TO 10.10.0.242 &lt;10.10.0.242&gt; EXEC mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542 )" &lt;10.10.0.242&gt; PUT /var/folders/1d/nqrbvtz120nb7r2rjqzpvs7m0000gn/T/tmpjR2gSS TO /home/root/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542/ping &lt;10.10.0.242&gt; EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/root/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542/ping; rm -rf "/home/root/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542/" &gt; /dev/null 2&gt;&amp;1 10.10.0.242 | FAILED! =&gt; { "changed": false, "failed": true, "invocation": { "module_name": "ping" }, "module_stderr": "", "module_stdout": "\u001b[?1034h{\"invocation\": {\"module_args\": {\"data\": null}}, \"changed\": false, \"ping\": \"pong\"}\r\n", "msg": "MODULE FAILURE", "parsed": false } </code></pre></div> <p dir="auto">Previously on 1.9.4 I would get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible -i test all -m ping -u root -vvvvv -c paramiko &lt;10.10.0.242&gt; ESTABLISH CONNECTION FOR USER: root on PORT 22 TO 10.10.0.242 &lt;10.10.0.242&gt; REMOTE_MODULE ping &lt;10.10.0.242&gt; EXEC /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466 &amp;&amp; echo $HOME/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466' &lt;10.10.0.242&gt; PUT /var/folders/1d/nqrbvtz120nb7r2rjqzpvs7m0000gn/T/tmpqHPWsg TO /home/root/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466/ping &lt;10.10.0.242&gt; EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/root/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466/ping; rm -rf /home/root/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466/ &gt;/dev/null 2&gt;&amp;1' 10.10.0.242 | success &gt;&gt; { &quot;changed&quot;: false, &quot;ping&quot;: &quot;pong&quot; }"><pre class="notranslate"><code class="notranslate">$ ansible -i test all -m ping -u root -vvvvv -c paramiko &lt;10.10.0.242&gt; ESTABLISH CONNECTION FOR USER: root on PORT 22 TO 10.10.0.242 &lt;10.10.0.242&gt; REMOTE_MODULE ping &lt;10.10.0.242&gt; EXEC /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466 &amp;&amp; echo $HOME/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466' &lt;10.10.0.242&gt; PUT /var/folders/1d/nqrbvtz120nb7r2rjqzpvs7m0000gn/T/tmpqHPWsg TO /home/root/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466/ping &lt;10.10.0.242&gt; EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/root/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466/ping; rm -rf /home/root/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466/ &gt;/dev/null 2&gt;&amp;1' 10.10.0.242 | success &gt;&gt; { "changed": false, "ping": "pong" } </code></pre></div> <p dir="auto">Any idea what the culprit might be? At first glance the only real difference I can see is that the older version had /bin/sh -c in front, but that could just be a change in logging.</p> <p dir="auto">Update from: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="126615289" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/13882" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/13882/hovercard?comment_id=171723283&amp;comment_type=issue_comment" href="https://github.com/ansible/ansible/issues/13882#issuecomment-171723283">#13882 (comment)</a></p> <p dir="auto">The local shell is zsh, the remote term is sh.</p> <p dir="auto">The issue is that my local TERM environment (xterm-256color) was getting used by paramiko and openssh and sent to the remote system.</p> <p dir="auto">Temporary workaround, "TERM=vt100 ansible -i ... -m ping" makes everything work peachy.</p> <p dir="auto">One interesting thing to note is that enabling pipelining makes the problem go away. I was able to track down the issue in the paramiko code,<br> paramiko_ssh.py:219: chan.get_pty(term=os.getenv('TERM', 'vt100'),</p> <p dir="auto">The local environment is getting used for TERM instead of always forcing vt100, I couldn't find the corresponding openssh code.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fspadini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fspadini">@fspadini</a></p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-add-a-submit-button-to-a-form#?solution=%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%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%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%3Cul%3E%0A%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%3C%2Ful%3E%0A%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%3Col%3E%0A%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%3C%2Fol%3E%0A%3Cform%20fccfaa%3D%22%23%22%3E%0A%20%20%20%20%3Cinput%20%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%2F%3E%0A%20%20%20%20%3Cinput%20%20type%3D%22submit%22%20value%3D%22submit%22%2F%3E%0A%3C%2Fform%3E%0A" rel="nofollow">Waypoint: Add a Submit Button to a Form</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 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="&lt;link href=&quot;http://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;smaller-image thick-green-border&quot; alt=&quot;A cute orange cat lying on its back&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt;&lt;/a&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot;&gt; &lt;/form&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</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">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } .<span class="pl-c1">smaller-image</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Click here for <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</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">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Things cats love:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</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">&gt;</span> <span class="pl-kos">&lt;</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-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-add-a-submit-button-to-a-form" rel="nofollow">Waypoint: Add a Submit Button to a Form</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 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="&lt;link href=&quot;http://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;smaller-image thick-green-border&quot; alt=&quot;A cute orange cat lying on its back&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt;&lt;/a&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot;&gt; &lt;/form&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</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">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } .<span class="pl-c1">smaller-image</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Click here for <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</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">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Things cats love:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</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">&gt;</span> <span class="pl-kos">&lt;</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-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span></pre></div>
1
<p dir="auto">Hi all,</p> <p dir="auto">In my Electron app, I capture navigation events from a webview in the main window and display the contents in a second window.</p> <p dir="auto">Capturing the event and displaying the selected contents in the second window using <code class="notranslate">webview.addEventListener('will-navigate', ...)</code> and some renderer-&gt;main-&gt;renderer ipc works just fine, but I haven't been able to prevent the main window webview from also loading the linked page contents, despite calling <code class="notranslate">Event.preventDefault()</code> and <code class="notranslate">Event.stopPropagation()</code>. I'm aware of issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="128064720" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/4191" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/4191/hovercard" href="https://github.com/electron/electron/issues/4191">#4191</a> and others that have reported this before, but if there's a fix or a workaround for this problem, I haven't found one.</p> <p dir="auto">The following complete code is supposed to ignore all navigation events and leave the original page in place, but instead it replaces it with the navigated page contents every time.</p> <p dir="auto"><strong>app.js</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const {app, BrowserWindow} = require('electron') app.on('ready', () =&gt; { let win = new BrowserWindow({width: 800, height: 600}) win.loadURL('file://' + __dirname + '/app.html') win.on('closed', () =&gt; app.quit()) })"><pre class="notranslate"><code class="notranslate">const {app, BrowserWindow} = require('electron') app.on('ready', () =&gt; { let win = new BrowserWindow({width: 800, height: 600}) win.loadURL('file://' + __dirname + '/app.html') win.on('closed', () =&gt; app.quit()) }) </code></pre></div> <p dir="auto"><strong>app.html</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;html&gt; &lt;head&gt; &lt;title&gt;Navigate&lt;/title&gt; &lt;/head&gt; &lt;style&gt;.view {width: 100vw; height: 100vh}&lt;/style&gt; &lt;body style=&quot;margin: 0&quot;&gt; &lt;webview class=&quot;view&quot; id=&quot;view&quot; src=&quot;https://electronjs.org/docs/all&quot;&gt;&lt;/webview&gt; &lt;/body&gt; &lt;script&gt; const webview = document.getElementById('view') webview.addEventListener('will-navigate', event =&gt; { console.log('Preventing navigation to ' + event.url) event.preventDefault() event.stopPropagation() }, false) &lt;/script&gt; &lt;/html&gt;"><pre class="notranslate"><code class="notranslate">&lt;html&gt; &lt;head&gt; &lt;title&gt;Navigate&lt;/title&gt; &lt;/head&gt; &lt;style&gt;.view {width: 100vw; height: 100vh}&lt;/style&gt; &lt;body style="margin: 0"&gt; &lt;webview class="view" id="view" src="https://electronjs.org/docs/all"&gt;&lt;/webview&gt; &lt;/body&gt; &lt;script&gt; const webview = document.getElementById('view') webview.addEventListener('will-navigate', event =&gt; { console.log('Preventing navigation to ' + event.url) event.preventDefault() event.stopPropagation() }, false) &lt;/script&gt; &lt;/html&gt; </code></pre></div> <p dir="auto">Am I missing something?</p> <p dir="auto">Environment:</p> <ul dir="auto"> <li>Electron version: 1.8.2</li> <li>Operating system: Windows 10</li> </ul>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li>[ x] I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong><br> 4.0.0. , 5.0.0</li> <li><strong>Operating System:</strong><br> Windows 10 (1803)</li> <li><strong>Last Known Working Electron version:</strong><br> I did not find any working version</li> </ul> <p dir="auto">Repro steps:</p> <ul dir="auto"> <li>open developer tools</li> <li>go to Elements tab</li> <li>select any html element</li> <li>open Accessibility tab</li> </ul> <h3 dir="auto">Expected Behavior</h3> <ul dir="auto"> <li>accessibility tab show accessibility tree</li> </ul> <h3 dir="auto">Actual Behavior</h3> <ul dir="auto"> <li>accesisbility tab is empty<br> Error in console:<br> <code class="notranslate">[99978:0610/175341.131749:ERROR:CONSOLE(24)] "Empty response arrived for script 'devtools://devtools/remote/serve_file/@f200986dfaabd6aad6a4b37dad7aae42fec349e9/accessibility/accessibility_module.js'", source: devtools://devtools/bundled/shell.js (24) [99978:0610/175341.140809:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: Accessibility.AccessibilitySidebarView", source: devtools://devtools/bundled/shell.js (109)</code></li> </ul> <h3 dir="auto">Screenshots</h3> <p dir="auto">Screenshot took from Electron Fiddle:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22620150/59215318-425b4880-8bb9-11e9-98bd-c002db5d3cd9.png"><img src="https://user-images.githubusercontent.com/22620150/59215318-425b4880-8bb9-11e9-98bd-c002db5d3cd9.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional Information</h3>
0
<p dir="auto">Looking at wells (<a href="http://getbootstrap.com/components/#wells" rel="nofollow">http://getbootstrap.com/components/#wells</a>) and contextual text and backgrounds (<a href="http://getbootstrap.com/css/#helper-classes" rel="nofollow">http://getbootstrap.com/css/#helper-classes</a>) and noticed these are not complementing each other.</p> <p dir="auto">A <code class="notranslate">.well</code> will make the element ignore the text and background provided by the contextual classes, so</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;p class=&quot;well bg-info&quot;&gt; ... &lt;/p&gt;"><pre class="notranslate"><code class="notranslate">&lt;p class="well bg-info"&gt; ... &lt;/p&gt; </code></pre></div> <p dir="auto">is no different from</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;p class=&quot;well&quot;&gt; ... &lt;/p&gt;"><pre class="notranslate"><code class="notranslate">&lt;p class="well"&gt; ... &lt;/p&gt; </code></pre></div> <p dir="auto">I propose that either the fact that <code class="notranslate">.well</code> will override the contextual classes be documented, or (preferably) <code class="notranslate">.well</code> and the contextual classes will complement each other.</p>
<p dir="auto">I've coded:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;well bg-success&quot;&gt;some text&lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="well bg-success"&gt;some text&lt;/div&gt; </code></pre></div> <p dir="auto">But I didn't get the green background color.</p> <p dir="auto">Shouldn't the well component accept the contextual background class background-color?</p>
1
<p dir="auto">I am building a blog with Next.js. I need my contact page to include a contact form so visitors can send emails via Nodemailer.</p> <p dir="auto">I am fairly new to Express so I feel in a little over my head. Should I be customizing the Next.js server?</p> <p dir="auto">Or should I make a separate server? If so, is that completely separate from my Next.js app?</p> <p dir="auto">I currently have pages/contact rendering a form. I am not worried about actually sending the email and all that Nodemailer stuff. I just don't understand where I should be hooking up my configurations.</p> <p dir="auto">What would be the recommended way to do implement such a contact form?</p> <p dir="auto">Any help greatly appreciated. Thank you!</p> <ul dir="auto"> <li>[x ] 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>
<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"><a href="https://github.com/zeit/next.js#imperatively-1">document</a> says:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Router from 'next/router' export default ({ url }) =&gt; ( &lt;div&gt; &lt;a onClick={ () =&gt; setTimeout(() =&gt; url.pushTo('/dynamic'), 100) }&gt; A route transition will happen after 100ms &lt;/a&gt; { // but we can prefetch it! Router.prefetch('/dynamic') } &lt;/div&gt; )"><pre class="notranslate"><code class="notranslate">import Router from 'next/router' export default ({ url }) =&gt; ( &lt;div&gt; &lt;a onClick={ () =&gt; setTimeout(() =&gt; url.pushTo('/dynamic'), 100) }&gt; A route transition will happen after 100ms &lt;/a&gt; { // but we can prefetch it! Router.prefetch('/dynamic') } &lt;/div&gt; ) </code></pre></div> <h2 dir="auto">Current Behavior</h2> <p dir="auto">While use <code class="notranslate">Router.prefetch('/foo')</code> in <code class="notranslate">render()</code> would got an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No router instance found. You should only use &quot;next/router&quot; inside the client side of your app."><pre class="notranslate"><code class="notranslate">No router instance found. You should only use "next/router" inside the client side of your app. </code></pre></div> <h2 dir="auto">Alternative Usage</h2> <p dir="auto">Use it in <code class="notranslate">componentDidMount</code> works as expected:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" componentDidMount () { Router.prefetch('/foo') }"><pre class="notranslate"><code class="notranslate"> componentDidMount () { Router.prefetch('/foo') } </code></pre></div> <p dir="auto">Is it a bug or the document needs update?</p>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report =&gt; search github for a similar issue or PR before submitting [x ] feature request [ ] support request =&gt; 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">[ ] bug report =&gt; search github for a similar issue or PR before submitting [x ] feature request [ ] support request =&gt; 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>Expected behavior</strong><br> Posibility to have multiple query params with the same name <code class="notranslate">url?foo=bar&amp;foo=baz</code></p> <p dir="auto"><strong>Reproduction of the problem</strong><br> not currently possible with angular2 and router</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> align with <code class="notranslate">@angular/http URLSearchParams</code></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.X<br> 2.0.0</li> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]<br> all</li> <li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> all</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 =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; 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 =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">Currently when going to a url with multiple query parameters with the same key the DefaultUrlSerializer is removing all but the last one from the url.</p> <p dir="auto"><code class="notranslate">/something/route?room=a1&amp;room=a4&amp;room=a6</code></p> <p dir="auto">This link will be rewritten to:</p> <p dir="auto"><code class="notranslate">/something/route?room=a6</code></p> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">The url should remain the same and keep all parameters.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.6</li> <li><strong>Browser:</strong> all</li> <li><strong>Language:</strong> Typescript</li> </ul> <p dir="auto">This pull request fixes the issue but it's my first one - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175229875" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/11373" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/11373/hovercard" href="https://github.com/angular/angular/pull/11373">#11373</a></p>
1
<p dir="auto">So, I use my text editor for all kinds of things (writing code, reading readmes, editing dotfiles, etc). One of the things I do most often during any given day is open up large log files to troubleshoot Enterprise problems. These files can sometimes get as large as 500-800MB.</p> <p dir="auto">I just tried viewing a 350MB log file and Atom locked up immediately -- the file selector didn't change and the entire window went completely white 4 seconds after I tried viewing the file. I could still close the top level window, but we should still have better handling for this kind of thing.</p> <p dir="auto">Sublime Text 2 took about 55 seconds to open the file, but gave a nice progress indicator while it was loading:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/402a77c9e676b55fa95c38e26e4345d76be5e51f1cb9b2e2790d94de0ce90c00/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3234342f3139303337392f63306162633237652d376565352d313165322d386563342d3432303563646565306164302e706e67"><img src="https://camo.githubusercontent.com/402a77c9e676b55fa95c38e26e4345d76be5e51f1cb9b2e2790d94de0ce90c00/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3234342f3139303337392f63306162633237652d376565352d313165322d386563342d3432303563646565306164302e706e67" alt="Screen Shot 2013-02-24 at 4 50 56 PM" data-canonical-src="https://f.cloud.github.com/assets/244/190379/c0abc27e-7ee5-11e2-8ec4-4205cdee0ad0.png" style="max-width: 100%;"></a></p> <p dir="auto">Once it loaded it was as responsive as any other file I load (scrolled fast, normal text highlight performance, etc). It would be nice if we set this as a baseline for expected behavior (progress bar + responsive after loading).</p>
1
<p dir="auto">First discussed here: <a href="https://discourse.julialang.org/t/unnecessary-where-t-causes-huge-performance-drop/31078" rel="nofollow">https://discourse.julialang.org/t/unnecessary-where-t-causes-huge-performance-drop/31078</a></p> <p dir="auto">Given the following functions in a Julia 1.3rc4 session:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function f1(x) where {T} return x*2 end function f2(x) return x*2 end function f3(::Type{T}, x) where {T} return x*2 end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">f1</span>(x) <span class="pl-k">where</span> {T} <span class="pl-k">return</span> x<span class="pl-k">*</span><span class="pl-c1">2</span> <span class="pl-k">end</span> <span class="pl-k">function</span> <span class="pl-en">f2</span>(x) <span class="pl-k">return</span> x<span class="pl-k">*</span><span class="pl-c1">2</span> <span class="pl-k">end</span> <span class="pl-k">function</span> <span class="pl-en">f3</span>(<span class="pl-k">::</span><span class="pl-c1">Type{T}</span>, x) <span class="pl-k">where</span> {T} <span class="pl-k">return</span> x<span class="pl-k">*</span><span class="pl-c1">2</span> <span class="pl-k">end</span></pre></div> <p dir="auto">I'd assume that all of them would generate the same machine code for the same <code class="notranslate">x</code>. This is however not the case:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@btime f1(1) 10.825 ns (0 allocations: 0 bytes) 2 @btime f2(1) 0.017 ns (0 allocations: 0 bytes) 2 @btime f3(Bool, 1) 0.017 ns (0 allocations: 0 bytes)"><pre class="notranslate"><code class="notranslate">@btime f1(1) 10.825 ns (0 allocations: 0 bytes) 2 @btime f2(1) 0.017 ns (0 allocations: 0 bytes) 2 @btime f3(Bool, 1) 0.017 ns (0 allocations: 0 bytes) </code></pre></div> <p dir="auto">For both <code class="notranslate">f2</code> and <code class="notranslate">f3</code> the constant folding worked, but <code class="notranslate">f1</code> does something differently. I also tried it using broadcasting to trick the constant folding:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a = rand(1000); @btime f1.($a); 14.736 μs (2001 allocations: 39.19 KiB) @btime f2.($a); 471.755 ns (1 allocation: 7.94 KiB) @btime f3.(Bool, $a); 445.223 ns (1 allocation: 7.94 KiB)"><pre class="notranslate"><code class="notranslate">a = rand(1000); @btime f1.($a); 14.736 μs (2001 allocations: 39.19 KiB) @btime f2.($a); 471.755 ns (1 allocation: 7.94 KiB) @btime f3.(Bool, $a); 445.223 ns (1 allocation: 7.94 KiB) </code></pre></div> <p dir="auto">There are a lot of allocations which I do not understand. Is this some kind of a lowering bug?</p> <p dir="auto">Update: sorry, I did a silly mistake, v0.7 of Julia shows the same behaviour</p>
<p dir="auto">Under some circumstances, having an unused typevar in a method definition causes the method to unexpectedly allocate and perform poorly. For example:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; function foo(y::T) where {N, T} 1.0 * y end foo (generic function with 1 method) julia&gt; using BenchmarkTools [ Info: Recompiling stale cache file /home/BOSDYN/rdeits/.julia/compiled/v1.0/BenchmarkTools/ZXPQo.ji for BenchmarkTools [6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf] julia&gt; @btime foo($(1)) 13.938 ns (1 allocation: 16 bytes) 1.0"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">foo</span>(y<span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-k">where</span> {N, T} <span class="pl-c1">1.0</span> <span class="pl-k">*</span> y <span class="pl-k">end</span> foo (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method) julia<span class="pl-k">&gt;</span> <span class="pl-k">using</span> BenchmarkTools [ Info<span class="pl-k">:</span> Recompiling stale cache file <span class="pl-k">/</span>home<span class="pl-k">/</span>BOSDYN<span class="pl-k">/</span>rdeits<span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>compiled<span class="pl-k">/</span>v1.<span class="pl-c1">0</span><span class="pl-k">/</span>BenchmarkTools<span class="pl-k">/</span>ZXPQo<span class="pl-k">.</span>ji <span class="pl-k">for</span> BenchmarkTools [<span class="pl-c1">6e4</span>b80f9<span class="pl-k">-</span>dd63<span class="pl-k">-</span><span class="pl-c1">53</span>aa<span class="pl-k">-</span><span class="pl-c1">95</span>a3<span class="pl-k">-</span><span class="pl-c1">0</span>cdb28fa8baf] julia<span class="pl-k">&gt;</span> <span class="pl-c1">@btime</span> <span class="pl-c1">foo</span>(<span class="pl-k">$</span>(<span class="pl-c1">1</span>)) <span class="pl-c1">13.938</span> ns (<span class="pl-c1">1</span> allocation<span class="pl-k">:</span> <span class="pl-c1">16</span> bytes) <span class="pl-c1">1.0</span></pre></div> <p dir="auto">where the <code class="notranslate">N</code> parameter is unused. Removing that parameter fixes the problem:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; function foo(y::T) where {T} 1.0 * y end foo (generic function with 1 method) julia&gt; @btime foo($(1)) 1.239 ns (0 allocations: 0 bytes) 1.0"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">foo</span>(y<span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-k">where</span> {T} <span class="pl-c1">1.0</span> <span class="pl-k">*</span> y <span class="pl-k">end</span> foo (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method) julia<span class="pl-k">&gt;</span> <span class="pl-c1">@btime</span> <span class="pl-c1">foo</span>(<span class="pl-k">$</span>(<span class="pl-c1">1</span>)) <span class="pl-c1">1.239</span> ns (<span class="pl-c1">0</span> allocations<span class="pl-k">:</span> <span class="pl-c1">0</span> bytes) <span class="pl-c1">1.0</span></pre></div> <p dir="auto">Is this and expected performance issue? I've observed it with Julia 1.0 and the latest nightly build.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 1.0.1-pre.171 Commit 398d87829d (2018-09-26 22:52 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Xeon(R) CPU E3-1535M v6 @ 3.10GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, skylake)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">versioninfo</span>() Julia Version <span class="pl-c1">1.0</span>.<span class="pl-c1">1</span><span class="pl-k">-</span>pre.<span class="pl-c1">171</span> Commit <span class="pl-c1">398</span>d87829d (<span class="pl-c1">2018</span><span class="pl-k">-</span><span class="pl-c1">09</span><span class="pl-k">-</span><span class="pl-c1">26</span> <span class="pl-c1">22</span><span class="pl-k">:</span><span class="pl-c1">52</span> UTC) Platform Info<span class="pl-k">:</span> OS<span class="pl-k">:</span> Linux (x86_64<span class="pl-k">-</span>pc<span class="pl-k">-</span>linux<span class="pl-k">-</span>gnu) CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Xeon</span>(R) CPU E3<span class="pl-k">-</span><span class="pl-c1">1535</span>M v6 @ <span class="pl-c1">3.10</span>GHz WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span> LIBM<span class="pl-k">:</span> libopenlibm LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">6.0</span>.<span class="pl-c1">0</span> (ORCJIT, skylake)</pre></div>
1
<p dir="auto">Adjacent patch objects which share an edge show a visible seam at the coincident edge for edgecolor=None. I've verified via reading the raw text in the pdf file that the points are precisely coincident and only polygons exist and there are no lines outlining the patches. The problem continues for rasterization via output to png.</p> <p dir="auto">To demonstrate this problem <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/akturner/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/akturner">@akturner</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xylar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xylar">@xylar</a>, and myself have devised a test case script:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/python import matplotlib as mpl #mpl.use(&quot;tkagg&quot;) import matplotlib.pyplot as plt import matplotlib.patches as patches from matplotlib.transforms import Affine2D import mpl_toolkits.axisartist.floating_axes as floating_axes # define patches def p1(): return patches.Rectangle( (0.1, 0.1), # (x,y) 0.4, # width 0.8, # height linewidth=0, edgecolor='none' ) def p2(): return patches.Rectangle( (0.5, 0.1), # (x,y) 0.4, # width 0.8, # height linewidth=0, edgecolor='none' ) # setup plots fig1 = plt.figure() # rectilinear patches in subplot 1 ax1 = fig1.add_subplot(121, aspect='equal') ax1.add_patch(p1()) ax1.add_patch(p2()) plt.ylim([0,1]) plt.xlim([0,1]) # make rotated version of the above in subplot 2 tr = Affine2D().scale(0.5, 0.5).translate(0.6,0).rotate_deg(30) grid_helper = floating_axes.GridHelperCurveLinear(tr, extremes=(0, 1, 0, 1)) ax2 = floating_axes.FloatingSubplot(fig1, 122, grid_helper=grid_helper) fig1.add_subplot(ax2) aux_ax = ax2.get_aux_axes(tr) aux_ax.add_patch(p1()) aux_ax.add_patch(p2()) plt.ylim([0,1]) plt.xlim([0,1]) # save figures plt.savefig('test.pdf') plt.savefig('test.png') plt.show() "><pre class="notranslate"><span class="pl-c">#!/usr/bin/python</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">as</span> <span class="pl-s1">mpl</span> <span class="pl-c">#mpl.use("tkagg")</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">patches</span> <span class="pl-k">as</span> <span class="pl-s1">patches</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">transforms</span> <span class="pl-k">import</span> <span class="pl-v">Affine2D</span> <span class="pl-k">import</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">axisartist</span>.<span class="pl-s1">floating_axes</span> <span class="pl-k">as</span> <span class="pl-s1">floating_axes</span> <span class="pl-c"># define patches </span> <span class="pl-k">def</span> <span class="pl-en">p1</span>(): <span class="pl-k">return</span> <span class="pl-s1">patches</span>.<span class="pl-v">Rectangle</span>( (<span class="pl-c1">0.1</span>, <span class="pl-c1">0.1</span>), <span class="pl-c"># (x,y)</span> <span class="pl-c1">0.4</span>, <span class="pl-c"># width</span> <span class="pl-c1">0.8</span>, <span class="pl-c"># height</span> <span class="pl-s1">linewidth</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">edgecolor</span><span class="pl-c1">=</span><span class="pl-s">'none'</span> ) <span class="pl-k">def</span> <span class="pl-en">p2</span>(): <span class="pl-k">return</span> <span class="pl-s1">patches</span>.<span class="pl-v">Rectangle</span>( (<span class="pl-c1">0.5</span>, <span class="pl-c1">0.1</span>), <span class="pl-c"># (x,y)</span> <span class="pl-c1">0.4</span>, <span class="pl-c"># width</span> <span class="pl-c1">0.8</span>, <span class="pl-c"># height</span> <span class="pl-s1">linewidth</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">edgecolor</span><span class="pl-c1">=</span><span class="pl-s">'none'</span> ) <span class="pl-c"># setup plots</span> <span class="pl-s1">fig1</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() <span class="pl-c"># rectilinear patches in subplot 1</span> <span class="pl-s1">ax1</span> <span class="pl-c1">=</span> <span class="pl-s1">fig1</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">121</span>, <span class="pl-s1">aspect</span><span class="pl-c1">=</span><span class="pl-s">'equal'</span>) <span class="pl-s1">ax1</span>.<span class="pl-en">add_patch</span>(<span class="pl-en">p1</span>()) <span class="pl-s1">ax1</span>.<span class="pl-en">add_patch</span>(<span class="pl-en">p2</span>()) <span class="pl-s1">plt</span>.<span class="pl-en">ylim</span>([<span class="pl-c1">0</span>,<span class="pl-c1">1</span>]) <span class="pl-s1">plt</span>.<span class="pl-en">xlim</span>([<span class="pl-c1">0</span>,<span class="pl-c1">1</span>]) <span class="pl-c"># make rotated version of the above in subplot 2</span> <span class="pl-s1">tr</span> <span class="pl-c1">=</span> <span class="pl-v">Affine2D</span>().<span class="pl-en">scale</span>(<span class="pl-c1">0.5</span>, <span class="pl-c1">0.5</span>).<span class="pl-en">translate</span>(<span class="pl-c1">0.6</span>,<span class="pl-c1">0</span>).<span class="pl-en">rotate_deg</span>(<span class="pl-c1">30</span>) <span class="pl-s1">grid_helper</span> <span class="pl-c1">=</span> <span class="pl-s1">floating_axes</span>.<span class="pl-v">GridHelperCurveLinear</span>(<span class="pl-s1">tr</span>, <span class="pl-s1">extremes</span><span class="pl-c1">=</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">1</span>)) <span class="pl-s1">ax2</span> <span class="pl-c1">=</span> <span class="pl-s1">floating_axes</span>.<span class="pl-v">FloatingSubplot</span>(<span class="pl-s1">fig1</span>, <span class="pl-c1">122</span>, <span class="pl-s1">grid_helper</span><span class="pl-c1">=</span><span class="pl-s1">grid_helper</span>) <span class="pl-s1">fig1</span>.<span class="pl-en">add_subplot</span>(<span class="pl-s1">ax2</span>) <span class="pl-s1">aux_ax</span> <span class="pl-c1">=</span> <span class="pl-s1">ax2</span>.<span class="pl-en">get_aux_axes</span>(<span class="pl-s1">tr</span>) <span class="pl-s1">aux_ax</span>.<span class="pl-en">add_patch</span>(<span class="pl-en">p1</span>()) <span class="pl-s1">aux_ax</span>.<span class="pl-en">add_patch</span>(<span class="pl-en">p2</span>()) <span class="pl-s1">plt</span>.<span class="pl-en">ylim</span>([<span class="pl-c1">0</span>,<span class="pl-c1">1</span>]) <span class="pl-s1">plt</span>.<span class="pl-en">xlim</span>([<span class="pl-c1">0</span>,<span class="pl-c1">1</span>]) <span class="pl-c"># save figures</span> <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test.pdf'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test.png'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto">The output for pdf shows two seams:</p> <p dir="auto"><a href="https://github.com/matplotlib/matplotlib/files/66066/test.pdf">test.pdf</a></p> <p dir="auto">The output for png only shows a seam for the rotated rectangular patches which is why this typically does not show up for colorbars output to png:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4295853/11885257/3e48cf36-a4dd-11e5-8d43-eca9d9fd2351.png"><img src="https://cloud.githubusercontent.com/assets/4295853/11885257/3e48cf36-a4dd-11e5-8d43-eca9d9fd2351.png" alt="test" style="max-width: 100%;"></a></p> <p dir="auto">Output to screen also has both seams:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4295853/11885559/d2fe50b0-a4dd-11e5-92b8-03d9f2eaffad.png"><img src="https://cloud.githubusercontent.com/assets/4295853/11885559/d2fe50b0-a4dd-11e5-92b8-03d9f2eaffad.png" alt="screenshot 2015-12-17 16 38 49" style="max-width: 100%;"></a></p> <p dir="auto">I can understand why the problem exists for pdf, e.g., <a href="http://www.mathworks.com/matlabcentral/answers/15388-artifacts-in-figures-exported-as-pdf-from-matlab" rel="nofollow">http://www.mathworks.com/matlabcentral/answers/15388-artifacts-in-figures-exported-as-pdf-from-matlab</a>. It is obviously not desirable that this happens, however, and a solution would be greatly appreciated.</p> <p dir="auto">Regardless, the rasterization process in the conversion to png should remove this problem.</p> <p dir="auto">The issue appears to be a graphical aliasing issue because the seam disappears in pdf when smoothing is turned off. However, this is not the default for most pdf viewers.</p> <p dir="auto">We have noticed that this problem can be slightly alleviated by two approaches</p> <ol dir="auto"> <li>edgecolor='face', linewidth=1 However, this distorts the shape of the polygons because colors can be mangled and make the cells appear to be different sizes, e.g., hexes are no longer hexagonal.</li> <li>Scale each polygon to be slightly bigger. This solves the problem but it is inelegant and resolution dependent and not a true solution for a vector graphic because the seam will show up at some plotted scale.</li> </ol> <p dir="auto">Is there an alternative approach we are missing that fixes this issue? We suspect that this may be at least a soft bug warranting a warning message in matplotlib if not a solid bug.</p>
<p dir="auto">This is the underlying problem raised in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6572843" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1178" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/1178/hovercard" href="https://github.com/matplotlib/matplotlib/pull/1178">#1178</a>.<br> It is illustrated by the test below; note that boundary anomalies are visible in all forms--agg on the screen, and pdf and svg displayed with a viewer--but in different places depending on the viewer and the size of the figure as rendered.<br> Note that the colorbar is rendered using pcolormesh, which has its own renderer with agg but otherwise is handled by draw_path_collection.</p> <pre class="notranslate">import numpy as np import matplotlib.pyplot as plt z = np.arange(150) z.shape = (10,15) fig, axs = plt.subplots(2,2) ax = axs[0,0] cs0 = ax.contourf(z, 20) cbar0 = fig.colorbar(cs0, ax=ax) ax = axs[0,1] cs1 = ax.contourf(z, 20, alpha=0.3) cbar1 = fig.colorbar(cs1, ax=ax) ax = axs[1,0] im2 = ax.imshow(z, interpolation='nearest') cbar2 = fig.colorbar(im2, ax=ax) ax = axs[1,1] im3 = ax.imshow(z, interpolation='nearest', alpha=0.3) cbar3 = fig.colorbar(im3, ax=ax) plt.savefig("test1.pdf") plt.savefig("test1.svg") plt.show() </pre>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/martinduparc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/martinduparc">@martinduparc</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/iPoul/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/iPoul">@iPoul</a></li> </ul> </li> </ul> <p dir="auto">The <code class="notranslate">Settings</code> should have a <code class="notranslate">branding?: boolean</code> property, as per the tinymce documentation: <a href="https://www.tinymce.com/docs/configure/editor-appearance/" rel="nofollow">https://www.tinymce.com/docs/configure/editor-appearance/</a></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andy-ms/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andy-ms">@andy-ms</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tkrotoff/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tkrotoff">@tkrotoff</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zaggino/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zaggino">@zaggino</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/micksatana/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/micksatana">@micksatana</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alex3165/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alex3165">@alex3165</a></p> <p dir="auto">I have this issue on SO:</p> <p dir="auto"><a href="https://stackoverflow.com/questions/49260387/express-router-file-has-a-typescript-error/49260575" rel="nofollow">https://stackoverflow.com/questions/49260387/express-router-file-has-a-typescript-error/49260575</a></p> <p dir="auto">I have a case where this doesn't compile:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as express from 'express'; let router = express.Router(); export = router;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">express</span> <span class="pl-k">from</span> <span class="pl-s">'express'</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">router</span> <span class="pl-c1">=</span> <span class="pl-s1">express</span><span class="pl-kos">.</span><span class="pl-en">Router</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">export</span> <span class="pl-c1">=</span> <span class="pl-s1">router</span><span class="pl-kos">;</span></pre></div> <p dir="auto">but this does:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as express from 'express'; let router = express.Router() as express.Router; export = router;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">express</span> <span class="pl-k">from</span> <span class="pl-s">'express'</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">router</span> <span class="pl-c1">=</span> <span class="pl-s1">express</span><span class="pl-kos">.</span><span class="pl-en">Router</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">as</span> <span class="pl-s1">express</span><span class="pl-kos">.</span><span class="pl-c1">Router</span><span class="pl-kos">;</span> <span class="pl-s1">export</span> <span class="pl-c1">=</span> <span class="pl-s1">router</span><span class="pl-kos">;</span></pre></div> <p dir="auto">seems superfluous and I am trying to figure out if it can be fixed.</p>
0
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; df = pd.DataFrame([[1, 2], [3, 4]], columns=['a', 'b']) &gt;&gt;&gt; ar = np.array(0) &gt;&gt;&gt; df.iloc[ar] Traceback (most recent call last): ... ... File &quot;/home/float2/Documents/Python/Pandas/pandas/pandas/core/indexes/base.py&quot;, line 529, in _shallow_copy_with_infer if not len(values) and 'dtype' not in kwargs: TypeError: object of type 'numpy.int64' has no len() "><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>], [<span class="pl-c1">3</span>, <span class="pl-c1">4</span>]], <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>]) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">ar</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-c1">0</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>.<span class="pl-s1">iloc</span>[<span class="pl-s1">ar</span>] <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): ... ... <span class="pl-v">File</span> <span class="pl-s">"/home/float2/Documents/Python/Pandas/pandas/pandas/core/indexes/base.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">529</span>, <span class="pl-s1">in</span> <span class="pl-s1">_shallow_copy_with_infer</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">len</span>(<span class="pl-s1">values</span>) <span class="pl-c1">and</span> <span class="pl-s">'dtype'</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">kwargs</span>: <span class="pl-v">TypeError</span>: <span class="pl-s1">object</span> <span class="pl-s1">of</span> <span class="pl-s1">type</span> <span class="pl-s">'numpy.int64'</span> <span class="pl-s1">has</span> <span class="pl-s1">no</span> <span class="pl-en">len</span>()</pre></div> <p dir="auto">A 0-d array passes <a href="https://github.com/pandas-dev/pandas/blob/1a23779f09abc6ebf908d66ee88b973b767e2e3c/pandas/core/indexing.py#L2090">this</a> check cause it is an Iterable. But later, when <strong>len()</strong> is called on, TypeError is raised.<br> It would be nice to implement <a href="https://www.python.org/dev/peps/pep-0357/" rel="nofollow">PEP 357</a> to prevent this error.<br> The matter has been raised at PyTorch project. <a href="https://github.com/pytorch/pytorch/pull/9237" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/9237/hovercard">#9237</a></p>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <p dir="auto">The code below works correctly.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df=pd.DataFrame([[1,2],[3,4]]) df.iloc[np.array([0])]"><pre class="notranslate"><span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>([[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>],[<span class="pl-c1">3</span>,<span class="pl-c1">4</span>]]) <span class="pl-s1">df</span>.<span class="pl-s1">iloc</span>[<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0</span>])]</pre></div> <p dir="auto">But the code below raises an error.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df.iloc[np.array(0)]"><pre class="notranslate"><span class="pl-s1">df</span>.<span class="pl-s1">iloc</span>[<span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-c1">0</span>)]</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: object of type 'numpy.int64' has no len()"><pre class="notranslate"><code class="notranslate">TypeError: object of type 'numpy.int64' has no len() </code></pre></div>
1