text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">Choose one: bug report (possibly)</p> <p dir="auto">I'm new to Babel and trying to figure out the correct way to make use of babel-external-helpers in a project that uses ES6 modules and targets Node and browsers.</p> <p dir="auto">I have a <a href="https://stackoverflow.com/questions/47504438/trouble-using-babel-external-helpers-with-es6-modules-babel-reordering-imports" rel="nofollow">lengthy question about this</a> on StackOverflow, and <a href="https://github.com/JLRishe/babel-helpers-e6-modules-issue">a repo</a> demonstrating the issue, but the SO question hasn't received much attention yet. In the interest of brevity, I'll give the condensed version here.</p> <p dir="auto">I've created a babel-external-helpers file with the <code class="notranslate">-t global</code> option, so I am referencing it in my index.js file like this so that it can run before everything else and add the helpers to the global scope:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import './babel-helpers'; export * from './fileThatNeedsExternalHelpers';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'./babel-helpers'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">'./fileThatNeedsExternalHelpers'</span><span class="pl-kos">;</span></pre></div> <p dir="auto">If I run this through Babel with the <code class="notranslate">env</code> preset and the <code class="notranslate">external-helpers</code> plugin, I get this output:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict'; Object.defineProperty(exports, &quot;__esModule&quot;, { value: true }); var _fileThatNeedsExternalHelpers = require('./fileThatNeedsExternalHelpers'); Object.keys(_fileThatNeedsExternalHelpers).forEach(function (key) { if (key === &quot;default&quot; || key === &quot;__esModule&quot;) return; Object.defineProperty(exports, key, { enumerable: true, get: function get() { return _fileThatNeedsExternalHelpers[key]; } }); }); require('./babel-helpers');"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">value</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_fileThatNeedsExternalHelpers</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./fileThatNeedsExternalHelpers'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">_fileThatNeedsExternalHelpers</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">key</span> <span class="pl-c1">===</span> <span class="pl-s">"default"</span> <span class="pl-c1">||</span> <span class="pl-s1">key</span> <span class="pl-c1">===</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">)</span> <span class="pl-k">return</span><span class="pl-kos">;</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">enumerable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-en">get</span>: <span class="pl-k">function</span> <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">_fileThatNeedsExternalHelpers</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./babel-helpers'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">We can see that what corresponds to the <code class="notranslate">import</code> has been moved to the end of the file, and my code won't run because my <code class="notranslate">fileThatNeedsExternalHelpers</code> needs the external helpers to be in the global scope when it executes (e.g. it uses syntax which, when transpiled, uses the <code class="notranslate">defineProperty</code> helper). If I manually edit the output file to move <code class="notranslate">require('./babel-helpers');</code> above the <code class="notranslate">var</code> line, everything runs fine.</p> <p dir="auto">So my questions are:</p> <ul dir="auto"> <li>What is the reason for rearranging imports and exports like this, and is there a (simple) way to control/suppress it?</li> <li>Am I going about using external helpers the wrong way? Is there a better approach? I believe I could put the helpers in a module and explicitly <code class="notranslate">import</code> them in each file that needs them, but that doesn't seem like a very good solution.</li> </ul> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>6.26.0</td> </tr> <tr> <td>node</td> <td>8.9.1</td> </tr> <tr> <td>npm</td> <td>5.0.3</td> </tr> <tr> <td>Operating System</td> <td>Win 10</td> </tr> </tbody> </table>
<p dir="auto">I have encountered something that's very likely a bug.<br> In the same module, the transpiled code for <code class="notranslate">export ... from ...</code> appears before the transpiled code for <code class="notranslate">import ...</code> in the output.<br> This scenario has already been asked <a href="http://discuss.babeljs.io/t/re-exports-hoisted-above-imports/773" rel="nofollow">here</a> - unfortunately without an answer.<br> I think this is a bug because the 2 following snippets should be equivalent:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import foo from 'foo'; export { default as bar } from 'bar';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">foo</span> <span class="pl-k">from</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span></pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import foo from 'foo'; import bar from 'bar'; export { bar }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">foo</span> <span class="pl-k">from</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">bar</span> <span class="pl-k">from</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import foo from 'foo'; export { default as bar } from 'bar';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">foo</span> <span class="pl-k">from</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span></pre></div> <p dir="auto">see the <a href="https://babeljs.io/repl/#?babili=false&amp;browsers=&amp;build=&amp;builtIns=false&amp;code_lz=JYWwDg9gTgLgBAMwhRUIjgciRTBuAKAFMAPSWOAbzgBMiEBDAVwBt4GBnOAIwajgC-qdFl5R8QA&amp;debug=false&amp;circleciRepo=&amp;evaluate=true&amp;lineWrap=false&amp;presets=es2015%2Ces2016%2Ces2017%2Creact%2Cstage-0%2Cstage-2&amp;targets=&amp;version=6.26.0" rel="nofollow">REPL</a></p> <h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3> <p dir="auto">Part of my <code class="notranslate">package.json</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;devDependencies&quot;: { &quot;babel-eslint&quot;: &quot;^7.2.3&quot;, &quot;babel-plugin-transform-decorators-legacy&quot;: &quot;^1.3.4&quot;, &quot;babel-preset-react-native&quot;: &quot;^4.0.0&quot;, &quot;eslint&quot;: &quot;^4.6.1&quot;, &quot;eslint-plugin-react&quot;: &quot;^7.3.0&quot;, &quot;react-test-renderer&quot;: &quot;16.0.0-alpha.12&quot; }, &quot;scripts&quot;: { &quot;start&quot;: &quot;react-native start&quot;, &quot;android&quot;: &quot;react-native run-android&quot;, &quot;ios&quot;: &quot;react-native run-ios&quot;, }, &quot;dependencies&quot;: { &quot;immutable&quot;: &quot;^3.8.1&quot;, &quot;prop-types&quot;: &quot;^15.5.10&quot;, &quot;react&quot;: &quot;16.0.0-alpha.12&quot;, &quot;react-native&quot;: &quot;0.47&quot;, &quot;react-navigation&quot;: &quot;^1.0.0-beta.11&quot;, &quot;react-redux&quot;: &quot;^5.0.6&quot;, &quot;redux&quot;: &quot;^3.7.2&quot;, &quot;redux-logger&quot;: &quot;^3.0.6&quot;, &quot;redux-promise&quot;: &quot;^0.5.3&quot;, &quot;redux-thunk&quot;: &quot;^2.2.0&quot; } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"devDependencies"</span>: <span class="pl-kos">{</span> <span class="pl-s">"babel-eslint"</span>: <span class="pl-s">"^7.2.3"</span><span class="pl-kos">,</span> <span class="pl-s">"babel-plugin-transform-decorators-legacy"</span>: <span class="pl-s">"^1.3.4"</span><span class="pl-kos">,</span> <span class="pl-s">"babel-preset-react-native"</span>: <span class="pl-s">"^4.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"eslint"</span>: <span class="pl-s">"^4.6.1"</span><span class="pl-kos">,</span> <span class="pl-s">"eslint-plugin-react"</span>: <span class="pl-s">"^7.3.0"</span><span class="pl-kos">,</span> <span class="pl-s">"react-test-renderer"</span>: <span class="pl-s">"16.0.0-alpha.12"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"scripts"</span>: <span class="pl-kos">{</span> <span class="pl-s">"start"</span>: <span class="pl-s">"react-native start"</span><span class="pl-kos">,</span> <span class="pl-s">"android"</span>: <span class="pl-s">"react-native run-android"</span><span class="pl-kos">,</span> <span class="pl-s">"ios"</span>: <span class="pl-s">"react-native run-ios"</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"dependencies"</span>: <span class="pl-kos">{</span> <span class="pl-s">"immutable"</span>: <span class="pl-s">"^3.8.1"</span><span class="pl-kos">,</span> <span class="pl-s">"prop-types"</span>: <span class="pl-s">"^15.5.10"</span><span class="pl-kos">,</span> <span class="pl-s">"react"</span>: <span class="pl-s">"16.0.0-alpha.12"</span><span class="pl-kos">,</span> <span class="pl-s">"react-native"</span>: <span class="pl-s">"0.47"</span><span class="pl-kos">,</span> <span class="pl-s">"react-navigation"</span>: <span class="pl-s">"^1.0.0-beta.11"</span><span class="pl-kos">,</span> <span class="pl-s">"react-redux"</span>: <span class="pl-s">"^5.0.6"</span><span class="pl-kos">,</span> <span class="pl-s">"redux"</span>: <span class="pl-s">"^3.7.2"</span><span class="pl-kos">,</span> <span class="pl-s">"redux-logger"</span>: <span class="pl-s">"^3.0.6"</span><span class="pl-kos">,</span> <span class="pl-s">"redux-promise"</span>: <span class="pl-s">"^0.5.3"</span><span class="pl-kos">,</span> <span class="pl-s">"redux-thunk"</span>: <span class="pl-s">"^2.2.0"</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">The behavior should be equivalent to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import foo from 'foo'; import bar from 'bar'; export { bar }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">foo</span> <span class="pl-k">from</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">bar</span> <span class="pl-k">from</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Currently the code gets executed as if it was written like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export { default as bar } from 'bar'; import foo from 'foo';"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">foo</span> <span class="pl-k">from</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><code class="notranslate">'bar'</code> is required before <code class="notranslate">'foo'</code> no matter what exactly is put between <code class="notranslate">export</code> and <code class="notranslate">from</code> (e.g. the problem also occurs for <code class="notranslate">export * from ...</code>).</p> <h3 dir="auto">Context</h3> <p dir="auto">I am exporting multiple moddules from an <code class="notranslate">index.js</code> file.<br> All exports depend on some code that must have been run.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import &quot;./this_code_must_be_run_before_the_exports&quot; export * from &quot;./first&quot; export * from &quot;./second&quot;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">"./this_code_must_be_run_before_the_exports"</span> <span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">"./first"</span> <span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">"./second"</span></pre></div> <h3 dir="auto">Your Environment</h3> <p dir="auto">I am using babel with React Native.</p> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>latest (<a href="https://babeljs.io/repl/" rel="nofollow">https://babeljs.io/repl/</a>)</td> </tr> <tr> <td>node</td> <td>8.7.0</td> </tr> <tr> <td>npm</td> <td>5.4.2</td> </tr> <tr> <td>Operating System</td> <td>macOS 10.12.6</td> </tr> </tbody> </table>
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>6.0.0-beta.11</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>macOS 10.14.5</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>6.0.0-beta.10</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto"><code class="notranslate">systemPreferences.isDarkMode()</code> should return <code class="notranslate">true</code> when the system is in dark mode.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto"><code class="notranslate">systemPreferences.isDarkMode()</code> always returns <code class="notranslate">false</code>.</p> <h3 dir="auto">To Reproduce</h3> <ul dir="auto"> <li>Open Electron</li> <li>Open Developer Tools Console</li> <li>Execute the following commands: <ul dir="auto"> <li><code class="notranslate">const electron = require('electron');</code></li> <li><code class="notranslate">electron.remote.systemPreferences.isDarkMode();</code></li> </ul> </li> <li>Observe that the return value is <code class="notranslate">false</code> even if the system is in Dark Mode.</li> </ul> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1566516/60308594-7f596600-9941-11e9-8b4c-5cb59df9bd0b.png"><img width="872" alt="Screenshot 2019-06-28 at 01 10 04" src="https://user-images.githubusercontent.com/1566516/60308594-7f596600-9941-11e9-8b4c-5cb59df9bd0b.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional Information</h3> <p dir="auto">I believe this bug was probably introduced in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="460005006" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/18958" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/18958/hovercard" href="https://github.com/electron/electron/pull/18958">#18958</a>.</p>
<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>5.0.6</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>macOS 10.15 Developer Beta 2 (19A487l)</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>5.0.x (worked before Catalina)</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto"><code class="notranslate">systemPreferences.isDarkMode</code> on macOS 10.15 Catalina should report whether it's in dark mode or not, even when set to Auto Mode (based on time of day). Electron 5.0.6 fixed some of the issues from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="458932394" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/18913" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/18913/hovercard" href="https://github.com/electron/electron/issues/18913">#18913</a> , but isn't working correctly.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto"><code class="notranslate">systemPreferences.isDarkMode</code> is always reporting to be false.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Repository: <a href="https://github.com/hyperspacedev/hyperspace">https://github.com/hyperspacedev/hyperspace</a></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/hyperspacedev/hyperspace -b catalina-vibrancy $ npm install $ npm run electrify"><pre class="notranslate">$ git clone https://github.com/hyperspacedev/hyperspace -b catalina-vibrancy $ npm install $ npm run electrify</pre></div> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13445064/60265918-e7ae3600-98b4-11e9-8519-6a114ff52790.png"><img width="1440" alt="Screen Shot 2019-06-27 at 08 23 18" src="https://user-images.githubusercontent.com/13445064/60265918-e7ae3600-98b4-11e9-8519-6a114ff52790.png" style="max-width: 100%;"></a></p> Dark mode reports to be `false` here and is expected because it's in light mode. <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13445064/60265936-f5fc5200-98b4-11e9-98f7-caba828f9e2a.png"><img width="1440" alt="Screen Shot 2019-06-27 at 08 23 33" src="https://user-images.githubusercontent.com/13445064/60265936-f5fc5200-98b4-11e9-98f7-caba828f9e2a.png" style="max-width: 100%;"></a></p> Dark mode reports to be `false` here as well since, at the time of Auto Mode, it shouldn't be in dark mode. <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13445064/60265976-0b717c00-98b5-11e9-8d5a-6a7b7ee50c58.png"><img width="1440" alt="Screen Shot 2019-06-27 at 08 23 25" src="https://user-images.githubusercontent.com/13445064/60265976-0b717c00-98b5-11e9-8d5a-6a7b7ee50c58.png" style="max-width: 100%;"></a></p> However, dark mode reports to be `false` here, even though that isn't true. <h3 dir="auto">Additional Information</h3> <p dir="auto">I speculate that the name of the dark appearance might have changed.</p>
1
<p dir="auto">Hi --<br> According to what I'm hearing in the community, there is a feature request in to allow for setting a ttl at the index level rather than only at the doc level. See here: <a href="https://discuss.elastic.co/t/set-a--ttl-value-at-the-index-level/31668/3" rel="nofollow">https://discuss.elastic.co/t/set-a--ttl-value-at-the-index-level/31668/3</a> where theuntergeek -- Aaron Mildenstein says "there is no index-level TTL presently. There's a feature request issue out for it (I forget the number), but it has not yet been added." and <a href="https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775" rel="nofollow">https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775</a> where warkolm (Mark Walkom) responded to my request about how to track such a feature with "It'd be in here - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="129156" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/1" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/1/hovercard" href="https://github.com/elastic/elasticsearch/issues/1">#1</a>. If you find it, please link it here so others can benefit <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji> (I couldn't find it!)"</p> <p dir="auto">I've checked in issues and features and am not finding anything. Can someone please point me to where to track this feature request? I'm surprised there isn't more noise about this one, since it would make index maintenance much simpler.</p> <p dir="auto">Thanks,<br> Casie</p>
<p dir="auto">Allow setting ttl to index, so the whole index gets deleted when expired</p>
1
<p dir="auto">I have run the cuda version of cascade classifier in OpenCV 2.4.11 on cpu and a 860M GPU. The results can be wildly different in terms of being accurate. To a point where a detected object that was found in CPU has the same rectangle size on GPU version, but in a location that is way off. I need to know if anyone has experienced this. If you have. Did you retrain the classifier on that GPU?</p> <p dir="auto">I have tested my trained data(2.4.11) in OpenCV 2.4.11 cpu. I then was like well let me update the code base to use 3.2. Same, thing. Wildly different. Sometimes its correct sometimes it isn't.</p> <p dir="auto">I'm using LPB and blasting full 1920x1080 images at it.</p> <p dir="auto">This is a bug and a question.</p>
<h3 dir="auto">My system</h3> <ul dir="auto"> <li>OpenCV version: 3.1</li> <li>Host OS: Linux (Ubuntu 14.04)</li> <li>CPU: intel i7 3770</li> <li>Video card: GTX-950</li> <li>Video driver: v.352.93</li> </ul> <h3 dir="auto">In which part of the OpenCV library you got the issue?</h3> <ul dir="auto"> <li>objdetect, cudaobjdetect</li> <li>cv::CascadeClassifier, cv::cuda::CascadeClassifier</li> </ul> <h3 dir="auto">Expected behaviour</h3> <p dir="auto">I built the latest OpenCV version with cuda support from master branch. After that I tried to use CPU cv::CascadeClassifier and GPU cv::cuda::CascadeClassifier, but faced with a strange result. I use same xml from opencv/data/haarcascades_cuda/haarcascade_fullbody.xml for both CPU and GPU version of CascadeClassifier. CPU Classifier with this xml shows much more objects than GPU classifier.</p> <p dir="auto">Another strange thing, that when I set ScaleFactor to 2, speed of CPU version boosted up to 4 times, but GPU version becomes just slightly faster.</p> <h3 dir="auto">Additional description</h3> <p dir="auto"><a href="http://answers.opencv.org/question/96452/different-results-of-cascadeclasifier-on-cpu-and-gpu/" rel="nofollow">OpencvQA</a><br> <a href="https://github.com/Itseez/opencv/files/320887/example.ogv.zip">Video demo: example.ogv.zip</a><br> <a href="https://github.com/Itseez/opencv/files/322422/example_v2.ogv.zip">Video demo with same parameters values: example_v2.ogv.zip</a></p> <h3 dir="auto">Code example to reproduce the issue</h3> <p dir="auto"><a href="https://bitbucket.org/barbatum/cascadeqa/raw/571cdafc1b230cb5ec5d2c7b6b766895549d2d1e/CascadeQA/main.cpp" rel="nofollow">Bitbucket: main.cpp</a><br> <a href="https://bitbucket.org/barbatum/cascadeqa" rel="nofollow">Bitbucket: qmake project + deps build bash script</a></p>
1
<ul dir="auto"> <li>I tried this code:</li> </ul> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Stringify { fn to_string(&amp;self) -&gt; String; } impl Stringify for u32 { fn to_string(&amp;self) -&gt; String { format!(&quot;u32: {}&quot;, *self) } } impl Stringify for f32 { fn to_string(&amp;self) -&gt; String { format!(&quot;f32: {}&quot;, *self) } } fn print&lt;T: Stringify&gt;(x: T) { println!(&quot;{}&quot;, x.to_string()); } fn main() { print(5); print(5.0); }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Stringify</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">to_string</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">String</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span> <span class="pl-smi">Stringify</span> <span class="pl-k">for</span> <span class="pl-smi">u32</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">to_string</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">String</span> <span class="pl-kos">{</span> <span class="pl-en">format</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"u32: {}"</span>, *<span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span> <span class="pl-smi">Stringify</span> <span class="pl-k">for</span> <span class="pl-smi">f32</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">to_string</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">String</span> <span class="pl-kos">{</span> <span class="pl-en">format</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"f32: {}"</span>, *<span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">print</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">Stringify</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, x.to_string<span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">print</span><span class="pl-kos">(</span><span class="pl-c1">5</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-c1">5.0</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <ul dir="auto"> <li>I expected to see this happen:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="u32: 5 f32: 5.0"><pre class="notranslate"><code class="notranslate">u32: 5 f32: 5.0 </code></pre></div> <ul dir="auto"> <li>Instead, this happened:</li> </ul> <p dir="auto">error: internal compiler error: Impl DefId { krate: 0, node: 12 }:u32.Stringify was matchable against Obligation(predicate=Binder(TraitPredicate(Stringify)),depth=0) but now is not<br> note: the compiler unexpectedly panicked. this is a bug.<br> note: we would appreciate a bug report: <a href="https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports">https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports</a><br> note: run with <code class="notranslate">RUST_BACKTRACE=1</code> for a backtrace</p> <h2 dir="auto">Meta</h2> <p dir="auto">rustc 1.0.0-nightly (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/199bdcfeff5cfafd1f8e8ff583d7209272469879/hovercard" href="https://github.com/rust-lang/rust/commit/199bdcfeff5cfafd1f8e8ff583d7209272469879"><tt>199bdcf</tt></a> 2015-03-26) (built 2015-03-26)<br> binary: rustc<br> commit-hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/199bdcfeff5cfafd1f8e8ff583d7209272469879/hovercard" href="https://github.com/rust-lang/rust/commit/199bdcfeff5cfafd1f8e8ff583d7209272469879"><tt>199bdcf</tt></a><br> commit-date: 2015-03-26<br> build-date: 2015-03-26<br> host: x86_64-apple-darwin<br> release: 1.0.0-nightly</p> <ul dir="auto"> <li>Backtrace:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' panicked at 'Box&lt;Any&gt;', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:190 stack backtrace: 1: 0x10cdac8b4 - sys::backtrace::write::h56b628caa3d9f4e2WBD 2: 0x10cdd7a08 - panicking::on_panic::ha7bc09956d9f12916rJ 3: 0x10ccf499e - rt::unwind::begin_unwind_inner::h5ef900798574fe5egaJ 4: 0x10c4ec45e - rt::unwind::begin_unwind::h2748891250859470333 5: 0x10c4ecc89 - diagnostic::Handler::bug::h57426bf76a5037d4pgB 6: 0x10a06b4bf - middle::traits::select::SelectionContext&lt;'cx, 'tcx&gt;::rematch_impl::h3b4e834c3872ae21NVR 7: 0x10a06ab56 - middle::infer::InferCtxt&lt;'a, 'tcx&gt;::try::h6881848181392734290 8: 0x10a0510c4 - middle::traits::select::SelectionContext&lt;'cx, 'tcx&gt;::confirm_candidate::ha7bb241f7d3cdb480iR 9: 0x10a025b8d - middle::traits::select::SelectionContext&lt;'cx, 'tcx&gt;::select::hb97262a482e0a260koP 10: 0x10a0225e0 - middle::traits::fulfill::FulfillmentContext&lt;'tcx&gt;::select::hcffa8f4e81b26cc8HhN 11: 0x10a021aee - middle::traits::fulfill::FulfillmentContext&lt;'tcx&gt;::select_where_possible::h0a2ed0d6733c5352VgN 12: 0x10942d473 - check::vtable::select_fcx_obligations_where_possible::h796cff45179b9501A4b 13: 0x10942cfc3 - check::vtable::select_all_fcx_obligations_and_apply_defaults::hfadb66c912bf39a2X0b 14: 0x1094de47e - check::check_bare_fn::heb3c8094aebf74083nn 15: 0x1094d68eb - check::check_item::h25c21617996c325dOGn 16: 0x1095afed6 - check_crate::closure.35998 17: 0x1095aad9a - check_crate::haa845b167eb64ccfOmC 18: 0x1092e4477 - driver::phase_3_run_analysis_passes::h8f332883f9aa5c0arGa 19: 0x1092ca4b7 - driver::compile_input::h0311d7070ac04983Rba 20: 0x109384093 - run_compiler::hbe451b463527cb69s2b 21: 0x109381bb5 - thunk::F.Invoke&lt;A, R&gt;::invoke::h777505636365567823 22: 0x109380f77 - rt::unwind::try::try_fn::h5237749675862334843 23: 0x10ce5dfa8 - rust_try_inner 24: 0x10ce5df95 - rust_try 25: 0x109381315 - thunk::F.Invoke&lt;A, R&gt;::invoke::h424791141543398798 26: 0x10cdc299d - sys::thread::create::thread_start::h760927331a49c0e267H 27: 0x7fff91d6b267 - _pthread_body 28: 0x7fff91d6b1e4 - _pthread_start"><pre class="notranslate"><code class="notranslate">thread 'rustc' panicked at 'Box&lt;Any&gt;', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:190 stack backtrace: 1: 0x10cdac8b4 - sys::backtrace::write::h56b628caa3d9f4e2WBD 2: 0x10cdd7a08 - panicking::on_panic::ha7bc09956d9f12916rJ 3: 0x10ccf499e - rt::unwind::begin_unwind_inner::h5ef900798574fe5egaJ 4: 0x10c4ec45e - rt::unwind::begin_unwind::h2748891250859470333 5: 0x10c4ecc89 - diagnostic::Handler::bug::h57426bf76a5037d4pgB 6: 0x10a06b4bf - middle::traits::select::SelectionContext&lt;'cx, 'tcx&gt;::rematch_impl::h3b4e834c3872ae21NVR 7: 0x10a06ab56 - middle::infer::InferCtxt&lt;'a, 'tcx&gt;::try::h6881848181392734290 8: 0x10a0510c4 - middle::traits::select::SelectionContext&lt;'cx, 'tcx&gt;::confirm_candidate::ha7bb241f7d3cdb480iR 9: 0x10a025b8d - middle::traits::select::SelectionContext&lt;'cx, 'tcx&gt;::select::hb97262a482e0a260koP 10: 0x10a0225e0 - middle::traits::fulfill::FulfillmentContext&lt;'tcx&gt;::select::hcffa8f4e81b26cc8HhN 11: 0x10a021aee - middle::traits::fulfill::FulfillmentContext&lt;'tcx&gt;::select_where_possible::h0a2ed0d6733c5352VgN 12: 0x10942d473 - check::vtable::select_fcx_obligations_where_possible::h796cff45179b9501A4b 13: 0x10942cfc3 - check::vtable::select_all_fcx_obligations_and_apply_defaults::hfadb66c912bf39a2X0b 14: 0x1094de47e - check::check_bare_fn::heb3c8094aebf74083nn 15: 0x1094d68eb - check::check_item::h25c21617996c325dOGn 16: 0x1095afed6 - check_crate::closure.35998 17: 0x1095aad9a - check_crate::haa845b167eb64ccfOmC 18: 0x1092e4477 - driver::phase_3_run_analysis_passes::h8f332883f9aa5c0arGa 19: 0x1092ca4b7 - driver::compile_input::h0311d7070ac04983Rba 20: 0x109384093 - run_compiler::hbe451b463527cb69s2b 21: 0x109381bb5 - thunk::F.Invoke&lt;A, R&gt;::invoke::h777505636365567823 22: 0x109380f77 - rt::unwind::try::try_fn::h5237749675862334843 23: 0x10ce5dfa8 - rust_try_inner 24: 0x10ce5df95 - rust_try 25: 0x109381315 - thunk::F.Invoke&lt;A, R&gt;::invoke::h424791141543398798 26: 0x10cdc299d - sys::thread::create::thread_start::h760927331a49c0e267H 27: 0x7fff91d6b267 - _pthread_body 28: 0x7fff91d6b1e4 - _pthread_start </code></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#[no_std]; #[lang=&quot;start&quot;] mod x {} fn main() {}"><pre class="notranslate"><span class="pl-c1">#<span class="pl-kos">[</span>no_std<span class="pl-kos">]</span></span><span class="pl-kos">;</span> <span class="pl-c1">#<span class="pl-kos">[</span>lang=<span class="pl-s">"start"</span><span class="pl-kos">]</span></span> <span class="pl-k">mod</span> x <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: node_id_to_type: no type for node `mod x (id=2)`"><pre class="notranslate"><code class="notranslate">error: internal compiler error: node_id_to_type: no type for node `mod x (id=2)` </code></pre></div>
0
<p dir="auto">Replace pending dubbo-config-api hard coded values with constant and small refactoring to optimize code.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.x</li> <li>Operating System version: all</li> <li>Java version: all</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">1.Define an interface that have multiple methods with the same name and different argument types.<br> 2.Config every overload method with different parameters.<br> 3.Methods configed later will overwrite the previously configed method.</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">Hello everyone,</p> <p dir="auto">I am having an issue when finetuning OpenAI's Whisper Medium on Mozilla's Common Voice 11 Dataset with the Arabic language.<br> The training and validation loss are both decreasing but the WER is being 100% after some steps (specially when the loss becomes &lt; 1) and I see that the model is performing well and that WER is just miscalculated.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/96656595/232808398-936c0e2b-f8b3-4289-a6bd-f21f64236efe.png"><img src="https://user-images.githubusercontent.com/96656595/232808398-936c0e2b-f8b3-4289-a6bd-f21f64236efe.png" alt="hf_issue" style="max-width: 100%;"></a></p> <p dir="auto">Notes :</p> <ul dir="auto"> <li>This error is just happening with the medium model, other models (small, tiny, large-v2 ,etc.) are working fine.</li> <li>I am following the famous blog about Whisper's finetuning (<a href="https://huggingface.co/blog/fine-tune-whisper" rel="nofollow">https://huggingface.co/blog/fine-tune-whisper</a>).<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sanchit-gandhi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sanchit-gandhi">@sanchit-gandhi</a></li> </ul>
0
<p dir="auto">If I am logged in to freecodecamp.com or <a href="http://www.freecodecamp.com" rel="nofollow">www.freecodecamp.com</a> my session/login is not shared when I visit the other.</p> <p dir="auto">I don't know if this is a "bug", but I notice it occasionally, when I catch a link from another user in chat.</p>
1
<ul dir="auto"> <li><strong>Electron Version</strong>: <ul dir="auto"> <li>5.0.0-beta (all)</li> </ul> </li> <li><strong>Operating System</strong>: <ul dir="auto"> <li>Ubuntu 18.10, Linux 4.18, x64</li> </ul> </li> <li><strong>Last known working Electron version</strong> (if applicable): <ul dir="auto"> <li>4.0.5</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Google API should work as it they are meant to.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Any Google API calls may crash renderer process (even if they are run on Worker thread).<br> The request may be done and the answer given, but immediately or after several seconds the renderer process may crash.</p> <h3 dir="auto">To Reproduce</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/ruslang02/youtube-electron-crash-example $ npm install electron@beta $ npm start || electron ."><pre class="notranslate">$ git clone https://github.com/ruslang02/youtube-electron-crash-example $ npm install electron@beta $ npm start <span class="pl-k">||</span> electron <span class="pl-c1">.</span></pre></div> <p dir="auto">Version 5 will randomly crash, version 4: doesn't</p> <h3 dir="auto">Additional Information</h3> <p dir="auto">May be a Node.JS bug, but not sure</p>
<ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>v5.0.0-beta.5</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>Windows 10 Pro.</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong>: <ul dir="auto"> <li>4.x (latest)</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">When I perfrom a GET-request using <code class="notranslate">http</code> or <code class="notranslate">https</code> built-in library, I expect the app to keep running after the request completes.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">When performing a GET request to an arbitrary host, the app crashes after <strong>a few seconds after completing the request</strong>. Usually ranges between 5 and 20 seconds.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto"><a href="https://github.com/haroldiedema/electron-5x-http-crash">https://github.com/haroldiedema/electron-5x-http-crash</a></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/haroldiedema/electron-5x-http-crash $ npm install $ node_modules/.bin/electron ."><pre class="notranslate">$ git clone https://github.com/haroldiedema/electron-5x-http-crash $ npm install $ node_modules/.bin/electron <span class="pl-c1">.</span></pre></div> <p dir="auto">Sit back and wait for a few seconds for the app to crash with exit code 127. (or exit code 1 if started from npm or yarn).</p> <h3 dir="auto">Screenshots</h3> <p dir="auto">N/A</p> <h3 dir="auto">Additional Information</h3> <p dir="auto">I think this might have something to do with either:<br> A) Electron not handling the closing of sockets correctly anymore, or<br> B) The garbage collector kicking in and cleaning up the socket resource which makes electron crash.</p> <p dir="auto">Then again, that is purely speculation on my end.</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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.1</li> <li>Operating System version: mac os 10.14.4</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>Spring Boot Dubbo Consul start</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.IllegalStateException: Failed to register dubbo://192.168.0.184:20880/com.ejlerp.cache.api.HashCacher?anyhost=true&amp;application=ejlerp-cache-provider&amp;application.version=master&amp;bean.name=providers:dubbo:com.ejlerp.cache.api.HashCacher:0.1&amp;default.deprecated=false&amp;default.dynamic=false&amp;default.register=true&amp;default.retries=0&amp;default.timeout=6000&amp;deprecated=false&amp;dubbo=2.0.2&amp;dynamic=false&amp;generic=false&amp;interface=com.ejlerp.cache.api.HashCacher&amp;methods=hasKey,keys,values,increment,del,expireAt,delete,ttl,put,exist,entries,size,get,putAll,expire,putIfAbsent&amp;organization=egenie&amp;owner=dani&amp;pid=11049&amp;register=true&amp;release=2.7.1&amp;revision=10.0.0-SNAPSHOT&amp;side=provider&amp;threadpool=cached&amp;timestamp=1554355820115&amp;version=0.1 to registry 192.168.0.230:8500, cause: OperationException(statusCode=400, statusMessage='Bad Request', statusContent='Invalid Service Meta: Couldn't load metadata pair ('url', 'dubbo://192.168.0.184:20880/com.ejlerp.cache.api.HashCacher?anyhost=true&amp;application=ejlerp-cache-provider&amp;application.version=master&amp;bean.name=providers:dubbo:com.ejlerp.cache.api.HashCacher:0.1&amp;default.deprecated=false&amp;default.dynamic=false&amp;default.register=true&amp;default.retries=0&amp;default.timeout=6000&amp;deprecated=false&amp;dubbo=2.0.2&amp;dynamic=false&amp;generic=false&amp;interface=com.ejlerp.cache.api.HashCacher&amp;methods=hasKey,keys,values,increment,del,expireAt,delete,ttl,put,exist,entries,size,get,putAll,expire,putIfAbsent&amp;organization=egenie&amp;owner=dani&amp;pid=11049&amp;register=true&amp;release=2.7.1&amp;revision=10.0.0-SNAPSHOT&amp;side=provider&amp;threadpool=cached&amp;timestamp=1554355820115&amp;version=0.1'): Value is too long (limit: 512 characters)') at org.apache.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:244) at org.apache.dubbo.registry.consul.ConsulRegistry.register(ConsulRegistry.java:90) at org.apache.dubbo.registry.integration.RegistryProtocol.register(RegistryProtocol.java:160) at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:194) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:106) at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:55) at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:61) at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:559) at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:417) at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:375) at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:337) at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:319) at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:113) at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:59) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:886) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:161) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386) at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1242) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1230) at com.ejlerp.cache.CacheProvider.main(CacheProvider.java:20) Caused by: com.ecwid.consul.v1.OperationException: OperationException(statusCode=400, statusMessage='Bad Request', statusContent='Invalid Service Meta: Couldn't load metadata pair ('url', 'dubbo://192.168.0.184:20880/com.ejlerp.cache.api.HashCacher?anyhost=true&amp;application=ejlerp-cache-provider&amp;application.version=master&amp;bean.name=providers:dubbo:com.ejlerp.cache.api.HashCacher:0.1&amp;default.deprecated=false&amp;default.dynamic=false&amp;default.register=true&amp;default.retries=0&amp;default.timeout=6000&amp;deprecated=false&amp;dubbo=2.0.2&amp;dynamic=false&amp;generic=false&amp;interface=com.ejlerp.cache.api.HashCacher&amp;methods=hasKey,keys,values,increment,del,expireAt,delete,ttl,put,exist,entries,size,get,putAll,expire,putIfAbsent&amp;organization=egenie&amp;owner=dani&amp;pid=11049&amp;register=true&amp;release=2.7.1&amp;revision=10.0.0-SNAPSHOT&amp;side=provider&amp;threadpool=cached&amp;timestamp=1554355820115&amp;version=0.1'): Value is too long (limit: 512 characters)') at com.ecwid.consul.v1.agent.AgentConsulClient.agentServiceRegister(AgentConsulClient.java:278) at com.ecwid.consul.v1.agent.AgentConsulClient.agentServiceRegister(AgentConsulClient.java:265) at com.ecwid.consul.v1.ConsulClient.agentServiceRegister(ConsulClient.java:305) at org.apache.dubbo.registry.consul.ConsulRegistry.doRegister(ConsulRegistry.java:95) at org.apache.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:231)"><pre class="notranslate"><code class="notranslate">java.lang.IllegalStateException: Failed to register dubbo://192.168.0.184:20880/com.ejlerp.cache.api.HashCacher?anyhost=true&amp;application=ejlerp-cache-provider&amp;application.version=master&amp;bean.name=providers:dubbo:com.ejlerp.cache.api.HashCacher:0.1&amp;default.deprecated=false&amp;default.dynamic=false&amp;default.register=true&amp;default.retries=0&amp;default.timeout=6000&amp;deprecated=false&amp;dubbo=2.0.2&amp;dynamic=false&amp;generic=false&amp;interface=com.ejlerp.cache.api.HashCacher&amp;methods=hasKey,keys,values,increment,del,expireAt,delete,ttl,put,exist,entries,size,get,putAll,expire,putIfAbsent&amp;organization=egenie&amp;owner=dani&amp;pid=11049&amp;register=true&amp;release=2.7.1&amp;revision=10.0.0-SNAPSHOT&amp;side=provider&amp;threadpool=cached&amp;timestamp=1554355820115&amp;version=0.1 to registry 192.168.0.230:8500, cause: OperationException(statusCode=400, statusMessage='Bad Request', statusContent='Invalid Service Meta: Couldn't load metadata pair ('url', 'dubbo://192.168.0.184:20880/com.ejlerp.cache.api.HashCacher?anyhost=true&amp;application=ejlerp-cache-provider&amp;application.version=master&amp;bean.name=providers:dubbo:com.ejlerp.cache.api.HashCacher:0.1&amp;default.deprecated=false&amp;default.dynamic=false&amp;default.register=true&amp;default.retries=0&amp;default.timeout=6000&amp;deprecated=false&amp;dubbo=2.0.2&amp;dynamic=false&amp;generic=false&amp;interface=com.ejlerp.cache.api.HashCacher&amp;methods=hasKey,keys,values,increment,del,expireAt,delete,ttl,put,exist,entries,size,get,putAll,expire,putIfAbsent&amp;organization=egenie&amp;owner=dani&amp;pid=11049&amp;register=true&amp;release=2.7.1&amp;revision=10.0.0-SNAPSHOT&amp;side=provider&amp;threadpool=cached&amp;timestamp=1554355820115&amp;version=0.1'): Value is too long (limit: 512 characters)') at org.apache.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:244) at org.apache.dubbo.registry.consul.ConsulRegistry.register(ConsulRegistry.java:90) at org.apache.dubbo.registry.integration.RegistryProtocol.register(RegistryProtocol.java:160) at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:194) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:106) at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:55) at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:61) at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:559) at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:417) at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:375) at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:337) at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:319) at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:113) at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:59) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:886) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:161) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386) at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1242) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1230) at com.ejlerp.cache.CacheProvider.main(CacheProvider.java:20) Caused by: com.ecwid.consul.v1.OperationException: OperationException(statusCode=400, statusMessage='Bad Request', statusContent='Invalid Service Meta: Couldn't load metadata pair ('url', 'dubbo://192.168.0.184:20880/com.ejlerp.cache.api.HashCacher?anyhost=true&amp;application=ejlerp-cache-provider&amp;application.version=master&amp;bean.name=providers:dubbo:com.ejlerp.cache.api.HashCacher:0.1&amp;default.deprecated=false&amp;default.dynamic=false&amp;default.register=true&amp;default.retries=0&amp;default.timeout=6000&amp;deprecated=false&amp;dubbo=2.0.2&amp;dynamic=false&amp;generic=false&amp;interface=com.ejlerp.cache.api.HashCacher&amp;methods=hasKey,keys,values,increment,del,expireAt,delete,ttl,put,exist,entries,size,get,putAll,expire,putIfAbsent&amp;organization=egenie&amp;owner=dani&amp;pid=11049&amp;register=true&amp;release=2.7.1&amp;revision=10.0.0-SNAPSHOT&amp;side=provider&amp;threadpool=cached&amp;timestamp=1554355820115&amp;version=0.1'): Value is too long (limit: 512 characters)') at com.ecwid.consul.v1.agent.AgentConsulClient.agentServiceRegister(AgentConsulClient.java:278) at com.ecwid.consul.v1.agent.AgentConsulClient.agentServiceRegister(AgentConsulClient.java:265) at com.ecwid.consul.v1.ConsulClient.agentServiceRegister(ConsulClient.java:305) at org.apache.dubbo.registry.consul.ConsulRegistry.doRegister(ConsulRegistry.java:95) at org.apache.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:231) </code></pre></div>
<ul dir="auto"> <li>[√] I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li>[√] I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: MacOS 10</li> <li>Java version: Oracle JDK 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">Cannot configure zookeeper cluster address after using multiple registry</p> <p dir="auto">Only one address can be configured when using multiple:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;dubbo:registry address=&quot; multiple://127.0.0.1? reference-registry=zookeeper://127.0.0.1:2182,sofa://127.0.0.1:9603&amp;amp; service-registry=zookeeper://127.0.0.1:2182,sofa://127.0.0.1:9603&quot;/&gt;"><pre class="notranslate"><code class="notranslate"> &lt;dubbo:registry address=" multiple://127.0.0.1? reference-registry=zookeeper://127.0.0.1:2182,sofa://127.0.0.1:9603&amp;amp; service-registry=zookeeper://127.0.0.1:2182,sofa://127.0.0.1:9603"/&gt; </code></pre></div> <p dir="auto">If you use the backup field, could only add one more address:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;dubbo:registry address=&quot; multiple://127.0.0.1? reference-registry=zookeeper://127.0.0.1:2182?backup=127.0.0.1:2181,sofa://127.0.0.1:9603&amp;amp; service-registry=zookeeper://127.0.0.1:2182?backup=127.0.0.1:2181,sofa://127.0.0.1:9603&quot;/&gt;"><pre class="notranslate"><code class="notranslate"> &lt;dubbo:registry address=" multiple://127.0.0.1? reference-registry=zookeeper://127.0.0.1:2182?backup=127.0.0.1:2181,sofa://127.0.0.1:9603&amp;amp; service-registry=zookeeper://127.0.0.1:2182?backup=127.0.0.1:2181,sofa://127.0.0.1:9603"/&gt; </code></pre></div> <p dir="auto">The previous configuration is like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dubbo:registry protocol=&quot;zookeeper&quot; address=&quot;10.20.153.10:2181,10.20.153.11:2181,10.20.153.12:2181&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;dubbo:registry protocol="zookeeper" address="10.20.153.10:2181,10.20.153.11:2181,10.20.153.12:2181" /&gt; </code></pre></div> <p dir="auto">Only two addresses can be configured that do not meet the needs of our production environment.</p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="====================================================================== FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/Library/Python/2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) File &quot;/Library/Python/2.7/site-packages/sklearn/feature_extraction/tests/test_image.py&quot;, line 63, in test_connect_regions assert_equal(ndimage.label(mask)[1], connected_components(graph)[0]) AssertionError: 777 != 767 ====================================================================== FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/Library/Python/2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) File &quot;/Library/Python/2.7/site-packages/sklearn/feature_extraction/tests/test_image.py&quot;, line 70, in test_connect_regions_with_grid assert_equal(ndimage.label(mask)[1], connected_components(graph)[0]) AssertionError: 777 != 767 ---------------------------------------------------------------------- Ran 3342 tests in 148.698s FAILED (SKIP=20, failures=2)"><pre class="notranslate"><code class="notranslate">====================================================================== FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions ---------------------------------------------------------------------- Traceback (most recent call last): File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/Library/Python/2.7/site-packages/sklearn/feature_extraction/tests/test_image.py", line 63, in test_connect_regions assert_equal(ndimage.label(mask)[1], connected_components(graph)[0]) AssertionError: 777 != 767 ====================================================================== FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid ---------------------------------------------------------------------- Traceback (most recent call last): File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/Library/Python/2.7/site-packages/sklearn/feature_extraction/tests/test_image.py", line 70, in test_connect_regions_with_grid assert_equal(ndimage.label(mask)[1], connected_components(graph)[0]) AssertionError: 777 != 767 ---------------------------------------------------------------------- Ran 3342 tests in 148.698s FAILED (SKIP=20, failures=2) </code></pre></div>
<p dir="auto">I appreciate any aid in this issue, and apologize I've missed finding it in a previous issue. I've been getting the following message (I'm running on Mac OS X 10.7):</p> <p dir="auto">Here is the full traceback:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ nosetests sklearn -exe ....................S........................................../usr/local/lib/python2.7/site-packages/sklearn/manifold/spectral_embedding.py:225: UserWarning: Graph is not fully connected, spectral embedding may not works as expected. warnings.warn(&quot;Graph is not fully connected, spectral embedding&quot; ...........SS.........F.....SE................................................S.........................................................S.........................................SSS....................../usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object &lt;functools.partial object at 0x10a829788&gt;, ignore list will not work. nose.tools.assert_equal(filter_args(ff, ['y'], (1, )), ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................FF......................................................................................S......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SSS....S....S................................................................................................................................... ====================================================================== ERROR: test suite for &lt;module 'sklearn.datasets.tests.test_lfw' from '/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_lfw.pyc'&gt; ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/usr/local/lib/python2.7/site-packages/nose/suite.py&quot;, line 208, in run self.setUp() File &quot;/usr/local/lib/python2.7/site-packages/nose/suite.py&quot;, line 291, in setUp self.setupContext(ancestor) File &quot;/usr/local/lib/python2.7/site-packages/nose/suite.py&quot;, line 314, in setupContext try_run(context, names) File &quot;/usr/local/lib/python2.7/site-packages/nose/util.py&quot;, line 469, in try_run return func() File &quot;/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_lfw.py&quot;, line 72, in setup_module imsave(file_path, uniface) File &quot;/Users/admin/src/scipy/scipy/misc/pilutil.py&quot;, line 160, in imsave im.save(name) File &quot;/usr/local/lib/python2.7/site-packages/PIL/Image.py&quot;, line 1439, in save save_handler(self, fp, filename) File &quot;/usr/local/lib/python2.7/site-packages/PIL/JpegImagePlugin.py&quot;, line 471, in _save ImageFile._save(im, fp, [(&quot;jpeg&quot;, (0,0)+im.size, 0, rawmode)]) File &quot;/usr/local/lib/python2.7/site-packages/PIL/ImageFile.py&quot;, line 495, in _save e = Image._getencoder(im.mode, e, a, im.encoderconfig) File &quot;/usr/local/lib/python2.7/site-packages/PIL/Image.py&quot;, line 401, in _getencoder raise IOError(&quot;encoder %s not available&quot; % encoder_name) IOError: encoder jpeg not available ====================================================================== FAIL: sklearn.datasets.tests.test_base.test_load_sample_image ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/usr/local/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) File &quot;/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_base.py&quot;, line 142, in test_load_sample_image assert_equal(china.dtype, 'uint8') AssertionError: dtype('O') != 'uint8' ====================================================================== FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/usr/local/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) File &quot;/usr/local/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_image.py&quot;, line 63, in test_connect_regions assert_equal(ndimage.label(mask)[1], cs_graph_components(graph)[0]) AssertionError: 777 != 767 ====================================================================== FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/usr/local/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) File &quot;/usr/local/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_image.py&quot;, line 70, in test_connect_regions_with_grid assert_equal(ndimage.label(mask)[1], cs_graph_components(graph)[0]) AssertionError: 777 != 767 ---------------------------------------------------------------------- Ran 1595 tests in 81.893s FAILED (SKIP=15, errors=1, failures=3)"><pre class="notranslate"><code class="notranslate">$ nosetests sklearn -exe ....................S........................................../usr/local/lib/python2.7/site-packages/sklearn/manifold/spectral_embedding.py:225: UserWarning: Graph is not fully connected, spectral embedding may not works as expected. warnings.warn("Graph is not fully connected, spectral embedding" ...........SS.........F.....SE................................................S.........................................................S.........................................SSS....................../usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object &lt;functools.partial object at 0x10a829788&gt;, ignore list will not work. nose.tools.assert_equal(filter_args(ff, ['y'], (1, )), ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................FF......................................................................................S......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SSS....S....S................................................................................................................................... ====================================================================== ERROR: test suite for &lt;module 'sklearn.datasets.tests.test_lfw' from '/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_lfw.pyc'&gt; ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 208, in run self.setUp() File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 291, in setUp self.setupContext(ancestor) File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 314, in setupContext try_run(context, names) File "/usr/local/lib/python2.7/site-packages/nose/util.py", line 469, in try_run return func() File "/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_lfw.py", line 72, in setup_module imsave(file_path, uniface) File "/Users/admin/src/scipy/scipy/misc/pilutil.py", line 160, in imsave im.save(name) File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 1439, in save save_handler(self, fp, filename) File "/usr/local/lib/python2.7/site-packages/PIL/JpegImagePlugin.py", line 471, in _save ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)]) File "/usr/local/lib/python2.7/site-packages/PIL/ImageFile.py", line 495, in _save e = Image._getencoder(im.mode, e, a, im.encoderconfig) File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 401, in _getencoder raise IOError("encoder %s not available" % encoder_name) IOError: encoder jpeg not available ====================================================================== FAIL: sklearn.datasets.tests.test_base.test_load_sample_image ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_base.py", line 142, in test_load_sample_image assert_equal(china.dtype, 'uint8') AssertionError: dtype('O') != 'uint8' ====================================================================== FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/usr/local/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_image.py", line 63, in test_connect_regions assert_equal(ndimage.label(mask)[1], cs_graph_components(graph)[0]) AssertionError: 777 != 767 ====================================================================== FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/usr/local/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_image.py", line 70, in test_connect_regions_with_grid assert_equal(ndimage.label(mask)[1], cs_graph_components(graph)[0]) AssertionError: 777 != 767 ---------------------------------------------------------------------- Ran 1595 tests in 81.893s FAILED (SKIP=15, errors=1, failures=3) </code></pre></div>
1
<p dir="auto">I have set up parameterized routing in conjunction with shallow routing in our project as per <a href="https://github.com/zeit/next.js/blob/master/examples/parameterized-routing">https://github.com/zeit/next.js/blob/master/examples/parameterized-routing</a> and <a href="https://github.com/zeit/next.js/tree/master/examples/with-shallow-routing">https://github.com/zeit/next.js/tree/master/examples/with-shallow-routing</a>.</p> <p dir="auto">The router appears to be replacing history state instead of pushing history state if I push a different parameterized route for the same pathname. This results in pushing parametrized routes to appear to work until the user attempts to use the browser's back button and it skips over all state changes.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">User follows a link to /example.<br> Router.push is called with the route /example and asPath /example/test1 and the shallow option.<br> Router.push is called with the route /example and asPath /example/test2 and the shallow option.<br> User his the back button and the URL is set to /example/test1.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">User follows a link to /example.<br> Router.push is called with the route /example and asPath /example/test1 and the shallow option.<br> Router.push is called with the route /example and asPath /example/test2 and the shallow option.<br> User his the back button and the URL is set to /example.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>2.4.5</td> </tr> <tr> <td>node</td> <td>6.9.1</td> </tr> <tr> <td>OS</td> <td>macOS sierra</td> </tr> <tr> <td>browser</td> <td>chrome 59</td> </tr> </tbody> </table>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Editing <code class="notranslate">stlye jsx</code> styles should work with HMR.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When I change a <code class="notranslate">style jsx</code> css property, the page reloads with HMR, but then I get the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="StyleSheetRegistry: styleId: `jsx-1655195659` not found. Error: StyleSheetRegistry: styleId: `jsx-1655195659` not found. at invariant (http://localhost:3000/_next/-/page/index.js:47200:11)"><pre class="notranslate"><code class="notranslate">StyleSheetRegistry: styleId: `jsx-1655195659` not found. Error: StyleSheetRegistry: styleId: `jsx-1655195659` not found. at invariant (http://localhost:3000/_next/-/page/index.js:47200:11) </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">I started with the <a href="https://github.com/zeit/next.js/tree/canary/examples/with-styled-jsx-scss">with-styled-jsx-scss</a>: <code class="notranslate">npx create-next-app --example with-styled-jsx-scss with-styled-jsx-scss-app</code></p> <ol dir="auto"> <li>Clone this <a href="https://github.com/MrToph/next-error">minimal reproduction</a>.</li> <li><code class="notranslate">yarn install</code>, <code class="notranslate">yarn run dev</code></li> <li>Go to <code class="notranslate">localhost:3000</code></li> <li>Change a CSS rule, f.i. <code class="notranslate">background-color</code> in <code class="notranslate">src/components/Canvas.jsx</code></li> <li>See it breaking</li> </ol> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>v5.0.0</td> </tr> <tr> <td>node</td> <td>v8.10</td> </tr> <tr> <td>OS</td> <td>Windows 10</td> </tr> <tr> <td>browser</td> <td>Latest Chrome</td> </tr> </tbody> </table>
0
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li> unknown </li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li> Windows 10 (2004) </li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li> unknown </li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Rendering does not change.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Dots bleed out over time from various elements until state is changed (mouseover/highlight/...)</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Open electron app and wait. Reliably happens on Slack, VSCode, GitHub Desktop</p> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23281537/86516975-6a04fa80-be25-11ea-8266-1e5255537dcc.png"><img src="https://user-images.githubusercontent.com/23281537/86516975-6a04fa80-be25-11ea-8266-1e5255537dcc.png" alt="Code_2020-07-04_18-06-20" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional Information</h3>
<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> <p dir="auto">The screen capture event is calling in every 5 minutes by using the <code class="notranslate">setInterval</code> method and its working good in case of "unlock-screen" in window 10, however, when the window screen is locked(Window+L), the below exception has generated.</p> <blockquote> <p dir="auto">sources.map is not a function at Desktopcapture.handlEmitOnCapture</p> </blockquote> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li> v6.0.7 </li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li> </li> </ul> </li> </ul> <p dir="auto">Windows 10 Pro(1803)</p> <ul dir="auto"> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li> </li> </ul> </li> </ul> <h3 dir="auto">Actual Behavior</h3> <p dir="auto"><code class="notranslate">Desktopcapture.getSources(optinal,callback)</code> does not handle "lock-screen" nor handlling uncaughtException. Below exception is generating.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11939820/66304685-6b97a580-e91b-11e9-842a-c95ee67ba6fe.png"><img src="https://user-images.githubusercontent.com/11939820/66304685-6b97a580-e91b-11e9-842a-c95ee67ba6fe.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto"><code class="notranslate">Desktopcapture.getSources(optinal,callback)</code> should handle "lock-screen" / handles uncaughtException.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Step 1: Copy below code</p> <p dir="auto">const electron = require('electron');</p> <p dir="auto">const desktopCapturer = electron.desktopCapturer;<br> const remote = electron.remote;<br> const electronScreen = remote.screen;</p> <p dir="auto">const fs = require('fs');<br> const path = require('path');<br> const os = require('os');</p> <p dir="auto">var screenShotPath = '';</p> <p dir="auto">let getScreenCapture = function () {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const timeoutScheduled = Date.now(); const thumbSize = determineScreenshot(); console.log(thumbSize.height); console.log(thumbSize.width); let options = { types: ['screen'], thumbnailSize: thumbSize }; desktopCapturer.getSources(options, function (error, sources) { if (error) { console.log(error.message); return; } sources.forEach(function (source) { screenShotPath = path.join(os.tmpdir, 'screenshot_' + timeoutScheduled + '.jpeg'); console.log(screenShotPath); fs.writeFile(screenShotPath, source.thumbnail.toPNG(), function (err) { if (err) return console.log(err.message); }); }); });"><pre class="notranslate"><code class="notranslate">const timeoutScheduled = Date.now(); const thumbSize = determineScreenshot(); console.log(thumbSize.height); console.log(thumbSize.width); let options = { types: ['screen'], thumbnailSize: thumbSize }; desktopCapturer.getSources(options, function (error, sources) { if (error) { console.log(error.message); return; } sources.forEach(function (source) { screenShotPath = path.join(os.tmpdir, 'screenshot_' + timeoutScheduled + '.jpeg'); console.log(screenShotPath); fs.writeFile(screenShotPath, source.thumbnail.toPNG(), function (err) { if (err) return console.log(err.message); }); }); }); </code></pre></div> <p dir="auto">}<br> setInterval(function () {<br> getScreenCapture();<br> console.log('Captured');<br> }, 5000);</p> <p dir="auto">function determineScreenshot() {<br> const screensize = electronScreen.getPrimaryDisplay().workAreaSize;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const maxDimension = Math.max(screensize.width, screensize.height); console.log(maxDimension); return { width: maxDimension * window.devicePixelRatio, height: maxDimension * window.devicePixelRatio };"><pre class="notranslate"><code class="notranslate">const maxDimension = Math.max(screensize.width, screensize.height); console.log(maxDimension); return { width: maxDimension * window.devicePixelRatio, height: maxDimension * window.devicePixelRatio }; </code></pre></div> <p dir="auto">}</p> <p dir="auto">Step 2: Install npm &amp; run this code.</p> <p dir="auto">Step 3: Lock your window screen (Window + L). Lock your screen at least 10 minutes.</p> <p dir="auto">Step 4: Unlock your widow screen and see the Dialog box popups with the below error message.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11939820/66305518-18265700-e91d-11e9-8336-8dc91cca7136.jpg"><img src="https://user-images.githubusercontent.com/11939820/66305518-18265700-e91d-11e9-8336-8dc91cca7136.jpg" alt="error" style="max-width: 100%;"></a></p> <h3 dir="auto">Screenshots</h3> <h3 dir="auto">Additional Information</h3> <p dir="auto">Also other errors logs in the terminal</p> <p dir="auto">[19164:1007/163453.079:ERROR:dxgi_output_duplicator.cc(170)] Failed to capture frame, error 000001EB5A7F5380, code -2005270490<br> [19164:1007/163453.095:ERROR:screen_capturer_win_directx.cc(140)] DxgiDuplicatorController failed to capture desktop, error code Duplication failed<br> [19164:1007/163528.058:ERROR:dxgi_output_duplicator.cc(170)] Failed to capture frame, error 000001EB5A871850, code -2005270490<br> [19164:1007/163528.552:ERROR:screen_capturer_win_directx.cc(140)] DxgiDuplicatorController failed to capture desktop, error code Duplication failed<br> [19164:1007/163538.072:ERROR:dxgi_output_duplicator.cc(170)] Failed to capture frame, error 000001EB5A878A70, code -2005270490<br> [19164:1007/163538.077:ERROR:screen_capturer_win_directx.cc(140)] DxgiDuplicatorController failed to capture desktop, error code Duplication failed<br> [19164:1007/163543.058:ERROR:dxgi_output_duplicator.cc(170)] Failed to capture frame, error 000001EB5A878A70, code -2005270490<br> [19164:1007/163543.061:ERROR:screen_capturer_win_directx.cc(140)] DxgiDuplicatorController failed to capture desktop, error code Duplication failed<br> There was an uncaught error TypeError: sources.map is not a function<br> at DesktopCapturer.handlEmitOnCapturer (~\node_modules\electron\dist\resources\electron.asar\browser\desktop-capturer.js:72:32)</p>
0
<p dir="auto">Hey,<br> So I'm a fairly new developer who had a working app until version v0.14.8, and just updated to v15.0.1 today. The update did remove a few errors/warnings I was struggling with (so a great relief there), but brought up this issue.</p> <p dir="auto">Specifically, the app itself renders fine, with all the pages looking fine (all components, text, etc. in the right places), but is just "frozen" - completely non-functional, not allowing me to click on anything etc.</p> <p dir="auto">The error message I see are as follows (from Chrome and Firefox):<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12439968/14408726/7d6d4a18-febd-11e5-8d84-fb1633d1cc08.PNG"><img src="https://cloud.githubusercontent.com/assets/12439968/14408726/7d6d4a18-febd-11e5-8d84-fb1633d1cc08.PNG" alt="capture" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12439968/14408728/80ddd280-febd-11e5-9397-67bcb0f03f30.PNG"><img src="https://cloud.githubusercontent.com/assets/12439968/14408728/80ddd280-febd-11e5-9397-67bcb0f03f30.PNG" alt="capture2" style="max-width: 100%;"></a></p> <p dir="auto">I back-tracked it to where I could and found this being the part where the "node" is coming off as null:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12439968/14408739/cf942208-febd-11e5-898a-75e25f008695.PNG"><img src="https://cloud.githubusercontent.com/assets/12439968/14408739/cf942208-febd-11e5-898a-75e25f008695.PNG" alt="capture3" style="max-width: 100%;"></a></p> <p dir="auto">So I have absolutely no clue what's going on and there seems to be no hint as to what exactly is causing this issue. I will try ripping the app apart and do a thorough debugging, but wouldn't expect much from it (due to my unfamiliarity with development yet...).<br> I really really appreciate the help in advance, and hope that this problem can contribute somewhat to improving the React ecosystem!</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> BUG/ERROR</p> <p dir="auto"><strong>What is the current behavior?</strong><br> "Element ref was specified as a string" error when using npm link</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (<a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>) or CodeSandbox (<a href="https://codesandbox.io/s/new" rel="nofollow">https://codesandbox.io/s/new</a>) example below:</strong><br> <a href="https://github.com/odrzutowiec/react-bootstrap-jest-link-bug">https://github.com/odrzutowiec/react-bootstrap-jest-link-bug</a></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> Shouldn't error</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br> React 16.4 OSX 10.13 (Chrome 66, but it doesnt matter)</p> <p dir="auto">Hello, I am really sorry for reporting this issue, but I got nowhere else to turn. Can you help me identify if there's a problem with my webpack in /lib or is this due to react-bootstrap/uncontrollable? Or just help me understand what is wrong here. I googled for two days, some people seem to have the same issue but no one received an answer or solution. I did npm ls react and it shows only one line, but im not sure if it takes into account the npm linked package.</p> <p dir="auto">I believe this issue is related or at least similar <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="314847256" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/12626" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/12626/hovercard" href="https://github.com/facebook/react/issues/12626">#12626</a></p>
0
<p dir="auto"><a href="https://www.tensorflow.org/versions/" rel="nofollow">https://www.tensorflow.org/versions/</a> says that 0.12 is most recent stable branch, which is causing new users to install the older version --<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="225630668" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/9590" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/9590/hovercard?comment_id=301211285&amp;comment_type=issue_comment" href="https://github.com/tensorflow/tensorflow/issues/9590#issuecomment-301211285">#9590 (comment)</a></p>
<p dir="auto">This really is a small issue but I couldn't submit a PR as I couldn't find the file for it.<br> At <a href="https://www.tensorflow.org/versions/" rel="nofollow">https://www.tensorflow.org/versions/</a> the current version is stated as 0.12 when it should be 1.0!</p> <p dir="auto"><code class="notranslate">The docs at root (i.e. in tensorflow.org/api_docs) refer to the most recent stable branch (in this case, r0.12)</code></p> <p dir="auto">That's it. Sorry for raising an issue for such a trivial detail! Thanks</p>
1
<p dir="auto">Please port icons to next release. Or are you planning to move them into separate package? Cause now i can't move from <code class="notranslate">0.16.7</code> to <code class="notranslate">next</code></p>
<p dir="auto">Hi, I don't believe this is a duplicate, but I've found that spreading "extra" props into the <code class="notranslate">component</code> prop is confusing and counter-intuitive (info found here: <a href="https://stackoverflow.com/questions/37843495/material-ui-adding-link-component-from-react-router" rel="nofollow">https://stackoverflow.com/questions/37843495/material-ui-adding-link-component-from-react-router</a>). It would make a lot more sense to allow an actual <code class="notranslate">render</code> prop that can be used to actually render out a component.</p> <p dir="auto">For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// current implementation for a Tab with a Link &lt;Tab value=&quot;tabOne&quot; component={Link} to={`/orgs/${props.params.orgId}/members`} // this prop doesn't exist in the docs, but it works /&gt;"><pre class="notranslate"><code class="notranslate">// current implementation for a Tab with a Link &lt;Tab value="tabOne" component={Link} to={`/orgs/${props.params.orgId}/members`} // this prop doesn't exist in the docs, but it works /&gt; </code></pre></div> <p dir="auto">Result from proposed change:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Tab value=&quot;tabOne&quot; render={&lt;Link to=&quot;/my/relative/path&quot; /&gt;} /&gt;"><pre class="notranslate"><code class="notranslate">&lt;Tab value="tabOne" render={&lt;Link to="/my/relative/path" /&gt;} /&gt; </code></pre></div> <p dir="auto">This would make implementation a lot more intuitive.</p>
0
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Your code here data = [{'id': 11, 'text': 'Osv1wbZoL'}, {'id': 0, 'text': 'KQpPReW3S9nZOS3'}, {'id': 0, 'text': 'cbqLhjrb0B2Ah6E'}, {'id': 3, 'text': 'qu1Jlnyba'}, {'id': 14, 'text': 'aJUv5DBjbcGc3'}, {'id': 12, 'text': 'Yobf9'}, {'id': 4, 'text': 'awzZCV'}, {'id': 4, 'text': '3NvBAVL'}, {'id': 11, 'text': '80sPCxIf9s5wmEZ1'}, {'id': 5, 'text': 'afrPD0X6mIzFK'}] df = pd.DataFrame(data) # out: # id int64 # text object # dtype: object type(df[['id', 'text']].to_dict(orient='records')[0]['id']) # out: int type(df[['id']].to_dict(orient='records')[0]['id']) # out: numpy.int64"><pre class="notranslate"><span class="pl-c"># Your code here</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> [{<span class="pl-s">'id'</span>: <span class="pl-c1">11</span>, <span class="pl-s">'text'</span>: <span class="pl-s">'Osv1wbZoL'</span>}, {<span class="pl-s">'id'</span>: <span class="pl-c1">0</span>, <span class="pl-s">'text'</span>: <span class="pl-s">'KQpPReW3S9nZOS3'</span>}, {<span class="pl-s">'id'</span>: <span class="pl-c1">0</span>, <span class="pl-s">'text'</span>: <span class="pl-s">'cbqLhjrb0B2Ah6E'</span>}, {<span class="pl-s">'id'</span>: <span class="pl-c1">3</span>, <span class="pl-s">'text'</span>: <span class="pl-s">'qu1Jlnyba'</span>}, {<span class="pl-s">'id'</span>: <span class="pl-c1">14</span>, <span class="pl-s">'text'</span>: <span class="pl-s">'aJUv5DBjbcGc3'</span>}, {<span class="pl-s">'id'</span>: <span class="pl-c1">12</span>, <span class="pl-s">'text'</span>: <span class="pl-s">'Yobf9'</span>}, {<span class="pl-s">'id'</span>: <span class="pl-c1">4</span>, <span class="pl-s">'text'</span>: <span class="pl-s">'awzZCV'</span>}, {<span class="pl-s">'id'</span>: <span class="pl-c1">4</span>, <span class="pl-s">'text'</span>: <span class="pl-s">'3NvBAVL'</span>}, {<span class="pl-s">'id'</span>: <span class="pl-c1">11</span>, <span class="pl-s">'text'</span>: <span class="pl-s">'80sPCxIf9s5wmEZ1'</span>}, {<span class="pl-s">'id'</span>: <span class="pl-c1">5</span>, <span class="pl-s">'text'</span>: <span class="pl-s">'afrPD0X6mIzFK'</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-s1">data</span>) <span class="pl-c"># out:</span> <span class="pl-c"># id int64</span> <span class="pl-c"># text object</span> <span class="pl-c"># dtype: object</span> <span class="pl-en">type</span>(<span class="pl-s1">df</span>[[<span class="pl-s">'id'</span>, <span class="pl-s">'text'</span>]].<span class="pl-en">to_dict</span>(<span class="pl-s1">orient</span><span class="pl-c1">=</span><span class="pl-s">'records'</span>)[<span class="pl-c1">0</span>][<span class="pl-s">'id'</span>]) <span class="pl-c"># out: int</span> <span class="pl-en">type</span>(<span class="pl-s1">df</span>[[<span class="pl-s">'id'</span>]].<span class="pl-en">to_dict</span>(<span class="pl-s1">orient</span><span class="pl-c1">=</span><span class="pl-s">'records'</span>)[<span class="pl-c1">0</span>][<span class="pl-s">'id'</span>]) <span class="pl-c"># out: numpy.int64</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">depending on the count of output columns, numpy integers getting converted to python integers</p> <p dir="auto">afterwards both <code class="notranslate">json.dumps</code> and <code class="notranslate">ujson.dumps</code> fails to encode</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">int for both cases</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.1.final.0 python-bits: 64 OS: Darwin OS-release: 16.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 <p dir="auto">pandas: 0.19.2<br> nose: 1.3.7<br> pip: 9.0.1<br> setuptools: 33.1.1.post20170320<br> Cython: 0.25.2<br> numpy: 1.12.1<br> scipy: 0.19.0<br> statsmodels: 0.8.0<br> xarray: None<br> IPython: 5.3.0<br> sphinx: None<br> patsy: 0.4.1<br> dateutil: 2.6.0<br> pytz: 2017.2<br> blosc: None<br> bottleneck: None<br> tables: 3.3.0<br> numexpr: 2.6.2<br> matplotlib: 2.0.0<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 0.999<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.1.9<br> pymysql: 0.7.10.None<br> psycopg2: 2.6.2 (dt dec pq3 ext lo64)<br> jinja2: 2.9.5<br> boto: None<br> pandas_datareader: None</p> </details>
<p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="155922105" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/13236" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/13236/hovercard" href="https://github.com/pandas-dev/pandas/issues/13236">#13236</a> as <code class="notranslate">.map</code> was recently clarified to box ints/floats (and all other dtypes) to python/pandas types (rather than numpy scalars). <code class="notranslate">__iter__</code> should do the same (it already is done for datetimelikes), need to add for int/floats.</p> <p dir="auto">Furthermore <code class="notranslate">Series.tolist()</code> also returns python types (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="103130382" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/10904" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/10904/hovercard" href="https://github.com/pandas-dev/pandas/issues/10904">#10904</a>)</p> <p dir="auto">This will make it more consistent with pandas iteration strategy.</p> <p dir="auto">We also already do this for <code class="notranslate">object</code> types</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [12]: type(list(Series([Timestamp('20130101'),Timestamp('20130101',tz='US/Eastern'),1,1.0,'foo']))[2]) Out[12]: int"><pre class="notranslate"><code class="notranslate">In [12]: type(list(Series([Timestamp('20130101'),Timestamp('20130101',tz='US/Eastern'),1,1.0,'foo']))[2]) Out[12]: int </code></pre></div> <p dir="auto">.tolist()</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [3]: type(Series([1,2,3]).tolist()[2]) Out[3]: int"><pre class="notranslate"><code class="notranslate">In [3]: type(Series([1,2,3]).tolist()[2]) Out[3]: int </code></pre></div> <p dir="auto">let's fix for pure types</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [14]: type(list(Series([1,2,3]))[2]) Out[14]: numpy.int64"><pre class="notranslate"><code class="notranslate">In [14]: type(list(Series([1,2,3]))[2]) Out[14]: numpy.int64 </code></pre></div> <p dir="auto">When solving this issue, also have to look at:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Inconsistent conversion in <code class="notranslate">to_dict</code> to numpy/python scalar (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176776804" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14216" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14216/hovercard" href="https://github.com/pandas-dev/pandas/issues/14216">#14216</a>)</li> </ul>
1
<ul dir="auto"> <li>open viewLine.ts</li> <li>after the first interface in the file type as fast as you can</li> <li><code class="notranslate">class HorizontalRange implements EditorBrowser.IHorizontalRange</code></li> </ul> <p dir="auto">Please observe the 153ms stall due to <code class="notranslate">onDidSuggest</code> &gt; <code class="notranslate">refresh</code></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5047891/12331073/46dddcce-bae8-11e5-8ad5-d174b972478f.png"><img src="https://cloud.githubusercontent.com/assets/5047891/12331073/46dddcce-bae8-11e5-8ad5-d174b972478f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Copied from the inital issue (<a href="https://github.com/Microsoft/vscode-extensionbuilders/issues/80">https://github.com/Microsoft/vscode-extensionbuilders/issues/80</a>)</p> <blockquote> <p dir="auto">Let's see this scenario:</p> <ul dir="auto"> <li>The cursor is placed on whitespace inside a method</li> <li>The user asks for completions by pressing <code class="notranslate">CTRL + Space</code></li> <li>The language service is being asked to provide all suggestions</li> <li>The suggestion box pops up containing all 20k symbols</li> <li>The user types the character <code class="notranslate">f</code></li> <li><strong>VSCode hangs for ~8 seconds</strong> until the letter is displayed and the suggestion box shows only suggestions containing an <code class="notranslate">f</code>. (VSCode doesn't ask for suggestions twice. All the time is spent outside the language service. )</li> <li>typing the next letter is being processed faster but it's still slow.</li> </ul> </blockquote> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/joaomoreno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/joaomoreno">@joaomoreno</a> fixed this issue on 2015-11-06 telling that there were too many event listeners. With the December update it has become slow again. VSCode hangs now for <strong>~10 seconds</strong> working on the same suggestion list.<br> I really hope it's going to be fast again with the January update. It's not funny to work in huge projects now.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3 and more</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>定义接口</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public interface A1 { @Adaptive void sayHello(URL url, Invocation invocation, String str1); }"><pre class="notranslate"><code class="notranslate">public interface A1 { @Adaptive void sayHello(URL url, Invocation invocation, String str1); } </code></pre></div> <ol start="2" dir="auto"> <li>通过AdaptiveClassCodeGenerator生成扩展类</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="String code = new AdaptiveClassCodeGenerator(A1.class, &quot;hzw&quot;).generate();"><pre class="notranslate"><code class="notranslate">String code = new AdaptiveClassCodeGenerator(A1.class, "hzw").generate(); </code></pre></div> <ol start="3" dir="auto"> <li>There is an error in the Generated code</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public class A1$Adaptive implements com.hzw.learn.springboot.dubbo.AdaptiveExtension.AdaptiveClassCodeGeneratorTest.A1 { public void sayHello(org.apache.dubbo.common.URL arg0, org.apache.dubbo.rpc.Invocation arg1, java.lang.String arg2) { if (arg0 == null) throw new IllegalArgumentException(&quot;url == null&quot;); org.apache.dubbo.common.URL url = arg0; if (arg1 == null) throw new IllegalArgumentException(&quot;invocation == null&quot;); String methodName = arg1.getMethodName(); String extName = url.getMethodParameter(methodName, &quot;a1&quot;, &quot;hzw&quot;); if(extName == null) throw new IllegalStateException(&quot;Failed to get extension (com.hzw.learn.springboot.dubbo.AdaptiveExtension.AdaptiveClassCodeGeneratorTest.A1) name from url (&quot; + url.toString() + &quot;) use keys([a1])&quot;); com.hzw.learn.springboot.dubbo.AdaptiveExtension.AdaptiveClassCodeGeneratorTest.A1 extension = (com.hzw.learn.springboot.dubbo.AdaptiveExtension.AdaptiveClassCodeGeneratorTest.A1)ExtensionLoader.getExtensionLoader(com.hzw.learn.springboot.dubbo.AdaptiveExtension.AdaptiveClassCodeGeneratorTest.A1.class).getExtension(extName); extension.sayHello(url, invocation, str1); // can not find invacation and str1 } }"><pre class="notranslate"><code class="notranslate">public class A1$Adaptive implements com.hzw.learn.springboot.dubbo.AdaptiveExtension.AdaptiveClassCodeGeneratorTest.A1 { public void sayHello(org.apache.dubbo.common.URL arg0, org.apache.dubbo.rpc.Invocation arg1, java.lang.String arg2) { if (arg0 == null) throw new IllegalArgumentException("url == null"); org.apache.dubbo.common.URL url = arg0; if (arg1 == null) throw new IllegalArgumentException("invocation == null"); String methodName = arg1.getMethodName(); String extName = url.getMethodParameter(methodName, "a1", "hzw"); if(extName == null) throw new IllegalStateException("Failed to get extension (com.hzw.learn.springboot.dubbo.AdaptiveExtension.AdaptiveClassCodeGeneratorTest.A1) name from url (" + url.toString() + ") use keys([a1])"); com.hzw.learn.springboot.dubbo.AdaptiveExtension.AdaptiveClassCodeGeneratorTest.A1 extension = (com.hzw.learn.springboot.dubbo.AdaptiveExtension.AdaptiveClassCodeGeneratorTest.A1)ExtensionLoader.getExtensionLoader(com.hzw.learn.springboot.dubbo.AdaptiveExtension.AdaptiveClassCodeGeneratorTest.A1.class).getExtension(extName); extension.sayHello(url, invocation, str1); // can not find invacation and str1 } } </code></pre></div> <p dir="auto"><strong>extension.sayHello(url, invocation, str1); // can not find invacation and str1</strong></p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.<br> <a href="https://github.com/ZhengweiHou/spring-boot-parent-hzw/tree/master/spring-boot-dubbo/src/main/java/com/hzw/learn/springboot/dubbo/AdaptiveExtension/AdaptiveClassCodeGeneratorTest">reproduce this issue</a></p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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.2</li> <li>Operating System version: Ubuntu 14.04.5</li> <li>Java version: 1.8.191</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>使用dubbo-registry-nacos 2.7.2 与nacos1.0.0结合后能正常服务注册</li> <li>将nacos-config 0.9.0包引入并实现后服务注册失效.</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?<br> 能够正常服务注册.并且可以使用nacos-config的功能</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <ol dir="auto"> <li>提示信息 code:404 msg: service not found: DEFAULT_GROUP@@configurators:com.rightknights.livecat.dubboservice.service.DemoService:0.0.1:<br> 2.实际应该请求DEFAULT_GROUP@<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/providers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/providers">@providers</a>:com.rightknights.livecat.dubboservice.service.DemoService:0.0.1:</li> </ol> <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="com.alibaba.nacos.api.exception.NacosException: failed to req API:http://47.96.106.22:80/nacos/v1/ns/instance/list. code:404 msg: service not found: DEFAULT_GROUP@@configurators:com.rightknights.livecat.dubboservice.service.TestService:0.0.1: at com.alibaba.nacos.client.naming.net.NamingProxy.callServer(NamingProxy.java:340) [nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:367) [nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:304) [nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.queryList(NamingProxy.java:217) [nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.core.HostReactor.updateServiceNow(HostReactor.java:273) [nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.core.HostReactor$UpdateTask.run(HostReactor.java:318) [nacos-client-1.0.0.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_191] at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_191] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_191] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_191] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_191] 2019-07-30 10:12:20.117 ERROR 1935 --- [.naming.updater] com.alibaba.nacos.client.naming : [NA] failed to update serviceName: DEFAULT_GROUP@@configurators:com.rightknights.livecat.dubboservice.service.TestService:0.0.1: java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance/list after all servers([47.96.106.22:80]) tried: failed to req API:http://47.96.106.22:80/nacos/v1/ns/instance/list. code:404 msg: service not found: DEFAULT_GROUP@@configurators:com.rightknights.livecat.dubboservice.service.TestService:0.0.1: at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:380) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:304) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.queryList(NamingProxy.java:217) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.core.HostReactor.updateServiceNow(HostReactor.java:273) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.core.HostReactor$UpdateTask.run(HostReactor.java:318) [nacos-client-1.0.0.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_191] at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_191] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_191] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_191] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_191]"><pre class="notranslate"><code class="notranslate">com.alibaba.nacos.api.exception.NacosException: failed to req API:http://47.96.106.22:80/nacos/v1/ns/instance/list. code:404 msg: service not found: DEFAULT_GROUP@@configurators:com.rightknights.livecat.dubboservice.service.TestService:0.0.1: at com.alibaba.nacos.client.naming.net.NamingProxy.callServer(NamingProxy.java:340) [nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:367) [nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:304) [nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.queryList(NamingProxy.java:217) [nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.core.HostReactor.updateServiceNow(HostReactor.java:273) [nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.core.HostReactor$UpdateTask.run(HostReactor.java:318) [nacos-client-1.0.0.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_191] at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_191] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_191] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_191] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_191] 2019-07-30 10:12:20.117 ERROR 1935 --- [.naming.updater] com.alibaba.nacos.client.naming : [NA] failed to update serviceName: DEFAULT_GROUP@@configurators:com.rightknights.livecat.dubboservice.service.TestService:0.0.1: java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance/list after all servers([47.96.106.22:80]) tried: failed to req API:http://47.96.106.22:80/nacos/v1/ns/instance/list. code:404 msg: service not found: DEFAULT_GROUP@@configurators:com.rightknights.livecat.dubboservice.service.TestService:0.0.1: at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:380) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:304) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.queryList(NamingProxy.java:217) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.core.HostReactor.updateServiceNow(HostReactor.java:273) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.core.HostReactor$UpdateTask.run(HostReactor.java:318) [nacos-client-1.0.0.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_191] at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_191] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_191] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_191] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_191] </code></pre></div>
0
<h3 dir="auto"><g-emoji class="g-emoji" alias="computer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png">💻</g-emoji></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Would you like to work on a fix?</li> </ul> <h3 dir="auto">How are you using Babel?</h3> <p dir="auto">babel-loader (webpack)</p> <h3 dir="auto">Input code</h3> <p dir="auto">When using the assumption <code class="notranslate">privateFieldsAsProperties: true</code> in combination with not using the Babel <code class="notranslate">transform-runtime</code> plugin (so that babel-helpers are inlined), it becomes possible to override #-private fields, which is incorrect semantics.</p> <p dir="auto">The issue can only be reproduced when using at least two different source files.</p> <p dir="auto">Bar.js:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default class Bar { #hidden = &quot;Bar's hidden&quot;; getHidden() { return this.#hidden; } }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">class</span> <span class="pl-v">Bar</span> <span class="pl-kos">{</span> #<span class="pl-c1">hidden</span> <span class="pl-c1">=</span> <span class="pl-s">"Bar's hidden"</span><span class="pl-kos">;</span> <span class="pl-en">getHidden</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">hidden</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">index.js:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Bar from &quot;./Bar&quot;; class Foo extends Bar { // it should not be possible to override a #private field of a superclass: #hidden = &quot;Foo's hidden&quot;; } console.log(new Foo().getHidden()); // actual: &quot;Foo's hidden&quot;, expected: &quot;Bar's hidden&quot;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">Bar</span> <span class="pl-k">from</span> <span class="pl-s">"./Bar"</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-v">Foo</span> <span class="pl-k">extends</span> <span class="pl-v">Bar</span> <span class="pl-kos">{</span> <span class="pl-c">// it should not be possible to override a #private field of a superclass:</span> #<span class="pl-c1">hidden</span> <span class="pl-c1">=</span> <span class="pl-s">"Foo's hidden"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">getHidden</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// actual: "Foo's hidden", expected: "Bar's hidden"</span></pre></div> <p dir="auto">Since Babel's own REPL only supports one input file, here is the full example including a <code class="notranslate">.babelrc</code> in codesandbox:<br> <a href="https://codesandbox.io/s/babel-privatefieldsasproperties-bug-gqvfsz?file=/.babelrc:84-88" rel="nofollow">codesandbox.io reproducer</a></p> <h3 dir="auto">Configuration file name</h3> <p dir="auto">.babelrc</p> <h3 dir="auto">Configuration</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [ &quot;env&quot; ], &quot;assumptions&quot;: { &quot;privateFieldsAsProperties&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"presets"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>env<span class="pl-pds">"</span></span> ], <span class="pl-ent">"assumptions"</span>: { <span class="pl-ent">"privateFieldsAsProperties"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Current and expected behavior</h3> <p dir="auto">When running the codesandbox example given above, in the output you see <code class="notranslate">"Foo's hidden"</code>, so class <code class="notranslate">Foo</code> managed to override the #-private field <code class="notranslate">#hidden</code> of class <code class="notranslate">Bar</code>, which must not be possible.<br> When you switch off <code class="notranslate">privateFieldsAsProperties</code> and run the example again, the correct result <code class="notranslate">"Foo's hidden"</code> is shown.<br> Also when you use the Babel plugin <code class="notranslate">transform-runtime</code>, the behavior is correct.</p> <h3 dir="auto">Environment</h3> <p dir="auto">See <a href="https://codesandbox.io/s/babel-privatefieldsasproperties-bug-gqvfsz?file=/package.json" rel="nofollow">codesandbox example</a>:</p> <ul dir="auto"> <li>Babel 7.2.0</li> <li>Node 16</li> </ul> <h3 dir="auto">Possible solution</h3> <p dir="auto">The reason that both #-private fields share the same name <code class="notranslate">__private_0_hidden</code> is that the helper function <a href="https://github.com/babel/babel/blob/main/packages/babel-helpers/src/helpers.ts#L997-L1002"><code class="notranslate">classPrivateFieldLooseKey</code></a> tries to define and initialize a global counter variable <code class="notranslate">id</code> that is increased for each generated property name, to ensure unique private property names. However, when helper functions are inlined (no <code class="notranslate">transform-runtime</code> plugin), each bundled file comes with a <em>copy</em> of this helper code, each defining its own <code class="notranslate">var id = 0;</code>. Thus, in both bundled files, the private member counter starts with <code class="notranslate">0</code>, ending up in the same private field slot name in both the superclass and the subclass, which must not happen.</p> <p dir="auto">One approach to solve this could be to use a <code class="notranslate">Symbol</code> instead of a generated string slot name, but I don't know if Babel helper code is allowed to use language features that may not be available in older target environments. I tested this approach and it works perfectly (given that <code class="notranslate">Symbol</code> is supported).<br> I guess helper code is not compiled, so <a href="https://caniuse.com/?search=Symbol" rel="nofollow">using <code class="notranslate">Symbol</code> would rule out IE</a>, unless a <a href="https://github.com/medikoo/es6-symbol"><code class="notranslate">Symbol</code> polyfill</a> is applied. If this is a show-stopper, a new assumption <code class="notranslate">privateFieldsAsSymbolProperties</code> could be introduced that fixes the issue, but requires a target that supports <code class="notranslate">Symbol</code> (at least through a polyfill).</p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<h3 dir="auto">Input Code</h3> <p dir="auto">In the following snippet, calling <code class="notranslate">path.ensureBlock()</code> does not properly unset the "expression" flag on the ArrowFunctionExpression. This causes problems for other plugins, which may rely on the accuracy of the flag (notably, istanbul-lib-instrument).</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default function (babel) { const { types: t } = babel; return { name: &quot;ast-transform&quot;, // not required visitor: { ArrowFunctionExpression(path) { path.ensureBlock(); if (path.node.expression) { throw Error(&quot;Should no longer be an expression&quot;); } }, } }; }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">babel</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> <span class="pl-c1">types</span>: <span class="pl-s1">t</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">babel</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"ast-transform"</span><span class="pl-kos">,</span> <span class="pl-c">// not required</span> <span class="pl-c1">visitor</span>: <span class="pl-kos">{</span> <span class="pl-en">ArrowFunctionExpression</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">ensureBlock</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">node</span><span class="pl-kos">.</span><span class="pl-c1">expression</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">"Should no longer be an expression"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><a href="https://astexplorer.net/#/gist/0bd0506d529ed4c59a4ab10ffc2bd105/c23cb1d08aed3b721a53142b4d3bc6fb14d2af7b" rel="nofollow">https://astexplorer.net/#/gist/0bd0506d529ed4c59a4ab10ffc2bd105/c23cb1d08aed3b721a53142b4d3bc6fb14d2af7b</a></p> <h3 dir="auto">Babel/Babylon Configuration (.babelrc, package.json, cli command)</h3> <p dir="auto">See ASTExplorer link.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">The "expression" flag should be set to false.</p> <h3 dir="auto">Possible Solution</h3> <p dir="auto">It sounds like it would be enough to add a <code class="notranslate">path.set("expression", false)</code> in <a href="https://github.com/babel/babel/blob/master/packages/babel-traverse/src/path/conversion.js#L26">https://github.com/babel/babel/blob/master/packages/babel-traverse/src/path/conversion.js#L26</a> if the node type is an ArrowFunctionExpression? I'm not sure if there are other cases like this in the AST spec.</p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 1.0.0-dev (e29f42025 2015-02-11 17:59:37 +0000)"><pre class="notranslate"><code class="notranslate">rustc 1.0.0-dev (e29f42025 2015-02-11 17:59:37 +0000) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc: /mnt/host/kmcg3413.net/rust/src/llvm/lib/IR/DataLayout.cpp:655: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty-&gt;isSized() &amp;&amp; &quot;Cannot getTypeInfo() on a type that is unsized!&quot;' failed."><pre class="notranslate"><code class="notranslate">rustc: /mnt/host/kmcg3413.net/rust/src/llvm/lib/IR/DataLayout.cpp:655: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty-&gt;isSized() &amp;&amp; "Cannot getTypeInfo() on a type that is unsized!"' failed. </code></pre></div>
<p dir="auto">Example program:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::mem; struct AlignmentStruct { ptr: *mut [AlignmentStruct, ..1] } fn main() { println!(&quot;{}&quot;, ::std::mem::align_of::&lt;AlignmentStruct&gt;()); }"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>mem<span class="pl-kos">;</span> <span class="pl-k">struct</span> <span class="pl-smi">AlignmentStruct</span> <span class="pl-kos">{</span> <span class="pl-c1">ptr</span><span class="pl-kos">:</span> <span class="pl-c1">*</span><span class="pl-k">mut</span> <span class="pl-kos">[</span><span class="pl-smi">AlignmentStruct</span><span class="pl-kos">,</span> ..<span class="pl-c1">1</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, ::std::mem::align_of::&lt;<span class="pl-v">AlignmentStruct</span>&gt;<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">Error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/lib/IR/DataLayout.cpp:636: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty-&gt;isSized() &amp;&amp; &quot;Cannot getTypeInfo() on a type that is unsized!&quot;' failed."><pre class="notranslate"><code class="notranslate">rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/lib/IR/DataLayout.cpp:636: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty-&gt;isSized() &amp;&amp; "Cannot getTypeInfo() on a type that is unsized!"' failed. </code></pre></div>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">LinearProgress and CircularProgress should accept min, max and value props.<br> When mode is 'determinate', the progress is calculated based on value between a scale of min to max.<br> If min and max are not supplied, they default to 0 and 100 respectively (original behavior).<br> <code class="notranslate">inlineStyles.primary.transform = 'scaleX(' + ((value - min) / (max - min)) + ')';</code></p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">LinearProgress and CircularProgress accepts value prop.<br> When mode is 'determinate', the progress is calculated based on value between a scale of 0 to 100.<br> <code class="notranslate">inlineStyles.primary.transform = 'scaleX(' + value / 100 + ')';</code></p> <h2 dir="auto">Context</h2> <p dir="auto">This would simplify components that utilize LinearProgress and CircularProgress as parent components would no longer be responsible for scaling values between 0 and 100. I find it's pretty rare to have data already suitable for the progress components because it's not normally between 0 and 100.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.18</td> </tr> <tr> <td>React</td> <td>16.0.0</td> </tr> </tbody> </table>
<p dir="auto">Getting this error with latest release , It goes when i switch to V0.13.1 :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="material-ui/node_modules/inline-style-prefixer/lib/Prefixer.js:43 this.cssPrefix = this._browserInfo.prefix.CSS; ^ TypeError: Cannot read property 'CSS' of undefined```"><pre class="notranslate"><code class="notranslate">material-ui/node_modules/inline-style-prefixer/lib/Prefixer.js:43 this.cssPrefix = this._browserInfo.prefix.CSS; ^ TypeError: Cannot read property 'CSS' of undefined``` </code></pre></div>
0
<p dir="auto">I'm on Atom 1.0. To reproduce:</p> <ul dir="auto"> <li>Open a file in Atom. Scrolling over its tab will show a tooltip with its full path.</li> <li>Rename the file in tree view.</li> <li>Now, scrolling over the tab will still show the previous file path.</li> </ul>
<p dir="auto">The tab has a label that displays the file name. If you hover the cursor over that label a balloon displays the full path to the file. At times the balloon displays the wrong path, as in the following example.</p> <ol dir="auto"> <li>Save "file 1" to "path 1".</li> <li>Hover over the label.</li> <li>The correct path of file 1 at path 1 is displayed.</li> <li>Save As... the same "file 1" to "path 2", using the same file name. Only the path is different.</li> <li>Hover over file name label. The displayed path is file 1 at path 1.</li> <li>Modify contents of file and save it.</li> <li>Hover over the label. The displayed path is still file 1 at path 1.</li> <li>The file that was modified, however, is file 1 at path 2!</li> </ol> <p dir="auto">A variation. If you change the file name at step 4, where you "Save As..." to path 2, then the label in the tab will display the new file name, but if you hover over the label, then the balloon will display the old file name with the old path.</p> <p dir="auto">In short, once set, information displayed in the file name and path information balloon doesn't change, even under circumstances where the label correctly displays the new file name. Moreover, regardless what path is displayed in the balloon, modifications will always be saved to the latest file name and path combination for that tab.</p> <p dir="auto">Hope this helps.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sreddy" rel="nofollow">Satyapal Reddy</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9038?redirect=false" rel="nofollow">SPR-9038</a></strong> and commented</p> <p dir="auto">(I discussed this with Andy Clement on email)</p> <p dir="auto">We want to use a set of static methods declared on set of classes to be used as part of the expression evaluation. These methods are not declared on the rootObject being passed to Expression.getValue method.</p> <p dir="auto">One solution is to add our own MethodResolver to the list of resolvers on the StandardEvaluationContext. However doing that involves pretty much replicating the entire code of ReflectiveMethodResolver (except where we get methods from type) and then since compareArguments and compareArgumentsVarargs methods on ReflectionHelper are not public and also ReflectiveMethodExecutor class is not public, we need to duplicate lot of code.</p> <p dir="auto">However if ReflectiveMethodResolver could call a protected method getMethods(type), a subclass could just override it and provide its own static methods.</p> <p dir="auto">I am attaching the updated class as well as a Junit test case.</p> <p dir="auto">As we are using 3.0.5 version a backport would be great.</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/19321/ReflectiveMethodResolver.java" rel="nofollow">ReflectiveMethodResolver.java</a> (<em>6.18 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/19322/SpELTest.java" rel="nofollow">SpELTest.java</a> (<em>1.97 kB</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/90bed9718f17bfd8f3d9dbe6cd2b3cf7ed2e6573/hovercard" href="https://github.com/spring-projects/spring-framework/commit/90bed9718f17bfd8f3d9dbe6cd2b3cf7ed2e6573"><tt>90bed97</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mdesrosiers" rel="nofollow">Martin Desrosiers</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6231?redirect=false" rel="nofollow">SPR-6231</a></strong> and commented</p> <p dir="auto">The change made in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398093573" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10208" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10208/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10208">#10208</a> effectively strips any file extension in GET requests in order to exclude it from the path variable value. Unfortunately, this prevents queries that contains dots as part of the path variable, i.e. an email address. Therefore the following request:</p> <p dir="auto"><a href="http://localhost:8080/rest/emailaddress/email/test%40mail.com" rel="nofollow">http://localhost:8080/rest/emailaddress/email/test%40mail.com</a></p> <p dir="auto">with the following controller request mapping:</p> <p dir="auto"><code class="notranslate">@RequestMapping</code>(value = "/email/{email}", method = RequestMethod.GET)<br> public ModelAndView getEmail(<code class="notranslate">@PathVariable</code>("email") final String email) {<br> }</p> <p dir="auto">will map the value "test@mail" to the variable email.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 RC1</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="398097808" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10832" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10832/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10832">#10832</a> a Uri Value is incorrectly extracted if it contains '.'. (<em><strong>"duplicates"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398093573" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10208" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10208/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10208">#10208</a> ReSTful URLs with content type extension do not work properly</li> </ul>
0
<p dir="auto">This is a tracking issue for the unstable <code class="notranslate">iter_to_slice</code> feature in the standard library. The <code class="notranslate">into_vec</code> adaptor for <code class="notranslate">vec::IntoIter</code> was recently removed, and these may also want to be removed. It's somewhat unclear how useful it is to have iterators enhanced with this kind of functionality.</p>
<p dir="auto">I've hit this while working on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="23588132" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/10769" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/10769/hovercard" href="https://github.com/rust-lang/rust/pull/10769">#10769</a>, where I would need to change <code class="notranslate">ast::ty_nil</code> (and all the code using it) for consistency's sake and a great total of one usecase, a noop <code class="notranslate">..()</code>.</p> <p dir="auto">The only problem I see with <code class="notranslate">ty_tup(~[])</code> is the possibility of heap allocation.<br> If that's a reason for concern, this can wait for the proposed changes to vectors, where <code class="notranslate">~[]</code> would be represented as <code class="notranslate">(0u, 0u)</code>.</p>
0
<p dir="auto">From <a href="http://discuss.rust-lang.org/t/prioritizing-windows-issues/319/2?u=brson" rel="nofollow">http://discuss.rust-lang.org/t/prioritizing-windows-issues/319/2?u=brson</a></p> <p dir="auto">It appears that on permission managed windows machines (eg. win7) rust generated binaries require administrator privileges to run, even for trivial case applications like println!("Hello World"); these permissions must be accepted ("Run this as administrator") every time the application is launched.</p> <p dir="auto">I have no idea how this is typically managed in win programming, but having to accept "run this as administrator" every time you run cargo test or launch a binary is really tedious.</p>
<p dir="auto">Currently Rust has no support for adding manifests to Windows executables (.exe and .dll) despite some previous failed attempts (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="24874632" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/11207" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/11207/hovercard" href="https://github.com/rust-lang/rust/issues/11207">rust-lang/rust#11207</a>).</p> <p dir="auto">Application manifests are essentially just an XML resource which is embedded in the executable and is read by Windows to establish how the executable should be run and which DLLs it depends on. There are also other types of manifests which follow the same basic schema but have slightly different purposes, e.g. you can publish configuration files to install on the system which specify that a particular version of a DLL installed is backwards compatible and should be used in place of a whole range of previous version numbers.</p> <p dir="auto">Manifests may be useful for several reasons in Rust:</p> <ul dir="auto"> <li>Allows easily viewable version numbers and descriptive text on an .exe or .dll</li> <li>Can specify which version of a system (or any other) .dll your application should use, thus avoiding DLL hell - notable alternative use case for this is to ensure version 6 or above of Microsoft Common Controls which will enable XP styles of window controls in 32-bit applications; this particular one probably ought to be automatically included for apps requiring COMCTL32.dll since without you'll get some ugly ancient looking GUIs.</li> <li>Ability to specify UAC privilege level required for your application and avoid Windows determining this heuristically (temporarily solved for test runs using an environment variable in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="55111162" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21496" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/21496/hovercard" href="https://github.com/rust-lang/rust/pull/21496">rust-lang/rust#21496</a>)</li> <li>Allows use of code signing for distributed binaries (also needs a certificate). This is a must for writing Windows drivers nowadays.</li> <li>Enable use of certain features/modes such as (super) high-res scrolling, DPI awareness, printer driver isolation...</li> </ul> <p dir="auto">There is another significant feature which should NOT be used by default, which is that you can specify which OS version behaviours are supported by your application, which effectively requests certain APIs to behave differently. The reason this is bad is that it is impossible to know if anything that plugs in to your app (e.g. shell extensions, which come in through e.g. common file dialog) also supports these behaviours, so it is generally not safe to turn them on. Even so, for flexibility it would be good to allow users to explicitly request these behaviours.</p> <p dir="auto">I believe that the scope and format of these application manifests is sufficiently limited (particularly parts most relevant to Rust) that the Rust ecosystem ought to have the ability to generate these by itself with the help of Rust language attributes to specify particular items/settings to go into the manifest. Having some sane approach to version numbering (which ties into Cargo somehow) would be massively beneficial and avoid all sorts of problems with incompatible binaries. The version numbers for manifests are required to have four parts 0-65535 (without exception) which Microsoft expliclty labels as major.minor.build.revision in the documentation, and changes in the last two are not to break backwards compatibility, which would generally be done by incrementing the major version rather than minor. <a href="https://msdn.microsoft.com/en-gb/library/ms973869.aspx" rel="nofollow">This</a> I find to be a good link on the motivations behind the versioning system on Windows and there might be no reason why Rust couldn't implement such automatic revision number stepping on top of a similar version attribute.</p> <p dir="auto">Likely people will want to override whatever manifest Rust provides (or disable it completely) and this should be catered for. However, it could potentially be useful to have an option for some sort of hybrid approach where Rust can change certain fields such as version number from an existing manifest file. N.B. application manifests are always called filename.exe.manifest or filename.dll.manifest so they could always simply be detected from the filesystem rather than specified on the command line or in an attribute (though being able to specify an alternative manifest path via an attribute may be another very useful feature).</p> <p dir="auto">As a demonstration of most of the things I've said, and to demonstrate how simple the XML is, I have prepared an example, which in this case would normally be called helloworld.exe.manifest:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt; &lt;assembly xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot; manifestVersion=&quot;1.0&quot;&gt; &lt;assemblyIdentity type=&quot;win32&quot; name=&quot;helloworld&quot; version=&quot;1.7.2.19&quot; processorArchitecture=&quot;x86&quot;/&gt; &lt;description&gt;Hello World Application&lt;/description&gt; &lt;dependency&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity type=&quot;win32&quot; name=&quot;Acme.Soft.SayStuffLib&quot; version=&quot;3.7.2.4&quot; processorArchitecture=&quot;x86&quot; language=&quot;*&quot;/&gt; &lt;/dependentAssembly&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity type=&quot;win32&quot; name=&quot;Microsoft.Windows.Common-Controls&quot; version=&quot;6.0.0.0&quot; processorArchitecture=&quot;x86&quot; publicKeyToken=&quot;6595b64144ccf1df&quot; language=&quot;*&quot;/&gt; &lt;/dependentAssembly&gt; &lt;/dependency&gt; &lt;file name=&quot;hellointl.dll&quot; hash=&quot;12345678123456781234567812345678abcdef00&quot; hashalg=&quot;SHA1&quot;/&gt; &lt;trustInfo xmlns=&quot;urn:schemas-microsoft-com:asm.v2&quot;&gt; &lt;security&gt; &lt;requestedPrivileges&gt; &lt;requestedExecutionLevel level=&quot;asInvoker&quot; uiAccess=&quot;false&quot;/&gt; &lt;/requestedPrivileges&gt; &lt;/security&gt; &lt;/trustInfo&gt; &lt;asmv3:application xmlns:asmv3=&quot;urn:schemas-microsoft-com:asm.v3&quot;&gt; &lt;asmv3:windowsSettings xmlns=&quot;http://schemas.microsoft.com/SMI/2011/WindowsSettings&quot;&gt; &lt;dpiAware&gt;true&lt;/dpiAware&gt; &lt;printerDriverIsolation&gt;true&lt;/printerDriverIsolation&gt; &lt;/asmv3:windowsSettings&gt; &lt;/asmv3:application&gt; &lt;/assembly&gt;"><pre class="notranslate">&lt;?<span class="pl-ent">xml</span><span class="pl-e"> version</span>=<span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span><span class="pl-e"> encoding</span>=<span class="pl-s"><span class="pl-pds">"</span>UTF-8<span class="pl-pds">"</span></span><span class="pl-e"> standalone</span>=<span class="pl-s"><span class="pl-pds">"</span>yes<span class="pl-pds">"</span></span>?&gt; &lt;<span class="pl-ent">assembly</span> <span class="pl-e">xmlns</span>=<span class="pl-s"><span class="pl-pds">"</span>urn:schemas-microsoft-com:asm.v1<span class="pl-pds">"</span></span> <span class="pl-e">manifestVersion</span>=<span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">assemblyIdentity</span> <span class="pl-e">type</span>=<span class="pl-s"><span class="pl-pds">"</span>win32<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>helloworld<span class="pl-pds">"</span></span> <span class="pl-e">version</span>=<span class="pl-s"><span class="pl-pds">"</span>1.7.2.19<span class="pl-pds">"</span></span> <span class="pl-e">processorArchitecture</span>=<span class="pl-s"><span class="pl-pds">"</span>x86<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">description</span>&gt;Hello World Application&lt;/<span class="pl-ent">description</span>&gt; &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">dependentAssembly</span>&gt; &lt;<span class="pl-ent">assemblyIdentity</span> <span class="pl-e">type</span>=<span class="pl-s"><span class="pl-pds">"</span>win32<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>Acme.Soft.SayStuffLib<span class="pl-pds">"</span></span> <span class="pl-e">version</span>=<span class="pl-s"><span class="pl-pds">"</span>3.7.2.4<span class="pl-pds">"</span></span> <span class="pl-e">processorArchitecture</span>=<span class="pl-s"><span class="pl-pds">"</span>x86<span class="pl-pds">"</span></span> <span class="pl-e">language</span>=<span class="pl-s"><span class="pl-pds">"</span>*<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">dependentAssembly</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">dependentAssembly</span>&gt; &lt;<span class="pl-ent">assemblyIdentity</span> <span class="pl-e">type</span>=<span class="pl-s"><span class="pl-pds">"</span>win32<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>Microsoft.Windows.Common-Controls<span class="pl-pds">"</span></span> <span class="pl-e">version</span>=<span class="pl-s"><span class="pl-pds">"</span>6.0.0.0<span class="pl-pds">"</span></span> <span class="pl-e">processorArchitecture</span>=<span class="pl-s"><span class="pl-pds">"</span>x86<span class="pl-pds">"</span></span> <span class="pl-e">publicKeyToken</span>=<span class="pl-s"><span class="pl-pds">"</span>6595b64144ccf1df<span class="pl-pds">"</span></span> <span class="pl-e">language</span>=<span class="pl-s"><span class="pl-pds">"</span>*<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">dependentAssembly</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">file</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>hellointl.dll<span class="pl-pds">"</span></span> <span class="pl-e">hash</span>=<span class="pl-s"><span class="pl-pds">"</span>12345678123456781234567812345678abcdef00<span class="pl-pds">"</span></span> <span class="pl-e">hashalg</span>=<span class="pl-s"><span class="pl-pds">"</span>SHA1<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">trustInfo</span> <span class="pl-e">xmlns</span>=<span class="pl-s"><span class="pl-pds">"</span>urn:schemas-microsoft-com:asm.v2<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">security</span>&gt; &lt;<span class="pl-ent">requestedPrivileges</span>&gt; &lt;<span class="pl-ent">requestedExecutionLevel</span> <span class="pl-e">level</span>=<span class="pl-s"><span class="pl-pds">"</span>asInvoker<span class="pl-pds">"</span></span> <span class="pl-e">uiAccess</span>=<span class="pl-s"><span class="pl-pds">"</span>false<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">requestedPrivileges</span>&gt; &lt;/<span class="pl-ent">security</span>&gt; &lt;/<span class="pl-ent">trustInfo</span>&gt; &lt;<span class="pl-ent">asmv3</span><span class="pl-ent">:</span><span class="pl-ent">application</span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">asmv3</span>=<span class="pl-s"><span class="pl-pds">"</span>urn:schemas-microsoft-com:asm.v3<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">asmv3</span><span class="pl-ent">:</span><span class="pl-ent">windowsSettings</span> <span class="pl-e">xmlns</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.microsoft.com/SMI/2011/WindowsSettings<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">dpiAware</span>&gt;true&lt;/<span class="pl-ent">dpiAware</span>&gt; &lt;<span class="pl-ent">printerDriverIsolation</span>&gt;true&lt;/<span class="pl-ent">printerDriverIsolation</span>&gt; &lt;/<span class="pl-ent">asmv3</span><span class="pl-ent">:</span><span class="pl-ent">windowsSettings</span>&gt; &lt;/<span class="pl-ent">asmv3</span><span class="pl-ent">:</span><span class="pl-ent">application</span>&gt; &lt;/<span class="pl-ent">assembly</span>&gt;</pre></div> <p dir="auto">This shows providing version number and description of your app, referencing DLLs by assembly name and version which may be Rust built or on the system, referencing a private DLL which must match the expected file using SHA1 hash, activating XP styles by requesting version 6 of common controls, telling UAC that no special privileges are required (even if the app was called setup.exe) and indicating that your app is DPI aware and that the printer driver should run in a separate process (so it doesn't crash your app if it is faulty). If your app were code signed it would have a public key token as COMCTL32.dll does.</p> <p dir="auto">I think there's still a lot of work to do on reconciling differences with how Rust is currently and how these features could possibly be implemented, but I think once Rust (and Cargo too most likely) is capable of all the things above and can generate the manifest mostly by itself, things are looking pretty strong on Windows.</p>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Similar to how Run as Administrator works, there would be an option to toggle to be able to run as another user as this can be useful in many situations where you need to run as a different user/administrator.</p>
<p dir="auto">Mouse Without Borders is great and very usefull small app from MS.</p> <p dir="auto"><a href="https://answers.microsoft.com/en-us/windows/forum/windows_10-start/mouse-without-borders-mousewithoutborders/0523308d-3406-4273-b86e-bef28aa6b50d" rel="nofollow">https://answers.microsoft.com/en-us/windows/forum/windows_10-start/mouse-without-borders-mousewithoutborders/0523308d-3406-4273-b86e-bef28aa6b50d</a></p> <p dir="auto">Application allow you to support few devices with one mouse/keyboard. It's super usefull if you have e.g notebook and PC and you use them simultaneously.</p> <p dir="auto">Would be great if Power Toys have same functionality. Maybe is posible to merge effort with author MWB (it's garage application from Microsoft )?</p>
0
<p dir="auto">Note that this same issue was reported back in 2017 on the now-archived repo: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="208071714" data-permission-text="Title is private" data-url="https://github.com/npm/npm/issues/15783" data-hovercard-type="issue" data-hovercard-url="/npm/npm/issues/15783/hovercard" href="https://github.com/npm/npm/issues/15783">npm/npm#15783</a></p> <h3 dir="auto">Current Behavior:</h3> <p dir="auto">I am using <code class="notranslate">npm link</code> to try to test changes I am making to an upstream dependency within my own project. In the dependency directory I run <code class="notranslate">npm link</code>. Then in my own project I run <code class="notranslate">npm link ffmpeg-stream</code>.</p> <p dir="auto">NPM gives the following error message when running the second link command:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code 1 npm ERR! path D:\git\node-ffmpeg-stream npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c &quot;tsc&quot; npm ERR! Version 3.9.7 npm ERR! Syntax: tsc [options] [file...]"><pre class="notranslate"><code class="notranslate">npm ERR! code 1 npm ERR! path D:\git\node-ffmpeg-stream npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c "tsc" npm ERR! Version 3.9.7 npm ERR! Syntax: tsc [options] [file...] </code></pre></div> <p dir="auto">Afterwards, the directory of the upstream dependency is empty. Even the <code class="notranslate">.git</code> directory is deleted, so tough luck if you haven't pushed recently.</p> <h3 dir="auto">Expected Behavior:</h3> <p dir="auto">NPM link should link the package without issue. If an error is encountered, NPM should not delete the entire folder contents.</p> <h3 dir="auto">Steps To Reproduce:</h3> <ol dir="auto"> <li> <p dir="auto">Clone <code class="notranslate">https://github.com/JoshuaWalsh/node-ffmpeg-stream/</code></p> </li> <li> <p dir="auto">Clone <code class="notranslate">https://github.com/JoshuaWalsh/subtitle-indexer</code></p> </li> <li> <p dir="auto">In <code class="notranslate">node-ffmpeg-stream</code>, run <code class="notranslate">npm ci --include=prod</code></p> </li> <li> <p dir="auto">In <code class="notranslate">node-ffmpeg-stream</code>, run <code class="notranslate">npm link</code></p> </li> <li> <p dir="auto">In <code class="notranslate">subtitle-indexer</code>, run <code class="notranslate">npm link ffmpeg-stream</code></p> </li> <li> <p dir="auto">Observe that the <code class="notranslate">node-ffmpeg-stream</code> directory is now empty. (A small number of files may remain if they were in use at the time and couldn't be deleted)</p> </li> </ol> <h3 dir="auto">Environment:</h3> <ul dir="auto"> <li>OS: Windows 10 Pro 10.0.19042</li> <li>Node: 15.0.1</li> <li>npm: 7.0.3</li> </ul> <p dir="auto">I am using <code class="notranslate">nvm-windows</code> to manage NodeJS, but currently only have one version installed.</p>
<h3 dir="auto">Current Behavior:</h3> <p dir="auto">cb() never called!</p> <h3 dir="auto">Expected Behavior:</h3> <p dir="auto">Download and install file successfully using npm</p> <h3 dir="auto">Steps To Reproduce:</h3> <ol dir="auto"> <li>write npm i discord.js (example)</li> <li>Error cb() never called!</li> </ol> <h3 dir="auto">Environment:</h3> <p dir="auto">npm: 6.14.6</p>
0
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <p dir="auto"><a href="http://stackoverflow.com/questions/39129419/why-does-dataframe-construction-break-python-on-numpy-empty-like" rel="nofollow">http://stackoverflow.com/questions/39129419/why-does-dataframe-construction-break-python-on-numpy-empty-like</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np import pandas as pd a = np.array([None, None], dtype=object) print(a) # [None None] dfa = pd.DataFrame(a) print(dfa) # 0 #0 None #1 None b = np.empty_like(a) print(b) #[None None] (a == b).all() #True dfb = pd.DataFrame(b) # Fine so far print(dfb.values) #[[None] #[None]] print(dfb) #Crash"><pre class="notranslate"><code class="notranslate">import numpy as np import pandas as pd a = np.array([None, None], dtype=object) print(a) # [None None] dfa = pd.DataFrame(a) print(dfa) # 0 #0 None #1 None b = np.empty_like(a) print(b) #[None None] (a == b).all() #True dfb = pd.DataFrame(b) # Fine so far print(dfb.values) #[[None] #[None]] print(dfb) #Crash </code></pre></div> <h4 dir="auto">Expected Output</h4> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 18.2 Cython: None numpy: 1.11.1 scipy: 0.17.1 statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.5.0 html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 18.2 Cython: None numpy: 1.11.1 scipy: 0.17.1 statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.5.0 html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </code></pre></div>
<p dir="auto">This code segfaults:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(3, 3), index='A B C'.split()) pd.DataFrame(np.empty_like(df.index))"><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">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-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">3</span>, <span class="pl-c1">3</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s">'A B C'</span>.<span class="pl-en">split</span>()) <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-en">empty_like</span>(<span class="pl-s1">df</span>.<span class="pl-s1">index</span>))</pre></div> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.5.2.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 3.13.0-91-generic<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: 8.1.2<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: 0.7.2<br> IPython: 5.0.0<br> sphinx: None<br> patsy: 0.4.1<br> dateutil: 2.3<br> pytz: 2016.4<br> blosc: None<br> bottleneck: 1.1.0<br> tables: 3.2.2<br> numexpr: 2.6.0<br> matplotlib: 1.5.1<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: 4.4.1<br> html5lib: 0.999<br> httplib2: None<br> apiclient: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: None<br> pandas_datareader: None</p>
1
<p dir="auto">I have TS code that imports some types from a single file:<br> <code class="notranslate">import {TypeA,TypeB,TypeC} from './file';</code></p> <p dir="auto">It would be nice to import of all exported types from a file with a star syntax, eg:<br> <code class="notranslate">import {*} from './file';</code></p>
<p dir="auto">Opening this separate issue as suggested by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhegazy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhegazy">@mhegazy</a> in the PR mentioned below. I'm not the most informed on this issue but I am opening it because I do not want it to get lost/forgot.</p> <p dir="auto">Quoting <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhegazy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhegazy">@mhegazy</a> here:</p> <blockquote> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ahejlsberg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ahejlsberg">@ahejlsberg</a> proposed a import * from "mod" syntax to do that a while back. and in this case it would be import * from namespace. the problem here is it makes it harder to do a syntactic transformation on a single file, as the compiler needs to have the full program information to know how things should be qualified. it is something that we are looking into, i would recommend filing a new issue for this instead of having the discussion on this PR.</p> <p dir="auto">The PR is just renaming internal modules to namespaces to avoid any confusion with ES6 modules. this is something we got feedback for regularly from customers.</p> </blockquote> <p dir="auto">Now that TypeScript has renamed internal modules to namespaces and has the namespace keyword (PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="71149919" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2923" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/2923/hovercard" href="https://github.com/microsoft/TypeScript/pull/2923">#2923</a>) it would be nice to be able to import a namespace and then have access to the types defined on that namespace. Would this essentially just be a new syntax to do what <code class="notranslate">/// &lt;reference path&gt;</code> does?</p> <p dir="auto">What are the obstacles and concerns for this feature?</p>
1
<p dir="auto">I am trying to use scipy.spatial.distance.cdist<br> I can import scipy but cannot call or import scipy.spatial<br> I have searched the web and found other posts similar to this but none have worked for me. I tried different versions of scipy, numpy and python itself. I continue to get the error shown in the image below. I do not appear to have _fblas.py. I searched the C drive of my computer and all it returned was test_fblas.py, which is present in the test folder within the scipy folder. I appreciate any help leading to the resolution of this hours long quest.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/63371401/78828254-6c84bf00-79b2-11ea-9e1e-954a3ae7601e.jpg"><img src="https://user-images.githubusercontent.com/63371401/78828254-6c84bf00-79b2-11ea-9e1e-954a3ae7601e.jpg" alt="error" style="max-width: 100%;"></a></p>
<p dir="auto">Using the Microsoft Store version of Python 3.7 on Windows 10 importing <code class="notranslate">scipy.linalg</code> fails. To me this issue seems similar to <a href="https://github.com/numpy/numpy/issues/12667" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/12667/hovercard">numpy#12667</a>, which got resolved through <a href="https://github.com/numpy/numpy/pull/13019" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/13019/hovercard">numpy#13019</a>.</p> <h3 dir="auto">Reproducing code example:</h3> <p dir="auto"><code class="notranslate">import scipy.linalg</code></p> <h3 dir="auto">Error message:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;C:\Users\stroy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\__init__.py&quot;, line 190, in &lt;module&gt; from .misc import * File &quot;C:\Users\stroy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\misc.py&quot;, line 5, in &lt;module&gt; from .blas import get_blas_funcs File &quot;C:\Users\stroy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\blas.py&quot;, line 214, in &lt;module&gt; from scipy.linalg import _fblas ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "C:\Users\stroy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\__init__.py", line 190, in &lt;module&gt; from .misc import * File "C:\Users\stroy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\misc.py", line 5, in &lt;module&gt; from .blas import get_blas_funcs File "C:\Users\stroy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\blas.py", line 214, in &lt;module&gt; from scipy.linalg import _fblas ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden. </code></pre></div> <h3 dir="auto">Scipy/Numpy/Python version information:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.2.1 1.16.3 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">1.2.1 1.16.3 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0) </code></pre></div>
1
<p dir="auto">Version 0.124.0<br> Mac OS X</p> <p dir="auto">When folders are listed in the .gitignore file. They disappear from the editor.</p> <p dir="auto">Is this intentional or a bug?</p> <p dir="auto">makes it pretty difficult to view or work with ignored content</p>
<p dir="auto">I'm not sure if something changed in recent versions, but now anything in my .gitignore file does not show up in the file browser column on the left. Changing the <strong>"Exclude Vcs Ignored Paths"</strong> setting in the Preferences menu doesn't have any effect. Is there another setting I'm missing or is this a bug?</p>
1
<p dir="auto"><strong>Glide Version</strong>: com.github.bumptech.glide:glide:4.2.0</p> <p dir="auto"><strong>Integration libraries</strong>: No</p> <p dir="auto"><strong>Device/Android Version</strong>: Samsung</p> <p dir="auto"><strong>What happened</strong><br> I want to load gif images that stored locally. I get the drawable based on the name of the file. when try to load with glide it's crash with the logcat below.</p> <ul dir="auto"> <li> <p dir="auto">If i access to the file with R.drawable.anygif then it's working fine.</p> </li> <li> <p dir="auto">With GlideApp.load(getDrawable(mContext, "filename")), In the logcat it says Failed to find any ModelLoaders for model BitmapDrawable, but BitmapDrawable is a subclass of Drawable then it would be better if this can be load as well.</p> </li> <li> <p dir="auto">With GlideApp.load(getDrawable(mContext, "filename")), If i use it in placeholder then gif not working ( just an image ).</p> </li> </ul> <p dir="auto">Any idea?</p> <p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:<br> <strong>Working</strong></p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="GlideApp.with(mContext) .load(R.drawable.anygif) .override(320) .diskCacheStrategy(DiskCacheStrategy.DATA) .placeholder(R.mipmap.placeholder) .into(fakePageVH.mImgSticker);"><pre class="notranslate"><span class="pl-smi">GlideApp</span>.<span class="pl-en">with</span>(<span class="pl-s1">mContext</span>) .<span class="pl-en">load</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">anygif</span>) .<span class="pl-en">override</span>(<span class="pl-c1">320</span>) .<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">DATA</span>) .<span class="pl-en">placeholder</span>(<span class="pl-smi">R</span>.<span class="pl-s1">mipmap</span>.<span class="pl-s1">placeholder</span>) .<span class="pl-en">into</span>(<span class="pl-s1">fakePageVH</span>.<span class="pl-s1">mImgSticker</span>);</pre></div> <p dir="auto"><strong>Not Working</strong></p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="GlideApp.with(mContext) .load(getDrawable(mContext, &quot;filename&quot;)) .override(320) .diskCacheStrategy(DiskCacheStrategy.DATA) .placeholder(R.mipmap.ic_launcher_round) .into(fakePageVH.mImgSticker);"><pre class="notranslate"><span class="pl-smi">GlideApp</span>.<span class="pl-en">with</span>(<span class="pl-s1">mContext</span>) .<span class="pl-en">load</span>(<span class="pl-en">getDrawable</span>(<span class="pl-s1">mContext</span>, <span class="pl-s">"filename"</span>)) .<span class="pl-en">override</span>(<span class="pl-c1">320</span>) .<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">DATA</span>) .<span class="pl-en">placeholder</span>(<span class="pl-smi">R</span>.<span class="pl-s1">mipmap</span>.<span class="pl-s1">ic_launcher_round</span>) .<span class="pl-en">into</span>(<span class="pl-s1">fakePageVH</span>.<span class="pl-s1">mImgSticker</span>);</pre></div> <p dir="auto"><strong>Working but gif not play, just an image</strong></p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="GlideApp.with(mContext) .load(&quot;&quot;) .override(320) .diskCacheStrategy(DiskCacheStrategy.DATA) .placeholder(getDrawable(mContext, &quot;filename&quot;)) .into(fakePageVH.mImgSticker);"><pre class="notranslate"><span class="pl-smi">GlideApp</span>.<span class="pl-en">with</span>(<span class="pl-s1">mContext</span>) .<span class="pl-en">load</span>(<span class="pl-s">""</span>) .<span class="pl-en">override</span>(<span class="pl-c1">320</span>) .<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">DATA</span>) .<span class="pl-en">placeholder</span>(<span class="pl-en">getDrawable</span>(<span class="pl-s1">mContext</span>, <span class="pl-s">"filename"</span>)) .<span class="pl-en">into</span>(<span class="pl-s1">fakePageVH</span>.<span class="pl-s1">mImgSticker</span>);</pre></div> <p dir="auto"><strong>Helper</strong></p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public static Drawable getDrawable(Context context, String ImageName) { return ContextCompat.getDrawable(context, context.getResources().getIdentifier(ImageName, &quot;drawable&quot;, context.getPackageName())); }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">Drawable</span> <span class="pl-s1">getDrawable</span>(<span class="pl-smi">Context</span> <span class="pl-s1">context</span>, <span class="pl-smi">String</span> <span class="pl-s1">ImageName</span>) { <span class="pl-k">return</span> <span class="pl-smi">ContextCompat</span>.<span class="pl-en">getDrawable</span>(<span class="pl-s1">context</span>, <span class="pl-s1">context</span>.<span class="pl-en">getResources</span>().<span class="pl-en">getIdentifier</span>(<span class="pl-s1">ImageName</span>, <span class="pl-s">"drawable"</span>, <span class="pl-s1">context</span>.<span class="pl-en">getPackageName</span>())); }</pre></div> <p dir="auto"><strong>Stack trace / LogCat</strong>:</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="com.bumptech.glide.Registry$NoModelLoaderAvailableException: Failed to find any ModelLoaders for model: android.graphics.drawable.BitmapDrawable@ad5185c at com.bumptech.glide.Registry.getModelLoaders(Registry.java:543) at com.bumptech.glide.load.engine.DecodeHelper.getLoadData(DecodeHelper.java:186) at com.bumptech.glide.load.engine.DecodeHelper.getCacheKeys(DecodeHelper.java:204) at com.bumptech.glide.load.engine.DataCacheGenerator.&lt;init&gt;(DataCacheGenerator.java:33) at com.bumptech.glide.load.engine.DecodeJob.getNextGenerator(DecodeJob.java:278) at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:259) at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:230) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:762) at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:386)"><pre class="notranslate"><span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">Registry</span>$NoModelLoaderAvailableException: <span class="pl-en">Failed</span> <span class="pl-en">to</span> <span class="pl-en">find</span> <span class="pl-en">any</span> <span class="pl-v">ModelLoaders</span> <span class="pl-k">for</span> <span class="pl-en">model</span>: <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">graphics</span><span class="pl-kos">.</span><span class="pl-en">drawable</span><span class="pl-kos">.</span><span class="pl-v">BitmapDrawable</span><span class="pl-c1">@ad5185c</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">Registry</span><span class="pl-kos">.</span><span class="pl-en">getModelLoaders</span><span class="pl-kos">(</span><span class="pl-v">Registry</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:543</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeHelper</span><span class="pl-kos">.</span><span class="pl-en">getLoadData</span><span class="pl-kos">(</span><span class="pl-v">DecodeHelper</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:186</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeHelper</span><span class="pl-kos">.</span><span class="pl-en">getCacheKeys</span><span class="pl-kos">(</span><span class="pl-v">DecodeHelper</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:204</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DataCacheGenerator</span><span class="pl-kos">.</span>&lt;<span class="pl-en">init</span>&gt;<span class="pl-kos">(</span><span class="pl-v">DataCacheGenerator</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:33</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">getNextGenerator</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:278</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">runWrapped</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:259</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:230</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">runWorker</span><span class="pl-kos">(</span><span class="pl-v">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1133</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">ThreadPoolExecutor</span>$Worker<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:607</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">Thread</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">Thread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:762</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">executor</span><span class="pl-kos">.</span><span class="pl-en">GlideExecutor</span>$DefaultThreadFactory$1<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">GlideExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:386</span><span class="pl-kos">)</span></pre></div>
<h2 dir="auto">Idea</h2> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(this).load(bitmap).into(imageView); Glide.with(this).load(drawable).into(imageView);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>).<span class="pl-en">load</span>(<span class="pl-s1">bitmap</span>).<span class="pl-en">into</span>(<span class="pl-s1">imageView</span>); <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>).<span class="pl-en">load</span>(<span class="pl-s1">drawable</span>).<span class="pl-en">into</span>(<span class="pl-s1">imageView</span>);</pre></div> <p dir="auto">This looks weird compared to <code class="notranslate">ImageView.setImageBitmap(bitmap)</code>, but if you need animation and error handling (null bitmap), the above could become an easy to use, fire and forget, go-to line instead of duplicating code.<br> Note: you've already made a wrapper of <code class="notranslate">ImageView#setImageResource</code> and <code class="notranslate">ImageView#setImageUri</code>.</p> <p dir="auto">Currently they throw</p> <blockquote> <p dir="auto">Caused by: java.lang.IllegalArgumentException: Unknown type android.graphics.Bitmap@44759ab8. You must provide a Model of a type for which there is a registered ModelLoader, if you are using a custom model, you must first call Glide#register with a ModelLoaderFactory for your custom model class.<br> <code class="notranslate">at com.bumptech.glide.RequestManager.loadGeneric(RequestManager.java:382)</code><br> <code class="notranslate">at com.bumptech.glide.RequestManager.load(RequestManager.java:374)</code></p> </blockquote> <h2 dir="auto">Context</h2> <p dir="auto">This came up when I was trying to display a captured image using Glide (oversimplified code):</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="startActivityForResult(new Intent(MediaStore.ACTION_IMAGE_CAPTURE), Activity.RESULT_FIRST_USER); public void onActivityResult(int requestCode, int resultCode, Intent data) { if(requestCode == REQUEST_CODE_GET_PICTURE &amp;&amp; resultCode == Activity.RESULT_OK) { Bitmap bitmap = (Bitmap)data.getExtras().get(&quot;data&quot;); Glide.with(this).load(bitmap)/*...*/.into(image);"><pre class="notranslate"><span class="pl-en">startActivityForResult</span>(<span class="pl-k">new</span> <span class="pl-smi">Intent</span>(<span class="pl-smi">MediaStore</span>.<span class="pl-c1">ACTION_IMAGE_CAPTURE</span>), <span class="pl-smi">Activity</span>.<span class="pl-c1">RESULT_FIRST_USER</span>); <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">onActivityResult</span>(<span class="pl-smi">int</span> <span class="pl-s1">requestCode</span>, <span class="pl-smi">int</span> <span class="pl-s1">resultCode</span>, <span class="pl-smi">Intent</span> <span class="pl-s1">data</span>) { <span class="pl-k">if</span>(<span class="pl-s1">requestCode</span> == <span class="pl-c1">REQUEST_CODE_GET_PICTURE</span> &amp;&amp; <span class="pl-s1">resultCode</span> == <span class="pl-smi">Activity</span>.<span class="pl-c1">RESULT_OK</span>) { <span class="pl-smi">Bitmap</span> <span class="pl-s1">bitmap</span> = (<span class="pl-smi">Bitmap</span>)<span class="pl-s1">data</span>.<span class="pl-en">getExtras</span>().<span class="pl-en">get</span>(<span class="pl-s">"data"</span>); <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>).<span class="pl-en">load</span>(<span class="pl-s1">bitmap</span>)<span class="pl-c">/*...*/</span>.<span class="pl-en">into</span>(<span class="pl-s1">image</span>);</pre></div>
1
<p dir="auto">found while debugging <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="670330867" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/1597" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/1597/hovercard" href="https://github.com/npm/cli/issues/1597">#1597</a>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npm pack npm ERR! code ENOENT npm ERR! syscall open npm ERR! path @isaacs/bundle-metadep-duplication-x-1.0.0.tgz npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '@isaacs/bundle-metadep-duplication-x-1.0.0.tgz' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /Users/isaacs/.npm/_logs/2020-08-01T23_21_12_399Z-debug.log"><pre class="notranslate"><code class="notranslate">$ npm pack npm ERR! code ENOENT npm ERR! syscall open npm ERR! path @isaacs/bundle-metadep-duplication-x-1.0.0.tgz npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '@isaacs/bundle-metadep-duplication-x-1.0.0.tgz' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /Users/isaacs/.npm/_logs/2020-08-01T23_21_12_399Z-debug.log </code></pre></div> <p dir="auto">It should remove the scope when creating the tarball filename.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Original bug ticket: [https://npm.community/t/9557](https://npm.community/t/9557) Originally filed: 2019-08-19T14:54:09.391Z"><pre class="notranslate"><code class="notranslate"> Original bug ticket: [https://npm.community/t/9557](https://npm.community/t/9557) Originally filed: 2019-08-19T14:54:09.391Z </code></pre></div>
0
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">When I try to run npm audit fix, I get the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: [email protected] npm ERR! node_modules/webpack npm ERR! peer webpack@&quot;&gt;=2&quot; from [email protected] npm ERR! node_modules/babel-loader npm ERR! babel-loader@&quot;8.1.0&quot; from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@&quot;^4.0.3&quot; from the root project npm ERR! peer webpack@&quot;^4.27.0 || ^5.0.0&quot; from [email protected] npm ERR! node_modules/css-loader npm ERR! css-loader@&quot;4.3.0&quot; from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@&quot;^4.0.3&quot; from the root project npm ERR! 16 more (eslint-webpack-plugin, file-loader, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@&quot;&gt;=4.43.0 &lt;6.0.0&quot; from @pmmmwh/[email protected] npm ERR! node_modules/react-scripts/node_modules/@pmmmwh/react-refresh-webpack-plugin npm ERR! @pmmmwh/react-refresh-webpack-plugin@&quot;0.4.3&quot; from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@&quot;^4.0.3&quot; from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /home/jemucino/.npm/eresolve-report.txt for a full report."><pre class="notranslate"><code class="notranslate">npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: [email protected] npm ERR! node_modules/webpack npm ERR! peer webpack@"&gt;=2" from [email protected] npm ERR! node_modules/babel-loader npm ERR! babel-loader@"8.1.0" from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@"^4.0.3" from the root project npm ERR! peer webpack@"^4.27.0 || ^5.0.0" from [email protected] npm ERR! node_modules/css-loader npm ERR! css-loader@"4.3.0" from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@"^4.0.3" from the root project npm ERR! 16 more (eslint-webpack-plugin, file-loader, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@"&gt;=4.43.0 &lt;6.0.0" from @pmmmwh/[email protected] npm ERR! node_modules/react-scripts/node_modules/@pmmmwh/react-refresh-webpack-plugin npm ERR! @pmmmwh/react-refresh-webpack-plugin@"0.4.3" from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@"^4.0.3" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /home/jemucino/.npm/eresolve-report.txt for a full report. </code></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">I don't know enough about NPM to say what the expected behavior should be, but shouldn't the found version (4.44.2) satisfy the peer dependency(&gt;=4.43.0 &lt;6.0.0)?</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>In my PC (on WSL with Ubuntu 20.04) and using [email protected]</li> <li>Within a React app created with create-react-app</li> <li>Run 'npm audit fix'</li> <li>See error:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: [email protected] npm ERR! node_modules/webpack npm ERR! peer webpack@&quot;&gt;=2&quot; from [email protected] npm ERR! node_modules/babel-loader npm ERR! babel-loader@&quot;8.1.0&quot; from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@&quot;^4.0.3&quot; from the root project npm ERR! peer webpack@&quot;^4.27.0 || ^5.0.0&quot; from [email protected] npm ERR! node_modules/css-loader npm ERR! css-loader@&quot;4.3.0&quot; from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@&quot;^4.0.3&quot; from the root project npm ERR! 16 more (eslint-webpack-plugin, file-loader, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@&quot;&gt;=4.43.0 &lt;6.0.0&quot; from @pmmmwh/[email protected] npm ERR! node_modules/react-scripts/node_modules/@pmmmwh/react-refresh-webpack-plugin npm ERR! @pmmmwh/react-refresh-webpack-plugin@&quot;0.4.3&quot; from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@&quot;^4.0.3&quot; from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /home/jemucino/.npm/eresolve-report.txt for a full report."><pre lang="npm" class="notranslate"><code class="notranslate">npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: [email protected] npm ERR! node_modules/webpack npm ERR! peer webpack@"&gt;=2" from [email protected] npm ERR! node_modules/babel-loader npm ERR! babel-loader@"8.1.0" from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@"^4.0.3" from the root project npm ERR! peer webpack@"^4.27.0 || ^5.0.0" from [email protected] npm ERR! node_modules/css-loader npm ERR! css-loader@"4.3.0" from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@"^4.0.3" from the root project npm ERR! 16 more (eslint-webpack-plugin, file-loader, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@"&gt;=4.43.0 &lt;6.0.0" from @pmmmwh/[email protected] npm ERR! node_modules/react-scripts/node_modules/@pmmmwh/react-refresh-webpack-plugin npm ERR! @pmmmwh/react-refresh-webpack-plugin@"0.4.3" from [email protected] npm ERR! node_modules/react-scripts npm ERR! react-scripts@"^4.0.3" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /home/jemucino/.npm/eresolve-report.txt for a full report. </code></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: WSL (Ubuntu-20.04)</li> <li>Node: v14.17.0</li> <li>npm: 7.16.0</li> </ul>
<p dir="auto">Reopening <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="858810561" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/3083" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/3083/hovercard" href="https://github.com/npm/cli/issues/3083">#3083</a>, given that <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="859082347" data-permission-text="Title is private" data-url="https://github.com/npm/arborist/issues/266" data-hovercard-type="pull_request" data-hovercard-url="/npm/arborist/pull/266/hovercard" href="https://github.com/npm/arborist/pull/266">npm/arborist#266</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="869334581" data-permission-text="Title is private" data-url="https://github.com/npm/arborist/issues/272" data-hovercard-type="pull_request" data-hovercard-url="/npm/arborist/pull/272/hovercard" href="https://github.com/npm/arborist/pull/272">npm/arborist#272</a> didn't fix the issue.</p> <h3 dir="auto">Current Behavior:</h3> <p dir="auto">When having multiple packages relying on each others having the exact same version, trying to update them all via <code class="notranslate">npm install</code> fails when there is another package which loosely rely on them via <code class="notranslate">"peerDependencies": "^x.x.x"</code>, due to npm7 erroneous resolution.</p> <p dir="auto">Real world example: Angular core packages are supposed to be installed with the exact same version, so for example <code class="notranslate">@angular/[email protected]</code> has <code class="notranslate">"peerDependencies": { "angular/core": "11.2.9" }</code> (note the <em>exact</em> version).</p> <p dir="auto">Until now everything is fine. You can update all versions to <code class="notranslate">11.2.10</code> in <code class="notranslate">package.json</code>, run <code class="notranslate">npm install</code> and it works.</p> <p dir="auto">But now add another package which relies on one of the core packages, for example <code class="notranslate">@angular-devkit/[email protected]</code> has a <code class="notranslate">"peerDependencies": { "@angular/compiler-cli": "^11.0.0 || ^12.0.0-next" }</code>.</p> <p dir="auto">Now if you update all versions to <code class="notranslate">11.2.10</code> in <code class="notranslate">package.json</code> and run <code class="notranslate">npm install</code>, it fails.</p> <h3 dir="auto">Expected Behavior:</h3> <p dir="auto"><code class="notranslate">npm install</code> should work, as versions are correct and <code class="notranslate">peerDependencies</code> are respected.</p> <h3 dir="auto">Steps To Reproduce:</h3> <p dir="auto">Working:</p> <ol dir="auto"> <li><code class="notranslate">mkdir npmissue</code></li> <li><code class="notranslate">cd npmissue</code></li> <li><code class="notranslate">npm init -y</code></li> <li><code class="notranslate">npm install @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] -E</code></li> <li><code class="notranslate">npm install @angular/[email protected] -D -E</code></li> <li>Search/replace <code class="notranslate">11.2.9</code> &gt; <code class="notranslate">11.2.10</code> in <code class="notranslate">package.json</code></li> <li><code class="notranslate">npm install</code>: OK</li> </ol> <p dir="auto">Failing:</p> <ol dir="auto"> <li>Previous steps from 1 to 5 (included)</li> <li><code class="notranslate">npm install @angular-devkit/[email protected] -D -E</code></li> <li>Search/replace <code class="notranslate">11.2.9</code> &gt; <code class="notranslate">11.2.10</code> and <code class="notranslate">0.1102.9</code> &gt; <code class="notranslate">0.1102.10</code> in <code class="notranslate">package.json</code></li> <li><code class="notranslate">npm install</code>: fails with <code class="notranslate">peerDependencies</code> errors</li> </ol> <p dir="auto">npm log</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Found: @angular/[email protected] node_modules/@angular/common @angular/common@&quot;11.2.10&quot; from the root project peer @angular/common@&quot;11.2.9&quot; from @angular/[email protected] node_modules/@angular/platform-browser @angular/platform-browser@&quot;11.2.10&quot; from the root project peer @angular/platform-browser@&quot;11.2.9&quot; from @angular/[email protected] node_modules/@angular/platform-browser-dynamic @angular/platform-browser-dynamic@&quot;11.2.10&quot; from the root project peer @angular/common@&quot;11.2.9&quot; from @angular/[email protected] node_modules/@angular/platform-browser-dynamic @angular/platform-browser-dynamic@&quot;11.2.10&quot; from the root project Could not resolve dependency: @angular/common@&quot;11.2.10&quot; from the root project Conflicting peer dependency: @angular/[email protected] node_modules/@angular/core peer @angular/core@&quot;11.2.10&quot; from @angular/[email protected] node_modules/@angular/common @angular/common@&quot;11.2.10&quot; from the root project Fix the upstream dependency conflict, or retry this command with --force, or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution."><pre class="notranslate"><code class="notranslate">Found: @angular/[email protected] node_modules/@angular/common @angular/common@"11.2.10" from the root project peer @angular/common@"11.2.9" from @angular/[email protected] node_modules/@angular/platform-browser @angular/platform-browser@"11.2.10" from the root project peer @angular/platform-browser@"11.2.9" from @angular/[email protected] node_modules/@angular/platform-browser-dynamic @angular/platform-browser-dynamic@"11.2.10" from the root project peer @angular/common@"11.2.9" from @angular/[email protected] node_modules/@angular/platform-browser-dynamic @angular/platform-browser-dynamic@"11.2.10" from the root project Could not resolve dependency: @angular/common@"11.2.10" from the root project Conflicting peer dependency: @angular/[email protected] node_modules/@angular/core peer @angular/core@"11.2.10" from @angular/[email protected] node_modules/@angular/common @angular/common@"11.2.10" from the root project Fix the upstream dependency conflict, or retry this command with --force, or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution. </code></pre></div> <h3 dir="auto">Environment:</h3> <ul dir="auto"> <li>OS: macOS 11.2.3</li> <li>Node: 14.16.1</li> <li>npm: 7.11.2</li> </ul> <h3 dir="auto">Additional information:</h3> <p dir="auto">This issue was raised because it causes issues in automatic dependencies update tools like Renovate, which are doing exactly what I described: updating the <code class="notranslate">package.json</code> and then doing a <code class="notranslate">npm install</code>.</p> <p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="858567466" data-permission-text="Title is private" data-url="https://github.com/renovatebot/renovate/issues/9561" data-hovercard-type="issue" data-hovercard-url="/renovatebot/renovate/issues/9561/hovercard" href="https://github.com/renovatebot/renovate/issues/9561">renovatebot/renovate#9561</a> for the Renovate issue, and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="858329898" data-permission-text="Title is private" data-url="https://github.com/cyrilletuzi/angular-async-local-storage/issues/628" data-hovercard-type="pull_request" data-hovercard-url="/cyrilletuzi/angular-async-local-storage/pull/628/hovercard" href="https://github.com/cyrilletuzi/angular-async-local-storage/pull/628">cyrilletuzi/angular-async-local-storage#628</a> for a real world example, with npm logs.</p> <h3 dir="auto">Additional debug info:</h3> <p dir="auto">Doing <code class="notranslate">rm -rf node_modules &amp;&amp; rm package-lock.json</code>, then <code class="notranslate">npm install</code> works without errors or warnings.</p> <p dir="auto">Or doing <code class="notranslate">npm install --force</code>, then <code class="notranslate">npm install</code> has no more errors.</p> <p dir="auto">Meaning the <code class="notranslate">peerDependencies</code> are indeed respected and it should work in the first place. Seems like the presence of <code class="notranslate">package-lock.json</code> and/or <code class="notranslate">node_modules</code> results in an issue in correct dependencies resolution.</p>
1
<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> <p dir="auto">upload log file: C:\Users\Think\AppData\Local\Microsoft\PowerToys\PowerToys Run\Logs\1.0.0\2020-08-05.txt<br> <a href="https://github.com/microsoft/PowerToys/files/5025905/2020-08-05.txt">2020-08-05.txt</a></p> </li> <li> <p dir="auto">copy below exception message</p> </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/05/2020 11:08:42<br> Exception:</p> <p dir="auto">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>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto"><strong>Glide Version</strong>:Glide 4.2.0 (<a href="https://github.com/bumptech/glide/releases">https://github.com/bumptech/glide/releases</a>)</p> <p dir="auto"><strong>Integration libraries</strong>:No</p> <p dir="auto"><strong>Device/Android Version</strong>:HUAWEI Mate9 7.0</p> <p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>: compile Error: RequestOptionsGenerator$1 cannot be accessed<br> Error class file:... \libs\compiler-4.2.0.jar (com/bumptech/glide/annotation/compiler/RequestOptionsGenerator$1.class)<br> Class RequestOptionsGenerator$1 closed method property error<br> Please delete this file or make sure it is in the correct classpath.<br> Error: RequestOptionsGenerator$1 cannot be accessed<br> Error class file:... \libs\compiler-4.2.0.jar (com/bumptech/glide/annotation/compiler/RequestOptionsGenerator$1.class)<br> Class RequestOptionsGenerator$1 closed method property error<br> Please delete this file or make sure it is in the correct classpath.<br> 1 mistakes</p>
<p dir="auto"><strong>Glide Version</strong>:</p> <p dir="auto"><strong>Integration libraries</strong>:</p> <p dir="auto"><strong>Device/Android Version</strong>:</p> <p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:</p> <p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with..."><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-smi">with</span>...</pre></div> <p dir="auto"><strong>Layout XML</strong>:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;FrameLayout xmlns:android=&quot;..."><pre class="notranslate">&lt;<span class="pl-ent">FrameLayout</span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">android</span>=<span class="pl-s"><span class="pl-pds">"</span>...</span></pre></div> <p dir="auto"><strong>Stack trace / LogCat</strong>:</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="paste stack trace and/or log here"><pre class="notranslate"><span class="pl-en">paste</span> <span class="pl-en">stack</span> <span class="pl-en">trace</span> <span class="pl-k">and</span>/<span class="pl-en">or</span> <span class="pl-en">log</span> <span class="pl-en">here</span></pre></div>
0
<h5 dir="auto">Description of the problem</h5> <p dir="auto">In the latest version (r92) the stormtrooper collada model has an incorrect boundingBox.<br> I tried the BoxHelper:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const box = new THREE.BoxHelper(object, 0xff0000); scene.add(box);"><pre class="notranslate"><code class="notranslate">const box = new THREE.BoxHelper(object, 0xff0000); scene.add(box); </code></pre></div> <p dir="auto">or a manual approach:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const boundingBox = new THREE.Box3().setFromObject(trooper); const size = boundingBox.getSize(); const center = boundingBox.getCenter(); const geometry = new THREE.BoxGeometry(size.x, size.y, size.z); const material = new THREE.MeshBasicMaterial({ wireframe: true, color: 0x0000ff }); const box2 = new THREE.Mesh(geometry, material); box2.position.set(center.x, center.y, center.z); scene.add(box2);"><pre class="notranslate"><code class="notranslate">const boundingBox = new THREE.Box3().setFromObject(trooper); const size = boundingBox.getSize(); const center = boundingBox.getCenter(); const geometry = new THREE.BoxGeometry(size.x, size.y, size.z); const material = new THREE.MeshBasicMaterial({ wireframe: true, color: 0x0000ff }); const box2 = new THREE.Mesh(geometry, material); box2.position.set(center.x, center.y, center.z); scene.add(box2); </code></pre></div> <p dir="auto">Both approaches result in the model not being in the boundingbox:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4083920/39619241-6cc3028a-4f87-11e8-9a29-edc91c513a82.png"><img width="419" alt="screen shot 2018-05-04 at 10 31 38" src="https://user-images.githubusercontent.com/4083920/39619241-6cc3028a-4f87-11e8-9a29-edc91c513a82.png" style="max-width: 100%;"></a></p> <p dir="auto">I already figured out that this started with r87,<br> r86 didn't have this issue:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4083920/39619325-b69244a2-4f87-11e8-822d-b5ab8fcb3444.png"><img width="511" alt="screen shot 2018-05-04 at 10 31 25" src="https://user-images.githubusercontent.com/4083920/39619325-b69244a2-4f87-11e8-822d-b5ab8fcb3444.png" style="max-width: 100%;"></a></p> <p dir="auto">example code:<br> r86: <a class="commit-link" href="https://github.com/mrdoob/three.js/compare/r86...stijndeschuymer:bounding-box-test"><tt>r86...stijndeschuymer:bounding-box-test</tt></a><br> r87: <a class="commit-link" href="https://github.com/mrdoob/three.js/compare/r87...stijndeschuymer:bounding-box-test-r87"><tt>r87...stijndeschuymer:bounding-box-test-r87</tt></a></p> <p dir="auto">I'm currently trying to figure out what causes this, but I'm quite new to three.js,<br> so I'd highly appreciate it if someone pointed me in the right direction!</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=""> r92</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r87</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r86</li> </ul>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Not sure if this is the same bug or two different.</p> <ol dir="auto"> <li> <p dir="auto">Whenever SkinnedMesh origin is out of camera frustum, the mesh gets culled even if its actual transformed geometry must be visible on the screen.<br> Seems like the bounding box used for clipping is not updated with animation.</p> </li> <li> <p dir="auto">Same happens for shadows.<br> When the SkinnedMesh moves away from its origin in light space, its shadow gets clipped/partially clipped by pointlight's perspectivecamera (I guess).</p> </li> </ol> <p dir="auto">Here's an example in jsfiddle:<br> <a href="https://jsfiddle.net/vtb6z50j/" rel="nofollow">https://jsfiddle.net/vtb6z50j/</a><br> Sorry for inline json. The example was dependent of viewport dimensions. Fixed.</p> <p dir="auto">And its not light.shadow.camera.far, light.shadow.radius bug.<br> Actually the use case for this was to make a complete animation in any 3d editor (blender in my case) just to play it as is in three.js. So the character isn't moved by mesh.position, there is no need to sync movement/animation and hardcode movement positions.<br> It just plays baked animation!</p> <p dir="auto">Update: yes, making frustumCulled = false does fix both problems (which is enough for me to continue),<br> but most engines update object bbox with root motion/transforms.<br> Update2: actual temporary fix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="251487574" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/11991" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/11991/hovercard?comment_id=323610001&amp;comment_type=issue_comment" href="https://github.com/mrdoob/three.js/issues/11991#issuecomment-323610001">#11991 (comment)</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=""> r87</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r85</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=""> Firefox</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=""> Windows</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
1
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="280536217" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/15216" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/15216/hovercard" href="https://github.com/tensorflow/tensorflow/issues/15216">#15216</a><br> i have a issue, but nobody help me to solve it</p>
<p dir="auto">i use tensorflow to distributed trainning models, i use the partition valriables to store an array data, when the data is not so bigger, everything looks ok,but when the array data become larger, when the session initialize, the partition variables can not initialized and the session will wait util time out.</p> <p dir="auto">Describe the problem</p> <p dir="auto">Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request. the feat_info can initialize successfully, but the adj_info cannot initialized. the adj_info is larger than feat_info</p> <p dir="auto">i use monitored_session or supervisor to do the initialize_variables, when data is not so large, it will initialize successfully, my machine have more than 300GB memory is enough for the larger variable</p> <p dir="auto">Have I written custom code<br> yes<br> OS Platform and Distribution<br> linux platform<br> TensorFlow installed from<br> N/A<br> TensorFlow version<br> r1.4<br> Bazel version<br> CUDA/cuDNN version<br> no gpu<br> GPU model and memory<br> no gpu<br> Exact command to reproduce<br> N/A</p> <p dir="auto">Source code / logs</p> <p dir="auto">i use ps_num = 4, worker_num =4 and i also try some other distributed config, like ps_num=1, worker_num=4, the result is the same<br> source code:<br> with tf.device(tf.train.replica_device_setter(<br> worker_device="/job:worker/task:%d" % task_id,<br> cluster=cluster_spec)):</p> <p dir="auto">feat_info = tf.get_variable("feature_info", (len(id_map),FLAGS.features_column), tf.float32, trainable=False, partitioner=tf.fixed_size_partitioner(num_workers))<br> adj_info = tf.get_variable("adj_info", (len(id_map),FLAGS.max_degree), tf.int64, trainable=False, partitioner=tf.fixed_size_partitioner(num_workers))</p> <p dir="auto">with tf.device('/job:worker/task:%d' %task_id):<br> adj_local = tf.Variable(tf.constant(minibatch.adj, dtype=tf.int64), trainable=False, name="adj_local", collections=[tf.GraphKeys.LOCAL_VARIABLES])<br> feat_local = tf.Variable(tf.constant(features, dtype=tf.float32), trainable=False, name="feat_local", collections=[tf.GraphKeys.LOCAL_VARIABLES])</p> <p dir="auto">length, begin, end = split_node_by_task(len(id_map), task_id, num_workers)<br> adj = tf.nn.embedding_lookup(adj_info, [x for x in range(begin, end)])<br> adj = adj_local</p> <p dir="auto">feat = tf.nn.embedding_lookup(feat_info, [x for x in range(begin, end)])<br> feat = feat_local<br> log:<br> 2017-12-08 23:54:17.377290: I tensorflow/core/distributed_runtime/master_session.cc:998] Start master session c2b3ba9b700261ba with config:<br> INFO:tensorflow:Waiting for model to be ready. Ready_for_local_init_op: None, ready: Variables not initialized: adj_info/part_0, adj_info/part_1, adj_info/part_2, adj_info/part_3, adj_info/part_4, adj_info/part_5, adj_info/part_6, adj_info/part_7, adj_info/part_8, adj_info/part_9, adj_info/part_10, adj_info/part_11, adj_info/part_12, adj_info/part_13, adj_info/part_14, adj_info/part_15<br> 2017-12-09 00:00:35.637019: I tensorflow/core/distributed_runtime/master_session.cc:998] Start master session f35fcf332e3908ec with config:<br> INFO:tensorflow:Waiting for model to be ready. Ready_for_local_init_op: None, ready: Variables not initialized: adj_info/part_0, adj_info/part_1, adj_info/part_2, adj_info/part_3, adj_info/part_4, adj_info/part_5, adj_info/part_6, adj_info/part_7, adj_info/part_8, adj_info/part_9, adj_info/part_10, adj_info/part_11, adj_info/part_12, adj_info/part_13, adj_info/part_14, adj_info/part_15<br> and it will alway waiting adj_info to initialize</p>
1
<p dir="auto">I checked it with 1.0.0 and 1.1.0-DEV.334.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; struct Spam end julia&gt; Base.show(::IO, ::Type{Spam}) = error(&quot;nope&quot;) julia&gt; Spam Error showing value of type DataType: ERROR: nope Stacktrace: [1] error(::String) at ./error.jl:33 [2] show(::IOContext{REPL.Terminals.TTYTerminal}, ::Type{SYSTEM: show(lasterr) caused an error ErrorException(&quot;nope&quot;) Stacktrace: [1] error(::String) at ./error.jl:33 [2] show(::IOContext{REPL.Terminals.TTYTerminal}, ::Type{ERROR: nope Stacktrace: [1] error(::String) at ./error.jl:33 [2] show(::IOContext{REPL.Terminals.TTYTerminal}, ::Type{fatal: error thrown and no exception handler available. ErrorException(&quot;nope&quot;) rec_backtrace at /home/takafumi/repos/watch/julia/src/stackwalk.c:94 record_backtrace at /home/takafumi/repos/watch/julia/src/task.c:249 jl_throw at /home/takafumi/repos/watch/julia/src/task.c:580 error at ./error.jl:33 show at ./REPL[2]:1 jl_fptr_trampoline at /home/takafumi/repos/watch/julia/src/gf.c:1843 jl_apply_generic at /home/takafumi/repos/watch/julia/src/gf.c:2198 show_datatype at ./show.jl:526 show at ./show.jl:436 jl_apply_generic at /home/takafumi/repos/watch/julia/src/gf.c:2198 print at ./strings/io.jl:31 jl_apply_generic at /home/takafumi/repos/watch/julia/src/gf.c:2198 print at ./strings/io.jl:42 jl_apply_generic at /home/takafumi/repos/watch/julia/src/gf.c:2198 show_tuple_as_call at ./show.jl:1490 jl_apply_generic at /home/takafumi/repos/watch/julia/src/gf.c:2198 show_spec_linfo at ./stacktraces.jl:261 #show#9 at ./stacktraces.jl:272 unknown function (ip: 0x7f99e80ea7c3) #show at ./none:0 [inlined] #show_trace_entry#630 at ./errorshow.jl:471 unknown function (ip: 0x7f99e80ea0ec) #show_trace_entry at ./none:0 unknown function (ip: 0x7f99e80e9e28) jl_apply_generic at /home/takafumi/repos/watch/julia/src/gf.c:2198 show_backtrace at ./errorshow.jl:574 #showerror#612 at ./errorshow.jl:79 unknown function (ip: 0x7f99e80e7357) jl_fptr_trampoline at /home/takafumi/repos/watch/julia/src/gf.c:1843 jl_apply_generic at /home/takafumi/repos/watch/julia/src/gf.c:2198 showerror at ./errorshow.jl:74 [inlined] display_error at ./client.jl:99 jl_fptr_trampoline at /home/takafumi/repos/watch/julia/src/gf.c:1843 jl_apply_generic at /home/takafumi/repos/watch/julia/src/gf.c:2198 display_error at ./client.jl:102 jl_fptr_trampoline at /home/takafumi/repos/watch/julia/src/gf.c:1843 jl_apply_generic at /home/takafumi/repos/watch/julia/src/gf.c:2198 jl_apply at /home/takafumi/repos/watch/julia/src/julia.h:1559 [inlined] jl_f__apply at /home/takafumi/repos/watch/julia/src/builtins.c:556 jl_f__apply_latest at /home/takafumi/repos/watch/julia/src/builtins.c:594 #invokelatest#1 at ./essentials.jl:697 [inlined] invokelatest at ./essentials.jl:696 [inlined] _start at ./client.jl:423 jl_apply_generic at /home/takafumi/repos/watch/julia/src/gf.c:2198 jl_apply at /home/takafumi/repos/watch/julia/ui/../src/julia.h:1559 [inlined] true_main at /home/takafumi/repos/watch/julia/ui/repl.c:112 main at /home/takafumi/repos/watch/julia/ui/repl.c:233 __libc_start_main at /usr/lib/libc.so.6 (unknown line) _start at ./julia (unknown line)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">struct</span> Spam <span class="pl-k">end</span> julia<span class="pl-k">&gt;</span> Base<span class="pl-k">.</span><span class="pl-en">show</span>(<span class="pl-k">::</span><span class="pl-c1">IO</span>, <span class="pl-k">::</span><span class="pl-c1">Type{Spam}</span>) <span class="pl-k">=</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>nope<span class="pl-pds">"</span></span>) julia<span class="pl-k">&gt;</span> Spam Error showing value of type DataType<span class="pl-k">:</span> ERROR<span class="pl-k">:</span> nope Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] <span class="pl-c1">error</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>) at <span class="pl-k">./</span>error<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">33</span> [<span class="pl-c1">2</span>] <span class="pl-c1">show</span>(<span class="pl-k">::</span><span class="pl-c1">IOContext{REPL.Terminals.TTYTerminal}</span>, <span class="pl-k">::</span><span class="pl-c1">Type</span>{SYSTEM<span class="pl-k">:</span> <span class="pl-c1">show</span>(lasterr) caused an error <span class="pl-c1">ErrorException</span>(<span class="pl-s"><span class="pl-pds">"</span>nope<span class="pl-pds">"</span></span>) Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] <span class="pl-c1">error</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>) at <span class="pl-k">./</span>error<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">33</span> [<span class="pl-c1">2</span>] <span class="pl-c1">show</span>(<span class="pl-k">::</span><span class="pl-c1">IOContext{REPL.Terminals.TTYTerminal}</span>, <span class="pl-k">::</span><span class="pl-c1">Type</span>{ERROR<span class="pl-k">:</span> nope Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] <span class="pl-c1">error</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>) at <span class="pl-k">./</span>error<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">33</span> [<span class="pl-c1">2</span>] <span class="pl-c1">show</span>(<span class="pl-k">::</span><span class="pl-c1">IOContext{REPL.Terminals.TTYTerminal}</span>, <span class="pl-k">::</span><span class="pl-c1">Type</span>{fatal<span class="pl-k">:</span> error thrown and no exception handler available. <span class="pl-c1">ErrorException</span>(<span class="pl-s"><span class="pl-pds">"</span>nope<span class="pl-pds">"</span></span>) rec_backtrace at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>stackwalk<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">94</span> record_backtrace at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>task<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">249</span> jl_throw at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>task<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">580</span> error at <span class="pl-k">./</span>error<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">33</span> show at <span class="pl-k">./</span>REPL[<span class="pl-c1">2</span>]<span class="pl-k">:</span><span class="pl-c1">1</span> jl_fptr_trampoline at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">1843</span> jl_apply_generic at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">2198</span> show_datatype at <span class="pl-k">./</span>show<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">526</span> show at <span class="pl-k">./</span>show<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">436</span> jl_apply_generic at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">2198</span> print at <span class="pl-k">./</span>strings<span class="pl-k">/</span>io<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">31</span> jl_apply_generic at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">2198</span> print at <span class="pl-k">./</span>strings<span class="pl-k">/</span>io<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">42</span> jl_apply_generic at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">2198</span> show_tuple_as_call at <span class="pl-k">./</span>show<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">1490</span> jl_apply_generic at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">2198</span> show_spec_linfo at <span class="pl-k">./</span>stacktraces<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">261</span> <span class="pl-c"><span class="pl-c">#</span>show#9 at ./stacktraces.jl:272</span> unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> <span class="pl-c1">0x7f99e80ea7c3</span>) <span class="pl-c"><span class="pl-c">#</span>show at ./none:0 [inlined]</span> <span class="pl-c"><span class="pl-c">#</span>show_trace_entry#630 at ./errorshow.jl:471</span> unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> <span class="pl-c1">0x7f99e80ea0ec</span>) <span class="pl-c"><span class="pl-c">#</span>show_trace_entry at ./none:0</span> unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> <span class="pl-c1">0x7f99e80e9e28</span>) jl_apply_generic at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">2198</span> show_backtrace at <span class="pl-k">./</span>errorshow<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">574</span> <span class="pl-c"><span class="pl-c">#</span>showerror#612 at ./errorshow.jl:79</span> unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> <span class="pl-c1">0x7f99e80e7357</span>) jl_fptr_trampoline at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">1843</span> jl_apply_generic at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">2198</span> showerror at <span class="pl-k">./</span>errorshow<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">74</span> [inlined] display_error at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">99</span> jl_fptr_trampoline at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">1843</span> jl_apply_generic at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">2198</span> display_error at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">102</span> jl_fptr_trampoline at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">1843</span> jl_apply_generic at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">2198</span> jl_apply at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>julia<span class="pl-k">.</span>h<span class="pl-k">:</span><span class="pl-c1">1559</span> [inlined] jl_f__apply at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>builtins<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">556</span> jl_f__apply_latest at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>builtins<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">594</span> <span class="pl-c"><span class="pl-c">#</span>invokelatest#1 at ./essentials.jl:697 [inlined]</span> invokelatest at <span class="pl-k">./</span>essentials<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">696</span> [inlined] _start at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">423</span> jl_apply_generic at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">2198</span> jl_apply at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>ui<span class="pl-k">/</span><span class="pl-k">..</span><span class="pl-k">/</span>src<span class="pl-k">/</span>julia<span class="pl-k">.</span>h<span class="pl-k">:</span><span class="pl-c1">1559</span> [inlined] true_main at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>ui<span class="pl-k">/</span>repl<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">112</span> main at <span class="pl-k">/</span>home<span class="pl-k">/</span>takafumi<span class="pl-k">/</span>repos<span class="pl-k">/</span>watch<span class="pl-k">/</span>julia<span class="pl-k">/</span>ui<span class="pl-k">/</span>repl<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">233</span> __libc_start_main at <span class="pl-k">/</span>usr<span class="pl-k">/</span>lib<span class="pl-k">/</span>libc<span class="pl-k">.</span>so.<span class="pl-c1">6</span> (unknown line) _start at <span class="pl-k">./</span>julia (unknown line)</pre></div>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="jamie@machine:~/reltron/backend$ julia _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_) (_) | _ _ _| |_ __ _ | Type &quot;?&quot; for help, &quot;]?&quot; for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.0.0 (2018-08-08) _/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release |__/ | julia&gt; versioninfo() Julia Version 1.0.0 Commit 5d4eaca0c9 (2018-08-08 20:58 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Xeon(R) CPU E3-1505M v5 @ 2.80GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, skylake) (v1.0) pkg&gt; activate ./ (Reltron) pkg&gt; st Project Reltron v0.1.0 Status `Project.toml` [a93c6f00] DataFrames v0.13.1 [682c06a0] JSON v0.19.0 [0aa819cd] SQLite v0.6.0 [8dfed614] Test [cf7118a7] UUIDs julia&gt; using DataFrames julia&gt; methods(hash) # 62 methods for generic function &quot;hash&quot;: [1] hash(::Tuple{}, h::UInt64) in Base at tuple.jl:315 [2] hash(w::WeakRef, h::UInt64) in Base at hashing.jl:19 [3] hash(x::Expr, h::UInt64) in Base at hashing.jl:72 [4] hash(x::QuoteNode, h::UInt64) in Base at hashing.jl:73 [5] hash(x::UInt64, h::UInt64) in Base at float.jl:561 [6] hash(x::Int64, h::UInt64) in Base at float.jl:562 [7] hash(x::Float64, h::UInt64) in Base at float.jl:563 [8] hash(x::Float32, h::UInt64) in Base at float.jl:566 [9] hash(x::Char, h::UInt64) in Base at char.jl:196 [10] hash(r::Regex, h::UInt64) in Base at regex.jl:435 [11] hash(x::Base.Prehashed) in Base at multidimensional.jl:1307 [12] hash(v::VersionNumber, h::UInt64) in Base at version.jl:195 [13] hash(x::Cmd, h::UInt64) in Base at process.jl:70 [14] hash(x::Base.AndCmds, h::UInt64) in Base at process.jl:92 [15] hash(s::Base.SecretBuffer, h::UInt64) in Base at secretbuffer.jl:109 [16] hash(x::Float16, h::UInt64) in Base at hashing2.jl:169 [17] hash(frame::Base.StackTraces.StackFrame, h::UInt64) in Base.StackTraces at stacktraces.jl:90 [18] hash(a::Base.SHA1, h::UInt64) in Base at loading.jl:100 [19] hash(pkg::Base.PkgId, h::UInt64) in Base at loading.jl:169 [20] hash(id::LibGit2.GitHash, h::UInt64) in LibGit2 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/LibGit2/src/oid.jl:185 [21] hash(cred::LibGit2.GitCredential, h::UInt64) in LibGit2 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/LibGit2/src/gitcredential.jl:35 [22] hash(x::Dates.Year, h::UInt64) in Dates at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Dates/src/periods.jl:455 [23] hash(x::Dates.Month, h::UInt64) in Dates at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Dates/src/periods.jl:456 [24] hash(s::Random.DSFMT.DSFMT_state, h::UInt64) in Random.DSFMT at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Random/src/DSFMT.jl:42 [25] hash(r::Random.MersenneTwister, h::UInt64) in Random at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Random/src/RNGs.jl:162 [26] hash(r::Distributed.RRID, h::UInt64) in Distributed at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/messages.jl:15 [27] hash(r::Pkg.Types.VersionBound, h::UInt64) in Pkg.Types at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/versions.jl:88 [28] hash(s::Pkg.Types.VersionSpec, h::UInt64) in Pkg.Types at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/versions.jl:232 [29] hash(f::Pkg.Types.Fixed, h::UInt64) in Pkg.Types at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:85 [30] hash(i::Pkg.Pkg2.Pkg2Types.VersionInterval, h::UInt64) in Pkg.Pkg2.Pkg2Types at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Pkg2/types.jl:25 [31] hash(s::Pkg.Pkg2.Pkg2Types.VersionSet, h::UInt64) in Pkg.Pkg2.Pkg2Types at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Pkg2/types.jl:158 [32] hash(s::DataStructures.IntSet, h::UInt64) in DataStructures at /home/jamie/.julia/packages/DataStructures/CImpO/src/int_set.jl:245 [33] hash(t::Tuple{Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Vararg{Any,N}} where N, h::UInt64) in Base at tuple.jl:318 [34] hash(t::Tuple, h::UInt64) in Base at tuple.jl:316 [35] hash(p::Pair, h::UInt64) in Base at pair.jl:52 [36] hash(A::AbstractArray, h::UInt64) in Base at abstractarray.jl:2072 [37] hash(a::AbstractDict, h::UInt64) in Base at abstractdict.jl:462 [38] hash(x::NamedTuple, h::UInt64) in Base at namedtuple.jl:168 [39] hash(x::Union{Bool, Int16, Int32, Int8, UInt16, UInt32, UInt8}, h::UInt64) in Base at float.jl:565 [40] hash(z::Complex, h::UInt64) in Base at complex.jl:243 [41] hash(s::AbstractSet, h::UInt64) in Base at set.jl:292 [42] hash(x::AbstractChar, h::UInt64) in Base at char.jl:202 [43] hash(g::Base.Unicode.GraphemeIterator, h::UInt64) in Base.Unicode at strings/unicode.jl:671 [44] hash(ci::CartesianIndex, h::UInt64) in Base.IteratorsMD at multidimensional.jl:134 [45] hash(x::Rational{#s549} where #s549&lt;:Union{Int16, Int32, Int64, Int8, UInt16, UInt32, UInt64, UInt8}, h::UInt64) in Base at hashing2.jl:147 [46] hash(x::Irrational, h::UInt64) in Base at irrationals.jl:127 [47] hash(x::Real, h::UInt64) in Base at hashing2.jl:32 [48] hash(s::Union{SubString{String}, String}, h::UInt64) in Base at hashing2.jl:177 [49] hash(x::Union{CategoricalString{R}, CategoricalValue{T,R} where T} where R, h::UInt64) in CategoricalArrays at /home/jamie/.julia/packages/CategoricalArrays/04bks/src/value.jl:135 [50] Error showing value of type Base.MethodList: ERROR: UndefVarError: T not defined Stacktrace: [1] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Type{SYSTEM: show(lasterr) caused an error UndefVarError(:T) Stacktrace: [1] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Type{ERROR: UndefVarError: T not defined Stacktrace: [1] show(::IOContext{REPL.Terminals.TTYTerminal}, ::Type{fatal: error thrown and no exception handler available. UndefVarError(var=:T) rec_backtrace at /buildworker/worker/package_linux64/build/src/stackwalk.c:94 record_backtrace at /buildworker/worker/package_linux64/build/src/task.c:246 jl_throw at /buildworker/worker/package_linux64/build/src/task.c:577 jl_undefined_var_error at /buildworker/worker/package_linux64/build/src/rtutils.c:134 show at /home/jamie/.julia/packages/WeakRefStrings/51hoN/src/WeakRefStrings.jl:56 jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 show_datatype at ./show.jl:526 show at ./show.jl:436 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 print at ./strings/io.jl:31 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 print at ./strings/io.jl:42 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 show_tuple_as_call at ./show.jl:1490 jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 show_spec_linfo at ./stacktraces.jl:261 #show#9 at ./stacktraces.jl:272 unknown function (ip: 0x7f8904210583) jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 #show at ./none:0 [inlined] #show_trace_entry#631 at ./errorshow.jl:469 unknown function (ip: 0x7f890420fe4c) jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 #show_trace_entry at ./none:0 unknown function (ip: 0x7f890420fb48) jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 show_backtrace at ./errorshow.jl:572 #showerror#613 at ./errorshow.jl:79 unknown function (ip: 0x7f890420d1c7) jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 showerror at ./errorshow.jl:74 [inlined] display_error at ./client.jl:99 jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 display_error at ./client.jl:102 jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1536 [inlined] jl_f__apply at /buildworker/worker/package_linux64/build/src/builtins.c:556 jl_f__apply_latest at /buildworker/worker/package_linux64/build/src/builtins.c:594 #invokelatest#1 at ./essentials.jl:686 [inlined] invokelatest at ./essentials.jl:685 [inlined] _start at ./client.jl:423 jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182 unknown function (ip: 0x401ae8) unknown function (ip: 0x401513) __libc_start_main at /build/glibc-itYbWN/glibc-2.26/csu/../csu/libc-start.c:308 unknown function (ip: 0x4015b4)"><pre class="notranslate">jamie<span class="pl-c1">@machine</span><span class="pl-k">:</span><span class="pl-k">~</span><span class="pl-k">/</span>reltron<span class="pl-k">/</span>backend<span class="pl-k">$</span> julia _ _ _ <span class="pl-c1">_</span>(_)_ <span class="pl-k">|</span> Documentation<span class="pl-k">:</span> https<span class="pl-k">:</span><span class="pl-k">//</span>docs<span class="pl-k">.</span>julialang<span class="pl-k">.</span>org (_) <span class="pl-k">|</span> (_) (_) <span class="pl-k">|</span> _ _ _<span class="pl-k">|</span> <span class="pl-k">|</span>_ __ _ <span class="pl-k">|</span> Type <span class="pl-s"><span class="pl-pds">"</span>?<span class="pl-pds">"</span></span> <span class="pl-k">for</span> help, <span class="pl-s"><span class="pl-pds">"</span>]?<span class="pl-pds">"</span></span> <span class="pl-k">for</span> Pkg help. <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span><span class="pl-k">/</span> <span class="pl-s"><span class="pl-pds"><span class="pl-c1">_</span>`</span> | |</span> <span class="pl-s"> | | |_| | | | (_| | | Version 1.0.0 (2018-08-08)</span> <span class="pl-s"> _/ |<span class="pl-cce">\_</span>_'_|_|_|<span class="pl-cce">\_</span>_'_| | Official https://julialang.org/ release</span> <span class="pl-s">|__/ |</span> <span class="pl-s"></span> <span class="pl-s">julia&gt; versioninfo()</span> <span class="pl-s">Julia Version 1.0.0</span> <span class="pl-s">Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)</span> <span class="pl-s">Platform Info:</span> <span class="pl-s"> OS: Linux (x86_64-pc-linux-gnu)</span> <span class="pl-s"> CPU: Intel(R) Xeon(R) CPU E3-1505M v5 @ 2.80GHz</span> <span class="pl-s"> WORD_SIZE: 64</span> <span class="pl-s"> LIBM: libopenlibm</span> <span class="pl-s"> LLVM: libLLVM-6.0.0 (ORCJIT, skylake)</span> <span class="pl-s"></span> <span class="pl-s">(v1.0) pkg&gt; activate ./</span> <span class="pl-s"></span> <span class="pl-s">(Reltron) pkg&gt; st</span> <span class="pl-s">Project Reltron v0.1.0</span> <span class="pl-s"> Status <span class="pl-pds">`</span><span class="pl-c1">Project</span></span><span class="pl-k">.</span><span class="pl-s"><span class="pl-pds"><span class="pl-c1">toml</span>`</span></span> <span class="pl-s"> [a93c6f00] DataFrames v0.13.1</span> <span class="pl-s"> [682c06a0] JSON v0.19.0</span> <span class="pl-s"> [0aa819cd] SQLite v0.6.0</span> <span class="pl-s"> [8dfed614] Test </span> <span class="pl-s"> [cf7118a7] UUIDs </span> <span class="pl-s"></span> <span class="pl-s">julia&gt; using DataFrames</span> <span class="pl-s"></span> <span class="pl-s">julia&gt; methods(hash)</span> <span class="pl-s"># 62 methods for generic function "hash":</span> <span class="pl-s">[1] hash(::Tuple{}, h::UInt64) in Base at tuple.jl:315</span> <span class="pl-s">[2] hash(w::WeakRef, h::UInt64) in Base at hashing.jl:19</span> <span class="pl-s">[3] hash(x::Expr, h::UInt64) in Base at hashing.jl:72</span> <span class="pl-s">[4] hash(x::QuoteNode, h::UInt64) in Base at hashing.jl:73</span> <span class="pl-s">[5] hash(x::UInt64, h::UInt64) in Base at float.jl:561</span> <span class="pl-s">[6] hash(x::Int64, h::UInt64) in Base at float.jl:562</span> <span class="pl-s">[7] hash(x::Float64, h::UInt64) in Base at float.jl:563</span> <span class="pl-s">[8] hash(x::Float32, h::UInt64) in Base at float.jl:566</span> <span class="pl-s">[9] hash(x::Char, h::UInt64) in Base at char.jl:196</span> <span class="pl-s">[10] hash(r::Regex, h::UInt64) in Base at regex.jl:435</span> <span class="pl-s">[11] hash(x::Base.Prehashed) in Base at multidimensional.jl:1307</span> <span class="pl-s">[12] hash(v::VersionNumber, h::UInt64) in Base at version.jl:195</span> <span class="pl-s">[13] hash(x::Cmd, h::UInt64) in Base at process.jl:70</span> <span class="pl-s">[14] hash(x::Base.AndCmds, h::UInt64) in Base at process.jl:92</span> <span class="pl-s">[15] hash(s::Base.SecretBuffer, h::UInt64) in Base at secretbuffer.jl:109</span> <span class="pl-s">[16] hash(x::Float16, h::UInt64) in Base at hashing2.jl:169</span> <span class="pl-s">[17] hash(frame::Base.StackTraces.StackFrame, h::UInt64) in Base.StackTraces at stacktraces.jl:90</span> <span class="pl-s">[18] hash(a::Base.SHA1, h::UInt64) in Base at loading.jl:100</span> <span class="pl-s">[19] hash(pkg::Base.PkgId, h::UInt64) in Base at loading.jl:169</span> <span class="pl-s">[20] hash(id::LibGit2.GitHash, h::UInt64) in LibGit2 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/LibGit2/src/oid.jl:185</span> <span class="pl-s">[21] hash(cred::LibGit2.GitCredential, h::UInt64) in LibGit2 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/LibGit2/src/gitcredential.jl:35</span> <span class="pl-s">[22] hash(x::Dates.Year, h::UInt64) in Dates at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Dates/src/periods.jl:455</span> <span class="pl-s">[23] hash(x::Dates.Month, h::UInt64) in Dates at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Dates/src/periods.jl:456</span> <span class="pl-s">[24] hash(s::Random.DSFMT.DSFMT_state, h::UInt64) in Random.DSFMT at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Random/src/DSFMT.jl:42</span> <span class="pl-s">[25] hash(r::Random.MersenneTwister, h::UInt64) in Random at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Random/src/RNGs.jl:162</span> <span class="pl-s">[26] hash(r::Distributed.RRID, h::UInt64) in Distributed at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/messages.jl:15</span> <span class="pl-s">[27] hash(r::Pkg.Types.VersionBound, h::UInt64) in Pkg.Types at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/versions.jl:88</span> <span class="pl-s">[28] hash(s::Pkg.Types.VersionSpec, h::UInt64) in Pkg.Types at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/versions.jl:232</span> <span class="pl-s">[29] hash(f::Pkg.Types.Fixed, h::UInt64) in Pkg.Types at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:85</span> <span class="pl-s">[30] hash(i::Pkg.Pkg2.Pkg2Types.VersionInterval, h::UInt64) in Pkg.Pkg2.Pkg2Types at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Pkg2/types.jl:25</span> <span class="pl-s">[31] hash(s::Pkg.Pkg2.Pkg2Types.VersionSet, h::UInt64) in Pkg.Pkg2.Pkg2Types at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Pkg2/types.jl:158</span> <span class="pl-s">[32] hash(s::DataStructures.IntSet, h::UInt64) in DataStructures at /home/jamie/.julia/packages/DataStructures/CImpO/src/int_set.jl:245</span> <span class="pl-s">[33] hash(t::Tuple{Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Any,Vararg{Any,N}} where N, h::UInt64) in Base at tuple.jl:318</span> <span class="pl-s">[34] hash(t::Tuple, h::UInt64) in Base at tuple.jl:316</span> <span class="pl-s">[35] hash(p::Pair, h::UInt64) in Base at pair.jl:52</span> <span class="pl-s">[36] hash(A::AbstractArray, h::UInt64) in Base at abstractarray.jl:2072</span> <span class="pl-s">[37] hash(a::AbstractDict, h::UInt64) in Base at abstractdict.jl:462</span> <span class="pl-s">[38] hash(x::NamedTuple, h::UInt64) in Base at namedtuple.jl:168</span> <span class="pl-s">[39] hash(x::Union{Bool, Int16, Int32, Int8, UInt16, UInt32, UInt8}, h::UInt64) in Base at float.jl:565</span> <span class="pl-s">[40] hash(z::Complex, h::UInt64) in Base at complex.jl:243</span> <span class="pl-s">[41] hash(s::AbstractSet, h::UInt64) in Base at set.jl:292</span> <span class="pl-s">[42] hash(x::AbstractChar, h::UInt64) in Base at char.jl:202</span> <span class="pl-s">[43] hash(g::Base.Unicode.GraphemeIterator, h::UInt64) in Base.Unicode at strings/unicode.jl:671</span> <span class="pl-s">[44] hash(ci::CartesianIndex, h::UInt64) in Base.IteratorsMD at multidimensional.jl:134</span> <span class="pl-s">[45] hash(x::Rational{#s549} where #s549&lt;:Union{Int16, Int32, Int64, Int8, UInt16, UInt32, UInt64, UInt8}, h::UInt64) in Base at hashing2.jl:147</span> <span class="pl-s">[46] hash(x::Irrational, h::UInt64) in Base at irrationals.jl:127</span> <span class="pl-s">[47] hash(x::Real, h::UInt64) in Base at hashing2.jl:32</span> <span class="pl-s">[48] hash(s::Union{SubString{String}, String}, h::UInt64) in Base at hashing2.jl:177</span> <span class="pl-s">[49] hash(x::Union{CategoricalString{R}, CategoricalValue{T,R} where T} where R, h::UInt64) in CategoricalArrays at /home/jamie/.julia/packages/CategoricalArrays/04bks/src/value.jl:135</span> <span class="pl-s">[50] Error showing value of type Base.MethodList:</span> <span class="pl-s">ERROR: UndefVarError: T not defined</span> <span class="pl-s">Stacktrace:</span> <span class="pl-s"> [1] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Type{SYSTEM: show(lasterr) caused an error</span> <span class="pl-s">UndefVarError(:T)</span> <span class="pl-s"></span> <span class="pl-s">Stacktrace:</span> <span class="pl-s"> [1] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Type{ERROR: UndefVarError: T not defined</span> <span class="pl-s">Stacktrace:</span> <span class="pl-s"> [1] show(::IOContext{REPL.Terminals.TTYTerminal}, ::Type{fatal: error thrown and no exception handler available.</span> <span class="pl-s">UndefVarError(var=:T)</span> <span class="pl-s">rec_backtrace at /buildworker/worker/package_linux64/build/src/stackwalk.c:94</span> <span class="pl-s">record_backtrace at /buildworker/worker/package_linux64/build/src/task.c:246</span> <span class="pl-s">jl_throw at /buildworker/worker/package_linux64/build/src/task.c:577</span> <span class="pl-s">jl_undefined_var_error at /buildworker/worker/package_linux64/build/src/rtutils.c:134</span> <span class="pl-s">show at /home/jamie/.julia/packages/WeakRefStrings/51hoN/src/WeakRefStrings.jl:56</span> <span class="pl-s">jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">show_datatype at ./show.jl:526</span> <span class="pl-s">show at ./show.jl:436</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">print at ./strings/io.jl:31</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">print at ./strings/io.jl:42</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">show_tuple_as_call at ./show.jl:1490</span> <span class="pl-s">jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">show_spec_linfo at ./stacktraces.jl:261</span> <span class="pl-s">#show#9 at ./stacktraces.jl:272</span> <span class="pl-s">unknown function (ip: 0x7f8904210583)</span> <span class="pl-s">jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">#show at ./none:0 [inlined]</span> <span class="pl-s">#show_trace_entry#631 at ./errorshow.jl:469</span> <span class="pl-s">unknown function (ip: 0x7f890420fe4c)</span> <span class="pl-s">jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">#show_trace_entry at ./none:0</span> <span class="pl-s">unknown function (ip: 0x7f890420fb48)</span> <span class="pl-s">jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">show_backtrace at ./errorshow.jl:572</span> <span class="pl-s">#showerror#613 at ./errorshow.jl:79</span> <span class="pl-s">unknown function (ip: 0x7f890420d1c7)</span> <span class="pl-s">jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">showerror at ./errorshow.jl:74 [inlined]</span> <span class="pl-s">display_error at ./client.jl:99</span> <span class="pl-s">jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">display_error at ./client.jl:102</span> <span class="pl-s">jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1536 [inlined]</span> <span class="pl-s">jl_f__apply at /buildworker/worker/package_linux64/build/src/builtins.c:556</span> <span class="pl-s">jl_f__apply_latest at /buildworker/worker/package_linux64/build/src/builtins.c:594</span> <span class="pl-s">#invokelatest#1 at ./essentials.jl:686 [inlined]</span> <span class="pl-s">invokelatest at ./essentials.jl:685 [inlined]</span> <span class="pl-s">_start at ./client.jl:423</span> <span class="pl-s">jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182</span> <span class="pl-s">unknown function (ip: 0x401ae8)</span> <span class="pl-s">unknown function (ip: 0x401513)</span> <span class="pl-s">__libc_start_main at /build/glibc-itYbWN/glibc-2.26/csu/../csu/libc-start.c:308</span> <span class="pl-s">unknown function (ip: 0x4015b4)</span></pre></div>
1
<p dir="auto">In a <code class="notranslate">kernel.exception</code> listener, the auth token retrieved from the <code class="notranslate">security.context</code> service is always null in case of a <code class="notranslate">NotFoundHttpException</code>.</p>
<p dir="auto">The locale refactoring lead to a regression in the Security/Router integration. It's now again possible to detect the routes for secured parts of the website.</p>
1
<p dir="auto">For instance, we have 2 entities: <code class="notranslate">Website</code> and <code class="notranslate">Domain</code>.<br> <code class="notranslate">Website</code> have a <code class="notranslate">OneToMany</code> relation to <code class="notranslate">Domain</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@ORM\OneToMany(targetEntity=&quot;Domain&quot;, mappedBy=&quot;domain&quot;, cascade={&quot;all&quot;}, orphanRemoval=true) @Assert\Valid"><pre class="notranslate"><code class="notranslate">@ORM\OneToMany(targetEntity="Domain", mappedBy="domain", cascade={"all"}, orphanRemoval=true) @Assert\Valid </code></pre></div> <p dir="auto">And <code class="notranslate">Domain</code> have a ManyToOne relation and a unique constraint on the domain name field:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@UniqueEntity(&quot;name&quot;, message=&quot;Domain already exists.&quot;) @ORM\Column(name=&quot;name&quot;, type=&quot;string&quot;, unique=true) @Assert\NotBlank(message = &quot;Domain required.&quot;) $name @ORM\ManyToOne(targetEntity=&quot;Website&quot;, inversedBy=&quot;domains&quot;) @ORM\JoinColumn(name=&quot;website_id&quot;, referencedColumnName=&quot;id&quot;, nullable=false) @Assert\NotBlank(message = &quot;Website required.&quot;) $website"><pre class="notranslate"><code class="notranslate">@UniqueEntity("name", message="Domain already exists.") @ORM\Column(name="name", type="string", unique=true) @Assert\NotBlank(message = "Domain required.") $name @ORM\ManyToOne(targetEntity="Website", inversedBy="domains") @ORM\JoinColumn(name="website_id", referencedColumnName="id", nullable=false) @Assert\NotBlank(message = "Website required.") $website </code></pre></div> <p dir="auto">I have 2 forms: <code class="notranslate">WebsiteType</code> and <code class="notranslate">DomainType</code>.<br> <code class="notranslate">WebsiteType</code> have a CollectionType of DomainType:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$builder -&gt;add('domains', CollectionType::class, array( 'entry_type' =&gt; DomainType::class, 'allow_add' =&gt; true, 'allow_delete' =&gt; true, 'by_reference' =&gt; false, )) ;"><pre class="notranslate"><code class="notranslate">$builder -&gt;add('domains', CollectionType::class, array( 'entry_type' =&gt; DomainType::class, 'allow_add' =&gt; true, 'allow_delete' =&gt; true, 'by_reference' =&gt; false, )) ; </code></pre></div> <p dir="auto">I can save a new website with domains automatically created.<br> I can update website and domains in the same form too.</p> <p dir="auto">The problem is on an update, if we do not send domains in the same order then they have been saved, it will raise an error on the <code class="notranslate">Domain</code> unique constraint.</p> <p dir="auto">Example:<br> Create a new website with 2 domains:</p> <ul dir="auto"> <li>domain[0][name] = domain1.com</li> <li>domain[1][name] = domain2.com</li> </ul> <p dir="auto">Save it: OK</p> <p dir="auto">Update the website on the same form (changing domain order):</p> <ul dir="auto"> <li>domain[0][name] = newdomain.com</li> <li>domain[1][name] = domain1.com</li> </ul> <p dir="auto">Save it: ERROR: Unique constraint on domain name, domain1.com already exist</p> <p dir="auto">Update the website on the same form (without changing order):</p> <ul dir="auto"> <li>domain[0][name] = domain1.com</li> <li>domain[1][name] = newdomain.com</li> </ul> <p dir="auto">Save it: OK</p>
<p dir="auto">I am coding a project along the lines of the cookbook entry on embedded collections as stated on: <a href="http://symfony.com/doc/current/cookbook/form/form_collections.html" rel="nofollow">http://symfony.com/doc/current/cookbook/form/form_collections.html</a>.</p> <p dir="auto">I am considering the following use case:</p> <ol dir="auto"> <li>Starting out with entering a new entity task, tag is the embedded collection</li> <li>I click the Javascript 'add a tag'-link, which adds a bar 0 instance of the tag form</li> <li>I click the Javascript 'add a tag'-link, which adds a bar 1 instance of the tag form</li> <li>I click the Javascript 'add a tag'-link, which adds a bar 2 instance of the tag form</li> <li>I click the Javascript 'delete this tag'-link for tag(1), which leaves me with the instances 0 and 2</li> </ol> <p dir="auto">Now, if I would leave all these tags blank (with a notblank validation on the tag name attribute), the returned form would be expected to visualize the error statements on instances 0 and 2. However, it turns out that the feedback is only displayed for instance 0.</p> <p dir="auto">If I change the returned form with firebug and set the instances on the name input field of instance 2 to '1', the feedback is displayed on the correct instance. This behavior indicates a mismatch between the indexing of the embedded form instances and the validators.</p>
1
<ul dir="auto"> <li>VSCode Version: 1.0.1-insiders</li> <li>OS Version: Windows 10 RTM</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open <code class="notranslate">Microsoft.PowerShell.Commands.Management.dll-Help.xml</code></li> <li>Collapse the first <code class="notranslate">&lt;command:syntax&gt;</code> XML element you come across</li> <li>Notice that the collapsing is prematurely canceled</li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/466713/14690564/e374e2ae-0709-11e6-99f7-fa936e227315.png"><img src="https://cloud.githubusercontent.com/assets/466713/14690564/e374e2ae-0709-11e6-99f7-fa936e227315.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Cheers,<br> <strong>Trevor Sullivan</strong><br> <a href="https://trevorsullivan.net" rel="nofollow">https://trevorsullivan.net</a><br> <a href="https://twitter.com/pcgeek86" rel="nofollow">https://twitter.com/pcgeek86</a></p>
<p dir="auto">The current implementation of folding uses an indentation based folding strategy that is unaware of the language it works on. Knowledge on the underlying language allows us to solve the following requests:</p> <ul dir="auto"> <li>[folding] Cannot code fold empty functions <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135791496" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3349" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3349/hovercard" href="https://github.com/microsoft/vscode/issues/3349">#3349</a></li> <li>[folding] Collapse ending brace to the same line <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135795757" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3352" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3352/hovercard" href="https://github.com/microsoft/vscode/issues/3352">#3352</a></li> <li>[folding] Folded block comments should show */ <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135792155" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3350" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3350/hovercard" href="https://github.com/microsoft/vscode/issues/3350">#3350</a></li> <li>[folding] should not fold whitespace after function <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135796670" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3353" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3353/hovercard" href="https://github.com/microsoft/vscode/issues/3353">#3353</a></li> <li>[folding] Add code folding for markdown based on heading level <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135790053" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3347" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3347/hovercard" href="https://github.com/microsoft/vscode/issues/3347">#3347</a></li> <li>[folding] [lua] Weird code folding with Lua <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="137648390" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3602" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3602/hovercard" href="https://github.com/microsoft/vscode/issues/3602">#3602</a></li> <li>[folding] Collapse code block ignore comments inside this block <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139890518" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3957" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3957/hovercard" href="https://github.com/microsoft/vscode/issues/3957">#3957</a></li> <li>[folding] Code Folding: support golang multiline strings <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="151930846" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/5994" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/5994/hovercard" href="https://github.com/microsoft/vscode/issues/5994">#5994</a></li> <li>[folding] Optionally fold chained method calls <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157350400" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/6991" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/6991/hovercard" href="https://github.com/microsoft/vscode/issues/6991">#6991</a></li> </ul>
1
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">When <code class="notranslate">verbose&gt;0</code>, the fitting is shown as a progress bar including the average time/pace and last fit attempted time.</p> <h3 dir="auto">Describe your proposed solution</h3> <p dir="auto">Implement <code class="notranslate">tqdm</code>-like or <code class="notranslate">keras</code>-like (familiar to epoch tracking) progress bar such that the feature can be enabled through an argument of <code class="notranslate">verbose</code>. This proposal is under the assumption that the iteration is accessible like <code class="notranslate">for</code> loop.</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">I've been using GridSearchCV and brute-forcing parameters (regarding algorithms, domain-knowledge agnostic) to find the best model parameters while leaving the machine unattended (disconnect from the cloud). But sometimes, the kernel might freeze without any indication. Even with <code class="notranslate">verbose</code> tracking, it's hard to skim through the log, especially among hundreds of fits to deduce that the process has been interrupted.<br> The issue expanded from a simple inquiry of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121914425" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6021" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/6021/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/6021">#6021</a> .</p>
<h3 dir="auto">Describe the bug</h3> <p dir="auto">The constant:<code class="notranslate">sklearn.neighbors.VALID_METRICS['brute']</code> returns duplicate "cosine" keyword.<br> It seems harmless, but I think it should return a unique keyword list to avoid unnecessary confusion.</p> <p dir="auto">The constant is defined here:</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/scikit-learn/scikit-learn/blob/691972a7cf04e7a8918b907556b4e9904f82bd0c/sklearn/neighbors/_base.py#L40-L69">scikit-learn/sklearn/neighbors/_base.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 40 to 69 in <a data-pjax="true" class="commit-tease-sha" href="/scikit-learn/scikit-learn/commit/691972a7cf04e7a8918b907556b4e9904f82bd0c">691972a</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="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-v">VALID_METRICS</span> <span class="pl-c1">=</span> <span class="pl-en">dict</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-s1">ball_tree</span><span class="pl-c1">=</span><span class="pl-v">BallTree</span>.<span class="pl-s1">valid_metrics</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"> <span class="pl-s1">kd_tree</span><span class="pl-c1">=</span><span class="pl-v">KDTree</span>.<span class="pl-s1">valid_metrics</span>, </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-c"># The following list comes from the</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"> <span class="pl-c"># sklearn.metrics.pairwise doc string</span> </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-s1">brute</span><span class="pl-c1">=</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"> <span class="pl-en">list</span>(<span class="pl-v">PAIRWISE_DISTANCE_FUNCTIONS</span>.<span class="pl-en">keys</span>()) </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-c1">+</span> [ </td> </tr> <tr class="border-0"> <td id="L48" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="48"></td> <td id="LC48" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"braycurtis"</span>, </td> </tr> <tr class="border-0"> <td id="L49" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="49"></td> <td id="LC49" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"canberra"</span>, </td> </tr> <tr class="border-0"> <td id="L50" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="50"></td> <td id="LC50" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"chebyshev"</span>, </td> </tr> <tr class="border-0"> <td id="L51" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="51"></td> <td id="LC51" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"correlation"</span>, </td> </tr> <tr class="border-0"> <td id="L52" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="52"></td> <td id="LC52" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"cosine"</span>, </td> </tr> <tr class="border-0"> <td id="L53" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="53"></td> <td id="LC53" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"dice"</span>, </td> </tr> <tr class="border-0"> <td id="L54" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="54"></td> <td id="LC54" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"hamming"</span>, </td> </tr> <tr class="border-0"> <td id="L55" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="55"></td> <td id="LC55" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"jaccard"</span>, </td> </tr> <tr class="border-0"> <td id="L56" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="56"></td> <td id="LC56" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"kulsinski"</span>, </td> </tr> <tr class="border-0"> <td id="L57" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="57"></td> <td id="LC57" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"mahalanobis"</span>, </td> </tr> <tr class="border-0"> <td id="L58" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="58"></td> <td id="LC58" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"matching"</span>, </td> </tr> <tr class="border-0"> <td id="L59" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="59"></td> <td id="LC59" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"minkowski"</span>, </td> </tr> <tr class="border-0"> <td id="L60" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="60"></td> <td id="LC60" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"rogerstanimoto"</span>, </td> </tr> <tr class="border-0"> <td id="L61" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="61"></td> <td id="LC61" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"russellrao"</span>, </td> </tr> <tr class="border-0"> <td id="L62" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="62"></td> <td id="LC62" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"seuclidean"</span>, </td> </tr> <tr class="border-0"> <td id="L63" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="63"></td> <td id="LC63" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"sokalmichener"</span>, </td> </tr> <tr class="border-0"> <td id="L64" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="64"></td> <td id="LC64" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"sokalsneath"</span>, </td> </tr> <tr class="border-0"> <td id="L65" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="65"></td> <td id="LC65" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"sqeuclidean"</span>, </td> </tr> <tr class="border-0"> <td id="L66" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="66"></td> <td id="LC66" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"yule"</span>, </td> </tr> <tr class="border-0"> <td id="L67" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="67"></td> <td id="LC67" 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="L68" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="68"></td> <td id="LC68" 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="L69" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="69"></td> <td id="LC69" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> ) </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">Removing <code class="notranslate">cosine</code> from the latter list looks OK, but I think using <code class="notranslate">set().union</code> is more robust.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="brute=( set(PAIRWISE_DISTANCE_FUNCTIONS.keys()).union([ &quot;braycurtis&quot;, &quot;canberra&quot;, &quot;chebyshev&quot;, &quot;correlation&quot;, &quot;cosine&quot;, &quot;dice&quot;, ... ]) )"><pre class="notranslate"><span class="pl-s1">brute</span><span class="pl-c1">=</span>( <span class="pl-en">set</span>(<span class="pl-v">PAIRWISE_DISTANCE_FUNCTIONS</span>.<span class="pl-en">keys</span>()).<span class="pl-en">union</span>([ <span class="pl-s">"braycurtis"</span>, <span class="pl-s">"canberra"</span>, <span class="pl-s">"chebyshev"</span>, <span class="pl-s">"correlation"</span>, <span class="pl-s">"cosine"</span>, <span class="pl-s">"dice"</span>, ... ]) )</pre></div> <h3 dir="auto">Steps/Code to Reproduce</h3> <p dir="auto">Run the following codes on the colab.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="!pip install scikit-learn -Uq"><pre class="notranslate"><code class="notranslate">!pip install scikit-learn -Uq </code></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import sklearn.neighbors brute_metrics = sorted(sklearn.neighbors.VALID_METRICS['brute']) print(len(brute_metrics), len(set(brute_metrics))) print(brute_metrics[5:7])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">neighbors</span> <span class="pl-s1">brute_metrics</span> <span class="pl-c1">=</span> <span class="pl-en">sorted</span>(<span class="pl-s1">sklearn</span>.<span class="pl-s1">neighbors</span>.<span class="pl-v">VALID_METRICS</span>[<span class="pl-s">'brute'</span>]) <span class="pl-en">print</span>(<span class="pl-en">len</span>(<span class="pl-s1">brute_metrics</span>), <span class="pl-en">len</span>(<span class="pl-en">set</span>(<span class="pl-s1">brute_metrics</span>))) <span class="pl-en">print</span>(<span class="pl-s1">brute_metrics</span>[<span class="pl-c1">5</span>:<span class="pl-c1">7</span>])</pre></div> <p dir="auto">The result will be:</p> <div class="highlight highlight-text-adblock notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="29 28 ['cosine', 'cosine']"><pre class="notranslate">29 28 [<span class="pl-ii">'cosine', 'cosine'</span>]</pre></div> <h3 dir="auto">Expected Results</h3> <p dir="auto"><code class="notranslate">sklearn.neighbors.VALID_METRICS['brute']</code> returns unique keywords</p> <h3 dir="auto">Actual Results</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import sklearn.neighbors brute_metrics = sorted(sklearn.neighbors.VALID_METRICS['brute']) assert len(brute_metrics) == len(set(brute_metrics)), &quot;detect duplicates!&quot;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">neighbors</span> <span class="pl-s1">brute_metrics</span> <span class="pl-c1">=</span> <span class="pl-en">sorted</span>(<span class="pl-s1">sklearn</span>.<span class="pl-s1">neighbors</span>.<span class="pl-v">VALID_METRICS</span>[<span class="pl-s">'brute'</span>]) <span class="pl-k">assert</span> <span class="pl-en">len</span>(<span class="pl-s1">brute_metrics</span>) <span class="pl-c1">==</span> <span class="pl-en">len</span>(<span class="pl-en">set</span>(<span class="pl-s1">brute_metrics</span>)), <span class="pl-s">"detect duplicates!"</span></pre></div> <p dir="auto">Got:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) [&lt;ipython-input-13-279d32fcf741&gt;](https://localhost:8080/#) in &lt;module&gt;() 1 import sklearn.neighbors 2 brute_metrics = sorted(sklearn.neighbors.VALID_METRICS['brute']) ----&gt; 3 assert len(brute_metrics) == len(set(brute_metrics)), &quot;detect duplicates!&quot; 4 5 AssertionError: detect duplicates!"><pre class="notranslate"><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">AssertionError</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-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">13</span><span class="pl-c1">-</span><span class="pl-c1">279</span><span class="pl-s1">d32fcf741</span><span class="pl-c1">&gt;</span>](<span class="pl-s1">https</span>:<span class="pl-c1">//</span><span class="pl-s1">localhost</span>:<span class="pl-c1">8080</span><span class="pl-c1">/</span><span class="pl-c">#) in &lt;module&gt;()</span> <span class="pl-c1">1</span> <span class="pl-s1">import</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">neighbors</span> <span class="pl-c1">2</span> <span class="pl-s1">brute_metrics</span> <span class="pl-c1">=</span> <span class="pl-en">sorted</span>(<span class="pl-s1">sklearn</span>.<span class="pl-s1">neighbors</span>.<span class="pl-v">VALID_METRICS</span>[<span class="pl-s">'brute'</span>]) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">3</span> <span class="pl-s1">assert</span> <span class="pl-en">len</span>(<span class="pl-s1">brute_metrics</span>) <span class="pl-c1">==</span> <span class="pl-en">len</span>(<span class="pl-en">set</span>(<span class="pl-s1">brute_metrics</span>)), <span class="pl-s">"detect duplicates!"</span> <span class="pl-c1">4</span> <span class="pl-c1">5</span> <span class="pl-v">AssertionError</span>: <span class="pl-s1">detect</span> <span class="pl-s1">duplicates</span>!</pre></div> <h3 dir="auto">Versions</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="System: python: 3.7.12 (default, Jan 15 2022, 18:48:18) [GCC 7.5.0] executable: /usr/bin/python3 machine: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic Python dependencies: pip: 21.1.3 setuptools: 57.4.0 sklearn: 1.0.2 numpy: 1.21.5 scipy: 1.4.1 Cython: 0.29.28 pandas: 1.3.5 matplotlib: 3.2.2 joblib: 1.1.0 threadpoolctl: 3.1.0 Built with OpenMP: True"><pre class="notranslate">System: python: 3.7.12 (default, Jan 15 2022, 18:48:18) [GCC 7.5.0] executable: /usr/bin/python3 machine: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic Python dependencies: pip: 21.1.3 setuptools: 57.4.0 sklearn: 1.0.2 numpy: 1.21.5 scipy: 1.4.1 Cython: 0.29.28 pandas: 1.3.5 matplotlib: 3.2.2 joblib: 1.1.0 threadpoolctl: 3.1.0 Built with OpenMP: True</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
0
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.2.2</td> </tr> </tbody> </table> <p dir="auto">I'm getting an exception whilst using Browser-Kit whereby, if the response returns a <code class="notranslate">Set-Cookie</code> expiration time that's in the past, it throws the an exception like the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Fatal error: Uncaught UnexpectedValueException: The cookie expiration time &quot;-39600&quot; is not valid."><pre class="notranslate"><code class="notranslate">Fatal error: Uncaught UnexpectedValueException: The cookie expiration time "-39600" is not valid. </code></pre></div> <p dir="auto">An example of an HTTP header in my response:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Set-Cookie ADRUM_BTs=R:54|s:p; expires=Wed, 31-Dec-1969 13:00:00 GMT; path=/; HttpOnly"><pre class="notranslate"><code class="notranslate">Set-Cookie ADRUM_BTs=R:54|s:p; expires=Wed, 31-Dec-1969 13:00:00 GMT; path=/; HttpOnly </code></pre></div> <p dir="auto">According to <a href="https://tools.ietf.org/html/rfc6265#section-3.1" rel="nofollow">RFC 6265</a>:</p> <p dir="auto"><code class="notranslate">Finally, to remove a cookie, the server returns a Set-Cookie header with an expiration date in the past.</code></p> <p dir="auto">So therefore, having a date in the past is expected behaviour and should result in the cookie being deleted from the cookie jar, I'm assuming.</p>
<p dir="auto"><a href="https://github.com/symfony/symfony/blob/464b67ed09668168cabfd77b6b3cfa26ceb1b0b0/src/Symfony/Component/BrowserKit/Cookie.php#L80">BrowserKit Cookie</a> class throws an UnexpectedValueException if Expires attribute contains invalid value, but <a href="http://tools.ietf.org/html/rfc6265#section-5.2.1" rel="nofollow">RFC 6265</a> states that "If the attribute-value failed to parse as a cookie date, ignore the cookie-av."</p>
1
<p dir="auto">Spread operator does not work when run with native promises in Chrome:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let args = [(Yeah, Nah) =&gt; Yeah()] let promise = new Promise(...args)"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">args</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">(</span><span class="pl-v">Yeah</span><span class="pl-kos">,</span> <span class="pl-v">Nah</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-v">Yeah</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">]</span> <span class="pl-k">let</span> <span class="pl-s1">promise</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Promise</span><span class="pl-kos">(</span>...<span class="pl-s1">args</span><span class="pl-kos">)</span></pre></div> <blockquote> <p dir="auto">Uncaught TypeError: [object Object] is not a promise</p> </blockquote> <p dir="auto"><a href="https://babeljs.io/repl/#?experimental=true&amp;playground=false&amp;evaluate=true&amp;loose=false&amp;spec=false&amp;code=let%20args%20%3D%20%5B(Yeah%2C%20Nah)%20%3D%3E%20Yeah()%5D%0Alet%20promise%20%3D%20new%20Promise(...args)" rel="nofollow">https://babeljs.io/repl/#?experimental=true&amp;playground=false&amp;evaluate=true&amp;loose=false&amp;spec=false&amp;code=let%20args%20%3D%20%5B(Yeah%2C%20Nah)%20%3D%3E%20Yeah()%5D%0Alet%20promise%20%3D%20new%20Promise(...args)</a></p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> Transpilation of the code fails with the following error.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: .../babel-duplicate-definition-error/index.js: Duplicate declaration &quot;Foo&quot; 3 | export default function wrap() { 4 | return function() { &gt; 5 | class Foo { | ^ 6 | @autobind 7 | method() {} 8 | } at File.buildCodeFrameError (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/core/lib/transformation/file/file.js:259:12) at Scope.checkBlockScopedCollisions (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/scope/index.js:347:22) at Scope.registerBinding (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/scope/index.js:504:16) at Scope.registerDeclaration (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/scope/index.js:444:14) at Object.BlockScoped (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/scope/index.js:189:28) at Object.newFn (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/visitors.js:230:17) at NodePath._call (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/path/context.js:53:20) at NodePath.call (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/path/context.js:36:14) at NodePath.visit (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/path/context.js:88:12) at TraversalContext.visitQueue (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/context.js:118:16)"><pre class="notranslate"><code class="notranslate">TypeError: .../babel-duplicate-definition-error/index.js: Duplicate declaration "Foo" 3 | export default function wrap() { 4 | return function() { &gt; 5 | class Foo { | ^ 6 | @autobind 7 | method() {} 8 | } at File.buildCodeFrameError (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/core/lib/transformation/file/file.js:259:12) at Scope.checkBlockScopedCollisions (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/scope/index.js:347:22) at Scope.registerBinding (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/scope/index.js:504:16) at Scope.registerDeclaration (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/scope/index.js:444:14) at Object.BlockScoped (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/scope/index.js:189:28) at Object.newFn (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/visitors.js:230:17) at NodePath._call (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/path/context.js:53:20) at NodePath.call (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/path/context.js:36:14) at NodePath.visit (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/path/context.js:88:12) at TraversalContext.visitQueue (/private/tmp/babel-duplicate-definition-error/node_modules/@babel/traverse/lib/context.js:118:16) </code></pre></div> <p dir="auto"><strong>Input Code</strong><br> Executable gist: <a href="https://gist.github.com/dantman/81ab0e3f823ce287d1bd8b2a65b4ad52">https://gist.github.com/dantman/81ab0e3f823ce287d1bd8b2a65b4ad52</a></p> <ul dir="auto"> <li>Must use <code class="notranslate">@babel/preset-env</code> with a target like <code class="notranslate">node: 8</code></li> <li>Must use <code class="notranslate">@babel/plugin-proposal-decorators</code> with <code class="notranslate">legacy: true</code></li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {autobind} from 'core-decorators'; export default function wrap() { return function() { class Foo { @autobind method() {} } return Foo; }; }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">autobind</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'core-decorators'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">function</span> <span class="pl-en">wrap</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">class</span> <span class="pl-v">Foo</span> <span class="pl-kos">{</span> @<span class="pl-s1">autobind</span> <span class="pl-en">method</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-v">Foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior/code</strong><br> A clear and concise description of what you expected to happen (or code).</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [ [ &quot;@babel/preset-env&quot;, { &quot;targets&quot;: { &quot;node&quot;: 8 } } ] ], &quot;plugins&quot;: [ [&quot;@babel/plugin-proposal-decorators&quot;, {&quot;legacy&quot;: true}] ] }"><pre class="notranslate">{ <span class="pl-ent">"presets"</span>: [ [ <span class="pl-s"><span class="pl-pds">"</span>@babel/preset-env<span class="pl-pds">"</span></span>, { <span class="pl-ent">"targets"</span>: { <span class="pl-ent">"node"</span>: <span class="pl-c1">8</span> } } ] ], <span class="pl-ent">"plugins"</span>: [ [<span class="pl-s"><span class="pl-pds">"</span>@babel/plugin-proposal-decorators<span class="pl-pds">"</span></span>, {<span class="pl-ent">"legacy"</span>: <span class="pl-c1">true</span>}] ] }</pre></div> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;scripts&quot;: { &quot;start&quot;: &quot;babel index.js&quot; }, &quot;devDependencies&quot;: { &quot;@babel/cli&quot;: &quot;^7.0.0&quot;, &quot;@babel/core&quot;: &quot;^7.0.0&quot;, &quot;@babel/plugin-proposal-decorators&quot;: &quot;^7.0.0&quot;, &quot;@babel/preset-env&quot;: &quot;^7.0.0&quot; }, &quot;dependencies&quot;: { &quot;core-decorators&quot;: &quot;^0.20.0&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"scripts"</span>: { <span class="pl-ent">"start"</span>: <span class="pl-s"><span class="pl-pds">"</span>babel index.js<span class="pl-pds">"</span></span> }, <span class="pl-ent">"devDependencies"</span>: { <span class="pl-ent">"@babel/cli"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/plugin-proposal-decorators"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/preset-env"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.0.0<span class="pl-pds">"</span></span> }, <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"core-decorators"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.20.0<span class="pl-pds">"</span></span> } }</pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm install npm start # babel index.js"><pre class="notranslate">npm install npm start <span class="pl-c"><span class="pl-c">#</span> babel index.js</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): v7.0.0</li> <li>Node/npm version: Tested and confirmed in Node 8/9/10 with npm 5.6.0</li> <li>OS: OSX 10.12.16</li> <li>Monorepo: no</li> <li>How you are using Babel: <code class="notranslate">cli</code> and <code class="notranslate">jest</code></li> </ul> <p dir="auto"><strong>Additional context</strong><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="353773136" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/8525" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/8525/hovercard" href="https://github.com/babel/babel/issues/8525">#8525</a> may be related, however I'm reporting it separately because this error happens with a different type of code and does not have "(This is an error on an internal node. Probably an internal error.)" in the error message.</p> <p dir="auto">If you make any of the following changes the error goes away:</p> <ul dir="auto"> <li>Remove the <code class="notranslate">@autobind</code> decorator</li> <li>Remove the <code class="notranslate">export default</code></li> <li>Remove the <code class="notranslate">return function() {}</code> so that <code class="notranslate">wrap</code> returns <code class="notranslate">Foo</code> directly.</li> <li>Remove the <code class="notranslate">node</code> target from <code class="notranslate">env</code> (i.e. change the target so <code class="notranslate">env</code> does not emit a number of transforms)</li> </ul>
0
<p dir="auto">It doesn't matter what logic a class loader uses: it may load classes that follow a given naming convention or find them using name-path pairs. But it always does the same thing: loading classes. So, wouldn't it be better to have an <code class="notranslate">AbstractClassLoader</code> that all the loaders will have to extend? It will provide the final <code class="notranslate">register()</code> and <code class="notranslate">unregister()</code> methods, an abstract <code class="notranslate">findClass()</code> method and a default implementation of <code class="notranslate">loadClass()</code>.</p> <p dir="auto">I can take the work if you think it's a good idea.</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>yes</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.2.6</td> </tr> </tbody> </table> <p dir="auto">BC break caused by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="202337064" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/21370" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/21370/hovercard" href="https://github.com/symfony/symfony/pull/21370">#21370</a></p> <p dir="auto">Moving <code class="notranslate">PhpDocExtractor</code> before <code class="notranslate">ReflectionExtractor</code> changes behaviour in client code. This is a BC break.</p> <p dir="auto">Example:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class TravelDestination { /** * @var TravelDestinationType Type of the travel destination. * * @ORM\Column(type=&quot;travel_destination_type_enum&quot;, nullable=true) */ protected $type; /** * Sets type. * * @param TravelDestinationType $type * * @return $this */ public function setType(?TravelDestinationType $type) { $this-&gt;type = $type; return $this; } /** * Gets type. * * @return TravelDestinationType|null */ public function getType(): ?TravelDestinationType { return $this-&gt;type; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">TravelDestination</span> { <span class="pl-c">/**</span> <span class="pl-c"> * @var TravelDestinationType Type of the travel destination.</span> <span class="pl-c"> *</span> <span class="pl-c"> * @ORM\Column(type="travel_destination_type_enum", nullable=true)</span> <span class="pl-c"> */</span> <span class="pl-k">protected</span> <span class="pl-c1"><span class="pl-c1">$</span>type</span>; <span class="pl-c">/**</span> <span class="pl-c"> * Sets type.</span> <span class="pl-c"> *</span> <span class="pl-c"> * @param TravelDestinationType $type</span> <span class="pl-c"> *</span> <span class="pl-c"> * @return $this</span> <span class="pl-c"> */</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">setType</span>(?<span class="pl-smi"><span class="pl-smi">TravelDestinationType</span></span> <span class="pl-s1"><span class="pl-c1">$</span>type</span>) { <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">type</span> = <span class="pl-s1"><span class="pl-c1">$</span>type</span>; <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>; } <span class="pl-c">/**</span> <span class="pl-c"> * Gets type.</span> <span class="pl-c"> *</span> <span class="pl-c"> * @return TravelDestinationType|null</span> <span class="pl-c"> */</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">getType</span>(): ?<span class="pl-smi"><span class="pl-smi">TravelDestinationType</span></span> { <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">type</span>; } }</pre></div> <p dir="auto">Before:<br> nullable is true (from <code class="notranslate">ReflectionExtractor</code>)</p> <p dir="auto">After:<br> nullable is false (from <code class="notranslate">PhpDocExtractor</code>)</p>
0
<p dir="auto">It would be useful to have the last publish date presented in a package view on Atom.io. There are some packages out there that were really popular but haven't been updated in a long while. This would give some visibility that a package may potentially or definitely not work with your current install of Atom.</p> <p dir="auto">This would be used for <a href="https://github.com/atom/settings-view/issues/424" data-hovercard-type="issue" data-hovercard-url="/atom/settings-view/issues/424/hovercard">this</a> issue as well.</p>
<p dir="auto">It would be really helpful to show the release date for the latest version of a package on atom.io (or if not a date, time since the last release). This would make it a little easier to weed out packages that might not be maintained anymore. Maybe something like:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/823545/5910656/7c62e0b6-a58a-11e4-864c-0905544a387a.png"><img src="https://cloud.githubusercontent.com/assets/823545/5910656/7c62e0b6-a58a-11e4-864c-0905544a387a.png" alt="screenshot 2015-01-26 18 36 38" style="max-width: 100%;"></a></p>
1
<p dir="auto">They should be executed only once - their exports cached.</p> <p dir="auto">Node behavior</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/src/deno&gt; cat test.js require(&quot;./foo&quot;); require(&quot;./foo&quot;); ~/src/deno&gt; cat foo.js console.log(&quot;HELLO&quot;); ~/src/deno&gt; node test.js HELLO ~/src/deno&gt;"><pre class="notranslate"><code class="notranslate">~/src/deno&gt; cat test.js require("./foo"); require("./foo"); ~/src/deno&gt; cat foo.js console.log("HELLO"); ~/src/deno&gt; node test.js HELLO ~/src/deno&gt; </code></pre></div> <p dir="auto">Current deno behavior</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/src/deno&gt; cat test.ts import &quot;./foo.ts&quot;; import &quot;./foo.ts&quot;; ~/src/deno&gt; cat foo.ts console.log(&quot;HELLO&quot;); ~/src/deno&gt; ./out/debug/deno test.ts HELLO HELLO ~/src/deno&gt;"><pre class="notranslate"><code class="notranslate">~/src/deno&gt; cat test.ts import "./foo.ts"; import "./foo.ts"; ~/src/deno&gt; cat foo.ts console.log("HELLO"); ~/src/deno&gt; ./out/debug/deno test.ts HELLO HELLO ~/src/deno&gt; </code></pre></div>
<p dir="auto"><a href="https://embarkstudios.github.io/cargo-deny/index.html" rel="nofollow">https://embarkstudios.github.io/cargo-deny/index.html</a></p> <p dir="auto"><code class="notranslate">cargo-deny</code> provides checks for security advisories and licence checks.</p> <p dir="auto">It'd be very useful to add it to CI to ensure all dependencies have proper licenses and we're up to date with dependencies.</p>
0
<p dir="auto">Currently, the only way to make an <code class="notranslate">arrayNode</code> a map, rather than a list, is to use <code class="notranslate">useAttributeAsKey</code>, the problem with that method is that it requires you to use an attribute within the array as the key. What if you want to use the array key as the .. array key?</p> <p dir="auto">For example</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -&gt;arrayNode('servers') -&gt;prototype('array') -&gt;children() -&gt;scalarNode('username') -&gt;isRequired() -&gt;end() -&gt;scalarNode('password') -&gt;isRequired() -&gt;end() -&gt;end() -&gt;end() -&gt;end()"><pre class="notranslate"><code class="notranslate"> -&gt;arrayNode('servers') -&gt;prototype('array') -&gt;children() -&gt;scalarNode('username') -&gt;isRequired() -&gt;end() -&gt;scalarNode('password') -&gt;isRequired() -&gt;end() -&gt;end() -&gt;end() -&gt;end() </code></pre></div> <p dir="auto">with config</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="something: servers: serverA: username: userA password: passwordA serverB: username: userB password: passwordB"><pre class="notranslate"><code class="notranslate">something: servers: serverA: username: userA password: passwordA serverB: username: userB password: passwordB </code></pre></div> <p dir="auto">comes out as</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="servers [ serverA =&gt; [username: userA, password: passwordA], serverB =&gt; [username: userB, password: passwordB], ]"><pre class="notranslate"><code class="notranslate">servers [ serverA =&gt; [username: userA, password: passwordA], serverB =&gt; [username: userB, password: passwordB], ] </code></pre></div> <p dir="auto">Great! Until.. you merge config across files. If you put serverA in a file and import it, then add serverB, it comes out like -</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="servers [ serverA =&gt; [username: userA, password: passwordA], 0 =&gt; [username: userB, password: passwordB], ]"><pre class="notranslate"><code class="notranslate">servers [ serverA =&gt; [username: userA, password: passwordA], 0 =&gt; [username: userB, password: passwordB], ] </code></pre></div> <p dir="auto">The key for the nodes get lost. This issue is described on <a href="https://symfony.com/doc/current/components/config/definition.html" rel="nofollow">https://symfony.com/doc/current/components/config/definition.html</a></p> <blockquote> <p dir="auto">As of writing this, there is an inconsistency: if only one file provides the configuration in question, the keys (i.e. sf_connection and default) are not lost. But if more than one file provides the configuration, the keys are lost as described above.</p> </blockquote> <p dir="auto">that's ..not great. Especially if you're relying on referencing that key from somewhere else in your config (i.e. <code class="notranslate">default_server: ..</code>). However, since we've not indicated the <code class="notranslate">arrayNode</code> is a map, I guess this behaviour was undefined (probably odd it kept the string keys in the first place).</p> <p dir="auto">You could argue that if the key is important, to put it in the attributes, like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="something: servers: - username: userA password: passwordA server: serverA - username: userB password: passwordB server: serverB"><pre class="notranslate"><code class="notranslate">something: servers: - username: userA password: passwordA server: serverA - username: userB password: passwordB server: serverB </code></pre></div> <p dir="auto">with <code class="notranslate">useAttributeAsKey('server')</code>. However, this is not a very efficient way of writing configuration - it's clearly more for XML based processing, not YAML.</p> <p dir="auto">One way people have been getting around this is to use <code class="notranslate">useAttributeAsKey</code> with an attribute that doesn't exist, like <code class="notranslate">-&gt;useAttributeAsKey('some_field_that_doesnt_exist')</code> which seems pretty hacky.</p> <p dir="auto">Suggest something like</p> <ol dir="auto"> <li> <p dir="auto">adding <code class="notranslate">-&gt;useAsMap()</code> which turns the array into a map internally, or</p> </li> <li> <p dir="auto">breaking <code class="notranslate">arrayNode</code> into <code class="notranslate">listNode</code> and <code class="notranslate">mapNode</code> types (with <code class="notranslate">arrayNode</code> defaulting to <code class="notranslate">listNode</code> for backward compatibility for a while).</p> </li> </ol> <p dir="auto">Related</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46645800" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/12304" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/12304/hovercard" href="https://github.com/symfony/symfony/issues/12304">#12304</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49694708" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony-docs/issues/4509" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony-docs/issues/4509/hovercard" href="https://github.com/symfony/symfony-docs/issues/4509">symfony/symfony-docs#4509</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="127408578" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/17436" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/17436/hovercard" href="https://github.com/symfony/symfony/issues/17436">#17436</a></li> <li><a href="https://stackoverflow.com/questions/10924504/allowing-key-value-pairs-in-symfony-2-bundle-semantic-configuration" rel="nofollow">https://stackoverflow.com/questions/10924504/allowing-key-value-pairs-in-symfony-2-bundle-semantic-configuration</a></li> </ul>
<p dir="auto">When passing to 'useAttributeAsKey' function key that is not used in below config, in the test environment the side effect is that $config in [Bundle]Extension.php contains settings only for this env. When this method is not being used at all, the $config contains config for each env.</p> <p dir="auto"><strong>Bundle\DependencyInjection\Configuration::getConfigTreeBuilder():</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$root-&gt;children() -&gt;arrayNode('some_config') -&gt;prototype('array') -&gt;children() -&gt;scalarNode('some_key')-&gt;end() -&gt;end() -&gt;end() -&gt;end() -&gt;end();"><pre class="notranslate"><code class="notranslate">$root-&gt;children() -&gt;arrayNode('some_config') -&gt;prototype('array') -&gt;children() -&gt;scalarNode('some_key')-&gt;end() -&gt;end() -&gt;end() -&gt;end() -&gt;end(); </code></pre></div> <p dir="auto"><strong>config_dev:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" my_app: some_config: Option1: some_key: yyyy Option2: some_key: xxx"><pre class="notranslate"><code class="notranslate"> my_app: some_config: Option1: some_key: yyyy Option2: some_key: xxx </code></pre></div> <p dir="auto"><strong>config_test:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" my_app: some_config: Option1: some_key: aaaaa Option2: some_key: bbbbb"><pre class="notranslate"><code class="notranslate"> my_app: some_config: Option1: some_key: aaaaa Option2: some_key: bbbbb </code></pre></div> <p dir="auto"><strong>Bundle\DependencyInjection\BundleExtension::load():</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".... var_dump($config['some_config']) ...."><pre class="notranslate"><code class="notranslate">.... var_dump($config['some_config']) .... </code></pre></div> <h2 dir="auto">Expected result on test env:</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array (size=2) Option1 =&gt; some_key: aaaaa Option2 =&gt; some_key: bbbbb "><pre class="notranslate"><code class="notranslate">array (size=2) Option1 =&gt; some_key: aaaaa Option2 =&gt; some_key: bbbbb </code></pre></div> <h2 dir="auto">Actual result:</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array (size=4) Option1 =&gt; some_key: yyyy Option2 =&gt; some_key: xxx 0 =&gt; some_key: aaaaa 1 =&gt; some_key: bbbbb"><pre class="notranslate"><code class="notranslate">array (size=4) Option1 =&gt; some_key: yyyy Option2 =&gt; some_key: xxx 0 =&gt; some_key: aaaaa 1 =&gt; some_key: bbbbb </code></pre></div> <h2 dir="auto">How to fix that?</h2> <p dir="auto"><strong>Bundle\DependencyInjection\Configuration::getConfigTreeBuilder():</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$root-&gt;children() -&gt;arrayNode('some_config') -&gt;useAttributeAsKey('some_not_existing_key_to_prevent_associative_array_in_different_env_SYMFONY_BUG') -&gt;prototype('array') -&gt;children() -&gt;scalarNode('some_key')-&gt;end() -&gt;end() -&gt;end() -&gt;end() -&gt;end();"><pre class="notranslate"><code class="notranslate">$root-&gt;children() -&gt;arrayNode('some_config') -&gt;useAttributeAsKey('some_not_existing_key_to_prevent_associative_array_in_different_env_SYMFONY_BUG') -&gt;prototype('array') -&gt;children() -&gt;scalarNode('some_key')-&gt;end() -&gt;end() -&gt;end() -&gt;end() -&gt;end(); </code></pre></div> <p dir="auto">Then:</p> <p dir="auto"><strong>Bundle\DependencyInjection\BundleExtension::load():</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".... var_dump($config['some_config']) ...."><pre class="notranslate"><code class="notranslate">.... var_dump($config['some_config']) .... </code></pre></div> <h2 dir="auto">Actual result on test env after fixing:</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array (size=2) Option1 =&gt; some_key: aaaaa Option2 =&gt; some_key: bbbbb"><pre class="notranslate"><code class="notranslate">array (size=2) Option1 =&gt; some_key: aaaaa Option2 =&gt; some_key: bbbbb </code></pre></div> <p dir="auto">But I don't think it's a proper behaviour.</p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="s = pd.Series([1,1,0], index=[1,2,2]) s.groupby(s).fillna(method='bfill')"><pre class="notranslate"><code class="notranslate">s = pd.Series([1,1,0], index=[1,2,2]) s.groupby(s).fillna(method='bfill') </code></pre></div> <p dir="auto">I have a dataframe with a column containing some strings and NaNs. I can do do <code class="notranslate">df.col.bfill()</code> but when I try to do <code class="notranslate">df.groupby('col2').col1.bfill()</code> I get a <code class="notranslate">ValueError</code>.<br> I can do <code class="notranslate">first</code> and <code class="notranslate">apply(lambda x: x is str)</code> without error.</p> <p dir="auto">Here is the full traceback:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 558, in wrapper return self.apply(curried_with_axis) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 662, in apply return self._python_apply_general(f) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 669, in _python_apply_general not_indexed_same=mutated) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 2380, in _wrap_applied_output not_indexed_same=not_indexed_same) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 1142, in _concat_objects result = result.reindex(ax) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\series.py&quot;, line 2149, in reindex return super(Series, self).reindex(index=index, **kwargs) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\generic.py&quot;, line 1731, in reindex method, fill_value, copy).__finalize__(self) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\generic.py&quot;, line 1749, in _reindex_axes allow_dups=False) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\generic.py&quot;, line 1834, in _reindex_with_indexers copy=copy) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\internals.py&quot;, line 3150, in reindex_indexer raise ValueError(&quot;cannot reindex from a duplicate axis&quot;) ValueError: cannot reindex from a duplicate axis During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 561, in wrapper return self.apply(curried) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 662, in apply return self._python_apply_general(f) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 669, in _python_apply_general not_indexed_same=mutated) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 2380, in _wrap_applied_output not_indexed_same=not_indexed_same) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 1142, in _concat_objects result = result.reindex(ax) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\series.py&quot;, line 2149, in reindex return super(Series, self).reindex(index=index, **kwargs) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\generic.py&quot;, line 1731, in reindex method, fill_value, copy).__finalize__(self) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\generic.py&quot;, line 1749, in _reindex_axes allow_dups=False) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\generic.py&quot;, line 1834, in _reindex_with_indexers copy=copy) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\internals.py&quot;, line 3150, in reindex_indexer raise ValueError(&quot;cannot reindex from a duplicate axis&quot;) ValueError: cannot reindex from a duplicate axis During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 570, in wrapper return self._aggregate_item_by_item(name, *args, **kwargs) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 511, in __getattr__ (type(self).__name__, attr)) AttributeError: 'SeriesGroupBy' object has no attribute '_aggregate_item_by_item' During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;C:\Program Files (x86)\JetBrains\PyCharm 3.4.1\helpers\pydev\pydevd.py&quot;, line 1733, in &lt;module&gt; debugger.run(setup['file'], None, None) File &quot;C:\Program Files (x86)\JetBrains\PyCharm 3.4.1\helpers\pydev\pydevd.py&quot;, line 1226, in run pydev_imports.execfile(file, globals, locals) # execute the script File &quot;C:\Program Files (x86)\JetBrains\PyCharm 3.4.1\helpers\pydev\_pydev_execfile.py&quot;, line 38, in execfile exec(compile(contents+&quot;\n&quot;, file, 'exec'), glob, loc) #execute the script File &quot;G:/Users/ari/Documents/Git/Misc/testbross.py&quot;, line 5, in &lt;module&gt; brwbt = KevinsDB.KevinToWBT(brdb.both[brdb.both.SYMBOL=='VCLT']) File &quot;G:\Users\ari\Documents\Git\KevinsDB.py&quot;, line 95, in KevinToWBT s = grp.OrderTime.ffill().bfill() File &quot;C:\Anaconda3\lib\site-packages\pandas\core\groupby.py&quot;, line 572, in wrapper raise ValueError ValueError"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 558, in wrapper return self.apply(curried_with_axis) File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 662, in apply return self._python_apply_general(f) File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 669, in _python_apply_general not_indexed_same=mutated) File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 2380, in _wrap_applied_output not_indexed_same=not_indexed_same) File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 1142, in _concat_objects result = result.reindex(ax) File "C:\Anaconda3\lib\site-packages\pandas\core\series.py", line 2149, in reindex return super(Series, self).reindex(index=index, **kwargs) File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1731, in reindex method, fill_value, copy).__finalize__(self) File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1749, in _reindex_axes allow_dups=False) File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1834, in _reindex_with_indexers copy=copy) File "C:\Anaconda3\lib\site-packages\pandas\core\internals.py", line 3150, in reindex_indexer raise ValueError("cannot reindex from a duplicate axis") ValueError: cannot reindex from a duplicate axis During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 561, in wrapper return self.apply(curried) File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 662, in apply return self._python_apply_general(f) File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 669, in _python_apply_general not_indexed_same=mutated) File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 2380, in _wrap_applied_output not_indexed_same=not_indexed_same) File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 1142, in _concat_objects result = result.reindex(ax) File "C:\Anaconda3\lib\site-packages\pandas\core\series.py", line 2149, in reindex return super(Series, self).reindex(index=index, **kwargs) File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1731, in reindex method, fill_value, copy).__finalize__(self) File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1749, in _reindex_axes allow_dups=False) File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1834, in _reindex_with_indexers copy=copy) File "C:\Anaconda3\lib\site-packages\pandas\core\internals.py", line 3150, in reindex_indexer raise ValueError("cannot reindex from a duplicate axis") ValueError: cannot reindex from a duplicate axis During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 570, in wrapper return self._aggregate_item_by_item(name, *args, **kwargs) File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 511, in __getattr__ (type(self).__name__, attr)) AttributeError: 'SeriesGroupBy' object has no attribute '_aggregate_item_by_item' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files (x86)\JetBrains\PyCharm 3.4.1\helpers\pydev\pydevd.py", line 1733, in &lt;module&gt; debugger.run(setup['file'], None, None) File "C:\Program Files (x86)\JetBrains\PyCharm 3.4.1\helpers\pydev\pydevd.py", line 1226, in run pydev_imports.execfile(file, globals, locals) # execute the script File "C:\Program Files (x86)\JetBrains\PyCharm 3.4.1\helpers\pydev\_pydev_execfile.py", line 38, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) #execute the script File "G:/Users/ari/Documents/Git/Misc/testbross.py", line 5, in &lt;module&gt; brwbt = KevinsDB.KevinToWBT(brdb.both[brdb.both.SYMBOL=='VCLT']) File "G:\Users\ari\Documents\Git\KevinsDB.py", line 95, in KevinToWBT s = grp.OrderTime.ffill().bfill() File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 572, in wrapper raise ValueError ValueError </code></pre></div>
<h3 dir="auto">Small Example</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [13]: import pandas as pd ...: ...: df1 = pd.DataFrame(data=dict(A=[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], ...: B=[1, 1, 2, 2, 2, 3, 1, 1, 1, 2, 3, 4], ...: C=[1, 2, 1, 2, 3, 2, 1, 2, 3, 2, 1, 4], ...: X=[1, 5, 2, 3, 8, 3, 3, 3, 1, 2, 1, 4], ...: Y=[7, 3, 4, 1, 3, 9, 9, 3, 1, 9, 3, 7])) ...: df1 = df1.set_index(['A', 'B', 'C']) ...: In [14]: df1.loc[pd.IndexSlice[1, :, :]] Out[14]: X Y B C 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 .. .. .. 1 2 3 3 3 1 1 2 2 2 9 3 1 1 3 4 4 4 7 [12 rows x 2 columns] In [15]: df1 Out[15]: X Y B C 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 .. .. .. 1 2 3 3 3 1 1 2 2 2 9 3 1 1 3 4 4 4 7 [12 rows x 2 columns]"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">13</span>]: <span class="pl-s1">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> ...: ...: <span class="pl-s1">df1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-en">dict</span>(<span class="pl-v">A</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>], ...: <span class="pl-v">B</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</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-c1">4</span>], ...: <span class="pl-v">C</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-c1">4</span>], ...: <span class="pl-v">X</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">5</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">8</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-c1">4</span>], ...: <span class="pl-v">Y</span><span class="pl-c1">=</span>[<span class="pl-c1">7</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-c1">9</span>, <span class="pl-c1">9</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>, <span class="pl-c1">9</span>, <span class="pl-c1">3</span>, <span class="pl-c1">7</span>])) ...: <span class="pl-s1">df1</span> <span class="pl-c1">=</span> <span class="pl-s1">df1</span>.<span class="pl-en">set_index</span>([<span class="pl-s">'A'</span>, <span class="pl-s">'B'</span>, <span class="pl-s">'C'</span>]) ...: <span class="pl-v">In</span> [<span class="pl-c1">14</span>]: <span class="pl-s1">df1</span>.<span class="pl-s1">loc</span>[<span class="pl-s1">pd</span>.<span class="pl-v">IndexSlice</span>[<span class="pl-c1">1</span>, :, :]] <span class="pl-v">Out</span>[<span class="pl-c1">14</span>]: <span class="pl-v">X</span> <span class="pl-v">Y</span> <span class="pl-v">B</span> <span class="pl-v">C</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">7</span> <span class="pl-c1">2</span> <span class="pl-c1">5</span> <span class="pl-c1">3</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">4</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">8</span> <span class="pl-c1">3</span> .. .. .. <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">3</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">2</span> <span class="pl-c1">2</span> <span class="pl-c1">9</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">4</span> <span class="pl-c1">4</span> <span class="pl-c1">4</span> <span class="pl-c1">7</span> [<span class="pl-c1">12</span> <span class="pl-s1">rows</span> <span class="pl-s1">x</span> <span class="pl-c1">2</span> <span class="pl-s1">columns</span>] <span class="pl-v">In</span> [<span class="pl-c1">15</span>]: <span class="pl-s1">df1</span> <span class="pl-v">Out</span>[<span class="pl-c1">15</span>]: <span class="pl-v">X</span> <span class="pl-v">Y</span> <span class="pl-v">B</span> <span class="pl-v">C</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">7</span> <span class="pl-c1">2</span> <span class="pl-c1">5</span> <span class="pl-c1">3</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">4</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">8</span> <span class="pl-c1">3</span> .. .. .. <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">3</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">2</span> <span class="pl-c1">2</span> <span class="pl-c1">9</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">4</span> <span class="pl-c1">4</span> <span class="pl-c1">4</span> <span class="pl-c1">7</span> [<span class="pl-c1">12</span> <span class="pl-s1">rows</span> <span class="pl-s1">x</span> <span class="pl-c1">2</span> <span class="pl-s1">columns</span>]</pre></div> <h3 dir="auto">Expected Output</h3> <p dir="auto">The output of the slice <code class="notranslate">Out[14]</code> is correct, but <code class="notranslate">df1</code> should not be modified inplace. So the expected <code class="notranslate">Out[15]</code> is the original <code class="notranslate">df1</code>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [17]: df1 Out[17]: X Y A B C 1 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 ... .. .. 1 2 3 3 3 1 1 2 2 2 9 3 1 1 3 4 4 4 7 [12 rows x 2 columns]"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">17</span>]: <span class="pl-s1">df1</span> <span class="pl-v">Out</span>[<span class="pl-c1">17</span>]: <span class="pl-v">X</span> <span class="pl-v">Y</span> <span class="pl-v">A</span> <span class="pl-v">B</span> <span class="pl-v">C</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">7</span> <span class="pl-c1">2</span> <span class="pl-c1">5</span> <span class="pl-c1">3</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">4</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">8</span> <span class="pl-c1">3</span> ... .. .. <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">3</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">2</span> <span class="pl-c1">2</span> <span class="pl-c1">9</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">4</span> <span class="pl-c1">4</span> <span class="pl-c1">4</span> <span class="pl-c1">7</span> [<span class="pl-c1">12</span> <span class="pl-s1">rows</span> <span class="pl-s1">x</span> <span class="pl-c1">2</span> <span class="pl-s1">columns</span>]</pre></div> <hr> <p dir="auto">I'm still not good at submitting issues here with code and print out, so I appreciate your patience. Also, thank you guys for making pandas as amazing as it is!!</p> <p dir="auto">Anyhow...</p> <p dir="auto">I have dataframes that sometimes have up to 5 levels on their multiindex. It's not uncommon for me to want to just grab a subset containing only one value on a certain level. If one level of that index has only one value, then .loc can drop that level inplace. I'd say this is highly undesirable.</p> <p dir="auto">First the normal behavior. Here's my input:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" X Y A B C 1 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9 2 1 1 3 9 2 3 3 3 1 1 2 2 2 9 3 1 1 3 4 4 4 7"><pre class="notranslate"><code class="notranslate"> X Y A B C 1 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9 2 1 1 3 9 2 3 3 3 1 1 2 2 2 9 3 1 1 3 4 4 4 7 </code></pre></div> <p dir="auto">When I have a multi-indexed dataframe, and I do:<br> df.loc[1]<br> I get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" X Y B C 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9"><pre class="notranslate"><code class="notranslate"> X Y B C 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9 </code></pre></div> <p dir="auto">I personally expect it to return the original multi-index where the first level has only that value. Sadly, it drops it entirely ( I think this is terrible, since if you plan on resetting the index or concatenating later, you've just unwittingly lost information).</p> <p dir="auto">Anyhow, I recognize now that you need to provide an index for all levels, e.g., the way I expected it to work can actually be achieved by (for a three level index):<br> df.loc[pd.IndexSlice[1, :, :]]</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" X Y A B C 1 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9"><pre class="notranslate"><code class="notranslate"> X Y A B C 1 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9 </code></pre></div> <p dir="auto">Here's the rub... If the level that I indexed above has more than one unique value, this works fine. If <strong>it has only one, then once again that level gets dropped, but worse, the index is modified in place during the .loc operation.</strong><br> Here's the dataframe showing the bad behavior:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" X Y A B C 1 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7"><pre class="notranslate"><code class="notranslate"> X Y A B C 1 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7 </code></pre></div> <p dir="auto">df.loc[pd.IndexSlice[1, :, :]] gives:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" X Y B C 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7"><pre class="notranslate"><code class="notranslate"> X Y B C 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7 </code></pre></div> <p dir="auto">Same syntax as the other case, but it dropped index A. Worse is that this is now df.<br> print(df)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" X Y B C 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7"><pre class="notranslate"><code class="notranslate"> X Y B C 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7 </code></pre></div> <p dir="auto">If I modify the syntax slightly. I.e., df.loc[pd.IndexSlice[1, :, :], :] (with the original not modifed frame, I get the expected result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" X Y A B C 1 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7"><pre class="notranslate"><code class="notranslate"> X Y A B C 1 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7 </code></pre></div> <p dir="auto">I've tried to provide a code sample with comments that demonstrates the problem.</p> <h3 dir="auto">Code Sample, a copy-pastable example if possible</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd df1 = pd.DataFrame(data=dict(A=[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], B=[1, 1, 2, 2, 2, 3, 1, 1, 1, 2, 3, 4], C=[1, 2, 1, 2, 3, 2, 1, 2, 3, 2, 1, 4], X=[1, 5, 2, 3, 8, 3, 3, 3, 1, 2, 1, 4], Y=[7, 3, 4, 1, 3, 9, 9, 3, 1, 9, 3, 7])) df2 = df1.copy(deep=True) df2['A'] = [1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2] df1 = df1.set_index(['A', 'B', 'C']).sortlevel() df2 = df2.set_index(['A', 'B', 'C']).sortlevel() df1_copy = df1.copy() print(&quot;Here's df2, with more than 1 unique value for the index A:&quot;) print(df2) # already annoyed by this, I don't think this is how it should work, but I understand it print(&quot;\nHere's what df2.loc[1] returns&quot;) print(df2.loc[1]) # understand how to get around it at least print(&quot;\nCan get around this annoyance by df2.loc[pd.IndexSlice[1, :, :]]&quot;) print(df2.loc[pd.IndexSlice[1, :, :]]) # BUT! If it's the only one... print(&quot;\nHere's df1, with only a single value for the index A&quot;) print(df1) print(&quot;\nNow let's do the same thing we did for df2, namely display df1.loc[pidx[1, :, :]]&quot;) print(df1.loc[pd.IndexSlice[1, :, :]]) # and holy crap it's an inplace operation! print(&quot;\nDamnit.. it dropped by index again! And... ruh roh! It has a side effect! Here's df1 again:&quot;) print(df1) print(&quot;\nDoing df1.loc[pidx[1, :, :], :] (using the original df1) works as expected.&quot;) print(df1_copy.loc[pd.IndexSlice[1, :, :], :])"><pre class="notranslate"><code class="notranslate">import pandas as pd df1 = pd.DataFrame(data=dict(A=[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], B=[1, 1, 2, 2, 2, 3, 1, 1, 1, 2, 3, 4], C=[1, 2, 1, 2, 3, 2, 1, 2, 3, 2, 1, 4], X=[1, 5, 2, 3, 8, 3, 3, 3, 1, 2, 1, 4], Y=[7, 3, 4, 1, 3, 9, 9, 3, 1, 9, 3, 7])) df2 = df1.copy(deep=True) df2['A'] = [1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2] df1 = df1.set_index(['A', 'B', 'C']).sortlevel() df2 = df2.set_index(['A', 'B', 'C']).sortlevel() df1_copy = df1.copy() print("Here's df2, with more than 1 unique value for the index A:") print(df2) # already annoyed by this, I don't think this is how it should work, but I understand it print("\nHere's what df2.loc[1] returns") print(df2.loc[1]) # understand how to get around it at least print("\nCan get around this annoyance by df2.loc[pd.IndexSlice[1, :, :]]") print(df2.loc[pd.IndexSlice[1, :, :]]) # BUT! If it's the only one... print("\nHere's df1, with only a single value for the index A") print(df1) print("\nNow let's do the same thing we did for df2, namely display df1.loc[pidx[1, :, :]]") print(df1.loc[pd.IndexSlice[1, :, :]]) # and holy crap it's an inplace operation! print("\nDamnit.. it dropped by index again! And... ruh roh! It has a side effect! Here's df1 again:") print(df1) print("\nDoing df1.loc[pidx[1, :, :], :] (using the original df1) works as expected.") print(df1_copy.loc[pd.IndexSlice[1, :, :], :]) </code></pre></div> <h4 dir="auto">Here's what I get from running the code</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Here's df2, with more than 1 unique value for the index A: X Y A B C 1 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9 2 1 1 3 9 2 3 3 3 1 1 2 2 2 9 3 1 1 3 4 4 4 7 Here's what df2.loc[1] returns X Y B C 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9 Can get around this annoyance by df2.loc[pd.IndexSlice[1, :, :]] X Y A B C 1 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9 Here's df1, with only a single value for the index A X Y A B C 1 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7 Now let's do the same thing we did for df2, namely display df1.loc[pidx[1, :, :]] X Y B C 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7 Damnit.. it dropped by index again! And... ruh roh! It has a side effect! Here's df1 again: X Y B C 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7 Doing df1.loc[pidx[1, :, :], :] (using the original df1) works as expected. X Y A B C 1 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7"><pre class="notranslate"><code class="notranslate">Here's df2, with more than 1 unique value for the index A: X Y A B C 1 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9 2 1 1 3 9 2 3 3 3 1 1 2 2 2 9 3 1 1 3 4 4 4 7 Here's what df2.loc[1] returns X Y B C 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9 Can get around this annoyance by df2.loc[pd.IndexSlice[1, :, :]] X Y A B C 1 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9 Here's df1, with only a single value for the index A X Y A B C 1 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7 Now let's do the same thing we did for df2, namely display df1.loc[pidx[1, :, :]] X Y B C 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7 Damnit.. it dropped by index again! And... ruh roh! It has a side effect! Here's df1 again: X Y B C 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7 Doing df1.loc[pidx[1, :, :], :] (using the original df1) works as expected. X Y A B C 1 1 1 1 7 1 3 9 2 5 3 2 3 3 3 1 1 2 1 2 4 2 3 1 2 2 9 3 8 3 3 1 1 3 2 3 9 4 4 4 7 </code></pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">What I expect from all of the examples above, is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" X Y A B C 1 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9"><pre class="notranslate"><code class="notranslate"> X Y A B C 1 1 1 1 7 2 5 3 2 1 2 4 2 3 1 3 8 3 3 2 3 9 </code></pre></div> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.11.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 4.6.3-300.fc24.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: None<br> pip: 8.0.3<br> setuptools: 20.1.1<br> Cython: 0.23.4<br> numpy: 1.10.4<br> scipy: 0.17.0<br> statsmodels: None<br> xarray: None<br> IPython: 4.1.2<br> sphinx: None<br> patsy: None<br> dateutil: 2.4.2<br> pytz: 2015.7<br> blosc: None<br> bottleneck: None<br> tables: 3.2.2<br> numexpr: 2.5.1<br> matplotlib: 1.5.0<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.0.10<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: None<br> pandas_datareader: None</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/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>First, create an interface.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public interface DemoService { String sayHello(String name); }"><pre class="notranslate"><code class="notranslate">public interface DemoService { String sayHello(String name); } </code></pre></div> <ol start="2" dir="auto"> <li>Create a controller</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@RestController public class DemoController { @Reference(version = &quot;1.0.0&quot;) private DemoService demoService; @RequestMapping(&quot;/{name}&quot;) public String say(@PathVariable(&quot;name&quot;) String name){ return demoService.sayHello(name); } }"><pre class="notranslate"><code class="notranslate">@RestController public class DemoController { @Reference(version = "1.0.0") private DemoService demoService; @RequestMapping("/{name}") public String say(@PathVariable("name") String name){ return demoService.sayHello(name); } } </code></pre></div> <ol start="3" dir="auto"> <li>Create a config class</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Configuration public class DubboConfig { @Bean(ReferenceAnnotationBeanPostProcessor.BEAN_NAME) public ReferenceAnnotationBeanPostProcessor referenceAnnotationBeanPostProcessor(){ return new ReferenceAnnotationBeanPostProcessor(); } @ConditionalOnMissingBean @Bean public ApplicationConfig applicationConfig(){ ApplicationConfig applicationConfig = new ApplicationConfig(&quot;dubbo-consumer-test&quot;); applicationConfig.setId(&quot;dubbo-consumer-test&quot;); applicationConfig.setDefault(true); return applicationConfig; } @ConditionalOnMissingBean @Bean public ProtocolConfig protocolConfig(){ ProtocolConfig protocolConfig = new ProtocolConfig(&quot;dubbo&quot;); protocolConfig.setId(&quot;dubbo&quot;); protocolConfig.setClient(&quot;netty4&quot;); protocolConfig.setServer(&quot;netty4&quot;); protocolConfig.setDefault(true); return protocolConfig; } @ConditionalOnMissingBean @Bean public RegistryConfig registryConfig(){ RegistryConfig registryConfig = new RegistryConfig(&quot;localhost:2181&quot;); registryConfig.setId(&quot;zookeeper&quot;); registryConfig.setDefault(true); registryConfig.setProtocol(&quot;zookeeper&quot;); return registryConfig; } }"><pre class="notranslate"><code class="notranslate">@Configuration public class DubboConfig { @Bean(ReferenceAnnotationBeanPostProcessor.BEAN_NAME) public ReferenceAnnotationBeanPostProcessor referenceAnnotationBeanPostProcessor(){ return new ReferenceAnnotationBeanPostProcessor(); } @ConditionalOnMissingBean @Bean public ApplicationConfig applicationConfig(){ ApplicationConfig applicationConfig = new ApplicationConfig("dubbo-consumer-test"); applicationConfig.setId("dubbo-consumer-test"); applicationConfig.setDefault(true); return applicationConfig; } @ConditionalOnMissingBean @Bean public ProtocolConfig protocolConfig(){ ProtocolConfig protocolConfig = new ProtocolConfig("dubbo"); protocolConfig.setId("dubbo"); protocolConfig.setClient("netty4"); protocolConfig.setServer("netty4"); protocolConfig.setDefault(true); return protocolConfig; } @ConditionalOnMissingBean @Bean public RegistryConfig registryConfig(){ RegistryConfig registryConfig = new RegistryConfig("localhost:2181"); registryConfig.setId("zookeeper"); registryConfig.setDefault(true); registryConfig.setProtocol("zookeeper"); return registryConfig; } } </code></pre></div> <ol start="4" dir="auto"> <li>Create a boot class</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } }"><pre class="notranslate"><code class="notranslate">@SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } } </code></pre></div> <ol start="5" dir="auto"> <li>Invoke rest</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ curl -X GET -i 'http://localhost:8080/world'"><pre class="notranslate"><code class="notranslate">$ curl -X GET -i 'http://localhost:8080/world' </code></pre></div> <p dir="auto">throws exception like this(currently log's level is debug)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{&quot;timestamp&quot;:1542107448435,&quot;status&quot;:500,&quot;error&quot;:&quot;Internal Server Error&quot;,&quot;exception&quot;:&quot;java.lang.NullPointerException&quot;,&quot;message&quot;:&quot;No message available&quot;,&quot;path&quot;:&quot;/world&quot;}"><pre class="notranslate"><code class="notranslate">{"timestamp":1542107448435,"status":500,"error":"Internal Server Error","exception":"java.lang.NullPointerException","message":"No message available","path":"/world"} </code></pre></div> <p dir="auto">starting log</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2018-11-13 19:15:00.578 [main] WARN c.a.d.c.AbstractConfig - [DUBBO] null, dubbo version: 2.6.1, current host: 192.168.99.1 java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_181] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181] at com.alibaba.dubbo.config.AbstractConfig.toString(AbstractConfig.java:473) [dubbo-2.6.1.jar:2.6.1] at java.lang.String.valueOf(String.java:2994) [?:1.8.0_181] at java.lang.StringBuilder.append(StringBuilder.java:131) [?:1.8.0_181] at com.alibaba.dubbo.config.spring.beans.factory.annotation.AbstractAnnotationConfigBeanBuilder.build(AbstractAnnotationConfigBeanBuilder.java:75) [dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildReferenceBean(ReferenceAnnotationBeanPostProcessor.java:345) [dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.access$100(ReferenceAnnotationBeanPostProcessor.java:61) [dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceFieldElement.inject(ReferenceAnnotationBeanPostProcessor.java:323) [dubbo-2.6.1.jar:2.6.1] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.postProcessPropertyValues(ReferenceAnnotationBeanPostProcessor.java:88) [dubbo-2.6.1.jar:2.6.1] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at com.fft.dubbo.consumer.Application.main(Application.java:10) [classes/:?] Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.fft.dubbo.consumer.service.DemoService. No provider available for the service com.fft.dubbo.consumer.service.DemoService:1.0.0 from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=dubbo-consumer-test&amp;default=true&amp;dubbo=2.6.1&amp;interface=com.fft.dubbo.consumer.service.DemoService&amp;methods=sayHello&amp;pid=11737&amp;register.ip=192.168.99.1&amp;revision=1.0.0&amp;side=consumer&amp;timestamp=1542107700378&amp;version=1.0.0 to the consumer 192.168.99.1 use dubbo version 2.6.1 at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:422) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65) ~[dubbo-2.6.1.jar:2.6.1] ... 30 more"><pre class="notranslate"><code class="notranslate">2018-11-13 19:15:00.578 [main] WARN c.a.d.c.AbstractConfig - [DUBBO] null, dubbo version: 2.6.1, current host: 192.168.99.1 java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_181] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181] at com.alibaba.dubbo.config.AbstractConfig.toString(AbstractConfig.java:473) [dubbo-2.6.1.jar:2.6.1] at java.lang.String.valueOf(String.java:2994) [?:1.8.0_181] at java.lang.StringBuilder.append(StringBuilder.java:131) [?:1.8.0_181] at com.alibaba.dubbo.config.spring.beans.factory.annotation.AbstractAnnotationConfigBeanBuilder.build(AbstractAnnotationConfigBeanBuilder.java:75) [dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildReferenceBean(ReferenceAnnotationBeanPostProcessor.java:345) [dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.access$100(ReferenceAnnotationBeanPostProcessor.java:61) [dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceFieldElement.inject(ReferenceAnnotationBeanPostProcessor.java:323) [dubbo-2.6.1.jar:2.6.1] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.postProcessPropertyValues(ReferenceAnnotationBeanPostProcessor.java:88) [dubbo-2.6.1.jar:2.6.1] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at com.fft.dubbo.consumer.Application.main(Application.java:10) [classes/:?] Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.fft.dubbo.consumer.service.DemoService. No provider available for the service com.fft.dubbo.consumer.service.DemoService:1.0.0 from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=dubbo-consumer-test&amp;default=true&amp;dubbo=2.6.1&amp;interface=com.fft.dubbo.consumer.service.DemoService&amp;methods=sayHello&amp;pid=11737&amp;register.ip=192.168.99.1&amp;revision=1.0.0&amp;side=consumer&amp;timestamp=1542107700378&amp;version=1.0.0 to the consumer 192.168.99.1 use dubbo version 2.6.1 at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:422) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65) ~[dubbo-2.6.1.jar:2.6.1] ... 30 more </code></pre></div> <p dir="auto">Application didn't exit. Here we change log's level == warn. When starting application. It crash, throws exception like this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoController': Injection of @Reference dependencies failed; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.fft.dubbo.consumer.service.DemoService. No provider available for the service com.fft.dubbo.consumer.service.DemoService:1.0.0 from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=dubbo-consumer-test&amp;default=true&amp;dubbo=2.6.1&amp;interface=com.fft.dubbo.consumer.service.DemoService&amp;methods=sayHello&amp;pid=11847&amp;register.ip=192.168.99.1&amp;revision=1.0.0&amp;side=consumer&amp;timestamp=1542108310318&amp;version=1.0.0 to the consumer 192.168.99.1 use dubbo version 2.6.1 at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.postProcessPropertyValues(ReferenceAnnotationBeanPostProcessor.java:92) ~[dubbo-2.6.1.jar:2.6.1] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at com.fft.dubbo.consumer.Application.main(Application.java:10) [classes/:?] Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.fft.dubbo.consumer.service.DemoService. No provider available for the service com.fft.dubbo.consumer.service.DemoService:1.0.0 from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=dubbo-consumer-test&amp;default=true&amp;dubbo=2.6.1&amp;interface=com.fft.dubbo.consumer.service.DemoService&amp;methods=sayHello&amp;pid=11847&amp;register.ip=192.168.99.1&amp;revision=1.0.0&amp;side=consumer&amp;timestamp=1542108310318&amp;version=1.0.0 to the consumer 192.168.99.1 use dubbo version 2.6.1 at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:422) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildReferenceBean(ReferenceAnnotationBeanPostProcessor.java:352) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.access$100(ReferenceAnnotationBeanPostProcessor.java:61) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceFieldElement.inject(ReferenceAnnotationBeanPostProcessor.java:323) ~[dubbo-2.6.1.jar:2.6.1] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.postProcessPropertyValues(ReferenceAnnotationBeanPostProcessor.java:88) ~[dubbo-2.6.1.jar:2.6.1] ... 17 more"><pre class="notranslate"><code class="notranslate">org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoController': Injection of @Reference dependencies failed; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.fft.dubbo.consumer.service.DemoService. No provider available for the service com.fft.dubbo.consumer.service.DemoService:1.0.0 from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=dubbo-consumer-test&amp;default=true&amp;dubbo=2.6.1&amp;interface=com.fft.dubbo.consumer.service.DemoService&amp;methods=sayHello&amp;pid=11847&amp;register.ip=192.168.99.1&amp;revision=1.0.0&amp;side=consumer&amp;timestamp=1542108310318&amp;version=1.0.0 to the consumer 192.168.99.1 use dubbo version 2.6.1 at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.postProcessPropertyValues(ReferenceAnnotationBeanPostProcessor.java:92) ~[dubbo-2.6.1.jar:2.6.1] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at com.fft.dubbo.consumer.Application.main(Application.java:10) [classes/:?] Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.fft.dubbo.consumer.service.DemoService. No provider available for the service com.fft.dubbo.consumer.service.DemoService:1.0.0 from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=dubbo-consumer-test&amp;default=true&amp;dubbo=2.6.1&amp;interface=com.fft.dubbo.consumer.service.DemoService&amp;methods=sayHello&amp;pid=11847&amp;register.ip=192.168.99.1&amp;revision=1.0.0&amp;side=consumer&amp;timestamp=1542108310318&amp;version=1.0.0 to the consumer 192.168.99.1 use dubbo version 2.6.1 at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:422) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildReferenceBean(ReferenceAnnotationBeanPostProcessor.java:352) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.access$100(ReferenceAnnotationBeanPostProcessor.java:61) ~[dubbo-2.6.1.jar:2.6.1] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceFieldElement.inject(ReferenceAnnotationBeanPostProcessor.java:323) ~[dubbo-2.6.1.jar:2.6.1] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE] at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.postProcessPropertyValues(ReferenceAnnotationBeanPostProcessor.java:88) ~[dubbo-2.6.1.jar:2.6.1] ... 17 more </code></pre></div> <p dir="auto">Here's <a href="https://github.com/chutian52/dubbo-consumer-test.git">dubbo-consumer-test</a></p> <p dir="auto">Also, if we didn't use log dependencies currently, there's no log also, it didn't crash either.</p> <p dir="auto">It seems that <code class="notranslate">AbstractAnnotationConfigBeanBuilder#build()</code> does this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public final B build() throws Exception { checkDependencies(); B bean = doBuild(); configureBean(bean); // use AbractConfig#toString if (logger.isInfoEnabled()) { logger.info(bean + &quot; has been built.&quot;); } return bean; }"><pre class="notranslate"><code class="notranslate">public final B build() throws Exception { checkDependencies(); B bean = doBuild(); configureBean(bean); // use AbractConfig#toString if (logger.isInfoEnabled()) { logger.info(bean + " has been built."); } return bean; } </code></pre></div> <p dir="auto">And <code class="notranslate">AbstractConfig#toString()</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Override public String toString() { try { StringBuilder buf = new StringBuilder(); buf.append(&quot;&lt;dubbo:&quot;); buf.append(getTagName(getClass())); Method[] methods = getClass().getMethods(); for (Method method : methods) { try { String name = method.getName(); if ((name.startsWith(&quot;get&quot;) || name.startsWith(&quot;is&quot;)) &amp;&amp; !&quot;getClass&quot;.equals(name) &amp;&amp; !&quot;get&quot;.equals(name) &amp;&amp; !&quot;is&quot;.equals(name) &amp;&amp; Modifier.isPublic(method.getModifiers()) &amp;&amp; method.getParameterTypes().length == 0 &amp;&amp; isPrimitive(method.getReturnType())) { int i = name.startsWith(&quot;get&quot;) ? 3 : 2; String key = name.substring(i, i + 1).toLowerCase() + name.substring(i + 1); Object value = method.invoke(this, new Object[0]); if (value != null) { buf.append(&quot; &quot;); buf.append(key); buf.append(&quot;=\&quot;&quot;); buf.append(value); buf.append(&quot;\&quot;&quot;); } } } catch (Exception e) { logger.warn(e.getMessage(), e); } } buf.append(&quot; /&gt;&quot;); return buf.toString(); } catch (Throwable t) { logger.warn(t.getMessage(), t); return super.toString(); } }"><pre class="notranslate"><code class="notranslate">@Override public String toString() { try { StringBuilder buf = new StringBuilder(); buf.append("&lt;dubbo:"); buf.append(getTagName(getClass())); Method[] methods = getClass().getMethods(); for (Method method : methods) { try { String name = method.getName(); if ((name.startsWith("get") || name.startsWith("is")) &amp;&amp; !"getClass".equals(name) &amp;&amp; !"get".equals(name) &amp;&amp; !"is".equals(name) &amp;&amp; Modifier.isPublic(method.getModifiers()) &amp;&amp; method.getParameterTypes().length == 0 &amp;&amp; isPrimitive(method.getReturnType())) { int i = name.startsWith("get") ? 3 : 2; String key = name.substring(i, i + 1).toLowerCase() + name.substring(i + 1); Object value = method.invoke(this, new Object[0]); if (value != null) { buf.append(" "); buf.append(key); buf.append("=\""); buf.append(value); buf.append("\""); } } } catch (Exception e) { logger.warn(e.getMessage(), e); } } buf.append(" /&gt;"); return buf.toString(); } catch (Throwable t) { logger.warn(t.getMessage(), t); return super.toString(); } } </code></pre></div> <p dir="auto">It invoked <code class="notranslate">getObject()</code> method, and then catched logs, but not throwed. <code class="notranslate">ReferenceAnnotationBeanPostProcessor#buildReferenceBean</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private Object buildReferenceBean(Reference reference, Class&lt;?&gt; referenceClass) throws Exception { String referenceBeanCacheKey = generateReferenceBeanCacheKey(reference, referenceClass); ReferenceBean&lt;?&gt; referenceBean = referenceBeansCache.get(referenceBeanCacheKey); if (referenceBean == null) { ReferenceBeanBuilder beanBuilder = ReferenceBeanBuilder .create(reference, classLoader, applicationContext) .interfaceClass(referenceClass); referenceBean = beanBuilder.build(); referenceBeansCache.putIfAbsent(referenceBeanCacheKey, referenceBean); } return referenceBean.get(); }"><pre class="notranslate"><code class="notranslate">private Object buildReferenceBean(Reference reference, Class&lt;?&gt; referenceClass) throws Exception { String referenceBeanCacheKey = generateReferenceBeanCacheKey(reference, referenceClass); ReferenceBean&lt;?&gt; referenceBean = referenceBeansCache.get(referenceBeanCacheKey); if (referenceBean == null) { ReferenceBeanBuilder beanBuilder = ReferenceBeanBuilder .create(reference, classLoader, applicationContext) .interfaceClass(referenceClass); referenceBean = beanBuilder.build(); referenceBeansCache.putIfAbsent(referenceBeanCacheKey, referenceBean); } return referenceBean.get(); } </code></pre></div> <p dir="auto">If we use log's level greater than info, <code class="notranslate">referenceBean.get()</code> will work, the application will crash.</p> <p dir="auto">So, Dubbo should have the same behavior whatever log's level is?</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/wiki/FAQ">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.2</li> <li>Operating System version: win10</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Step to reproduce this issue</h3> <ol dir="auto"> <li>libthrift 0.11.0<br> TFieldIdEnum field = args.fieldForId(i + 1);<br> // this my cause NullPointerException<br> String setMethodName = ThriftUtils.generateSetMethodName(field.getFieldName());</li> </ol> <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 is actually happen?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.NullPointerException: null at com.alibaba.dubbo.rpc.protocol.thrift.ThriftCodec.encodeRequest(ThriftCodec.java:455) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.thrift.ThriftCodec.encode(ThriftCodec.java:104) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:80) ~[dubbo-2.6.2.jar:2.6.2] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:66) ~[netty-3.2.5.Final.jar:na] at com.alibaba.dubbo.remoting.transport.netty.NettyHandler.writeRequested(NettyHandler.java:98) ~[dubbo-2.6.2.jar:2.6.2] at org.jboss.netty.channel.Channels.write(Channels.java:611) ~[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:578) ~[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:251) ~[netty-3.2.5.Final.jar:na] at com.alibaba.dubbo.remoting.transport.netty.NettyChannel.send(NettyChannel.java:100) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.remoting.transport.AbstractClient.send(AbstractClient.java:265) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.remoting.transport.AbstractPeer.send(AbstractPeer.java:53) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeChannel.request(HeaderExchangeChannel.java:115) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeClient.request(HeaderExchangeClient.java:90) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.thrift.ThriftInvoker.doInvoke(ThriftInvoker.java:87) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:148) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.filter.ActiveLimitFilter.invoke(ActiveLimitFilter.java:70) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:54) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:77) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:78) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:238) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.common.bytecode.proxy0.getVendorConfig(proxy0.java) ~[dubbo-2.6.2.jar:2.6.2] at com.zbss.travel.web.manager.controller.TestController.hello(TestController.java:24) ~[classes/:na]"><pre class="notranslate"><code class="notranslate">java.lang.NullPointerException: null at com.alibaba.dubbo.rpc.protocol.thrift.ThriftCodec.encodeRequest(ThriftCodec.java:455) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.thrift.ThriftCodec.encode(ThriftCodec.java:104) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:80) ~[dubbo-2.6.2.jar:2.6.2] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:66) ~[netty-3.2.5.Final.jar:na] at com.alibaba.dubbo.remoting.transport.netty.NettyHandler.writeRequested(NettyHandler.java:98) ~[dubbo-2.6.2.jar:2.6.2] at org.jboss.netty.channel.Channels.write(Channels.java:611) ~[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:578) ~[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:251) ~[netty-3.2.5.Final.jar:na] at com.alibaba.dubbo.remoting.transport.netty.NettyChannel.send(NettyChannel.java:100) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.remoting.transport.AbstractClient.send(AbstractClient.java:265) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.remoting.transport.AbstractPeer.send(AbstractPeer.java:53) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeChannel.request(HeaderExchangeChannel.java:115) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeClient.request(HeaderExchangeClient.java:90) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.thrift.ThriftInvoker.doInvoke(ThriftInvoker.java:87) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:148) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.filter.ActiveLimitFilter.invoke(ActiveLimitFilter.java:70) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:54) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:77) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:78) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:238) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52) ~[dubbo-2.6.2.jar:2.6.2] at com.alibaba.dubbo.common.bytecode.proxy0.getVendorConfig(proxy0.java) ~[dubbo-2.6.2.jar:2.6.2] at com.zbss.travel.web.manager.controller.TestController.hello(TestController.java:24) ~[classes/:na] </code></pre></div> <p dir="auto">this is my idl</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="namespace java com.zbss.common.api.config.service struct VendorConfig { 1: optional i32 id; 2: optional string vendorType; 3: optional string vendorIpcc; 4: optional string vendorName; 5: optional string vendorCompanyName; 6: optional string userName; 7: optional string password; 8: optional string key; 9: optional string currency; 10: optional string status; 11: optional i32 queryCount; 12: optional string orderIpcc; 13: optional string productType; 14: optional string ticketType; 15: optional string searchUrl; 16: optional string verifyUrl; 17: optional string orderUrl; 18: optional string payverifyUrl; 19: optional string ticketUrl; 20: optional string statusUrl; 21: optional string url; 22: optional i64 createTime; 23: optional i64 updateTime; 24: optional i64 serialVersionUID; } service ConfigService { VendorConfig getVendorConfig(string ipcc); }"><pre class="notranslate"><code class="notranslate">namespace java com.zbss.common.api.config.service struct VendorConfig { 1: optional i32 id; 2: optional string vendorType; 3: optional string vendorIpcc; 4: optional string vendorName; 5: optional string vendorCompanyName; 6: optional string userName; 7: optional string password; 8: optional string key; 9: optional string currency; 10: optional string status; 11: optional i32 queryCount; 12: optional string orderIpcc; 13: optional string productType; 14: optional string ticketType; 15: optional string searchUrl; 16: optional string verifyUrl; 17: optional string orderUrl; 18: optional string payverifyUrl; 19: optional string ticketUrl; 20: optional string statusUrl; 21: optional string url; 22: optional i64 createTime; 23: optional i64 updateTime; 24: optional i64 serialVersionUID; } service ConfigService { VendorConfig getVendorConfig(string ipcc); } </code></pre></div>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">retries ... until</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.2.0.0"><pre class="notranslate"><code class="notranslate">2.2.0.0 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">default</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 16.04</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">In my playbooks, I often use a variable in 'retries' in order to be able to adjust this value.<br> When I want do disable the 'retries' with 0, 'until' expression is not evaluated, which results in a different behavior than when I use 'retries' &gt; 0.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Use this playbook:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: all gather_facts: false tasks: - command: &quot;echo this is an error&quot; retries: &quot;{{ nb_retries }}&quot; delay: 1 register: result until: '&quot;error&quot; not in result.stdout'"><pre class="notranslate"><code class="notranslate">- hosts: all gather_facts: false tasks: - command: "echo this is an error" retries: "{{ nb_retries }}" delay: 1 register: result until: '"error" not in result.stdout' </code></pre></div> <p dir="auto">If I use nb_retries = 1, task fails (expected behavior) :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -c local -i &quot;localhost,&quot; site.yml -e nb_retries=1"><pre class="notranslate"><code class="notranslate">ansible-playbook -c local -i "localhost," site.yml -e nb_retries=1 </code></pre></div> <p dir="auto">If I use nb_retries = 0, task succeeded :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -c local -i &quot;localhost,&quot; site.yml -e nb_retries=0"><pre class="notranslate"><code class="notranslate">ansible-playbook -c local -i "localhost," site.yml -e nb_retries=0 </code></pre></div> <p dir="auto">To fix that, I need to overwrite 'failed_when' expression which makes an inverted duplicate of 'until' :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: all gather_facts: false tasks: - command: &quot;echo this is an error&quot; retries: &quot;{{ nb_retries }}&quot; delay: 1 register: result failed_when: '&quot;error&quot; in result.stdout' until: '&quot;error&quot; not in result.stdout'"><pre class="notranslate"><code class="notranslate">- hosts: all gather_facts: false tasks: - command: "echo this is an error" retries: "{{ nb_retries }}" delay: 1 register: result failed_when: '"error" in result.stdout' until: '"error" not in result.stdout' </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Both commands fails (with retries=0 or retries=1)</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-playbook -c local -i &quot;localhost,&quot; site.yml -e nb_retries=0 PLAY [all] ********************************************************************* TASK [command] ***************************************************************** changed: [localhost] PLAY RECAP ********************************************************************* localhost : ok=1 changed=1 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">$ ansible-playbook -c local -i "localhost," site.yml -e nb_retries=0 PLAY [all] ********************************************************************* TASK [command] ***************************************************************** changed: [localhost] PLAY RECAP ********************************************************************* localhost : ok=1 changed=1 unreachable=0 failed=0 </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">/usr/lib/python2.7/site-packages/ansible/modules/system/pamd.py</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ansible --version ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Aug 29 2016, 10:12:21) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]"><pre class="notranslate"><code class="notranslate"># ansible --version ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Aug 29 2016, 10:12:21) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <h5 dir="auto">SUMMARY</h5> <p dir="auto">The last pamd.py update has a bug, after/before state duplicate lines, is not idempotent. I took the library from pamd-fixes (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="236628733" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/25817" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible/pull/25817/hovercard" href="https://github.com/ansible/ansible/pull/25817">#25817</a>).</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=" --- - hosts: lab gather_facts: yes remote_user: gnfux become: yes become_method: sudo tasks: - name: &quot;Ensure cryptographic hash and rember last 6 pwd /etc/pam.d/system-auth&quot; become: yes pamdl: path: /etc/pam.d/ name: system-auth type: password control: requisite module_path: pam_cracklib.so new_type: password new_control: sufficient new_module_path: pam_unix.so module_arguments: 'remember=6 sha512 shadow nullok try_first_pass use_authtok' state: after"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">lab</span> <span class="pl-ent">gather_facts</span>: <span class="pl-s">yes</span> <span class="pl-ent">remote_user</span>: <span class="pl-s">gnfux</span> <span class="pl-ent">become</span>: <span class="pl-s">yes</span> <span class="pl-ent">become_method</span>: <span class="pl-s">sudo</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>Ensure cryptographic hash and rember last 6 pwd /etc/pam.d/system-auth<span class="pl-pds">"</span></span> <span class="pl-ent">become</span>: <span class="pl-s">yes</span> <span class="pl-ent">pamdl</span>: <span class="pl-ent">path</span>: <span class="pl-s">/etc/pam.d/</span> <span class="pl-ent">name</span>: <span class="pl-s">system-auth</span> <span class="pl-ent">type</span>: <span class="pl-s">password</span> <span class="pl-ent">control</span>: <span class="pl-s">requisite</span> <span class="pl-ent">module_path</span>: <span class="pl-s">pam_cracklib.so</span> <span class="pl-ent">new_type</span>: <span class="pl-s">password</span> <span class="pl-ent">new_control</span>: <span class="pl-s">sufficient</span> <span class="pl-ent">new_module_path</span>: <span class="pl-s">pam_unix.so</span> <span class="pl-ent">module_arguments</span>: <span class="pl-s"><span class="pl-pds">'</span>remember=6 sha512 shadow nullok try_first_pass use_authtok<span class="pl-pds">'</span></span> <span class="pl-ent">state</span>: <span class="pl-s">after</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/etc/pam.d/system-auth auth required pam_env.so auth required pam_tally2.so deny=5 onerr=fail auth sufficient pam_unix.so nullok try_first_pass auth requisite pam_succeed_if.so uid &gt;= 1000 quiet_success auth required pam_deny.so password requisite pam_cracklib.so retry=5 minlen=6 dcredit=-1 ucredit=0 lcredit=-1 ocredit=0 reject_username password sufficient pam_unix.so remember=6 sha512 shadow nullok try_first_pass use_authtok password sufficient pam_sss.so use_authtok password required pam_deny.so "><pre class="notranslate"><code class="notranslate">/etc/pam.d/system-auth auth required pam_env.so auth required pam_tally2.so deny=5 onerr=fail auth sufficient pam_unix.so nullok try_first_pass auth requisite pam_succeed_if.so uid &gt;= 1000 quiet_success auth required pam_deny.so password requisite pam_cracklib.so retry=5 minlen=6 dcredit=-1 ucredit=0 lcredit=-1 ocredit=0 reject_username password sufficient pam_unix.so remember=6 sha512 shadow nullok try_first_pass use_authtok password sufficient pam_sss.so use_authtok password required pam_deny.so </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/etc/pam.d/system-auth auth required pam_env.so auth required pam_tally2.so deny=5 onerr=fail auth sufficient pam_unix.so nullok try_first_pass auth requisite pam_succeed_if.so uid &gt;= 1000 quiet_success auth required pam_deny.so password requisite pam_cracklib.so retry=5 minlen=6 dcredit=-1 ucredit=0 lcredit=-1 ocredit=0 reject_username password sufficient pam_unix.so remember=6 sha512 shadow nullok try_first_pass use_authtok password sufficient pam_unix.so remember=6 sha512 shadow nullok try_first_pass use_authtok password sufficient pam_sss.so use_authtok password required pam_deny.so"><pre class="notranslate"><code class="notranslate">/etc/pam.d/system-auth auth required pam_env.so auth required pam_tally2.so deny=5 onerr=fail auth sufficient pam_unix.so nullok try_first_pass auth requisite pam_succeed_if.so uid &gt;= 1000 quiet_success auth required pam_deny.so password requisite pam_cracklib.so retry=5 minlen=6 dcredit=-1 ucredit=0 lcredit=-1 ocredit=0 reject_username password sufficient pam_unix.so remember=6 sha512 shadow nullok try_first_pass use_authtok password sufficient pam_unix.so remember=6 sha512 shadow nullok try_first_pass use_authtok password sufficient pam_sss.so use_authtok password required pam_deny.so </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"> </code></pre></div>
0
<p dir="auto">Press the delete key on the keyboard or the return key app crashes.<br> What I used before was that v3.6.1 app did not crash.<br> this log :<br> java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/KeyEventCompat;<br> at android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:526)<br> at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)<br> at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:319)<br> at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:320)<br> at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4377)<br> at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4348)<br> at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892)<br> at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3945)<br> at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3911)<br> at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4038)<br> at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3919)<br> at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4095)<br> at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892)<br> at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3945)<br> at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3911)<br> at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3919)<br> at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892)<br> at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6263)<br> at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6237)<br> at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6198)<br> at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3687)<br> at android.os.Handler.dispatchMessage(Handler.java:102)<br> at android.os.Looper.loop(Looper.java:163)<br> at android.app.ActivityThread.main(ActivityThread.java:6348)<br> at java.lang.reflect.Method.invoke(Native Method)<br> at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)<br> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)<br> Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.view.KeyEventCompat" on path: DexPathList[[zip file "/data/app/com.rm.tcart-2/base.apk"],nativeLibraryDirectories=[/data/app/com.rm.tcart-2/lib/arm, /data/app/com.rm.tcart-2/base.apk!/lib/armeabi, /system/lib, /vendor/lib]]<br> at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)<br> at java.lang.ClassLoader.loadClass(ClassLoader.java:380)<br> at java.lang.ClassLoader.loadClass(ClassLoader.java:312)<br> at android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:526) <br> at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59) <br> at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:319) <br> at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:320) <br> at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4377) <br> at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4348) <br> at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892) <br> at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3945) <br> at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3911) <br> at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4038) <br> at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3919) <br> at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4095) <br> at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892) <br> at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3945) <br> at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3911) <br> at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3919) <br> at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892) <br> at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6263) <br> at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6237) <br> at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6198) <br> at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3687) <br> at android.os.Handler.dispatchMessage(Handler.java:102) <br> at android.os.Looper.loop(Looper.java:163) <br> at android.app.ActivityThread.main(ActivityThread.java:6348) <br> at java.lang.reflect.Method.invoke(Native Method) <br> at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880) <br> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770) </p>
<p dir="auto"><strong>Glide Version</strong>:4.4.0</p> <p dir="auto"><strong>Integration libraries</strong>:No</p> <p dir="auto"><strong>Device/Android Version</strong>: Google Pixel</p> <p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br> The activity has a textview &amp; imageview &amp; imageview is using glide to load image, when the activity launches, it'll crash.</p> <p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:GlideModule</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="GlideApp.with(imageView.getContext()) .load(url) .placeholder(placeholder) .error(error) .into(imageView);"><pre class="notranslate"><span class="pl-smi">GlideApp</span>.<span class="pl-en">with</span>(<span class="pl-s1">imageView</span>.<span class="pl-en">getContext</span>()) .<span class="pl-en">load</span>(<span class="pl-s1">url</span>) .<span class="pl-en">placeholder</span>(<span class="pl-s1">placeholder</span>) .<span class="pl-en">error</span>(<span class="pl-s1">error</span>) .<span class="pl-en">into</span>(<span class="pl-s1">imageView</span>);</pre></div> <p dir="auto"><strong>Stack trace / LogCat</strong>:</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)Landroid/graphics/Typeface; in class Landroid/support/v4/content/res/ResourcesCompat; or its super classes (declaration of 'android.support.v4.content.res.ResourcesCompat' at android.support.v7.widget.TintTypedArray.getFont(TintTypedArray.java:119)"><pre class="notranslate"><span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">NoSuchMethodError</span>: <span class="pl-en">No</span> <span class="pl-en">static</span> <span class="pl-en">method</span> <span class="pl-en">getFont</span><span class="pl-kos">(</span><span class="pl-v">Landroid</span>/<span class="pl-en">content</span>/<span class="pl-v">Context</span><span class="pl-kos"></span><span class="pl-kos">;</span><span class="pl-v">ILandroid</span>/<span class="pl-en">util</span>/<span class="pl-v">TypedValue</span><span class="pl-kos">;</span><span class="pl-v">ILandroid</span>/<span class="pl-en">widget</span>/<span class="pl-v">TextView</span><span class="pl-kos">;</span><span class="pl-kos">)</span><span class="pl-v">Landroid</span>/<span class="pl-en">graphics</span>/<span class="pl-v">Typeface</span><span class="pl-kos">;</span> <span class="pl-en">in</span> <span class="pl-k">class</span> <span class="pl-v">Landroid</span>/<span class="pl-en">support</span>/<span class="pl-en">v4</span>/<span class="pl-en">content</span>/<span class="pl-en">res</span>/<span class="pl-v">ResourcesCompat</span><span class="pl-kos">;</span> <span class="pl-en">or</span> <span class="pl-en">its</span> <span class="pl-smi">super</span> <span class="pl-en">classes</span> <span class="pl-kos">(</span><span class="pl-en">declaration</span> <span class="pl-en">of</span> <span class="pl-s">'android.support.v4.content.res.ResourcesCompat'</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">widget</span><span class="pl-kos">.</span><span class="pl-en">TintTypedArray</span><span class="pl-kos">.</span><span class="pl-en">getFont</span><span class="pl-kos">(</span><span class="pl-v">TintTypedArray</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:119</span><span class="pl-kos">)</span></pre></div>
1
<p dir="auto">I installed CPU-only Tensorflow version 1.0 on Windows using the pip installer. I am trying to get the Android example to run using CMake as explained in <a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/android/cmake">https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/android/cmake</a>. I cloned the newest version of the tensorflow repository and created a new Android studio project and followed the instructions from the webpage above by modifying the gradle files. I already found out that it should be<br> <code class="notranslate">debugCompile project(path: ':TensorFlow-Android-Inference', configuration: 'debug') releaseCompile project(path: ':TensorFlow-Android-Inference', configuration: 'release')</code><br> instead of<br> <code class="notranslate">debugCompile project(path: ':tensorflow_inference', configuration: 'debug') releaseCompile project(path: ':tensorflow_inference', configuration: 'release')</code><br> Now, however, I get a build error stating "Error:Project :app declares a dependency from configuration 'releaseCompile' to configuration 'release' which is not declared in the descriptor for project :TensorFlow-Android-Inference."<br> Has anyone tried this or could anyone point me to a proper explanation of how to use cMake to build the project.<br> Any help would be very much appreciated. Thanks.</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="193635283" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/6101" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/6101/hovercard" href="https://github.com/tensorflow/tensorflow/issues/6101">#6101</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="196269350" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/6383" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/6383/hovercard" href="https://github.com/tensorflow/tensorflow/issues/6383">#6383</a><br> <a href="http://stackoverflow.com/questions/40978859/creating-simple-android-app-using-android-studio-and-tensorflow" rel="nofollow">http://stackoverflow.com/questions/40978859/creating-simple-android-app-using-android-studio-and-tensorflow</a></p> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Windows</p> <p dir="auto">Installed version of CUDA and cuDNN:<br> (please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>):<br> Cuda 8.0<br> cuDNN 5.0</p> <p dir="auto">If installed from source, provide</p> <ol dir="auto"> <li> <p dir="auto">The commit hash (<code class="notranslate">git rev-parse HEAD</code>)<br> I downloaded the latest ZIP on 18 Dec 2016. Sorry, I have no idea how to get the version.</p> </li> <li> <p dir="auto">The output of <code class="notranslate">bazel version</code><br> Build label: 0.4.2<br> Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar<br> Build time: Wed Dec 7 18:47:13 2016 (1481136433)<br> Build timestamp: 1481136433<br> Build timestamp as int: 1481136433</p> </li> </ol> <p dir="auto">My goal is to build an Android App which loads pre-trained TensorFlow model and runs it on an Android device. I am working on Android Studio on Windows. Unfortunately using Android Studio on Linux is currently not an option.</p> <p dir="auto">Following previous advice from this forum, I am trying to build an Android example using Bazel on Windows.<br> I've successfully installed Bazel using Chocolatey.<br> Following the build instructions, I changed the SDK and NDK paths in WORKSPACE file and ran:<br> <strong>bazel build //tensorflow/examples/android:tensorflow_demo</strong></p> <p dir="auto">So far I did the following to fix errors:</p> <ol dir="auto"> <li>copied aapt.exe to aapt, zipalign.exe to zipalign, since their name is different on Windows/Linux</li> <li>installed using pacman gcc</li> </ol> <p dir="auto">But I am stuck again. I am getting the following error which I have no idea how to fix:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: C:/Users/Andrey/AppData/Local/Temp/_bazel_Andrey/gd3-gSwg/external/protobuf/BUILD:73:1: C++ compilation of rule '@protobuf//:protobuf_lite' failed: arm-linux-androideabi-gcc failed: error executing command external/androidndk/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc -fstack-protector-strong -fpic -ffunction-sections -funwind-tables ... (remaining 44 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1. external/protobuf/src/google/protobuf/stubs/structurally_valid.cc:588:1: fatal error: opening dependency file bazel-out/android-arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-fastbuild/bin/external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/stubs/structurally_valid.d: No such file or directory } // namespace google ^ compilation terminated. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/tensorflow_demo_symbols/R.txt' was not created. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/tensorflow_demo.srcjar' was not created. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/proguard/tensorflow_demo/_tensorflow_demo_proguard.cfg' was not created. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/tensorflow_demo_processed_manifest/AndroidManifest.xml' was not created. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/tensorflow_demo_files/resource_files.zip' was not created. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/tensorflow_demo.ap_' was not created. ERROR: C:/Users/Andrey/AppData/Local/Temp/_bazel_Andrey/gd3-gSwg/external/protobuf/BUILD:73:1: output 'external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/stubs/stringprintf.o' was not created. ERROR: C:/Users/Andrey/AppData/Local/Temp/_bazel_Andrey/gd3-gSwg/external/protobuf/BUILD:73:1: output 'external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/arenastring.o' was not created. ERROR: C:/Users/Andrey/AppData/Local/Temp/_bazel_Andrey/gd3-gSwg/external/protobuf/BUILD:113:1: output 'external/protobuf/_objs/protobuf/external/protobuf/src/google/protobuf/io/strtod.o' was not created. ERROR: C:/Users/Andrey/AppData/Local/Temp/_bazel_Andrey/gd3-gSwg/external/protobuf/BUILD:73:1: output 'external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/repeated_field.o' was not created. Target //tensorflow/examples/android:tensorflow_demo failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 4.722s, Critical Path: 1.16s "><pre class="notranslate"><code class="notranslate">ERROR: C:/Users/Andrey/AppData/Local/Temp/_bazel_Andrey/gd3-gSwg/external/protobuf/BUILD:73:1: C++ compilation of rule '@protobuf//:protobuf_lite' failed: arm-linux-androideabi-gcc failed: error executing command external/androidndk/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc -fstack-protector-strong -fpic -ffunction-sections -funwind-tables ... (remaining 44 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1. external/protobuf/src/google/protobuf/stubs/structurally_valid.cc:588:1: fatal error: opening dependency file bazel-out/android-arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-fastbuild/bin/external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/stubs/structurally_valid.d: No such file or directory } // namespace google ^ compilation terminated. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/tensorflow_demo_symbols/R.txt' was not created. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/tensorflow_demo.srcjar' was not created. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/proguard/tensorflow_demo/_tensorflow_demo_proguard.cfg' was not created. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/tensorflow_demo_processed_manifest/AndroidManifest.xml' was not created. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/tensorflow_demo_files/resource_files.zip' was not created. ERROR: C:/Tools/tensorflow-master/tensorflow/examples/android/BUILD:58:1: output 'tensorflow/examples/android/tensorflow_demo.ap_' was not created. ERROR: C:/Users/Andrey/AppData/Local/Temp/_bazel_Andrey/gd3-gSwg/external/protobuf/BUILD:73:1: output 'external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/stubs/stringprintf.o' was not created. ERROR: C:/Users/Andrey/AppData/Local/Temp/_bazel_Andrey/gd3-gSwg/external/protobuf/BUILD:73:1: output 'external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/arenastring.o' was not created. ERROR: C:/Users/Andrey/AppData/Local/Temp/_bazel_Andrey/gd3-gSwg/external/protobuf/BUILD:113:1: output 'external/protobuf/_objs/protobuf/external/protobuf/src/google/protobuf/io/strtod.o' was not created. ERROR: C:/Users/Andrey/AppData/Local/Temp/_bazel_Andrey/gd3-gSwg/external/protobuf/BUILD:73:1: output 'external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/repeated_field.o' was not created. Target //tensorflow/examples/android:tensorflow_demo failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 4.722s, Critical Path: 1.16s </code></pre></div> <ol dir="auto"> <li>Please advice how to proceed?</li> <li>Isn't there an easier way to achieve what I want? I just need pre-built TensorFlow binaries for Android Studio on Windows, to build an example application. So far I found only pre-built Python distribution and Bazel installation on Windows</li> </ol>
1
<h2 dir="auto">Problem</h2> <p dir="auto">I am trying to implement h2 server push in my custom express server, but not able to figure out how exactly the path of bundled assets inside .next directory gets resolved on runtime.</p> <h2 dir="auto">Code</h2> <p dir="auto">Currently, this is my server.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const express = require('express'); const compression = require('compression'); const next = require('next'); const path = require('path'); const dev = process.env.NODE_ENV !== 'production'; const app = next({ dev }); const handle = app.getRequestHandler(); const cmdArgs = process.argv.slice(2); const portNumber = parseInt(cmdArgs[0], 10); app.prepare() .then(() =&gt; { const server = express(); server.use(compression()); server.get('/sw.js', (req, res) =&gt; app.serveStatic(req, res, path.resolve('./.next/sw.js'))); server.get('*', (req, res) =&gt; handle(req, res)); server.listen(portNumber, (err) =&gt; { if (err) throw err; console.log(`&gt; Ready on https://localhost:${portNumber}`); }); });"><pre class="notranslate"><code class="notranslate">const express = require('express'); const compression = require('compression'); const next = require('next'); const path = require('path'); const dev = process.env.NODE_ENV !== 'production'; const app = next({ dev }); const handle = app.getRequestHandler(); const cmdArgs = process.argv.slice(2); const portNumber = parseInt(cmdArgs[0], 10); app.prepare() .then(() =&gt; { const server = express(); server.use(compression()); server.get('/sw.js', (req, res) =&gt; app.serveStatic(req, res, path.resolve('./.next/sw.js'))); server.get('*', (req, res) =&gt; handle(req, res)); server.listen(portNumber, (err) =&gt; { if (err) throw err; console.log(`&gt; Ready on https://localhost:${portNumber}`); }); }); </code></pre></div> <p dir="auto">Basically I want to send my app.js bundle as soon as a hit is made on the root route.<br> So I am trying to achieve something like the code below by following this <a href="https://deanhume.com/home/blogpost/getting-started-with-http-2-and-server-push/10152" rel="nofollow">article</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".... .... app.prepare() .then(() =&gt; { const server = express(); server.use(compression()); server.get('/sw.js', (req, res) =&gt; app.serveStatic(req, res, path.resolve('./.next/sw.js'))); server.get('/', (req, res) =&gt; { Promise.all([ fs.readFile(// path to index.html)), fs.readFile(// path to app.js bundle), ]).then(files =&gt; { if (res.push){ // The JS file var squareRootStream = res.push(// path to app.js bundle, { req: {'accept': '**/*'}, res: {'content-type': 'application/javascript'} }); squareRootStream.on('error', err =&gt; { console.log(err); }); squareRootStream.end(files[1]); } res.writeHead(200); res.end(files[0]); }).catch(error =&gt; res.status(500).send(error.toString())); }); }); server.get('*', (req, res) =&gt; handle(req, res)); }); .... ...."><pre class="notranslate"><code class="notranslate">.... .... app.prepare() .then(() =&gt; { const server = express(); server.use(compression()); server.get('/sw.js', (req, res) =&gt; app.serveStatic(req, res, path.resolve('./.next/sw.js'))); server.get('/', (req, res) =&gt; { Promise.all([ fs.readFile(// path to index.html)), fs.readFile(// path to app.js bundle), ]).then(files =&gt; { if (res.push){ // The JS file var squareRootStream = res.push(// path to app.js bundle, { req: {'accept': '**/*'}, res: {'content-type': 'application/javascript'} }); squareRootStream.on('error', err =&gt; { console.log(err); }); squareRootStream.end(files[1]); } res.writeHead(200); res.end(files[0]); }).catch(error =&gt; res.status(500).send(error.toString())); }); }); server.get('*', (req, res) =&gt; handle(req, res)); }); .... .... </code></pre></div> <p dir="auto">Is it possible to implement something like this in next.js ?<br> Any advice/help would be greatly appreciated..!!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>^3.0.1-beta.16</td> </tr> <tr> <td>node</td> <td>v6.8.0</td> </tr> <tr> <td>OS</td> <td>macOS</td> </tr> <tr> <td>browser</td> <td>Chrome Version 60.0.3112.113 (Official Build) (64-bit)</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">It is known that runtime config is not supported in static-optimized pages.<br> However, <a href="https://github.com/MrOrz/nextjs-runtime-config-bug">this repo</a> demonstrates that even when runtime config is used only in <em>server-rendered pages</em>, the runtime config can <strong>still be missing</strong>, which is not expected.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">I have constructed a minimal demo app for the bug: <a href="https://github.com/MrOrz/nextjs-runtime-config-bug">https://github.com/MrOrz/nextjs-runtime-config-bug</a></p> <p dir="auto">This demo consists of 2 pages:</p> <ul dir="auto"> <li><code class="notranslate">pages/index.js</code> - A landing page that contains a link to data page. The page is meant to be static-optimized.</li> <li><code class="notranslate">pages/data.js</code> - The data page that depends on <code class="notranslate">API_URL</code> in public runtime config (Actually it prints <code class="notranslate">publicRuntimeConfig.API_URL</code> directly). This page is meant to be server-rendered.</li> </ul> <p dir="auto">Reproduction steps are:</p> <ol dir="auto"> <li>Clone this repository &amp; <code class="notranslate">yarn</code></li> <li><code class="notranslate">yarn build</code></li> <li><code class="notranslate">API_URL=https://my.api yarn start</code> and visit <code class="notranslate">http://localhost:3000</code></li> <li>Click "Data page" link on <code class="notranslate">http://localhost:3000</code>. Browser will navigate to <code class="notranslate">http://localhost:3000/data</code> without full reload.</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">The <code class="notranslate">/data</code> page shows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="We show data from API URL: https://my.api"><pre class="notranslate"><code class="notranslate">We show data from API URL: https://my.api </code></pre></div> <h2 dir="auto">Actual behavior</h2> <p dir="auto">The <code class="notranslate">/data</code> page shows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="We show data from API URL:"><pre class="notranslate"><code class="notranslate">We show data from API URL: </code></pre></div> <p dir="auto">Runtime config "API_URL" in server-rendered page does not present.</p> <p dir="auto">However, if we visit <code class="notranslate">http://localhost:3000/data</code> directly, we can see the API URL again.</p> <h2 dir="auto">Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/108608/68006516-bfe03c00-fcb3-11e9-90ae-7c94fcabeec0.gif"><img src="https://user-images.githubusercontent.com/108608/68006516-bfe03c00-fcb3-11e9-90ae-7c94fcabeec0.gif" alt="scenario" data-animated-image="" style="max-width: 100%;"></a></p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macOS</li> <li>Browser (if applies) Google Chrome</li> <li><code class="notranslate">next</code>: 9.1.2</li> <li><code class="notranslate">react</code>: 16.11.0</li> <li><code class="notranslate">react-dom</code>: 16.11.0</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto"><a href="https://github.com/MrOrz/nextjs-runtime-config-bug">The scenario</a> is the simplified from <a href="https://github.com/cofacts/rumors-site/tree/dev">this website</a>. I want to have a <a href="http://en.cofacts.hacktabl.org/" rel="nofollow">statically rendered landing page</a> linking to a <a href="http://en.cofacts.hacktabl.org/articles" rel="nofollow">server-rendered article list</a>; however, when users go to article list from the landing page, the HTTP requests always fail because API URL in config is not set.</p> <p dir="auto">When I deploy the website, I put the built website in <a href="https://github.com/cofacts/rumors-site/blob/build/Dockerfile">Docker image</a>. Production sites and staging sites will share the same docker image to ensure consistency between the two environments; the only difference between them are the API endpoints they connect to, which is <a href="https://github.com/cofacts/rumors-deploy/blob/master/docker-compose.production.yml#L38">specified in docker-compose file</a>. This is why I put API URL in <code class="notranslate">publicRuntimeConfig</code> instead of build-time config.</p>
0
<p dir="auto">I am using bootstrap in an asp.net app, and absolutely loving it. I ran into an issue, which I solved .. but I really wanted to know if anyone sees any red flags with my solution.</p> <p dir="auto">The issue is, asp.net demands that there is one </p> tag, with attribute runat="server" for their code behind stuff to work properly. I was using multiple 's on a page, but as only one can exist with attribute runat="server" (or asp.net errors out) only the controls within the one would get enabled for code behind.<p dir="auto"></p> <p dir="auto">My first solution was to wrap multiple 's in one enclosing but nested form tags create a problem, as HTML validation actively rejects them, and they were ignored (by firefox) and my styling went awry. (looked at view source and DOM after render, only parent was regarded)</p> <p dir="auto">So I did this .. I used one and only one enclosing , and then used div's instead of forms for control grouping . .eg ...</p><div dir="auto">...</div><div dir="auto">...</div> .. and everything seems to look and work just fine. (left out row and span divs for brevity)<p dir="auto"></p> <p dir="auto">so my question is .. is there any problem with using </p><div dir="auto"> .. specifically using class "form-horizontal" with div's. .. it works fine as far as i can tell so far, and I tried firefox/chrome/IE with good results .. but i'm no CSS expert so i'm concerned.<p dir="auto"></p></div>
<p dir="auto">I am using bootstrap in an asp.net app, and absolutely loving it. I ran into an issue, which I solved .. but I really wanted to know if anyone sees any red flags with my solution.</p> <p dir="auto">The issue is, asp.net demands that there is one &lt;form&gt; tag, with attribute runat="server" for their code behind stuff to work properly. I was using multiple &lt;form class="form-horizontal"&gt;&lt;/form&gt;'s on a page, but as only one &lt;form&gt; can exist with attribute runat="server" (or asp.net errors out) only the controls within the one &lt;form runat="server"&gt; would get enabled for code behind.</p> <p dir="auto">My first solution was to wrap multiple &lt;form&gt;'s in one enclosing &lt;form runat="server"&gt; but nested form tags create a problem, as HTML validation actively rejects them, and they were ignored (by firefox) and my styling went awry. (looked at view source and DOM after render, only parent &lt;form&gt; was regarded)</p> <p dir="auto">So I did this .. I used one and only one enclosing &lt;form runat="server"&gt;, and then used div's instead of forms for control grouping . .eg &lt;form runat="server"&gt;...&lt;div class="form-horizontal"&gt;...&lt;/div&gt;&lt;div class="form-horizontal"&gt;...&lt;/div&gt;&lt;/form&gt; .. and everything seems to look and work just fine. (left out row and span divs for brevity)</p> <p dir="auto">so my question is .. is there any problem with using &lt;div class="form-horizontal"&gt; .. specifically using class "form-horizontal" with div's. .. it works fine as far as i can tell so far, and I tried firefox/chrome/IE with good results .. but i'm no CSS expert so i'm concerned.</p>
1
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">Doing FeatureSelection droping correlated features is standard ml proc that sklearn covers.<br> But, as i interpret the documentation, sklearn treats the featureSelection based on correlations as a previous step, outside the pipeline.<br> An in the pipeline, you can only do univarte or iterative featureSelections <a href="https://scikit-learn.org/stable/modules/feature_selection.html#feature-selection-using-selectfrommodel" rel="nofollow">docs</a></p> <p dir="auto">I would like to do FeatureSelection based on correlations, as a pipeline step</p> <h3 dir="auto">Describe your proposed solution</h3> <p dir="auto">something like</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.covariance import MinCovDet_ clf = Pipeline([ ('feature_selection', SelectFromModel(MinCovDet_())), ('classification', RandomForestClassifier()) ]) clf.fit(X, y)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">covariance</span> <span class="pl-k">import</span> <span class="pl-v">MinCovDet_</span> <span class="pl-s1">clf</span> <span class="pl-c1">=</span> <span class="pl-v">Pipeline</span>([ (<span class="pl-s">'feature_selection'</span>, <span class="pl-v">SelectFromModel</span>(<span class="pl-v">MinCovDet_</span>())), (<span class="pl-s">'classification'</span>, <span class="pl-v">RandomForestClassifier</span>()) ]) <span class="pl-s1">clf</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)</pre></div> <p dir="auto">Where MinCovDet_ ~ MinCovDet but returns the ingested df, so the classification step can do the fit</p> <h3 dir="auto">Describe alternatives you've considered, if relevant</h3> <p dir="auto">Maybe a <code class="notranslate">SelectFromCorrelation</code> wrapper that you can run on top of all the <code class="notranslate">sklearn.covariance</code> correlators would be better</p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<p dir="auto">I wonder whether we should add unsupervised feature selection using correlation. It's a strategy that's very common in statistics and might just have it for completeness.<br> It's certainly more useful than the variance based one, which I think is useless for any threshold != 0.</p>
1
<h2 dir="auto">Feature request</h2> <p dir="auto">Hello all,<br> I have an idea of new feature based on my personnal experience with webpack :<br> It seems that it is not possible to define usage of plugins, rules, optimization or something else on some specials entries.</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">The expected behavior (as I've first imagined this) could be to implement a property that allow us to restrict a functionality to one or X entries.</p> <p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong></p> <p dir="auto">The motivation is that sometimes we need to have separate configuration for differents entries but for only one purpose, and want to keep the rest of the config.</p> <p dir="auto">Examples :</p> <p dir="auto">here we have 4 entries, imagine that I need to optimize all entries, but i don't want entry 'b' to be.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = { entry: { a: './src/a.js', b: './src/b.js', c: './src/c.js', d: './src/d.js', }, module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, use: ['babel-loader'], }, { test: /\.(css|scss)$/, loader: ['style-loader', 'css-loader', 'sass-loader'], }, ], }, plugins: [new webpack.ProgressPlugin()], optimization: { splitChunks: { chunks: 'all', }, runtimeChunk: { name: entrypoint =&gt; `runtime_${entrypoint.name}`, }, }, };"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">entry</span>: <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-s">'./src/a.js'</span><span class="pl-kos">,</span> <span class="pl-c1">b</span>: <span class="pl-s">'./src/b.js'</span><span class="pl-kos">,</span> <span class="pl-c1">c</span>: <span class="pl-s">'./src/c.js'</span><span class="pl-kos">,</span> <span class="pl-c1">d</span>: <span class="pl-s">'./src/d.js'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">rules</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>js<span class="pl-c1">|</span>jsx<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">[</span><span class="pl-s">'babel-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>css<span class="pl-c1">|</span>scss<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">loader</span>: <span class="pl-kos">[</span><span class="pl-s">'style-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'css-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'sass-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">ProgressPlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">optimization</span>: <span class="pl-kos">{</span> <span class="pl-c1">splitChunks</span>: <span class="pl-kos">{</span> <span class="pl-c1">chunks</span>: <span class="pl-s">'all'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">runtimeChunk</span>: <span class="pl-kos">{</span> <span class="pl-en">name</span>: <span class="pl-s1">entrypoint</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">`runtime_<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">entrypoint</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Here, I can deal with array :</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = [ { entry: { a: './src/a.js', c: './src/c.js', d: './src/d.js', }, module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, use: ['babel-loader'], }, { test: /\.(css|scss)$/, loader: ['style-loader', 'css-loader', 'sass-loader'], }, ], }, plugins: [new webpack.ProgressPlugin()], optimization: { splitChunks: { chunks: 'all', }, runtimeChunk: { name: entrypoint =&gt; `runtime_${entrypoint.name}`, }, }, }, { entry: { b: './src/b.js', }, module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, use: ['babel-loader'], }, { test: /\.(css|scss)$/, loader: ['style-loader', 'css-loader', 'sass-loader'], }, ], }, }, ];"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">entry</span>: <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-s">'./src/a.js'</span><span class="pl-kos">,</span> <span class="pl-c1">c</span>: <span class="pl-s">'./src/c.js'</span><span class="pl-kos">,</span> <span class="pl-c1">d</span>: <span class="pl-s">'./src/d.js'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">rules</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>js<span class="pl-c1">|</span>jsx<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">[</span><span class="pl-s">'babel-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>css<span class="pl-c1">|</span>scss<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">loader</span>: <span class="pl-kos">[</span><span class="pl-s">'style-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'css-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'sass-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">ProgressPlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">optimization</span>: <span class="pl-kos">{</span> <span class="pl-c1">splitChunks</span>: <span class="pl-kos">{</span> <span class="pl-c1">chunks</span>: <span class="pl-s">'all'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">runtimeChunk</span>: <span class="pl-kos">{</span> <span class="pl-en">name</span>: <span class="pl-s1">entrypoint</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">`runtime_<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">entrypoint</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">entry</span>: <span class="pl-kos">{</span> <span class="pl-c1">b</span>: <span class="pl-s">'./src/b.js'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">rules</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>js<span class="pl-c1">|</span>jsx<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">[</span><span class="pl-s">'babel-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>css<span class="pl-c1">|</span>scss<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">loader</span>: <span class="pl-kos">[</span><span class="pl-s">'style-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'css-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'sass-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div> <p dir="auto">But hey, I'm duplicating a lot of config just for one thing. (and here it's an example, imagine a full config with hundreds of lines !).</p> <p dir="auto">Now I need my entry 'c' to add a special loader on js/jsx files.<br> My webpack.config.js looks like :</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = [ { entry: { a: './src/a.js', d: './src/d.js', }, module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, use: ['babel-loader'], }, { test: /\.(css|scss)$/, loader: ['style-loader', 'css-loader', 'sass-loader'], }, ], }, plugins: [new webpack.ProgressPlugin()], optimization: { splitChunks: { chunks: 'all', }, runtimeChunk: { name: entrypoint =&gt; `runtime_${entrypoint.name}`, }, }, }, { entry: { b: './src/b.js', }, module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, use: ['babel-loader'], }, { test: /\.(css|scss)$/, loader: ['style-loader', 'css-loader', 'sass-loader'], }, ], }, }, { entry: { c: './src/c.js', }, module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, use: ['babel-loader', 'my-loader'], }, { test: /\.(css|scss)$/, loader: ['style-loader', 'css-loader', 'sass-loader'], }, ], }, plugins: [new webpack.ProgressPlugin()], optimization: { splitChunks: { chunks: 'all', }, runtimeChunk: { name: entrypoint =&gt; `runtime_${entrypoint.name}`, }, }, }, ];"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">entry</span>: <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-s">'./src/a.js'</span><span class="pl-kos">,</span> <span class="pl-c1">d</span>: <span class="pl-s">'./src/d.js'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">rules</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>js<span class="pl-c1">|</span>jsx<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">[</span><span class="pl-s">'babel-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>css<span class="pl-c1">|</span>scss<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">loader</span>: <span class="pl-kos">[</span><span class="pl-s">'style-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'css-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'sass-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">ProgressPlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">optimization</span>: <span class="pl-kos">{</span> <span class="pl-c1">splitChunks</span>: <span class="pl-kos">{</span> <span class="pl-c1">chunks</span>: <span class="pl-s">'all'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">runtimeChunk</span>: <span class="pl-kos">{</span> <span class="pl-en">name</span>: <span class="pl-s1">entrypoint</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">`runtime_<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">entrypoint</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">entry</span>: <span class="pl-kos">{</span> <span class="pl-c1">b</span>: <span class="pl-s">'./src/b.js'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">rules</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>js<span class="pl-c1">|</span>jsx<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">[</span><span class="pl-s">'babel-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>css<span class="pl-c1">|</span>scss<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">loader</span>: <span class="pl-kos">[</span><span class="pl-s">'style-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'css-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'sass-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">entry</span>: <span class="pl-kos">{</span> <span class="pl-c1">c</span>: <span class="pl-s">'./src/c.js'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">rules</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>js<span class="pl-c1">|</span>jsx<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">[</span><span class="pl-s">'babel-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'my-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>css<span class="pl-c1">|</span>scss<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">loader</span>: <span class="pl-kos">[</span><span class="pl-s">'style-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'css-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'sass-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">ProgressPlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">optimization</span>: <span class="pl-kos">{</span> <span class="pl-c1">splitChunks</span>: <span class="pl-kos">{</span> <span class="pl-c1">chunks</span>: <span class="pl-s">'all'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">runtimeChunk</span>: <span class="pl-kos">{</span> <span class="pl-en">name</span>: <span class="pl-s1">entrypoint</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">`runtime_<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">entrypoint</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Woaw. It's becoming hard as hell to maintain !</p> <p dir="auto"><strong>How should this be implemented in your opinion?</strong></p> <p dir="auto">Maybe we could add a property 'scope' or something like that to have a config file like this :</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = { entry: { a: './src/a.js', b: './src/b.js', c: './src/c.js', d: './src/d.js', }, module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, use: ['babel-loader'], }, { scope: 'c', test: /\.(js|jsx)$/, exclude: /node_modules/, use: ['babel-loader', 'my-loader'], }, { test: /\.(css|scss)$/, loader: ['style-loader', 'css-loader', 'sass-loader'], }, ], }, plugins: [new webpack.ProgressPlugin()], optimization: { scope: ['a', 'c', 'd'], splitChunks: { chunks: 'all', }, runtimeChunk: { name: entrypoint =&gt; `runtime_${entrypoint.name}`, }, }, };"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">entry</span>: <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-s">'./src/a.js'</span><span class="pl-kos">,</span> <span class="pl-c1">b</span>: <span class="pl-s">'./src/b.js'</span><span class="pl-kos">,</span> <span class="pl-c1">c</span>: <span class="pl-s">'./src/c.js'</span><span class="pl-kos">,</span> <span class="pl-c1">d</span>: <span class="pl-s">'./src/d.js'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">rules</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>js<span class="pl-c1">|</span>jsx<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">[</span><span class="pl-s">'babel-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">scope</span>: <span class="pl-s">'c'</span><span class="pl-kos">,</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>js<span class="pl-c1">|</span>jsx<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">[</span><span class="pl-s">'babel-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'my-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>css<span class="pl-c1">|</span>scss<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">loader</span>: <span class="pl-kos">[</span><span class="pl-s">'style-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'css-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'sass-loader'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">ProgressPlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">optimization</span>: <span class="pl-kos">{</span> <span class="pl-c1">scope</span>: <span class="pl-kos">[</span><span class="pl-s">'a'</span><span class="pl-kos">,</span> <span class="pl-s">'c'</span><span class="pl-kos">,</span> <span class="pl-s">'d'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">splitChunks</span>: <span class="pl-kos">{</span> <span class="pl-c1">chunks</span>: <span class="pl-s">'all'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">runtimeChunk</span>: <span class="pl-kos">{</span> <span class="pl-en">name</span>: <span class="pl-s1">entrypoint</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">`runtime_<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">entrypoint</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Are you willing to work on this yourself?</strong></p> <p dir="auto">Not now because :</p> <ul dir="auto"> <li>Maybe it's an idiot suggestion</li> <li>Maybe it does already exist (but I searched really hard, I though a property 'only' was existing but I can't find it, dreaming of webpack during my sleep 😄 )</li> <li>Maybe it's not in the spirit of webpack and config file</li> <li>I'm don't know how webpack works under the hood, but not a problem to explore !</li> </ul> <p dir="auto">What do you think about this ? Any suggestions / notes are welcome ! (btw sorry for my english)</p>
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">Running <code class="notranslate">[email protected]</code> fails when importing <code class="notranslate">rxjs</code> (which uses <code class="notranslate">tslib</code>):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/185555/95528689-57f2b380-0a35-11eb-966f-6aa9ab6167a0.png"><img src="https://user-images.githubusercontent.com/185555/95528689-57f2b380-0a35-11eb-966f-6aa9ab6167a0.png" alt="image" style="max-width: 100%;"></a></p> <hr> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">Details of this error are reproducible in <a href="https://github.com/philcockfield/webpack5-tslib-error">https://github.com/philcockfield/webpack5-tslib-error</a><br> The demo repo is a minimal webpack configuration using <code class="notranslate">ts-loader</code> that imports <code class="notranslate">rxjs</code>. It also behaves this way with vanilla JS and babel loaders.</p> <hr> <p dir="auto"><strong>What is the expected behavior?</strong><br> The page loads with no errors. This <a href="https://github.com/philcockfield/webpack5-tslib-error">demo repo</a> works fine with <code class="notranslate">[email protected]</code> and then cleanly fails by flipping the version up to <code class="notranslate">5.0.0-rc.3</code></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/185555/95528726-6e007400-0a35-11eb-85d9-95c270c85d2f.png"><img src="https://user-images.githubusercontent.com/185555/95528726-6e007400-0a35-11eb-85d9-95c270c85d2f.png" alt="image" style="max-width: 100%;"></a></p> <hr> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5.0.0-rc.3, 5.0.0-rc.4<br> Node.js version: 12.16.3<br> Operating System: MacOS (10.15.7)<br> Additional tools: -</p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18363.592] PowerToys version: 0.18.1 PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18363.592] PowerToys version: 0.18.1 PowerToy module for which you are reporting the bug (if applicable): FancyZones </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Create a custom zone with four windows on each corner and then a fifth in the middle. Then when you hold shift and drag the fifth window there is no way I can find to drop to dock in the fifth spot.</p> <h1 dir="auto">Expected behavior</h1> <h1 dir="auto">Actual behavior</h1> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/169602/84046972-61c5b680-a970-11ea-976b-d37f14edb60b.png"><img src="https://user-images.githubusercontent.com/169602/84046972-61c5b680-a970-11ea-976b-d37f14edb60b.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">FancyZones is an awesome tool for larger format monitors. In many cases, a form of a grid layout is used for larger monitors. In these scenarios, it would useful to add an additional hotkey to enable resizing Windows, akin to <a href="http://windowgrid.net" rel="nofollow">WindowGrid's</a> implementation.</p> <p dir="auto">Holding "Shift" is a useful hotkey to align a window into a zone. In an instance where I want an app window to occupy two neighboring zones, having an additional hotkey to toggle a resize function while moving a window with the mouse would be useful.</p> <p dir="auto">Eg: I have an ultrawide monitor with 3, horizontal, equivalent, square, zones. Occasionally I want to watch ultrawide media in a window that spans the left and middle zones. I would like to hold shift and align the window to the left zone, hold alt and then pull the mouse to the right to span the window over the second zone.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">¯\_(ツ)_/¯</p>
0
<p dir="auto">when having an accordion <code class="notranslate">.accordion-toggle</code> gets class <code class="notranslate">collapsed</code> when specified section is collapsed.</p> <p dir="auto">however, this hapens only when clicking on the same handler.</p> <p dir="auto">example: <a href="http://jsfiddle.net/DRfbh/" rel="nofollow">http://jsfiddle.net/DRfbh/</a></p> <p dir="auto">red background indicates that <code class="notranslate">.accordion-toggle</code> does not have class <code class="notranslate">collapsed</code>.</p> <p dir="auto">Clicking on the first item, works ok, but when clicking any other item, opened section is collapsed, but class is not added to the <code class="notranslate">.accordion-toggle</code></p>
<p dir="auto">This line:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')"><pre class="notranslate"><span class="pl-s1">$this</span><span class="pl-kos">[</span><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">hasClass</span><span class="pl-kos">(</span><span class="pl-s">'in'</span><span class="pl-kos">)</span> ? <span class="pl-s">'addClass'</span> : <span class="pl-s">'removeClass'</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s">'collapsed'</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Only works to remove or add the collapsed class on the element clicked. It does not updated the element that was previously expanded/clicked. So the class usage becomes inconsistent quickly and stops me easily styling stuff.</p> <p dir="auto">Note diff b/w accordion-heading and accordion-body.</p>
1
<p dir="auto"><a href="https://github.com/Microsoft/TypeScript/blob/ab9ce1e9e6636ec6a2aa4f01458525f249c4edf5/src/services/services.ts#L1172">https://github.com/Microsoft/TypeScript/blob/ab9ce1e9e6636ec6a2aa4f01458525f249c4edf5/src/services/services.ts#L1172</a></p> <p dir="auto">I would expect them to get a special treatment. For instance</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="`Hello ${name}`"><pre class="notranslate"><code class="notranslate">`Hello ${name}` </code></pre></div> <p dir="auto">could have tokens like: <code class="notranslate">string(</code>Hello), punct(${), identifier(name), punct(}), string(<code class="notranslate">)</code></p>
<p dir="auto">String templates should be colorizes like string literals.</p>
1
<p dir="auto">[ 54%] /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/smooth.cpp: In function 'void cv::vlineSmooth1N(const FT* const*, const FT*, int, ET*, int) [with ET = unsigned char, FT = ::ufixedpoint16]':<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/smooth.cpp:2676: error: conversion from '::ufixedpoint32' to 'unsigned char' is ambiguous<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:223: note: candidates are: ::ufixedpoint32::operator float() const<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:222: note: ::ufixedpoint32::operator double() const<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:221: note: ::ufixedpoint32::operator ET() const [with ET = unsigned char]<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/smooth.cpp: In function 'void cv::vlineSmooth1N1(const FT* const*, const FT*, int, ET*, int) [with ET = unsigned char, FT = ::ufixedpoint16]':<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/smooth.cpp:2693: error: conversion from 'const::ufixedpoint16' to 'unsigned char' is ambiguous<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:289: note: candidates are: ::ufixedpoint16::operator float() const<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:288: note: ::ufixedpoint16::operator double() const<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:287: note: ::ufixedpoint16::operator ET() const [with ET = unsigned char]<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/smooth.cpp: In function 'void cv::vlineSmooth3N(const FT* const*, const FT*, int, ET*, int) [with ET = unsigned char, FT = ::ufixedpoint16]':<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/smooth.cpp:2740: error: conversion from '::ufixedpoint32' to 'unsigned char' is ambiguous<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:223: note: candidates are: ::ufixedpoint32::operator float() const<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:222: note: ::ufixedpoint32::operator double() const<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:221: note: ::ufixedpoint32::operator ET() const [with ET = unsigned char]<br> Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/approx.cpp.o<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/smooth.cpp: In function 'void cv::vlineSmooth5N(const FT* const*, const FT*, int, ET*, int) [with ET = unsigned char, FT = ::ufixedpoint16]':<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/smooth.cpp:2816: error: conversion from '::ufixedpoint32' to 'unsigned char' is ambiguous<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:223: note: candidates are: ::ufixedpoint32::operator float() const<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:222: note: ::ufixedpoint32::operator double() const<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:221: note: ::ufixedpoint32::operator ET() const [with ET = unsigned char]<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/smooth.cpp: In function 'void cv::vlineSmooth(const FT* const*, const FT*, int, ET*, int) [with ET = unsigned char, FT = ::ufixedpoint16]':<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/smooth.cpp:2919: error: conversion from '::ufixedpoint32' to 'unsigned char' is ambiguous<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:223: note: candidates are: ::ufixedpoint32::operator float() const<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:222: note: ::ufixedpoint32::operator double() const<br> /data/apps/opencv/opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:221: note: ::ufixedpoint32::operator ET() const [with ET = unsigned char]<br> [ 54%] Built target opencv_ml<br> [ 54%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/spatialgradient.cpp.o<br> [ 54%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/intersection.cpp.o<br> make[2]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/smooth.cpp.o] Error 1<br> make[2]: *** Waiting for unfinished jobs....<br> make[1]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/all] Error 2</p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.1</li> <li>Operating System / Platform =&gt; redhat 6.9</li> <li>Compiler =&gt; gcc 4.4.7</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I tried to compile 3.4.1 on my machine with only 3 modules, core, imagecodecs, imageproc. I got a lot of compilation error (trace as following)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="opencv-3.4.1/modules/imgproc/src/hal_replacement.hpp:52: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' [-Wpragmas] In file included from opencv-3.4.1/modules/imgproc/src/precomp.hpp:54, from opencv-3.4.1/modules/imgproc/src/resize.cpp:50: opencv-3.4.1/modules/imgproc/src/hal_replacement.hpp:778: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' [-Wpragmas] opencv-3.4.1/modules/imgproc/src/resize.cpp:67: error: reference to 'uint32_t' is ambiguous /usr/include/stdint.h:52: error: candidates are: typedef unsigned int uint32_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:491: error: typedef uint32_t cv::uint32_t opencv-3.4.1/modules/imgproc/src/resize.cpp:67: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:68: error: reference to 'int16_t' is ambiguous /usr/include/stdint.h:38: error: candidates are: typedef short int int16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:488: error: typedef int16_t cv::int16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:68: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:69: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:69: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:70: error: reference to 'int8_t' is ambiguous /usr/include/stdint.h:37: error: candidates are: typedef signed char int8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:486: error: typedef int8_t cv::int8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:70: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:71: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:71: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: template-id 'hlineResizeCn&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint16, 2, true, 1&gt;' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: template-id 'hlineResizeCn&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint16, 2, true, 2&gt;' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: template-id 'hlineResizeCn&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint16, 2, true, 4&gt;' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: template-id 'hlineResizeCn&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint32, 2, true, 1&gt;' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: 'uint8_t' has not been declared opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: template-id 'vlineSet&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint16&gt;' for 'void&lt;unnamed&gt;::vlineSet(&lt;unnamed&gt;::ufixedpoint16*, int*, int)' does not match any template declaration opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: 'uint8_t' has not been declared opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: template-id 'vlineResize&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint16, 2&gt;' for 'void&lt;unnamed&gt;::vlineResize(&lt;unnamed&gt;::ufixedpoint16*, size_t, &lt;unnamed&gt;::ufixedpoint16*, int*, int)' does not match any template declaration opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::resize_bitExact(const uchar*, size_t, int, int, uchar*, size_t, int, int, int, double, double) [with ET = unsigned char, interpolation = &lt;unnamed&gt;::interpolationLinear&lt;unsigned char&gt;]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::resize_bitExact(const uchar*, size_t, int, int, uchar*, size_t, int, int, int, double, double) [with ET = signed char, interpolation = &lt;unnamed&gt;::interpolationLinear&lt;signed char&gt;]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::resize_bitExact(const uchar*, size_t, int, int, uchar*, size_t, int, int, int, double, double) [with ET = short unsigned int, interpolation = &lt;unnamed&gt;::interpolationLinear&lt;short unsigned int&gt;]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::resize_bitExact(const uchar*, size_t, int, int, uchar*, size_t, int, int, int, double, double) [with ET = short int, interpolation = &lt;unnamed&gt;::interpolationLinear&lt;short int&gt;]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::resize_bitExact(const uchar*, size_t, int, int, uchar*, size_t, int, int, int, double, double) [with ET = int, interpolation = &lt;unnamed&gt;::interpolationLinear&lt;int&gt;]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineSet(FT*, ET*, int) [with ET = int, FT = &lt;unnamed&gt;::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '&lt;unnamed&gt;::fixedpoint64' to 'int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineResize(FT*, size_t, FT*, ET*, int) [with ET = int, FT = &lt;unnamed&gt;::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '&lt;unnamed&gt;::fixedpoint64::WT' to 'int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineSet(FT*, ET*, int) [with ET = short int, FT = &lt;unnamed&gt;::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = short int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '&lt;unnamed&gt;::fixedpoint64' to 'short int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = short int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineResize(FT*, size_t, FT*, ET*, int) [with ET = short int, FT = &lt;unnamed&gt;::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = short int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '&lt;unnamed&gt;::fixedpoint64::WT' to 'short int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = short int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineSet(FT*, ET*, int) [with ET = short unsigned int, FT = &lt;unnamed&gt;::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = short unsigned int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '&lt;unnamed&gt;::fixedpoint64' to 'short unsigned int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = short unsigned int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineResize(FT*, size_t, FT*, ET*, int) [with ET = short unsigned int, FT = &lt;unnamed&gt;::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = short unsigned int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '&lt;unnamed&gt;::fixedpoint64::WT' to 'short unsigned int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = short unsigned int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineSet(FT*, ET*, int) [with ET = signed char, FT = &lt;unnamed&gt;::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = signed char, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '&lt;unnamed&gt;::fixedpoint64' to 'signed char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = signed char] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineResize(FT*, size_t, FT*, ET*, int) [with ET = signed char, FT = &lt;unnamed&gt;::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = signed char, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '&lt;unnamed&gt;::fixedpoint64::WT' to 'signed char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = signed char] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineSet(FT*, ET*, int) [with ET = unsigned char, FT = &lt;unnamed&gt;::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = unsigned char, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '&lt;unnamed&gt;::fixedpoint64' to 'unsigned char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = unsigned char] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineResize(FT*, size_t, FT*, ET*, int) [with ET = unsigned char, FT = &lt;unnamed&gt;::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = unsigned char, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '&lt;unnamed&gt;::fixedpoint64::WT' to 'unsigned char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = unsigned char] make[2]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.cpp.o] Error 1 make[1]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/all] Error 2 make: *** [all] Error 2"><pre class="notranslate"><code class="notranslate">opencv-3.4.1/modules/imgproc/src/hal_replacement.hpp:52: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' [-Wpragmas] In file included from opencv-3.4.1/modules/imgproc/src/precomp.hpp:54, from opencv-3.4.1/modules/imgproc/src/resize.cpp:50: opencv-3.4.1/modules/imgproc/src/hal_replacement.hpp:778: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' [-Wpragmas] opencv-3.4.1/modules/imgproc/src/resize.cpp:67: error: reference to 'uint32_t' is ambiguous /usr/include/stdint.h:52: error: candidates are: typedef unsigned int uint32_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:491: error: typedef uint32_t cv::uint32_t opencv-3.4.1/modules/imgproc/src/resize.cpp:67: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:68: error: reference to 'int16_t' is ambiguous /usr/include/stdint.h:38: error: candidates are: typedef short int int16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:488: error: typedef int16_t cv::int16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:68: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:69: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:69: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:70: error: reference to 'int8_t' is ambiguous /usr/include/stdint.h:37: error: candidates are: typedef signed char int8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:486: error: typedef int8_t cv::int8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:70: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:71: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:71: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: template-id 'hlineResizeCn&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint16, 2, true, 1&gt;' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: template-id 'hlineResizeCn&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint16, 2, true, 2&gt;' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: template-id 'hlineResizeCn&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint16, 2, true, 4&gt;' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: template-id 'hlineResizeCn&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint32, 2, true, 1&gt;' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before '*' token opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: 'uint8_t' has not been declared opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: template-id 'vlineSet&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint16&gt;' for 'void&lt;unnamed&gt;::vlineSet(&lt;unnamed&gt;::ufixedpoint16*, int*, int)' does not match any template declaration opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: 'uint8_t' has not been declared opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: template-id 'vlineResize&lt;&lt;expression error&gt;, &lt;unnamed&gt;::ufixedpoint16, 2&gt;' for 'void&lt;unnamed&gt;::vlineResize(&lt;unnamed&gt;::ufixedpoint16*, size_t, &lt;unnamed&gt;::ufixedpoint16*, int*, int)' does not match any template declaration opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::resize_bitExact(const uchar*, size_t, int, int, uchar*, size_t, int, int, int, double, double) [with ET = unsigned char, interpolation = &lt;unnamed&gt;::interpolationLinear&lt;unsigned char&gt;]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::resize_bitExact(const uchar*, size_t, int, int, uchar*, size_t, int, int, int, double, double) [with ET = signed char, interpolation = &lt;unnamed&gt;::interpolationLinear&lt;signed char&gt;]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::resize_bitExact(const uchar*, size_t, int, int, uchar*, size_t, int, int, int, double, double) [with ET = short unsigned int, interpolation = &lt;unnamed&gt;::interpolationLinear&lt;short unsigned int&gt;]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::resize_bitExact(const uchar*, size_t, int, int, uchar*, size_t, int, int, int, double, double) [with ET = short int, interpolation = &lt;unnamed&gt;::interpolationLinear&lt;short int&gt;]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::resize_bitExact(const uchar*, size_t, int, int, uchar*, size_t, int, int, int, double, double) [with ET = int, interpolation = &lt;unnamed&gt;::interpolationLinear&lt;int&gt;]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineSet(FT*, ET*, int) [with ET = int, FT = &lt;unnamed&gt;::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '&lt;unnamed&gt;::fixedpoint64' to 'int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineResize(FT*, size_t, FT*, ET*, int) [with ET = int, FT = &lt;unnamed&gt;::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '&lt;unnamed&gt;::fixedpoint64::WT' to 'int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineSet(FT*, ET*, int) [with ET = short int, FT = &lt;unnamed&gt;::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = short int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '&lt;unnamed&gt;::fixedpoint64' to 'short int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = short int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineResize(FT*, size_t, FT*, ET*, int) [with ET = short int, FT = &lt;unnamed&gt;::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = short int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '&lt;unnamed&gt;::fixedpoint64::WT' to 'short int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = short int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineSet(FT*, ET*, int) [with ET = short unsigned int, FT = &lt;unnamed&gt;::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = short unsigned int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '&lt;unnamed&gt;::fixedpoint64' to 'short unsigned int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = short unsigned int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineResize(FT*, size_t, FT*, ET*, int) [with ET = short unsigned int, FT = &lt;unnamed&gt;::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = short unsigned int, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '&lt;unnamed&gt;::fixedpoint64::WT' to 'short unsigned int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = short unsigned int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineSet(FT*, ET*, int) [with ET = signed char, FT = &lt;unnamed&gt;::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = signed char, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '&lt;unnamed&gt;::fixedpoint64' to 'signed char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = signed char] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineResize(FT*, size_t, FT*, ET*, int) [with ET = signed char, FT = &lt;unnamed&gt;::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = signed char, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '&lt;unnamed&gt;::fixedpoint64::WT' to 'signed char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = signed char] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineSet(FT*, ET*, int) [with ET = unsigned char, FT = &lt;unnamed&gt;::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = unsigned char, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '&lt;unnamed&gt;::fixedpoint64' to 'unsigned char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = unsigned char] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void&lt;unnamed&gt;::vlineResize(FT*, size_t, FT*, ET*, int) [with ET = unsigned char, FT = &lt;unnamed&gt;::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void&lt;unnamed&gt;::resize_bitExactInvoker&lt;ET, FT, interp_y_len&gt;::operator()(const cv::Range&amp;) const [with ET = unsigned char, FT = &lt;unnamed&gt;::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '&lt;unnamed&gt;::fixedpoint64::WT' to 'unsigned char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: &lt;unnamed&gt;::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: &lt;unnamed&gt;::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: &lt;unnamed&gt;::fixedpoint64::operator ET() const [with ET = unsigned char] make[2]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.cpp.o] Error 1 make[1]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/all] Error 2 make: *** [all] Error 2 </code></pre></div> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">the command I run are</p> <ul dir="auto"> <li>cmake -DBUILD_LIST=core,imgcodecs,imageproc .. &amp; make</li> </ul> <p dir="auto">Your help is highly appreciated. Thanks</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=divyabhardwaj" rel="nofollow">divyabhardwaj</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4836?redirect=false" rel="nofollow">SPR-4836</a></strong> and commented</p> <p dir="auto">I am having a Spring Application(Core Spring+JPA). I have converted this application into a jar. I m using this jar in another spring application( Client application). Client application's conext.xml is importing the applicationContext.xml present in the jar .I m facing the following problem in doing so.</p> <p dir="auto">Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'roleDAO': Injection of persistence methods failed; nested exception is java.lang.NoClassDefFoundError: javax.transaction.SystemException<br> at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:323)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:966)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:462)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)<br> at java.security.AccessController.doPrivileged(AccessController.java:197)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)<br> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)<br> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)<br> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)<br> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)<br> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)<br> at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139)<br> at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83)<br> at TestApp.main(TestApp.java:16)<br> Caused by: java.lang.NoClassDefFoundError: javax.transaction.SystemException<br> at java.lang.J9VMInternals.verifyImpl(Native Method)<br> at java.lang.J9VMInternals.verify(J9VMInternals.java:68)<br> at java.lang.J9VMInternals.verify(J9VMInternals.java:66)<br> at java.lang.J9VMInternals.initialize(J9VMInternals.java:129)<br> at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:39)<br> at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:34)<br> at org.springframework.orm.jpa.ExtendedEntityManagerCreator.createContainerManagedEntityManager(ExtendedEntityManagerCreator.java:197)<br> at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveExtendedEntityManager(PersistenceAnnotationBeanPostProcessor.java:625)<br> at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:567)<br> at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:193)<br> at org.springframework.beans.factory.annotation.InjectionMetadata.injectMethods(InjectionMetadata.java:116)<br> at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:320)</p> <p dir="auto">Please help me in solving the problem . Thnaks in advance</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="398088490" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9511" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9511/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9511">#9511</a> Spring client project applicationConetxt.xml is reading the applicationContext.xml present in the jar which r present in classpath (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cbeams" rel="nofollow">Chris Beams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8056?redirect=false" rel="nofollow">SPR-8056</a></strong> and commented</p> <p dir="auto">As mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398110753" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12709" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12709/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12709">#12709</a>, the use of the <code class="notranslate">local</code> attribute in <code class="notranslate">beans:</code> namespace is no longer of much value now that bean <code class="notranslate">id</code> elements are typed as <code class="notranslate">xsd:string</code> instead of <code class="notranslate">xsd:ID</code>.</p> <p dir="auto">Determine what to do with this value in the <code class="notranslate">spring-beans-3.1.xsd</code>: preserve, deprecate (read: eliminate from 3.1, but still support in the parser for those who use &lt;= 3.0 xsds), etc.</p> <p dir="auto">Also update the relevant sections in the reference documentation as appropriate, including:</p> <ul dir="auto"> <li>3.4.2.1 (the idref element)</li> <li>3.4.2.2</li> </ul> <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="398111408" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12833" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12833/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12833">#12833</a> Update reference documentation regarding idref and local (<em><strong>"duplicates"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111402" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12830" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12830/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12830">#12830</a> Evaluate 'idref' element and 'local' attribute in Spring 3.1 (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<p dir="auto">Hi,</p> <p dir="auto">I'm pretty desperately trying to nail down the reason that an url unshortener script is freezing from time to time.</p> <p dir="auto">I'm using requests with several head and get-requests, such as</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="with requests.Session as s: r = s.get(url, allow_redirects=True, timeout=self.timeout, headers=self.headers, verify=False)"><pre class="notranslate"><code class="notranslate">with requests.Session as s: r = s.get(url, allow_redirects=True, timeout=self.timeout, headers=self.headers, verify=False) </code></pre></div> <p dir="auto">where self.timeout are 10 seconds and the headers just include a user-agent.</p> <p dir="auto">The request is called by a worker in a multiprocessing Pool with 10 workers that get's constantly feeded via Pool.imap() with a list of urls.</p> <p dir="auto">When keyboard interrupting I get from some of the workers the following Traceback:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;---/dataprocessor.py&quot;, line 98, in try_unshorten_expanded_urls result = unshorten_expanded_urls(tweet_dataframe_tuple) File &quot;---/dataprocessor.py&quot;, line 84, in unshorten_expanded_urls 'unshortened_url': u.unshorten(expanded_urls[i]), File &quot;---/unshorten.py&quot;, line 162, in unshorten verify=False) File &quot;/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/sessions.py&quot;, line 480, in get return self.request('GET', url, **kwargs) File &quot;/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/sessions.py&quot;, line 468, in request resp = self.send(prep, **send_kwargs) File &quot;/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/sessions.py&quot;, line 608, in send r.content File &quot;/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/models.py&quot;, line 737, in content self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes() File &quot;/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/models.py&quot;, line 660, in generate for chunk in self.raw.stream(chunk_size, decode_content=True): File &quot;/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/packages/urllib3/response.py&quot;, line 344, in stream data = self.read(amt=amt, decode_content=decode_content) File &quot;/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/packages/urllib3/response.py&quot;, line 301, in read data = self._fp.read(amt) File &quot;/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/http/client.py&quot;, line 433, in read n = self.readinto(b) File &quot;/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/http/client.py&quot;, line 473, in readinto n = self.fp.readinto(b) File &quot;/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/socket.py&quot;, line 575, in readinto return self._sock.recv_into(b) KeyboardInterrupt"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "---/dataprocessor.py", line 98, in try_unshorten_expanded_urls result = unshorten_expanded_urls(tweet_dataframe_tuple) File "---/dataprocessor.py", line 84, in unshorten_expanded_urls 'unshortened_url': u.unshorten(expanded_urls[i]), File "---/unshorten.py", line 162, in unshorten verify=False) File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/sessions.py", line 480, in get return self.request('GET', url, **kwargs) File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/sessions.py", line 468, in request resp = self.send(prep, **send_kwargs) File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/sessions.py", line 608, in send r.content File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/models.py", line 737, in content self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes() File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/models.py", line 660, in generate for chunk in self.raw.stream(chunk_size, decode_content=True): File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 344, in stream data = self.read(amt=amt, decode_content=decode_content) File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 301, in read data = self._fp.read(amt) File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/http/client.py", line 433, in read n = self.readinto(b) File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/http/client.py", line 473, in readinto n = self.fp.readinto(b) File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/socket.py", line 575, in readinto return self._sock.recv_into(b) KeyboardInterrupt </code></pre></div> <p dir="auto">If the function would raise an exception, I've made sure that it would be catched within the function so that it would not block the pool. But as it seems, <code class="notranslate">readinto</code> is just hanging here (for hours). I don't know whether this is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143481469" data-permission-text="Title is private" data-url="https://github.com/psf/requests/issues/3066" data-hovercard-type="issue" data-hovercard-url="/psf/requests/issues/3066/hovercard" href="https://github.com/psf/requests/issues/3066">#3066</a>, as I am not familiar enough with the protocols or requests itself, so please excuse a duplicate if this should be one or if the error is my bad.</p> <p dir="auto">The freeze happened several times with the same batch of urls now.<br> I tried to find the exact url causing this freeze but did not succeed as the batch contains several thousand, though I've already excluded everything that exceeds a certain content length or does not have text as content type via a head request before the get.</p> <p dir="auto">I am running requests 2.10.0 with Python 3.5.1 in a miniconda environment installed via pip on an Ubuntu 14.04.</p> <p dir="auto">However, great library, hope this helps to make it better.</p> <p dir="auto">Cheers!</p> <p dir="auto">UPDATE:</p> <p dir="auto">Here the relevant code for the traceback (line 162 in unshorten.py):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def check_size_and_type(request_object, max_content_length): try: length = int(request_object.headers['content-length']) except: length = None try: type = str(request_object.headers['content-type']) except: type = '' if ((length is None or length &lt; max_content_length) and (type.startswith('text/html') or type.startswith('application/xhtml') or type.startswith('text/xml'))): return True else: return False with requests.Session() as s: r = s.head(url, allow_redirects=True, timeout=self.timeout, headers=self.headers, verify=False) if check_size_and_type(r, self.max_content_length): r = s.get(url, allow_redirects=True, timeout=self.timeout, headers=self.headers, verify=False)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">check_size_and_type</span>(<span class="pl-s1">request_object</span>, <span class="pl-s1">max_content_length</span>): <span class="pl-k">try</span>: <span class="pl-s1">length</span> <span class="pl-c1">=</span> <span class="pl-en">int</span>(<span class="pl-s1">request_object</span>.<span class="pl-s1">headers</span>[<span class="pl-s">'content-length'</span>]) <span class="pl-k">except</span>: <span class="pl-s1">length</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span> <span class="pl-k">try</span>: <span class="pl-s1">type</span> <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">request_object</span>.<span class="pl-s1">headers</span>[<span class="pl-s">'content-type'</span>]) <span class="pl-k">except</span>: <span class="pl-s1">type</span> <span class="pl-c1">=</span> <span class="pl-s">''</span> <span class="pl-k">if</span> ((<span class="pl-s1">length</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span> <span class="pl-c1">or</span> <span class="pl-s1">length</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">max_content_length</span>) <span class="pl-c1">and</span> (<span class="pl-s1">type</span>.<span class="pl-en">startswith</span>(<span class="pl-s">'text/html'</span>) <span class="pl-c1">or</span> <span class="pl-s1">type</span>.<span class="pl-en">startswith</span>(<span class="pl-s">'application/xhtml'</span>) <span class="pl-c1">or</span> <span class="pl-s1">type</span>.<span class="pl-en">startswith</span>(<span class="pl-s">'text/xml'</span>))): <span class="pl-k">return</span> <span class="pl-c1">True</span> <span class="pl-k">else</span>: <span class="pl-k">return</span> <span class="pl-c1">False</span> <span class="pl-k">with</span> <span class="pl-s1">requests</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">s</span>: <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>.<span class="pl-en">head</span>(<span class="pl-s1">url</span>, <span class="pl-s1">allow_redirects</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">timeout</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">timeout</span>, <span class="pl-s1">headers</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">headers</span>, <span class="pl-s1">verify</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-k">if</span> <span class="pl-en">check_size_and_type</span>(<span class="pl-s1">r</span>, <span class="pl-s1">self</span>.<span class="pl-s1">max_content_length</span>): <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>.<span class="pl-en">get</span>(<span class="pl-s1">url</span>, <span class="pl-s1">allow_redirects</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">timeout</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">timeout</span>, <span class="pl-s1">headers</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">headers</span>, <span class="pl-s1">verify</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)</pre></div>
<p dir="auto">Does <code class="notranslate">requests</code> currently support Multipart-encoded files in <code class="notranslate">PUT</code> requests?</p> <p dir="auto">It seems that both<br> <a href="http://docs.python-requests.org/en/master/user/quickstart/#post-a-multipart-encoded-file" rel="nofollow">http://docs.python-requests.org/en/master/user/quickstart/#post-a-multipart-encoded-file</a><br> and<br> <a href="https://toolbelt.readthedocs.io/en/latest/uploading-data.html" rel="nofollow">https://toolbelt.readthedocs.io/en/latest/uploading-data.html</a><br> only work with <code class="notranslate">POST</code>. For <code class="notranslate">PUT</code> requests, I keep getting error "413 Request Entity Too Large" from my Apache httpd.</p> <p dir="auto">Should that be considered a bug, improvement suggestion, or there is some fundamental limitation why <code class="notranslate">PUT</code> shouldn't upload large files? (yes, my <code class="notranslate">GET</code> would stream the huge file unmodified)</p> <p dir="auto">Original StackOverflow question:<br> <a href="https://stackoverflow.com/questions/50533901/multipart-put-with-requests" rel="nofollow">https://stackoverflow.com/questions/50533901/multipart-put-with-requests</a></p>
0
<p dir="auto">struct.rs:4:0: 9:1 error: this type cannot be instantiated without an instance of itself; consider using <code class="notranslate">option&lt;Node_&gt;</code><br> struct.rs:4 struct Node_ {<br> struct.rs:5 mut data : int,<br> struct.rs:6 mut parent : Node_,<br> struct.rs:7 mut left : Node_,<br> struct.rs:8 mut right : Node_<br> struct.rs:9 }<br> rust: task b4a01150 ran out of stack<br> /usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_j+0x5a)[0xb642f47a]<br> /usr/local/bin/../lib/librustrt.so(rust_task_fail+0x36)[0xb642f576]<br> /usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEPKcS1_j+0x32)[0xb642f5e2]<br> /usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEv+0x35)[0xb642f625]<br> /usr/local/bin/../lib/librustrt.so(_ZN9rust_task9new_stackEj+0x153)[0xb642fa63]<br> /usr/local/bin/../lib/librustrt.so(_Z14new_stack_slowP14new_stack_args+0x26)[0xb642fc86]<br> /usr/local/bin/../lib/librustrt.so(+0x2c50f)[0xb644450f]<br> /usr/local/bin/../lib/librustrt.so(upcall_new_stack+0x24c)[0xb643345c]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(+0x9524e3)[0xb6dc74e3]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty20lookup_struct_fields17_23342db77142a97d3_06E+0x89)[0xb66887b9]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x4cc)[0xb67c78ac]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN6middle2ty26type_structurally_contains17_6719c4c87882b3c23_06E+0x550)[0xb67c7930]<br> error: internal compiler error: unexpected failure<br> note: the compiler hit an unexpected failure path. this is a bug<br> note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues<br> rust: task failed at 'explicit failure', /home/ymin/share/rust/rust/src/librustc/rustc.rc:427<br> /usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_j+0x5a)[0xb642f47a]<br> /usr/local/bin/../lib/librustrt.so(rust_task_fail+0x36)[0xb642f576]<br> /usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEPKcS1_j+0x32)[0xb642f5e2]<br> /usr/local/bin/../lib/librustrt.so(upcall_s_fail+0x53)[0xb64318c3]<br> /usr/local/bin/../lib/librustrt.so(+0x2c50f)[0xb644450f]<br> /usr/local/bin/../lib/librustrt.so(upcall_fail+0x194)[0xb6431f64]<br> /usr/local/bin/../lib/librustrt.so(rust_upcall_fail+0x2b)[0xb64320ab]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(_ZN3sys6rustrt16rust_upcall_fail17_2125106fcaa29fbc3_06E+0x45)[0xb76306d5]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0xa981b)[0xb763081b]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0x2e4a6)[0xb75b54a6]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0xbeeac)[0xb7645eac]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN7monitor17_2af173aed8e51dc73_06E+0x2d4c)[0xb6dc3c1c]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(+0x9524f8)[0xb6dc74f8]<br> /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN4main16_2fb85b4a659c4103_06E+0x85)[0xb6dc7175]<br> rustc(_rust_main+0x31)[0x8048941]<br> /usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x31)[0xb642fe01]<br> rust: domain main @0x99984e8 root task failed<br> rust: task failed at 'killed', /home/ymin/share/rust/rust/src/libcore/task/mod.rs:577<br> /usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_j+0x5a)[0xb642f47a]<br> /usr/local/bin/../lib/librustrt.so(rust_task_fail+0x36)[0xb642f576]<br> /usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEPKcS1_j+0x32)[0xb642f5e2]<br> /usr/local/bin/../lib/librustrt.so(upcall_s_fail+0x53)[0xb64318c3]<br> /usr/local/bin/../lib/librustrt.so(+0x2c50f)[0xb644450f]<br> /usr/local/bin/../lib/librustrt.so(upcall_fail+0x194)[0xb6431f64]<br> /usr/local/bin/../lib/librustrt.so(rust_upcall_fail+0x2b)[0xb64320ab]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(_ZN3sys6rustrt16rust_upcall_fail17_2125106fcaa29fbc3_06E+0x45)[0xb76306d5]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0xa981b)[0xb763081b]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0x2e4a6)[0xb75b54a6]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(_ZN4task5yield17_56812fae66173efd3_06E+0xc8)[0xb75e7108]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0x979f9)[0xb761e9f9]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(_ZN7private11weaken_task17_abd63738108cf6463_06E+0xdb)[0xb761e82b]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0x976f6)[0xb761e6f6]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0x94fa0)[0xb761bfa0]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0xbeeac)[0xb7645eac]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0x7b84c)[0xb760284c]<br> /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0xbeeac)[0xb7645eac]<br> /usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x31)[0xb642fe01]</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn foo&lt;R&gt;(r: R) -&gt; R { r } pub fn main() { foo(0); }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">R</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">r</span><span class="pl-kos">:</span> <span class="pl-smi">R</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">R</span> <span class="pl-kos">{</span> r <span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">foo</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></pre></div> <p dir="auto">yields <code class="notranslate">error: internal compiler error: debuginfo: unexpected type in type_metadata</code>.</p> <p dir="auto">I presume this is a ty_infer, so I'm surprised we're seeing this in the debuginfo module while in the trans pass.</p>
0
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd import numpy as np ts1 = np.datetime64('2017-11-29T03:30') ts2 = np.datetime64('2017-11-29T03:45') d = {'number' : pd.Series([1., 2.]), 'string': pd.Series(['haha', 'wawa']), 'datetime64': pd.Series([ts1, ts2])} df = pd.DataFrame(d) df.apply(lambda row: (row.number, row.string), axis=1)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">ts1</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">datetime64</span>(<span class="pl-s">'2017-11-29T03:30'</span>) <span class="pl-s1">ts2</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">datetime64</span>(<span class="pl-s">'2017-11-29T03:45'</span>) <span class="pl-s1">d</span> <span class="pl-c1">=</span> {<span class="pl-s">'number'</span> : <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1.</span>, <span class="pl-c1">2.</span>]), <span class="pl-s">'string'</span>: <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-s">'haha'</span>, <span class="pl-s">'wawa'</span>]), <span class="pl-s">'datetime64'</span>: <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-s1">ts1</span>, <span class="pl-s1">ts2</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-s1">d</span>) <span class="pl-s1">df</span>.<span class="pl-en">apply</span>(<span class="pl-k">lambda</span> <span class="pl-s1">row</span>: (<span class="pl-s1">row</span>.<span class="pl-s1">number</span>, <span class="pl-s1">row</span>.<span class="pl-s1">string</span>), <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Applying lambda function to a DataFrame with columns of type numpy.datetime64 throws an unexpected error: <code class="notranslate">ValueError: Shape of passed values is (2, 2), indices imply (2, 3)</code>. The error message is not helpful, and I believe this error is thrown due to a bug. Dropping columns of type numpy.datetime64 fixes the issue.</p> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 (1.0, haha) 1 (2.0, wawa) dtype: object"><pre class="notranslate"><code class="notranslate">0 (1.0, haha) 1 (2.0, wawa) dtype: object </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.14.final.0<br> python-bits: 64<br> OS: Darwin<br> OS-release: 16.7.0<br> machine: x86_64<br> processor: i386<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.20.3<br> pytest: 3.2.1<br> pip: 9.0.1<br> setuptools: 36.5.0.post20170921<br> Cython: 0.26.1<br> numpy: 1.13.3<br> scipy: 0.19.1<br> xarray: None<br> IPython: 5.4.1<br> sphinx: 1.6.3<br> patsy: 0.4.1<br> dateutil: 2.6.1<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.4.2<br> numexpr: 2.6.2<br> feather: None<br> matplotlib: 2.1.0<br> openpyxl: 2.4.8<br> xlrd: 1.1.0<br> xlwt: 1.2.0<br> xlsxwriter: 1.0.2<br> lxml: 4.1.0<br> bs4: 4.6.0<br> html5lib: 0.999999999<br> sqlalchemy: 1.1.13<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pd.DataFrame({'col_1':['val_1','val_2','val_3']}).apply(lambda row: [1], axis=1, reduce=True)"><pre class="notranslate"><span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'col_1'</span>:[<span class="pl-s">'val_1'</span>,<span class="pl-s">'val_2'</span>,<span class="pl-s">'val_3'</span>]}).<span class="pl-en">apply</span>(<span class="pl-k">lambda</span> <span class="pl-s1">row</span>: [<span class="pl-c1">1</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">reduce</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Per the documentation, calling Dataframe.apply w/ reduce=True should always produce a Series. However, if the applied function returns list values Dataframe.apply returns a Dataframe, not a Series.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">When called with reduce=True, I expect Dataframe.apply to produce a Series where each element is a list, not a Dataframe.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <p dir="auto">0.18.1</p>
1
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-nest-an-anchor-element-within-a-paragraph#?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%3Ca%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%0A%0A%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%0A%0A%3Cp%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%3Cp%20class%3D%22red-text%22%3EPurr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%3C%2Fp%3E%0A%3Cp%3E%0A%20View%20more%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%3Ca%20href%3D'http%3A%2F%2Fwww.freecatphotoapp.com'%3ECat%20photos%0A%20%20%3C%2Fa%3E%0A%3C%2Fp%3E%0A" rel="nofollow">Waypoint: Nest an Anchor Element within a Paragraph</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 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;a href=&quot;http://www.freecatphotoapp.com&quot;&gt;cat photos&lt;/a&gt; &lt;img class=&quot;smaller-image thick-green-border&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt; &lt;p class=&quot;red-text&quot;&gt;Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.&lt;/p&gt; &lt;p class=&quot;red-text&quot;&gt;Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.&lt;/p&gt; &lt;p&gt; View more &lt;a href='http://www.freecatphotoapp.com'&gt;Cat photos &lt;/a&gt; &lt;/p&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">a</span> <span class="pl-c1">href</span>="<span class="pl-s">http://www.freecatphotoapp.com</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">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<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">p</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.<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">p</span><span class="pl-kos">&gt;</span> View more <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>='<span class="pl-s">http://www.freecatphotoapp.com</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></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6908014/10583898/1a5a7fba-76ad-11e5-8dfd-e28c04af85d7.png"><img src="https://cloud.githubusercontent.com/assets/6908014/10583898/1a5a7fba-76ad-11e5-8dfd-e28c04af85d7.png" alt="screenshot from 2015-10-19 22 00 11" style="max-width: 100%;"></a><br> Challenge <a href="http://freecodecamp.com/challenges/waypoint-nest-an-anchor-element-within-a-paragraph#?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%3Ca%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%0A%0A%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%0A%0A%3Cp%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%3Cp%20class%3D%22red-text%22%3EPurr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%3C%2Fp%3E%0A%3Cp%3EView%20more%20%3Ca%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%3C%2Fp%3E" rel="nofollow">Waypoint: Nest an Anchor Element within a Paragraph</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 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;a href=&quot;http://www.freecatphotoapp.com&quot;&gt;cat photos&lt;/a&gt; &lt;img class=&quot;smaller-image thick-green-border&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt; &lt;p class=&quot;red-text&quot;&gt;Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.&lt;/p&gt; &lt;p class=&quot;red-text&quot;&gt;Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.&lt;/p&gt; &lt;p&gt;View more &lt;a href=&quot;http://www.freecatphotoapp.com&quot;&gt;cat photos&lt;/a&gt;&lt;/p&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">a</span> <span class="pl-c1">href</span>="<span class="pl-s">http://www.freecatphotoapp.com</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">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<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">p</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.<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">p</span><span class="pl-kos">&gt;</span>View more <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">http://www.freecatphotoapp.com</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></pre></div>
1
<p dir="auto">Mac OS X version 10.10.2 (14C109)<br> Atom Version 0.186.0 (0.186.0)</p> <p dir="auto">Standard OS X behavior (e.g. Mail.app) is:</p> <ul dir="auto"> <li>option+left/right arrow moves by one word</li> <li>control+left/right arrow moves to beginning/end of line</li> </ul> <p dir="auto">(For reference, in Sublime Text, both those options move by one word, which I happen to prefer.)</p> <p dir="auto">In current versions of Atom, the cursor does not move at all with these key combinations.</p> <p dir="auto">(I don't have any custom bindings for these keys in my keymap.cson)</p>
<p dir="auto">SublimeText supports navigation by subwords (underscore separated or hills in camelcase):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;keys&quot;: [&quot;alt+left&quot;], &quot;command&quot;: &quot;move&quot;, &quot;args&quot;: {&quot;by&quot;: &quot;subwords&quot;, &quot;forward&quot;: false} }, { &quot;keys&quot;: [&quot;alt+right&quot;], &quot;command&quot;: &quot;move&quot;, &quot;args&quot;: {&quot;by&quot;: &quot;subword_ends&quot;, &quot;forward&quot;: true} }, { &quot;keys&quot;: [&quot;alt+shift+left&quot;], &quot;command&quot;: &quot;move&quot;, &quot;args&quot;: {&quot;by&quot;: &quot;subwords&quot;, &quot;forward&quot;: false, &quot;extend&quot;: true} }, { &quot;keys&quot;: [&quot;alt+shift+right&quot;], &quot;command&quot;: &quot;move&quot;, &quot;args&quot;: {&quot;by&quot;: &quot;subword_ends&quot;, &quot;forward&quot;: true, &quot;extend&quot;: true} }"><pre class="notranslate"><code class="notranslate">{ "keys": ["alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} }, { "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} }, { "keys": ["alt+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} }, { "keys": ["alt+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} } </code></pre></div> <p dir="auto">It would be nice if Atom also supported <code class="notranslate">move*</code>, <code class="notranslate">delete*</code>, <code class="notranslate">backspace*</code>, <code class="notranslate">select*</code> editor commands based on subwords.</p>
1
<p dir="auto">In version 4.0.1, HintManager getInstance (). SetDatabaseShardingValue () can't use, don't enter DataSourceTypeHintShardingAlgorithm,I just want to switch database, not tables</p> <p dir="auto">m1: !!org.apache.shardingsphere.orchestration.yaml.config.YamlDataSourceConfiguration<br> dataSourceClassName: com.zaxxer.hikari.HikariDataSource<br> properties:<br> driverClassName: com.mysql.cj.jdbc.Driver<br> jdbcUrl: jdbc:mysql://127.0.0.1:3306/order_db_1?useSSL=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;transformedBitIsBoolean=true&amp;autoReconnect=true&amp;failOverReadOnly=false&amp;allowMultiQueries=true&amp;serverTimezone=GMT<br> username: root<br> password: admin888<br> connectionTimeout: 30000<br> minimumIdle: 5<br> maximumPoolSize: 15<br> idleTimeout: 30000<br> maxLifetime: 120000<br> autoCommit: true<br> m2: !!org.apache.shardingsphere.orchestration.yaml.config.YamlDataSourceConfiguration<br> dataSourceClassName: com.zaxxer.hikari.HikariDataSource<br> properties:<br> driverClassName: com.mysql.cj.jdbc.Driver<br> jdbcUrl: jdbc:mysql://127.0.0.1:3306/order_db_2?useSSL=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;transformedBitIsBoolean=true&amp;autoReconnect=true&amp;failOverReadOnly=false&amp;allowMultiQueries=true&amp;serverTimezone=GMT<br> username: root<br> password: admin888<br> connectionTimeout: 30000<br> minimumIdle: 5<br> maximumPoolSize: 15<br> idleTimeout: 30000<br> maxLifetime: 120000<br> autoCommit: true</p> <p dir="auto">config:<br> sharding:<br> defaultDatabaseStrategy:<br> hint:<br> algorithmClassName: cn.com.hatech.sharding.config.DataSourceTypeHintShardingAlgorithm</p> <p dir="auto">public class DataSourceTypeHintShardingAlgorithm implements HintShardingAlgorithm {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Override public Collection&lt;String&gt; doSharding(Collection&lt;String&gt; availableTargetNames, HintShardingValue&lt;String&gt; shardingValue) { if (!CollectionUtils.isEmpty(shardingValue.getValues())) { log.info(&quot;当前所选择的数据源是:{}&quot;,shardingValue.getValues()); return availableTargetNames.stream().filter(availableTargetName -&gt; shardingValue.getValues().contains(availableTargetName)).collect(Collectors.toList()); } return availableTargetNames; }"><pre class="notranslate"><code class="notranslate">@Override public Collection&lt;String&gt; doSharding(Collection&lt;String&gt; availableTargetNames, HintShardingValue&lt;String&gt; shardingValue) { if (!CollectionUtils.isEmpty(shardingValue.getValues())) { log.info("当前所选择的数据源是:{}",shardingValue.getValues()); return availableTargetNames.stream().filter(availableTargetName -&gt; shardingValue.getValues().contains(availableTargetName)).collect(Collectors.toList()); } return availableTargetNames; } </code></pre></div> <p dir="auto">}</p>
<p dir="auto">For English only, other languages we will close it directly.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of Sharding-Sphere do you using?</h3> <p dir="auto">2.0.3</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">result success</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28835304/43514603-1c7ab26a-95b3-11e8-8390-46b049eae169.jpg"><img src="https://user-images.githubusercontent.com/28835304/43514603-1c7ab26a-95b3-11e8-8390-46b049eae169.jpg" alt="1" style="max-width: 100%;"></a><br> SQL:SELECT COUNT(1) FROM training_student WHERE (follow_up_status = ? OR tel1 = ? AND del_flag = ?)</p> <h3 dir="auto">Reason analyze</h3> <p dir="auto">官方文档上标明支持or语句,为何上面截图中的代码不支持呢?<br> (抱歉,英文不灵光)</p> <h3 dir="auto">Steps to reproduce the behavior</h3> <h3 dir="auto">For bug report, please <em>MUST</em> provide the reproduce example codes (such as a github link).</h3> <p dir="auto">mybatis mapper.xml 中的任意select * from tb_name where field1=1 or field2=1 都不支持</p>
0
<h2 dir="auto">Please add Drag and Dropping from the Powertoys Run</h2> <p dir="auto">I love the Powertoys Run feature because it works better for me than the normal search! :P<br> I would love to be able to drag Files out of it into other Programs or Folders!<br> That would make getting files way quicker and easier! :P</p> <hr> <p dir="auto">Crutkas: The suggested implementation would be treating this as if it was dragging an file to the app. Also should work against an icon.</p> <hr> <p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">PowerToys Run is a amazing way to find files. I already used Wox, Listary and Everything, but the fact that Microsoft is developing it's own tool is very promising. I know a lot of artists who uses those kind of tools to search quickly through their assets, and integrate it into their work.</p> <p dir="auto">Listary and Everything already has the possibility to <strong>drag and drop the file directly from the search results into any app</strong>. <em>So you can move/copy files into another folder, or integrate a image directly into a Photoshop composition, or a video file into Premiere for example.</em> This will open so much possibilities !</p> <p dir="auto">Currently, you can't do that directly from the search results and <strong>have to open the containing folder, and then move the corresponding file into your app</strong>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20335741/85521273-4a3f2c80-b604-11ea-8b66-55a1cfa61e8c.gif"><img src="https://user-images.githubusercontent.com/20335741/85521273-4a3f2c80-b604-11ea-8b66-55a1cfa61e8c.gif" alt="ZM3iZw2Zc5" data-animated-image="" style="max-width: 100%;"></a><br> Example of this feature in Eveything. Works similarly in Listary. The same feature is open on <a href="https://github.com/Wox-launcher/Wox/issues/1864" data-hovercard-type="issue" data-hovercard-url="/Wox-launcher/Wox/issues/1864/hovercard">Wox </a>.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Sorry, I'm not a Windows developer, but I'm pretty sure there is a corresponding API for those kind of thing.</p> <p dir="auto">Thanks to all the contributors of this amazing feature toolset !</p>
1
<p dir="auto">It says:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;ul class=&quot;pagination&quot;&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;&amp;laquo;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;3&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;4&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;5&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;&amp;raquo;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;"><pre class="notranslate"><code class="notranslate">&lt;ul class="pagination"&gt; &lt;li&gt;&lt;a href="#"&gt;&amp;laquo;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;3&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;4&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;5&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&amp;raquo;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre></div> <p dir="auto">but it should be:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;pagination&quot;&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;&amp;laquo;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;3&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;4&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;5&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;&amp;raquo;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="pagination"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;&amp;laquo;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;3&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;4&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;5&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&amp;raquo;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre></div> <p dir="auto"><a href="http://getbootstrap.com/components/#pagination" rel="nofollow">http://getbootstrap.com/components/#pagination</a></p>
<p dir="auto">In the pagination examples on the Twitter bootstrap website the example markup places the pagination class on the ul tag</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;ul class=&quot;pagination&quot;&gt;&lt;/ul&gt;"><pre class="notranslate"><code class="notranslate">&lt;ul class="pagination"&gt;&lt;/ul&gt; </code></pre></div> <p dir="auto">However in version 3 the CSS rules only apply when the markup is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;pagination&quot;&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="pagination"&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/div&gt; </code></pre></div> <p dir="auto">I'm not sure if the example are wrong or the CSS.</p>
1
<p dir="auto">This is the benchmark script:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function mysum_int(data) sum = 0 for i in Int(1):Int(endof(data)) @inbounds sum += data[i] end return sum end function mysum_uint(data) sum = 0 for i in UInt(1):UInt(endof(data)) @inbounds sum += data[i] end return sum end let size = 128 * 2^20 data = zeros(UInt8, size) println(&quot;mysum_int&quot;) mysum_int(data) @time mysum_int(data) @time mysum_int(data) @time mysum_int(data) println(&quot;mysum_uint&quot;) mysum_uint(data) @time mysum_uint(data) @time mysum_uint(data) @time mysum_uint(data) end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">mysum_int</span>(data) sum <span class="pl-k">=</span> <span class="pl-c1">0</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-c1">Int</span>(<span class="pl-c1">1</span>)<span class="pl-k">:</span><span class="pl-c1">Int</span>(<span class="pl-c1">endof</span>(data)) <span class="pl-c1">@inbounds</span> sum <span class="pl-k">+=</span> data[i] <span class="pl-k">end</span> <span class="pl-k">return</span> sum <span class="pl-k">end</span> <span class="pl-k">function</span> <span class="pl-en">mysum_uint</span>(data) sum <span class="pl-k">=</span> <span class="pl-c1">0</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-c1">UInt</span>(<span class="pl-c1">1</span>)<span class="pl-k">:</span><span class="pl-c1">UInt</span>(<span class="pl-c1">endof</span>(data)) <span class="pl-c1">@inbounds</span> sum <span class="pl-k">+=</span> data[i] <span class="pl-k">end</span> <span class="pl-k">return</span> sum <span class="pl-k">end</span> <span class="pl-k">let</span> size <span class="pl-k">=</span> <span class="pl-c1">128</span> <span class="pl-k">*</span> <span class="pl-c1">2</span><span class="pl-k">^</span><span class="pl-c1">20</span> data <span class="pl-k">=</span> <span class="pl-c1">zeros</span>(UInt8, size) <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>mysum_int<span class="pl-pds">"</span></span>) <span class="pl-c1">mysum_int</span>(data) <span class="pl-c1">@time</span> <span class="pl-c1">mysum_int</span>(data) <span class="pl-c1">@time</span> <span class="pl-c1">mysum_int</span>(data) <span class="pl-c1">@time</span> <span class="pl-c1">mysum_int</span>(data) <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>mysum_uint<span class="pl-pds">"</span></span>) <span class="pl-c1">mysum_uint</span>(data) <span class="pl-c1">@time</span> <span class="pl-c1">mysum_uint</span>(data) <span class="pl-c1">@time</span> <span class="pl-c1">mysum_uint</span>(data) <span class="pl-c1">@time</span> <span class="pl-c1">mysum_uint</span>(data) <span class="pl-k">end</span></pre></div> <p dir="auto">And the result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/.j/v/BGZFStreams (master|✚1…) $ julia-dev access.jl mysum_int 0.022742 seconds (152 allocations: 9.028 KB) 0.020606 seconds (4 allocations: 160 bytes) 0.023985 seconds (4 allocations: 160 bytes) mysum_uint 0.118161 seconds (4 allocations: 160 bytes) 0.116512 seconds (4 allocations: 160 bytes) 0.118702 seconds (4 allocations: 160 bytes)"><pre class="notranslate"><code class="notranslate">~/.j/v/BGZFStreams (master|✚1…) $ julia-dev access.jl mysum_int 0.022742 seconds (152 allocations: 9.028 KB) 0.020606 seconds (4 allocations: 160 bytes) 0.023985 seconds (4 allocations: 160 bytes) mysum_uint 0.118161 seconds (4 allocations: 160 bytes) 0.116512 seconds (4 allocations: 160 bytes) 0.118702 seconds (4 allocations: 160 bytes) </code></pre></div> <p dir="auto">I don't know the internal, but I guess an index value is converted to <code class="notranslate">Int</code> before accessing and inexact check imposes the cost on it. <code class="notranslate">data[Int(i)]</code> results in the slowdown at the same level but <code class="notranslate">data[reinterpret(Int, i)]</code> doesn't show any slowdown.</p> <hr> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 0.5.0-dev+4934 Commit 1a1a9a6* (2016-06-25 02:49 UTC) Platform Info: System: Darwin (x86_64-apple-darwin14.5.0) CPU: Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.7.1 (ORCJIT, haswell) "><pre class="notranslate"><code class="notranslate">julia&gt; versioninfo() Julia Version 0.5.0-dev+4934 Commit 1a1a9a6* (2016-06-25 02:49 UTC) Platform Info: System: Darwin (x86_64-apple-darwin14.5.0) CPU: Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.7.1 (ORCJIT, haswell) </code></pre></div>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; @which [2 3] .+ [1 2] ERROR: UndefVarError: .+ not defined"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">@which</span> [<span class="pl-c1">2</span> <span class="pl-c1">3</span>] <span class="pl-k">.+</span> [<span class="pl-c1">1</span> <span class="pl-c1">2</span>] ERROR<span class="pl-k">:</span> UndefVarError<span class="pl-k">:</span> <span class="pl-k">.+</span> not defined</pre></div> <p dir="auto">My intuition is something like <code class="notranslate">a .+ b</code> gets changed to <code class="notranslate">broadcasted_+(a, b)</code>, and was hoping it would return something like<br> <code class="notranslate">broadcasted_+(a::Array{Int64}...)</code><br> but now I see it wouldn’t make sense.</p> <p dir="auto">The error message could be made to say something like<br> <code class="notranslate">Did you mean '@which broadcast(+, a, b)'?</code></p>
0
<p dir="auto">This kind of code:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::marker::PhantomData; pub trait Routing&lt;I&gt; { type Output; fn resolve(&amp;self, input: I); } pub trait ToRouting { type Input; type Routing = Routing&lt;Self::Input&gt;; fn to_routing(self) -&gt; Self::Routing; } pub struct Mount&lt;I, R: Routing&lt;I&gt;&gt; { action: R, _marker: PhantomData&lt;I&gt;, } impl&lt;I, R: Routing&lt;I&gt;&gt; Mount&lt;I, R&gt; { pub fn create&lt;T: ToRouting&lt;Routing=R&gt;&gt;(mount: &amp;str, input: T) { input.to_routing(); } } fn main() { }"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>marker<span class="pl-kos">::</span><span class="pl-v">PhantomData</span><span class="pl-kos">;</span> <span class="pl-k">pub</span> <span class="pl-k">trait</span> <span class="pl-smi">Routing</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Output</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">input</span><span class="pl-kos">:</span> <span class="pl-smi">I</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">trait</span> <span class="pl-smi">ToRouting</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Input</span><span class="pl-kos">;</span> <span class="pl-k">type</span> <span class="pl-smi">Routing</span> = <span class="pl-smi">Routing</span><span class="pl-kos">&lt;</span><span class="pl-smi">Self</span><span class="pl-kos">::</span><span class="pl-smi">Input</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">to_routing</span><span class="pl-kos">(</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Self</span><span class="pl-kos">::</span><span class="pl-smi">Routing</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">Mount</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">,</span> <span class="pl-smi">R</span><span class="pl-kos">:</span> <span class="pl-smi">Routing</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">action</span><span class="pl-kos">:</span> <span class="pl-smi">R</span><span class="pl-kos">,</span> <span class="pl-c1">_marker</span><span class="pl-kos">:</span> <span class="pl-smi">PhantomData</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">,</span> <span class="pl-smi">R</span><span class="pl-kos">:</span> <span class="pl-smi">Routing</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Mount</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">,</span> <span class="pl-smi">R</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">create</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">ToRouting</span><span class="pl-kos">&lt;</span><span class="pl-smi">Routing</span>=<span class="pl-smi">R</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">mount</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">str</span><span class="pl-kos">,</span> <span class="pl-s1">input</span><span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> input<span class="pl-kos">.</span><span class="pl-en">to_routing</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Produces this output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefSelfTy(Some(DefId { krate: 0, node: 17 }), None), last_private: LastMod(AllPublic), depth: 1 }', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/librustc/middle/def.rs:80 stack backtrace: 1: 0x7fd5f5c01029 - sys::backtrace::write::hf53a0a0304290fee0Yr 2: 0x7fd5f5c08cf6 - panicking::on_panic::h60c28f18db36901f8lw 3: 0x7fd5f5bcc132 - rt::unwind::begin_unwind_inner::h5d1eccd17bdb1225i1v 4: 0x7fd5f5bccddc - rt::unwind::begin_unwind_fmt::hb401ae9bbc90d7afWZv 5: 0x7fd5f3a45c76 - middle::def::PathResolution::full_def::h1064d7767cb70c52vZl 6: 0x7fd5f5075e1e - PrivacyVisitor&lt;'a, 'tcx&gt;::check_path::hc1d907c1eeb131a2X4a 7: 0x7fd5f5076ea7 - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_path::h6d61d703c953fd3cctb 8: 0x7fd5f5076fbf - visit::walk_path::h11482984534192114005 9: 0x7fd5f5076d4f - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h869cd287456a54ebxdb 10: 0x7fd5f507d7cb - check_crate::h8a5c09d7eb2db25cEVb 11: 0x7fd5f6141d63 - driver::phase_3_run_analysis_passes::h28f3c6bab4d32090nGa 12: 0x7fd5f6122e05 - driver::compile_input::h5b445b50b3e18d59Qba 13: 0x7fd5f61e34e1 - run_compiler::h96f97d4eb21ecd2cz4b 14: 0x7fd5f61e1132 - boxed::F.FnBox&lt;A&gt;::call_box::h9787258653706413210 15: 0x7fd5f61e0669 - rt::unwind::try::try_fn::h11878141054803929988 16: 0x7fd5f5c7b518 - rust_try_inner 17: 0x7fd5f5c7b505 - rust_try 18: 0x7fd5f61e0918 - boxed::F.FnBox&lt;A&gt;::call_box::h8845320335913257549 19: 0x7fd5f5c07be1 - sys::thread::create::thread_start::ha7b08762db72e408Zkv 20: 0x7fd5f04a1181 - start_thread 21: 0x7fd5f585247c - __clone 22: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefSelfTy(Some(DefId { krate: 0, node: 17 }), None), last_private: LastMod(AllPublic), depth: 1 }', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/librustc/middle/def.rs:80 stack backtrace: 1: 0x7fd5f5c01029 - sys::backtrace::write::hf53a0a0304290fee0Yr 2: 0x7fd5f5c08cf6 - panicking::on_panic::h60c28f18db36901f8lw 3: 0x7fd5f5bcc132 - rt::unwind::begin_unwind_inner::h5d1eccd17bdb1225i1v 4: 0x7fd5f5bccddc - rt::unwind::begin_unwind_fmt::hb401ae9bbc90d7afWZv 5: 0x7fd5f3a45c76 - middle::def::PathResolution::full_def::h1064d7767cb70c52vZl 6: 0x7fd5f5075e1e - PrivacyVisitor&lt;'a, 'tcx&gt;::check_path::hc1d907c1eeb131a2X4a 7: 0x7fd5f5076ea7 - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_path::h6d61d703c953fd3cctb 8: 0x7fd5f5076fbf - visit::walk_path::h11482984534192114005 9: 0x7fd5f5076d4f - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h869cd287456a54ebxdb 10: 0x7fd5f507d7cb - check_crate::h8a5c09d7eb2db25cEVb 11: 0x7fd5f6141d63 - driver::phase_3_run_analysis_passes::h28f3c6bab4d32090nGa 12: 0x7fd5f6122e05 - driver::compile_input::h5b445b50b3e18d59Qba 13: 0x7fd5f61e34e1 - run_compiler::h96f97d4eb21ecd2cz4b 14: 0x7fd5f61e1132 - boxed::F.FnBox&lt;A&gt;::call_box::h9787258653706413210 15: 0x7fd5f61e0669 - rt::unwind::try::try_fn::h11878141054803929988 16: 0x7fd5f5c7b518 - rust_try_inner 17: 0x7fd5f5c7b505 - rust_try 18: 0x7fd5f61e0918 - boxed::F.FnBox&lt;A&gt;::call_box::h8845320335913257549 19: 0x7fd5f5c07be1 - sys::thread::create::thread_start::ha7b08762db72e408Zkv 20: 0x7fd5f04a1181 - start_thread 21: 0x7fd5f585247c - __clone 22: 0x0 - &lt;unknown&gt; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 1.0.0-beta.3 (5241bf9c3 2015-04-25) (built 2015-04-25)"><pre class="notranslate"><code class="notranslate">rustc 1.0.0-beta.3 (5241bf9c3 2015-04-25) (built 2015-04-25) </code></pre></div> <p dir="auto">Also reproducible on beta.4, nightly, windows/linux.</p>
<p dir="auto">Associated types defaults ( <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="50741773" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19476" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19476/hovercard" href="https://github.com/rust-lang/rust/issues/19476">#19476</a> ) cause at least two different ICE with rustc 1.0.0-nightly (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/b4c965ee803a4521d8b4575f634e036f93e408f3/hovercard" href="https://github.com/rust-lang/rust/commit/b4c965ee803a4521d8b4575f634e036f93e408f3"><tt>b4c965e</tt></a> 2015-03-02) (built 2015-03-03)</p> <p dir="auto">Case 1 : building :</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Foo { type T; } trait Bar { type Foo: Foo; type FooT = &lt;&lt;Self as Bar&gt;::Foo as Foo&gt;::T; }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">trait</span> <span class="pl-smi">Bar</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Foo</span><span class="pl-kos">:</span> <span class="pl-smi">Foo</span><span class="pl-kos">;</span> <span class="pl-k">type</span> <span class="pl-smi">FooT</span> = &lt;&lt;<span class="pl-smi">Self</span> <span class="pl-k">as</span> <span class="pl-smi">Bar</span>&gt;<span class="pl-kos">::</span><span class="pl-smi">Foo</span> <span class="pl-k">as</span> <span class="pl-smi">Foo</span>&gt;<span class="pl-kos">::</span><span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Case 2 : ICE</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Foo { type T; } trait Bar { type Foo: Foo; type FooT = &lt;&lt;Self&gt;::Foo&gt;::T; }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">trait</span> <span class="pl-smi">Bar</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Foo</span><span class="pl-kos">:</span> <span class="pl-smi">Foo</span><span class="pl-kos">;</span> <span class="pl-k">type</span> <span class="pl-smi">FooT</span> = &lt;&lt;<span class="pl-smi">Self</span>&gt;<span class="pl-kos">::</span><span class="pl-smi">Foo</span>&gt;<span class="pl-kos">::</span><span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">backtrace :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 1: 0x7f9849be3baf - sys::backtrace::write::hbe65ff4402631268QyA 2: 0x7f9849c0c6e2 - panicking::on_panic::h245e35885d5e01ccFDJ 3: 0x7f9849b4743a - rt::unwind::begin_unwind_inner::he6d56a943f3050638jJ 4: 0x7f9849b47b24 - rt::unwind::begin_unwind_fmt::h334fac4699ed6f75LiJ 5: 0x7f9849c0c267 - rust_begin_unwind 6: 0x7f9849c55cf4 - panicking::panic_fmt::hfac991238dca4c38b9r 7: 0x7f9848fc8531 - PrivacyVisitor&lt;'a, 'tcx&gt;::check_path::h14d56d7374e51ab607a 8: 0x7f9848fc957b - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_path::h1a3768654016f45e7vb 9: 0x7f9848fc981e - visit::walk_ty::h8843244089880601813 10: 0x7f9848fc93a1 - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h8973ade95546b892xgb 11: 0x7f9848fd046b - check_crate::hbba214d62d5303eexXb 12: 0x7f984a26c390 - driver::phase_3_run_analysis_passes::h1b4e3b2c9313b117xFa 13: 0x7f984a251301 - driver::compile_input::hc62aeb837327f1f4Iba 14: 0x7f984a31bd2e - run_compiler::h978681e22b0d6976F5b 15: 0x7f984a3198dc - thunk::F.Invoke&lt;A, R&gt;::invoke::h10120836201339486783 16: 0x7f984a318630 - rt::unwind::try::try_fn::h11016953016221458849 17: 0x7f9849c78028 - rust_try_inner 18: 0x7f9849c78015 - rust_try 19: 0x7f984a318d1c - thunk::F.Invoke&lt;A, R&gt;::invoke::h13067427317151836004 20: 0x7f9849bf8235 - sys::thread::thread_start::h106a33ed9d873acaj5E 21: 0x7f9843931313 - start_thread 22: 0x7f98497ce24c - clone 23: 0xffffffffffffffff - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate"> 1: 0x7f9849be3baf - sys::backtrace::write::hbe65ff4402631268QyA 2: 0x7f9849c0c6e2 - panicking::on_panic::h245e35885d5e01ccFDJ 3: 0x7f9849b4743a - rt::unwind::begin_unwind_inner::he6d56a943f3050638jJ 4: 0x7f9849b47b24 - rt::unwind::begin_unwind_fmt::h334fac4699ed6f75LiJ 5: 0x7f9849c0c267 - rust_begin_unwind 6: 0x7f9849c55cf4 - panicking::panic_fmt::hfac991238dca4c38b9r 7: 0x7f9848fc8531 - PrivacyVisitor&lt;'a, 'tcx&gt;::check_path::h14d56d7374e51ab607a 8: 0x7f9848fc957b - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_path::h1a3768654016f45e7vb 9: 0x7f9848fc981e - visit::walk_ty::h8843244089880601813 10: 0x7f9848fc93a1 - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h8973ade95546b892xgb 11: 0x7f9848fd046b - check_crate::hbba214d62d5303eexXb 12: 0x7f984a26c390 - driver::phase_3_run_analysis_passes::h1b4e3b2c9313b117xFa 13: 0x7f984a251301 - driver::compile_input::hc62aeb837327f1f4Iba 14: 0x7f984a31bd2e - run_compiler::h978681e22b0d6976F5b 15: 0x7f984a3198dc - thunk::F.Invoke&lt;A, R&gt;::invoke::h10120836201339486783 16: 0x7f984a318630 - rt::unwind::try::try_fn::h11016953016221458849 17: 0x7f9849c78028 - rust_try_inner 18: 0x7f9849c78015 - rust_try 19: 0x7f984a318d1c - thunk::F.Invoke&lt;A, R&gt;::invoke::h13067427317151836004 20: 0x7f9849bf8235 - sys::thread::thread_start::h106a33ed9d873acaj5E 21: 0x7f9843931313 - start_thread 22: 0x7f98497ce24c - clone 23: 0xffffffffffffffff - &lt;unknown&gt; </code></pre></div> <p dir="auto">Case 3 : ICE</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Foo { type T; } trait Bar { type Foo: Foo; type FooT = Self::Foo::T; }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">trait</span> <span class="pl-smi">Bar</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Foo</span><span class="pl-kos">:</span> <span class="pl-smi">Foo</span><span class="pl-kos">;</span> <span class="pl-k">type</span> <span class="pl-smi">FooT</span> = <span class="pl-smi">Self</span><span class="pl-kos">::</span><span class="pl-smi">Foo</span><span class="pl-kos">::</span><span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">backtrace :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stack backtrace: 1: 0x7f8951506baf - sys::backtrace::write::hbe65ff4402631268QyA 2: 0x7f895152f6e2 - panicking::on_panic::h245e35885d5e01ccFDJ 3: 0x7f895146a43a - rt::unwind::begin_unwind_inner::he6d56a943f3050638jJ 4: 0x7f895146ab24 - rt::unwind::begin_unwind_fmt::h334fac4699ed6f75LiJ 5: 0x7f894f112ae6 - middle::def::PathResolution::full_def::h4c8aebcfff75b091YPk 6: 0x7f89508eb3de - PrivacyVisitor&lt;'a, 'tcx&gt;::check_path::h14d56d7374e51ab607a 7: 0x7f89508ec57b - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_path::h1a3768654016f45e7vb 8: 0x7f89508ec3a1 - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h8973ade95546b892xgb 9: 0x7f89508f346b - check_crate::hbba214d62d5303eexXb 10: 0x7f8951b8f390 - driver::phase_3_run_analysis_passes::h1b4e3b2c9313b117xFa 11: 0x7f8951b74301 - driver::compile_input::hc62aeb837327f1f4Iba 12: 0x7f8951c3ed2e - run_compiler::h978681e22b0d6976F5b 13: 0x7f8951c3c8dc - thunk::F.Invoke&lt;A, R&gt;::invoke::h10120836201339486783 14: 0x7f8951c3b630 - rt::unwind::try::try_fn::h11016953016221458849 15: 0x7f895159b028 - rust_try_inner 16: 0x7f895159b015 - rust_try 17: 0x7f8951c3bd1c - thunk::F.Invoke&lt;A, R&gt;::invoke::h13067427317151836004 18: 0x7f895151b235 - sys::thread::thread_start::h106a33ed9d873acaj5E 19: 0x7f894b254313 - start_thread 20: 0x7f89510f124c - clone 21: 0xffffffffffffffff - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">stack backtrace: 1: 0x7f8951506baf - sys::backtrace::write::hbe65ff4402631268QyA 2: 0x7f895152f6e2 - panicking::on_panic::h245e35885d5e01ccFDJ 3: 0x7f895146a43a - rt::unwind::begin_unwind_inner::he6d56a943f3050638jJ 4: 0x7f895146ab24 - rt::unwind::begin_unwind_fmt::h334fac4699ed6f75LiJ 5: 0x7f894f112ae6 - middle::def::PathResolution::full_def::h4c8aebcfff75b091YPk 6: 0x7f89508eb3de - PrivacyVisitor&lt;'a, 'tcx&gt;::check_path::h14d56d7374e51ab607a 7: 0x7f89508ec57b - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_path::h1a3768654016f45e7vb 8: 0x7f89508ec3a1 - PrivacyVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h8973ade95546b892xgb 9: 0x7f89508f346b - check_crate::hbba214d62d5303eexXb 10: 0x7f8951b8f390 - driver::phase_3_run_analysis_passes::h1b4e3b2c9313b117xFa 11: 0x7f8951b74301 - driver::compile_input::hc62aeb837327f1f4Iba 12: 0x7f8951c3ed2e - run_compiler::h978681e22b0d6976F5b 13: 0x7f8951c3c8dc - thunk::F.Invoke&lt;A, R&gt;::invoke::h10120836201339486783 14: 0x7f8951c3b630 - rt::unwind::try::try_fn::h11016953016221458849 15: 0x7f895159b028 - rust_try_inner 16: 0x7f895159b015 - rust_try 17: 0x7f8951c3bd1c - thunk::F.Invoke&lt;A, R&gt;::invoke::h13067427317151836004 18: 0x7f895151b235 - sys::thread::thread_start::h106a33ed9d873acaj5E 19: 0x7f894b254313 - start_thread 20: 0x7f89510f124c - clone 21: 0xffffffffffffffff - &lt;unknown&gt; </code></pre></div>
1
<p dir="auto">Atom 0.123.0 on Ubuntu/Linux 14.04 (Unity) -- enhancement</p> <p dir="auto">The menu control for a setting like Toggle Soft Wrap should have a visible status-check for On/Off, e.g., a button-dot or a checkmark, beside it in the menu (View for this one), so the user can tell at a glance what that features current setting is...</p> <p dir="auto">Soft Wrap should <em>not</em> be a global editor setting, but should be applied on a syntax/file-type basis. For example, I'd (likely) want soft wrap set On always for plain text files (e.g., *.txt), but always Off for Ruby code.</p>
<p dir="auto">A feature I love about ST2 and iA Writer, which I'm missing in Atom, is when you quit the app with open windows (including unsaved documents), they all appear again when you reopen.</p> <p dir="auto">This has saved me countless times in my workflow to handle having to do a system restart for software update, etc and not have to take time to save all my unsaved docs, etc.</p> <p dir="auto">It's also nice because I generally have five or six open projects that I just keep minimized in the editor for ease of access. It would be great to have such a feature in Atom.</p>
0
<p dir="auto">I have a pipeline object with two steps, StandardScaler() and ElasticNet(). When I try to access the feature_names_in_ attribute of the trained ElasticNet(), I am getting an error.</p> <p dir="auto">This is how I'm fitting the pipeline (no errors)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pipe = Pipeline([ ('scale', StandardScaler()), ('estimator', ElasticNet())]) pipe.fit(X, y)"><pre class="notranslate"><code class="notranslate">pipe = Pipeline([ ('scale', StandardScaler()), ('estimator', ElasticNet())]) pipe.fit(X, y) </code></pre></div> <p dir="auto">This is how I'm trying to access the attributes.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="model_coef = pipe.named_steps['estimator'].coef_ model_feature_names = pipe.named_steps['estimator'].feature_names_in_"><pre class="notranslate"><code class="notranslate">model_coef = pipe.named_steps['estimator'].coef_ model_feature_names = pipe.named_steps['estimator'].feature_names_in_ </code></pre></div> <p dir="auto">This is the error message.</p> <hr> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="AttributeError Traceback (most recent call last) /tmp/ipykernel_32626/1722639289.py in &lt;module&gt; 1 model_coef = pipe.named_steps['estimator'].coef_ ----&gt; 2 model_feature_names = pipe.named_steps['estimator'].feature_names_in_ AttributeError: 'ElasticNet' object has no attribute 'feature_names_in_'"><pre class="notranslate"><code class="notranslate">AttributeError Traceback (most recent call last) /tmp/ipykernel_32626/1722639289.py in &lt;module&gt; 1 model_coef = pipe.named_steps['estimator'].coef_ ----&gt; 2 model_feature_names = pipe.named_steps['estimator'].feature_names_in_ AttributeError: 'ElasticNet' object has no attribute 'feature_names_in_' </code></pre></div> <p dir="auto">As you can see, accessing the coef_ attribute works just fine.</p>
<h1 dir="auto"></h1> <p dir="auto">ERROR: sklearn.tests.test_common.test_transformer_n_iter('CCA', CCA(copy=True, m</p> <h2 dir="auto">ax_iter=500, n_components=2, scale=True, tol=1e-06))</h2> <p dir="auto">Traceback (most recent call last):<br> File "C:\Python27\lib\site-packages\nose\case.py", line 197, in runTest<br> self.test(*self.arg)<br> File "C:\Python27\lib\site-packages\sklearn\utils\estimator_checks.py", line 1<br> 112, in check_transformer_n_iter<br> estimator.fit(X, y_)<br> File "C:\Python27\lib\site-packages\sklearn\cross_decomposition\pls_.py", line<br> 329, in fit<br> linalg.pinv(np.dot(self.x_loadings_.T, self.x_weights_)))<br> File "C:\Python27\lib\site-packages\scipy\linalg\basic.py", line 600, in pinv<br> a = np.asarray_chkfinite(a)<br> File "C:\Python27\lib\site-packages\numpy\lib\function_base.py", line 595, in<br> asarray_chkfinite<br> "array must not contain infs or NaNs")<br> ValueError: array must not contain infs or NaNs</p> <hr> <p dir="auto">Ran 4063 tests in 126.356s</p> <p dir="auto">FAILED (SKIP=25, errors=1)</p>
0
<p dir="auto">Trying to use pack_padded_sequence through a torch.jit.ScriptModule reports the following prototype which seems false ? pack_padded_sequence's prototype is (Tensor, Tensor, bool, bool).</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="RuntimeError: for operator (Tensor 0, Tensor 1, Tensor 2, Tensor 3) -&gt; Tensor: argument 0 not provided."><pre class="notranslate"><span class="pl-v">RuntimeError</span>: <span class="pl-s1">for</span> <span class="pl-en">operator</span> (<span class="pl-v">Tensor</span> <span class="pl-c1">0</span>, <span class="pl-v">Tensor</span> <span class="pl-c1">1</span>, <span class="pl-v">Tensor</span> <span class="pl-c1">2</span>, <span class="pl-v">Tensor</span> <span class="pl-c1">3</span>) <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-v">Tensor</span>: <span class="pl-s1">argument</span> <span class="pl-c1">0</span> <span class="pl-c1">not</span> <span class="pl-s1">provided</span>.</pre></div> <p dir="auto">When trying to use the following module:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from typing import List import torch from torch.jit import ScriptModule, script_method, annotate from torch.nn import Dropout, ModuleList, ParameterList, Parameter, GRU from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence __author__ = 'Morgan Funtowicz' class StackedBiRNN(ScriptModule): &quot;&quot;&quot; Stacked Bi-directional RNNs. Differs from standard PyTorch library in that it has the option to save and concat the hidden states between layers. (i.e. the output hidden size for each sequence input is num_layers * hidden_size). &quot;&quot;&quot; __constants__ = ['padding', 'dropout_rate', 'num_layers', 'concat_layers', '_rnns'] def __init__(self, input_size, hidden_size, num_layers, dropout_p=0., rnn_type=GRU, concat=False, padding=False): super(StackedBiRNN, self).__init__() self.padding = padding self.dropout_rate = dropout_p self.num_layers = num_layers self.concat_layers = concat rnns = [] for i in range(num_layers): input_size = input_size if i == 0 else 2 * hidden_size rnns.append(rnn_type(input_size, hidden_size, batch_first=True, bidirectional=True)) self._rnns = ModuleList(rnns) self._dropout = Dropout(dropout_p) @property def hidden_size(self): return self._rnns[0].hidden_size @script_method def forward(self, x: torch.Tensor, lengths: torch.Tensor): # Buffer storing RNN layers output outputs = annotate(List[torch.Tensor], [x]) # Iterate through each RNN layer for rnn in self._rnns: # Retrieve the latest output (output from previous layer) rnn_input = outputs[-1] # Apply dropout to input if self.dropout_rate &gt; 0: rnn_input = self._dropout(rnn_input) rnn_input = pack_padded_sequence(input=rnn_input, lengths=lengths, batch_first=True, enforce_sorted=False) # Go through the RNN and get output rnn.flatten_parameters() out = rnn(rnn_input)[0] outputs += [pad_packed_sequence(sequence=out, batch_first=True)[0]] # Concat hidden layers or take final if self.concat_layers: return torch.cat(outputs[1:], dim=-1) else: return outputs[-1]"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">List</span> <span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span>.<span class="pl-s1">jit</span> <span class="pl-k">import</span> <span class="pl-v">ScriptModule</span>, <span class="pl-s1">script_method</span>, <span class="pl-s1">annotate</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span> <span class="pl-k">import</span> <span class="pl-v">Dropout</span>, <span class="pl-v">ModuleList</span>, <span class="pl-v">ParameterList</span>, <span class="pl-v">Parameter</span>, <span class="pl-v">GRU</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">rnn</span> <span class="pl-k">import</span> <span class="pl-s1">pack_padded_sequence</span>, <span class="pl-s1">pad_packed_sequence</span> <span class="pl-s1">__author__</span> <span class="pl-c1">=</span> <span class="pl-s">'Morgan Funtowicz'</span> <span class="pl-k">class</span> <span class="pl-v">StackedBiRNN</span>(<span class="pl-v">ScriptModule</span>): <span class="pl-s">"""</span> <span class="pl-s"> Stacked Bi-directional RNNs.</span> <span class="pl-s"> Differs from standard PyTorch library in that it has the option to save</span> <span class="pl-s"> and concat the hidden states between layers. (i.e. the output hidden size</span> <span class="pl-s"> for each sequence input is num_layers * hidden_size).</span> <span class="pl-s"> """</span> <span class="pl-s1">__constants__</span> <span class="pl-c1">=</span> [<span class="pl-s">'padding'</span>, <span class="pl-s">'dropout_rate'</span>, <span class="pl-s">'num_layers'</span>, <span class="pl-s">'concat_layers'</span>, <span class="pl-s">'_rnns'</span>] <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">input_size</span>, <span class="pl-s1">hidden_size</span>, <span class="pl-s1">num_layers</span>, <span class="pl-s1">dropout_p</span><span class="pl-c1">=</span><span class="pl-c1">0.</span>, <span class="pl-s1">rnn_type</span><span class="pl-c1">=</span><span class="pl-v">GRU</span>, <span class="pl-s1">concat</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-c1">False</span>): <span class="pl-en">super</span>(<span class="pl-v">StackedBiRNN</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>() <span class="pl-s1">self</span>.<span class="pl-s1">padding</span> <span class="pl-c1">=</span> <span class="pl-s1">padding</span> <span class="pl-s1">self</span>.<span class="pl-s1">dropout_rate</span> <span class="pl-c1">=</span> <span class="pl-s1">dropout_p</span> <span class="pl-s1">self</span>.<span class="pl-s1">num_layers</span> <span class="pl-c1">=</span> <span class="pl-s1">num_layers</span> <span class="pl-s1">self</span>.<span class="pl-s1">concat_layers</span> <span class="pl-c1">=</span> <span class="pl-s1">concat</span> <span class="pl-s1">rnns</span> <span class="pl-c1">=</span> [] <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">num_layers</span>): <span class="pl-s1">input_size</span> <span class="pl-c1">=</span> <span class="pl-s1">input_size</span> <span class="pl-k">if</span> <span class="pl-s1">i</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span> <span class="pl-k">else</span> <span class="pl-c1">2</span> <span class="pl-c1">*</span> <span class="pl-s1">hidden_size</span> <span class="pl-s1">rnns</span>.<span class="pl-en">append</span>(<span class="pl-en">rnn_type</span>(<span class="pl-s1">input_size</span>, <span class="pl-s1">hidden_size</span>, <span class="pl-s1">batch_first</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">bidirectional</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)) <span class="pl-s1">self</span>.<span class="pl-s1">_rnns</span> <span class="pl-c1">=</span> <span class="pl-v">ModuleList</span>(<span class="pl-s1">rnns</span>) <span class="pl-s1">self</span>.<span class="pl-s1">_dropout</span> <span class="pl-c1">=</span> <span class="pl-v">Dropout</span>(<span class="pl-s1">dropout_p</span>) <span class="pl-en">@<span class="pl-s1">property</span></span> <span class="pl-k">def</span> <span class="pl-en">hidden_size</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">_rnns</span>[<span class="pl-c1">0</span>].<span class="pl-s1">hidden_size</span> <span class="pl-en">@<span class="pl-s1">script_method</span></span> <span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">x</span>: <span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>, <span class="pl-s1">lengths</span>: <span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>): <span class="pl-c"># Buffer storing RNN layers output</span> <span class="pl-s1">outputs</span> <span class="pl-c1">=</span> <span class="pl-en">annotate</span>(<span class="pl-v">List</span>[<span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>], [<span class="pl-s1">x</span>]) <span class="pl-c"># Iterate through each RNN layer</span> <span class="pl-k">for</span> <span class="pl-s1">rnn</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">_rnns</span>: <span class="pl-c"># Retrieve the latest output (output from previous layer)</span> <span class="pl-s1">rnn_input</span> <span class="pl-c1">=</span> <span class="pl-s1">outputs</span>[<span class="pl-c1">-</span><span class="pl-c1">1</span>] <span class="pl-c"># Apply dropout to input</span> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">dropout_rate</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">0</span>: <span class="pl-s1">rnn_input</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_dropout</span>(<span class="pl-s1">rnn_input</span>) <span class="pl-s1">rnn_input</span> <span class="pl-c1">=</span> <span class="pl-en">pack_padded_sequence</span>(<span class="pl-s1">input</span><span class="pl-c1">=</span><span class="pl-s1">rnn_input</span>, <span class="pl-s1">lengths</span><span class="pl-c1">=</span><span class="pl-s1">lengths</span>, <span class="pl-s1">batch_first</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">enforce_sorted</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-c"># Go through the RNN and get output</span> <span class="pl-s1">rnn</span>.<span class="pl-en">flatten_parameters</span>() <span class="pl-s1">out</span> <span class="pl-c1">=</span> <span class="pl-en">rnn</span>(<span class="pl-s1">rnn_input</span>)[<span class="pl-c1">0</span>] <span class="pl-s1">outputs</span> <span class="pl-c1">+=</span> [<span class="pl-en">pad_packed_sequence</span>(<span class="pl-s1">sequence</span><span class="pl-c1">=</span><span class="pl-s1">out</span>, <span class="pl-s1">batch_first</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)[<span class="pl-c1">0</span>]] <span class="pl-c"># Concat hidden layers or take final</span> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">concat_layers</span>: <span class="pl-k">return</span> <span class="pl-s1">torch</span>.<span class="pl-en">cat</span>(<span class="pl-s1">outputs</span>[<span class="pl-c1">1</span>:], <span class="pl-s1">dim</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">1</span>) <span class="pl-k">else</span>: <span class="pl-k">return</span> <span class="pl-s1">outputs</span>[<span class="pl-c1">-</span><span class="pl-c1">1</span>]</pre></div>
<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">Add TorchScript support for <code class="notranslate">torch.nn.utils.rnn.pack_padded_sequence()</code> and <code class="notranslate">torch.nn.utils.rnn.pad_packed_sequence()</code>.</p> <h2 dir="auto">Motivation</h2> <p dir="auto">Motivated by <a href="https://discuss.pytorch.org/t/torch-jit-script-for-torch-nn-utils-rnn-pack-padded-sequence/30668" rel="nofollow">https://discuss.pytorch.org/t/torch-jit-script-for-torch-nn-utils-rnn-pack-padded-sequence/30668</a>, this appears to be a desired feature given that tracing is usually not an option when these functions are used (for variable length sequences)</p> <h2 dir="auto">Pitch</h2> <p dir="auto">Right now, the following code:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from torch import nn import torch.jit class MyLSTM(torch.jit.ScriptModule): def __init__(self): super(MyLSTM, self).__init__() self.rnn = nn.LSTM(input_size=300, hidden_size=32, batch_first=True, num_layers=1, bidirectional=False) @torch.jit.script_method def forward(self, x_in, x_lengths): max_length = x_lengths[0] x_in_shortened = x_in[:,:max_length] x_packed = nn.utils.rnn.pack_padded_sequence(x_in_shortened, x_lengths, True, # batch_first True # enforce_sorted ) lstm_outputs = self.rnn(x_packed) sequence_outputs = nn.utils.rnn.pad_packed_sequence(lstm_outputs[0], batch_first=True, padding_value=0.0, total_length=max_length) lstm_out = sequence_outputs[0] out_seq_length = sequence_outputs[1] return lstm_out # Instantiation: my_lstm = MyLSTM()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">torch</span> <span class="pl-k">import</span> <span class="pl-s1">nn</span> <span class="pl-k">import</span> <span class="pl-s1">torch</span>.<span class="pl-s1">jit</span> <span class="pl-k">class</span> <span class="pl-v">MyLSTM</span>(<span class="pl-s1">torch</span>.<span class="pl-s1">jit</span>.<span class="pl-v">ScriptModule</span>): <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>): <span class="pl-en">super</span>(<span class="pl-v">MyLSTM</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>() <span class="pl-s1">self</span>.<span class="pl-s1">rnn</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">LSTM</span>(<span class="pl-s1">input_size</span><span class="pl-c1">=</span><span class="pl-c1">300</span>, <span class="pl-s1">hidden_size</span><span class="pl-c1">=</span><span class="pl-c1">32</span>, <span class="pl-s1">batch_first</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">num_layers</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">bidirectional</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-en">@<span class="pl-s1">torch</span>.<span class="pl-s1">jit</span>.<span class="pl-s1">script_method</span></span> <span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">x_in</span>, <span class="pl-s1">x_lengths</span>): <span class="pl-s1">max_length</span> <span class="pl-c1">=</span> <span class="pl-s1">x_lengths</span>[<span class="pl-c1">0</span>] <span class="pl-s1">x_in_shortened</span> <span class="pl-c1">=</span> <span class="pl-s1">x_in</span>[:,:<span class="pl-s1">max_length</span>] <span class="pl-s1">x_packed</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">rnn</span>.<span class="pl-en">pack_padded_sequence</span>(<span class="pl-s1">x_in_shortened</span>, <span class="pl-s1">x_lengths</span>, <span class="pl-c1">True</span>, <span class="pl-c"># batch_first</span> <span class="pl-c1">True</span> <span class="pl-c"># enforce_sorted</span> ) <span class="pl-s1">lstm_outputs</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">rnn</span>(<span class="pl-s1">x_packed</span>) <span class="pl-s1">sequence_outputs</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">rnn</span>.<span class="pl-en">pad_packed_sequence</span>(<span class="pl-s1">lstm_outputs</span>[<span class="pl-c1">0</span>], <span class="pl-s1">batch_first</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">padding_value</span><span class="pl-c1">=</span><span class="pl-c1">0.0</span>, <span class="pl-s1">total_length</span><span class="pl-c1">=</span><span class="pl-s1">max_length</span>) <span class="pl-s1">lstm_out</span> <span class="pl-c1">=</span> <span class="pl-s1">sequence_outputs</span>[<span class="pl-c1">0</span>] <span class="pl-s1">out_seq_length</span> <span class="pl-c1">=</span> <span class="pl-s1">sequence_outputs</span>[<span class="pl-c1">1</span>] <span class="pl-k">return</span> <span class="pl-s1">lstm_out</span> <span class="pl-c"># Instantiation:</span> <span class="pl-s1">my_lstm</span> <span class="pl-c1">=</span> <span class="pl-v">MyLSTM</span>()</pre></div> <p dir="auto">Fails with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for operator (Tensor 0, Tensor 1, Tensor 2, Tensor 3) -&gt; Tensor: expected a value of type Tensor for argument '2' but found bool @torch.jit.script_method def forward(self, x_in, x_lengths): max_length = x_lengths[0] x_in_shortened = x_in[:,:max_length] x_packed = nn.utils.rnn.pack_padded_sequence(x_in_shortened, x_lengths, True, # batch_first ~~~~ &lt;--- HERE True # enforce_sorted )"><pre class="notranslate"><code class="notranslate">for operator (Tensor 0, Tensor 1, Tensor 2, Tensor 3) -&gt; Tensor: expected a value of type Tensor for argument '2' but found bool @torch.jit.script_method def forward(self, x_in, x_lengths): max_length = x_lengths[0] x_in_shortened = x_in[:,:max_length] x_packed = nn.utils.rnn.pack_padded_sequence(x_in_shortened, x_lengths, True, # batch_first ~~~~ &lt;--- HERE True # enforce_sorted ) </code></pre></div> <p dir="auto">So it seems that it expects Tensors for the arguments <code class="notranslate">batch_first</code> and <code class="notranslate">enforce_sorted</code> instead of Python bools. Okay, if we change them to:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="x_packed = nn.utils.rnn.pack_padded_sequence(x_in_shortened, x_lengths, torch.ones(1).byte().squeeze(), # batch_first torch.ones(1).byte().squeeze() # enforce_sorted )"><pre class="notranslate"><span class="pl-s1">x_packed</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">rnn</span>.<span class="pl-en">pack_padded_sequence</span>(<span class="pl-s1">x_in_shortened</span>, <span class="pl-s1">x_lengths</span>, <span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">1</span>).<span class="pl-en">byte</span>().<span class="pl-en">squeeze</span>(), <span class="pl-c"># batch_first</span> <span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">1</span>).<span class="pl-en">byte</span>().<span class="pl-en">squeeze</span>() <span class="pl-c"># enforce_sorted</span> )</pre></div> <p dir="auto">Insantiation works, but it fails when the forward method is applied:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="my_lstm(torch.Tensor([[3,1,2,3,4]]), torch.Tensor([5]).long()) # Fails with: TypeError: _pack_padded_sequence(): argument 'batch_first' (position 3) must be bool, not Tensor"><pre class="notranslate"><code class="notranslate">my_lstm(torch.Tensor([[3,1,2,3,4]]), torch.Tensor([5]).long()) # Fails with: TypeError: _pack_padded_sequence(): argument 'batch_first' (position 3) must be bool, not Tensor </code></pre></div> <p dir="auto">So currently, either instantiation or forward pass is always going to fail. I believe that this is just argument parsing, and that the "hard" part of this issue is to actually make the functions compatible with TorchScript...</p> <p dir="auto">BTW Thank you for PyTorch overall. ¡It's awesome!</p>
1
<p dir="auto">Requests 2.2.1. Same thing happens in 1.2.3 (I upgraded from that).</p> <p dir="auto">I get this traceback:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 313, in _make_request httplib_response = conn.getresponse(buffering=True) TypeError: getresponse() got an unexpected keyword argument 'buffering' During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 480, in urlopen body=body, headers=headers) File &quot;/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 315, in _make_request httplib_response = conn.getresponse() File &quot;/usr/local/lib/python3.3/http/client.py&quot;, line 1147, in getresponse response.begin() File &quot;/usr/local/lib/python3.3/http/client.py&quot;, line 358, in begin version, status, reason = self._read_status() File &quot;/usr/local/lib/python3.3/http/client.py&quot;, line 328, in _read_status raise BadStatusLine(line) http.client.BadStatusLine: '' During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/usr/local/lib/python3.3/site-packages/requests/adapters.py&quot;, line 330, in send timeout=timeout File &quot;/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 530, in urlopen raise MaxRetryError(self, url, e) requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='heimdallr.jcea.es', port=443): Max retries exceeded with url: /PANICO (Caused by &lt;class 'http.client.BadStatusLine'&gt;: '') During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;./heimdallr.py&quot;, line 203, in &lt;module&gt; module.start() File &quot;__main__&quot;, line 59, in start File &quot;main&quot;, line 23, in start File &quot;panic_report&quot;, line 17, in envia_tb_pendiente File &quot;/usr/local/lib/python3.3/site-packages/requests/sessions.py&quot;, line 425, in post return self.request('POST', url, data=data, **kwargs) File &quot;auth_http&quot;, line 48, in request File &quot;/usr/local/lib/python3.3/site-packages/requests/sessions.py&quot;, line 383, in request resp = self.send(prep, **send_kwargs) File &quot;/usr/local/lib/python3.3/site-packages/requests/sessions.py&quot;, line 486, in send r = adapter.send(request, **kwargs) File &quot;/usr/local/lib/python3.3/site-packages/requests/adapters.py&quot;, line 378, in send raise ConnectionError(e) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='heimdallr.jcea.es', port=443): Max retries exceeded with url: /PANICO (Caused by &lt;class 'http.client.BadStatusLine'&gt;: '') Makefile:69: recipe for target 'run' failed make: *** [run] Error 1"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py", line 313, in _make_request httplib_response = conn.getresponse(buffering=True) TypeError: getresponse() got an unexpected keyword argument 'buffering' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py", line 480, in urlopen body=body, headers=headers) File "/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py", line 315, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.3/http/client.py", line 1147, in getresponse response.begin() File "/usr/local/lib/python3.3/http/client.py", line 358, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.3/http/client.py", line 328, in _read_status raise BadStatusLine(line) http.client.BadStatusLine: '' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.3/site-packages/requests/adapters.py", line 330, in send timeout=timeout File "/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py", line 530, in urlopen raise MaxRetryError(self, url, e) requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='heimdallr.jcea.es', port=443): Max retries exceeded with url: /PANICO (Caused by &lt;class 'http.client.BadStatusLine'&gt;: '') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "./heimdallr.py", line 203, in &lt;module&gt; module.start() File "__main__", line 59, in start File "main", line 23, in start File "panic_report", line 17, in envia_tb_pendiente File "/usr/local/lib/python3.3/site-packages/requests/sessions.py", line 425, in post return self.request('POST', url, data=data, **kwargs) File "auth_http", line 48, in request File "/usr/local/lib/python3.3/site-packages/requests/sessions.py", line 383, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.3/site-packages/requests/sessions.py", line 486, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.3/site-packages/requests/adapters.py", line 378, in send raise ConnectionError(e) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='heimdallr.jcea.es', port=443): Max retries exceeded with url: /PANICO (Caused by &lt;class 'http.client.BadStatusLine'&gt;: '') Makefile:69: recipe for target 'run' failed make: *** [run] Error 1 </code></pre></div>
<p dir="auto">I am unable to make a pull request at this time, but I think this should be added. The server will not understand the request if the content-type header's barrier= is not the same as the one generated by requests. At the very least there should be a warning.</p>
0
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { assert!([1i].len() &gt; -1); }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">assert</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">1</span>i<span class="pl-kos">]</span>.len<span class="pl-kos">(</span><span class="pl-kos">)</span> &gt; -<span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">This assertion incorrectly fails.</p>
<p dir="auto">The compiler should show a warning message when is used a negative number into a like-uint type</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let n: u8 = -1; println!(&quot;{}&quot;, n); // =&gt; 255"><pre class="notranslate"><span class="pl-k">let</span> n<span class="pl-kos">:</span> <span class="pl-smi">u8</span> = -<span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, n<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// =&gt; 255</span></pre></div>
1
<p dir="auto">See this handy gif:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/79215/12303205/e97ba5a8-b9dd-11e5-9ea0-2b852101ac42.gif"><img src="https://cloud.githubusercontent.com/assets/79215/12303205/e97ba5a8-b9dd-11e5-9ea0-2b852101ac42.gif" alt="visual-studio-fail" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">Here's a snippy snip of the last line of the developer console:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RangeError: Maximum call stack size exceeded: RangeError: Maximum call stack size exceeded at o (typescriptServices.js:10) at n (typescriptServices.js:10) at r (typescriptServices.js:10) at o (typescriptServices.js:10) at n (typescriptServices.js:10) at r (typescriptServices.js:10) at o (typescriptServices.js:10) at n (typescriptServices.js:10) at r (typescriptServices.js:10) at o (typescriptServices.js:10)e.doShow @ workbench.main.js:63 workbench.main.js:16 Main Thread sent to worker the following message:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19 workbench.main.js:16 Object {type: &quot;threadService&quot;, payload: Array[3]} workbench.main.js:16 And the worker replied with an error:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19 workbench.main.js:16 Object {stack: &quot;RangeError: Maximum call stack size exceeded↵ a…ript/common/js/importAndExportRewriter.js:4:3903)&quot;, message: &quot;RangeError: Maximum call stack size exceeded&quot;} workbench.main.js:91 RangeError: Maximum call stack size exceeded: RangeError: Maximum call stack size exceeded at importAndExportRewriter.js:4 at r (typescriptServices.js:10) at Object.o [as forEachChild] (typescriptServices.js:10) at e._visitNode (importAndExportRewriter.js:4) at e.visitBinaryExpression (importAndExportRewriter.js:4) at importAndExportRewriter.js:4 at r (typescriptServices.js:10) at Object.o [as forEachChild] (typescriptServices.js:10) at e._visitNode (importAndExportRewriter.js:4) at e.visitBinaryExpression (importAndExportRewriter.js:4)"><pre class="notranslate"><code class="notranslate">RangeError: Maximum call stack size exceeded: RangeError: Maximum call stack size exceeded at o (typescriptServices.js:10) at n (typescriptServices.js:10) at r (typescriptServices.js:10) at o (typescriptServices.js:10) at n (typescriptServices.js:10) at r (typescriptServices.js:10) at o (typescriptServices.js:10) at n (typescriptServices.js:10) at r (typescriptServices.js:10) at o (typescriptServices.js:10)e.doShow @ workbench.main.js:63 workbench.main.js:16 Main Thread sent to worker the following message:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19 workbench.main.js:16 Object {type: "threadService", payload: Array[3]} workbench.main.js:16 And the worker replied with an error:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19 workbench.main.js:16 Object {stack: "RangeError: Maximum call stack size exceeded↵ a…ript/common/js/importAndExportRewriter.js:4:3903)", message: "RangeError: Maximum call stack size exceeded"} workbench.main.js:91 RangeError: Maximum call stack size exceeded: RangeError: Maximum call stack size exceeded at importAndExportRewriter.js:4 at r (typescriptServices.js:10) at Object.o [as forEachChild] (typescriptServices.js:10) at e._visitNode (importAndExportRewriter.js:4) at e.visitBinaryExpression (importAndExportRewriter.js:4) at importAndExportRewriter.js:4 at r (typescriptServices.js:10) at Object.o [as forEachChild] (typescriptServices.js:10) at e._visitNode (importAndExportRewriter.js:4) at e.visitBinaryExpression (importAndExportRewriter.js:4) </code></pre></div> <p dir="auto">...?</p>
<p dir="auto">See GIF again:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/79215/12369339/64c18c28-bbaa-11e5-85ef-a1ba5dd59be8.gif"><img src="https://cloud.githubusercontent.com/assets/79215/12369339/64c18c28-bbaa-11e5-85ef-a1ba5dd59be8.gif" alt="vs-code-why" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">Literally none of the editor features work.</p> <p dir="auto">My <code class="notranslate">jsconfig.json</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;target&quot;: &quot;ES6&quot;, &quot;module&quot;: &quot;commonjs&quot; }, &quot;exclude&quot;: [ &quot;node_modules&quot; ] }"><pre class="notranslate"><code class="notranslate">{ "compilerOptions": { "target": "ES6", "module": "commonjs" }, "exclude": [ "node_modules" ] } </code></pre></div>
1
<p dir="auto">When you hit <code class="notranslate">t</code> while looking at a complicated tree, e.g. the gallery pull-to-refresh screen, the tool times out and quits, even though information is flowing.</p>
<p dir="auto">Run the gallery, start the bottom app bar demo, type 't' at the console.</p> <p dir="auto">After loads of output the app crashes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TimeoutException: Request to Dart VM Service timed out: ext.flutter.debugDumpRenderTree({isolateId: isolates/71568905})"><pre class="notranslate"><code class="notranslate">TimeoutException: Request to Dart VM Service timed out: ext.flutter.debugDumpRenderTree({isolateId: isolates/71568905}) </code></pre></div>
1
<h3 dir="auto">Version</h3> <p dir="auto">2.5.17</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codesandbox.io/s/nrpjvl3v0" rel="nofollow">https://codesandbox.io/s/nrpjvl3v0</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">If you look at the linked code sandbox, there is a simple directive being used on a normal component, a functional component using a render function, and a functional component using a template. I could not find a way to get the directive passed through in the functional template example. Essentially a similar approach to <code class="notranslate">v-bind="attrs"</code> and <code class="notranslate">v-on='listeners"</code> but for directives.</p> <p dir="auto">Is this currently possible? If not, would it be considered? Otherwise - in order to write functional template components, you would need to ensure they are never intended to be used with custom directives.</p> <p dir="auto">Our specific use case was that we have a base button component that is a functional template components, but it doesn't work with <a href="https://www.npmjs.com/package/vue2-touch-events" rel="nofollow">https://www.npmjs.com/package/vue2-touch-events</a></p> <h3 dir="auto">What is expected?</h3> <p dir="auto">A method through the functional template to proxy through directives.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">The custom directive cannot be applied to the functional template component.</p>
<h3 dir="auto">Version</h3> <p dir="auto">15.4.0</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codesandbox.io/s/7yxprmx12j" rel="nofollow">https://codesandbox.io/s/7yxprmx12j</a></p> <h3 dir="auto">Steps to reproduce</h3> <ul dir="auto"> <li>A component with <code class="notranslate">&lt;template functional&gt;</code></li> <li>A parent component including the previous component with v-show="false" directive</li> </ul> <h3 dir="auto">What is expected?</h3> <p dir="auto">Expected to hide the child component</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">The child component is still shown, no CSS style added on the component</p> <hr> <p dir="auto">I'm posting on vue-loader specifically because of this issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="327149821" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/8261" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/8261/hovercard" href="https://github.com/vuejs/vue/issues/8261">vuejs/vue#8261</a></p> <p dir="auto">Thanks for your work :)</p> <p dir="auto">Sidenote: a raw tag in a field of this bug report page (<code class="notranslate">&lt;xxx&gt;</code>), without using backquotes, breaks the preview.</p>
1
<p dir="auto">Hello Julia Dev Team,</p> <p dir="auto">please implement the ability to access the sourcecode of a function by typing in the<br> function name. R has this ability and it is incredibly helpfull to read good, performant code<br> and understand the system.<br> Article about the matter:<br> <a href="http://dorophone.blogspot.de/2011/07/duckspeak-vs-smalltalk.html" rel="nofollow">http://dorophone.blogspot.de/2011/07/duckspeak-vs-smalltalk.html</a></p> <p dir="auto">regards 0x75</p>
<p dir="auto">Julia has a lot of useful REPL things like <code class="notranslate">methods</code> and <code class="notranslate">help</code>.<br> However, I still end up needing to just look at the code to see what it's doing.<br> It would be cool to be able to do:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; methods(base) # methods for generic function base base(base::Integer,n::Integer,pad::Integer) at intfuncs.jl:290 base(symbols::Array{Uint8,N},n::Integer,p::Integer) at intfuncs.jl:291 base(base_or_symbols::Union(Integer,Array{Uint8,N}),n::Integer) at intfuncs.jl:292 julia&gt; implementation(base,1) base(base::Integer, n::Integer, pad::Integer) = _base(dig_syms,int(base),unsigned(abs(n)),pad,n&lt;0) julia&gt; implementation(base,3) base(base_or_symbols::Union(Integer,Array{Uint8}), n::Integer) = base(base_or_symbols, n, 1)"><pre class="notranslate"><code class="notranslate">julia&gt; methods(base) # methods for generic function base base(base::Integer,n::Integer,pad::Integer) at intfuncs.jl:290 base(symbols::Array{Uint8,N},n::Integer,p::Integer) at intfuncs.jl:291 base(base_or_symbols::Union(Integer,Array{Uint8,N}),n::Integer) at intfuncs.jl:292 julia&gt; implementation(base,1) base(base::Integer, n::Integer, pad::Integer) = _base(dig_syms,int(base),unsigned(abs(n)),pad,n&lt;0) julia&gt; implementation(base,3) base(base_or_symbols::Union(Integer,Array{Uint8}), n::Integer) = base(base_or_symbols, n, 1) </code></pre></div> <p dir="auto">It's kind of like the jump-to code stuff in some IDEs, but in the REPL, and only showing the one function.<br> This obviously has limitations, since you can't just scroll up and see the implementation of <code class="notranslate">_base</code> or search for the definition of <code class="notranslate">dig_syms</code> in that file, but it does let you see what the default values are.</p> <p dir="auto">You can already see the signature for <code class="notranslate">_base</code>, which makes the implementations of <code class="notranslate">base</code> more meaningful. (without needing to switch from the REPL to a text editor)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; methods(Base._base) # methods for generic function _base _base(symbols::Array{Uint8,N},b::Int32,x::Unsigned,pad::Int32,neg::Bool) at intfuncs.jl:278"><pre class="notranslate"><code class="notranslate">julia&gt; methods(Base._base) # methods for generic function _base _base(symbols::Array{Uint8,N},b::Int32,x::Unsigned,pad::Int32,neg::Bool) at intfuncs.jl:278 </code></pre></div> <p dir="auto">Considering that the line numbers/files are already included in the output of <code class="notranslate">methods</code>, it seems like it should be straightforward to grab the appropriate lines of code from the file.</p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="trait Trait { } fn function(t: &amp;mut Trait) { t as *mut Trait } fn main() { }"><pre class="notranslate"><code class="notranslate">trait Trait { } fn function(t: &amp;mut Trait) { t as *mut Trait } fn main() { } </code></pre></div> <p dir="auto">This ICEs with the following message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_BACKTRACE=1 rustc a.rs a.rs:4:5: 4:6 error: internal compiler error: expected object type a.rs:4 t as *mut Trait ^ note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' panicked at 'Box&lt;Any&gt;', /home/hein/git/rust/src/libsyntax/diagnostic.rs:116 stack backtrace: 1: 0x7fba24ef8d50 - rt::backtrace::imp::write::h62769dcaa7983ed8FNs 2: 0x7fba24efbdd0 - &lt;unknown&gt; 3: 0x7fba256a43e0 - unwind::begin_unwind_inner::h3fca55fd1ce1f347o9c 4: 0x7fba23e4f460 - &lt;unknown&gt; 5: 0x7fba23e4f3e0 - diagnostic::SpanHandler::span_bug::hea3a64b392293aeaDRF 6: 0x7fba25c49ad0 - driver::session::Session::span_bug::hb3878c8c794bf1dcHNC 7: 0x7fba25f4a260 - middle::typeck::check::vtable::check_object_cast::h7d7ee59c0ae09980HKN 8: 0x7fba25fb8090 - &lt;unknown&gt; 9: 0x7fba25fe62b0 - &lt;unknown&gt; 10: 0x7fba25fab4c0 - &lt;unknown&gt; 11: 0x7fba25fa7eb0 - &lt;unknown&gt; 12: 0x7fba25fa7bf0 - &lt;unknown&gt; 13: 0x7fba25fa3cc0 - middle::typeck::check::check_item::h22ee00fbae37d0570pW 14: 0x7fba25fa79b0 - middle::typeck::check::check_item_types::h7de0aa0b52df316614V 15: 0x7fba25a9c960 - &lt;unknown&gt; 16: 0x7fba262c69f0 - middle::typeck::check_crate::hee34369af2a06be9Unp 17: 0x7fba2632e290 - driver::driver::phase_3_run_analysis_passes::h44dc3d0e5ab4847dJ4B 18: 0x7fba263292b0 - driver::driver::compile_input::hb7d473b561e2b247vLB 19: 0x7fba263afb50 - &lt;unknown&gt; 20: 0x7fba263afa40 - &lt;unknown&gt; 21: 0x7fba25ab5f60 - &lt;unknown&gt; 22: 0x7fba25ab5d50 - &lt;unknown&gt; 23: 0x7fba26c0aa00 - &lt;unknown&gt; 24: 0x7fba25706aa0 - &lt;unknown&gt; 25: 0x7fba25706a90 - rust_try 26: 0x7fba256a1d60 - unwind::try::h0709f530ff508047aYc 27: 0x7fba256a1bf0 - task::Task::run::h3302eb43beb0760es4b 28: 0x7fba26c0a740 - &lt;unknown&gt; 29: 0x7fba256a3400 - &lt;unknown&gt; 30: 0x7fba20872250 - start_thread 31: 0x7fba2537d3b9 - clone 32: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">$ RUST_BACKTRACE=1 rustc a.rs a.rs:4:5: 4:6 error: internal compiler error: expected object type a.rs:4 t as *mut Trait ^ note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' panicked at 'Box&lt;Any&gt;', /home/hein/git/rust/src/libsyntax/diagnostic.rs:116 stack backtrace: 1: 0x7fba24ef8d50 - rt::backtrace::imp::write::h62769dcaa7983ed8FNs 2: 0x7fba24efbdd0 - &lt;unknown&gt; 3: 0x7fba256a43e0 - unwind::begin_unwind_inner::h3fca55fd1ce1f347o9c 4: 0x7fba23e4f460 - &lt;unknown&gt; 5: 0x7fba23e4f3e0 - diagnostic::SpanHandler::span_bug::hea3a64b392293aeaDRF 6: 0x7fba25c49ad0 - driver::session::Session::span_bug::hb3878c8c794bf1dcHNC 7: 0x7fba25f4a260 - middle::typeck::check::vtable::check_object_cast::h7d7ee59c0ae09980HKN 8: 0x7fba25fb8090 - &lt;unknown&gt; 9: 0x7fba25fe62b0 - &lt;unknown&gt; 10: 0x7fba25fab4c0 - &lt;unknown&gt; 11: 0x7fba25fa7eb0 - &lt;unknown&gt; 12: 0x7fba25fa7bf0 - &lt;unknown&gt; 13: 0x7fba25fa3cc0 - middle::typeck::check::check_item::h22ee00fbae37d0570pW 14: 0x7fba25fa79b0 - middle::typeck::check::check_item_types::h7de0aa0b52df316614V 15: 0x7fba25a9c960 - &lt;unknown&gt; 16: 0x7fba262c69f0 - middle::typeck::check_crate::hee34369af2a06be9Unp 17: 0x7fba2632e290 - driver::driver::phase_3_run_analysis_passes::h44dc3d0e5ab4847dJ4B 18: 0x7fba263292b0 - driver::driver::compile_input::hb7d473b561e2b247vLB 19: 0x7fba263afb50 - &lt;unknown&gt; 20: 0x7fba263afa40 - &lt;unknown&gt; 21: 0x7fba25ab5f60 - &lt;unknown&gt; 22: 0x7fba25ab5d50 - &lt;unknown&gt; 23: 0x7fba26c0aa00 - &lt;unknown&gt; 24: 0x7fba25706aa0 - &lt;unknown&gt; 25: 0x7fba25706a90 - rust_try 26: 0x7fba256a1d60 - unwind::try::h0709f530ff508047aYc 27: 0x7fba256a1bf0 - task::Task::run::h3302eb43beb0760es4b 28: 0x7fba26c0a740 - &lt;unknown&gt; 29: 0x7fba256a3400 - &lt;unknown&gt; 30: 0x7fba20872250 - start_thread 31: 0x7fba2537d3b9 - clone 32: 0x0 - &lt;unknown&gt; </code></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn foo(bar: *const u8) { let a = unsafe { (bar as *const Writer) }; } fn main() { }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">bar</span><span class="pl-kos">:</span> <span class="pl-c1">*</span><span class="pl-k">const</span> <span class="pl-smi">u8</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> a = <span class="pl-k">unsafe</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span>bar <span class="pl-k">as</span> <span class="pl-c1">*</span><span class="pl-k">const</span> <span class="pl-smi">Writer</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;anon&gt;:3:23: 3:26 error: internal compiler error: expected object type &lt;anon&gt;:3 let a = unsafe { (bar as *const Writer) }; ^~~ note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' panicked at 'Box&lt;Any&gt;', /build/rust-git/src/rust/src/libsyntax/diagnostic.rs:116"><pre class="notranslate"><code class="notranslate">&lt;anon&gt;:3:23: 3:26 error: internal compiler error: expected object type &lt;anon&gt;:3 let a = unsafe { (bar as *const Writer) }; ^~~ note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' panicked at 'Box&lt;Any&gt;', /build/rust-git/src/rust/src/libsyntax/diagnostic.rs:116 </code></pre></div>
1
<p dir="auto">Code Version 0.10.10 (0.10.10)<br> OS X 10.10.5</p> <p dir="auto">In the following code, syntax highlighting for the string literal on line 5 is wrong.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var key = 'hello'; var val = 'world'; var arr = []; for(var i=0; i&lt;5; i++) { arr.push(key + ':' + val); }"><pre class="notranslate"><code class="notranslate">var key = 'hello'; var val = 'world'; var arr = []; for(var i=0; i&lt;5; i++) { arr.push(key + ':' + val); } </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/653448/13732429/d488b44c-e93f-11e5-8566-e9b6c308c5d5.png"><img src="https://cloud.githubusercontent.com/assets/653448/13732429/d488b44c-e93f-11e5-8566-e9b6c308c5d5.png" alt="screen shot 2016-03-13 at 5 15 25 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Ported from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94376232" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/285" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-Sublime-Plugin/issues/285/hovercard" href="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/285">microsoft/TypeScript-Sublime-Plugin#285</a></p> <p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="91870539" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/265" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-Sublime-Plugin/issues/265/hovercard" href="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/265">microsoft/TypeScript-Sublime-Plugin#265</a>.</p> <p dir="auto">Issue:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1707813/8627292/da8f8be4-26fe-11e5-97ce-2b2a8b257afa.png"><img src="https://cloud.githubusercontent.com/assets/1707813/8627292/da8f8be4-26fe-11e5-97ce-2b2a8b257afa.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Correct:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1707813/8627340/3e27dbf2-26ff-11e5-8751-7e8576cbd230.png"><img src="https://cloud.githubusercontent.com/assets/1707813/8627340/3e27dbf2-26ff-11e5-8751-7e8576cbd230.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">Is that possible to add a function list panel?<br> Besides, the "Go to Symbol" function seems not working for php file. I am working with vscode v0.10.6<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5099742/12063466/677bb6f2-afaf-11e5-88e9-be8a61f19b82.jpg"><img src="https://cloud.githubusercontent.com/assets/5099742/12063466/677bb6f2-afaf-11e5-88e9-be8a61f19b82.jpg" alt="bug" style="max-width: 100%;"></a></p>
<p dir="auto">would you please add support for PHP symbol navigation ?</p> <p dir="auto">I like the symbol navigation for js, just press CTRL+SHIFT+O<br> The symbol list will show to us</p> <p dir="auto">that's amazing</p>
1
<p dir="auto">Summary.</p> <h2 dir="auto">Expected Result</h2> <p dir="auto">i can import exception from requests.</p> <h2 dir="auto">Actual Result</h2> <p dir="auto">when i catch LocationValueError, i need import LocationValueError from urllib3.exceptions, not from requests....</p> <h2 dir="auto">System Information</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python v2.7.0"><pre class="notranslate"><code class="notranslate">$ python v2.7.0 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;paste here&gt;"><pre class="notranslate"><code class="notranslate">&lt;paste here&gt; </code></pre></div> <p dir="auto">This command is only available on Requests v2.16.4 and greater. Otherwise,<br> please provide some basic information about your system (Python version,<br> operating system, &amp;c).</p>
<p dir="auto">I am using a 3rd party library that uses requests, and when I try to post using a session I get this error:</p> <p dir="auto">File "", line 1, in<br> File "/usr/local/lib/python2.7/dist-packages/pacer_lib/scraper.py", line 42, in init<br> self.refresh_login()<br> File "/usr/local/lib/python2.7/dist-packages/pacer_lib/scraper.py", line 74, in refresh_login<br> response = self.br.post(login_url, data=payload)<br> File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 500, in post<br> return self.request('POST', url, data=data, json=json, _kwargs)<br> File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request<br> resp = self.send(prep, *send_kwargs)<br> File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 595, in send<br> history = [resp for resp in gen] if allow_redirects else []<br> File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 189, in resolve_redirects<br> allow_redirects=False,<br> File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send<br> r = adapter.send(request, *_kwargs)<br> File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 329, in send<br> conn = self.get_connection(request.url, proxies)<br> File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 243, in get_connection<br> conn = self.poolmanager.connection_from_url(url)<br> File "/usr/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 131, in connection_from_url<br> return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)<br> File "/usr/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 102, in connection_from_host<br> raise LocationValueError("No host specified.")<br> urllib3.exceptions.LocationValueError: No host specified.</p> <p dir="auto">here is the relevant source from pacer_lib</p> <p dir="auto">def refresh_login(self):<br> """<br> Logs in to the PACER system using the login and password provided at<br> the initialization of <code class="notranslate">search_agent()</code>. This will create a Requests<br> session that will allow you to query the PACER system. If<br> <em>auto_login</em> =False, <code class="notranslate">refresh_login()</code> must be called before you can<br> query the case_locator. This function will raise an error if you<br> supply an invalid login or password.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Returns nothing. &quot;&quot;&quot; #SETTINGS (determined from the form from PACER's '/login.pl') payload = {'loginid':self.username, 'passwd':self.password} login_url = 'https://pacer.login.uscourts.gov/cgi-bin/check-pacer-passwd.pl' self.br = requests.Session() response = self.br.post(login_url, data=payload)"><pre class="notranslate"><code class="notranslate"> Returns nothing. """ #SETTINGS (determined from the form from PACER's '/login.pl') payload = {'loginid':self.username, 'passwd':self.password} login_url = 'https://pacer.login.uscourts.gov/cgi-bin/check-pacer-passwd.pl' self.br = requests.Session() response = self.br.post(login_url, data=payload) </code></pre></div> <p dir="auto">I have tried just posting without a session and it works (at least I get a 200), but every time I try to use a session I get that same error. Any help would be greatly appreciated</p>
1
<p dir="auto">Windows build number: 19631<br> PowerToys version: manual update from 0.17 to 0.18<br> PowerToy module for which you are reporting the bug (if applicable): Settings page</p> <h1 dir="auto">Steps to reproduce</h1> <ul dir="auto"> <li>probably uninstall + clean settings storage if you had previous version(s)</li> <li>Install 0.17 (Bug / No UI)</li> <li>Install 0.18 (no auto update detected)</li> <li>Open settings</li> <li><code class="notranslate">Light</code> Theme is check &lt;== This probably be <code class="notranslate">System</code> by default</li> </ul> <p dir="auto">Also as it indicated <code class="notranslate">Light</code> it was <code class="notranslate">Dark</code> (not sure if default is really using <code class="notranslate">Dark</code> r <code class="notranslate">System</code></p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Very first load of <code class="notranslate">Settings UI</code> should reflect the loaded/running theme</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">First defaulting does not match loaded theme<br> Forcing to</p> <ul dir="auto"> <li>System changed nothing (logic because System is using Dark)</li> <li>Light synch to Light (Synch is now OK)</li> <li>System (Synch is now OK)</li> </ul> <h1 dir="auto">Screenshots</h1> <p dir="auto">I can't reproduced without wipping installation / settings</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Currently PowerToys Run operates as a universal search. The original implementation (as Window Walker) appears to be an alt-tab system for those with many many many windows open.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Can we have an option to limit searches to open windows/tabs? Or should I just install Window Walker?</p>
0
<p dir="auto"><em>Copying from golang-dev</em></p> <p dir="auto">The <a href="https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo/edit" rel="nofollow">vendor specification</a> doesn't seem to speak much about the visibility of the vendored packages. Thus, should vendor be treated in similar ways to internal?</p> <p dir="auto">As it currently is, the following program compiles under go1.6beta2 (with the vendor experiment on):</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package main import &quot;vendor/golang.org/x/net/http2/hpack&quot; func main() { hpack.NewEncoder(nil) }"><pre class="notranslate"><span class="pl-k">package</span> main <span class="pl-k">import</span> <span class="pl-s">"vendor/golang.org/x/net/http2/hpack"</span> <span class="pl-k">func</span> <span class="pl-en">main</span>() { <span class="pl-s1">hpack</span>.<span class="pl-en">NewEncoder</span>(<span class="pl-c1">nil</span>) }</pre></div> <p dir="auto">Is this expected behavior? It seems kind of odd that I can import hpack as part of the "standard" library.</p> <p dir="auto">This is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="126779113" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/13961" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/13961/hovercard" href="https://github.com/golang/go/issues/13961">#13961</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="126318187" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/13929" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/13929/hovercard" href="https://github.com/golang/go/issues/13929">#13929</a>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$go version go version go1.5 darwin/amd64"><pre class="notranslate"><code class="notranslate">$go version go version go1.5 darwin/amd64 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$uname -a Darwin TonydeMacBook-Air-2.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64"><pre class="notranslate"><code class="notranslate">$uname -a Darwin TonydeMacBook-Air-2.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64 </code></pre></div> <p dir="auto">the project layout is below: (GOPATH=/home/bigwhite/gotestinternal)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/bigwhite/gotestinternal └── src ├── mypkg │   ├── internal │   │   └── foo │   │   └── foo.go │   ├── main.o │   └── pkg1 │   ├── main │   └── main.go └── otherpkg └── main.go"><pre class="notranslate"><code class="notranslate">/home/bigwhite/gotestinternal └── src ├── mypkg │   ├── internal │   │   └── foo │   │   └── foo.go │   ├── main.o │   └── pkg1 │   ├── main │   └── main.go └── otherpkg └── main.go </code></pre></div> <p dir="auto">I am trying to test the internal package in go 1.5 final release. according to the internal design doc, if we import internal/foo in mypkg/main.go or mypkg/pkg1/main.go, it is ok. but if we import mypkg/internal/foo in otherpkg/main.go, it should be invalid.</p> <p dir="auto">But the test result is not as the above:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="//otherpkg/main.go package main import &quot;mypkg/internal/foo&quot; func main() { foo.Foo() }"><pre class="notranslate"><code class="notranslate">//otherpkg/main.go package main import "mypkg/internal/foo" func main() { foo.Foo() } </code></pre></div> <p dir="auto">we build otherpkg/main.go in otherpkg directory, but no error occurs. It is not the result expected.<br> but go list -json tell us we has a not-allowed use of internal package:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;DepsErrors&quot;: [ { &quot;ImportStack&quot;: [ &quot;otherpkg&quot;, &quot;mypkg/internal/foo&quot; ], &quot;Pos&quot;: &quot;&quot;, &quot;Err&quot;: &quot;use of internal package not allowed&quot; } ]"><pre class="notranslate"><code class="notranslate">"DepsErrors": [ { "ImportStack": [ "otherpkg", "mypkg/internal/foo" ], "Pos": "", "Err": "use of internal package not allowed" } ] </code></pre></div> <p dir="auto">I'm not sure whether it is a problem of go1.5.</p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <p dir="auto">1.Right click on svn working directory<br> 2.Blam</p> <p dir="auto"><strong>Atom Version</strong>: 1.0.0<br> <strong>System</strong>: Microsoft Windows 8.1 Enterprise<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\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\rob.kearey\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 2x -1:43.9.0 linter:set-bubble-transparent (atom-text-editor.editor.is-focused) -0:18.3.0 application:add-project-folder (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> 2x -1:43.9.0 linter:set-bubble-transparent (atom-text-editor.editor.is-focused) -0:18.3.0 application:add-project-folder (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;one-light-ui&quot;, &quot;one-dark-syntax&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>one-light-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>one-dark-syntax<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</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 atom-jinja2, v0.5.0 color-picker, v2.0.7 go-runtime, v0.2.0 language-ansible, v0.1.3 language-rust, v0.4.3 linter, v1.1.0 linter-ansible-lint, v0.0.7 linter-golinter, v0.1.0 linter-rust, v0.1.0 svn, v0.0.6 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> atom<span class="pl-k">-</span>jinja2, v0.<span class="pl-ii">5</span>.<span class="pl-ii">0</span> color<span class="pl-k">-</span>picker, v2.<span class="pl-ii">0</span>.<span class="pl-ii">7</span> go<span class="pl-k">-</span>runtime, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> language<span class="pl-k">-</span>ansible, v0.<span class="pl-ii">1</span>.<span class="pl-ii">3</span> language<span class="pl-k">-</span>rust, v0.<span class="pl-ii">4</span>.<span class="pl-ii">3</span> linter, v1.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>ansible<span class="pl-k">-</span>lint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">7</span> linter<span class="pl-k">-</span>golinter, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>rust, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> svn, v0.<span class="pl-ii">0</span>.<span class="pl-ii">6</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&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
<h2 dir="auto">Feature request</h2> <p dir="auto">Include information about <em>all</em> chunk groups in stats. Currently <code class="notranslate">stats.toJson</code> provides details about <em>named</em> chunk groups, but there is no way (as far as I can tell) to know what the other chunk groups are.</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Stats contains enough information to know all the chunk groups that exist (named and otherwise) and which chunks are in each).</p> <p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong></p> <p dir="auto">This would be helpful information for bundle analysis, for understanding things like duplicated code and how bundles change between builds.</p> <p dir="auto"><strong>How should this be implemented in your opinion?</strong></p> <p dir="auto">This could be implemented with a new top-level <code class="notranslate">chunkGroups</code> property on the stats object, containing all the data about the chunk groups.</p> <p dir="auto">Alternately, a simple solution that would meet my needs would be for each chunk to list the chunk groups it is a part of (e.g. by the chunk group ids).</p> <p dir="auto"><strong>Are you willing to work on this yourself?</strong></p> <p dir="auto">Yes, given some guidance towards the preferred solution.</p>
<h2 dir="auto">Feature request</h2> <p dir="auto"><strong>What is the expected behavior?</strong><br> Want to add different-different lines at top of different output files of webpack build</p> <p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong></p> <ul dir="auto"> <li>Adding some lines(lines will be file specific) at top of specific files which needs to be there at starting of .js file for my application to work</li> </ul> <p dir="auto"><strong>How should this be implemented in your opinion?</strong></p> <p dir="auto"><strong>Are you willing to work on this yourself?</strong><br> yes</p> <p dir="auto">BannerPlugin works in same manner but it doesn't allow adding specific lines at specific file.<br> //Let's assume entry files are a.js , b.js and<br> I want to append require(test1.js) at the top of a.js and require(test2.js) at the top of b.js</p> <p dir="auto">then we have to check if(["file"]== test1.js)) which will always return false (considering ["file"] is a placeholder) so I can't append separate texts in 2 different files.</p> <p dir="auto">I also tried with switch(using count flag for entry files considering first entry file will be built first) but during <em><strong>webpack--watch</strong></em> it fails because then webpack only builds the file having changes</p>
0
<p dir="auto">Using pandas 0.17.1 with matplotlib 1.5:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd import matplotlib.pyplot as plt plt.style.use('ggplot') data = pd.DataFrame({'1': [1, 2, 3], '2': [3, 5, 1]}) data.plot(kind='bar') plt.savefig('test.png', dpi=300)"><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">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">plt</span>.<span class="pl-s1">style</span>.<span class="pl-en">use</span>(<span class="pl-s">'ggplot'</span>) <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'1'</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s">'2'</span>: [<span class="pl-c1">3</span>, <span class="pl-c1">5</span>, <span class="pl-c1">1</span>]}) <span class="pl-s1">data</span>.<span class="pl-en">plot</span>(<span class="pl-s1">kind</span><span class="pl-c1">=</span><span class="pl-s">'bar'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test.png'</span>, <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">300</span>)</pre></div> <p dir="auto">Results in</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5488440/11506494/0328c792-9850-11e5-97ec-044a8ec2183f.png"><img src="https://cloud.githubusercontent.com/assets/5488440/11506494/0328c792-9850-11e5-97ec-044a8ec2183f.png" alt="test" style="max-width: 100%;"></a></p> <p dir="auto">Which uses the colors of matplotlibs default style, not of <code class="notranslate">ggplot</code>.</p> <p dir="auto">Using matplotlib 1.4.3 the correct colors are used:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5488440/11506670/e40350c0-9850-11e5-9495-83185673a54e.png"><img src="https://cloud.githubusercontent.com/assets/5488440/11506670/e40350c0-9850-11e5-9495-83185673a54e.png" alt="result" style="max-width: 100%;"></a></p>
<p dir="auto">Hi there,</p> <p dir="auto">I'm not sure if this is a pandas/matplotlib or seaborn issue...but since I upgraded to Matplotlib 1.5 using anaconda I can't get the colors of my barplots right anymore, here's an example:</p> <p dir="auto">In ipython notebook:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd %matplotlib inline import seaborn as sns sns.set_style('whitegrid') # Works, color as expected in nice muted blue pd.DataFrame([1,2,3,4,5,6]).plot(linewidth=10) # Doesn't work, getting matplotlib &quot;eye-cancer-blue&quot; pd.DataFrame([1,2,3,4,5,6]).plot(kind='bar')"><pre class="notranslate"><code class="notranslate">import pandas as pd %matplotlib inline import seaborn as sns sns.set_style('whitegrid') # Works, color as expected in nice muted blue pd.DataFrame([1,2,3,4,5,6]).plot(linewidth=10) # Doesn't work, getting matplotlib "eye-cancer-blue" pd.DataFrame([1,2,3,4,5,6]).plot(kind='bar') </code></pre></div> <p dir="auto">I attached a screenshot one with matplotlib 1.4.x and one with 1.5:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10881376/11185937/8f124a62-8c7f-11e5-9d8f-56991ffdc798.png"><img src="https://cloud.githubusercontent.com/assets/10881376/11185937/8f124a62-8c7f-11e5-9d8f-56991ffdc798.png" alt="matplotlib_15" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10881376/11185936/8f11b7c8-8c7f-11e5-8773-8dceaea7bd76.png"><img src="https://cloud.githubusercontent.com/assets/10881376/11185936/8f11b7c8-8c7f-11e5-8773-8dceaea7bd76.png" alt="matplotlib_14" style="max-width: 100%;"></a></p> <p dir="auto">Again I know this might well not be a pandas issue but maybe someone has an idea where the problem might be.</p>
1
<p dir="auto">org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination</p> <p dir="auto">private int getValue(PaginationValueSegment paginationValueSegment, List parameters) {<br> return paginationValueSegment instanceof ParameterMarkerPaginationValueSegment ? **(Integer)**parameters.get(((ParameterMarkerPaginationValueSegment)paginationValueSegment).getParameterIndex()) : ((NumberLiteralPaginationValueSegment)paginationValueSegment).getValue();<br> }</p><p dir="auto"></p><p></p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/apache/incubator-shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">4.0.0-RC2-SNAPSHOT(clone from dev branch)</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">sql execute success</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto">my code below:<br> public List findUsersByPageIntType(Integer begin, Integer end){<br> String sql = "select id,name,age,email from user limit ?,? ";<br> Object[] params = new Object[] {begin, end};<br> List userList = jdbcTemplate.query(sql, params, getUserMapper());<br> return userList;<br> }<br> public List findUsersByPageLongType(Long begin, Long end){<br> String sql = "select id,name,age,email from user limit ?,? ";<br> Object[] params = new Object[] {begin, end};<br> List userList = jdbcTemplate.query(sql, params, getUserMapper());<br> return userList;<br> }</p> <p dir="auto">first, call findUsersByPageIntType method, it's ok<br> but call findUsersByPageLongType method there was an error -&gt; Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <p dir="auto">1.application.properties<br> spring.shardingsphere.datasource.names=ds0<br> spring.shardingsphere.datasource.ds0.type=com.zaxxer.hikari.HikariDataSource<br> spring.shardingsphere.datasource.ds0.driver-class-name=com.mysql.jdbc.Driver<br> spring.shardingsphere.datasource.ds0.jdbc-url=jdbc:mysql://127.0.0.1:3306/ttx_util?useUnicode=true&amp;useSSL=false&amp;characterEncoding=utf8<br> spring.shardingsphere.datasource.ds0.username=test<br> spring.shardingsphere.datasource.ds0.password=test</p> <p dir="auto">spring.shardingsphere.sharding.tables.user.actual-data-nodes=ds0.user_$-&gt;{0..1}<br> spring.shardingsphere.sharding.tables.user.table-strategy.inline.sharding-column=erp_id<br> spring.shardingsphere.sharding.tables.user.table-strategy.inline.algorithm-expression=user_$-&gt;{erp_id % 2}<br> spring.shardingsphere.sharding.tables.user.key-generator.column=id<br> spring.shardingsphere.sharding.tables.user.key-generator.type=SNOWFLAKE<br> #是否开启SQL显示,默认值: false<br> spring.shardingsphere.props.sql.show=true<br> 2.table create sql:<br> CREATE TABLE <code class="notranslate">user_0</code> (<br> <code class="notranslate">id</code> bigint(20) NOT NULL COMMENT '主键ID',<br> <code class="notranslate">erp_id</code> int(11) NOT NULL COMMENT '分表erpId',<br> <code class="notranslate">name</code> varchar(30) DEFAULT NULL COMMENT '姓名',<br> <code class="notranslate">age</code> int(11) DEFAULT NULL COMMENT '年龄',<br> <code class="notranslate">email</code> varchar(50) DEFAULT NULL COMMENT '邮箱',<br> PRIMARY KEY (<code class="notranslate">id</code>)<br> ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;</p> <p dir="auto">CREATE TABLE <code class="notranslate">user_1</code> (<br> <code class="notranslate">id</code> bigint(20) NOT NULL COMMENT '主键ID',<br> <code class="notranslate">erp_id</code> int(11) NOT NULL COMMENT '分表erpId',<br> <code class="notranslate">name</code> varchar(30) DEFAULT NULL COMMENT '姓名',<br> <code class="notranslate">age</code> int(11) DEFAULT NULL COMMENT '年龄',<br> <code class="notranslate">email</code> varchar(50) DEFAULT NULL COMMENT '邮箱',<br> PRIMARY KEY (<code class="notranslate">id</code>)<br> ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;</p> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
1
<h2 dir="auto">Question</h2> <p dir="auto">My sharding-jdbc version is :4.0.0.RC2<br> My execute sql is :show create table tb_a;<br> The exception is :<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9378228/63776816-aec22a00-c914-11e9-84f0-53b2bbf007a5.png"><img src="https://user-images.githubusercontent.com/9378228/63776816-aec22a00-c914-11e9-84f0-53b2bbf007a5.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">In my configuration, the tb_a is not sharding table.</p> <p dir="auto">I have found out that, this is because the route result is null</p> <p dir="auto">In the UnicastRouteEngine, the following code may return a RoutingResult just initialized with consturctor.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9378228/63776952-e630d680-c914-11e9-8087-9f625c870dec.png"><img src="https://user-images.githubusercontent.com/9378228/63776952-e630d680-c914-11e9-8087-9f625c870dec.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">So, what can I do to fix this question?</p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/apache/incubator-shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">4.0.0-RC3</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">alter table successfully</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Hibernate:<br> when field type is Bigdecimal<br> alter table cc_v3_sydx.cc_manual_collect_record<br> add column rfidNum decimal(19,2)<br> line 3:30 mismatched input 'decimal' expecting {TRUNCATE, POSITION, VIEW, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, DATE, TIME, TIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TYPE, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, MODIFY, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, WITHOUT, ESCAPE, SUBPARTITION, STORAGE, SUPER, TEMPORARY, THAN, UNBOUNDED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MEMORY, NONE, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_NO_CACHE, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, CODE, CONTEXT, CLONE, AGGREGATE, INSTALL, UNINSTALL, RESOURCE, EXPIRE, NEVER, HISTORY, OPTIONAL, REUSE, MAX_QUERIES_PER_HOUR, MAX_UPDATES_PER_HOUR, MAX_CONNECTIONS_PER_HOUR, MAX_USER_CONNECTIONS, RETAIN, RANDOM, OLD, ISSUER, SUBJECT, CACHE, GENERAL, SLOW, USER_RESOURCES, EXPORT, RELAY, HOSTS, FLUSH, RESET, RESTART, UNIX_TIMESTAMP, LOWER, UPPER, IDENTIFIER_}<br> line 3:41 mismatched input '2' expecting {ALTER, DROP, TRUNCATE, ADD, INDEX, WITH, UNION, ORDER, CHAR, CHARACTER, DEFAULT, ENABLE, DISABLE, TABLESPACE, MODIFY, WITHOUT, UPGRADE, CHECK, PASSWORD, ALGORITHM, ANALYZE, CHANGE, CHECKSUM, COALESCE, COLLATE, COMMENT, COMPRESSION, CONNECTION, CONVERT, DATA, DISCARD, ENCRYPTION, ENGINE, EXCHANGE, FORCE, IMPORT_, LOCK, OPTIMIZE, REBUILD, REMOVE, RENAME, REORGANIZE, REPAIR, MAX_ROWS, MIN_ROWS, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE}<br> 2020-02-21 23:36:11.071 [main] ERROR org.springframework.boot.SpringApplication -<br> Application startup failed</p> <p dir="auto">when field type is Integer:<br> Hibernate:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="alter table cc_v3_sydx.cc_manual_collect_record add column rfidNumInt integer"><pre class="notranslate"><code class="notranslate">alter table cc_v3_sydx.cc_manual_collect_record add column rfidNumInt integer </code></pre></div> <p dir="auto">line 3:29 mismatched input 'integer' expecting {TRUNCATE, POSITION, VIEW, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, DATE, TIME, TIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TYPE, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, MODIFY, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, WITHOUT, ESCAPE, SUBPARTITION, STORAGE, SUPER, TEMPORARY, THAN, UNBOUNDED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MEMORY, NONE, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_NO_CACHE, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, CODE, CONTEXT, CLONE, AGGREGATE, INSTALL, UNINSTALL, RESOURCE, EXPIRE, NEVER, HISTORY, OPTIONAL, REUSE, MAX_QUERIES_PER_HOUR, MAX_UPDATES_PER_HOUR, MAX_CONNECTIONS_PER_HOUR, MAX_USER_CONNECTIONS, RETAIN, RANDOM, OLD, ISSUER, SUBJECT, CACHE, GENERAL, SLOW, USER_RESOURCES, EXPORT, RELAY, HOSTS, FLUSH, RESET, RESTART, UNIX_TIMESTAMP, LOWER, UPPER, IDENTIFIER_}<br> 2020-02-21 23:45:14.558 [main] ERROR org.springframework.boot.SpringApplication -<br> Application startup failed</p> <p dir="auto">when field type is Double:</p> <p dir="auto">Hibernate:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="alter table cc_v3_sydx.cc_manual_collect_record add column rfidNumInt double precision"><pre class="notranslate"><code class="notranslate">alter table cc_v3_sydx.cc_manual_collect_record add column rfidNumInt double precision </code></pre></div> <p dir="auto">line 3:29 mismatched input 'double' expecting {TRUNCATE, POSITION, VIEW, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, DATE, TIME, TIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TYPE, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, MODIFY, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, WITHOUT, ESCAPE, SUBPARTITION, STORAGE, SUPER, TEMPORARY, THAN, UNBOUNDED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MEMORY, NONE, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_NO_CACHE, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, CODE, CONTEXT, CLONE, AGGREGATE, INSTALL, UNINSTALL, RESOURCE, EXPIRE, NEVER, HISTORY, OPTIONAL, REUSE, MAX_QUERIES_PER_HOUR, MAX_UPDATES_PER_HOUR, MAX_CONNECTIONS_PER_HOUR, MAX_USER_CONNECTIONS, RETAIN, RANDOM, OLD, ISSUER, SUBJECT, CACHE, GENERAL, SLOW, USER_RESOURCES, EXPORT, RELAY, HOSTS, FLUSH, RESET, RESTART, UNIX_TIMESTAMP, LOWER, UPPER, IDENTIFIER_}<br> 2020-02-21 23:46:21.119 [main] ERROR org.springframework.boot.SpringApplication -<br> Application startup failed</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto">Similar to this question:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="462558017" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/2632" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/2632/hovercard" href="https://github.com/apache/shardingsphere/issues/2632#issue-462558017">#2632 (comment)</a></p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
0
<p dir="auto">Using Symfony 2.8.2 or 3.0.2.<br> You can reproduce the problem with this simple statement:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$builder-&gt;add('participation', ChoiceType::class, array( 'choices' =&gt; [ 'yes' =&gt; true, 'no' =&gt; false ], 'placeholder' =&gt; 'Select a value', 'empty_data' =&gt; null, 'choices_as_values' =&gt; true, ));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>(<span class="pl-s">'participation'</span>, <span class="pl-v">ChoiceType</span>::class, <span class="pl-en">array</span>( <span class="pl-s">'choices'</span> =&gt; [ <span class="pl-s">'yes'</span> =&gt; <span class="pl-c1">true</span>, <span class="pl-s">'no'</span> =&gt; <span class="pl-c1">false</span> ], <span class="pl-s">'placeholder'</span> =&gt; <span class="pl-s">'Select a value'</span>, <span class="pl-s">'empty_data'</span> =&gt; <span class="pl-c1">null</span>, <span class="pl-s">'choices_as_values'</span> =&gt; <span class="pl-c1">true</span>, ));</pre></div> <p dir="auto">Expected result:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;select name=&quot;filter[participation]&quot; id=&quot;filter_participation&quot;&gt; &lt;option value=&quot;&quot;&gt;Select a value&lt;/option&gt; &lt;option value=&quot;1&quot;&gt;Yes&lt;/option&gt; &lt;option selected=&quot;selected&quot; value=&quot;0&quot;&gt;No&lt;/option&gt; &lt;/select&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">select</span> <span class="pl-c1">name</span>="<span class="pl-s">filter[participation]</span>" <span class="pl-c1">id</span>="<span class="pl-s">filter_participation</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>=""<span class="pl-kos">&gt;</span>Select a value<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1</span>"<span class="pl-kos">&gt;</span>Yes<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">selected</span>="<span class="pl-s">selected</span>" <span class="pl-c1">value</span>="<span class="pl-s">0</span>"<span class="pl-kos">&gt;</span>No<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">select</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Actual result:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;select name=&quot;filter[participation]&quot; id=&quot;filter_participation&quot;&gt; &lt;option value=&quot;1&quot;&gt;Yes&lt;/option&gt; &lt;option selected=&quot;selected&quot; value=&quot;&quot;&gt;No&lt;/option&gt; &lt;/select&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">select</span> <span class="pl-c1">name</span>="<span class="pl-s">filter[participation]</span>" <span class="pl-c1">id</span>="<span class="pl-s">filter_participation</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1</span>"<span class="pl-kos">&gt;</span>Yes<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">selected</span>="<span class="pl-s">selected</span>" <span class="pl-c1">value</span>=""<span class="pl-kos">&gt;</span>No<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">select</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Dump of choiceList:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/652505/12809461/ab8548c8-cb1f-11e5-974b-d38b5dd6c519.png"><img src="https://cloud.githubusercontent.com/assets/652505/12809461/ab8548c8-cb1f-11e5-974b-d38b5dd6c519.png" alt="boolean_choice_dump" style="max-width: 100%;"></a></p> <p dir="auto">As you can see, the placeholder is not rendered. If I add a new empty value in 'choices', I got an empty value in the view plus the placeholder value.</p>
<p dir="auto">After upgrading from 2.7.7 to 2.7.8 I noticed that some choice fields didn't display the empty value.</p> <p dir="auto">Example code:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="-&gt;add('buyback', 'choice', [ 'choices' =&gt; [ 'Yes' =&gt; true, 'No' =&gt; false, ], 'choices_as_values' =&gt; true, 'required' =&gt; false, ]);"><pre class="notranslate">-&gt;add(<span class="pl-s">'buyback'</span>, <span class="pl-s">'choice'</span>, [ <span class="pl-s">'choices'</span> =&gt; [ <span class="pl-s">'Yes'</span> =&gt; <span class="pl-c1">true</span>, <span class="pl-s">'No'</span> =&gt; <span class="pl-c1">false</span>, ], <span class="pl-s">'choices_as_values'</span> =&gt; <span class="pl-c1">true</span>, <span class="pl-s">'required'</span> =&gt; <span class="pl-c1">false</span>, ]);</pre></div> <p dir="auto">Before:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/407855/12170811/144496ea-b54d-11e5-9a28-a44c9f48ddd5.png"><img src="https://cloud.githubusercontent.com/assets/407855/12170811/144496ea-b54d-11e5-9a28-a44c9f48ddd5.png" alt="image" style="max-width: 100%;"></a><br> After:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/407855/12170840/3e399e5a-b54d-11e5-9032-4e0d49fe2a37.png"><img src="https://cloud.githubusercontent.com/assets/407855/12170840/3e399e5a-b54d-11e5-9032-4e0d49fe2a37.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">So far I've found out that the <code class="notranslate">false</code> value is converted to empty string in this line <a class="commit-link" href="https://github.com/symfony/symfony/compare/v2.7.7...v2.7.8#diff-780e59a429c485d2d3b8a37fdf62ac59R79"><tt>v2.7.7...v2.7.8</tt>#diff-780e59a429c485d2d3b8a37fdf62ac59R79</a>.</p> <p dir="auto">I think that the <code class="notranslate">false</code> value is displayed instead of empty value because of that.</p> <p dir="auto">This bug was introduced in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="119163490" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/16705" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/16705/hovercard" href="https://github.com/symfony/symfony/pull/16705">#16705</a>.</p>
1
<h3 dir="auto">Problem description</h3> <p dir="auto">Dialog's <code class="notranslate">repositionOnUpdate</code> works wrong when height changes in one step (e.g. from 600px to 900px).</p> <h3 dir="auto">Link to minimal working code that reproduces the issue</h3> <p dir="auto">You can see the problem in documentation (<a href="http://www.material-ui.com/#/components/dialog" rel="nofollow">http://www.material-ui.com/#/components/dialog</a>). Use developer tools to see problem (you need to doc it to the bottom of the screen).</p> <ol dir="auto"> <li>Open scrollable dialog (example number 5)</li> <li>Open / close developer tools</li> <li>You will see that dialog's bottom part is not available now (see video: <a href="http://take.ms/Yre18" rel="nofollow">http://take.ms/Yre18</a>)</li> </ol> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: latest</li> <li>React: any</li> <li>Browser: any (tested in chrome, firefox and safari)</li> </ul>
<p dir="auto">Hi there,<br> I use material-ui v0.13.4 and react v0.14.2</p> <p dir="auto">Padding on Dialog container is calculating incorrectly if you have multiple monitors. I have 1366x768 laptop display and one external 1920x1080px display.</p> <p dir="auto">On laptop display it is working well but on external not. Lets say that I have opened Google chrome browser with multiple tabs, where one of them is page with dialog. If I remove that tab from window (it makes separate window) the padding is calculated wrong.</p> <p dir="auto">Here is example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Component from 'react-pure-render/component'; import React from 'react'; import Dialog from 'material-ui/lib/dialog'; export default class SummaryModal extends Component { render() { let standardActions = [ { text: 'Close' }, ]; return ( &lt;Dialog title=&quot;Summary&quot; actions={standardActions} autoDetectWindowHeight={true} autoScrollBodyContent={true} open={true} onRequestClose={null}&gt; &lt;div style={{height: '1000px'}}&gt; aaa &lt;/div&gt; &lt;/Dialog&gt; ); } };"><pre class="notranslate"><code class="notranslate">import Component from 'react-pure-render/component'; import React from 'react'; import Dialog from 'material-ui/lib/dialog'; export default class SummaryModal extends Component { render() { let standardActions = [ { text: 'Close' }, ]; return ( &lt;Dialog title="Summary" actions={standardActions} autoDetectWindowHeight={true} autoScrollBodyContent={true} open={true} onRequestClose={null}&gt; &lt;div style={{height: '1000px'}}&gt; aaa &lt;/div&gt; &lt;/Dialog&gt; ); } }; </code></pre></div> <p dir="auto">Laptop:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2537379/11486681/e8db2280-97ba-11e5-9d02-f77366fa7468.png"><img src="https://cloud.githubusercontent.com/assets/2537379/11486681/e8db2280-97ba-11e5-9d02-f77366fa7468.png" alt="laptop" style="max-width: 100%;"></a></p> <p dir="auto">External:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2537379/11486680/e8c441a0-97ba-11e5-9394-4e5603cbe5ef.png"><img src="https://cloud.githubusercontent.com/assets/2537379/11486680/e8c441a0-97ba-11e5-9394-4e5603cbe5ef.png" alt="external" style="max-width: 100%;"></a></p> <p dir="auto">If I reload browser window on external display, then it is calculated right.</p>
1
<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.17763.678] PowerToys version: latest"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.17763.678] PowerToys version: latest </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Open the zone editor on a multi-monitor system. Note that i have both landscape and portrait monitors on the same system.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The zone editor will create overlays over the multiple monitors to allow you to create zones.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The editor overlay is locked to the primary active monitor, cannot be dragged to other monitors, and doesn't allow rule creation for anything but that active monitor.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Currently the new FZ editor only comes up and applies zone layouts to the primary monitor. In order to get a layout on a different monitor, the original custom editor is needed. Bret and Jeff have a design for this change and now they need to implement it.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Note that when this is done the original editor should be removed as well as the setting to toggle between editors.</p>
1
<p dir="auto">The jQuery course has a problem in printing all the parts of the pages. And in Firefox an infinite loop keep executing and showing the notification box of challenge complition.</p>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/store-data-in-mongodb" rel="nofollow">Store Data in MongoDB</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">If you follow the tutorial directly, in the step called "Connect" it will ask you to start a server using the command "mongod --port 27017 --dbpath=./data". Doing that will get you this error: <a href="http://i.imgur.com/cGy0iRP.png" rel="nofollow">http://i.imgur.com/cGy0iRP.png</a> saying there isn't enough disk space avaiable. For this operation to work, you must attach "--smallfiles" to the mongod command.</p>
0
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">The <code class="notranslate">&lt;Link&gt;</code> component doesn't appear to pass on the <code class="notranslate">href</code> prop when wrapping a custom component instead of the native <code class="notranslate">&lt;a&gt;</code>.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Here's a CodeSandbox: <a href="https://codesandbox.io/s/nextjs-qtynp" rel="nofollow">https://codesandbox.io/s/nextjs-qtynp</a></p> <p dir="auto">I made sure to use <code class="notranslate">React.forwardRef</code>.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Both of the links should have their <code class="notranslate">href</code> props populated.</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macOS</li> <li>Version of Next.js: 9.1.2</li> <li>Version of React: 16.11.0</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">It sounds unlikely that this is broken, since I assume this is one of the most commonly used codepaths. But I keep trying everything and nothing seems to work, so I figured I'd open this.</p>
0
<p dir="auto">To reproduce, open <a href="http://twitter.github.com/bootstrap/javascript.html#typeahead">http://twitter.github.com/bootstrap/javascript.html#typeahead</a> with Chrome and Mac OS X.</p> <p dir="auto">Half of the time for me (with Chrome 19.0.1084.56 on Mac OS X Lion), clicking does not select the option, but rather, close the list and leave the already typed letters without completing the letters.</p> <p dir="auto">I believe the issue is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4636830" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/3521" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/3521/hovercard" href="https://github.com/twbs/bootstrap/issues/3521">#3521</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4601117" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/3504" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/3504/hovercard" href="https://github.com/twbs/bootstrap/issues/3504">#3504</a> but provides more details; I hope we'll be able to pinpoint the issue this time.</p> <p dir="auto">Note that I could never reproduce the bug on Safari (5.1.3) nor on Firefox (12.0)</p>
<p dir="auto">Steps to reproduce:</p> <ol dir="auto"> <li>Open <a href="http://twitter.github.com/bootstrap/javascript.html#typeahead">http://twitter.github.com/bootstrap/javascript.html#typeahead</a></li> <li>Type the letter <code class="notranslate">a</code> in the input</li> <li>Move mouse over the first item</li> <li>Click and <strong>hold</strong>, don't release mouse button or move pointer</li> </ol>
1