text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<ul dir="auto"> <li>VSCode Version: 1.2.0-insider</li> <li>OS Version: 10.0.10586</li> </ul> <p dir="auto">All Chinese characters huddle together when I open the terminal, and if I resize the window , the space will change too.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13583692/15661209/1d832158-2718-11e6-95c2-14ca88311c72.png"><img src="https://cloud.githubusercontent.com/assets/13583692/15661209/1d832158-2718-11e6-95c2-14ca88311c72.png" alt="vscode-problem" style="max-width: 100%;"></a></p>
<p dir="auto">When I try to install the extension, I get the error:<br> <code class="notranslate">connect ETIMEDOUT ip:443</code></p>
0
<p dir="auto">For example it detects <a href="http://www.15min.lt" rel="nofollow">http://www.15min.lt</a> encoding as ISO-8859-1, but the encoding is set as utf8 </p>
<p dir="auto">Requests has a <code class="notranslate">get_encodings_from_content()</code> function, but it doesn't seem to be used anywhere -- only <code class="notranslate">get_encoding_from_headers()</code> is used.</p> <p dir="auto">Any reason why? I'd think on most pages, trying for the meta tag encoding declaration first will produce better results. See The Verge, for one example (the meta tag declares encoding as utf-8, but Requests detects as ISO-8895-1).</p>
1
<p dir="auto">Consider the following snippet run in the main process where one wants to listen for <a href="http://electronjs.org/docs/api/web-contents#event-will-prevent-unload" rel="nofollow"><code class="notranslate">"will-prevent-default"</code></a> events and after some <em>asynchronous</em> operation (<code class="notranslate">do_something</code>, a call which returns a <code class="notranslate">Promise</code>) initiated by the event listener, depending on the result (<code class="notranslate">result</code>) of the operation, call <code class="notranslate">preventDefault</code> on the event to allow page to unload:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// Assume `win` refers to your typical application window (a `BrowserWindow` instance) win.webContents.on(&quot;will-prevent-default&quot;, ev =&gt; { do_something().then(result =&gt; { if(result == some_value) { ev.preventDefault(); /// Does NOT work (page doesn't unload) when called from a callback, i.e. when not called immediately (synchronously) in the event handler. } }); /// `ev.preventDefault` would have the documented effect if one placed the call here, e.g. somewhere it would be executed as part of the event handler itself, not a callback. });"><pre class="notranslate"><span class="pl-c">/// Assume `win` refers to your typical application window (a `BrowserWindow` instance)</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"will-prevent-default"</span><span class="pl-kos">,</span> <span class="pl-s1">ev</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">do_something</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">result</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">result</span> <span class="pl-c1">==</span> <span class="pl-s1">some_value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">ev</span><span class="pl-kos">.</span><span class="pl-en">preventDefault</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">/// Does NOT work (page doesn't unload) when called from a callback, i.e. when not called immediately (synchronously) in the event handler.</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">/// `ev.preventDefault` would have the documented effect if one placed the call here, e.g. somewhere it would be executed as part of the event handler itself, not a callback.</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">One would expect <code class="notranslate">preventDefault</code> to work as documented regardless of when it is called?</p> <p dir="auto">Is this a known issue, and is this simply a bug?</p> <p dir="auto">Electron 6.0.10 win32 x64<br> Microsoft Windows 10 64-bit Enterprise build 1709</p>
<ul dir="auto"> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: <strong>v4.0.1</strong></li> <li>Operating System (Platform and Version): <ul dir="auto"> <li>OS: <strong>Linux, Xubuntu (Ubuntu)</strong>.</li> <li>Version: <strong>18.04.1 LTS (Bionic Beaver)</strong>.</li> <li>Kernel version: <strong>4.15.0-43-generic</strong></li> </ul> </li> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable): <strong>v5.0.1</strong></li> </ul> <p dir="auto"><strong>Procedure</strong><br> I put <code class="notranslate">win.setMenu(null)</code> directly under the browser window creation/declaration:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Create the browser window. win = new BrowserWindow({ width: 800, height: 600 }) // Hide the menu bar win.setMenu(null) ..."><pre class="notranslate"><code class="notranslate">// Create the browser window. win = new BrowserWindow({ width: 800, height: 600 }) // Hide the menu bar win.setMenu(null) ... </code></pre></div> <p dir="auto"><strong>Expected Behavior</strong><br> I expected the menu bar to be hidden at window creation.</p> <p dir="auto"><strong>Actual behavior</strong><br> The menu was still showing.</p>
0
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">On certain browsers, like Chrome on iOS, there is already a progress bar in place causing duplicate progress bars when using the with-loading example repo.</p> <h2 dir="auto">To Reproduce</h2> <ol dir="auto"> <li>Follow instructions on <a href="https://github.com/zeit/next.js/tree/canary/examples/with-loading">https://github.com/zeit/next.js/tree/canary/examples/with-loading</a> to set project up.</li> <li>Install and run locally</li> <li>Navigate to the non-existing page using Chrome on iOS</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">NProgress should not be displayed for browsers that have default progress bars. This is a next.js issue because the example should account for the behavior of NProgress.</p> <h2 dir="auto">Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8594272/57685043-f7a9e780-7671-11e9-974a-8987908cdc5a.png"><img src="https://user-images.githubusercontent.com/8594272/57685043-f7a9e780-7671-11e9-974a-8987908cdc5a.png" alt="Image from iOS" style="max-width: 100%;"></a></p>
<p dir="auto">Hey guys, I'm trying to use the dynamic import system, but it doesn't seem to be working.</p> <p dir="auto">I'm trying to import components only on the client side and not server side render them.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const ButtonGroup = dynamic(import('../components/base').then(m =&gt; { const { ButtonGroup } = m; ButtonGroup.__webpackChunkName = m.__webpackChunkName; return ButtonGroup; }), {ssr: false}); const RoundedButton = dynamic(import('../components/base').then(m =&gt; { const { RoundedButton } = m; RoundedButton.__webpackChunkName = m.__webpackChunkName; return RoundedButton; }), {ssr: false});"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">ButtonGroup</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../components/base'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">m</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> ButtonGroup <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">m</span><span class="pl-kos">;</span> <span class="pl-v">ButtonGroup</span><span class="pl-kos">.</span><span class="pl-c1">__webpackChunkName</span> <span class="pl-c1">=</span> <span class="pl-s1">m</span><span class="pl-kos">.</span><span class="pl-c1">__webpackChunkName</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-v">ButtonGroup</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">ssr</span>: <span class="pl-c1">false</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-v">RoundedButton</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../components/base'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">m</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> RoundedButton <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">m</span><span class="pl-kos">;</span> <span class="pl-v">RoundedButton</span><span class="pl-kos">.</span><span class="pl-c1">__webpackChunkName</span> <span class="pl-c1">=</span> <span class="pl-s1">m</span><span class="pl-kos">.</span><span class="pl-c1">__webpackChunkName</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-v">RoundedButton</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">ssr</span>: <span class="pl-c1">false</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I console logged what RoundedButton should be and I got this giant function:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2453737/37189149-b06ce93a-2307-11e8-8281-792ad3d5aa89.png"><img src="https://user-images.githubusercontent.com/2453737/37189149-b06ce93a-2307-11e8-8281-792ad3d5aa89.png" alt="screen shot 2018-03-08 at 7 33 42 pm" style="max-width: 100%;"></a></p> <p dir="auto">In my render function I have this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;RoundedButton disabled={!auth.isLoggedIn || draft} flat={true} onClick={() =&gt; ( this.handleBookmark(draft, match.params.id.replace(new RegExp('_', 'g'), ' ')) )} styles={{ button: [styles.bookmark__button, isBookmarked &amp;&amp; styles.bookmarked] }} type=&quot;button&quot; value={isBookmarked ? 'Bookmarked' : 'Bookmark'} /&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">RoundedButton</span> <span class="pl-c1">disabled</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">!</span><span class="pl-s1">auth</span><span class="pl-kos">.</span><span class="pl-c1">isLoggedIn</span> <span class="pl-c1">||</span> <span class="pl-s1">draft</span><span class="pl-kos">}</span> <span class="pl-c1">flat</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">true</span><span class="pl-kos">}</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">handleBookmark</span><span class="pl-kos">(</span><span class="pl-s1">draft</span><span class="pl-kos">,</span> <span class="pl-s1">match</span><span class="pl-kos">.</span><span class="pl-c1">params</span><span class="pl-kos">.</span><span class="pl-c1">id</span><span class="pl-kos">.</span><span class="pl-en">replace</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">RegExp</span><span class="pl-kos">(</span><span class="pl-s">'_'</span><span class="pl-kos">,</span> <span class="pl-s">'g'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s">' '</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">styles</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span> <span class="pl-c1">button</span>: <span class="pl-kos">[</span><span class="pl-s1">styles</span><span class="pl-kos">.</span><span class="pl-c1">bookmark__button</span><span class="pl-kos">,</span> <span class="pl-s1">isBookmarked</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">styles</span><span class="pl-kos">.</span><span class="pl-c1">bookmarked</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"button"</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">isBookmarked</span> ? <span class="pl-s">'Bookmarked'</span> : <span class="pl-s">'Bookmark'</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">But I'm getting an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot read property 'click' of undefined"><pre class="notranslate"><code class="notranslate">TypeError: Cannot read property 'click' of undefined </code></pre></div> <p dir="auto">which I'm suspecting it doesn't like the onClick I'm passing through there. Anyone know what's up?</p> <ul dir="auto"> <li>[x ] I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <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.1.2</td> </tr> <tr> <td>OS</td> <td>mac osx</td> </tr> <tr> <td>browser</td> <td>chrome</td> </tr> </tbody> </table>
0
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="echo &quot;export const hi = () =&gt; 'hi'&quot; &gt; mod.js deno &gt; import('./mod.js') thread 'tokio-runtime-worker-0' panicked at 'dyn_import callback not set', ../../core/isolate.rs:262:7 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. fatal runtime error: failed to initiate panic, error 5 [1] 20373 abort deno"><pre class="notranslate"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>export const hi = () =&gt; 'hi'<span class="pl-pds">"</span></span> <span class="pl-k">&gt;</span> mod.js deno <span class="pl-k">&gt;</span> import(<span class="pl-s"><span class="pl-pds">'</span>./mod.js<span class="pl-pds">'</span></span>) thread <span class="pl-s"><span class="pl-pds">'</span>tokio-runtime-worker-0<span class="pl-pds">'</span></span> panicked at <span class="pl-s"><span class="pl-pds">'</span>dyn_import callback not set<span class="pl-pds">'</span></span>, ../../core/isolate.rs:262:7 note: Run with <span class="pl-s"><span class="pl-pds">`</span>RUST_BACKTRACE=1<span class="pl-pds">`</span></span> environment variable to display a backtrace. fatal runtime error: failed to initiate panic, error 5 [1] 20373 abort deno</pre></div>
<p dir="auto">I know this is already on the radar, but wanted to create a distinct issue.</p> <p dir="auto">(This is required for a <a href="https://github.com/denoland/deno_std/issues/193" data-hovercard-type="issue" data-hovercard-url="/denoland/deno_std/issues/193/hovercard">test runner</a>.)</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/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: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<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> <p dir="auto">None</p> <h3 dir="auto">Steps to reproduce this issue</h3> <ul dir="auto"> <li><a href="https://dubbo.incubator.apache.org/zh-cn/docs/dev/principals/robustness.html" rel="nofollow">https://dubbo.incubator.apache.org/zh-cn/docs/dev/principals/robustness.html</a></li> <li>ctrl-F search the key words of <code class="notranslate">服务消息者从注册中心拿到提供者列表后</code></li> </ul> <h3 dir="auto">Expected Result</h3> <p dir="auto">service cosumers</p> <h3 dir="auto">Actual Result</h3> <p dir="auto"><strong>服务消息者</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
0
<p dir="auto">I am not able to use resource pool name in my playbook other than: resource_pool: "/Resources"<br> Though resource_pool exists and can be discovered using pysphere.</p> <blockquote> <blockquote> <blockquote> <p dir="auto">from pysphere import VIServer<br> s = VIServer()<br> s.connect("host", 'user', 'password')<br> vm = s.get_vm_by_name('&lt;vm_name&gt;')<br> vm.get_resource_pool_name()<br> '&lt;resource_name&gt;'</p> </blockquote> </blockquote> </blockquote> <h1 dir="auto"></h1> <p dir="auto">TASK: [vsphere_guest ] ********************************************************<br> failed: [localhost] =&gt; {"failed": true}<br> msg: Cannot find Resource Pool named: databases_pool</p>
<h1 dir="auto">Ansible Version:</h1> <p dir="auto">ansible 1.9.2, module: vsphere_guest</p> <h1 dir="auto">Ansible Configuration:</h1> <p dir="auto">Default configuration.</p> <h1 dir="auto">Environment:</h1> <p dir="auto">Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-57-generic i686)</p> <h1 dir="auto">Summary:</h1> <p dir="auto">I am not able to use resource pool name in my playbook other than: resource_pool: "/Resources"<br> Though resource_pool exists and can be discovered using pysphere.</p> <h1 dir="auto">Steps To Reproduce:</h1> <p dir="auto">In Ansible playbook provide 'resource_pool' with resource pool created/present on VCenter.</p> <h1 dir="auto">Result:</h1> <p dir="auto">TASK: [vsphere_guest ] ********************************************************<br> failed: [localhost] =&gt; {"failed": true}<br> msg: Cannot find Resource Pool named: databases_pool</p> <p dir="auto">But resource pool is present on VCenter and using pysphere resource pool can be discovered.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from pysphere import VIServer s = VIServer() s.connect(&quot;my_host&quot;, 'user', 'password') vm = s.get_vm_by_name('') vm.get_resource_pool_name() 'databases_pool'"><pre class="notranslate"><code class="notranslate">from pysphere import VIServer s = VIServer() s.connect("my_host", 'user', 'password') vm = s.get_vm_by_name('') vm.get_resource_pool_name() 'databases_pool' </code></pre></div> <h1 dir="auto">Expected:</h1> <p dir="auto">vsphere_guest module should be able to create VM guest in resource pool.</p> <h1 dir="auto">Actual Results:</h1> <p dir="auto">vsphere_guest module only creates VM guest if 'resource_pool: /Resources'</p>
1
<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">I have a project using NPM 7 workspaces. One package is named <code class="notranslate">button</code>.</p> <p dir="auto">If I run <code class="notranslate">npm -w button version minor</code>, then the version number in button's <code class="notranslate">package.json</code> gets incremented as I would expect. However, the root-level <code class="notranslate">package-lock.json</code> does not get modified.</p> <p dir="auto">If I later run an <code class="notranslate">npm -w button install</code> then the value in <code class="notranslate">packages.button.version</code> gets updated to reflect the current version.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">I would expect the value at <code class="notranslate">packages.button.version</code> in the root-level <code class="notranslate">package-lock.json</code> file to get updated at the same time as button's <code class="notranslate">package.json</code>, when the <code class="notranslate">npm version</code> command is run.</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>Set up a project with one package, run <code class="notranslate">npm --workspaces install</code> to generate basic <code class="notranslate">package-lock.json</code></li> <li>Run <code class="notranslate">npm -w [package name] version minor</code></li> <li>See that the package's <code class="notranslate">package.json</code> has been updated but the root level <code class="notranslate">package-lock.json</code> has not</li> <li>Run <code class="notranslate">npm -w [package name] install</code></li> <li>See that the root level <code class="notranslate">package-lock.json</code> has one change in it: the sub-package's version number.</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: macOS 11.5.2</li> <li>Node: 16.7.0</li> <li>npm: 7.20.3</li> </ul>
<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">Workspace<br> Package A</p> <p dir="auto">Package B<br> peerDependencies<br> Package A</p> <p dir="auto">I have the following situation, where Package B has a peerDependency of Package A.</p> <p dir="auto">I run npm version 1.2.3 --workspaces</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">I would expect:</p> <ul dir="auto"> <li> <p dir="auto">The versions of Package A and Package B to be updated to 1.2.3<br> This works as expected</p> </li> <li> <p dir="auto">The version of the Package A peerDependency in Package B to be updated to 1.2.3<br> This doesn't work as expected</p> </li> </ul> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>Please see above</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: Windows 10</li> <li>Node: 16.8.0</li> <li>npm: 7.21.0</li> </ul>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Say Hello to HTML Elements</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Headline with the h2 Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Inform with the Paragraph Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Uncomment HTML</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Comment out HTML</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Fill in the Blank with Placeholder Text</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Delete HTML Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Change the Color of Text</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use CSS Selectors to Style Elements</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use a CSS Class to Style an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Style Multiple Elements with a CSS Class</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Change the Font Size of an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Set the Font Family of an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Import a Google Font</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Specify How Fonts Should Degrade</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add Images to your Website</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Size your Images</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add Borders Around your Elements</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add Roundede Corners with a Border Radius</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Make Circular Images with a Border Radius</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Link to External Pages with Anchor Elements</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Nest an Anchor Element within a Paragraph</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Make Dead Links usig the Hash Symbol</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Turn an Image into a Link</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add Alt Text to an Image for Accessebility</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Create a Bulleted Unordered List</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Create an Ordered List</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Create a TextField</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add Placeholder Text to a Text Field</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Create a Form Eleemnt</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add a Submit Button to a Form Use HTML5 to Require a Field</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Create a Set of Radio Buttons</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Create a Set of Checkboxes</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Check Radio Buttons and Checkboxes by Default</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Nest Many Elements within a Single Div Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Give a Background Color to a Div Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Sset the ID of an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use an Id Attribute to Style an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Adjusting the Padding of an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Adjust the Margin of an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add a Negative Margin to an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add Different Padding to Each Side of an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add Different Margins to Each Side of an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use Clockwise Notation to Specify the Padding of an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use Clockwise Notation to Specify the Margin of an Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Style the HTML Body Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Inherit Styles from the Body Element</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Prioritize One Style Over Another</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Override Styles in Subsequent CSS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Override Class Declarations by Styling ID Attributes</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Override Class Declarations with Inline Styles</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Override All Other Stlyes by using Important</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use Hex Code for Specific Colors</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use Hex Code to Color Elements White</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use Hex Code to Color Elements Red</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use Hex Code to Color Elements Green</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use Hex Code to Color Elements Blue</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use Hex Code to Mix Colors</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use Hex Code to Color Elements Gray</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use Hex Code for Specific Shades of Gray</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use Abbreviated Hex Code</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use RGB values to Color Elements</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use RGB to Color Elements White</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use RGB to Color Elements Red</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use RGB to Color Elements Green</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use RGB to Color Elements Blue</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use RGB to Mix Color</li> </ul> <p dir="auto">I've written this by hand, so feel free to point out typos and missed items!</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Say Hello to HTML Elements Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Headline with the h2 Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Inform with the Paragraph Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Uncomment HTML Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Comment out HTML Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Fill in the Blank with Placeholder Text Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Delete HTML Elements Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Change the Color of Text Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use CSS Selectors to Style Elements Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use a CSS Class to Style an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Style Multiple Elements with a CSS Class Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Change the Font Size of an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Set the Font Family of an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Import a Google Font Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Specify How Fonts Should Degrade Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add Images to your Website Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Size your Images Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add Borders Around your Elements Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add Rounded Corners with a Border Radius Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Make Circular Images with a Border Radius Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Link to External Pages with Anchor Elements Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Nest an Anchor Element within a Paragraph Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Make Dead Links using the Hash Symbol Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Turn an Image into a Link Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add Alt Text to an Image for Accessibility Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Create a Bulleted Unordered List Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Create an Ordered List Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Create a Text Field Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add Placeholder Text to a Text Field Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Create a Form Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add a Submit Button to a Form Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use HTML5 to Require a Field Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Create a Set of Radio Buttons Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Create a Set of Checkboxes Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check Radio Buttons and Checkboxes by Default Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Nest Many Elements within a Single Div Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Give a Background Color to a Div Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Set the ID of an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use an ID Attribute to Style an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Adjusting the Padding of an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Adjust the Margin of an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add a Negative Margin to an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add Different Padding to Each Side of an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add Different Margins to Each Side of an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use Clockwise Notation to Specify the Padding of an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use Clockwise Notation to Specify the Margin of an Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Style the HTML Body Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Inherit Styles from the Body Element Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Prioritize One Style Over Another Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Override Styles in Subsequent CSS Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Override Class Declarations by Styling ID Attributes Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Override Class Declarations with Inline Styles Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Override All Other Styles by using Important Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use Hex Code for Specific Colors Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use Hex Code to Color Elements White Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use Hex Code to Color Elements Red Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use Hex Code to Color Elements Green Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use Hex Code to Color Elements Blue Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use Hex Code to Mix Colors Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use Hex Code to Color Elements Gray Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use Hex Code for Specific Shades of Gray Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use Abbreviated Hex Code Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use RGB values to Color Elements Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use RGB to Color Elements White Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use RGB to Color Elements Red Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use RGB to Color Elements Green Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use RGB to Color Elements Blue Complete</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Use RGB to Mix Colors</li> </ul> <p dir="auto">Planning to finish translation tomorrow, inviting <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bugron/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bugron">@bugron</a> to do QA.</p>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">linode cloud module - modules/cloud/linode/linode.py</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0.0 config file = configured module search path = Default w/o overrides python version = 2.7.13 (default, Apr 4 2017, 08:46:44) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0 config file = configured module search path = Default w/o overrides python version = 2.7.13 (default, Apr 4 2017, 08:46:44) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Master: Mac OS X El Capitan v10.11.6<br> Managing: Ubuntu 16.04 on Linode<br> Python: 2.7.13</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When trying to provision a linode with the linode module (using a playbook very similar to <a href="https://github.com/marji/ansible-playbook-linode/blob/master/provision.yml">this one</a>), I get an error:</p> <p dir="auto"><code class="notranslate">Alert_cpu_threshold must be between 0 and 2000</code></p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <ul dir="auto"> <li>Installed pycurl and linode-python via pip</li> <li>Updated hosts file to set ansible_python_interpreter</li> <li>Export LINODE_API_KEY</li> <li>Attempt to provision linode with the following settings:</li> </ul> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tasks: - name: Linode | Create linode server via Linode API linode: name: test plan: 1 datacenter: 7 distribution: 146 displaygroup: test swap: 512 wait: yes wait_timeout: 600 state: present register: linode"><pre class="notranslate"><span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">Linode | Create linode server via Linode API</span> <span class="pl-ent">linode</span>: <span class="pl-ent">name</span>: <span class="pl-s">test</span> <span class="pl-ent">plan</span>: <span class="pl-c1">1</span> <span class="pl-ent">datacenter</span>: <span class="pl-c1">7</span> <span class="pl-ent">distribution</span>: <span class="pl-c1">146</span> <span class="pl-ent">displaygroup</span>: <span class="pl-s">test</span> <span class="pl-ent">swap</span>: <span class="pl-c1">512</span> <span class="pl-ent">wait</span>: <span class="pl-s">yes</span> <span class="pl-ent">wait_timeout</span>: <span class="pl-c1">600</span> <span class="pl-ent">state</span>: <span class="pl-s">present</span> <span class="pl-ent">register</span>: <span class="pl-s">linode</span></pre></div> <p dir="auto">Full example, including hosts file is available <a href="https://gist.github.com/ErisDS/b8a78f7e86a2b21b466714332a3e059c">in this gist</a></p> <p dir="auto">Executed using <code class="notranslate">ansible-playbook provision.yml -i hosts</code></p> <p dir="auto">If I update my task to include <code class="notranslate">alert_cpu_threshold: 1000</code>, I then get another error:</p> <p dir="auto"><code class="notranslate">Alert_diskio_threshold must be between 0 and 100000</code></p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Expected result is that the task should return OK and continue on to the next task. Instead the error prevents the task &amp; all subsequent tasks from running.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Not: a linode is created, but not fully provisioned as there is no disk.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [Provision new linode] ********************************************************************************************************************************************************************** TASK [Linode | Create linode server via Linode API] ********************************************************************************************************************************************** fatal: [localhost]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;failed&quot;: true, &quot;msg&quot;: &quot;Alert_cpu_threshold must be between 0 and 2000.&quot;} to retry, use: --limit @.../ansible/provision.retry PLAY RECAP *************************************************************************************************************************************************************************************** localhost : ok=0 changed=0 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">PLAY [Provision new linode] ********************************************************************************************************************************************************************** TASK [Linode | Create linode server via Linode API] ********************************************************************************************************************************************** fatal: [localhost]: FAILED! =&gt; {"changed": false, "failed": true, "msg": "Alert_cpu_threshold must be between 0 and 2000."} to retry, use: --limit @.../ansible/provision.retry PLAY RECAP *************************************************************************************************************************************************************************************** localhost : ok=0 changed=0 unreachable=0 failed=1 </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"><code class="notranslate">script</code> inventory plugin</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.0.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/florian/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]"><pre class="notranslate"><code class="notranslate">ansible 2.4.0.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/florian/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto"><code class="notranslate">ansible-config dump --only-changed</code> comes back empty.</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 17.04</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">If I run <code class="notranslate">ansible-playbook</code> with a static inventory (<code class="notranslate">-i /path/to/hosts</code>), and I use <code class="notranslate">group_vars</code> and <code class="notranslate">host_vars</code> directories relative to that inventory file (as opposed to relative to the playbook file, as documented <a href="http://docs.ansible.com/ansible/latest/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable" rel="nofollow">here</a>), then those variables get parsed correctly.</p> <p dir="auto">In Ansible 2.3, if I did the same with a <em>dynamic</em> inventory script (<code class="notranslate">-i /path/to/some-script.py</code>), the behavior would be identical.</p> <p dir="auto">In Ansible 2.4, that is no longer the case, and static and dynamic inventory behaves quite differently:</p> <ul dir="auto"> <li>with <code class="notranslate">-i /path/to/hosts</code>, variables in <code class="notranslate">/path/to/group_vars</code> and <code class="notranslate">/path/to/host_vars</code> are correctly added to the inventory.</li> <li>with <code class="notranslate">-i /path/to/some-script.py</code>, variables in <code class="notranslate">/path/to/group_vars</code> and <code class="notranslate">/path/to/host_vars</code> are ignored, and I need to symlink those directories into the playbook directory to be picked up.</li> </ul> <hr> <p dir="auto">I'm not sure what the correct behavior is, for Ansible 2.4, considering the move from inventory scripts to inventory plugins. But it would seem like static and dynamic inventory ought to behave identically with regard to variable parsing, as it was the case pre-2.4.</p>
0
<p dir="auto">Since it is possible to select subranges of iterators using UnitRange objects it is my opinion that Threads.<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/threads/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/threads">@threads</a> should use that instead of the iteration through the subrange and item-wise evaluation of the given range at a specific index. See <a href="https://github.com/JuliaLang/julia/blob/7cdb7793e007229b139c4b0d575c20d75d792765/base/threadingconstructs.jl#L52">threadingconstructs.jl#L52</a>.</p> <p dir="auto">Solution: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178116391" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/18604" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/18604/hovercard" href="https://github.com/JuliaLang/julia/pull/18604">#18604</a></p> <p dir="auto">This becomes relevant when you want to use CartesianRange for parallelised ndimensional loops. CartesianRange flat representation is well defined so selecting subranges (<a href="https://groups.google.com/forum/#!topic/julia-users/uFAqu31gHq4" rel="nofollow">inspiration</a>) using indices of the flat representation is well defined, therefore: they can be split into subranges without any problems. Using that ndimensional loops can be generically parallelised.</p>
<p dir="auto">On the master branch, it looks like neither of these currently works,</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; @Threads.threads for (i,j) in [(1,2),(3,4)] i end ERROR: syntax: invalid syntax in &quot;local&quot; declaration"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">@Threads</span><span class="pl-k">.</span>threads <span class="pl-k">for</span> (i,j) <span class="pl-k">in</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>)] i <span class="pl-k">end</span> ERROR<span class="pl-k">:</span> syntax<span class="pl-k">:</span> invalid syntax <span class="pl-k">in</span> <span class="pl-s"><span class="pl-pds">"</span>local<span class="pl-pds">"</span></span> declaration</pre></div> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; @Threads.threads for i=1:2, j=3:4 i end ERROR: syntax: invalid assignment location &quot;i=1:2&quot;"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">@Threads</span><span class="pl-k">.</span>threads <span class="pl-k">for</span> i<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">2</span>, j<span class="pl-k">=</span><span class="pl-c1">3</span><span class="pl-k">:</span><span class="pl-c1">4</span> i <span class="pl-k">end</span> ERROR<span class="pl-k">:</span> syntax<span class="pl-k">:</span> invalid assignment location <span class="pl-s"><span class="pl-pds">"</span>i=1:2<span class="pl-pds">"</span></span></pre></div> <p dir="auto">I think this might be low hanging enough fruit that even I could figure it out. Would a PR adding this functionality be something the developers are interested in?</p>
1
<p dir="auto">open julia, write <code class="notranslate">@a.&lt;TAB&gt;</code> -&gt; boom. Don't ask what I was trying to achieve, just fat fingers.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; @a.┌ Error: Error in the keymap │ exception = │ LoadError: UndefVarError: @a not defined │ Stacktrace: │ [1] top-level scope │ [2] lower at ./meta.jl:68 [inlined] │ [3] get_type(::Expr, ::Module) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:422 │ [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol(&quot;##21#25&quot;)), ::Module) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:123 │ [5] completions(::String, ::Int64, ::Module) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:699 │ [6] completions(::String, ::Int64) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:569 │ [7] complete_line(::REPL.REPLCompletionProvider, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:349 │ [8] complete_line(::REPL.LineEdit.PromptState, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:322 │ [9] complete_line(::REPL.LineEdit.MIState) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:313 │ [10] edit_tab(::REPL.LineEdit.MIState, ::Any, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:1954 (repeats 2 times) │ [11] (::getfield(REPL.LineEdit, Symbol(&quot;##108#160&quot;)))(::Any, ::Any, ::Vararg{Any,N} where N) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:1995 │ [12] #invokelatest#1 at ./essentials.jl:742 [inlined] │ [13] invokelatest at ./essentials.jl:741 [inlined] │ [14] (::getfield(REPL.LineEdit, Symbol(&quot;##27#28&quot;)){getfield(REPL.LineEdit, Symbol(&quot;##108#160&quot;)),String})(::Any, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:1324 │ [15] prompt!(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:2365 │ [16] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:2268 │ [17] run_frontend(::LineEditREPL, ::REPL.REPLBackendRef) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:1035 │ [18] run_repl(::AbstractREPL, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:192 │ [19] (::getfield(Base, Symbol(&quot;##735#737&quot;)){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:362 │ [20] #invokelatest#1 at ./essentials.jl:742 [inlined] │ [21] invokelatest at ./essentials.jl:741 [inlined] │ [22] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:346 │ [23] exec_options(::Base.JLOptions) at ./client.jl:284 │ [24] _start() at ./client.jl:436 │ in expression starting at none:1 └ @ REPL.LineEdit ~/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:2367"><pre class="notranslate"><code class="notranslate">julia&gt; @a.┌ Error: Error in the keymap │ exception = │ LoadError: UndefVarError: @a not defined │ Stacktrace: │ [1] top-level scope │ [2] lower at ./meta.jl:68 [inlined] │ [3] get_type(::Expr, ::Module) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:422 │ [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##21#25")), ::Module) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:123 │ [5] completions(::String, ::Int64, ::Module) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:699 │ [6] completions(::String, ::Int64) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:569 │ [7] complete_line(::REPL.REPLCompletionProvider, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:349 │ [8] complete_line(::REPL.LineEdit.PromptState, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:322 │ [9] complete_line(::REPL.LineEdit.MIState) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:313 │ [10] edit_tab(::REPL.LineEdit.MIState, ::Any, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:1954 (repeats 2 times) │ [11] (::getfield(REPL.LineEdit, Symbol("##108#160")))(::Any, ::Any, ::Vararg{Any,N} where N) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:1995 │ [12] #invokelatest#1 at ./essentials.jl:742 [inlined] │ [13] invokelatest at ./essentials.jl:741 [inlined] │ [14] (::getfield(REPL.LineEdit, Symbol("##27#28")){getfield(REPL.LineEdit, Symbol("##108#160")),String})(::Any, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:1324 │ [15] prompt!(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:2365 │ [16] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:2268 │ [17] run_frontend(::LineEditREPL, ::REPL.REPLBackendRef) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:1035 │ [18] run_repl(::AbstractREPL, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:192 │ [19] (::getfield(Base, Symbol("##735#737")){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:362 │ [20] #invokelatest#1 at ./essentials.jl:742 [inlined] │ [21] invokelatest at ./essentials.jl:741 [inlined] │ [22] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:346 │ [23] exec_options(::Base.JLOptions) at ./client.jl:284 │ [24] _start() at ./client.jl:436 │ in expression starting at none:1 └ @ REPL.LineEdit ~/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:2367 </code></pre></div>
<p dir="auto">Open julia with REPL, type <code class="notranslate">@nonexist.</code> and hit Tab:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_) | Documentation: https://docs.julialang.org _ _ _| |_ __ _ | Type &quot;?help&quot; for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.7.0-DEV.5138 (2018-05-19 22:52 UTC) _/ |\__'_|_|_|\__'_| | Commit a465d33f6 (1 day old master) |__/ | x86_64-redhat-linux julia&gt; @nonexist.┌ Error: Error in the keymap │ exception = │ LoadError: UndefVarError: @nonexist not defined │ Stacktrace: │ [1] top-level scope │ [2] lower at ./meta.jl:68 [inlined] │ [3] get_type(::Expr, ::Module) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:362 │ [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol(&quot;##15#17&quot;))) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:63 │ [5] completions(::String, ::Int64) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:648 ... "><pre class="notranslate"><code class="notranslate"> _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_) | Documentation: https://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.7.0-DEV.5138 (2018-05-19 22:52 UTC) _/ |\__'_|_|_|\__'_| | Commit a465d33f6 (1 day old master) |__/ | x86_64-redhat-linux julia&gt; @nonexist.┌ Error: Error in the keymap │ exception = │ LoadError: UndefVarError: @nonexist not defined │ Stacktrace: │ [1] top-level scope │ [2] lower at ./meta.jl:68 [inlined] │ [3] get_type(::Expr, ::Module) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:362 │ [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##15#17"))) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:63 │ [5] completions(::String, ::Int64) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:648 ... </code></pre></div>
1
<p dir="auto">Hi,</p> <p dir="auto">I would like to install dart on my work computer, but there is a proxy, and i can't disable it.</p> <p dir="auto">So when i write the command flutter it check for dart update and i got an error.</p> <p dir="auto">Flutter doctor :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="**C:\Users\g594841&gt;flutter doctor Checking Dart SDK version... Downloading Dart SDK from Flutter engine ead227f118077d1f2b57842a32abaf105b573b8 a... Start-BitsTransfer : État HTTP 407 : l'authentification du proxy est demandée. Au caractère C:\Program Files\flutter\bin\internal\update_dart_sdk.ps1:47 : 1 + Start-BitsTransfer - Source $dartSdkUrl -Destination $dartSdkZip + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation : (:) [Start-BitsTransfer], Exc eption + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.Backgrou ndIntelligentTransfer.Management.NewBitsTransferCommand Error: Unable to update Dart SDK. Retrying... Attendre 2 secondes, appuyez sur CTRL+C pour quitter ...**"><pre class="notranslate"><code class="notranslate">**C:\Users\g594841&gt;flutter doctor Checking Dart SDK version... Downloading Dart SDK from Flutter engine ead227f118077d1f2b57842a32abaf105b573b8 a... Start-BitsTransfer : État HTTP 407 : l'authentification du proxy est demandée. Au caractère C:\Program Files\flutter\bin\internal\update_dart_sdk.ps1:47 : 1 + Start-BitsTransfer - Source $dartSdkUrl -Destination $dartSdkZip + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation : (:) [Start-BitsTransfer], Exc eption + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.Backgrou ndIntelligentTransfer.Management.NewBitsTransferCommand Error: Unable to update Dart SDK. Retrying... Attendre 2 secondes, appuyez sur CTRL+C pour quitter ...** </code></pre></div> <p dir="auto">it asks me to authantify the proxy, but i don't know the password. Is there a way to bypass this check and install dart by hand ?</p> <p dir="auto">Thanks</p>
<p dir="auto">I met errors when running flutter doctor. It's related with proxy settings.</p> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\CNFEHU1&gt;flutter doctor Checking Dart SDK version... Downloading Dart SDK 1.24.0-dev.6.7... Start-BitsTransfer : HTTP status 407: Proxy authentication is required. At C:\Users\CNFEHU1\Documents\GitHub\flutter\bin\internal\update_dart_sdk.ps1:4 4 char:19 + Start-BitsTransfer &lt;&lt;&lt;&lt; -Source $dartSdkUrl -Destination $dartSdkZip + CategoryInfo : InvalidOperation: (:) [Start-BitsTransfer], Exce ption + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.Backgrou ndIntelligentTransfer.Management.NewBitsTransferCommand Error: Unable to update Dart SDK. Retrying..."><pre class="notranslate"><code class="notranslate">Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\CNFEHU1&gt;flutter doctor Checking Dart SDK version... Downloading Dart SDK 1.24.0-dev.6.7... Start-BitsTransfer : HTTP status 407: Proxy authentication is required. At C:\Users\CNFEHU1\Documents\GitHub\flutter\bin\internal\update_dart_sdk.ps1:4 4 char:19 + Start-BitsTransfer &lt;&lt;&lt;&lt; -Source $dartSdkUrl -Destination $dartSdkZip + CategoryInfo : InvalidOperation: (:) [Start-BitsTransfer], Exce ption + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.Backgrou ndIntelligentTransfer.Management.NewBitsTransferCommand Error: Unable to update Dart SDK. Retrying... </code></pre></div>
1
<p dir="auto">We should enable ProGuard for Android builds in release mode. It removes unnecessary stuff from the APK and slims down the APK size.</p> <p dir="auto">More information: <a href="https://developer.android.com/studio/build/shrink-code.html" rel="nofollow">https://developer.android.com/studio/build/shrink-code.html</a></p> <p dir="auto">Currently, enabling ProGuard on the Flutter Gallery saves about 24KB. That's not a lot, but that number could grow. For example, with ProGuard enabled, we could start depend on the Android Support Libraries in the engine without bloating our APKs as ProGuard will strip out all unused code. For the accessibility work, I'd like to depend on the Android Support Libraries because they offer much needed convenience around the raw Android APIs and also easily ensure backwards compatibility to older API versions.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jakobr-google/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jakobr-google">@jakobr-google</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mravn-google/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mravn-google">@mravn-google</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tvolkert/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tvolkert">@tvolkert</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Hixie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Hixie">@Hixie</a></p>
<p dir="auto">Environment: Linux (ubuntu 18.04 LTS)</p> <p dir="auto">The <code class="notranslate">flutter</code> command tries to create a <code class="notranslate">~/.flutter</code> directory automatically, and it aborts if that fails.<br> Following the instructions <a href="https://flutter.io/setup-linux/" rel="nofollow">here</a>, I tried to untar the Flutter SDK into my desired <code class="notranslate">~/.flutter</code>, and all the <code class="notranslate">flutter</code> commands did not work.</p> <p dir="auto">I think it should be stated the you should not have that directory.</p>
0
<p dir="auto">Comments to 4518 have multitude of suggestions, but no clear resolution.</p> <p dir="auto">I am on Win10 no CUDA</p> <p dir="auto">Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32<br> Type "help", "copyright", "credits" or "license" for more information.</p> <p dir="auto">import torch<br> Traceback (most recent call last):<br> File "", line 1, in<br> File "C:\Users\dae\AppData\Local\Programs\Python\Python36\lib\site-packages\torch_init_.py", line 78, in<br> from torch._C import *<br> ImportError: DLL load failed: The specified module could not be found.</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">Pytorch-1.0-Cuda-10.0 core dumps on Ubuntu Linux on some cpu types</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <p dir="auto">Spin up an Ubuntu with GPU instance like EC2 p2 or g3</p> <p dir="auto">install Cuda-10, cudnn-7.4.1, NCCL-2.3.7<br> install anaconda3-5.1.0<br> conda create -n pytorch_p27 python=2.7<br> conda install pytorch=1.0.0=py2.7_cuda10.0.130_cudnn7.4.1_1 torchvision=0.2.1 cuda100=1.0 -c pytorch</p> <p dir="auto">example used to replicate:<br> <a href="https://github.com/pytorch/examples/tree/master/mnist">https://github.com/pytorch/examples/tree/master/mnist</a><br> branch 0.4</p> <p dir="auto">cd mnist<br> python main.py</p> <p dir="auto">Error:<br> Illegal instruction (core dumped)</p> <p dir="auto">gdb output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Thread 1 &quot;python&quot; received signal SIGILL, Illegal instruction. 0x00007fffc0798eab in mkldnn::impl::scales_t::set(int, int, float const*) () from /usr/local/lib/libmkldnn.so.0 (gdb) bt #0 0x00007fffde7a4eab in mkldnn::impl::scales_t::set(int, int, float const*) () from /usr/local/lib/libmkldnn.so.0 #1 0x00007fffde7a1b42 in mkldnn_primitive_desc_create_v2 () from /usr/local/lib/libmkldnn.so.0 #2 0x00007fff12114b40 in mkldnn::convolution_forward::primitive_desc::primitive_desc(mkldnn::convolution_forward::desc const&amp;, mkldnn::engine const&amp;) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #3 0x00007fff1210df05 in at::native::mkldnn_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #4 0x00007fff1227dec0 in at::TypeDefault::mkldnn_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #5 0x00007fffcee92d18 in torch::autograd::VariableType::mkldnn_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libtorch.so.1 #6 0x00007fff11fa4f92 in at::native::_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long, bool, bool, bool) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #7 0x00007fff122783ae in at::TypeDefault::_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long, bool, bool, bool) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #8 0x00007fffcef1a7da in torch::autograd::VariableType::_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long, bool, bool, bool) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libtorch.so.1 #9 0x00007fff11f9f7d9 in at::native::convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #10 0x00007fff12278287 in at::TypeDefault::convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #11 0x00007fffcef1f464 in torch::autograd::VariableType::convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libtorch.so.1 #12 0x00007fff11f9f4aa in at::native::conv2d(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #13 0x00007fff122787c0 in at::TypeDefault::conv2d(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #14 0x00007fffcefd8cf6 in torch::autograd::VariableType::conv2d(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libtorch.so.1 #15 0x00007fffe811fd1b in torch::autograd::THPVariable_conv2d(_object*, _object*, _object*) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libtorch_python.so #16 0x00007ffff7adbcc4 in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #17 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #18 0x00007ffff7a66377 in function_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #19 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #20 0x00007ffff7ad64be in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #21 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #22 0x00007ffff7a6628a in function_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #23 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #24 0x00007ffff7a5063d in instancemethod_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #25 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #26 0x00007ffff7a9a8a4 in slot_tp_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #27 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #28 0x00007ffff7ad7b69 in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #29 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #30 0x00007ffff7a66377 in function_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #31 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #32 0x00007ffff7ad64be in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #33 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #34 0x00007ffff7a6628a in function_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #35 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #36 0x00007ffff7a5063d in instancemethod_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #37 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #38 0x00007ffff7a9a8a4 in slot_tp_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #39 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #40 0x00007ffff7ad7b69 in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #41 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #42 0x00007ffff7ada9b8 in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #43 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #44 0x00007ffff7ada9b8 in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #45 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #46 0x00007ffff7add70a in PyEval_EvalCode () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #47 0x00007ffff7af69cd in run_mod () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #48 0x00007ffff7af7b48 in PyRun_FileExFlags () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #49 0x00007ffff7af8d68 in PyRun_SimpleFileExFlags () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #50 0x00007ffff7b0af8c in Py_Main () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #51 0x00007ffff6d22830 in __libc_start_main (main=0x555555554890 &lt;main&gt;, argc=2, argv=0x7fffffffde98, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fffffffde88) at ../csu/libc-start.c:291 #52 0x00005555555548bf in _start () (gdb) n Single stepping until exit from function _ZN6mkldnn4impl8scales_t3setEiiPKf, which has no line number information. Program terminated with signal SIGILL, Illegal instruction. The program no longer exists."><pre class="notranslate"><code class="notranslate">Thread 1 "python" received signal SIGILL, Illegal instruction. 0x00007fffc0798eab in mkldnn::impl::scales_t::set(int, int, float const*) () from /usr/local/lib/libmkldnn.so.0 (gdb) bt #0 0x00007fffde7a4eab in mkldnn::impl::scales_t::set(int, int, float const*) () from /usr/local/lib/libmkldnn.so.0 #1 0x00007fffde7a1b42 in mkldnn_primitive_desc_create_v2 () from /usr/local/lib/libmkldnn.so.0 #2 0x00007fff12114b40 in mkldnn::convolution_forward::primitive_desc::primitive_desc(mkldnn::convolution_forward::desc const&amp;, mkldnn::engine const&amp;) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #3 0x00007fff1210df05 in at::native::mkldnn_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #4 0x00007fff1227dec0 in at::TypeDefault::mkldnn_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #5 0x00007fffcee92d18 in torch::autograd::VariableType::mkldnn_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libtorch.so.1 #6 0x00007fff11fa4f92 in at::native::_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long, bool, bool, bool) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #7 0x00007fff122783ae in at::TypeDefault::_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long, bool, bool, bool) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #8 0x00007fffcef1a7da in torch::autograd::VariableType::_convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long, bool, bool, bool) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libtorch.so.1 #9 0x00007fff11f9f7d9 in at::native::convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #10 0x00007fff12278287 in at::TypeDefault::convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #11 0x00007fffcef1f464 in torch::autograd::VariableType::convolution(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, bool, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libtorch.so.1 #12 0x00007fff11f9f4aa in at::native::conv2d(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #13 0x00007fff122787c0 in at::TypeDefault::conv2d(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libcaffe2.so #14 0x00007fffcefd8cf6 in torch::autograd::VariableType::conv2d(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libtorch.so.1 #15 0x00007fffe811fd1b in torch::autograd::THPVariable_conv2d(_object*, _object*, _object*) () from /home/ubuntu/anaconda3/envs/pytorch_p27/lib/python2.7/site-packages/torch/lib/libtorch_python.so #16 0x00007ffff7adbcc4 in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #17 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #18 0x00007ffff7a66377 in function_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #19 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #20 0x00007ffff7ad64be in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #21 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #22 0x00007ffff7a6628a in function_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #23 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #24 0x00007ffff7a5063d in instancemethod_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #25 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #26 0x00007ffff7a9a8a4 in slot_tp_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #27 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #28 0x00007ffff7ad7b69 in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #29 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #30 0x00007ffff7a66377 in function_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #31 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #32 0x00007ffff7ad64be in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #33 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #34 0x00007ffff7a6628a in function_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #35 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #36 0x00007ffff7a5063d in instancemethod_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #37 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #38 0x00007ffff7a9a8a4 in slot_tp_call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #39 0x00007ffff7a417a3 in PyObject_Call () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #40 0x00007ffff7ad7b69 in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #41 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #42 0x00007ffff7ada9b8 in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #43 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #44 0x00007ffff7ada9b8 in PyEval_EvalFrameEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #45 0x00007ffff7add4e9 in PyEval_EvalCodeEx () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #46 0x00007ffff7add70a in PyEval_EvalCode () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #47 0x00007ffff7af69cd in run_mod () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #48 0x00007ffff7af7b48 in PyRun_FileExFlags () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #49 0x00007ffff7af8d68 in PyRun_SimpleFileExFlags () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #50 0x00007ffff7b0af8c in Py_Main () from /home/ubuntu/anaconda3/envs/pytorch_p27/bin/../lib/libpython2.7.so.1.0 #51 0x00007ffff6d22830 in __libc_start_main (main=0x555555554890 &lt;main&gt;, argc=2, argv=0x7fffffffde98, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fffffffde88) at ../csu/libc-start.c:291 #52 0x00005555555548bf in _start () (gdb) n Single stepping until exit from function _ZN6mkldnn4impl8scales_t3setEiiPKf, which has no line number information. Program terminated with signal SIGILL, Illegal instruction. The program no longer exists. </code></pre></div> <p dir="auto">Program terminated with signal SIGILL, Illegal instruction.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Start training on MNIST dataset</p> <h2 dir="auto">Environment</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> (or fill out the checklist below manually).</p> <p dir="auto">You can get the script and run it with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information... PyTorch version: 1.0.0 Is debug build: No CUDA used to build PyTorch: 10.0.130 OS: Ubuntu 16.04.5 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 CMake version: version 3.5.1 Python version: 2.7 Is CUDA available: No CUDA runtime version: 10.0.130 GPU models and configuration: Could not collect Nvidia driver version: Could not collect cuDNN version: Probably one of the following: /usr/local/cuda-10.0/lib64/libcudnn.so.7.4.1 /usr/local/cuda-10.0/lib64/libcudnn_static.a /usr/local/cuda-8.0/lib64/libcudnn.so.6.0.21 /usr/local/cuda-8.0/lib64/libcudnn_static.a /usr/local/cuda-9.0/lib64/libcudnn.so.7.3.1 /usr/local/cuda-9.0/lib64/libcudnn_static.a /usr/local/cuda-9.2/lib64/libcudnn.so.7.3.1 /usr/local/cuda-9.2/lib64/libcudnn_static.a Versions of relevant libraries: [pip] numpy (1.14.5) [pip] numpydoc (0.8.0) [pip] torch (1.0.0) [pip] torchvision (0.2.1) [conda] blas 1.0 mkl [conda] cuda100 1.0 0 pytorch [conda] mkl 2018.0.2 1 [conda] mkl-service 1.1.2 py27hb2d42c5_4 [conda] mkl_fft 1.0.1 py27h3010b51_0 [conda] mkl_random 1.0.1 py27h629b387_0 [conda] pytorch 1.0.0 py2.7_cuda10.0.130_cudnn7.4.1_1 [cuda100] pytorch [conda] torchvision 0.2.1 py_2 pytorch "><pre class="notranslate"><code class="notranslate">Collecting environment information... PyTorch version: 1.0.0 Is debug build: No CUDA used to build PyTorch: 10.0.130 OS: Ubuntu 16.04.5 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 CMake version: version 3.5.1 Python version: 2.7 Is CUDA available: No CUDA runtime version: 10.0.130 GPU models and configuration: Could not collect Nvidia driver version: Could not collect cuDNN version: Probably one of the following: /usr/local/cuda-10.0/lib64/libcudnn.so.7.4.1 /usr/local/cuda-10.0/lib64/libcudnn_static.a /usr/local/cuda-8.0/lib64/libcudnn.so.6.0.21 /usr/local/cuda-8.0/lib64/libcudnn_static.a /usr/local/cuda-9.0/lib64/libcudnn.so.7.3.1 /usr/local/cuda-9.0/lib64/libcudnn_static.a /usr/local/cuda-9.2/lib64/libcudnn.so.7.3.1 /usr/local/cuda-9.2/lib64/libcudnn_static.a Versions of relevant libraries: [pip] numpy (1.14.5) [pip] numpydoc (0.8.0) [pip] torch (1.0.0) [pip] torchvision (0.2.1) [conda] blas 1.0 mkl [conda] cuda100 1.0 0 pytorch [conda] mkl 2018.0.2 1 [conda] mkl-service 1.1.2 py27hb2d42c5_4 [conda] mkl_fft 1.0.1 py27h3010b51_0 [conda] mkl_random 1.0.1 py27h629b387_0 [conda] pytorch 1.0.0 py2.7_cuda10.0.130_cudnn7.4.1_1 [cuda100] pytorch [conda] torchvision 0.2.1 py_2 pytorch </code></pre></div> <h2 dir="auto">Additional context</h2> <p dir="auto">CPU types where the problem occurs:<br> EC2 instance type - i3.16xlarge</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 64 On-line CPU(s) list: 0-63 Thread(s) per core: 2 Core(s) per socket: 16 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 79 Model name: Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz Stepping: 1 CPU MHz: 2199.914 CPU max MHz: 3000.0000 CPU min MHz: 1200.0000 BogoMIPS: 4600.08 Hypervisor vendor: Xen Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 46080K NUMA node0 CPU(s): 0-15,32-47 NUMA node1 CPU(s): 16-31,48-63 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq monitor est ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx xsaveopt ida"><pre class="notranslate"><code class="notranslate">Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 64 On-line CPU(s) list: 0-63 Thread(s) per core: 2 Core(s) per socket: 16 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 79 Model name: Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz Stepping: 1 CPU MHz: 2199.914 CPU max MHz: 3000.0000 CPU min MHz: 1200.0000 BogoMIPS: 4600.08 Hypervisor vendor: Xen Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 46080K NUMA node0 CPU(s): 0-15,32-47 NUMA node1 CPU(s): 16-31,48-63 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq monitor est ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx xsaveopt ida </code></pre></div> <p dir="auto">EC2 instance type - c4.8xlarge</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 36 On-line CPU(s) list: 0-35 Thread(s) per core: 2 Core(s) per socket: 9 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 63 Model name: Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz Stepping: 2 CPU MHz: 1201.234 CPU max MHz: 3500.0000 CPU min MHz: 1200.0000 BogoMIPS: 5800.10 Hypervisor vendor: Xen Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 25600K NUMA node0 CPU(s): 0-8,18-26 NUMA node1 CPU(s): 9-17,27-35 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq monitor est ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm invpcid_single kaiser fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt ida"><pre class="notranslate"><code class="notranslate">Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 36 On-line CPU(s) list: 0-35 Thread(s) per core: 2 Core(s) per socket: 9 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 63 Model name: Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz Stepping: 2 CPU MHz: 1201.234 CPU max MHz: 3500.0000 CPU min MHz: 1200.0000 BogoMIPS: 5800.10 Hypervisor vendor: Xen Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 25600K NUMA node0 CPU(s): 0-8,18-26 NUMA node1 CPU(s): 9-17,27-35 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq monitor est ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm invpcid_single kaiser fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt ida </code></pre></div>
0
<p dir="auto">Hi guys!</p> <p dir="auto">Hope you can explain us some strange behavior that we are already solved in our ugly way.</p> <p dir="auto">We had some periodic tasks that used default queue <code class="notranslate">celery</code>. We have changed <code class="notranslate">CELERY_DEFAULT_QUEUE</code> to non-default. We using following configuration: Django + Celery + Redis. We using <code class="notranslate">celerybeat-schedule</code> file by default and it's wasn't ever cleaned. Also we didn't clear Redis after changing that variable.<br> So we faced with that error and researched that our Redis raised up to limits of <code class="notranslate">used_memory</code> and our previous default queue <code class="notranslate">celery</code> was about 500Mb. So it's looks like it contains only periodic tasks and queue always growing up and never consumed by workers.</p> <p dir="auto">So our dirty solution: we manually cleaned <code class="notranslate">celery</code> queue from Redis and deleted one <code class="notranslate">celery\x06\x16\x06\x16celery</code> value from <code class="notranslate">_kombu.binding.celery</code> set in Redis. So it's looks like fixed now.</p> <p dir="auto">Could you please explain or give us any feedback about the reasons and any kind of solution about this issue.</p> <p dir="auto">Kind regards,<br> Alexander</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">I am using the celery add_periodic_task function to create two periodic tasks which take an argument on function call, when I call the function the first time it's working perfectly fine (example: printing something every 10 sec ) on the second function call the value has been updated to second and the first function call is not at all working.</p> <p dir="auto">Question: How can I keep my first set of periodic task keep running with the addition of a second set<br> Please find below code :<br> <strong>create_app.py :</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from celery import Celery from celery.schedules import crontab from flask import Flask from celery import Celery from datetime import timedelta app_c = Flask(__name__) app_c.config['CELERY_BACKEND'] = &quot;mongodb://127.0.0.1:27017/mycelery&quot; app_c.config['CELERY_BROKER_URL'] = &quot;mongodb://127.0.0.1:27017/mycelery&quot; app_c.config['timezone'] = 'UTC' def make_celery(app_c): celery = Celery(app_c.import_name, backend=app_c.config['CELERY_BACKEND'], broker=app_c.config['CELERY_BROKER_URL']) celery.conf.update(app_c.config) TaskBase = celery.Task class ContextTask(TaskBase): abstract = True def __call__(self, *args, **kwargs): with app_c.app_context(): return TaskBase.__call__(self, *args, **kwargs) celery.Task = ContextTask return celery celery_app_c = make_celery(app_c) "><pre class="notranslate"><code class="notranslate">from celery import Celery from celery.schedules import crontab from flask import Flask from celery import Celery from datetime import timedelta app_c = Flask(__name__) app_c.config['CELERY_BACKEND'] = "mongodb://127.0.0.1:27017/mycelery" app_c.config['CELERY_BROKER_URL'] = "mongodb://127.0.0.1:27017/mycelery" app_c.config['timezone'] = 'UTC' def make_celery(app_c): celery = Celery(app_c.import_name, backend=app_c.config['CELERY_BACKEND'], broker=app_c.config['CELERY_BROKER_URL']) celery.conf.update(app_c.config) TaskBase = celery.Task class ContextTask(TaskBase): abstract = True def __call__(self, *args, **kwargs): with app_c.app_context(): return TaskBase.__call__(self, *args, **kwargs) celery.Task = ContextTask return celery celery_app_c = make_celery(app_c) </code></pre></div> <p dir="auto"><strong>add_periodic.py :</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from flask import Flask from celery import Celery from datetime import timedelta from tasks import poll, send from create_app import celery_app_c import time print(celery_app_c) def add_task(credential): print(&quot;in add task&quot;) celery_app_c.add_periodic_task(10.0,poll.s(credential),name='poll') celery_app_c.add_periodic_task(20.0,send.s(credential),name='send') add_task('hello') time.sleep(20) add_task('world')"><pre class="notranslate"><code class="notranslate">from flask import Flask from celery import Celery from datetime import timedelta from tasks import poll, send from create_app import celery_app_c import time print(celery_app_c) def add_task(credential): print("in add task") celery_app_c.add_periodic_task(10.0,poll.s(credential),name='poll') celery_app_c.add_periodic_task(20.0,send.s(credential),name='send') add_task('hello') time.sleep(20) add_task('world') </code></pre></div> <p dir="auto"><strong>tasks.py:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import time from celery import Celery from celery.utils.log import get_task_logger from create_app import celery_app_c @celery_app_c.task(name='poll') def poll(arg): content_poll(arg) uri_poll(arg) @celery_app_c.task(name='send') def send(arg): graylog_send(arg) def content_poll(arg): print(&quot;polling contens ....&quot;,arg) def uri_poll(arg): print(&quot;polling uri .....&quot;,arg) def graylog_send(arg): print(&quot;sending to gl ....... &quot;,arg) "><pre class="notranslate"><code class="notranslate">import time from celery import Celery from celery.utils.log import get_task_logger from create_app import celery_app_c @celery_app_c.task(name='poll') def poll(arg): content_poll(arg) uri_poll(arg) @celery_app_c.task(name='send') def send(arg): graylog_send(arg) def content_poll(arg): print("polling contens ....",arg) def uri_poll(arg): print("polling uri .....",arg) def graylog_send(arg): print("sending to gl ....... ",arg) </code></pre></div> <p dir="auto">running the following code with : <strong>celery -A add_periodic.celery_app_c worker -B --loglevel=INFO</strong></p> <p dir="auto">Note: I need to keep running the periodic task with both set of argument passed<br> Please let me know what I am missing here</p>
0
<p dir="auto">Currently --allow-net=domain/A has the same effect as --allow-net=domain. It would be nice to be able to only allow network access to an URL with a given domain &amp; path prefix.</p>
<p dir="auto">Deno should allow URLs to be allowed in <code class="notranslate">--allow-net</code> and or other than domain names and ports pair.</p> <p dir="auto">As of current to run this simple JavaScript file:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fetch('http://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/init.sh/').then( (resp) =&gt; { console.log(resp) } )"><pre class="notranslate"><span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-s">'http://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/init.sh/'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span> <span class="pl-kos">(</span><span class="pl-s1">resp</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">resp</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">)</span></pre></div> <p dir="auto">I would need to allow all URLs possible with <code class="notranslate">gist.githubusercontent.com</code>, or allow any Domain names URL(which both are not fully secure):</p> <p dir="auto">All URLs possible with <code class="notranslate">gist.githubusercontent.com</code>:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno --allow-net=&quot;gist.githubusercontent.com&quot; test.js Does compile Response { responce data... }"><pre class="notranslate">deno --allow-net=<span class="pl-s"><span class="pl-pds">"</span>gist.githubusercontent.com<span class="pl-pds">"</span></span> test.js Does compile Response { responce data... }</pre></div> <p dir="auto">Allow any Domain names URL:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno --allow-net test.js Does compile Response { responce data... } "><pre class="notranslate">deno --allow-net test.js Does compile Response { responce data... } </pre></div> <p dir="auto">And if I try running the secure way, I get en error:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ deno --allow-net=&quot;http://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/init.sh&quot; test.js Does compile error: Uncaught PermissionDenied: network access to &quot;http://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/init.sh/&quot;, run again with the --allow-net flag at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11) at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10) at async fetch ($deno$/web/fetch.ts:591:27)"><pre class="notranslate">$ deno --allow-net=<span class="pl-s"><span class="pl-pds">"</span>http://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/init.sh<span class="pl-pds">"</span></span> test.js Does compile error: Uncaught PermissionDenied: network access to <span class="pl-s"><span class="pl-pds">"</span>http://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/init.sh/<span class="pl-pds">"</span></span>, run again with the --allow-net flag at unwrapResponse (<span class="pl-smi">$deno</span>$/ops/dispatch_json.ts:43:11) at Object.sendAsync (<span class="pl-smi">$deno</span>$/ops/dispatch_json.ts:98:10) at async fetch (<span class="pl-smi">$deno</span>$/web/fetch.ts:591:27)</pre></div> <p dir="auto">Thanks,<br> Dex Devlon</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jbrisbin" rel="nofollow">Jon Brisbin</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8201?redirect=false" rel="nofollow">SPR-8201</a></strong> and commented</p> <p dir="auto">The ApplicationEvent dispatcher should take generics information into account when deciding whether to call a particular <code class="notranslate">ApplicationListener</code>. This would allow the user to register an <code class="notranslate">ApplicationListener</code> for their event subclass like this:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public class BeforeSaveEvent&lt;T&gt; extends ApplicationEvent {} public class MyListener implements ApplicationListener&lt;BeforeSaveEvent&lt;MyDomainObject&gt;&gt;{}"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">BeforeSaveEvent</span>&lt;<span class="pl-smi">T</span>&gt; <span class="pl-k">extends</span> <span class="pl-smi">ApplicationEvent</span> {} <span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">MyListener</span> <span class="pl-k">implements</span> <span class="pl-smi">ApplicationListener</span>&lt;<span class="pl-smi">BeforeSaveEvent</span>&lt;<span class="pl-smi">MyDomainObject</span>&gt;&gt;{}</pre></div> <p dir="auto">When a <code class="notranslate">BeforeSaveEvent&lt;MyDomainObject&gt;</code> event is dispatched, only those <code class="notranslate">ApplicationListener</code> that have specified <code class="notranslate">MyDomainObject</code> in the generics clause will be dispatched to the configured listener (such as <code class="notranslate">MyListener</code>)</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</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="398163801" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15847" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15847/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15847">#15847</a> improve ApplicationListener to support generic types (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto">2 votes, 6 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jmather" rel="nofollow">Julie Mather</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4174?redirect=false" rel="nofollow">SPR-4174</a></strong> and commented</p> <p dir="auto">If you look at the MailSendException class' printStackTrace methods, note the first line:<br> if (this.messageExceptions.length == 0) {</p> <p dir="auto">The messageExceptions variable is only not null if you call the MailSendException(Map failedMessages) constructor. The other two constructors do not initialize the messageExceptions variable to a value and thus when printStackTrace is called a NullPointerException is thrown. Our code (and one of our unit tests that exposed this to me) calls:<br> throw new MailSendException("boom");<br> And thus breaks.</p> <p dir="auto">It's really as simple as not referencing messageExceptions directly but using the getter instead, which is what it's there for.... It has a null check in it and will return an empty array if the variable hasn't been initialized yet. Nicely done, it's just not being used.</p> <p dir="auto">And by the way, that you very much for 2.5. It was quite easy to migrate to.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5 final</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="398082894" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8817" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8817/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8817">#8817</a> NullPointerException in MailSendException (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<p dir="auto">Sorry, closed on accident.</p> <p dir="auto">To get this to work I had to do other things, you can see from my gist: <a href="http://gist.github.com/422460">http://gist.github.com/422460</a></p> <p dir="auto">It would be nice if this was done automatically so I could just use test_request_context the way the documentation states.</p>
<p dir="auto">To get this to work I had to do other things, you can see from my gist: <a href="http://gist.github.com/422460">http://gist.github.com/422460</a></p> <p dir="auto">It would be nice if this was done automatically so I could just use test_request_context the way the documentation states.</p>
1
<p dir="auto">I found a very, very small error in pubspec.yaml.</p> <h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Create fresh flutter project, and</p> <ol dir="auto"> <li>Create <code class="notranslate">Image.asset</code> in main.dart</li> <li>Uncomment the <code class="notranslate">assets</code> section to add a sample image asset</li> <li>Try to run app</li> </ol> <p dir="auto">Then, an error occurs: <code class="notranslate">Error on line 40, column 4 of pubspec.yaml: Expected a key while parsing a block mapping. assets: ^ Unable to reload your application because "flutter packages get" failed to update package dependencies. Exception: pub get failed (65)</code></p> <h2 dir="auto">Solution</h2> <p dir="auto">All you have to do to fix it is to add one space before <code class="notranslate">uses-material-design: true</code>. By default intendation is broken.</p> <p dir="auto">PS When you know how to fix it, it takes 3 seconds, but you still need some time to find a solution on the Internet. But it isn't what we would call "seamless experience". Also, as you could see, error log doesn't give usable hint</p>
<p dir="auto">Background: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="277671100" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/13242" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/13242/hovercard" href="https://github.com/flutter/flutter/issues/13242">#13242</a> covers a specific memory consumption issue (which we'll continue looking into). I'm opening this bug for a more general discussion of the sorts of finer-grained control over image caching and handling that developers would like to see from Flutter.</p> <p dir="auto">Today, the only real control the framework provides is the ability to set <a href="https://docs.flutter.io/flutter/painting/ImageCache-class.html#maximumSize" rel="nofollow">ImageCache.maximumSize</a> to indicate the maximum number of images to store in Flutter's image cache.</p> <p dir="auto">In terms of the really basic things, a few thoughts:</p> <ul dir="auto"> <li>finer-grained control over cache eviction</li> <li>finer-grained control over cache strategy (e.g. local storage, store scaled/compressed)</li> <li>de-duplication of identical source images</li> </ul> <p dir="auto">It would be useful to understand what features developers would like to see from the framework and what priorities people have around image caching.</p>
0
<h3 dir="auto">Problem description</h3> <p dir="auto">The <em>Nearby</em> entry uses inline SVG and is left-aligned in contrast to the both other icons, which are centered.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7819991/17661020/ea0618de-62dc-11e6-8fe9-5e68401ed364.png"><img src="https://cloud.githubusercontent.com/assets/7819991/17661020/ea0618de-62dc-11e6-8fe9-5e68401ed364.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Have a look at <a href="http://www.material-ui.com/#/components/bottom-navigation" rel="nofollow">http://www.material-ui.com/#/components/bottom-navigation</a></p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: v0.5.14</li> <li>React: v15.3.0 (?)</li> <li>Browser: Chrome Canary v54</li> </ul> <h3 dir="auto">Possible fix</h3> <p dir="auto">If I add <code class="notranslate">margin: auto;</code> to the SVG element in the rendered code (Inspect), the icon is centered. I'm not sure how to apply this fix to the source code however, as I'm unfamiliar with React / MUI.</p> <p dir="auto"><a href="https://github.com/callemall/material-ui/blob/master/docs/src/app/components/pages/components/BottomNavigation/ExampleSimple.js">https://github.com/callemall/material-ui/blob/master/docs/src/app/components/pages/components/BottomNavigation/ExampleSimple.js</a></p>
<h3 dir="auto">Problem description</h3> <p dir="auto">SVG icons are not centered when used within BottomNavigation elements.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/279720/17645049/dc36d80e-614e-11e6-83dc-be16cb18fe91.png"><img width="384" alt="screen shot 2016-08-13 at 12 08 13 pm" src="https://cloud.githubusercontent.com/assets/279720/17645049/dc36d80e-614e-11e6-83dc-be16cb18fe91.png" style="max-width: 100%;"></a></p>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/693487/3640465/85fdd3a2-10a1-11e4-87ac-586fa42cd585.png"><img src="https://cloud.githubusercontent.com/assets/693487/3640465/85fdd3a2-10a1-11e4-87ac-586fa42cd585.png" alt="atom-issue" style="max-width: 100%;"></a></p> <p dir="auto">It's a very light bug. When I start atom ide, it correctly picks up where I left, but scroll-bars as you can see are not correctly rendered. If I click on another tab, scroll-bars now gets rendered correctly. Same happens with tree-view, I have to press Ctrl-k + Ctrl-b to hide it first and then again Ctrl-k + Ctrl-b to show it again which renders scroll-bars properly.</p> <p dir="auto">Thought, it might help :)</p>
<p dir="auto">When I open the menu for the first time, there are ampersands ("&amp;") in from of shortcut characters. When I hover away and back again, they disappear:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11575/4666603/0a9f0ea8-5555-11e4-9ff6-26e9b11c5e81.gif"><img src="https://cloud.githubusercontent.com/assets/11575/4666603/0a9f0ea8-5555-11e4-9ff6-26e9b11c5e81.gif" alt="d53ly" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">(Sorry for the crappy GIF that looks like it is the other way around and the ampersands appear only after hovering away and back again.)</p>
0
<p dir="auto">In latest version v1.0.0-beta.33 I can see several problems in IE 11.<br> Problems can even be seen on demo pages</p> <ul dir="auto"> <li>[x ] I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Behaviour should be o.k. in all browsers</p> <h2 dir="auto">Current Behavior</h2> <ol dir="auto"> <li>Layout Problems. Please see below</li> <li>As a side note: I am experiencing much slower performance in IE11 than in other browsers. Unfortunately I don't know since which version this is the case. As I don't have a codesandbox (don't have the time) to reproduce, you can also ignore this side note.</li> </ol> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto"><a href="https://material-ui.com/demos/selection-controls/" rel="nofollow">https://material-ui.com/demos/selection-controls/</a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25104854/36196357-ce513526-1170-11e8-9048-8d801521e48a.png"><img src="https://user-images.githubusercontent.com/25104854/36196357-ce513526-1170-11e8-9048-8d801521e48a.png" alt="grafik" style="max-width: 100%;"></a></p> <p dir="auto"><a href="https://material-ui.com/demos/expansion-panels/" rel="nofollow">https://material-ui.com/demos/expansion-panels/</a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25104854/36196320-ac58a44a-1170-11e8-8110-2831a4060f22.png"><img src="https://user-images.githubusercontent.com/25104854/36196320-ac58a44a-1170-11e8-8110-2831a4060f22.png" alt="grafik" style="max-width: 100%;"></a></p> <ol dir="auto"> <li></li> <li></li> <li></li> <li></li> </ol> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>v1.0.0-beta.33</td> </tr> <tr> <td>React</td> <td>^16.0.0</td> </tr> <tr> <td>browser</td> <td>IE11</td> </tr> <tr> <td>etc</td> <td></td> </tr> <tr> <td>Not sure if</td> <td></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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Navigate the Material-UI 1.0 docs using Internet Explorer 11 (useful to check component demos, etc).</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">An error is thrown in the console and unable to click on the drawer navigation.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177476/36067232-4794a9dc-0e87-11e8-84b0-328a1cff391b.png"><img src="https://user-images.githubusercontent.com/177476/36067232-4794a9dc-0e87-11e8-84b0-328a1cff391b.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Go to <a href="https://www.material-ui.com" rel="nofollow">https://www.material-ui.com</a> using Internet Explorer 11 and attempt to click on a link on the drawer.</p> <h2 dir="auto">Context</h2> <p dir="auto">Check component compatibility with Internet Explorer 11.</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>v1.0.0-beta.33</td> </tr> <tr> <td>browser</td> <td>Internet Explorer 11</td> </tr> </tbody> </table>
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.18362.449] Windows Terminal version (if applicable): No. Any other software? No."><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.449] Windows Terminal version (if applicable): No. Any other software? No. </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open cmd.exe.</li> <li>Go to window properties, "Colors" page.</li> <li>Set "Screen Background" value to exactly <code class="notranslate">128 128 128</code>.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Cursor is visible no matter what background color is.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Now you see it, now you don't.</p> <h1 dir="auto"></h1> <p dir="auto">Current "inverse" logic is too straightforward - it literally takes the inverse of the background, and for <code class="notranslate">128 128 128</code> the inverse is... <code class="notranslate">127 127 127</code>, which is basically the same thing. Oops.</p> <p dir="auto">Note: <strong>Legacy console handles this corner case properly, as well as all Windows versions prior to 10</strong>.</p> <p dir="auto">Also, legacy console inversion algorithm is not exactly "inverse" - the colors are slightly different (and subjectively more pleasant). Is it possible to get this classic inversion in the modern console please?</p> <p dir="auto">This issue affects a text editor app that uses console color <code class="notranslate">8</code> (<code class="notranslate">128 128 128</code> in classic color scheme) to highlight various parts of text (e.g. current line). Sudden cursor disappearing is confusing and annoying.</p> <p dir="auto">Example:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11453922/69289150-871cee00-0bf3-11ea-8893-219d107a5ca5.png"><img src="https://user-images.githubusercontent.com/11453922/69289150-871cee00-0bf3-11ea-8893-219d107a5ca5.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I have not been able to find a way to open Terminal as a different user. I can run Terminal as an administrator, but that is not the option I am looking for.</p> <p dir="auto">Is running Terminal as a different user not possible because it is a UWP app?</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">win_chocolatey</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">2.4.2.0</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">A single double quotes are ignored:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Install ImageMagick win_chocolatey: name: imagemagick.app install_args: &quot;/DIR=\&quot;{{ ansible_env['ProgramFiles'] }}\\ImageMagick\&quot;&quot;"><pre class="notranslate"><code class="notranslate">- name: Install ImageMagick win_chocolatey: name: imagemagick.app install_args: "/DIR=\"{{ ansible_env['ProgramFiles'] }}\\ImageMagick\"" </code></pre></div> <p dir="auto">A working workaround is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Install ImageMagick win_chocolatey: name: imagemagick.app install_args: &quot;/DIR=\&quot;\&quot;{{ ansible_env['ProgramFiles'] }}\\ImageMagick\&quot;\&quot;&quot;"><pre class="notranslate"><code class="notranslate">- name: Install ImageMagick win_chocolatey: name: imagemagick.app install_args: "/DIR=\"\"{{ ansible_env['ProgramFiles'] }}\\ImageMagick\"\"" </code></pre></div> <p dir="auto">This seems like a bug as single double quotes are ignored (checked against chocolatey log), but they should be probably double somewhere in the module.</p>
<h2 dir="auto">BUG REPORT</h2> <p dir="auto">I'm probing a freshly installed Archlinux installation on a Raspberry PI 2 like so:</p> <p dir="auto"><code class="notranslate">ansible -i PI2 arch -m setup -c paramiko -k -u alarm -vvvv</code></p> <p dir="auto">This reads to me: Fire the setup module against the IP connecting with the user "alarm" asking for the password of this specific user. However the user that eventually attempts to connect is "root".</p> <p dir="auto">Here's the debug response:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Loaded callback minimal of type stdout, v2.0 &lt;192.168.1.18&gt; ESTABLISH CONNECTION FOR USER: root on PORT 22 TO 192.168.1.18 192.168.1.18 | UNREACHABLE! =&gt; { &quot;changed&quot;: false, &quot;msg&quot;: &quot;ERROR! Authentication failed.&quot;, &quot;unreachable&quot;: true }"><pre class="notranslate"><code class="notranslate">Loaded callback minimal of type stdout, v2.0 &lt;192.168.1.18&gt; ESTABLISH CONNECTION FOR USER: root on PORT 22 TO 192.168.1.18 192.168.1.18 | UNREACHABLE! =&gt; { "changed": false, "msg": "ERROR! Authentication failed.", "unreachable": true } </code></pre></div> <p dir="auto">The inventory looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[arch] 192.168.1.18 ansible.cfg is: [defaults] host_key_checking = False private_key_file = /Users/xyz/.ssh/id_rsa_ansible deprecation_warnings = True system_warnings = True retry_files_enabled = False [paramiko_connection] record_host_keys=False [ssh_connection] pipelining = True"><pre class="notranslate"><code class="notranslate">[arch] 192.168.1.18 ansible.cfg is: [defaults] host_key_checking = False private_key_file = /Users/xyz/.ssh/id_rsa_ansible deprecation_warnings = True system_warnings = True retry_files_enabled = False [paramiko_connection] record_host_keys=False [ssh_connection] pipelining = True </code></pre></div> <p dir="auto">The expected result, as version 1.9.4 delivers is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ⤷ ansible --version ansible 1.9.4 configured module search path = None (ANS19TEST)~/Documents/Code/VENVS/ANS19TEST"><pre class="notranslate"><code class="notranslate"> ⤷ ansible --version ansible 1.9.4 configured module search path = None (ANS19TEST)~/Documents/Code/VENVS/ANS19TEST </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="⤷ ansible -i PI2 arch -m setup -c paramiko -k -u alarm -vvvv SSH password: &lt;192.168.1.18&gt; ESTABLISH CONNECTION FOR USER: alarm on PORT 22 TO 192.168.1.18 &lt;192.168.1.18&gt; REMOTE_MODULE setup"><pre class="notranslate"><code class="notranslate">⤷ ansible -i PI2 arch -m setup -c paramiko -k -u alarm -vvvv SSH password: &lt;192.168.1.18&gt; ESTABLISH CONNECTION FOR USER: alarm on PORT 22 TO 192.168.1.18 &lt;192.168.1.18&gt; REMOTE_MODULE setup </code></pre></div> <p dir="auto">The control machine is a MBA on 10.11.3. The command was run against a Raspberry PI 2 running Archlinux.<br> Cheers<br> Ralph</p>
0
<p dir="auto">fyi <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dbaeumer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dbaeumer">@dbaeumer</a></p>
<p dir="auto">I am using VSC on Windows while developing for Linux-based webserver. Also, several people on my team are using Macs. It is very annoying for us to switch end of line sequence for each new file. It would be great if there was a user setting to ensure all new files are created with a certain eol sequence.</p>
1
<p dir="auto">Hello All,</p> <p dir="auto">My spider is created by scrapy 1.6.0.<br> These days, the scrapy updated to 1.7.1, and we found that it cannot support the code build by 1.6.0.</p> <p dir="auto">Here is the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/usr/bin/scrapy&quot;, line 6, in &lt;module&gt; from scrapy.cmdline import execute File &quot;/usr/lib64/python2.7/site-packages/scrapy/cmdline.py&quot;, line 10, in &lt;module&gt; from scrapy.crawler import CrawlerProcess File &quot;/usr/lib64/python2.7/site-packages/scrapy/crawler.py&quot;, line 11, in &lt;module&gt; from scrapy.core.engine import ExecutionEngine File &quot;/usr/lib64/python2.7/site-packages/scrapy/core/engine.py&quot;, line 14, in &lt;module&gt; from scrapy.core.scraper import Scraper File &quot;/usr/lib64/python2.7/site-packages/scrapy/core/scraper.py&quot;, line 18, in &lt;module&gt; from scrapy.core.spidermw import SpiderMiddlewareManager File &quot;/usr/lib64/python2.7/site-packages/scrapy/core/spidermw.py&quot;, line 13, in &lt;module&gt; from scrapy.utils.conf import build_component_list File &quot;/usr/lib64/python2.7/site-packages/scrapy/utils/conf.py&quot;, line 4, in &lt;module&gt; import configparser ImportError: No module named configparser"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/usr/bin/scrapy", line 6, in &lt;module&gt; from scrapy.cmdline import execute File "/usr/lib64/python2.7/site-packages/scrapy/cmdline.py", line 10, in &lt;module&gt; from scrapy.crawler import CrawlerProcess File "/usr/lib64/python2.7/site-packages/scrapy/crawler.py", line 11, in &lt;module&gt; from scrapy.core.engine import ExecutionEngine File "/usr/lib64/python2.7/site-packages/scrapy/core/engine.py", line 14, in &lt;module&gt; from scrapy.core.scraper import Scraper File "/usr/lib64/python2.7/site-packages/scrapy/core/scraper.py", line 18, in &lt;module&gt; from scrapy.core.spidermw import SpiderMiddlewareManager File "/usr/lib64/python2.7/site-packages/scrapy/core/spidermw.py", line 13, in &lt;module&gt; from scrapy.utils.conf import build_component_list File "/usr/lib64/python2.7/site-packages/scrapy/utils/conf.py", line 4, in &lt;module&gt; import configparser ImportError: No module named configparser </code></pre></div> <p dir="auto">Would you please take time to check the issue?</p> <p dir="auto">Appreciate for your help in advance.</p> <p dir="auto">Thank you.</p>
<p dir="auto">I've run <code class="notranslate">pip install scrapy</code>, but it doesn't seem that this has been installed properly.</p> <p dir="auto">Now when I ran <code class="notranslate">scrapy</code> on CLI, it ends up in the following message.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/usr/bin/scrapy&quot;, line 6, in &lt;module&gt; from scrapy.cmdline import execute File &quot;/usr/lib64/python2.7/site-packages/scrapy/cmdline.py&quot;, line 10, in &lt;module&gt; from scrapy.crawler import CrawlerProcess File &quot;/usr/lib64/python2.7/site-packages/scrapy/crawler.py&quot;, line 11, in &lt;module&gt; from scrapy.core.engine import ExecutionEngine File &quot;/usr/lib64/python2.7/site-packages/scrapy/core/engine.py&quot;, line 14, in &lt;module&gt; from scrapy.core.scraper import Scraper File &quot;/usr/lib64/python2.7/site-packages/scrapy/core/scraper.py&quot;, line 18, in &lt;module&gt; from scrapy.core.spidermw import SpiderMiddlewareManager File &quot;/usr/lib64/python2.7/site-packages/scrapy/core/spidermw.py&quot;, line 13, in &lt;module&gt; from scrapy.utils.conf import build_component_list File &quot;/usr/lib64/python2.7/site-packages/scrapy/utils/conf.py&quot;, line 4, in &lt;module&gt; import configparser ImportError: No module named configparser"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/usr/bin/scrapy", line 6, in &lt;module&gt; from scrapy.cmdline import execute File "/usr/lib64/python2.7/site-packages/scrapy/cmdline.py", line 10, in &lt;module&gt; from scrapy.crawler import CrawlerProcess File "/usr/lib64/python2.7/site-packages/scrapy/crawler.py", line 11, in &lt;module&gt; from scrapy.core.engine import ExecutionEngine File "/usr/lib64/python2.7/site-packages/scrapy/core/engine.py", line 14, in &lt;module&gt; from scrapy.core.scraper import Scraper File "/usr/lib64/python2.7/site-packages/scrapy/core/scraper.py", line 18, in &lt;module&gt; from scrapy.core.spidermw import SpiderMiddlewareManager File "/usr/lib64/python2.7/site-packages/scrapy/core/spidermw.py", line 13, in &lt;module&gt; from scrapy.utils.conf import build_component_list File "/usr/lib64/python2.7/site-packages/scrapy/utils/conf.py", line 4, in &lt;module&gt; import configparser ImportError: No module named configparser </code></pre></div> <p dir="auto">I googled <code class="notranslate">configparser</code>, and apparently this used to be called <code class="notranslate">ConfigParser</code>.</p> <p dir="auto">Has anyone seen this issue?<br> Any advice will be appreciated.</p>
1
<p dir="auto">the function of short cut guide does work, when I press the windows key, threre is no reaction.</p>
<h1 dir="auto">Environment</h1> <p dir="auto">Microsoft Windows [Version 10.0.18363.836]<br> PowerToys [Version v0.17.0]<br> Shortcut Guide</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">When I hold [Win], Shortcut Guide is not appear.<br> Sometimes it doesn't work suddenly.<br> This bug sometimes fix suddenly or doesn't fix until reboot windows.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Hold [Win] then appear Shortcut Guide.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Hold [Win] but there is no actions.<br> Release [Win] then appear Start menu.</p> <p dir="auto">It doesn't help me to reboot PowerToys or Toggle ShortcutGuide.<br> Other apps (e.g. Window Walker) work well, but FancyZone doesn't work sometimes at the same time.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto">It is my setting.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42331656/82132874-93d77300-981f-11ea-938f-03f11d12e927.png"><img src="https://user-images.githubusercontent.com/42331656/82132874-93d77300-981f-11ea-938f-03f11d12e927.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42331656/82132875-9e920800-981f-11ea-96ba-d11b70b3425e.png"><img src="https://user-images.githubusercontent.com/42331656/82132875-9e920800-981f-11ea-96ba-d11b70b3425e.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class A(Base): __tablename__ = 'a' id1 = Column(Integer, primary_key=True) id2 = Column(Integer, primary_key=True) class B(Base): __tablename__ = 'b' id = Column(Integer, primary_key=True) a_id1 = Column(Integer, ForeignKey('a.id1')) a = relationship( &quot;A&quot;, uselist=False, primaryjoin=and_( a_id1 == A.id1, A.id2 == bindparam(&quot;my_bindparam&quot;, callable_=lambda: 2))) configure_mappers() assert not B.a.property.strategy.use_get e = create_engine(&quot;sqlite://&quot;, echo=True) Base.metadata.create_all(e) s = Session(e) s.add(A(id1=1, id2=1)) s.add(A(id1=1, id2=2)) s.add(B(a_id1=1)) s.commit() b1 = s.query(B).first() print b1.a "><pre class="notranslate"><code class="notranslate">from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class A(Base): __tablename__ = 'a' id1 = Column(Integer, primary_key=True) id2 = Column(Integer, primary_key=True) class B(Base): __tablename__ = 'b' id = Column(Integer, primary_key=True) a_id1 = Column(Integer, ForeignKey('a.id1')) a = relationship( "A", uselist=False, primaryjoin=and_( a_id1 == A.id1, A.id2 == bindparam("my_bindparam", callable_=lambda: 2))) configure_mappers() assert not B.a.property.strategy.use_get e = create_engine("sqlite://", echo=True) Base.metadata.create_all(e) s = Session(e) s.add(A(id1=1, id2=1)) s.add(A(id1=1, id2=2)) s.add(B(a_id1=1)) s.commit() b1 = s.query(B).first() print b1.a </code></pre></div> <p dir="auto">first, use_get is improperly detected. We would need to compare for something like the "callable" as well (we don't seem to be able to compare for the "key", not sure why):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py index e277b28..1d19707 100644 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@ -1142,7 +1142,8 @@ class BindParameter(ColumnElement): return isinstance(other, BindParameter) \ and self.type._compare_type_affinity(other.type) \ - and self.value == other.value + and self.value == other.value \ + and self.callable == other.callable def __getstate__(self): &quot;&quot;&quot;execute a deferred value for serialization purposes.&quot;&quot;&quot; "><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py index e277b28..1d19707 100644 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@ -1142,7 +1142,8 @@ class BindParameter(ColumnElement): return isinstance(other, BindParameter) \ and self.type._compare_type_affinity(other.type) \ - and self.value == other.value + and self.value == other.value \ + and self.callable == other.callable def __getstate__(self): """execute a deferred value for serialization purposes.""" </code></pre></div> <p dir="auto">next, the visitation in <code class="notranslate">_memoized_attr__simple_lazy_clause</code> is picking up on this bind as one of their own. ideally we'd use annotations to get around this but then we need to get rid of that deep_deannotate, this seems overall more risky:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py index e8a2992..e16c52d 100644 --- a/lib/sqlalchemy/orm/relationships.py +++ b/lib/sqlalchemy/orm/relationships.py @@ -2827,7 +2827,8 @@ class JoinCondition(object): ): if col not in binds: binds[col] = sql.bindparam( - None, None, type_=col.type, unique=True) + None, None, type_=col.type, unique=True).\ + _annotate({&quot;lazyloader&quot;: True}) return binds[col] return None @@ -2845,9 +2846,6 @@ class JoinCondition(object): bind_to_col = dict((binds[col].key, col) for col in binds) - # this is probably not necessary - lazywhere = _deep_deannotate(lazywhere) - return lazywhere, bind_to_col, equated_columns diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py index 8260732..f5bf041 100644 --- a/lib/sqlalchemy/orm/strategies.py +++ b/lib/sqlalchemy/orm/strategies.py @@ -473,6 +473,9 @@ class LazyLoader(AbstractRelationshipLoader, util.MemoizedSlots): params = [] def visit_bindparam(bindparam): + if not bindparam._annotations.get(&quot;lazyloader&quot;): + return + bindparam.unique = False if bindparam._identifying_key in bind_to_col: params.append(( "><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py index e8a2992..e16c52d 100644 --- a/lib/sqlalchemy/orm/relationships.py +++ b/lib/sqlalchemy/orm/relationships.py @@ -2827,7 +2827,8 @@ class JoinCondition(object): ): if col not in binds: binds[col] = sql.bindparam( - None, None, type_=col.type, unique=True) + None, None, type_=col.type, unique=True).\ + _annotate({"lazyloader": True}) return binds[col] return None @@ -2845,9 +2846,6 @@ class JoinCondition(object): bind_to_col = dict((binds[col].key, col) for col in binds) - # this is probably not necessary - lazywhere = _deep_deannotate(lazywhere) - return lazywhere, bind_to_col, equated_columns diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py index 8260732..f5bf041 100644 --- a/lib/sqlalchemy/orm/strategies.py +++ b/lib/sqlalchemy/orm/strategies.py @@ -473,6 +473,9 @@ class LazyLoader(AbstractRelationshipLoader, util.MemoizedSlots): params = [] def visit_bindparam(bindparam): + if not bindparam._annotations.get("lazyloader"): + return + bindparam.unique = False if bindparam._identifying_key in bind_to_col: params.append(( </code></pre></div>
<h3 dir="auto">Describe the bug</h3> <p dir="auto">Hello,</p> <p dir="auto">I posted <a href="https://stackoverflow.com/questions/71668641/sqlalchemy-one-to-many-updates-failing" rel="nofollow">this</a> to stack overflow to see if anyone had a solution but no one seems to have a solution. Essentially, I want to make a SQLAlchemy class match a Pydanic class including its relationships then post it to the database. However, if there are unique constraints in the "many" table I get consistently get a violation of the unique constraints.</p> <h3 dir="auto">To Reproduce</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="The stack overflow post contains all of the SQLAlchemy code necessary to reproduce the issue. Below is how I constructed the tables in Microsoft SQL Server using SSM: CREATE TABLE dbo.organization( org_id UNIQUEIDENTIFIER PRIMARY KEY DEFAULT NEWID(), org_name NVARCHAR(255) ) CREATE TABLE dbo.alt_org_name( alt_org_name_id UNIQUEIDENTIFIER PRIMARY KEY DEFAULT NEWID(), org_id UNIQUEIDENTIFIER FOREIGN KEY REFERENCES dbo.organization(org_id), alt_org_name NVARCHAR(255), partner NVARCHAR(255), UNIQUE(org_id, alt_org_name, partner) )"><pre class="notranslate"><span class="pl-v">The</span> <span class="pl-s1">stack</span> <span class="pl-s1">overflow</span> <span class="pl-s1">post</span> <span class="pl-s1">contains</span> <span class="pl-s1">all</span> <span class="pl-s1">of</span> <span class="pl-s1">the</span> <span class="pl-v">SQLAlchemy</span> <span class="pl-s1">code</span> <span class="pl-s1">necessary</span> <span class="pl-s1">to</span> <span class="pl-s1">reproduce</span> <span class="pl-s1">the</span> <span class="pl-s1">issue</span>. <span class="pl-v">Below</span> <span class="pl-c1">is</span> <span class="pl-s1">how</span> <span class="pl-v">I</span> <span class="pl-s1">constructed</span> <span class="pl-s1">the</span> <span class="pl-s1">tables</span> <span class="pl-c1">in</span> <span class="pl-v">Microsoft</span> <span class="pl-v">SQL</span> <span class="pl-v">Server</span> <span class="pl-s1">using</span> <span class="pl-v">SSM</span>: <span class="pl-v">CREATE</span> <span class="pl-v">TABLE</span> <span class="pl-s1">dbo</span>.<span class="pl-en">organization</span>( <span class="pl-s1">org_id</span> <span class="pl-v">UNIQUEIDENTIFIER</span> <span class="pl-v">PRIMARY</span> <span class="pl-v">KEY</span> <span class="pl-v">DEFAULT</span> <span class="pl-v">NEWID</span>(), <span class="pl-s1">org_name</span> <span class="pl-v">NVARCHAR</span>(<span class="pl-c1">255</span>) ) <span class="pl-v">CREATE</span> <span class="pl-v">TABLE</span> <span class="pl-s1">dbo</span>.<span class="pl-en">alt_org_name</span>( <span class="pl-s1">alt_org_name_id</span> <span class="pl-v">UNIQUEIDENTIFIER</span> <span class="pl-v">PRIMARY</span> <span class="pl-v">KEY</span> <span class="pl-v">DEFAULT</span> <span class="pl-v">NEWID</span>(), <span class="pl-s1">org_id</span> <span class="pl-v">UNIQUEIDENTIFIER</span> <span class="pl-v">FOREIGN</span> <span class="pl-v">KEY</span> <span class="pl-v">REFERENCES</span> <span class="pl-s1">dbo</span>.<span class="pl-en">organization</span>(<span class="pl-s1">org_id</span>), <span class="pl-en">alt_org_name</span> <span class="pl-v">NVARCHAR</span>(<span class="pl-c1">255</span>), <span class="pl-s1">partner</span> <span class="pl-v">NVARCHAR</span>(<span class="pl-c1">255</span>), <span class="pl-v">UNIQUE</span>(<span class="pl-s1">org_id</span>, <span class="pl-s1">alt_org_name</span>, <span class="pl-s1">partner</span>) )</pre></div> <h3 dir="auto">Error</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="IntegrityError Traceback (most recent call last) ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw) 1899 if not evt_handled: -&gt; 1900 self.dialect.do_execute( 1901 cursor, statement, parameters, context ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\default.py in do_execute(self, cursor, statement, parameters, context) 735 def do_execute(self, cursor, statement, parameters, context=None): --&gt; 736 cursor.execute(statement, parameters) 737 IntegrityError: ('23000', &quot;[23000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Violation of UNIQUE KEY constraint 'UQ__alt_org___89413C3E1298F58D'. Cannot insert duplicate key in object 'dbo.alt_org_name'. The duplicate key value is (ab6ca7c5-b969-4e6a-97fa-eba4a9b1e7f6, MSFT, New York Stock Exchange). (2627) (SQLExecDirectW); [23000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The statement has been terminated. (3621)&quot;) The above exception was the direct cause of the following exception: IntegrityError Traceback (most recent call last) C:\Users\ERIKOS~1\AppData\Local\Temp/ipykernel_18652/2240032650.py in &lt;module&gt; 4 o1.alt_names.append(AltOrgName(alt_org_name=&quot;MSFT&quot;, partner=&quot;New York Stock Exchange&quot;)) 5 o1.alt_names.append(AltOrgName(alt_org_name=&quot;Micro-Soft&quot;, partner=None)) ----&gt; 6 db.commit() ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in commit(self) 1449 raise sa_exc.InvalidRequestError(&quot;No transaction is begun.&quot;) 1450 -&gt; 1451 self._transaction.commit(_to_root=self.future) 1452 1453 def prepare(self): ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in commit(self, _to_root) 827 self._assert_active(prepared_ok=True) 828 if self._state is not PREPARED: --&gt; 829 self._prepare_impl() 830 831 if self._parent is None or self.nested: ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in _prepare_impl(self) 806 if self.session._is_clean(): 807 break --&gt; 808 self.session.flush() 809 else: 810 raise exc.FlushError( ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in flush(self, objects) 3384 try: 3385 self._flushing = True -&gt; 3386 self._flush(objects) 3387 finally: 3388 self._flushing = False ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in _flush(self, objects) 3524 except: 3525 with util.safe_reraise(): -&gt; 3526 transaction.rollback(_capture_exception=True) 3527 3528 def bulk_save_objects( ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\util\langhelpers.py in __exit__(self, type_, value, traceback) 68 self._exc_info = None # remove potential circular references 69 if not self.warn_only: ---&gt; 70 compat.raise_( 71 exc_value, 72 with_traceback=exc_tb, ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\util\compat.py in raise_(***failed resolving arguments***) 206 207 try: --&gt; 208 raise exception 209 finally: 210 # credit to ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in _flush(self, objects) 3484 self._warn_on_events = True 3485 try: -&gt; 3486 flush_context.execute() 3487 finally: 3488 self._warn_on_events = False ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\unitofwork.py in execute(self) 454 else: 455 for rec in topological.sort(self.dependencies, postsort_actions): --&gt; 456 rec.execute(self) 457 458 def finalize_flush_changes(self): ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\unitofwork.py in execute(self, uow) 628 @util.preload_module(&quot;sqlalchemy.orm.persistence&quot;) 629 def execute(self, uow): --&gt; 630 util.preloaded.orm_persistence.save_obj( 631 self.mapper, 632 uow.states_for_mapper_hierarchy(self.mapper, False, False), ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\persistence.py in save_obj(base_mapper, states, uowtransaction, single) 243 ) 244 --&gt; 245 _emit_insert_statements( 246 base_mapper, 247 uowtransaction, ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\persistence.py in _emit_insert_statements(base_mapper, uowtransaction, mapper, table, insert, bookkeeping) 1236 ) 1237 else: -&gt; 1238 result = connection._execute_20( 1239 statement, 1240 params, ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _execute_20(self, statement, parameters, execution_options) 1703 ) 1704 else: -&gt; 1705 return meth(self, args_10style, kwargs_10style, execution_options) 1706 1707 def exec_driver_sql( ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\sql\elements.py in _execute_on_connection(self, connection, multiparams, params, execution_options, _force) 331 ): 332 if _force or self.supports_execution: --&gt; 333 return connection._execute_clauseelement( 334 self, multiparams, params, execution_options 335 ) ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _execute_clauseelement(self, elem, multiparams, params, execution_options) 1570 linting=self.dialect.compiler_linting | compiler.WARN_LINTING, 1571 ) -&gt; 1572 ret = self._execute_context( 1573 dialect, 1574 dialect.execution_ctx_cls._init_compiled, ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw) 1941 1942 except BaseException as e: -&gt; 1943 self._handle_dbapi_exception( 1944 e, statement, parameters, cursor, context 1945 ) ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _handle_dbapi_exception(self, e, statement, parameters, cursor, context) 2122 util.raise_(newraise, with_traceback=exc_info[2], from_=e) 2123 elif should_wrap: -&gt; 2124 util.raise_( 2125 sqlalchemy_exception, with_traceback=exc_info[2], from_=e 2126 ) ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\util\compat.py in raise_(***failed resolving arguments***) 206 207 try: --&gt; 208 raise exception 209 finally: 210 # credit to ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw) 1898 break 1899 if not evt_handled: -&gt; 1900 self.dialect.do_execute( 1901 cursor, statement, parameters, context 1902 ) ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\default.py in do_execute(self, cursor, statement, parameters, context) 734 735 def do_execute(self, cursor, statement, parameters, context=None): --&gt; 736 cursor.execute(statement, parameters) 737 738 def do_execute_no_params(self, cursor, statement, context=None): IntegrityError: (pyodbc.IntegrityError) ('23000', &quot;[23000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Violation of UNIQUE KEY constraint 'UQ__alt_org___89413C3E1298F58D'. Cannot insert duplicate key in object 'dbo.alt_org_name'. The duplicate key value is (ab6ca7c5-b969-4e6a-97fa-eba4a9b1e7f6, MSFT, New York Stock Exchange). (2627) (SQLExecDirectW); [23000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The statement has been terminated. (3621)&quot;) [SQL: INSERT INTO dbo.alt_org_name (alt_org_name_id, org_id, alt_org_name, partner) VALUES (?, ?, ?, ?)] [parameters: ('9f6fbfeb-aece-4dc5-a4a4-789426ed4e60', 'ab6ca7c5-b969-4e6a-97fa-eba4a9b1e7f6', 'MSFT', 'New York Stock Exchange')] (Background on this error at: https://sqlalche.me/e/14/gkpj)"><pre class="notranslate"><code class="notranslate">IntegrityError Traceback (most recent call last) ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw) 1899 if not evt_handled: -&gt; 1900 self.dialect.do_execute( 1901 cursor, statement, parameters, context ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\default.py in do_execute(self, cursor, statement, parameters, context) 735 def do_execute(self, cursor, statement, parameters, context=None): --&gt; 736 cursor.execute(statement, parameters) 737 IntegrityError: ('23000', "[23000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Violation of UNIQUE KEY constraint 'UQ__alt_org___89413C3E1298F58D'. Cannot insert duplicate key in object 'dbo.alt_org_name'. The duplicate key value is (ab6ca7c5-b969-4e6a-97fa-eba4a9b1e7f6, MSFT, New York Stock Exchange). (2627) (SQLExecDirectW); [23000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The statement has been terminated. (3621)") The above exception was the direct cause of the following exception: IntegrityError Traceback (most recent call last) C:\Users\ERIKOS~1\AppData\Local\Temp/ipykernel_18652/2240032650.py in &lt;module&gt; 4 o1.alt_names.append(AltOrgName(alt_org_name="MSFT", partner="New York Stock Exchange")) 5 o1.alt_names.append(AltOrgName(alt_org_name="Micro-Soft", partner=None)) ----&gt; 6 db.commit() ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in commit(self) 1449 raise sa_exc.InvalidRequestError("No transaction is begun.") 1450 -&gt; 1451 self._transaction.commit(_to_root=self.future) 1452 1453 def prepare(self): ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in commit(self, _to_root) 827 self._assert_active(prepared_ok=True) 828 if self._state is not PREPARED: --&gt; 829 self._prepare_impl() 830 831 if self._parent is None or self.nested: ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in _prepare_impl(self) 806 if self.session._is_clean(): 807 break --&gt; 808 self.session.flush() 809 else: 810 raise exc.FlushError( ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in flush(self, objects) 3384 try: 3385 self._flushing = True -&gt; 3386 self._flush(objects) 3387 finally: 3388 self._flushing = False ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in _flush(self, objects) 3524 except: 3525 with util.safe_reraise(): -&gt; 3526 transaction.rollback(_capture_exception=True) 3527 3528 def bulk_save_objects( ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\util\langhelpers.py in __exit__(self, type_, value, traceback) 68 self._exc_info = None # remove potential circular references 69 if not self.warn_only: ---&gt; 70 compat.raise_( 71 exc_value, 72 with_traceback=exc_tb, ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\util\compat.py in raise_(***failed resolving arguments***) 206 207 try: --&gt; 208 raise exception 209 finally: 210 # credit to ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\session.py in _flush(self, objects) 3484 self._warn_on_events = True 3485 try: -&gt; 3486 flush_context.execute() 3487 finally: 3488 self._warn_on_events = False ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\unitofwork.py in execute(self) 454 else: 455 for rec in topological.sort(self.dependencies, postsort_actions): --&gt; 456 rec.execute(self) 457 458 def finalize_flush_changes(self): ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\unitofwork.py in execute(self, uow) 628 @util.preload_module("sqlalchemy.orm.persistence") 629 def execute(self, uow): --&gt; 630 util.preloaded.orm_persistence.save_obj( 631 self.mapper, 632 uow.states_for_mapper_hierarchy(self.mapper, False, False), ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\persistence.py in save_obj(base_mapper, states, uowtransaction, single) 243 ) 244 --&gt; 245 _emit_insert_statements( 246 base_mapper, 247 uowtransaction, ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\orm\persistence.py in _emit_insert_statements(base_mapper, uowtransaction, mapper, table, insert, bookkeeping) 1236 ) 1237 else: -&gt; 1238 result = connection._execute_20( 1239 statement, 1240 params, ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _execute_20(self, statement, parameters, execution_options) 1703 ) 1704 else: -&gt; 1705 return meth(self, args_10style, kwargs_10style, execution_options) 1706 1707 def exec_driver_sql( ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\sql\elements.py in _execute_on_connection(self, connection, multiparams, params, execution_options, _force) 331 ): 332 if _force or self.supports_execution: --&gt; 333 return connection._execute_clauseelement( 334 self, multiparams, params, execution_options 335 ) ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _execute_clauseelement(self, elem, multiparams, params, execution_options) 1570 linting=self.dialect.compiler_linting | compiler.WARN_LINTING, 1571 ) -&gt; 1572 ret = self._execute_context( 1573 dialect, 1574 dialect.execution_ctx_cls._init_compiled, ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw) 1941 1942 except BaseException as e: -&gt; 1943 self._handle_dbapi_exception( 1944 e, statement, parameters, cursor, context 1945 ) ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _handle_dbapi_exception(self, e, statement, parameters, cursor, context) 2122 util.raise_(newraise, with_traceback=exc_info[2], from_=e) 2123 elif should_wrap: -&gt; 2124 util.raise_( 2125 sqlalchemy_exception, with_traceback=exc_info[2], from_=e 2126 ) ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\util\compat.py in raise_(***failed resolving arguments***) 206 207 try: --&gt; 208 raise exception 209 finally: 210 # credit to ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\base.py in _execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw) 1898 break 1899 if not evt_handled: -&gt; 1900 self.dialect.do_execute( 1901 cursor, statement, parameters, context 1902 ) ~\anaconda3\envs\or\lib\site-packages\sqlalchemy\engine\default.py in do_execute(self, cursor, statement, parameters, context) 734 735 def do_execute(self, cursor, statement, parameters, context=None): --&gt; 736 cursor.execute(statement, parameters) 737 738 def do_execute_no_params(self, cursor, statement, context=None): IntegrityError: (pyodbc.IntegrityError) ('23000', "[23000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Violation of UNIQUE KEY constraint 'UQ__alt_org___89413C3E1298F58D'. Cannot insert duplicate key in object 'dbo.alt_org_name'. The duplicate key value is (ab6ca7c5-b969-4e6a-97fa-eba4a9b1e7f6, MSFT, New York Stock Exchange). (2627) (SQLExecDirectW); [23000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The statement has been terminated. (3621)") [SQL: INSERT INTO dbo.alt_org_name (alt_org_name_id, org_id, alt_org_name, partner) VALUES (?, ?, ?, ?)] [parameters: ('9f6fbfeb-aece-4dc5-a4a4-789426ed4e60', 'ab6ca7c5-b969-4e6a-97fa-eba4a9b1e7f6', 'MSFT', 'New York Stock Exchange')] (Background on this error at: https://sqlalche.me/e/14/gkpj) </code></pre></div> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>OS: Windows</li> <li>Python: 3.9</li> <li>SQLAlchemy: 1.4.41</li> <li>Database: SQL Server</li> <li>DBAPI (eg: psycopg, cx_oracle, mysqlclient):</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
0
<p dir="auto">I've created the simplest babel programme I can think of, that I would expect to do nothing.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var babel = require('babel-core'); var code = '&quot;use strict&quot;;'; // Edited typo var result = babel.transform(code); // Expected result: &quot;use strict&quot;; // Actual result: &quot;use strict&quot;; &quot;use strict&quot;;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">babel</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'babel-core'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">code</span> <span class="pl-c1">=</span> <span class="pl-s">'"use strict";'</span><span class="pl-kos">;</span> <span class="pl-c">// Edited typo</span> <span class="pl-k">var</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">babel</span><span class="pl-kos">.</span><span class="pl-en">transform</span><span class="pl-kos">(</span><span class="pl-s1">code</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Expected result: "use strict";</span> <span class="pl-c">// Actual result: "use strict"; "use strict";</span></pre></div> <p dir="auto">I had presumed that a call to <code class="notranslate">transform</code> with no transformers specified would do nothing. At the very least it's forcing strict mode on me. Is this a bug or a feature? Are there other things babel forces on me by default?</p>
<p dir="auto">A class which extends itself isn't compiled correctly:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class A { ... } class A extends A { ... }"><pre class="notranslate"><code class="notranslate">class A { ... } class A extends A { ... } </code></pre></div> <p dir="auto">I think the error comes from:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="inherits(A, A);"><pre class="notranslate"><code class="notranslate">inherits(A, A); </code></pre></div> <p dir="auto">A workaround is to do:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var A_ = A; class A extends A_ { }"><pre class="notranslate"><code class="notranslate">var A_ = A; class A extends A_ { } </code></pre></div>
0
<p dir="auto">Love the library btw. This seems to be an issue with pydot from what I can tell.</p> <p dir="auto"><code class="notranslate">from keras.utils.visualize_util import plot</code></p> <p dir="auto">AttributeError Traceback (most recent call last)<br> in ()<br> 17 from PIL import Image<br> 18 import matplotlib.pyplot as plt<br> ---&gt; 19 from keras.utils.visualize_util import plot<br> 20 get_ipython().magic(u'matplotlib inline')<br> 21</p> <p dir="auto">/Users/fonz/anaconda/lib/python2.7/site-packages/keras/utils/visualize_util.py in ()<br> 5 # fall back on pydot if necessary<br> 6 import pydot<br> ----&gt; 7 if not pydot.find_graphviz():<br> 8 raise RuntimeError('Failed to import pydot. You must install pydot'<br> 9 ' and graphviz for <code class="notranslate">pydotprint</code> to work.')</p> <p dir="auto">AttributeError: 'module' object has no attribute 'find_graphviz'</p>
<p dir="auto">Hello!<br> I am using latest tensorflow with GPU support and latest Keras.<br> I am trying to write parallel data augmentation using <code class="notranslate">keras.utils.Sequence</code>, but have two problems:</p> <ol dir="auto"> <li><code class="notranslate">fit_generator</code> creates too many workers (I have parameter <code class="notranslate">workers=2</code>, but it generates 4 additional workers);</li> <li>Using <code class="notranslate">Sequence</code> is extremely slow (with generator and a lot of augmentations I spend two minutes on epoch, with multiprocessing and <code class="notranslate">Sequence</code> - more than 10 minutes.</li> </ol> <p dir="auto">Here is my <code class="notranslate">Sequence</code> and <code class="notranslate">fit_generator</code>:</p> <p dir="auto">`class ParallelDataGenerator(Sequence):<br> """Generate images for training/validation/testing (parallel version)."""</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def __init__(self, dname: str, start: int, stop: int, batch_size: int, augmentate: bool): self.batch_size = batch_size self.augmentate = augmentate self.idxs = [i for i in range(start, stop)] self.imgs_in = [cv2.imread(os.path.join(dname, 'in', str(i) + '_in.png'), cv2.IMREAD_GRAYSCALE).astype(np.float32) for i in range(start, stop)] self.imgs_gt = [cv2.imread(os.path.join(dname, 'gt', str(i) + '_in.png'), cv2.IMREAD_GRAYSCALE).astype(np.float32) for i in range(start, stop)] self.idxs = [i for i in range(0, stop - start)] def __len__(self): return int(np.ceil(float(len(self.idxs)) / float(self.batch_size))) def on_epoch_end(self): shuffle(self.idxs) def __getitem__(self, idx): print(idx, os.getpid()) start = idx * self.batch_size stop = start + self.batch_size if stop &gt;= len(self.idxs): stop = len(self.idxs) imgs_in = [] imgs_gt = [] for i in range(start, stop): img_in = np.copy(self.imgs_in[self.idxs[i]]) img_gt = np.copy(self.imgs_gt[self.idxs[i]]) if self.augmentate: img_in, img_gt = random_effect_img(img_in, img_gt) imgs_in.append(normalize_in(img_in)) imgs_gt.append(normalize_gt(img_gt)) imgs_in = np.array(imgs_in) imgs_in.shape = (imgs_in.shape[0], imgs_in.shape[1], imgs_in.shape[2], 1) imgs_gt = np.array(imgs_gt) imgs_gt.shape = imgs_in.shape return imgs_in, imgs_gt`"><pre class="notranslate"><code class="notranslate">def __init__(self, dname: str, start: int, stop: int, batch_size: int, augmentate: bool): self.batch_size = batch_size self.augmentate = augmentate self.idxs = [i for i in range(start, stop)] self.imgs_in = [cv2.imread(os.path.join(dname, 'in', str(i) + '_in.png'), cv2.IMREAD_GRAYSCALE).astype(np.float32) for i in range(start, stop)] self.imgs_gt = [cv2.imread(os.path.join(dname, 'gt', str(i) + '_in.png'), cv2.IMREAD_GRAYSCALE).astype(np.float32) for i in range(start, stop)] self.idxs = [i for i in range(0, stop - start)] def __len__(self): return int(np.ceil(float(len(self.idxs)) / float(self.batch_size))) def on_epoch_end(self): shuffle(self.idxs) def __getitem__(self, idx): print(idx, os.getpid()) start = idx * self.batch_size stop = start + self.batch_size if stop &gt;= len(self.idxs): stop = len(self.idxs) imgs_in = [] imgs_gt = [] for i in range(start, stop): img_in = np.copy(self.imgs_in[self.idxs[i]]) img_gt = np.copy(self.imgs_gt[self.idxs[i]]) if self.augmentate: img_in, img_gt = random_effect_img(img_in, img_gt) imgs_in.append(normalize_in(img_in)) imgs_gt.append(normalize_gt(img_gt)) imgs_in = np.array(imgs_in) imgs_in.shape = (imgs_in.shape[0], imgs_in.shape[1], imgs_in.shape[2], 1) imgs_gt = np.array(imgs_gt) imgs_gt.shape = imgs_in.shape return imgs_in, imgs_gt` </code></pre></div> <p dir="auto"><code class="notranslate"> model.fit_generator( train_generator, steps_per_epoch=(train_stop - train_start) / args.batchsize, epochs=args.epochs, validation_data=validation_generator, validation_steps=(validation_stop - validation_start) / args.batchsize, callbacks=callbacks, use_multiprocessing=True, workers=2, max_queue_size=10 )</code></p>
0
<p dir="auto">I'm just a naive beginning Julia user, not a developer of the Julia language. When trying to update Julia packages with Julia 1.6.3 under macOS 12.0.1 (Monterey), I'm getting error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" (@v1.6) pkg&gt; up Updating registry at `~/.julia/registries/JuliaComputingRegistry` ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Downloads/src/Curl/utils.jl:36 ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Downloads/src/Curl/utils.jl:36 ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Downloads/src/Curl/utils.jl:36 No Changes to `~/.julia/environments/v1.6/Project.toml` No Changes to `~/.julia/environments/v1.6/Manifest.toml`"><pre class="notranslate"><code class="notranslate"> (@v1.6) pkg&gt; up Updating registry at `~/.julia/registries/JuliaComputingRegistry` ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Downloads/src/Curl/utils.jl:36 ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Downloads/src/Curl/utils.jl:36 ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Downloads/src/Curl/utils.jl:36 No Changes to `~/.julia/environments/v1.6/Project.toml` No Changes to `~/.julia/environments/v1.6/Manifest.toml` </code></pre></div> <p dir="auto">What should I do to fix this?</p>
<p dir="auto">After upgrading to macOS 12 Monterey, when I run Julia (1.7 or 1.6) and do Pkg.update(), I get the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; Pkg.update() Updating registry at `~/.julia/registries/General.toml` ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36 ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36 ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36 No Changes to `~/.julia/environments/v1.7/Project.toml` No Changes to `~/.julia/environments/v1.7/Manifest.toml`"><pre class="notranslate"><code class="notranslate">julia&gt; Pkg.update() Updating registry at `~/.julia/registries/General.toml` ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36 ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36 ┌ Error: curl_easy_setopt: 48 └ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36 No Changes to `~/.julia/environments/v1.7/Project.toml` No Changes to `~/.julia/environments/v1.7/Manifest.toml` </code></pre></div> <p dir="auto">versioninfo():</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 1.7.0-rc2 Commit f23fc0d27a (2021-10-20 12:45 UTC) Platform Info: OS: macOS (x86_64-apple-darwin19.5.0) CPU: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-12.0.1 (ORCJIT, skylake) Environment: JULIA_NUM_THREADS = 4"><pre class="notranslate"><code class="notranslate">julia&gt; versioninfo() Julia Version 1.7.0-rc2 Commit f23fc0d27a (2021-10-20 12:45 UTC) Platform Info: OS: macOS (x86_64-apple-darwin19.5.0) CPU: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-12.0.1 (ORCJIT, skylake) Environment: JULIA_NUM_THREADS = 4 </code></pre></div>
1
<p dir="auto">i find someone else have mentioned the issue previously, but the feature couldn't be realized because of Chromium, now it might be realized probably, and i find that nw.js has supported this, therefore, is my profound hope that the feature will be supported in the future~ <g-emoji class="g-emoji" alias="pray" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f64f.png">🙏</g-emoji> <g-emoji class="g-emoji" alias="pray" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f64f.png">🙏</g-emoji> <g-emoji class="g-emoji" alias="pray" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f64f.png">🙏</g-emoji></p>
<p dir="auto">I found it will be nice to have a dockable developer toolbar when using the webview. Here is the issue raised in browser-plus(atom package)</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="112381451" data-permission-text="Title is private" data-url="https://github.com/skandasoft/browser-plus/issues/40" data-hovercard-type="issue" data-hovercard-url="/skandasoft/browser-plus/issues/40/hovercard" href="https://github.com/skandasoft/browser-plus/issues/40">skandasoft/browser-plus#40</a></p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto"><code class="notranslate">torch.nn.functional.conv1d </code> returns strange results when weight tensor created by <code class="notranslate">torch.inverse</code> or <code class="notranslate">torch.t</code> operations.</p> <h2 dir="auto">To Reproduce</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch from torch import nn from torch.nn import functional as F"><pre class="notranslate"><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-k">import</span> <span class="pl-s1">nn</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-s1">functional</span> <span class="pl-k">as</span> <span class="pl-v">F</span></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def print_max_diff(x, y): print((x - y).abs().max())"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">print_max_diff</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>): <span class="pl-en">print</span>((<span class="pl-s1">x</span> <span class="pl-c1">-</span> <span class="pl-s1">y</span>).<span class="pl-en">abs</span>().<span class="pl-en">max</span>())</pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def have_fun(x, w): z_linear = F.linear(x.permute(0, 2, 1), w).permute(0, 2, 1) z_conv_f = F.conv1d(x, w.unsqueeze(2)) layer = nn.Conv1d(2, 2, 1, bias=False) sd = layer.state_dict() sd[&quot;weight&quot;] = w.unsqueeze(2) layer.load_state_dict(sd) z_conv = layer(x) print(z_linear) print(z_conv_f) print(z_conv) print_max_diff(z_linear, z_conv) print_max_diff(z_linear, z_conv_f)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">have_fun</span>(<span class="pl-s1">x</span>, <span class="pl-s1">w</span>): <span class="pl-s1">z_linear</span> <span class="pl-c1">=</span> <span class="pl-v">F</span>.<span class="pl-en">linear</span>(<span class="pl-s1">x</span>.<span class="pl-en">permute</span>(<span class="pl-c1">0</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>), <span class="pl-s1">w</span>).<span class="pl-en">permute</span>(<span class="pl-c1">0</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>) <span class="pl-s1">z_conv_f</span> <span class="pl-c1">=</span> <span class="pl-v">F</span>.<span class="pl-en">conv1d</span>(<span class="pl-s1">x</span>, <span class="pl-s1">w</span>.<span class="pl-en">unsqueeze</span>(<span class="pl-c1">2</span>)) <span class="pl-s1">layer</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Conv1d</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-s1">bias</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">sd</span> <span class="pl-c1">=</span> <span class="pl-s1">layer</span>.<span class="pl-en">state_dict</span>() <span class="pl-s1">sd</span>[<span class="pl-s">"weight"</span>] <span class="pl-c1">=</span> <span class="pl-s1">w</span>.<span class="pl-en">unsqueeze</span>(<span class="pl-c1">2</span>) <span class="pl-s1">layer</span>.<span class="pl-en">load_state_dict</span>(<span class="pl-s1">sd</span>) <span class="pl-s1">z_conv</span> <span class="pl-c1">=</span> <span class="pl-en">layer</span>(<span class="pl-s1">x</span>) <span class="pl-en">print</span>(<span class="pl-s1">z_linear</span>) <span class="pl-en">print</span>(<span class="pl-s1">z_conv_f</span>) <span class="pl-en">print</span>(<span class="pl-s1">z_conv</span>) <span class="pl-en">print_max_diff</span>(<span class="pl-s1">z_linear</span>, <span class="pl-s1">z_conv</span>) <span class="pl-en">print_max_diff</span>(<span class="pl-s1">z_linear</span>, <span class="pl-s1">z_conv_f</span>)</pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="x = torch.rand(1, 2, 3) w = torch.rand(2, 2)"><pre class="notranslate"><span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>(<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>) <span class="pl-s1">w</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>)</pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="have_fun(x, w)"><pre class="notranslate"><span class="pl-en">have_fun</span>(<span class="pl-s1">x</span>, <span class="pl-s1">w</span>)</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tensor([[[0.5881, 0.0673, 0.6110], [0.8276, 0.1188, 1.0196]]]) tensor([[[0.5881, 0.0673, 0.6110], [0.8276, 0.1188, 1.0196]]]) tensor([[[0.5881, 0.0673, 0.6110], [0.8276, 0.1188, 1.0196]]], grad_fn=&lt;SqueezeBackward1&gt;) tensor(0., grad_fn=&lt;MaxBackward1&gt;) tensor(0.)"><pre class="notranslate"><code class="notranslate">tensor([[[0.5881, 0.0673, 0.6110], [0.8276, 0.1188, 1.0196]]]) tensor([[[0.5881, 0.0673, 0.6110], [0.8276, 0.1188, 1.0196]]]) tensor([[[0.5881, 0.0673, 0.6110], [0.8276, 0.1188, 1.0196]]], grad_fn=&lt;SqueezeBackward1&gt;) tensor(0., grad_fn=&lt;MaxBackward1&gt;) tensor(0.) </code></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="have_fun(x, w.inverse())"><pre class="notranslate"><span class="pl-en">have_fun</span>(<span class="pl-s1">x</span>, <span class="pl-s1">w</span>.<span class="pl-en">inverse</span>())</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tensor([[[ 0.5952, -0.1171, -0.6075], [ 0.7475, 0.1979, 1.5212]]]) tensor([[[-0.0508, -0.1854, -1.2418], [ 1.1893, 0.2983, 2.3101]]]) tensor([[[ 0.5952, -0.1171, -0.6075], [ 0.7475, 0.1979, 1.5212]]], grad_fn=&lt;SqueezeBackward1&gt;) tensor(0., grad_fn=&lt;MaxBackward1&gt;) tensor(0.7889)"><pre class="notranslate"><code class="notranslate">tensor([[[ 0.5952, -0.1171, -0.6075], [ 0.7475, 0.1979, 1.5212]]]) tensor([[[-0.0508, -0.1854, -1.2418], [ 1.1893, 0.2983, 2.3101]]]) tensor([[[ 0.5952, -0.1171, -0.6075], [ 0.7475, 0.1979, 1.5212]]], grad_fn=&lt;SqueezeBackward1&gt;) tensor(0., grad_fn=&lt;MaxBackward1&gt;) tensor(0.7889) </code></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="have_fun(x, w.inverse().clone())"><pre class="notranslate"><span class="pl-en">have_fun</span>(<span class="pl-s1">x</span>, <span class="pl-s1">w</span>.<span class="pl-en">inverse</span>().<span class="pl-en">clone</span>())</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tensor([[[ 0.5952, -0.1171, -0.6075], [ 0.7475, 0.1979, 1.5212]]]) tensor([[[ 0.5952, -0.1171, -0.6075], [ 0.7475, 0.1979, 1.5212]]]) tensor([[[ 0.5952, -0.1171, -0.6075], [ 0.7475, 0.1979, 1.5212]]], grad_fn=&lt;SqueezeBackward1&gt;) tensor(0., grad_fn=&lt;MaxBackward1&gt;) tensor(0.)"><pre class="notranslate"><code class="notranslate">tensor([[[ 0.5952, -0.1171, -0.6075], [ 0.7475, 0.1979, 1.5212]]]) tensor([[[ 0.5952, -0.1171, -0.6075], [ 0.7475, 0.1979, 1.5212]]]) tensor([[[ 0.5952, -0.1171, -0.6075], [ 0.7475, 0.1979, 1.5212]]], grad_fn=&lt;SqueezeBackward1&gt;) tensor(0., grad_fn=&lt;MaxBackward1&gt;) tensor(0.) </code></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="have_fun(x, w.t())"><pre class="notranslate"><span class="pl-en">have_fun</span>(<span class="pl-s1">x</span>, <span class="pl-s1">w</span>.<span class="pl-en">t</span>())</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tensor([[[0.4183, 0.0493, 0.4442], [0.9437, 0.1451, 1.2270]]]) tensor([[[0.5881, 0.0673, 0.6110], [0.8276, 0.1188, 1.0196]]]) tensor([[[0.4183, 0.0493, 0.4442], [0.9437, 0.1451, 1.2270]]], grad_fn=&lt;SqueezeBackward1&gt;) tensor(0., grad_fn=&lt;MaxBackward1&gt;) tensor(0.2074)"><pre class="notranslate"><code class="notranslate">tensor([[[0.4183, 0.0493, 0.4442], [0.9437, 0.1451, 1.2270]]]) tensor([[[0.5881, 0.0673, 0.6110], [0.8276, 0.1188, 1.0196]]]) tensor([[[0.4183, 0.0493, 0.4442], [0.9437, 0.1451, 1.2270]]], grad_fn=&lt;SqueezeBackward1&gt;) tensor(0., grad_fn=&lt;MaxBackward1&gt;) tensor(0.2074) </code></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="have_fun(x, w.t().clone())"><pre class="notranslate"><span class="pl-en">have_fun</span>(<span class="pl-s1">x</span>, <span class="pl-s1">w</span>.<span class="pl-en">t</span>().<span class="pl-en">clone</span>())</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tensor([[[0.4183, 0.0493, 0.4442], [0.9437, 0.1451, 1.2270]]]) tensor([[[0.4183, 0.0493, 0.4442], [0.9437, 0.1451, 1.2270]]]) tensor([[[0.4183, 0.0493, 0.4442], [0.9437, 0.1451, 1.2270]]], grad_fn=&lt;SqueezeBackward1&gt;) tensor(0., grad_fn=&lt;MaxBackward1&gt;) tensor(0.)"><pre class="notranslate"><code class="notranslate">tensor([[[0.4183, 0.0493, 0.4442], [0.9437, 0.1451, 1.2270]]]) tensor([[[0.4183, 0.0493, 0.4442], [0.9437, 0.1451, 1.2270]]]) tensor([[[0.4183, 0.0493, 0.4442], [0.9437, 0.1451, 1.2270]]], grad_fn=&lt;SqueezeBackward1&gt;) tensor(0., grad_fn=&lt;MaxBackward1&gt;) tensor(0.) </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto"><code class="notranslate">F.conv1d</code> should behave the same way as <code class="notranslate">nn.Conv1d</code>.</p> <p dir="auto"><code class="notranslate">F.conv1d(x, w.t().unsqueeze(2))</code> should be equal to <code class="notranslate">F.linear(x.permute(0, 2, 1), w.t().permute(0, 2, 1)</code> or at least to <code class="notranslate">F.conv1d(x, w.t().clone().unsqueeze(2))</code>. Same for <code class="notranslate">.inverse()</code> and <code class="notranslate">conv2d</code> (did not check for <code class="notranslate">conv3d</code> but probably it is broken too).</p> <h2 dir="auto">Environment</h2> <p dir="auto">PyTorch version: 1.0.0<br> Is debug build: No<br> CUDA used to build PyTorch: 9.0.176</p> <p dir="auto">OS: Red Hat Enterprise Linux Server 7.4 (Maipo)<br> GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)<br> CMake version: Could not collect</p> <p dir="auto">Python version: 3.6<br> Is CUDA available: No<br> CUDA runtime version: 9.2.88</p> <p dir="auto">Nvidia driver version: 396.26<br> cuDNN version: Could not collect</p> <p dir="auto">pip version: 18.1</p>
<p dir="auto">I compile PyTorch from source (1.0.0a0+54e8623).<br> and when I attempt to load data I get this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="OMP: Error #15: Initializing libomp.dylib, but found libiomp5.dylib already initialized. OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://openmp.llvm.org/ Abort trap: 6"><pre class="notranslate"><code class="notranslate">OMP: Error #15: Initializing libomp.dylib, but found libiomp5.dylib already initialized. OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://openmp.llvm.org/ Abort trap: 6 </code></pre></div> <p dir="auto">The crash occurs when I do this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dataloader = DataLoader(self._dataset, batch_size=self._batch_size, pin_memory=True, shuffle=True, drop_last=True) next(dataloader)"><pre class="notranslate"><code class="notranslate">dataloader = DataLoader(self._dataset, batch_size=self._batch_size, pin_memory=True, shuffle=True, drop_last=True) next(dataloader) </code></pre></div> <p dir="auto">I'm using the CIFAR10 dataset here, the problem does not occur with MNIST.</p> <p dir="auto">The system is macOS 10.12.6. What could the problem be here?</p>
0
<p dir="auto">Error on windows. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a> Probably need to disable test on windows until randint gets fixed for bigger integers (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121833798" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/6824" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/6824/hovercard" href="https://github.com/numpy/numpy/pull/6824">#6824</a>).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="====================================================================== ERROR: test_mem_overlap.test_diophantine_fuzz ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;C:\Py\lib\site-packages\nose\case.py&quot;, line 197, in runTest self.test(*self.arg) File &quot;C:\Py\lib\site-packages\numpy\core\tests\test_mem_overlap.py&quot;, line 123, in test_diophantine_fuzz b = rng.randint(-1, b_ub+2) File &quot;mtrand.pyx&quot;, line 951, in mtrand.RandomState.randint (numpy\random\mtrand\mtrand.c:10704) OverflowError: Python int too large to convert to C long "><pre class="notranslate"><code class="notranslate">====================================================================== ERROR: test_mem_overlap.test_diophantine_fuzz ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Py\lib\site-packages\nose\case.py", line 197, in runTest self.test(*self.arg) File "C:\Py\lib\site-packages\numpy\core\tests\test_mem_overlap.py", line 123, in test_diophantine_fuzz b = rng.randint(-1, b_ub+2) File "mtrand.pyx", line 951, in mtrand.RandomState.randint (numpy\random\mtrand\mtrand.c:10704) OverflowError: Python int too large to convert to C long </code></pre></div>
<p dir="auto">clearly using platform ints internally. But I think this should upcast in the case of overflow?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [21]: np.random.randint(np.iinfo(np.int32).min,np.iinfo(np.int32).max,10) Out[21]: array([ -397752718, -1983241147, -920985850, -2131569981, -769723972, -499680303, 1808795318, -636996393, -1437760815, 1771191619]) In [22]: np.random.randint(np.iinfo(np.int64).min,np.iinfo(np.int64).max,10) --------------------------------------------------------------------------- OverflowError Traceback (most recent call last) &lt;ipython-input-22-3cceca91fd37&gt; in &lt;module&gt;() ----&gt; 1 np.random.randint(np.iinfo(np.int64).min,np.iinfo(np.int64).max,10) mtrand.pyx in mtrand.RandomState.randint (numpy\random\mtrand\mtrand.c:10694)() OverflowError: Python int too large to convert to C long In [23]: np.__version__ Out[23]: '1.10.1'"><pre class="notranslate"><code class="notranslate">In [21]: np.random.randint(np.iinfo(np.int32).min,np.iinfo(np.int32).max,10) Out[21]: array([ -397752718, -1983241147, -920985850, -2131569981, -769723972, -499680303, 1808795318, -636996393, -1437760815, 1771191619]) In [22]: np.random.randint(np.iinfo(np.int64).min,np.iinfo(np.int64).max,10) --------------------------------------------------------------------------- OverflowError Traceback (most recent call last) &lt;ipython-input-22-3cceca91fd37&gt; in &lt;module&gt;() ----&gt; 1 np.random.randint(np.iinfo(np.int64).min,np.iinfo(np.int64).max,10) mtrand.pyx in mtrand.RandomState.randint (numpy\random\mtrand\mtrand.c:10694)() OverflowError: Python int too large to convert to C long In [23]: np.__version__ Out[23]: '1.10.1' </code></pre></div>
1
<p dir="auto">Hello,</p> <p dir="auto">After updating from 1.0.3 to 1.0.4, my code is not anymore working. I getting the follwing error:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="thread 'main' panicked at 'already borrowed: BorrowMutError', /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libcore/cell.rs:878:9 stack backtrace: 0: backtrace::backtrace::libunwind::trace at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/libunwind.rs:86 1: backtrace::backtrace::trace_unsynchronized at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/mod.rs:66 2: std::sys_common::backtrace::_print_fmt at src/libstd/sys_common/backtrace.rs:78 3: &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt at src/libstd/sys_common/backtrace.rs:59 4: core::fmt::write at src/libcore/fmt/mod.rs:1063 5: std::io::Write::write_fmt at src/libstd/io/mod.rs:1426 6: std::sys_common::backtrace::_print at src/libstd/sys_common/backtrace.rs:62 7: std::sys_common::backtrace::print at src/libstd/sys_common/backtrace.rs:49 8: std::panicking::default_hook::{{closure}} at src/libstd/panicking.rs:204 9: std::panicking::default_hook at src/libstd/panicking.rs:224 10: std::panicking::rust_panic_with_hook at src/libstd/panicking.rs:470 11: rust_begin_unwind at src/libstd/panicking.rs:378 12: core::panicking::panic_fmt at src/libcore/panicking.rs:85 13: core::option::expect_none_failed at src/libcore/option.rs:1211 14: deno_core::bindings::send 15: &lt;extern &quot;C&quot; fn(A0) .&gt; R as rusty_v8::support::CFnFrom&lt;F&gt;&gt;::mapping::c_fn 16: _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE 17: _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE 18: _ZN2v88internalL26Builtin_Impl_HandleApiCallENS0_16BuiltinArgumentsEPNS0_7IsolateE 19: Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. fatal runtime error: failed to initiate panic, error 5 Aborted (core dumped)"><pre class="notranslate">thread <span class="pl-s"><span class="pl-pds">'</span>main<span class="pl-pds">'</span></span> panicked at <span class="pl-s"><span class="pl-pds">'</span>already borrowed: BorrowMutError<span class="pl-pds">'</span></span>, /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libcore/cell.rs:878:9 stack backtrace: 0: backtrace::backtrace::libunwind::trace at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/libunwind.rs:86 1: backtrace::backtrace::trace_unsynchronized at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/mod.rs:66 2: std::sys_common::backtrace::_print_fmt at src/libstd/sys_common/backtrace.rs:78 3: <span class="pl-k">&lt;</span>std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display<span class="pl-k">&gt;</span>::fmt at src/libstd/sys_common/backtrace.rs:59 4: core::fmt::write at src/libcore/fmt/mod.rs:1063 5: std::io::Write::write_fmt at src/libstd/io/mod.rs:1426 6: std::sys_common::backtrace::_print at src/libstd/sys_common/backtrace.rs:62 7: std::sys_common::backtrace::print at src/libstd/sys_common/backtrace.rs:49 8: std::panicking::default_hook::{{closure}} at src/libstd/panicking.rs:204 9: std::panicking::default_hook at src/libstd/panicking.rs:224 10: std::panicking::rust_panic_with_hook at src/libstd/panicking.rs:470 11: rust_begin_unwind at src/libstd/panicking.rs:378 12: core::panicking::panic_fmt at src/libcore/panicking.rs:85 13: core::option::expect_none_failed at src/libcore/option.rs:1211 14: deno_core::bindings::send 15: <span class="pl-k">&lt;</span>extern <span class="pl-s"><span class="pl-pds">"</span>C<span class="pl-pds">"</span></span> fn(A0) .<span class="pl-k">&gt;</span> R as rusty_v8::support::CFnFrom<span class="pl-k">&lt;</span>F<span class="pl-k">&gt;&gt;</span>::mapping::c_fn 16: _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE 17: _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE 18: _ZN2v88internalL26Builtin_Impl_HandleApiCallENS0_16BuiltinArgumentsEPNS0_7IsolateE 19: Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit note: Some details are omitted, run with <span class="pl-s"><span class="pl-pds">`</span>RUST_BACKTRACE=full<span class="pl-pds">`</span></span> <span class="pl-k">for</span> a verbose backtrace. fatal runtime error: failed to initiate panic, error 5 Aborted (core dumped)</pre></div> <p dir="auto">To reproduce, you can clone <a href="https://github.com/apiel/adka">https://github.com/apiel/adka</a> and run <code class="notranslate">RUST_BACKTRACE=1 deno run -c tsconfig.json --allow-read --allow-write --allow-env --allow-net --unstable adka.ts</code>. I suspect the dynamic import to be the cause of the problem in the main file: <a href="https://github.com/apiel/adka/blob/master/adka.ts#L19">https://github.com/apiel/adka/blob/master/adka.ts#L19</a></p>
<p dir="auto">Received this error. For some additional info, I am only using the <code class="notranslate">std/path</code> module and some function from the <code class="notranslate">Deno</code> global.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'main' panicked at 'already borrowed: BorrowMutError', /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libcore/cell.rs:878:9 stack backtrace: 0: backtrace::backtrace::libunwind::trace at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/libunwind.rs:86 1: backtrace::backtrace::trace_unsynchronized at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/mod.rs:66 2: std::sys_common::backtrace::_print_fmt at src/libstd/sys_common/backtrace.rs:78 3: &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt at src/libstd/sys_common/backtrace.rs:59 4: core::fmt::write at src/libcore/fmt/mod.rs:1063 5: std::io::Write::write_fmt at src/libstd/io/mod.rs:1426 6: std::sys_common::backtrace::_print at src/libstd/sys_common/backtrace.rs:62 7: std::sys_common::backtrace::print at src/libstd/sys_common/backtrace.rs:49 8: std::panicking::default_hook::{{closure}} at src/libstd/panicking.rs:204 9: std::panicking::default_hook at src/libstd/panicking.rs:224 10: std::panicking::rust_panic_with_hook at src/libstd/panicking.rs:470 11: rust_begin_unwind at src/libstd/panicking.rs:378 12: core::panicking::panic_fmt at src/libcore/panicking.rs:85 13: core::option::expect_none_failed at src/libcore/option.rs:1211 14: deno_core::bindings::send 15: &lt;extern &quot;C&quot; fn(A0) .&gt; R as rusty_v8::support::CFnFrom&lt;F&gt;&gt;::mapping::c_fn 16: _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE 17: _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE 18: _ZN2v88internalL26Builtin_Impl_HandleApiCallENS0_16BuiltinArgumentsEPNS0_7IsolateE 19: Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. fatal runtime error: failed to initiate panic, error 5 Aborted"><pre class="notranslate"><code class="notranslate">thread 'main' panicked at 'already borrowed: BorrowMutError', /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libcore/cell.rs:878:9 stack backtrace: 0: backtrace::backtrace::libunwind::trace at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/libunwind.rs:86 1: backtrace::backtrace::trace_unsynchronized at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/mod.rs:66 2: std::sys_common::backtrace::_print_fmt at src/libstd/sys_common/backtrace.rs:78 3: &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt at src/libstd/sys_common/backtrace.rs:59 4: core::fmt::write at src/libcore/fmt/mod.rs:1063 5: std::io::Write::write_fmt at src/libstd/io/mod.rs:1426 6: std::sys_common::backtrace::_print at src/libstd/sys_common/backtrace.rs:62 7: std::sys_common::backtrace::print at src/libstd/sys_common/backtrace.rs:49 8: std::panicking::default_hook::{{closure}} at src/libstd/panicking.rs:204 9: std::panicking::default_hook at src/libstd/panicking.rs:224 10: std::panicking::rust_panic_with_hook at src/libstd/panicking.rs:470 11: rust_begin_unwind at src/libstd/panicking.rs:378 12: core::panicking::panic_fmt at src/libcore/panicking.rs:85 13: core::option::expect_none_failed at src/libcore/option.rs:1211 14: deno_core::bindings::send 15: &lt;extern "C" fn(A0) .&gt; R as rusty_v8::support::CFnFrom&lt;F&gt;&gt;::mapping::c_fn 16: _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE 17: _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE 18: _ZN2v88internalL26Builtin_Impl_HandleApiCallENS0_16BuiltinArgumentsEPNS0_7IsolateE 19: Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. fatal runtime error: failed to initiate panic, error 5 Aborted </code></pre></div>
1
<p dir="auto"><strong>Migrated issue, originally created by Lukas Siemon (<a href="https://github.com/lukas-gitl">@lukas-gitl</a>)</strong></p> <p dir="auto">I have an issue with column_property and using database specific functions. It seems like the alias is not created correctly in the query.</p> <p dir="auto">I'm obtaining data from a model and an alias of the model. When I use "func.hex" (or any "func" function), the column alias is named "hex" (or what the function is called) for both models and this causes a collision:<br> <em>InvalidRequestError: Ambiguous column name 'hex(CAST(label.id AS VARCHAR) || :param_1)' in result set! try 'use_labels' option on select statement.</em></p> <p dir="auto">However, when I cast the column_property as a string (see commented section in test case) this works as expected. Is this a bug or a limitation? What would be the best way to work around this?</p> <p dir="auto">The test case and generated query below. I would have expected the returned columns to be named "hex_1" and "hex_2".</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SELECT hex(CAST(label.id AS VARCHAR) || :param_1) AS hex, hex(CAST(label_1.id AS VARCHAR) || :param_2) AS hex FROM label JOIN link ON link.id = label.link_id JOIN label AS label_1 ON label_1.id = link.label_id"><pre class="notranslate"><code class="notranslate">SELECT hex(CAST(label.id AS VARCHAR) || :param_1) AS hex, hex(CAST(label_1.id AS VARCHAR) || :param_2) AS hex FROM label JOIN link ON link.id = label.link_id JOIN label AS label_1 ON label_1.id = link.label_id </code></pre></div> <p dir="auto">Test case:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import unittest from sqlalchemy import (Column, Integer, String, func, ForeignKey, cast) from sqlalchemy.orm import (column_property, relationship, aliased) from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy class TestColumnPropertyStaticName(unittest.TestCase): def setUp(self): app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = (&quot;sqlite://&quot;) db = SQLAlchemy(app) class Label(db.Model): __tablename__ = 'label' id = Column(Integer, primary_key=True) hex = column_property(func.hex(func.cast(id, String) + 'data')) # ============================= # ====== this would work ====== # hex = column_property( # cast(func.hex(func.cast(id, String) + 'data'), String)) # ============================= link_id = Column(Integer, ForeignKey('link.id')) link = relationship(&quot;Link&quot;, foreign_keys=link_id) class Link(db.Model): __tablename__ = 'link' id = Column(Integer, primary_key=True) label_id = Column(Integer, ForeignKey('label.id')) label = relationship(&quot;Label&quot;, foreign_keys=label_id) db.drop_all() db.create_all() self.Label = Label self.Link = Link self.db = db def test_dynamic_bindparam(self): # saving the mirrored linkage label = self.Label() link = self.Link() label.link = link self.db.session.add(label) self.db.session.commit() link.label_id = label.id self.db.session.commit() # generate the query query = self.Label.query query = query.join(self.Link, self.Link.id == self.Label.link_id) alias = aliased(self.Label) query = query.join(alias, alias.id == self.Link.label_id) query = query.with_entities(self.Label.hex, alias.hex) print query data = query.one() print data "><pre class="notranslate"><code class="notranslate">import unittest from sqlalchemy import (Column, Integer, String, func, ForeignKey, cast) from sqlalchemy.orm import (column_property, relationship, aliased) from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy class TestColumnPropertyStaticName(unittest.TestCase): def setUp(self): app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = ("sqlite://") db = SQLAlchemy(app) class Label(db.Model): __tablename__ = 'label' id = Column(Integer, primary_key=True) hex = column_property(func.hex(func.cast(id, String) + 'data')) # ============================= # ====== this would work ====== # hex = column_property( # cast(func.hex(func.cast(id, String) + 'data'), String)) # ============================= link_id = Column(Integer, ForeignKey('link.id')) link = relationship("Link", foreign_keys=link_id) class Link(db.Model): __tablename__ = 'link' id = Column(Integer, primary_key=True) label_id = Column(Integer, ForeignKey('label.id')) label = relationship("Label", foreign_keys=label_id) db.drop_all() db.create_all() self.Label = Label self.Link = Link self.db = db def test_dynamic_bindparam(self): # saving the mirrored linkage label = self.Label() link = self.Link() label.link = link self.db.session.add(label) self.db.session.commit() link.label_id = label.id self.db.session.commit() # generate the query query = self.Label.query query = query.join(self.Link, self.Link.id == self.Label.link_id) alias = aliased(self.Label) query = query.join(alias, alias.id == self.Link.label_id) query = query.with_entities(self.Label.hex, alias.hex) print query data = query.one() print data </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">A new mysql driver approaches!</p> <p dir="auto">I wrote oursql to be a better mysql driver for python, and now I've created this sqlalchemy layer for it. It seems to pass all of the unit tests when running against a mysql 5.1 server.</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/1613/oursql2.patch">oursql2.patch</a> | <a href="../wiki/imported_issue_attachments/1613/oursql.patch">oursql.patch</a></p>
0
<p dir="auto">Hi,<br> with Atom Version 0.184.0, Windows 8.1 x64, no custom keymap, only the default keybindings and all community packages disabled:<br> I'm not able to write an "@"-Symbol in the editor using a German keyboard and Alt-Gr + q.</p>
<p dir="auto">Original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28529842" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/1625" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/1625/hovercard" href="https://github.com/atom/atom/issues/1625">atom/atom#1625</a></p> <hr> <p dir="auto">Use <a href="https://atom.io/packages/keyboard-localization" rel="nofollow">https://atom.io/packages/keyboard-localization</a> until this issue gets fixed (should be in the Blink upstream).</p>
1
<h2 dir="auto">Build Error'ing on Windows</h2> <p dir="auto">I'm facing the following build error on Windows 10.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;E:\Projects\code-dnn\pytorch\build\INSTALL.vcxproj&quot; (default target) (1) -&gt; &quot;E:\Projects\code-dnn\pytorch\build\ALL_BUILD.vcxproj&quot; (default target) (3) -&gt; &quot;E:\Projects\code-dnn\pytorch\build\caffe2\AlgorithmsTest.vcxproj&quot; (default target) (4) -&gt; &quot;E:\Projects\code-dnn\pytorch\build\caffe2\caffe2_gpu.vcxproj&quot; (default target) (22) -&gt; (CustomBuild target) -&gt; Error : Internal Compiler error (codegen): &quot;there was an error in verifying the lgenfe output!&quot; [E:\Projects\code-dnn\pytorch\build\caffe2\caffe2_gpu.vcxp roj] 13025 Warning(s) 1 Error(s)"><pre class="notranslate"><code class="notranslate">"E:\Projects\code-dnn\pytorch\build\INSTALL.vcxproj" (default target) (1) -&gt; "E:\Projects\code-dnn\pytorch\build\ALL_BUILD.vcxproj" (default target) (3) -&gt; "E:\Projects\code-dnn\pytorch\build\caffe2\AlgorithmsTest.vcxproj" (default target) (4) -&gt; "E:\Projects\code-dnn\pytorch\build\caffe2\caffe2_gpu.vcxproj" (default target) (22) -&gt; (CustomBuild target) -&gt; Error : Internal Compiler error (codegen): "there was an error in verifying the lgenfe output!" [E:\Projects\code-dnn\pytorch\build\caffe2\caffe2_gpu.vcxp roj] 13025 Warning(s) 1 Error(s) </code></pre></div> <p dir="auto">There are no prior errors in the output of cmake.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Using Visual Studio 2017, Cuda 10, in a Native Tools Command Prompt:</p> <ol dir="auto"> <li>python setup.py build develop</li> </ol>
<h2 dir="auto">Bug</h2> <p dir="auto">Internal compiler error on Windows with CUDA build.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Internal Compiler Error (codegen): &quot;there was an error in verifying the lgenfe output!&quot; cross_entropy_op.cu CMake Error at caffe2_gpu_generated_cross_entropy_op.cu.obj.RelWithDebInfo.cmake:279 (message): Error generating file C:/Users/tolia/AppData/Local/Temp/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/operators/./caffe2_gpu_generated_cross_entropy_op.cu.obj"><pre class="notranslate"><code class="notranslate">Error: Internal Compiler Error (codegen): "there was an error in verifying the lgenfe output!" cross_entropy_op.cu CMake Error at caffe2_gpu_generated_cross_entropy_op.cu.obj.RelWithDebInfo.cmake:279 (message): Error generating file C:/Users/tolia/AppData/Local/Temp/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/operators/./caffe2_gpu_generated_cross_entropy_op.cu.obj </code></pre></div> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): master</li> <li>OS (e.g., Linux): Win10</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): source</li> <li>Build command you used (if compiling from source): cmake + VS2017 (15.9.4) + Ninja</li> <li>Python version: 3.7</li> <li>CUDA/cuDNN version: 10.0/7</li> <li>GPU models and configuration: Kepler + Pascal (build for Kepler+Maxwell+Pascal+Volta)</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Noticed several similar reports: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="364209606" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/12117" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/12117/hovercard" href="https://github.com/pytorch/pytorch/issues/12117">#12117</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="388471366" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/14872" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/14872/hovercard" href="https://github.com/pytorch/pytorch/issues/14872">#14872</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="379423240" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/13808" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/13808/hovercard" href="https://github.com/pytorch/pytorch/issues/13808">#13808</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="356570303" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/11203" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/11203/hovercard" href="https://github.com/pytorch/pytorch/issues/11203">#11203</a></p>
1
<p dir="auto">I build some simple dashboard layout with nextjs and material ui next, but I face with strange problem that only happened in production.<br> The problem is regarding miss class name placement to the component wherever I click some link that navigate to the current route. I'm not quite sure if it nextjs problem or material ui problem.<br> live example: <a href="https://vanilla-nextjs-dashboard.herokuapp.com/" rel="nofollow">https://vanilla-nextjs-dashboard.herokuapp.com/</a></p> <ul dir="auto"> <li>[x ] I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">All style and class name placed at the right component</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Normal scenario the component will get this classname<br> <code class="notranslate">&lt;div class="c280 c281" aria-hidden="true" style="opacity: 1; transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"&gt;&lt;/div&gt;</code><br> After I click navigation to the current route (current route dashboard, I click dashboard). The class name will change to the wrong one.<br> <code class="notranslate">&lt;div class="c1 c2" aria-hidden="true" style="opacity: 1; transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"&gt;&lt;/div&gt;</code></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Clone <a href="https://github.com/tenosiswono/vanilla-nextjs-dashboard">https://github.com/tenosiswono/vanilla-nextjs-dashboard</a></li> <li>Run production</li> <li>Login, Navigate to current route</li> <li>Click on the notification button</li> </ol> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>latest</td> </tr> <tr> <td>node</td> <td>6.11.2</td> </tr> <tr> <td>OS</td> <td>heroku</td> </tr> <tr> <td>browser</td> <td>chorme</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">.babelrc.js file compilation failed with next.prepare() and custom . Working with configuration inside of package.json and .babelrc file without .js extension.</p> <h2 dir="auto">To Reproduce</h2> <ol dir="auto"> <li>Use Custom Server next.js - <a href="https://github.com/zeit/next.js/tree/canary/examples/custom-server">https://github.com/zeit/next.js/tree/canary/examples/custom-server</a></li> <li>npm install babel-plugin-transform-define --save</li> <li>create .babelrc.js with this content:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module.export = { &quot;presets&quot;: [ &quot;next/babel&quot; ], &quot;plugins&quot;: [ [ &quot;transform-define&quot;, { &quot;process.env.REACT_APP_SENTRY_DSN_ADDR&quot;: &quot;TEST_URL&quot; } ] ] };"><pre class="notranslate"><code class="notranslate">module.export = { "presets": [ "next/babel" ], "plugins": [ [ "transform-define", { "process.env.REACT_APP_SENTRY_DSN_ADDR": "TEST_URL" } ] ] }; </code></pre></div> <ol start="4" dir="auto"> <li>Override global component by creating _app.js page inside of pages directory with basic config:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from 'react' import App, { Container } from 'next/app' export default class MyApp extends App { static async getInitialProps({ Component, router, ctx }) { let pageProps = {}; if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx) } return { pageProps } } render () { const { Component, pageProps } = this.props; return ( &lt;Container&gt; &lt;Component {...pageProps} /&gt; &lt;/Container&gt; ) } }"><pre class="notranslate"><code class="notranslate">import React from 'react' import App, { Container } from 'next/app' export default class MyApp extends App { static async getInitialProps({ Component, router, ctx }) { let pageProps = {}; if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx) } return { pageProps } } render () { const { Component, pageProps } = this.props; return ( &lt;Container&gt; &lt;Component {...pageProps} /&gt; &lt;/Container&gt; ) } } </code></pre></div> <p dir="auto">Project structure looks like:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7398214/47289013-0d35c200-d5f9-11e8-9944-77284e57c049.png"><img src="https://user-images.githubusercontent.com/7398214/47289013-0d35c200-d5f9-11e8-9944-77284e57c049.png" alt="image" style="max-width: 100%;"></a></p> <ol start="5" dir="auto"> <li>npm run dev - shows errors with _app.js file compilation.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7398214/47288980-e7102200-d5f8-11e8-9671-acf9d30f5974.png"><img src="https://user-images.githubusercontent.com/7398214/47288980-e7102200-d5f8-11e8-9671-acf9d30f5974.png" alt="image" style="max-width: 100%;"></a></li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Compile _app.js file with .babelrc.js configuration</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: Windows</li> </ul> <blockquote> </blockquote> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;babel-plugin-transform-define&quot;: &quot;^1.3.0&quot;, &quot;next&quot;: &quot;^7.0.2&quot;, &quot;react&quot;: &quot;^16.5.2&quot;, &quot;react-dom&quot;: &quot;^16.5.2&quot;"><pre class="notranslate"><code class="notranslate">"babel-plugin-transform-define": "^1.3.0", "next": "^7.0.2", "react": "^16.5.2", "react-dom": "^16.5.2" </code></pre></div> <h2 dir="auto">Additionally</h2> <p dir="auto">Fun fact is everything works correctly when I change .babelrc.js file to .babelrc without js inside, with pure json. Imposibru!</p>
0
<p dir="auto">For .NET debugging, we currently need to have the user manually create a tasks.json in order to support build. We would like to find some solution to avoid the user needing to do this manually.</p> <p dir="auto">A few options:</p> <ol dir="auto"> <li>Support simple shell commands directly inside of launch.json. So if all the user wants to do is execute a command with a default error syntax they don't need this extra file. Example:<br> "preLaunchCommand": "dotnet compile"<br> Which would execute 'dotnet compile' in the workspace directory.<br> -or-</li> <li>Support auto-generating a tasks.json when creating launch.json. This way we can give them a good default value of it and the user doesn't need to manually enter it.<br> -or-</li> <li>Support defining tasks in an extension's package.json. So the user only needs to create a launch.json if they want to do something weird.</li> </ol>
<p dir="auto">Invoking the command <code class="notranslate">ext install</code> repeatedly is really slow.</p> <p dir="auto">When you invoke the command, a little blue line scrolls horizontally to show it's doing something (fetching the extension database?), and eventually displays a list of extensions you can install. Repeatedly invoking the command should cache this work from last time, but it seems to re-fetch (or whatever it's doing) every time, which is fairly annoying when I want to install a few extensions at once.</p>
0
<p dir="auto">Right now the cassandra docs use a ReplicationController. I think it would be good to update the doc to mention using daemon sets as a valid way to place a single cassandra node on each of the kubernetes nodes, a more realistic deployment method.</p> <p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="110533249" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/15324" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/15324/hovercard" href="https://github.com/kubernetes/kubernetes/issues/15324">#15324</a></p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl version Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3&quot;, GitVersion:&quot;v1.3.6&quot;, GitCommit:&quot;ae4550cc9c89a593bcda6678df201db1b208133b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-08-26T18:13:23Z&quot;, GoVersion:&quot;go1.6.2&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;} Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.6&quot;, GitCommit:&quot;e569a27d02001e343cb68086bc06d47804f62af6&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-11-12T05:16:27Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><code class="notranslate">$ kubectl version Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6", GitCommit:"ae4550cc9c89a593bcda6678df201db1b208133b", GitTreeState:"clean", BuildDate:"2016-08-26T18:13:23Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.6", GitCommit:"e569a27d02001e343cb68086bc06d47804f62af6", GitTreeState:"clean", BuildDate:"2016-11-12T05:16:27Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"} </code></pre></div> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: GKE</li> <li><strong>OS</strong> (e.g. from /etc/os-release): default</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> I was trying to reproduce <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="182915151" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34772" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34772/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34772">#34772</a> using <a href="https://github.com/kubernetes/kubernetes/issues/34772#issuecomment-260594667" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34772/hovercard">these instructions</a>. Due to bug in scheduler we were assigning too many pods per node. In most cases kubelet was correctly discarding them by marking them as <code class="notranslate">OutOfcpu</code>. However two strange things happened:</p> <ul dir="auto"> <li>upon kubelet restart, it tried to re-add all such <code class="notranslate">OutOfcpu</code> pods, run predicate check for them etc.</li> <li>for two pods that were incorrectly assigned (due to scheduler bug) during kubelet restart kubelet completely ignored them - they are still pending, with node assigned for 12h.</li> </ul> <p dir="auto">I have a cluster that I can add someone to investigate.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <ul dir="auto"> <li><code class="notranslate">OutOfcpu</code> pods should not be retried after restart</li> <li>new pods, assigned during kubelet restart, should be discarded with <code class="notranslate">OutOfcpu</code> error.</li> </ul> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">Run <a href="https://github.com/kubernetes/kubernetes/issues/34772#issuecomment-260594667" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34772/hovercard">these instructions</a>.</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <p dir="auto">Marking as <code class="notranslate">release-blocker</code> until it's triaged by node team.</p>
0
<p dir="auto">We define 4D tensor as stored in channels last memory format, when dimensions order is NCHW and <code class="notranslate">C-strides &lt; W-strides &lt; H-strides &lt; N-strides</code> <em>(If size of any dimension is equal to 1, this dimension strides value is not taken into account)</em>.</p> <p dir="auto">Channels last contiguous tensor is channel last tensor which occupies contiguous memory block. So <code class="notranslate">x.is_contiguous(memory_format=torch.channels_last)</code> checks if tensor is channels last contiguous.</p> <p dir="auto">The goal of the experiment is to use channels last memory format in all Resnet (<a href="https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py">https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py</a>) model's operators and to measure performance gains on the Volta devices with CudNN library available.</p> <p dir="auto">This experiment requires:</p> <ol dir="auto"> <li>Update operators kernels to follow the next rule: if one of the operator's inputs is channel last tensor, all outputs should also be in the channel last memory format.</li> <li>For better performance gain, update DataLoader to output channel last tensors.</li> </ol> <p dir="auto">To avoid changing the model itself and more importantly, introduce this optimization to the existing saved models. We need to introduce the next changes:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">to</code> operator should preserve memory format. <code class="notranslate">copy_device_to_device</code> should be memory format aware. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="477596984" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/23899" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/23899/hovercard" href="https://github.com/pytorch/pytorch/pull/23899">#23899</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">empty_like</code> operator should preserve memory format by default. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="477596984" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/23899" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/23899/hovercard" href="https://github.com/pytorch/pytorch/pull/23899">#23899</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">resize_as_</code> operator should be memory format aware. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="477596984" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/23899" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/23899/hovercard" href="https://github.com/pytorch/pytorch/pull/23899">#23899</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">clone</code> operator should preserve memory format. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="477596984" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/23899" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/23899/hovercard" href="https://github.com/pytorch/pytorch/pull/23899">#23899</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scatter</code> and <code class="notranslate">gather</code> functions should be memory format aware. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="479168416" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/24121" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/24121/hovercard" href="https://github.com/pytorch/pytorch/pull/24121">#24121</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">TensorIterator</code> based point-wise operators should preserve memory format (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="478700314" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/24038" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/24038/hovercard" href="https://github.com/pytorch/pytorch/pull/24038">#24038</a>).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">adaptive_avg_pool2d_cuda</code> and <code class="notranslate">adaptive_avg_pool2d_backward_cuda</code> should have channel last optimized kernels. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="481041278" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/24396" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/24396/hovercard" href="https://github.com/pytorch/pytorch/pull/24396">#24396</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">max_pool2d_with_indices_cuda</code> and <code class="notranslate">max_pool2d_with_indices_backward_cuda</code> should have channel last optimized kernels (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="482565934" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/24872" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/24872/hovercard" href="https://github.com/pytorch/pytorch/pull/24872">#24872</a>).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">cudnn_batch_norm</code> and <code class="notranslate">cudnn_batch_norm_backward</code> should support channels last memory format. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="477240072" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/23861" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/23861/hovercard" href="https://github.com/pytorch/pytorch/pull/23861">#23861</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">cudnn_convolution_forward</code> and <code class="notranslate">cudnn_convolution_backward</code> should support channels last memory format. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="477240072" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/23861" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/23861/hovercard" href="https://github.com/pytorch/pytorch/pull/23861">#23861</a>)</li> </ul> <p dir="auto">Writing memory format aware operators require special functions introduced in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="473032826" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/23391" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/23391/hovercard" href="https://github.com/pytorch/pytorch/pull/23391">#23391</a></p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="auto memory_format = input_tensor.suggest_memory_format(); auto output_tensor = at::empty(output_shape, memory_format); switch (memory_format) { case MemoryFormat::ChannelsLast: { input_cl_contiguous = input_tensor.contiguous( MemoryFormat::ChannelsLast); // if kernel requires memory contiguous // tensor // .... kernel code break; } case MemoryFormat::Contiguous: { // .... standard kernel break; } default: TORCH_CHECK( false, &quot;Unsupported memory format. Supports only ChannelsLast, Contiguous&quot;); }"><pre class="notranslate"><span class="pl-k">auto</span> memory_format = input_tensor.suggest_memory_format(); <span class="pl-k">auto</span> output_tensor = at::empty(output_shape, memory_format); <span class="pl-k">switch</span> (memory_format) { <span class="pl-k">case</span> MemoryFormat::ChannelsLast: { input_cl_contiguous = input_tensor.<span class="pl-c1">contiguous</span>( MemoryFormat::ChannelsLast); <span class="pl-c"><span class="pl-c">//</span> if kernel requires memory contiguous</span> <span class="pl-c"><span class="pl-c">//</span> tensor</span> <span class="pl-c"><span class="pl-c">//</span> .... kernel code</span> <span class="pl-k">break</span>; } <span class="pl-k">case</span> MemoryFormat::Contiguous: { <span class="pl-c"><span class="pl-c">//</span> .... standard kernel</span> <span class="pl-k">break</span>; } <span class="pl-k">default</span>: <span class="pl-c1">TORCH_CHECK</span>( <span class="pl-c1">false</span>, <span class="pl-s"><span class="pl-pds">"</span>Unsupported memory format. Supports only ChannelsLast, Contiguous<span class="pl-pds">"</span></span>); }</pre></div> <h2 dir="auto">Notes</h2> <ul dir="auto"> <li>Resnet calls <code class="notranslate">x = x.reshape(x.size(0), -1)</code> before linear layers, we are going to update <code class="notranslate">reshape</code> and <code class="notranslate">view</code> code and convert tensor's memory format to <code class="notranslate">torch.contiguous_format</code> at this step.</li> <li>Making old models/libraries to work faster also requires <strong>BC sacrifices</strong>, such as<br> <code class="notranslate">empty_like</code> ( and all _like operators ) will return channels last tensor if input is channels last, similar will apply to <code class="notranslate">to</code>, <code class="notranslate">clone</code>, <code class="notranslate">resize_as</code>. We are thinking about the ability to control suggest_memory_format behaviors by the global variable.</li> </ul>
<p dir="auto">If you have a question or would like help and support, please ask at our<br> <a href="https://discuss.pytorch.org/" rel="nofollow">forums</a>.</p> <p dir="auto">If you are submitting a feature request, please preface the title with [feature request].<br> If you are submitting a bug report, please fill in the following details.</p> <h2 dir="auto">Issue description</h2> <p dir="auto">Unable to do git clone 0.4.0 of pytorch<br> Provide a short description.</p> <h2 dir="auto">Code example</h2> <p dir="auto">Cloning into 'pytorch-src'...<br> remote: Counting objects: 101473, done.<br> remote: Compressing objects: 100% (62/62), done.<br> remote: Total 101473 (delta 24), reused 20 (delta 10), pack-reused 101401<br> Receiving objects: 100% (101473/101473), 54.60 MiB | 49.09 MiB/s, done.<br> Resolving deltas: 100% (75514/75514), done.<br> ~/pytorch/pytorch-src ~/pytorch<br> Note: checking out 'v0.4.0'.</p> <p dir="auto">You are in 'detached HEAD' state. You can look around, make experimental<br> changes and commit them, and you can discard any commits you make in this<br> state without impacting any branches by performing another checkout.</p> <p dir="auto">If you want to create a new branch to retain commits you create, you may<br> do so (now or later) by using -b with the checkout command again. Example:</p> <p dir="auto">git checkout -b <br> .....<br> Cloning into '/home/ec2-user/pytorch/pytorch-src/third_party/eigen'...<br> Username for '<a href="https://github.com">https://github.com</a>': gautamkmr<br> Password for '<a href="https://[email protected]">https://[email protected]</a>':<br> remote: Repository not found.<br> fatal: repository '<a href="https://github.com/RLovelett/eigen.git/">https://github.com/RLovelett/eigen.git/</a>' not found<br> fatal: clone of '<a href="https://github.com/RLovelett/eigen.git">https://github.com/RLovelett/eigen.git</a>' into submodule path '/home/ec2-user/pytorch/pytorch-src/third_party/eigen' failed<br> Failed to clone 'third_party/eigen' a second time, aborting<br> [ec2-user@ip-172-31-17-149 pytorch]$</p> <h2 dir="auto">System Info</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> (or fill out the checklist below manually).</p> <p dir="auto">You can get the script and run it with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py </code></pre></div> <ul dir="auto"> <li>PyTorch or Caffe2:</li> <li>How you installed PyTorch (conda, pip, source):</li> <li>Build command you used (if compiling from source):</li> <li>OS:</li> <li>PyTorch version:</li> <li>Python version:</li> <li>CUDA/cuDNN version:</li> <li>GPU models and configuration:</li> <li>GCC version (if compiling from source):</li> <li>CMake version:</li> <li>Versions of any other relevant libraries:</li> </ul>
0
<p dir="auto">Hi, I ran into this non-intuitive behavior:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test = torch.Tensor([1, 2, 3, 4, 5]) test[1:] -= test[:-1]"><pre class="notranslate"><code class="notranslate">test = torch.Tensor([1, 2, 3, 4, 5]) test[1:] -= test[:-1] </code></pre></div> <p dir="auto">results in <code class="notranslate">test = [1, 1, 1, 1, 4]</code> for me, while the non in-place version <code class="notranslate">test[1:] = test[1:] - test[:-1]</code> returns the correct result <code class="notranslate">[1, 1, 1, 1, 1]</code>. If I put the tensor to cuda() first the output seems correct...<br> (pytorch compiled from master '0.1.9+aaf41c6')</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="t = torch.range(1,10) t[1:] = t[:-1] # wrong result print(t) t = torch.range(1,10) t[1:] = t[:-1].clone() # right result print(t) t = torch.range(1, 10).numpy() t[1:] = t[:-1] # right result print(t)"><pre class="notranslate"><code class="notranslate">t = torch.range(1,10) t[1:] = t[:-1] # wrong result print(t) t = torch.range(1,10) t[1:] = t[:-1].clone() # right result print(t) t = torch.range(1, 10).numpy() t[1:] = t[:-1] # right result print(t) </code></pre></div> <p dir="auto">Note that the same (wrong?) behaviour is present in lua torch.</p>
1
<h4 dir="auto">Description:</h4> <p dir="auto">I experience <code class="notranslate">Segmentation Fault</code> when executing a script. I am unable to detect what exactly causes the crash, nor to deliver a minimal reproducing code. However, I can share the <code class="notranslate">backtrace</code> from <code class="notranslate">gdb</code>:</p> <h4 dir="auto">Error Message:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)"><pre class="notranslate"><code class="notranslate">Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) </code></pre></div> <h4 dir="auto">Backtrace:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from /home/samuele/.conda/envs/rl-new/lib/python3.7/site-packages/scipy/linalg/_flapack.cpython-37m-x86_64-linux-gnu.so #1 0x00005555556cc61b in _PyObject_FastCallKeywords () #2 0x0000555555728a79 in _PyEval_EvalFrameDefault () #3 0x0000555555669059 in _PyEval_EvalCodeWithName () #4 0x00005555556cb2a5 in _PyFunction_FastCallKeywords () #5 0x0000555555723a66 in _PyEval_EvalFrameDefault () #6 0x0000555555669059 in _PyEval_EvalCodeWithName () #7 0x00005555556cb2a5 in _PyFunction_FastCallKeywords () #8 0x0000555555727e6e in _PyEval_EvalFrameDefault () #9 0x00005555556cb07b in _PyFunction_FastCallKeywords () #10 0x0000555555723a66 in _PyEval_EvalFrameDefault () #11 0x0000555555669919 in _PyEval_EvalCodeWithName () #12 0x000055555566a134 in _PyFunction_FastCallDict () #13 0x00005555557251ab in _PyEval_EvalFrameDefault () #14 0x0000555555669919 in _PyEval_EvalCodeWithName () #15 0x000055555566a134 in _PyFunction_FastCallDict () #16 0x00005555557251ab in _PyEval_EvalFrameDefault () #17 0x0000555555669059 in _PyEval_EvalCodeWithName () #18 0x00005555556cb307 in _PyFunction_FastCallKeywords () #19 0x0000555555723a66 in _PyEval_EvalFrameDefault () #20 0x000055555566a06b in _PyFunction_FastCallDict () ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit--- #21 0x0000555555680a03 in _PyObject_Call_Prepend () #22 0x00005555556c3baa in slot_tp_call () #23 0x00005555556758d2 in PyObject_Call () #24 0x00005555557251ab in _PyEval_EvalFrameDefault () #25 0x0000555555669059 in _PyEval_EvalCodeWithName () #26 0x000055555566a134 in _PyFunction_FastCallDict () #27 0x0000555555680a03 in _PyObject_Call_Prepend () #28 0x00005555556c3baa in slot_tp_call () #29 0x00005555556758d2 in PyObject_Call () #30 0x00005555557251ab in _PyEval_EvalFrameDefault () #31 0x0000555555669059 in _PyEval_EvalCodeWithName () #32 0x000055555566a134 in _PyFunction_FastCallDict () #33 0x00005555557251ab in _PyEval_EvalFrameDefault () #34 0x00005555556cb07b in _PyFunction_FastCallKeywords () #35 0x00005555557238b0 in _PyEval_EvalFrameDefault () #36 0x00005555556cb07b in _PyFunction_FastCallKeywords () #37 0x00005555557238b0 in _PyEval_EvalFrameDefault () #38 0x000055555566a06b in _PyFunction_FastCallDict () #39 0x0000555555680a03 in _PyObject_Call_Prepend () #40 0x00005555556758d2 in PyObject_Call () #41 0x0000555555775ef7 in t_bootstrap () #42 0x00007ffff79266db in start_thread (arg=0x7fff117fa700) at pthread_create.c:463 ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit--- #43 0x00007ffff764f71f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95"><pre class="notranslate"><code class="notranslate">from /home/samuele/.conda/envs/rl-new/lib/python3.7/site-packages/scipy/linalg/_flapack.cpython-37m-x86_64-linux-gnu.so #1 0x00005555556cc61b in _PyObject_FastCallKeywords () #2 0x0000555555728a79 in _PyEval_EvalFrameDefault () #3 0x0000555555669059 in _PyEval_EvalCodeWithName () #4 0x00005555556cb2a5 in _PyFunction_FastCallKeywords () #5 0x0000555555723a66 in _PyEval_EvalFrameDefault () #6 0x0000555555669059 in _PyEval_EvalCodeWithName () #7 0x00005555556cb2a5 in _PyFunction_FastCallKeywords () #8 0x0000555555727e6e in _PyEval_EvalFrameDefault () #9 0x00005555556cb07b in _PyFunction_FastCallKeywords () #10 0x0000555555723a66 in _PyEval_EvalFrameDefault () #11 0x0000555555669919 in _PyEval_EvalCodeWithName () #12 0x000055555566a134 in _PyFunction_FastCallDict () #13 0x00005555557251ab in _PyEval_EvalFrameDefault () #14 0x0000555555669919 in _PyEval_EvalCodeWithName () #15 0x000055555566a134 in _PyFunction_FastCallDict () #16 0x00005555557251ab in _PyEval_EvalFrameDefault () #17 0x0000555555669059 in _PyEval_EvalCodeWithName () #18 0x00005555556cb307 in _PyFunction_FastCallKeywords () #19 0x0000555555723a66 in _PyEval_EvalFrameDefault () #20 0x000055555566a06b in _PyFunction_FastCallDict () ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit--- #21 0x0000555555680a03 in _PyObject_Call_Prepend () #22 0x00005555556c3baa in slot_tp_call () #23 0x00005555556758d2 in PyObject_Call () #24 0x00005555557251ab in _PyEval_EvalFrameDefault () #25 0x0000555555669059 in _PyEval_EvalCodeWithName () #26 0x000055555566a134 in _PyFunction_FastCallDict () #27 0x0000555555680a03 in _PyObject_Call_Prepend () #28 0x00005555556c3baa in slot_tp_call () #29 0x00005555556758d2 in PyObject_Call () #30 0x00005555557251ab in _PyEval_EvalFrameDefault () #31 0x0000555555669059 in _PyEval_EvalCodeWithName () #32 0x000055555566a134 in _PyFunction_FastCallDict () #33 0x00005555557251ab in _PyEval_EvalFrameDefault () #34 0x00005555556cb07b in _PyFunction_FastCallKeywords () #35 0x00005555557238b0 in _PyEval_EvalFrameDefault () #36 0x00005555556cb07b in _PyFunction_FastCallKeywords () #37 0x00005555557238b0 in _PyEval_EvalFrameDefault () #38 0x000055555566a06b in _PyFunction_FastCallDict () #39 0x0000555555680a03 in _PyObject_Call_Prepend () #40 0x00005555556758d2 in PyObject_Call () #41 0x0000555555775ef7 in t_bootstrap () #42 0x00007ffff79266db in start_thread (arg=0x7fff117fa700) at pthread_create.c:463 ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit--- #43 0x00007ffff764f71f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 </code></pre></div> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sys==1.5.2 scipy==1.19.2 sys.version_info(major=3, minor=7, micro=0, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">sys==1.5.2 scipy==1.19.2 sys.version_info(major=3, minor=7, micro=0, releaselevel='final', serial=0) </code></pre></div> <h4 dir="auto">System Information:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Ubuntu 18.84.5 LTS 64-bit AMD® Ryzen 9 3900x 12-core processor × 24 GNOME 3.28.2"><pre class="notranslate"><code class="notranslate">Ubuntu 18.84.5 LTS 64-bit AMD® Ryzen 9 3900x 12-core processor × 24 GNOME 3.28.2 </code></pre></div>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1421" rel="nofollow">http://projects.scipy.org/scipy/ticket/1421</a> on 2011-04-08 by trac user schwarz, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>.</em></p> <p dir="auto">Problem:<br> the Documentation [http://docs.scipy.org/doc/scipy-0.9.0/reference/generated/scipy.stats.poisson.html#scipy.stats.poisson]<br> states that there are the methods:<br> pdf(x, mu, loc=0, scale=1) Probability density function.<br> fit(data, mu, loc=0, scale=1) Parameter estimates for generic data.</p> <p dir="auto">but this is not true.</p> <p dir="auto">Steps to reproduce:</p> <ol dir="auto"> <li>install scipy from <a href="http://sourceforge.net/projects/scipy/files/scipy/0.9.0/scipy-0.9.0.tar.gz/download" rel="nofollow">http://sourceforge.net/projects/scipy/files/scipy/0.9.0/scipy-0.9.0.tar.gz/download</a></li> </ol> <p dir="auto">2.) run python with:</p> <blockquote> <p dir="auto">import scipy<br> print scipy.stats.poisson.fit<br> print scipy.stats.poisson.pdf</p> </blockquote> <p dir="auto">3.) get output:<br> AttributeError: 'poisson_gen' object has no attribute 'fit'<br> AttributeError: 'poisson_gen' object has no attribute 'pdf'</p> <p dir="auto">4.) check scipy version:</p> <blockquote> <p dir="auto">print scipy.<strong>version</strong><br> 0.9.0</p> </blockquote>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> In our project we use system js in order to create our application bundles. Because we split our project into several applications, we build one bundle for all common services and components (lib.bundle.js) and one bundle per app (app.bundle.js) which does not include what is already available in lib.bundle.js. We are using <a href="https://github.com/systemjs/builder">https://github.com/systemjs/builder</a> (Version 0.15.35) to build the bundles.</p> <p dir="auto">Further we are using baseUrl and paths in tsconfig in order to be able to import our core files with an absolute import path. Example:<br> tsconfig:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;baseUrl&quot;: &quot;./&quot;, &quot;paths&quot;: { &quot;@our-lib/*&quot;: [ &quot;src/our-lib/*&quot; ]"><pre class="notranslate"><code class="notranslate"> "baseUrl": "./", "paths": { "@our-lib/*": [ "src/our-lib/*" ] </code></pre></div> <p dir="auto">When transpiling without AoT, the import statements remain absolute and we are able to configure SystemJS (0.19.42) in order to load the file from the lib.bundle.js</p> <p dir="auto">Now we want to use AoT. ngc runs successfully and we can bundle the files by using index-aot.ts (bootstraps the module factory) instead of index.ts.</p> <p dir="auto">We can't find a way to configure SystemJS in order to locate the modules in our lib.bundle.js. We see that ngc replaces the absolute import by a relative import although it uses the same baseUrl/paths configuration.</p> <p dir="auto"><strong>Expected behavior</strong><br> ngc should produce absolute imports if there is a path mapping in tsconfig or we need a way to map relative imports to absolute imports in system js config.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Use AoT in a complex project which uses system js / system js builder and later on lazy loading.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 4.0.0-rc.3</p> </li> <li> <p dir="auto"><strong>Browser:</strong> Chrome</p> </li> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.1.6</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = v6.10.0</p> </li> </ul>
<ul class="contains-task-list"> <li><strong>I'm submitting a strange behavior for ViewContainerRef.createComponent.</strong></li> <li>[x ] bug report</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> feature request</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> support request =&gt; Please do not submit support request here, see note at the top of this template.</li> </ul> <p dir="auto"><strong>Current behavior</strong><br> When want to create component in current component container like this component is rendered outside container of current component: this.componentResolver.resolveComponent(SampleComponent).then((factory) =&gt; {<br> console.log(this.viewContainerRef);<br> this.viewContainerRef.createComponent(factory);<br> });</p> <p dir="auto">Result:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5635687/15512320/8cd38798-21df-11e6-9a20-01c076724a7e.png"><img src="https://cloud.githubusercontent.com/assets/5635687/15512320/8cd38798-21df-11e6-9a20-01c076724a7e.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected/desired behavior</strong><br> Expect to load new component inside container of current component example in body-bar component</p> <ul dir="auto"> <li><strong>Please tell us about your environment:</strong><br> Project generated with angular cli</li> <li><strong>Angular version:</strong> 2.0.0-rc1</li> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> <li><strong>Language:</strong> [TypeScript]</li> </ul>
0
<p dir="auto">Someone generate package as <code class="notranslate">wordcount</code>, his or her package will be shown as a deprecated package.</p> <p dir="auto">Because many names look like <code class="notranslate">lib/wordcount.coffee</code> and <code class="notranslate">keymaps/wordcount.cson</code>, many os use can name their packages <code class="notranslate">wordcount</code> and will get deprecated messages.</p>
<p dir="auto">See: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="91343488" data-permission-text="Title is private" data-url="https://github.com/atom/settings-view/issues/554" data-hovercard-type="issue" data-hovercard-url="/atom/settings-view/issues/554/hovercard" href="https://github.com/atom/settings-view/issues/554">atom/settings-view#554</a></p>
1
<p dir="auto">The following command fails with a syntax error because of</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- command: &quot;{{ venv_dir }}/bin/gunicorn --config=gunicorn.conf&quot;"><pre class="notranslate"><code class="notranslate">- command: "{{ venv_dir }}/bin/gunicorn --config=gunicorn.conf" </code></pre></div> <p dir="auto">But the following succeeds:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- action: command &quot;{{ venv_dir }}/bin/gunicorn&quot; --config=gunicorn.conf"><pre class="notranslate"><code class="notranslate">- action: command "{{ venv_dir }}/bin/gunicorn" --config=gunicorn.conf </code></pre></div> <p dir="auto">It should be possible to use variables directly in a command.</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">lib/ansible/modules/network/eos/eos_config.py</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0 (detached HEAD 5a3f52d988) last updated 2017/05/19 12:01:08 (GMT -600) config file = configured module search path = Default w/o overrides python version = 2.7.12 (default, Oct 14 2016, 09:24:15) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0 (detached HEAD 5a3f52d988) last updated 2017/05/19 12:01:08 (GMT -600) config file = configured module search path = Default w/o overrides python version = 2.7.12 (default, Oct 14 2016, 09:24:15) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">N/A</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Using Ansible to configure an Arista EOS switch</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Configuration request always reports 'changed', even on subsequent<br> runs of the same playbook.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Ethernet2 is used as an example.</p> <p dir="auto">Set the switchport mode of Ethernet2 to trunk by issuing the commands</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dut(config)#interface Ethernet2 dut(config-if-Et2)#switchport mode trunk dut(config-if-Et2)#exit"><pre class="notranslate"><code class="notranslate">dut(config)#interface Ethernet2 dut(config-if-Et2)#switchport mode trunk dut(config-if-Et2)#exit </code></pre></div> <p dir="auto">Verify the switchport mode is trunk on the switch:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dut(config)#show running-config all section interface Ethernet2 interface Ethernet2 no description no shutdown ... no switchport asym vlan switchport mode trunk switchport dot1q ethertype 0x8100 ..."><pre class="notranslate"><code class="notranslate">dut(config)#show running-config all section interface Ethernet2 interface Ethernet2 no description no shutdown ... no switchport asym vlan switchport mode trunk switchport dot1q ethertype 0x8100 ... </code></pre></div> <p dir="auto">Run a playbook with a task to call eos_config that changes the<br> switchport mode to access, e.g.<br> <code class="notranslate">ansible-playbook issue.yml -i hosts -e '{"lines": ["switchport mode access"], "parents": ["interface Ethernet2"], "match": "line", "description": "Update Ethernet2"}' -vvv</code></p> <p dir="auto">Verify the switchport mode was changed to access on the switch:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dut(config)#show running-config all section interface Ethernet2 interface Ethernet2 no description no shutdown ... no switchport asym vlan switchport mode access switchport dot1q ethertype 0x8100 ..."><pre class="notranslate"><code class="notranslate">dut(config)#show running-config all section interface Ethernet2 interface Ethernet2 no description no shutdown ... no switchport asym vlan switchport mode access switchport dot1q ethertype 0x8100 ... </code></pre></div> <p dir="auto">Run the same ansible-playbook command again and check the status of the run.</p> <p dir="auto">Transport was cli when this issue was discovered. May also affect eapi.</p> <p dir="auto">Same issue was seen when removing the ip address for Ethernet2 with<br> "lines" set to ["no ip address"] on the ansible-playbook command.</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: test_hosts gather_facts: no connection: local tasks: - name: &quot;{{ description | default('config playbook task') }}&quot; eos_config: lines: &quot;{{ lines | default(['']) }}&quot; parents: &quot;{{ parents | default(omit) }}&quot; before: &quot;{{ before | default(omit) }}&quot; after: &quot;{{ after | default(omit) }}&quot; match: &quot;{{ match | default('none')}}&quot; auth_pass: &quot;{{ auth_pass | default(omit) }}&quot; authorize: &quot;{{ authorize | default(omit) }}&quot; host: &quot;{{ host | default(omit) }}&quot; password: &quot;{{ password | default(omit) }}&quot; port: &quot;{{ port | default(omit) }}&quot; provider: &quot;{{ provider | default(omit) }}&quot; transport: &quot;cli&quot; use_ssl: &quot;{{ use_ssl | default(omit) }}&quot; username: &quot;{{ username | default(omit) }}&quot; "><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">test_hosts</span> <span class="pl-ent">gather_facts</span>: <span class="pl-s">no</span> <span class="pl-ent">connection</span>: <span class="pl-s">local</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ description | default('config playbook task') }}<span class="pl-pds">"</span></span> <span class="pl-ent">eos_config</span>: <span class="pl-ent">lines</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ lines | default(['']) }}<span class="pl-pds">"</span></span> <span class="pl-ent">parents</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ parents | default(omit) }}<span class="pl-pds">"</span></span> <span class="pl-ent">before</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ before | default(omit) }}<span class="pl-pds">"</span></span> <span class="pl-ent">after</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ after | default(omit) }}<span class="pl-pds">"</span></span> <span class="pl-ent">match</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ match | default('none')}}<span class="pl-pds">"</span></span> <span class="pl-ent">auth_pass</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ auth_pass | default(omit) }}<span class="pl-pds">"</span></span> <span class="pl-ent">authorize</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ authorize | default(omit) }}<span class="pl-pds">"</span></span> <span class="pl-ent">host</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ host | default(omit) }}<span class="pl-pds">"</span></span> <span class="pl-ent">password</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ password | default(omit) }}<span class="pl-pds">"</span></span> <span class="pl-ent">port</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ port | default(omit) }}<span class="pl-pds">"</span></span> <span class="pl-ent">provider</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ provider | default(omit) }}<span class="pl-pds">"</span></span> <span class="pl-ent">transport</span>: <span class="pl-s"><span class="pl-pds">"</span>cli<span class="pl-pds">"</span></span> <span class="pl-ent">use_ssl</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ use_ssl | default(omit) }}<span class="pl-pds">"</span></span> <span class="pl-ent">username</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ username | default(omit) }}<span class="pl-pds">"</span></span> </pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">After initial run, interface Ethernet2 switchport mode is access, and the<br> results show 1 change.</p> <p dir="auto">After second and subsequent runs, the results should show no changes<br> since Ethernet2 switchport mode is currently set to access.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">After second and subsequent runs, the results still show 1 change taking<br> place. Second run output below.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No config file found; using defaults PLAYBOOK: issue.yml ********************************************************************** 1 plays in issue.yml PLAY [test_hosts] ************************************************************************ META: ran handlers TASK [Update Ethernet2] ****************************************************************** task path: /Users/grybak/working/virtualenvs/roletest2.2/ansible-eos-ipv4/issue.yml:6 &lt;dut&gt; using connection plugin network_cli Using module file /Users/grybak/working/virtualenvs/roletest2.2/ansible/lib/ansible/modules/network/eos/eos_config.py &lt;dut&gt; ESTABLISH LOCAL CONNECTION FOR USER: grybak &lt;dut&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0' &lt;dut&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p &quot;` echo /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316 `&quot; &amp;&amp; echo ansible-tmp-1495237579.37-206099913710316=&quot;` echo /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316 `&quot; ) &amp;&amp; sleep 0' &lt;dut&gt; PUT /var/folders/b7/n3q7cy3x35q5nyd13s82g4340000gp/T/tmpP4529P TO /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316/eos_config.py &lt;dut&gt; EXEC /bin/sh -c 'chmod u+x /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316/ /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316/eos_config.py &amp;&amp; sleep 0' &lt;dut&gt; EXEC /bin/sh -c '/usr/bin/python /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316/eos_config.py; rm -rf &quot;/Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' changed: [dut] =&gt; { &quot;changed&quot;: true, &quot;commands&quot;: [ &quot;interface Ethernet2&quot;, &quot;switchport mode access&quot; ], &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;after&quot;: null, &quot;auth_pass&quot;: null, &quot;authorize&quot;: true, &quot;backup&quot;: false, &quot;before&quot;: null, &quot;config&quot;: null, &quot;defaults&quot;: false, &quot;force&quot;: false, &quot;host&quot;: &quot;dut&quot;, &quot;lines&quot;: [ &quot;switchport mode access&quot; ], &quot;match&quot;: &quot;line&quot;, &quot;parents&quot;: [ &quot;interface Ethernet2&quot; ], &quot;password&quot;: &quot;VALUE_SPECIFIED_IN_NO_LOG_PARAMETER&quot;, &quot;port&quot;: 443, &quot;provider&quot;: { &quot;auth_pass&quot;: null, &quot;authorize&quot;: true, &quot;host&quot;: &quot;dut&quot;, &quot;password&quot;: &quot;VALUE_SPECIFIED_IN_NO_LOG_PARAMETER&quot;, &quot;port&quot;: null, &quot;ssh_keyfile&quot;: null, &quot;timeout&quot;: null, &quot;transport&quot;: &quot;cli&quot;, &quot;use_ssl&quot;: false, &quot;username&quot;: &quot;VALUE_SPECIFIED_IN_NO_LOG_PARAMETER&quot;, &quot;validate_certs&quot;: null }, &quot;replace&quot;: &quot;line&quot;, &quot;save&quot;: false, &quot;src&quot;: null, &quot;ssh_keyfile&quot;: null, &quot;timeout&quot;: null, &quot;transport&quot;: &quot;cli&quot;, &quot;use_ssl&quot;: true, &quot;username&quot;: &quot;VALUE_SPECIFIED_IN_NO_LOG_PARAMETER&quot;, &quot;validate_certs&quot;: true } }, &quot;session&quot;: &quot;ansible_1495237579&quot;, &quot;updates&quot;: [ &quot;interface Ethernet2&quot;, &quot;switchport mode access&quot; ] } META: ran handlers META: ran handlers PLAY RECAP ******************************************************************************* dut : ok=1 changed=1 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">No config file found; using defaults PLAYBOOK: issue.yml ********************************************************************** 1 plays in issue.yml PLAY [test_hosts] ************************************************************************ META: ran handlers TASK [Update Ethernet2] ****************************************************************** task path: /Users/grybak/working/virtualenvs/roletest2.2/ansible-eos-ipv4/issue.yml:6 &lt;dut&gt; using connection plugin network_cli Using module file /Users/grybak/working/virtualenvs/roletest2.2/ansible/lib/ansible/modules/network/eos/eos_config.py &lt;dut&gt; ESTABLISH LOCAL CONNECTION FOR USER: grybak &lt;dut&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0' &lt;dut&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p "` echo /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316 `" &amp;&amp; echo ansible-tmp-1495237579.37-206099913710316="` echo /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316 `" ) &amp;&amp; sleep 0' &lt;dut&gt; PUT /var/folders/b7/n3q7cy3x35q5nyd13s82g4340000gp/T/tmpP4529P TO /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316/eos_config.py &lt;dut&gt; EXEC /bin/sh -c 'chmod u+x /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316/ /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316/eos_config.py &amp;&amp; sleep 0' &lt;dut&gt; EXEC /bin/sh -c '/usr/bin/python /Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316/eos_config.py; rm -rf "/Users/grybak/.ansible/tmp/ansible-tmp-1495237579.37-206099913710316/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' changed: [dut] =&gt; { "changed": true, "commands": [ "interface Ethernet2", "switchport mode access" ], "invocation": { "module_args": { "after": null, "auth_pass": null, "authorize": true, "backup": false, "before": null, "config": null, "defaults": false, "force": false, "host": "dut", "lines": [ "switchport mode access" ], "match": "line", "parents": [ "interface Ethernet2" ], "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "port": 443, "provider": { "auth_pass": null, "authorize": true, "host": "dut", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "port": null, "ssh_keyfile": null, "timeout": null, "transport": "cli", "use_ssl": false, "username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "validate_certs": null }, "replace": "line", "save": false, "src": null, "ssh_keyfile": null, "timeout": null, "transport": "cli", "use_ssl": true, "username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "validate_certs": true } }, "session": "ansible_1495237579", "updates": [ "interface Ethernet2", "switchport mode access" ] } META: ran handlers META: ran handlers PLAY RECAP ******************************************************************************* dut : ok=1 changed=1 unreachable=0 failed=0 </code></pre></div>
0
<h3 dir="auto">Version</h3> <p dir="auto">2.5.21</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsfiddle.net/365deb40/" rel="nofollow">https://jsfiddle.net/365deb40/</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Click the app container to toggle whether the two colored containers are shown or not</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">Transitions for both elements (rotating and fading)</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Only the parent (primary / fade) transition is showing</p> <hr> <p dir="auto">Try removing the first transition and the v-if attribute of the parent element, to see that the second transition is working fine on its own.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;section&gt; &lt;div class=&quot;primary&quot; key=&quot;primary&quot;&gt; &lt;transition name=&quot;rotate&quot; mode=&quot;out-in&quot;&gt; &lt;div class=&quot;secondary&quot; v-if=&quot;show&quot; key=&quot;secondary&quot;&gt;&lt;/div&gt; &lt;/transition&gt; &lt;/div&gt; &lt;/section&gt;"><pre class="notranslate"> <span class="pl-kos">&lt;</span><span class="pl-ent">section</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">primary</span>" <span class="pl-c1">key</span>="<span class="pl-s">primary</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">transition</span> <span class="pl-c1">name</span>="<span class="pl-s">rotate</span>" <span class="pl-c1">mode</span>="<span class="pl-s">out-in</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">secondary</span>" <span class="pl-c1">v-if</span>="<span class="pl-s">show</span>" <span class="pl-c1">key</span>="<span class="pl-s">secondary</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">transition</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">section</span><span class="pl-kos">&gt;</span></pre></div>
<h3 dir="auto">Version</h3> <p dir="auto">2.5.13</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsfiddle.net/4kf9egr3/" rel="nofollow">https://jsfiddle.net/4kf9egr3/</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Create a transition inside a transition with different effects.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">Two different effects should be shown.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Only the effect of the root transition is shown.</p>
1
<p dir="auto">On a ES 1.4.2 cluster, I am trying to transiently set the log level of search slowlogs via the API:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl -s -XPUT 'http://localhost:9200/_cluster/settings' -d ' { &quot;transient&quot; : { &quot;logger.index.search.slowlog.query&quot; : &quot;INFO&quot; } }'"><pre class="notranslate">curl -s -XPUT <span class="pl-s"><span class="pl-pds">'</span>http://localhost:9200/_cluster/settings<span class="pl-pds">'</span></span> -d <span class="pl-s"><span class="pl-pds">'</span></span> <span class="pl-s">{</span> <span class="pl-s"> "transient" : {</span> <span class="pl-s"> "logger.index.search.slowlog.query" : "INFO"</span> <span class="pl-s"> }</span> <span class="pl-s">}<span class="pl-pds">'</span></span></pre></div> <p dir="auto">I confirmed that the transient setting is stored in the cluster with a GET on the same path.</p> <p dir="auto">However I still have many DEBUG log events in my slowlogs. What am I doing wrong? Is this a known issue?</p>
<p dir="auto">I'm not sure if i'm doing something wrong here, but on something like the following...(elasticsearch 0.13)</p> <p dir="auto">{ "from":0,"size" :10, "fields" : "_source.recid", "query" : { "query_string": {"sort":"<em>source.recid","default_operator" : "AND","query":"mp3</em>"}}}<br> { "from":10,"size" :10, "fields" : "_source.recid", "query" : { "query_string": {"sort":"<em>source.recid","default_operator" : "AND","query":"mp3</em>"}}}<br> { "from":20,"size" :10, "fields" : "_source.recid", "query" : { "query_string": {"sort":"_source.recid","default_operator" : "AND","query":"mp3*"}}}</p> <p dir="auto">I occasionally get a duplicate result back[seems to be towards the top of the result set... anywhere from 1-4 records in). (Happens if I specify an _id on index creation or let elastic search generate one for me.) A duplicate result = _id being the same, as well as my _source.recid being the same. If I use a large "size" parameter then I don't get the duplicate results. Is there something i'm misunderstanding? If i happen to check for duplicates manually I never appear to get the proper unique entities. (ie... elasticsearch returns a report 259 records, but if I get one duplicate entry I will only get 258.</p> <p dir="auto">But again, if I do specify a large enough size so that the result set all fits in, then there is no problem... I am sure that when adding to the search that everything is unique.</p> <p dir="auto">Tnx!</p>
0
<p dir="auto">As a user, when I open more than two tabs in the default terminal size, I must maximize\resize the window to access the nth tab. There is no horizontal scrolling support.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">This is a feature that is supported within VS Code and should be extended to windows terminal.</p> <p dir="auto">When more tabs are open than what is supported by the current view, provide horizontal scrolling of the tabs to allow the user to select the nth terminal tab.</p>
<p dir="auto">This bug-tracker is monitored by Windows Console development team and other technical types. <strong>We like detail!</strong></p> <p dir="auto">Please use this form and describe your issue, concisely but precisely, with as much detail as possible</p> <ul dir="auto"> <li> <p dir="auto">Your Windows build number: (Type <code class="notranslate">ver</code> at a Windows Command Prompt)<br> <strong>Microsoft Windows [Version 10.0.18898.1000]</strong></p> </li> <li> <p dir="auto">What you're doing and what's happening: (Copy &amp; paste specific commands and their output, or include screen shots)<br> <a href="https://youtu.be/SL61SMN4baI" rel="nofollow">Video demonstration of both issues below</a></p> <ul dir="auto"> <li>A newly created tab doesn't scroll the tab bar to the end - could possibly be a config variable</li> <li>When using tabs in the title bar and creating a new partially hidden tab, the tab gets cut off.</li> </ul> </li> <li> <p dir="auto">What's wrong / what should be happening instead:</p> <ul dir="auto"> <li>The tab should not be cut off.</li> </ul> </li> </ul>
1
<p dir="auto">Hello,</p> <p dir="auto">I created a two columns forms, the first column has an input and the second, a static field. As you can see on the screenshot below, the two values are not aligned.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1153856/3327948/1f4afd32-f7b6-11e3-9423-dd813fe254cd.jpg"><img src="https://cloud.githubusercontent.com/assets/1153856/3327948/1f4afd32-f7b6-11e3-9423-dd813fe254cd.jpg" alt="alignement error" style="max-width: 100%;"></a></p> <p dir="auto">But when I set this, it is ok.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".form-control-static { padding-top : 7px }"><pre class="notranslate"><code class="notranslate">.form-control-static { padding-top : 7px } </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1153856/3327958/42806e86-f7b6-11e3-9802-a095596fac98.jpg"><img src="https://cloud.githubusercontent.com/assets/1153856/3327958/42806e86-f7b6-11e3-9802-a095596fac98.jpg" alt="alignement fixed" style="max-width: 100%;"></a></p> <p dir="auto">However, the padding can be strange when no input on the same line. So should we solve this ?</p> <p dir="auto">Best regards</p>
<p dir="auto">Perhaps <code class="notranslate">padding-bottom: 7px</code> should be added to <code class="notranslate">.form-horizontal .form-control-static</code> so that it is the same height as the <code class="notranslate">input</code> it replaces (<code class="notranslate">34px</code>).</p>
1
<p dir="auto">The <code class="notranslate">tf.train.batch()</code> function had a nice <code class="notranslate">dynamic_pad</code> flag:<br> <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/training/input.py#L567">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/training/input.py#L567</a><br> Is there anything holding us batch from implementing it in <code class="notranslate">tf.train.shuffle_batch()</code>:<br> <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/training/input.py#L778">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/training/input.py#L778</a></p>
<p dir="auto">tf.train.batch is the only one can handle variable-length sequence, but it does not have shuffling option.<br> For RNN training, shuffling is needed.</p>
1
<p dir="auto">When I put Atom in my Apple Dock and clicked on the icon Atom started successfully but couldn't find needed programs in my PATH. I've spent sometime finding a possible solution.</p> <ol dir="auto"> <li>Instead of having a binary in the Atom.app/Contents/MacOS use your script Atom.app/Contents/Resources/app/atom.sh.</li> <li>The script needs 2 changes: <ul dir="auto"> <li>change for the new location of the binary</li> <li>change the first line of the script from:<br> #!/usr/bin/env bash<br> to:<br> #!/usr/bin/env bash -l</li> </ul> </li> </ol> <p dir="auto">This seems to start Atom from a bash shell that runs the ~/.profile script first allowing all of the environment variables to get set and made visible to Atom.</p> <p dir="auto">OS X still does not have shared global environment variables. But it does help establish the login environment variables for atom including PATH.</p> <p dir="auto">I've made a new application just for your script as my current work around.</p> <p dir="auto">Thanks,<br> Mark Zander<br> <a href="mailto:[email protected]">[email protected]</a></p>
<p dir="auto">When Atom is launched as an application, it doesn't get the user's PATH, because it was launched by <code class="notranslate">launchctl</code>. This means that packages like <a href="https://github.com/rgbkrk/atom-script">script</a> and <a href="https://github.com/willwhitney/hydrogen">hydrogen</a> have to tell the user to launch Atom from the command line. Some packages (like hydrogen) can't even be installed without the PATH because their dependencies use native extensions built with <a href="https://github.com/TooTallNate/node-gyp"><code class="notranslate">node-gyp</code></a>. There exist tools such as <a href="https://github.com/sindresorhus/fix-path"><code class="notranslate">fix-path</code></a>, but they clobber the user's PATH even if they've set something on purpose (with e.g. a virtualenv).</p> <p dir="auto">Having access to the user's PATH will become more and more important as people build packages that interface more deeply with languages, other tools, and the user's environment. Forcing the user to configure each package with complete paths to the binaries it needs is possible, but inelegant, and becomes intractable with general-purpose tools.</p> <p dir="auto">This seems like a clear situation where making this change to Atom itself would dramatically simplify life for many packages and eliminate many bugs arising from poor attempts to capture the PATH.</p>
1
<p dir="auto">THE CONSOLE LOG:</p> <p dir="auto">TypeError: undefined is not a function<br> at FindModel.module.exports.FindModel.activePaneItemChanged (/opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:38:14)<br> at /opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:29:24<br> at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11)<br> at /opt/atom/resources/app/src/pane-container.js:321:34<br> at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11)<br> at Pane.module.exports.Pane.setActiveItem (/opt/atom/resources/app/src/pane.js:254:22)<br> at Pane.module.exports.Pane.activateItem (/opt/atom/resources/app/src/pane.js:300:21)<br> at /opt/atom/resources/app/src/workspace.js:446:16<br> at _fulfilled (/opt/atom/resources/app/node_modules/q/q.js:787:54)<br> at self.promiseDispatch.done (/opt/atom/resources/app/node_modules/q/q.js:816:30)<br> at Promise.promise.promiseDispatch (/opt/atom/resources/app/node_modules/q/q.js:749:13)<br> at /opt/atom/resources/app/node_modules/q/q.js:557:44<br> at flush (/opt/atom/resources/app/node_modules/q/q.js:108:17)<br> at process._tickCallback (node.js:378:11)</p> <p dir="auto">Uncaught TypeError: undefined is not a function /opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:38</p>
<p dir="auto">When i have opened two tabs and i start searching on one, after i go to second one without closing search bar i got this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: undefined is not a function at FindModel.module.exports.FindModel.activePaneItemChanged (/opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:38:14) at /opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:29:24 at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11) at /opt/atom/resources/app/src/pane-container.js:285:34 at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11) at Pane.module.exports.Pane.setActiveItem (/opt/atom/resources/app/src/pane.js:254:22) at Pane.module.exports.Pane.activateItem (/opt/atom/resources/app/src/pane.js:300:21) at /opt/atom/resources/app/src/workspace.js:369:16 at _fulfilled (/opt/atom/resources/app/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/opt/atom/resources/app/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/opt/atom/resources/app/node_modules/q/q.js:749:13) at /opt/atom/resources/app/node_modules/q/q.js:557:44 at flush (/opt/atom/resources/app/node_modules/q/q.js:108:17) at process._tickCallback (node.js:378:11) Uncaught TypeError: undefined is not a function /opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:38"><pre class="notranslate"><code class="notranslate">TypeError: undefined is not a function at FindModel.module.exports.FindModel.activePaneItemChanged (/opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:38:14) at /opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:29:24 at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11) at /opt/atom/resources/app/src/pane-container.js:285:34 at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11) at Pane.module.exports.Pane.setActiveItem (/opt/atom/resources/app/src/pane.js:254:22) at Pane.module.exports.Pane.activateItem (/opt/atom/resources/app/src/pane.js:300:21) at /opt/atom/resources/app/src/workspace.js:369:16 at _fulfilled (/opt/atom/resources/app/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/opt/atom/resources/app/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/opt/atom/resources/app/node_modules/q/q.js:749:13) at /opt/atom/resources/app/node_modules/q/q.js:557:44 at flush (/opt/atom/resources/app/node_modules/q/q.js:108:17) at process._tickCallback (node.js:378:11) Uncaught TypeError: undefined is not a function /opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:38 </code></pre></div> <p dir="auto">My os is Ubuntu Gnome 14</p>
1
<p dir="auto"><em>Latest update: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="335129461" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/18761" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/18761/hovercard?comment_id=1513592402&amp;comment_type=issue_comment" href="https://github.com/flutter/flutter/issues/18761#issuecomment-1513592402">#18761 (comment)</a></em> </p> <hr> <p dir="auto">Internal: b/137284394</p> <p dir="auto">Here (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159298199" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/4478" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/4478/hovercard" href="https://github.com/flutter/flutter/issues/4478">#4478</a>) Hixie commented:</p> <p dir="auto"><em>"Ok the plan is that rather than truncating individual characters until it fit, we will truncate entire atomic positioned glyph sequences (e.g. whole ligatures or shaped words) until the ellipsis fits. That would have the advantage of being much more performant. It would have the disadvantage of truncating the entire word if the whole line was one ligature (e.g. if your line was the word "Zapfino" in the Zapfino font, and it overflowed at the "o", we would replace the whole thing with a "...", rather than just the "no".)"</em></p> <p dir="auto">Although the above comment talks about ligatures, it seems to me this is being ignored, and whole words are simply being removed.</p> <p dir="auto">Now suppose the text <code class="notranslate">"Laboris nisi ut aliquip ex ea commodo"</code> gets cut right before word <code class="notranslate">"ex"</code>. Since the previous word fits, it may cut some letters of that last word to fit the ellipsis, resulting in:</p> <p dir="auto"><code class="notranslate">"Laboris nisi ut aliqu..."</code></p> <p dir="auto">However, if the horizontal space is a litter smaller, than the letter <code class="notranslate">"p"</code> from <code class="notranslate">"aliquip"</code> won't fit, and it will cut the whole word, resulting in:</p> <p dir="auto"><code class="notranslate">"Laboris nisi ut ... "</code></p> <p dir="auto">But that's not how overflow works for other platforms, and it makes no sense to remove whole words. The obvious result, if "p" doesn't fit should be, just as before:</p> <p dir="auto"><code class="notranslate">"Laboris nisi ut aliqu..."</code></p> <p dir="auto">As things are now, we tend to see a lot of words cut in their last 1 or 2 chars, and a lot of words completely removed, leaving a lot of weird white space. That gets particularly nasty in one line texts like titles.</p> <p dir="auto">Please, don't create weird behaviors for things with time-honored traditions like ellipsizing. Stick to what everybody else does. If you want, let the devs choose between both behaviors: <code class="notranslate">enum TestOverflow {clip, fade, ellipsisWords, ellipsisLetters}</code>.</p> <p dir="auto">If Arabic and other eastern languages have problems with that (as per issue 4478), you can even do some autodetection for characters of those languages, by adding the enum <code class="notranslate">TestOverflow.ellipsisAutodetect</code>.</p>
<p dir="auto">Repro:</p> <ul dir="auto"> <li>Run widgets/pageable_list.dart</li> <li>Tap the menu button in the top left to open the drawer.</li> <li>Tap <em>Vertical Layout</em>.</li> </ul> <p dir="auto">Note that the vertical layout takes effect, but the <em>Vertical Layout</em> DrawerItem is not selected.<br> If you open and close the drawer, then it will be correctly selected.</p>
0
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): Looked at the API docs. Discussed on the kubernetes/sig-auth slack channel with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ericchiang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ericchiang">@ericchiang</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/whitlockjc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/whitlockjc">@whitlockjc</a></p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): FEATURE REQUEST</p> <p dir="auto">Once OIDC is integrated, it would be helpful to have an endpoint that will reply with information about the logged in user, mainly the username, uid, groups and roles. Something similar to OpenShift's /oapi/v1/users/~ service. Ideally this would return json similar to:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;username&quot;:&quot;me&quot;, &quot;uid&quot;:&quot;myuid&quot;, &quot;groups&quot;:[ &quot;admins&quot;, &quot;devs&quot;, &quot;etc&quot;, ], &quot;roles&quot;:[ &quot;adminrole&quot;, &quot;userrole&quot;, &quot;etc&quot; ] }"><pre class="notranslate">{ <span class="pl-ent">"username"</span>:<span class="pl-s"><span class="pl-pds">"</span>me<span class="pl-pds">"</span></span>, <span class="pl-ent">"uid"</span>:<span class="pl-s"><span class="pl-pds">"</span>myuid<span class="pl-pds">"</span></span>, <span class="pl-ent">"groups"</span>:[ <span class="pl-s"><span class="pl-pds">"</span>admins<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>devs<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>etc<span class="pl-pds">"</span></span>, ], <span class="pl-ent">"roles"</span>:[ <span class="pl-s"><span class="pl-pds">"</span>adminrole<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>userrole<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>etc<span class="pl-pds">"</span></span> ] }</pre></div> <p dir="auto">That way someone can easily test that OIDC is setup correctly, the dashboard can show who the logged in user is and external tool developers can verify/display the logged in user.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ curl -H &quot;Authorization: bearer ASDFV...&quot; https://myapi.k8s.io/api/path/to/whoami { &quot;username&quot;:&quot;me&quot;, &quot;uid&quot;:&quot;myuid&quot;, &quot;groups&quot;:[ &quot;admins&quot;, &quot;devs&quot;, &quot;etc&quot;, ], &quot;roles&quot;:[ &quot;adminrole&quot;, &quot;userrole&quot;, &quot;etc&quot; ] }"><pre class="notranslate"><code class="notranslate">$ curl -H "Authorization: bearer ASDFV..." https://myapi.k8s.io/api/path/to/whoami { "username":"me", "uid":"myuid", "groups":[ "admins", "devs", "etc", ], "roles":[ "adminrole", "userrole", "etc" ] } </code></pre></div>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p> <p dir="auto">No.</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <p dir="auto">"bazel"</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto">Bug Report</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <p dir="auto">1.5 beta2 (source)</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">Use github.com/kubernetes/kubernetes as a git_repository in another Bazel project. The "set-gen" genrule in pkg/util/sets/BUILD will fail because its "--input-dirs" argument assumes some things about the path it is operating on. It works fine in the kubernetes tree, but the paths will have "external/" prepended to them when imported into another project. The "--go-header-file" argument works fine because it uses $location.</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <p dir="auto">I fixed this here by doing some path-chopping in bash, but the solution is ugly:</p> <p dir="auto"><a href="https://github.com/sayrer/kubernetes/blob/4d14457d6297ab98ca46c75601195cd9d67eb339/pkg/util/sets/BUILD#L43">https://github.com/sayrer/kubernetes/blob/4d14457d6297ab98ca46c75601195cd9d67eb339/pkg/util/sets/BUILD#L43</a></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikedanese/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikedanese">@mikedanese</a></p>
0
<p dir="auto">The creation of a range using <code class="notranslate">range(start, step=..., length=...)</code> may result in a stack overflow if either of the start or step values is an <code class="notranslate">AbstractFloat</code> that is not one of the IEEE ones.</p> <p dir="auto">Example:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; range(1.0, step=1, length=10) 1.0:1.0:10.0 julia&gt; range(big(1.0), step=1, length=10) ERROR: StackOverflowError: Stacktrace: [1] _range(::BigFloat, ::BigFloat, ::Nothing, ::Int64) at ./range.jl:105 (repeats 80000 times) julia&gt; range(1.0, step=big(1.0), length=10) ERROR: StackOverflowError: Stacktrace: [1] _range(::BigFloat, ::BigFloat, ::Nothing, ::Int64) at ./range.jl:105 (repeats 80000 times)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">range</span>(<span class="pl-c1">1.0</span>, step<span class="pl-k">=</span><span class="pl-c1">1</span>, length<span class="pl-k">=</span><span class="pl-c1">10</span>) <span class="pl-c1">1.0</span><span class="pl-k">:</span><span class="pl-c1">1.0</span><span class="pl-k">:</span><span class="pl-c1">10.0</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">range</span>(<span class="pl-c1">big</span>(<span class="pl-c1">1.0</span>), step<span class="pl-k">=</span><span class="pl-c1">1</span>, length<span class="pl-k">=</span><span class="pl-c1">10</span>) ERROR<span class="pl-k">:</span> StackOverflowError<span class="pl-k">:</span> Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] <span class="pl-c1">_range</span>(<span class="pl-k">::</span><span class="pl-c1">BigFloat</span>, <span class="pl-k">::</span><span class="pl-c1">BigFloat</span>, <span class="pl-k">::</span><span class="pl-c1">Nothing</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>range<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">105</span> (repeats <span class="pl-c1">80000</span> times) julia<span class="pl-k">&gt;</span> <span class="pl-c1">range</span>(<span class="pl-c1">1.0</span>, step<span class="pl-k">=</span><span class="pl-c1">big</span>(<span class="pl-c1">1.0</span>), length<span class="pl-k">=</span><span class="pl-c1">10</span>) ERROR<span class="pl-k">:</span> StackOverflowError<span class="pl-k">:</span> Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] <span class="pl-c1">_range</span>(<span class="pl-k">::</span><span class="pl-c1">BigFloat</span>, <span class="pl-k">::</span><span class="pl-c1">BigFloat</span>, <span class="pl-k">::</span><span class="pl-c1">Nothing</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>range<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">105</span> (repeats <span class="pl-c1">80000</span> times)</pre></div> <p dir="auto">This seems to be the case since v0.7, I currently tested on v1.1.</p> <p dir="auto">The culprit is <code class="notranslate">_range</code> in <code class="notranslate">range.jl</code>, more specifically <a href="https://github.com/JuliaLang/julia/blob/v1.1.0/base/range.jl#L105">this line</a>. In case <code class="notranslate">start</code> and <code class="notranslate">step</code> are any combination of an <code class="notranslate">AbstractFloat</code> and a <code class="notranslate">Real</code>, the logic in <code class="notranslate">_range</code> promotes them to the same floating point type.</p> <p dir="auto">However, the subsequent call to <code class="notranslate">_range</code> with equal types is intercepted only for IEEE types elsewhere in <code class="notranslate">twiceprecision.jl</code>, specifically <a href="https://github.com/JuliaLang/julia/blob/v1.1.0/base/twiceprecision.jl#L427">here</a>. There is no alternative fallback, hence the stack overflow.</p> <p dir="auto">The solution might simply be to add a fallback in <code class="notranslate">range.jl</code>, such as</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_range(a::T, step::T, ::Nothing, len::Integer) where {T &lt;: AbstractFloat} = _rangestyle(OrderStyle(T), ArithmeticStyle(T), a, step, len)"><pre class="notranslate"><code class="notranslate">_range(a::T, step::T, ::Nothing, len::Integer) where {T &lt;: AbstractFloat} = _rangestyle(OrderStyle(T), ArithmeticStyle(T), a, step, len) </code></pre></div> <p dir="auto">This is similar to the line further <a href="https://github.com/JuliaLang/julia/blob/v1.1.0/base/range.jl#L110">below</a>.</p> <p dir="auto">Note that I did NOT test the above solution, sorry, as I've never changed anything in base and I have no working julia build to do so :-)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; BigFloat(2)*(1:2) ERROR: StackOverflowError: Stacktrace: [1] range(::BigFloat, ::BigFloat, ::Int64) at ./range.jl:74 (repeats 80000 times) julia&gt; versioninfo() Julia Version 0.6.2 Commit d386e40c17 (2017-12-13 18:08 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.9.1 (ORCJIT, sandybridge)"><pre class="notranslate"><code class="notranslate">julia&gt; BigFloat(2)*(1:2) ERROR: StackOverflowError: Stacktrace: [1] range(::BigFloat, ::BigFloat, ::Int64) at ./range.jl:74 (repeats 80000 times) julia&gt; versioninfo() Julia Version 0.6.2 Commit d386e40c17 (2017-12-13 18:08 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.9.1 (ORCJIT, sandybridge) </code></pre></div>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">I'm going through a ton of file renaming for a media player and I find I am making several incremental changes to the same set of files.</p> <p dir="auto">It would be nice to have the option to make the changes but keep the current files open.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">The rename button could change to a dropdown button with "rename" the primary and "rename and keep open" with secondary option.</p>
<ul dir="auto"> <li>PowerToys version: 0.20.1</li> <li>Running PowerToys as Admin: Yes</li> <li>Windows build number: 19041.388</li> </ul> <p dir="auto">When pc boot up the PowerToys Run does not work ( Pressing Alt + Space does nothing ). If i terminate the app and restart it then it works as intended. Issue occurred when i updated to 0.20.1 version. Previous version was fine.</p>
0
<p dir="auto">On the following page <a href="http://golang.org/pkg/sync/#Pool" rel="nofollow">http://golang.org/pkg/sync/#Pool</a> an unnecessary empty line is added to the code. It's probably because it contains unexported fields an a new line before the public fields, but it would be nice if this empty is not shown. The same happens in the text version of the page: <a href="http://golang.org/pkg/sync/?m=text" rel="nofollow">http://golang.org/pkg/sync/?m=text</a> (manual scrolling required).</p> <p dir="auto">Continued from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57444318" data-permission-text="Title is private" data-url="https://github.com/golang/gddo/issues/243" data-hovercard-type="issue" data-hovercard-url="/golang/gddo/issues/243/hovercard" href="https://github.com/golang/gddo/issues/243">golang/gddo#243</a>.</p>
<p dir="auto">The documentation for <a href="https://tip.golang.org/pkg/database/sql/#NamedArg" rel="nofollow"><code class="notranslate">sql.NamedArg</code></a> currently looks like:</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type NamedArg struct { // Name of the parameter placeholder. If empty the ordinal position in the // argument list will be used. // // Name must omit any symbol prefix. Name string // Value of the parameter. It may be assigned the same value types as // the query arguments. Value interface{} // contains filtered or unexported fields }"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">NamedArg</span> <span class="pl-k">struct</span> { <span class="pl-c">// Name of the parameter placeholder. If empty the ordinal position in the</span> <span class="pl-c">// argument list will be used.</span> <span class="pl-c">//</span> <span class="pl-c">// Name must omit any symbol prefix.</span> <span class="pl-c1">Name</span> <span class="pl-smi">string</span> <span class="pl-c">// Value of the parameter. It may be assigned the same value types as</span> <span class="pl-c">// the query arguments.</span> <span class="pl-c1">Value</span> <span class="pl-k">interface</span>{} <span class="pl-c">// contains filtered or unexported fields</span> }</pre></div> <p dir="auto">Can we fix the formatting to look nicer? I expect it to be like:</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type NamedArg struct { // Name of the parameter placeholder. If empty the ordinal position in the // argument list will be used. // // Name must omit any symbol prefix. Name string // Value of the parameter. It may be assigned the same value types as // the query arguments. Value interface{} // Contains filtered or unexported fields. }"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">NamedArg</span> <span class="pl-k">struct</span> { <span class="pl-c">// Name of the parameter placeholder. If empty the ordinal position in the</span> <span class="pl-c">// argument list will be used.</span> <span class="pl-c">//</span> <span class="pl-c">// Name must omit any symbol prefix.</span> <span class="pl-c1">Name</span> <span class="pl-smi">string</span> <span class="pl-c">// Value of the parameter. It may be assigned the same value types as</span> <span class="pl-c">// the query arguments.</span> <span class="pl-c1">Value</span> <span class="pl-k">interface</span>{} <span class="pl-c">// Contains filtered or unexported fields.</span> }</pre></div> <p dir="auto">This applies to interfaces as well.</p>
1
<p dir="auto">Many projects require more resources than are available in a single machine. <strong>Does the current opensource release of Tensorflow support processing that spans multiple-machines?</strong></p> <p dir="auto">I ask because the main webpage (says single machine) seems to conflict[1] with the Tensorflow whitepaper pdf (says multiple machines).</p> <p dir="auto">If the current opensource tensorflow does not support multiple-machine execution but the closed-sourced version does. <strong>Is there any plan to release an opensource version that supports multiple machines? Is there an approximate timeframe?</strong></p> <p dir="auto">[1]</p> <ul dir="auto"> <li>The <a href="http://tensorflow.org/" rel="nofollow">tensorflow.org main webpage</a> says "This open source release supports single machines". Also the <a href="http://tensorflow.org/resources/faq.md" rel="nofollow">Resources/FAQ says "single computer"</a>.</li> <li>But then when you <a href="http://download.tensorflow.org/paper/whitepaper2015.pdf" rel="nofollow">read the Tensorflow whitepaper</a>, the whitepaper indicates in many places that Tensorflow can run across multiple machines. See these quotes from the whitepaper: <ul dir="auto"> <li>"large-scale distributed systems of hundreds of machines" and "using<br> many hundreds of machines"</li> <li>" extends it with support for an environment where the client, the master, and the workers can all be in different processes on different machines"</li> <li>"use remote communication mechanisms such as TCP or RDMA to move data across machine boundaries"</li> </ul> </li> </ul>
<p dir="auto">Is there any distributed version of TensorFlow that could work on multiple machines?</p> <p dir="auto">-Minjie</p>
1
<p dir="auto">The <code class="notranslate">std::raw</code> module exports some representation details for the purposes of transmuting and taking things apart. Stabilizing these means pinning down the representation details forever.</p> <p dir="auto">One possibility is to instead provide various conversions, rather than asking people to use <code class="notranslate">transmute</code>, when we're sure the conversions will always be possible. Methods like <code class="notranslate">from_raw_parts</code> are already doing this.</p> <p dir="auto">The <code class="notranslate">TraitObject</code> case in particular is unsettled due to the potential for upcasting in the future.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/carllerche/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/carllerche">@carllerche</a></p> <p dir="auto"><strong>CURRENT STATUS AS OF 2016-08-18:</strong> Discussed in <a class="team-mention js-team-mention notranslate" data-error-text="Failed to load team members" data-id="1508058" data-permission-text="Team members are private" data-url="/orgs/rust-lang/teams/lang/members" data-hovercard-type="team" data-hovercard-url="/orgs/rust-lang/teams/lang/hovercard" href="https://github.com/orgs/rust-lang/teams/lang">@rust-lang/lang</a> meeting. The situation is this. We expect that this will be insufficient in the future, particularly if/when we support trait objects like Trait1+Trait2 (which would require 2 vtables). We could stabilize it, since it would remain correct for all existing objects, but it'd be a shame. In contrast, the various "custom DST" proposals would allow for a much more flexible way of extracting and creating this data (sort of like from_raw_parts), so we think we'd prefer to explore that route. (from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="100609603" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/27751" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/27751/hovercard?comment_id=240863813&amp;comment_type=issue_comment" href="https://github.com/rust-lang/rust/issues/27751#issuecomment-240863813">#27751 (comment)</a>)</p>
<p dir="auto">rustc 0.8-pre (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/570431fcacb115eb0bc3bd9f81977b57173a95ef/hovercard" href="https://github.com/rust-lang/rust/commit/570431fcacb115eb0bc3bd9f81977b57173a95ef"><tt>570431f</tt></a> 2013-09-19 15:56:04 -0700)</p> <p dir="auto">RUST_THREADS=1 must not allow the rust runtime to start a second thread, which it does now. This is <em>really</em> bad.</p> <p dir="auto">Background: If I wish to fork(2) and use the resulting image, only the thread that calls fork(2) gets duplicated. If any other thread has locked a mutex (say for printf, or malloc) and was in the middle of a critical section, then those locks remain locked, the other threads vanish, and my new child process is hosed.</p> <p dir="auto">From the rust-dev thread on rusti - the - repl renovation: (20 sept 2013):</p> <p dir="auto">I'm trying some sanity checks. This one had a curious result. I did<br> $ export RUST_THREADS=1<br> and then started rusti under gdb. Expected: only one thread going. Observed: I have two threads going instead.</p> <p dir="auto">(This is troublesome, because fork will never work if Rust doesn't honor the request of RUST_THREADS=1; you can't mix threads and fork; explanation: <a href="http://www.linuxprogrammingblog.com/threads-and-fork-think-twice-before-using-them" rel="nofollow">http://www.linuxprogrammingblog.com/threads-and-fork-think-twice-before-using-them</a> )</p> <p dir="auto">Q: Is there a way to <em>really</em> just get one thread in the rust runtime? Best case, I'm hoping the two threads observed is just a bug that can be fixed.</p> <p dir="auto">Jason</p> <p dir="auto">From: Alex Crichton <a href="mailto:[email protected]">[email protected]</a><br> Date: Fri, Sep 20, 2013 at 4:24 PM<br> Subject: Re: [rust-dev] rusti - the - repl renovation<br> To: "Jason E. Aten" <a href="mailto:[email protected]">[email protected]</a></p> <blockquote> <p dir="auto">Q: Is there a way to <em>really</em> just get one thread in the rust runtime? Best<br> case, I'm hoping the two threads observed is just a bug that can be fixed.<br> Right now the runtime will always spawn at least one thread, so<br> without turning off the runtime you'll have at least two threads.<br> That's arguably a bug in the runtime though...</p> </blockquote> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="jaten@fre:/usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin$ ./rustc -v ./rustc 0.8-pre (570431f 2013-09-19 15:56:04 -0700) host: x86_64-unknown-linux-gnu jaten@fre:/usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin$ jaten@fre:/usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin$ env|grep RUST RUST_THREADS=1 jaten@fre:/usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin$ gdb ./rusti GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt; This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type &quot;show copying&quot; and &quot;show warranty&quot; for details. This GDB was configured as &quot;x86_64-linux-gnu&quot;. For bug reporting instructions, please see: &lt;http://bugs.launchpad.net/gdb-linaro/&gt;... Reading symbols from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/rusti...(no debugging symbols found)...done. (gdb) run Starting program: /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/rusti [Thread debugging using libthread_db enabled] Using host libthread_db library &quot;/lib/x86_64-linux-gnu/libthread_db.so.1&quot;. [New Thread 0x7ffff7fd3700 (LWP 11639)] WARNING: The Rust REPL is experimental and may be unstable. If you encounter problems, please use the compiler instead. Type :help for help. rusti&gt; C-c C-c Program received signal SIGINT, Interrupt. 0x00007ffff4356148 in pthread_join () from /lib/x86_64-linux-gnu/libpthread.so.0 (gdb) bt #0 0x00007ffff4356148 in pthread_join () from /lib/x86_64-linux-gnu/libpthread.so.0 #1 0x00007ffff49369d4 in rust_thread::join (this=0x7ffff001f2e0) at src/rt/sync/rust_thread.cpp:65 #2 0x00007ffff4937469 in rust_raw_thread_join (thread=0x7ffff001f2e0) at src/rt/rust_builtin.cpp:417 #3 0x00007ffff768f2e9 in rt::thread::Thread::join::hf3525925b944a51ZTas::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #4 0x00007ffff77cddd3 in rt::run_::h82e8c355ab8d949faz::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #5 0x00007ffff77cb694 in rt::run::hd3cab0f3a053bc41ab::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #6 0x00007ffff770968e in rt::start::h98ebfd32a7b8f1ad::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #7 0x00007ffff77095f7 in unstable::lang::start::h76d6c774aa357c7aaj::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #8 0x0000000000400c2b in main () (gdb) i th Id Target Id Frame 2 Thread 0x7ffff7fd3700 (LWP 11639) &quot;rusti&quot; 0x00007ffff46508cd in read () from /lib/x86_64-linux-gnu/libc.so.6 * 1 Thread 0x7ffff7fd5780 (LWP 11636) &quot;rusti&quot; 0x00007ffff4356148 in pthread_join () from /lib/x86_64-linux-gnu/libpthread.so.0 (gdb) thread 2 [Switching to thread 2 (Thread 0x7ffff7fd3700 (LWP 11639))] #0 0x00007ffff46508cd in read () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007ffff46508cd in read () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007ffff45e4ff8 in _IO_file_underflow () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007ffff45e603e in _IO_default_uflow () from /lib/x86_64-linux-gnu/libc.so.6 #3 0x00007ffff45da18a in _IO_getline_info () from /lib/x86_64-linux-gnu/libc.so.6 #4 0x00007ffff45d906b in fgets () from /lib/x86_64-linux-gnu/libc.so.6 #5 0x00007ffff4946358 in linenoise (prompt=0x7fffefc58058 &quot;rusti&gt; &quot;) at src/rt/linenoise/linenoise.c:1405 #6 0x00007ffff70a8061 in rl::rustrt::linenoise::h64cc97493178b67aa3::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libextra-a7c050cfd46b2c9a-0.8-pre.so #7 0x00007ffff70a8b26 in rl::read::anon::expr_fn::a1 () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libextra-a7c050cfd46b2c9a-0.8-pre.so #8 0x00007ffff70a8aba in c_str::CString::with_ref::hb23b2a52bcdd1fsya0::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libextra-a7c050cfd46b2c9a-0.8-pre.so #9 0x00007ffff70a89b4 in c_str::ToCStr::with_c_str::hb23b2a52bcdd1faZ::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libextra-a7c050cfd46b2c9a-0.8-pre.so #10 0x00007ffff70a8936 in rl::read::h55e92cb2e4e46fea8::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libextra-a7c050cfd46b2c9a-0.8-pre.so #11 0x00007ffff4d691a2 in get_line::hacc817425f24a23caR::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/librusti-53e0ef2ae196aaff-0.8-pre.so #12 0x00007ffff4d7b1d2 in main_args::h37a11c4051c2827aO::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/librusti-53e0ef2ae196aaff-0.8-pre.so #13 0x00007ffff4d7a947 in main::h3a346db0adc4cf51aB::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/librusti-53e0ef2ae196aaff-0.8-pre.so #14 0x0000000000400bb9 in main::h4eb1c8bbff1fac2ag::v0.0 () #15 0x00007ffff7709758 in unstable::lang::start::anon::expr_fn::a1 () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #16 0x00007ffff7719814 in rt::task::__extensions__::build_start_wrapper::anon::anon::expr_fn::ab () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #17 0x00007ffff761849c in unstable::finally::Finally$__extensions__::finally::h199ab8d6eb226980ECan::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #18 0x00007ffff77170d5 in rt::task::__extensions__::run::anon::expr_fn::at () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #19 0x00007ffff7719ce9 in rt::task::Unwinder::try::try_fn::__rust_abi::Vc () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #20 0x00007ffff7719c47 in rt::task::Unwinder::try::try_fn::hae27117228cab98fVca9::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #21 0x00007ffff4937787 in rust_try (f=0x7ffff7719bf0 &lt;rt::task::Unwinder::try::try_fn::hae27117228cab98fVca9::v0.8$x2dpre&gt;, fptr=0x7ffff7717080, env=0x7ffff0236348) at src/rt/rust_builtin.cpp:523 #22 0x00007ffff7716fa2 in rt::task::Unwinder::try::h199ab8d6eb226980Vcas::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #23 0x00007ffff7716e36 in rt::task::Task::run::h199ab8d6eb226980iXar::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #24 0x00007ffff7719467 in rt::task::__extensions__::build_start_wrapper::anon::expr_fn::a2 () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #25 0x00007ffff77b0db5 in rt::context::Context::new::task_start_wrapper::__rust_abi::se () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #26 0x00007ffff77b0d67 in rt::context::Context::new::task_start_wrapper::h1b9fdc38dc3bcfa4sea8::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #27 0x0000000000000000 in ?? () (gdb)"><pre class="notranslate"><code class="notranslate">jaten@fre:/usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin$ ./rustc -v ./rustc 0.8-pre (570431f 2013-09-19 15:56:04 -0700) host: x86_64-unknown-linux-gnu jaten@fre:/usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin$ jaten@fre:/usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin$ env|grep RUST RUST_THREADS=1 jaten@fre:/usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin$ gdb ./rusti GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt; This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: &lt;http://bugs.launchpad.net/gdb-linaro/&gt;... Reading symbols from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/rusti...(no debugging symbols found)...done. (gdb) run Starting program: /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/rusti [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff7fd3700 (LWP 11639)] WARNING: The Rust REPL is experimental and may be unstable. If you encounter problems, please use the compiler instead. Type :help for help. rusti&gt; C-c C-c Program received signal SIGINT, Interrupt. 0x00007ffff4356148 in pthread_join () from /lib/x86_64-linux-gnu/libpthread.so.0 (gdb) bt #0 0x00007ffff4356148 in pthread_join () from /lib/x86_64-linux-gnu/libpthread.so.0 #1 0x00007ffff49369d4 in rust_thread::join (this=0x7ffff001f2e0) at src/rt/sync/rust_thread.cpp:65 #2 0x00007ffff4937469 in rust_raw_thread_join (thread=0x7ffff001f2e0) at src/rt/rust_builtin.cpp:417 #3 0x00007ffff768f2e9 in rt::thread::Thread::join::hf3525925b944a51ZTas::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #4 0x00007ffff77cddd3 in rt::run_::h82e8c355ab8d949faz::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #5 0x00007ffff77cb694 in rt::run::hd3cab0f3a053bc41ab::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #6 0x00007ffff770968e in rt::start::h98ebfd32a7b8f1ad::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #7 0x00007ffff77095f7 in unstable::lang::start::h76d6c774aa357c7aaj::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #8 0x0000000000400c2b in main () (gdb) i th Id Target Id Frame 2 Thread 0x7ffff7fd3700 (LWP 11639) "rusti" 0x00007ffff46508cd in read () from /lib/x86_64-linux-gnu/libc.so.6 * 1 Thread 0x7ffff7fd5780 (LWP 11636) "rusti" 0x00007ffff4356148 in pthread_join () from /lib/x86_64-linux-gnu/libpthread.so.0 (gdb) thread 2 [Switching to thread 2 (Thread 0x7ffff7fd3700 (LWP 11639))] #0 0x00007ffff46508cd in read () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007ffff46508cd in read () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007ffff45e4ff8 in _IO_file_underflow () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007ffff45e603e in _IO_default_uflow () from /lib/x86_64-linux-gnu/libc.so.6 #3 0x00007ffff45da18a in _IO_getline_info () from /lib/x86_64-linux-gnu/libc.so.6 #4 0x00007ffff45d906b in fgets () from /lib/x86_64-linux-gnu/libc.so.6 #5 0x00007ffff4946358 in linenoise (prompt=0x7fffefc58058 "rusti&gt; ") at src/rt/linenoise/linenoise.c:1405 #6 0x00007ffff70a8061 in rl::rustrt::linenoise::h64cc97493178b67aa3::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libextra-a7c050cfd46b2c9a-0.8-pre.so #7 0x00007ffff70a8b26 in rl::read::anon::expr_fn::a1 () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libextra-a7c050cfd46b2c9a-0.8-pre.so #8 0x00007ffff70a8aba in c_str::CString::with_ref::hb23b2a52bcdd1fsya0::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libextra-a7c050cfd46b2c9a-0.8-pre.so #9 0x00007ffff70a89b4 in c_str::ToCStr::with_c_str::hb23b2a52bcdd1faZ::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libextra-a7c050cfd46b2c9a-0.8-pre.so #10 0x00007ffff70a8936 in rl::read::h55e92cb2e4e46fea8::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libextra-a7c050cfd46b2c9a-0.8-pre.so #11 0x00007ffff4d691a2 in get_line::hacc817425f24a23caR::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/librusti-53e0ef2ae196aaff-0.8-pre.so #12 0x00007ffff4d7b1d2 in main_args::h37a11c4051c2827aO::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/librusti-53e0ef2ae196aaff-0.8-pre.so #13 0x00007ffff4d7a947 in main::h3a346db0adc4cf51aB::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/librusti-53e0ef2ae196aaff-0.8-pre.so #14 0x0000000000400bb9 in main::h4eb1c8bbff1fac2ag::v0.0 () #15 0x00007ffff7709758 in unstable::lang::start::anon::expr_fn::a1 () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #16 0x00007ffff7719814 in rt::task::__extensions__::build_start_wrapper::anon::anon::expr_fn::ab () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #17 0x00007ffff761849c in unstable::finally::Finally$__extensions__::finally::h199ab8d6eb226980ECan::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #18 0x00007ffff77170d5 in rt::task::__extensions__::run::anon::expr_fn::at () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #19 0x00007ffff7719ce9 in rt::task::Unwinder::try::try_fn::__rust_abi::Vc () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #20 0x00007ffff7719c47 in rt::task::Unwinder::try::try_fn::hae27117228cab98fVca9::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #21 0x00007ffff4937787 in rust_try (f=0x7ffff7719bf0 &lt;rt::task::Unwinder::try::try_fn::hae27117228cab98fVca9::v0.8$x2dpre&gt;, fptr=0x7ffff7717080, env=0x7ffff0236348) at src/rt/rust_builtin.cpp:523 #22 0x00007ffff7716fa2 in rt::task::Unwinder::try::h199ab8d6eb226980Vcas::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #23 0x00007ffff7716e36 in rt::task::Task::run::h199ab8d6eb226980iXar::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #24 0x00007ffff7719467 in rt::task::__extensions__::build_start_wrapper::anon::expr_fn::a2 () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #25 0x00007ffff77b0db5 in rt::context::Context::new::task_start_wrapper::__rust_abi::se () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #26 0x00007ffff77b0d67 in rt::context::Context::new::task_start_wrapper::h1b9fdc38dc3bcfa4sea8::v0.8$x2dpre () from /usr/cn/rust/debug-build/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so #27 0x0000000000000000 in ?? () (gdb) </code></pre></div>
0
<p dir="auto">Describe what you were doing when the bug occurred:<br> 1.<br> 2.<br> 3.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.2.0-a8b8ffb89</p> <p dir="auto">Call stack: at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150913)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)</p> <p dir="auto">Component stack: in dl<br> in div<br> in div<br> in div<br> in _o<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in zi<br> in Ge<br> in un<br> in ba<br> in Rc</p>
<p dir="auto">bug<br> Uncaught TypeError: Cannot read property 'name' of undefined<br> Uncaught TypeError: e.hasOwnProperty is not a function</p> <p dir="auto">infinite loading in component view<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8398353/71717720-a37e8e00-2e21-11ea-82a3-cc6d815158fc.png"><img src="https://user-images.githubusercontent.com/8398353/71717720-a37e8e00-2e21-11ea-82a3-cc6d815158fc.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Reproduce:<br> use hook useRouter or HOC withRouter from react-router-dom and select component with hook/hoc in components view react developer tools<br> Issue is caused by not-bug <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169250965" data-permission-text="Title is private" data-url="https://github.com/hapijs/hapi/issues/3280" data-hovercard-type="issue" data-hovercard-url="/hapijs/hapi/issues/3280/hovercard" href="https://github.com/hapijs/hapi/issues/3280">hapijs/hapi#3280</a><br> (query object does not have constructor and does not have hasOwnProperty)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8398353/71717283-4afac100-2e20-11ea-9f86-84f63cb73ab1.png"><img src="https://user-images.githubusercontent.com/8398353/71717283-4afac100-2e20-11ea-9f86-84f63cb73ab1.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8398353/71717412-b6dd2980-2e20-11ea-8514-04708cf02015.png"><img src="https://user-images.githubusercontent.com/8398353/71717412-b6dd2980-2e20-11ea-8514-04708cf02015.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8398353/71717397-a75de080-2e20-11ea-9dc3-35da5a4f0ff4.png"><img src="https://user-images.githubusercontent.com/8398353/71717397-a75de080-2e20-11ea-9dc3-35da5a4f0ff4.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">When I stress-test PersistentVolume controller I sometimes get (correct) "PersistentVolumeClaim deleted" event followed by (wrong) "PersistentVolumeClaim added". This happens very rarely (&lt;0.01%) when I delete a PersistentVolumeClaim and the controller is under heavy load.</p> <p dir="auto">I use <code class="notranslate">framework.NewInformer</code> (<a href="https://github.com/jsafrane/kubernetes/blob/master/pkg/controller/framework/controller.go#L213">link</a> ) like everybody else. Reading its code, what happens when the controller is processing 'PVC deleted' event at line <a href="https://github.com/jsafrane/kubernetes/blob/master/pkg/controller/framework/controller.go#L251">251</a>, i.e just <strong>before</strong> <code class="notranslate">Delete()</code> is called and at the same time periodic sync starts? The PVC that is being deleted is still in the cache and a 'PVC Sync' will be added into <code class="notranslate">Queue</code> and my controller gets <code class="notranslate">OnDelete()</code> callback followed by <code class="notranslate">OnAdd()</code>.</p> <p dir="auto">My PersistentVolume controller then sees an old claim and tries to do stuff with it and sometimes it updates the claim in etcd. So the claim gets 'resurrected' in etcd even though user deleted it.</p> <p dir="auto">It is possible that my controller does something terribly wrong - I checked it twice, but it's pretty complicated piece of code. I am 100% sure that <code class="notranslate">OnAdd()</code> is called as reaction to <code class="notranslate">cache.Sync</code> event, I did a debug log in <code class="notranslate">Process</code> function of Informer.</p>
<p dir="auto">When I stress-test PersistentVolume controller I sometimes get (correct) "PersistentVolumeClaim deleted" event followed by (wrong) "PersistentVolumeClaim added". This happens very rarely (&lt;0.01%) when I delete a PersistentVolumeClaim and the controller is under heavy load.</p> <p dir="auto">I use <code class="notranslate">framework.NewInformer</code> (<a href="https://github.com/jsafrane/kubernetes/blob/master/pkg/controller/framework/controller.go#L213">link</a> ) like everybody else. Reading its code, what happens when the controller is processing 'PVC deleted' event at line <a href="https://github.com/jsafrane/kubernetes/blob/master/pkg/controller/framework/controller.go#L251">251</a>, i.e just <strong>before</strong> <code class="notranslate">Delete()</code> is called and at the same time periodic sync starts? The PVC that is being deleted is still in the cache and a 'PVC Sync' will be added into <code class="notranslate">Queue</code> and my controller gets <code class="notranslate">OnDelete()</code> callback followed by <code class="notranslate">OnAdd()</code>.</p> <p dir="auto">My PersistentVolume controller then sees an old claim and tries to do stuff with it and sometimes it updates the claim in etcd. So the claim gets 'resurrected' in etcd even though user deleted it.</p> <p dir="auto">It is possible that my controller does something terribly wrong - I checked it twice, but it's pretty complicated piece of code. I am 100% sure that <code class="notranslate">OnAdd()</code> is called as reaction to <code class="notranslate">cache.Sync</code> event, I did a debug log in <code class="notranslate">Process</code> function of Informer.</p>
1
<p dir="auto">Both <code class="notranslate">DataFrame.hist</code> and <code class="notranslate">DataFrame.boxplot</code> support <code class="notranslate">by</code> to create grouped plots, however, <code class="notranslate">DataFrame.hist</code> requires that any column in <code class="notranslate">by</code> is also included in <code class="notranslate">column</code> while <code class="notranslate">DataFrame.boxplot</code> its vice-versa.</p> <p dir="auto">Here is a minimal example::</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; df = pd.DataFrame({'a': [1, 1, 2, 2, 2, 1], 'b': list('AAABBB')}) &gt;&gt;&gt; df.hist(column=['a', 'b'], by=['b']) &gt;&gt;&gt; df.boxplot(column=['a'], by=['b']) &gt;&gt;&gt; df.hist(column=['a'], by=['b']) # raises an error KeyError: u'no item named b'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; df = pd.DataFrame({'a': [1, 1, 2, 2, 2, 1], 'b': list('AAABBB')}) &gt;&gt;&gt; df.hist(column=['a', 'b'], by=['b']) &gt;&gt;&gt; df.boxplot(column=['a'], by=['b']) &gt;&gt;&gt; df.hist(column=['a'], by=['b']) # raises an error KeyError: u'no item named b' </code></pre></div>
<p dir="auto">from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lodagro/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lodagro">@lodagro</a>:</p> <p dir="auto">Been thinking a bit on uniformering signatures for plot, hist, boxplot and what they do/return.<br> For reference, below an overview what pandas and matplotlib.pyplot have.</p> <p dir="auto">some things that come to mind</p> <ul class="contains-task-list"> <li>+1 for what you did with boxplot, <em>by</em> and <em>column</em> are handy, this could also be used for other kind of plots.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> bar-plot goes through plot, why not bar() itself.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> maybe pie() to?</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> plot offers possibility to control <em>sharex</em> and <em>sharey</em>, others don not have this control.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> not all functions use the same subplot layout approach. DataFrame.plot() can plot all lines on a single axis or a nx1 layout. DataFrame.hist() uses nxn layout and DataFrame.boxplot is clever and can do nxm, but the user has no control. Maybe add <em>nrow</em>, <em>ncol</em> arguments? Default to None, meaning pandas can control layout, if either one defined pandas should compute the other one. Can get tricky for plot(), need to do something with <em>subplots</em> argument</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> usage of **<em>kwds</em>, e.g boxplot has it, does not use this. maybe add <em>subplot_kw</em> and <em>figure_kw</em> arguments for dispatching argmuments -- like matplotlib does.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Series.plot has <em>style</em>, DataFrame.plot not -- later could maybe use style/colum (like <em>formatters</em> in to_string)?</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> rot not used everywhere</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> probably many users of pandas are familiar with matplotlib too, in general align plotting signatures and return objects with matplotlib would be a good thing to do?</li> </ul> <p dir="auto">Maybe if i stare at it a bit longer i may have some more ideas, but this is getting long already. What do you think?</p> <h1 dir="auto">for reference</h1> <h2 dir="auto">Series:</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="plot(self, label=None, kind='line', use_index=True, rot=30, ax=None, style='-', grid=True, **kwds) hist(self, ax=None, grid=True, **kwds)"><pre class="notranslate"><code class="notranslate">plot(self, label=None, kind='line', use_index=True, rot=30, ax=None, style='-', grid=True, **kwds) hist(self, ax=None, grid=True, **kwds) </code></pre></div> <h2 dir="auto">DataFrame:</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="boxplot(self, column=None, by=None, ax=None, fontsize=None, rot=0, grid=True, **kwds) plot(self, subplots=False, sharex=True, sharey=False, use_index=True, figsize=None, grid=True, legend=True, rot=30, ax=None, kind='line', **kwds) def hist(self, grid=True, **kwds):"><pre class="notranslate"><code class="notranslate">boxplot(self, column=None, by=None, ax=None, fontsize=None, rot=0, grid=True, **kwds) plot(self, subplots=False, sharex=True, sharey=False, use_index=True, figsize=None, grid=True, legend=True, rot=30, ax=None, kind='line', **kwds) def hist(self, grid=True, **kwds): </code></pre></div> <h2 dir="auto">matplotlib.pyplot</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="figure(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True, FigureClass=&lt;class 'matplotlib.figure.Figure'&gt;, **kwargs) fig, ax = subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True, subplot_kw=None, **fig_kw) ---&gt; always creates a new figure plot(*args, **kwargs) returns list of matplotlib.lines.Line2D boxplot(x, notch=0, sym='b+', vert=1, whis=1.5, positions=None, widths=None, patch_artist=False, bootstrap=None, hold=None) Returns a dictionary, mapping each component of the boxplot to a list of the :class:`matplotlib.lines.Line2D` instances created. plt.pie(x, explode=None, labels=None, colors=None, autopct=None, pctdistance=0.6, shadow=False, labeldistance=1.1, hold=None) Return value: If *autopct* is None, return the tuple (*patches*, *texts*): - *patches* is a sequence of :class:`matplotlib.patches.Wedge` instances - *texts* is a list of the label :class:`matplotlib.text.Text` instances. If *autopct* is *None*, return the tuple (*patches*, *texts*) If *autopct* is not *None*, return the tuple (*patches*, *texts*, *autotexts*) plt.bar(left, height, width=0.8, bottom=None, hold=None, **kwargs) Return value is a list of matplotlib.patches.Rectangle instances"><pre class="notranslate"><code class="notranslate">figure(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True, FigureClass=&lt;class 'matplotlib.figure.Figure'&gt;, **kwargs) fig, ax = subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True, subplot_kw=None, **fig_kw) ---&gt; always creates a new figure plot(*args, **kwargs) returns list of matplotlib.lines.Line2D boxplot(x, notch=0, sym='b+', vert=1, whis=1.5, positions=None, widths=None, patch_artist=False, bootstrap=None, hold=None) Returns a dictionary, mapping each component of the boxplot to a list of the :class:`matplotlib.lines.Line2D` instances created. plt.pie(x, explode=None, labels=None, colors=None, autopct=None, pctdistance=0.6, shadow=False, labeldistance=1.1, hold=None) Return value: If *autopct* is None, return the tuple (*patches*, *texts*): - *patches* is a sequence of :class:`matplotlib.patches.Wedge` instances - *texts* is a list of the label :class:`matplotlib.text.Text` instances. If *autopct* is *None*, return the tuple (*patches*, *texts*) If *autopct* is not *None*, return the tuple (*patches*, *texts*, *autotexts*) plt.bar(left, height, width=0.8, bottom=None, hold=None, **kwargs) Return value is a list of matplotlib.patches.Rectangle instances </code></pre></div>
1
<p dir="auto">I'm trying to use <code class="notranslate">sizehint!</code> + <code class="notranslate">push!</code> to fill an array, but it is much slower than the equivalent operation using <code class="notranslate">resize!</code> and indexing. Benchmarks below.</p> <p dir="auto">I'm not surprised there's <em>some</em> overhead, and I'd be willing to accept some just to avoid potential bugs resulting from uninitialized data, but the overhead is 10x:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; VERSION v&quot;1.3.0-DEV.377&quot; julia&gt; f!(arr, N) = ( sizehint!(arr, N); for i in 1:N; push!(arr, i); end; arr ) f! (generic function with 1 method) julia&gt; g!(arr, N) = ( resize!(arr, N); for i in 1:N; arr[i] = i; end; arr ) g! (generic function with 1 method) julia&gt; f!(Int[], 1_000_000) == g!(Int[], 1_000_000) true julia&gt; @benchmark f!(arr, 1_000_000) setup=(arr=Int[]) BenchmarkTools.Trial: memory estimate: 7.63 MiB allocs estimate: 1 -------------- minimum time: 3.717 ms (0.00% GC) median time: 3.811 ms (0.00% GC) mean time: 3.870 ms (0.00% GC) maximum time: 6.022 ms (0.00% GC) -------------- samples: 1271 evals/sample: 1 julia&gt; @benchmark g!(arr, 1_000_000) setup=(arr=Int[]) BenchmarkTools.Trial: memory estimate: 7.63 MiB allocs estimate: 1 -------------- minimum time: 392.328 μs (0.00% GC) median time: 419.459 μs (0.00% GC) mean time: 433.387 μs (0.00% GC) maximum time: 2.653 ms (0.00% GC) -------------- samples: 10000 evals/sample: 1"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">VERSION</span> <span class="pl-s"><span class="pl-pds"><span class="pl-c1">v</span>"</span>1.3.0-DEV.377<span class="pl-pds">"</span></span> julia<span class="pl-k">&gt;</span> <span class="pl-en">f!</span>(arr, N) <span class="pl-k">=</span> ( <span class="pl-c1">sizehint!</span>(arr, N); <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span>N; <span class="pl-c1">push!</span>(arr, i); <span class="pl-k">end</span>; arr ) f! (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method) julia<span class="pl-k">&gt;</span> <span class="pl-en">g!</span>(arr, N) <span class="pl-k">=</span> ( <span class="pl-c1">resize!</span>(arr, N); <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span>N; arr[i] <span class="pl-k">=</span> i; <span class="pl-k">end</span>; arr ) g! (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method) julia<span class="pl-k">&gt;</span> <span class="pl-c1">f!</span>(Int[], <span class="pl-c1">1_000_000</span>) <span class="pl-k">==</span> <span class="pl-c1">g!</span>(Int[], <span class="pl-c1">1_000_000</span>) <span class="pl-c1">true</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">@benchmark</span> <span class="pl-c1">f!</span>(arr, <span class="pl-c1">1_000_000</span>) setup<span class="pl-k">=</span>(arr<span class="pl-k">=</span>Int[]) BenchmarkTools<span class="pl-k">.</span>Trial<span class="pl-k">:</span> memory estimate<span class="pl-k">:</span> <span class="pl-c1">7.63</span> MiB allocs estimate<span class="pl-k">:</span> <span class="pl-c1">1</span> <span class="pl-k">--------------</span> minimum time<span class="pl-k">:</span> <span class="pl-c1">3.717</span> ms (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) median time<span class="pl-k">:</span> <span class="pl-c1">3.811</span> ms (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) mean time<span class="pl-k">:</span> <span class="pl-c1">3.870</span> ms (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) maximum time<span class="pl-k">:</span> <span class="pl-c1">6.022</span> ms (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) <span class="pl-k">--------------</span> samples<span class="pl-k">:</span> <span class="pl-c1">1271</span> evals<span class="pl-k">/</span>sample<span class="pl-k">:</span> <span class="pl-c1">1</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">@benchmark</span> <span class="pl-c1">g!</span>(arr, <span class="pl-c1">1_000_000</span>) setup<span class="pl-k">=</span>(arr<span class="pl-k">=</span>Int[]) BenchmarkTools<span class="pl-k">.</span>Trial<span class="pl-k">:</span> memory estimate<span class="pl-k">:</span> <span class="pl-c1">7.63</span> MiB allocs estimate<span class="pl-k">:</span> <span class="pl-c1">1</span> <span class="pl-k">--------------</span> minimum time<span class="pl-k">:</span> <span class="pl-c1">392.328</span> μs (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) median time<span class="pl-k">:</span> <span class="pl-c1">419.459</span> μs (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) mean time<span class="pl-k">:</span> <span class="pl-c1">433.387</span> μs (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) maximum time<span class="pl-k">:</span> <span class="pl-c1">2.653</span> ms (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) <span class="pl-k">--------------</span> samples<span class="pl-k">:</span> <span class="pl-c1">10000</span> evals<span class="pl-k">/</span>sample<span class="pl-k">:</span> <span class="pl-c1">1</span></pre></div> <p dir="auto">Almost all time is spent in the function <code class="notranslate">_growend!</code>, which in turn is backed by a C function so I can't easily pin-point on what line the slowness is. I have reproduced this in v1.0.3 as well as latest master.</p>
<p dir="auto">When looking over my code_native, I recently saw that every push! costs me a call into the runtime library. This appears...excessive, at least for the standard case where the push can be accommodated without copying.</p> <p dir="auto">So, lets compare the push! and the fastpush!</p> <p dir="auto">First, lets look at what a vector actually is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct array_T data :: Ptr{Void} length:: UInt64 flags::UInt16 elsize::UInt16 offset::UInt32 nrows::UInt64 ncols_maxsz::UInt64 stuff1::UInt64 stuff2::UInt64 stuff3::UInt64 end"><pre class="notranslate"><code class="notranslate">struct array_T data :: Ptr{Void} length:: UInt64 flags::UInt16 elsize::UInt16 offset::UInt32 nrows::UInt64 ncols_maxsz::UInt64 stuff1::UInt64 stuff2::UInt64 stuff3::UInt64 end </code></pre></div> <p dir="auto">This gives us the fastpush:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@inline function fastpush!(A::Vector{T},val::T) where T if isbits(T) arr = unsafe_load(convert(Ptr{array_T}, pointer_from_objref(A))) if arr.length + arr.offset &lt; arr.ncols_maxsz unsafe_store!(convert(Ptr{UInt64}, pointer_from_objref(A)), arr.length+1, 2) unsafe_store!(convert(Ptr{UInt64}, pointer_from_objref(A)), arr.length+1, 4) @inbounds A[arr.length+1] = val else push!(A,val) end else push!(A,val) end A end"><pre class="notranslate"><code class="notranslate">@inline function fastpush!(A::Vector{T},val::T) where T if isbits(T) arr = unsafe_load(convert(Ptr{array_T}, pointer_from_objref(A))) if arr.length + arr.offset &lt; arr.ncols_maxsz unsafe_store!(convert(Ptr{UInt64}, pointer_from_objref(A)), arr.length+1, 2) unsafe_store!(convert(Ptr{UInt64}, pointer_from_objref(A)), arr.length+1, 4) @inbounds A[arr.length+1] = val else push!(A,val) end else push!(A,val) end A end </code></pre></div> <p dir="auto">And lets run a race:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function pushtest(A,n) resize!(A, 0); for i = 1:n push!(A,i) end nothing end function fastpushtest(A,n) resize!(A, 0) for i = 1:n fastpush!(A,i) end nothing end function settest(A,n) resize!(A, n) for i = 1:n A[i]=i end nothing end"><pre class="notranslate"><code class="notranslate">function pushtest(A,n) resize!(A, 0); for i = 1:n push!(A,i) end nothing end function fastpushtest(A,n) resize!(A, 0) for i = 1:n fastpush!(A,i) end nothing end function settest(A,n) resize!(A, n) for i = 1:n A[i]=i end nothing end </code></pre></div> <p dir="auto">yielding:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Nm = 100_000_000; A = Vector{Int}(Nm); resize!(A, 0); #after warmup: @time settest(A,Nm); @time settest(A,Nm); 0.356040 seconds (4 allocations: 160 bytes) 0.326640 seconds (4 allocations: 160 bytes) @time pushtest(A,Nm); @time pushtest(A,Nm); 0.899436 seconds (4 allocations: 160 bytes) 0.895555 seconds (4 allocations: 160 bytes) @time fastpushtest(A,Nm); @time fastpushtest(A,Nm); 0.577715 seconds (4 allocations: 160 bytes) 0.606671 seconds (4 allocations: 160 bytes)"><pre class="notranslate"><code class="notranslate">Nm = 100_000_000; A = Vector{Int}(Nm); resize!(A, 0); #after warmup: @time settest(A,Nm); @time settest(A,Nm); 0.356040 seconds (4 allocations: 160 bytes) 0.326640 seconds (4 allocations: 160 bytes) @time pushtest(A,Nm); @time pushtest(A,Nm); 0.899436 seconds (4 allocations: 160 bytes) 0.895555 seconds (4 allocations: 160 bytes) @time fastpushtest(A,Nm); @time fastpushtest(A,Nm); 0.577715 seconds (4 allocations: 160 bytes) 0.606671 seconds (4 allocations: 160 bytes) </code></pre></div> <p dir="auto">Hence, a 30% speedup is possible if we manage to get the fastpath inlined.</p> <p dir="auto">It would mayhaps be nice if it was somehow possible to make llvm aware of julia's runtime lib. For example, compile to llvm_IR (using clang or dragonegg?), and call into a nice library of llvm code including optimization-relevant metadata, and possibly inline current ccall-functions.</p> <p dir="auto">Not sure whether this performance problem is worth trying to fix (and how much more expensive it is if we lose important registers on the call). It is easy to avoid, though, by implementing the checks by hand (for tight loops that need to push a lot). In a perfect world, the optimizer would reduce to only a single check for unrolled pushing loops. In my applications, I do enough other things between push!/pop! that this ends up being benign.</p> <p dir="auto">PS. This is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="278803288" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/24901" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/24901/hovercard" href="https://github.com/JuliaLang/julia/pull/24901">#24901</a>, which removes the boundcheck from push!/pop!.</p> <p dir="auto">I also posted this in discourse.julialang.org before. The fastpush is deliberately not a pull request, because it is dirty and architecture dependent.</p>
1
<p dir="auto">The CSS is correct but no matter which way it is written, the answer is incorrect.</p> <p dir="auto">margin-top is not working correctly.</p> <p dir="auto">.green-box {<br> background-color: green;<br> margin-right: 20px;<br> margin-bottom: 20px;<br> margin-left: 40px;<br> margin-top: 20px;<br> }</p> <p dir="auto">.green-box {<br> margin: 20px 20px 20px 40px;<br> }</p> <p dir="auto">The instructions say to make margin-top: 20px. By experimenting I determined it should be margin-top: 40px.</p>
<p dir="auto">In the instructions for the margin, you have the pixel setting for "Top" to 20px instead of 40px.</p>
1
<p dir="auto">Right now StorageImpl records a dtype. We should remove the dtype and store bytes directly. Non-POD dtypes should still support custom destruction, but that is built on top of an otherwise untyped representation. Representing storage impls in an untyped way means that we can reinterpret cast tensors, e.g., view a float tensor as a complex tensor.</p> <p dir="auto">In the user side we still expose ByteStorage/LongStorage; these should either be eliminated from Python, or implemented as wrappers that know dtype.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/anjali411/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/anjali411">@anjali411</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dylanbespalko/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dylanbespalko">@dylanbespalko</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">I'm able to create a torch.Tensor from a list of numpy arrays, but I'm not able to create torch.Tensor from a list of torch.Tensors, raising:</p> <p dir="auto"><code class="notranslate">ValueError: only one element tensors can be converted to Python scalars</code></p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <p dir="auto">This code raises above error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tensors_list = [torch.Tensor(1,3), torch.Tensor(1,3)] list_to_tensor = torch.Tensor(tensors_list)"><pre class="notranslate"><code class="notranslate">tensors_list = [torch.Tensor(1,3), torch.Tensor(1,3)] list_to_tensor = torch.Tensor(tensors_list) </code></pre></div> <p dir="auto">While this code works fine:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="np_list = [np.random.rand(1,3), np.random.rand(1,3)] list_to_tensor = torch.Tensor(np_list)"><pre class="notranslate"><code class="notranslate">np_list = [np.random.rand(1,3), np.random.rand(1,3)] list_to_tensor = torch.Tensor(np_list) </code></pre></div> <h2 dir="auto">Environment</h2> <p dir="auto">PyTorch version: 1.5.0<br> Is debug build: No<br> CUDA used to build PyTorch: 10.2</p> <p dir="auto">OS: Ubuntu 20.04 LTS<br> GCC version: (Ubuntu 9.3.0-10ubuntu2) 9.3.0<br> CMake version: Could not collect</p> <p dir="auto">Python version: 3.8<br> Is CUDA available: Yes<br> CUDA runtime version: Could not collect<br> GPU models and configuration: GPU 0: GeForce MX150<br> Nvidia driver version: 440.82<br> cuDNN version: Could not collect</p> <p dir="auto">Versions of relevant libraries:<br> [pip3] numpy==1.18.4<br> [pip3] torch==1.5.0<br> [pip3] torchtext==0.6.0<br> [pip3] torchvision==0.6.0<br> [conda] Could not collect</p> <h2 dir="auto">Additional context</h2> <p dir="auto">This is probably very minor bug, not sure if I should've posted it here, but I'm too much of a beginner to judge so here it is.</p>
0
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.4.7 (cliffs) kombu:4.6.11 py:3.7.3 billiard:3.6.3.0 redis:3.5.3 platform -&gt; system:Darwin arch:64bit kernel version:19.6.0 imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:redis://127.0.0.1:6379/6"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.4.7 (cliffs) kombu:4.6.11 py:3.7.3 billiard:3.6.3.0 redis:3.5.3 platform -&gt; system:Darwin arch:64bit kernel version:19.6.0 imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:redis://127.0.0.1:6379/6 </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="aiohttp==3.6.2 aioredis==1.3.1 amqp==2.6.1 asgiref==3.3.0 async-timeout==3.0.1 asyncio==3.4.3 attrs==19.3.0 billiard==3.6.3.0 bumpversion==0.5.3 celery==4.4.7 certifi==2020.6.20 chardet==3.0.4 click==7.1.2 click-didyoumean==0.0.3 click-repl==0.1.6 contextlib2==0.5.4 coreapi==2.3.3 coreschema==0.0.4 coverage==4.5.4 deepdiff==4.2.0 Django==3.1.3 django-admin-rangefilter==0.6.3 django-autocomplete-light==3.8.1 django-braces==1.4.0 django-crispy-forms==1.9.2 django-datatable==0.2.1 django-easy-select2==1.2.5 django-endless-pagination==2.0 django-filter==2.4.0 django-ipware==1.1.6 django-jsoneditor==0.1.4 django-multiselectfield==0.1.12 django-recaptcha==1.2.1 django-rest-swagger==2.2.0 django-user-agents==0.3.0 djangorestframework==3.12.1 ecdsa==0.13 emoji==0.5.4 et-xmlfile==1.0.1 future==0.18.2 gunicorn==20.0.4 hiredis==1.1.0 httplib2==0.12.1 idna==2.10 importlib-metadata==1.2.0 itypes==1.2.0 jdcal==1.2 Jinja2==2.11.2 jsonfield==1.0.3 kombu==4.6.11 MarkupSafe==1.1.1 more-itertools==8.5.0 multidict==4.7.6 mysqlclient==1.4.2 numpy==1.19.2 oauth2client==4.1.3 oauthlib==1.1.2 openapi-codec==1.3.2 openpyxl==2.3.5 ordered-set==4.0.2 packaging==19.2 pluggy==0.13.1 prompt-toolkit==3.0.8 py==1.9.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pybitbucket==0.11.1 pyparsing==2.4.7 pytest==5.3.1 pytest-cov==2.8.1 pytest-django==3.7.0 python-dateutil==2.8.1 python-gcm==0.4 pytz==2019.3 PyYAML==3.11 raven==6.10.0 redis==3.5.3 requests==2.24.0 requests-oauthlib==0.7.0 rsa==4.0 sentry-sdk==0.14.4 simplejson==3.6.5 six==1.15.0 sqlparse==0.4.1 supervisor==4.1.0 tqdm==4.11.2 typing-extensions==3.7.4.3 tzlocal==1.3 ua-parser==0.10.0 uritemplate==0.6 urllib3==1.25.11 user-agents==2.2.0 vine==1.3.0 wcwidth==0.2.5 yarl==1.6.2 zipp==3.4.0 "><pre class="notranslate"><code class="notranslate">aiohttp==3.6.2 aioredis==1.3.1 amqp==2.6.1 asgiref==3.3.0 async-timeout==3.0.1 asyncio==3.4.3 attrs==19.3.0 billiard==3.6.3.0 bumpversion==0.5.3 celery==4.4.7 certifi==2020.6.20 chardet==3.0.4 click==7.1.2 click-didyoumean==0.0.3 click-repl==0.1.6 contextlib2==0.5.4 coreapi==2.3.3 coreschema==0.0.4 coverage==4.5.4 deepdiff==4.2.0 Django==3.1.3 django-admin-rangefilter==0.6.3 django-autocomplete-light==3.8.1 django-braces==1.4.0 django-crispy-forms==1.9.2 django-datatable==0.2.1 django-easy-select2==1.2.5 django-endless-pagination==2.0 django-filter==2.4.0 django-ipware==1.1.6 django-jsoneditor==0.1.4 django-multiselectfield==0.1.12 django-recaptcha==1.2.1 django-rest-swagger==2.2.0 django-user-agents==0.3.0 djangorestframework==3.12.1 ecdsa==0.13 emoji==0.5.4 et-xmlfile==1.0.1 future==0.18.2 gunicorn==20.0.4 hiredis==1.1.0 httplib2==0.12.1 idna==2.10 importlib-metadata==1.2.0 itypes==1.2.0 jdcal==1.2 Jinja2==2.11.2 jsonfield==1.0.3 kombu==4.6.11 MarkupSafe==1.1.1 more-itertools==8.5.0 multidict==4.7.6 mysqlclient==1.4.2 numpy==1.19.2 oauth2client==4.1.3 oauthlib==1.1.2 openapi-codec==1.3.2 openpyxl==2.3.5 ordered-set==4.0.2 packaging==19.2 pluggy==0.13.1 prompt-toolkit==3.0.8 py==1.9.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pybitbucket==0.11.1 pyparsing==2.4.7 pytest==5.3.1 pytest-cov==2.8.1 pytest-django==3.7.0 python-dateutil==2.8.1 python-gcm==0.4 pytz==2019.3 PyYAML==3.11 raven==6.10.0 redis==3.5.3 requests==2.24.0 requests-oauthlib==0.7.0 rsa==4.0 sentry-sdk==0.14.4 simplejson==3.6.5 six==1.15.0 sqlparse==0.4.1 supervisor==4.1.0 tqdm==4.11.2 typing-extensions==3.7.4.3 tzlocal==1.3 ua-parser==0.10.0 uritemplate==0.6 urllib3==1.25.11 user-agents==2.2.0 vine==1.3.0 wcwidth==0.2.5 yarl==1.6.2 zipp==3.4.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <h1 dir="auto">Actual Behavior</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2020-11-09 17:06:42,372: ERROR/ForkPoolWorker-5] Task push_notification.tasks.push_queue_task[11af77b3-e848-4dca-86cf-e4fed0b266bb] raised unexpected: OSError(9, 'Bad file descriptor') Traceback (most recent call last): File &quot;/Users/jgtarikyayla/project/venv/lib/python3.7/site-packages/celery/app/trace.py&quot;, line 412, in trace_task R = retval = fun(*args, **kwargs) File &quot;/Users/jgtarikyayla/project/venv/lib/python3.7/site-packages/celery/app/trace.py&quot;, line 704, in __protected_call__ return self.run(*args, **kwargs) File &quot;/Users/jgtarikyayla/project/push_notification/tasks.py&quot;, line 147, in push_queue_task loop.run_until_complete(push_main()) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py&quot;, line 571, in run_until_complete self.run_forever() File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py&quot;, line 539, in run_forever self._run_once() File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py&quot;, line 1739, in _run_once event_list = self._selector.select(timeout) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/selectors.py&quot;, line 558, in select kev_list = self._selector.control(None, max_ev, timeout) OSError: [Errno 9] Bad file descriptor"><pre class="notranslate"><code class="notranslate">[2020-11-09 17:06:42,372: ERROR/ForkPoolWorker-5] Task push_notification.tasks.push_queue_task[11af77b3-e848-4dca-86cf-e4fed0b266bb] raised unexpected: OSError(9, 'Bad file descriptor') Traceback (most recent call last): File "/Users/jgtarikyayla/project/venv/lib/python3.7/site-packages/celery/app/trace.py", line 412, in trace_task R = retval = fun(*args, **kwargs) File "/Users/jgtarikyayla/project/venv/lib/python3.7/site-packages/celery/app/trace.py", line 704, in __protected_call__ return self.run(*args, **kwargs) File "/Users/jgtarikyayla/project/push_notification/tasks.py", line 147, in push_queue_task loop.run_until_complete(push_main()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 571, in run_until_complete self.run_forever() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 539, in run_forever self._run_once() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 1739, in _run_once event_list = self._selector.select(timeout) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/selectors.py", line 558, in select kev_list = self._selector.control(None, max_ev, timeout) OSError: [Errno 9] Bad file descriptor </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# task.py @task def push_queue_task(): print(&quot;Push Service task is received&quot;) loop = asyncio.get_event_loop() loop.run_until_complete(push_main()) @celeryd_init.connect def push_init(sender=None, conf=None, **kwargs): print(&quot;Push Service is running&quot;) push_queue_task.apply_async() print(&quot;Push Service is started&quot;) async def push_main(): sem = asyncio.Semaphore(5) redis_con = await aioredis.create_redis(address=(settings.REDIS_IP, settings.REDIS_PORT), db=settings.REDIS_DB, encoding='utf-8') while True: redis_pop_data = None try: with await redis_con as conn: queue, redis_pop_data = await conn.blpop(RedisConsts.SERVICE_PUSH) push_queue_data = json.loads(redis_pop_data) ... except Exception as e: logging.exception(str(e) + &quot; , Data from push queue : &quot; + str(redis_pop_data)) "><pre class="notranslate"><code class="notranslate"># task.py @task def push_queue_task(): print("Push Service task is received") loop = asyncio.get_event_loop() loop.run_until_complete(push_main()) @celeryd_init.connect def push_init(sender=None, conf=None, **kwargs): print("Push Service is running") push_queue_task.apply_async() print("Push Service is started") async def push_main(): sem = asyncio.Semaphore(5) redis_con = await aioredis.create_redis(address=(settings.REDIS_IP, settings.REDIS_PORT), db=settings.REDIS_DB, encoding='utf-8') while True: redis_pop_data = None try: with await redis_con as conn: queue, redis_pop_data = await conn.blpop(RedisConsts.SERVICE_PUSH) push_queue_data = json.loads(redis_pop_data) ... except Exception as e: logging.exception(str(e) + " , Data from push queue : " + str(redis_pop_data)) </code></pre></div> <p dir="auto">Already tried to upgrade celery version, same result.</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues in this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with retries, ETA/Countdown &amp; rate limits disabled.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery 4.2.1</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <p dir="auto">Im using Celery with a eventlet execution pool and a redis task queue and a redis result backend but im having some trouble because i cant use AsyncResult. I isolate the problem trying to change the way i configure Celery and it is almost sure related to the Eventlet support because before that everything worked.</p> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">I would like to use my result backend with celery as i was before adding Eventlet to my project.</p> <h1 dir="auto">Actual Behavior</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="meta = self._get_task_meta_for(task_id) AttributeError: 'DisabledBackend' object has no attribute '_get_task_meta_for'"><pre class="notranslate"><code class="notranslate">meta = self._get_task_meta_for(task_id) AttributeError: 'DisabledBackend' object has no attribute '_get_task_meta_for' </code></pre></div>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-create-bootstrap-wells" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-create-bootstrap-wells</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">1- not clear statement "Add two div elements inside your div class="well"&gt; element both with the class col-xs-6"<br> 2 - the code checker works also if i put 2 &lt;divs class=well" inside the first </p><div dir="auto"><p dir="auto"></p></div>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-create-bootstrap-wells" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-create-bootstrap-wells</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8844886/9320279/e81aebf6-450c-11e5-8a2b-c5b27affca4c.png"><img src="https://cloud.githubusercontent.com/assets/8844886/9320279/e81aebf6-450c-11e5-8a2b-c5b27affca4c.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto"><strong>Migrated issue, originally created by Adrian (<a href="https://github.com/thiefmaster">@thiefmaster</a>)</strong></p> <p dir="auto">I have the following code: <a href="https://gist.github.com/ThiefMaster/9cea43683142912e5ffb0fa3b5d8d0a9">https://gist.github.com/ThiefMaster/9cea43683142912e5ffb0fa3b5d8d0a9</a></p> <p dir="auto">It fails with a circular dependency error even though there is only a change to <code class="notranslate">p</code> (however, both <code class="notranslate">p</code> and <code class="notranslate">gal</code> show up in<br> <code class="notranslate">sess.dirty</code> when I print it right before the commit, but <code class="notranslate">is_modified</code> only returns True for <code class="notranslate">p</code>).</p> <p dir="auto">It also works fine if I uncomment the expire call - but of course that's an awful workaround. <code class="notranslate">post_update=True</code> on the <code class="notranslate">gallery</code><br> relationship also does the job but it seems like an SQLAlchemy bug to me since there's only one object with changes which can be flushed/committed just fine if I do<br> a manual expire...</p>
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <p dir="auto">i.e. when doing "whos-dependent-on-who", if both instances are already persistent, there should be no dependency between them and post_update should not be needed. ex:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import * from sqlalchemy.orm import * meta = MetaData(create_engine('sqlite://')) contacts = Table('contacts', meta, Column('id', Integer, primary_key=True), Column('name', String(50)), Column('created_by', Integer), Column('updated_by', Integer), ForeignKeyConstraint(['created_by']('created_by'), ['contacts.id']('contacts.id')), ForeignKeyConstraint(['updated_by']('updated_by'), ['contacts.id']('contacts.id')) ) meta.create_all() class Contact(object): def __init__(self, name, created_by=None): self.name = name self.created_by = created_by def __eq__(self, other): return other.name == self.name def __repr__(self): return &quot;Contact(created_by=%r, updated_by=%r)&quot; % (self.created_by, self.updated_by) mapper(Contact, contacts, properties={ '_created_by': contacts.c.created_by, '_updated_by': contacts.c.updated_by, 'created_by': relation(Contact, primaryjoin=contacts.c.created_by==contacts.c.id, remote_side=[contacts.c.id](contacts.c.id)), 'updated_by': relation(Contact,primaryjoin=contacts.c.updated_by==contacts.c.id, remote_side=[contacts.c.id](contacts.c.id), backref=backref('updated_by_me', primaryjoin=contacts.c.updated_by==contacts.c.id), ) }) sess = create_session() c1 = Contact('c1') c2 = Contact('c2', created_by=c1) c3 = Contact('c3', created_by=c1) c3.updated_by = c2 sess.save(c1) sess.save(c2) sess.save(c3) sess.flush() c2.updated_by = c1 c3.updated_by = c1 sess.flush() c2.updated_by=c3 c3.updated_by = c2 sess.flush() # &lt;--- fails. no INSERTs are happening here so UPDATEs should handle it fine"><pre class="notranslate"><code class="notranslate">from sqlalchemy import * from sqlalchemy.orm import * meta = MetaData(create_engine('sqlite://')) contacts = Table('contacts', meta, Column('id', Integer, primary_key=True), Column('name', String(50)), Column('created_by', Integer), Column('updated_by', Integer), ForeignKeyConstraint(['created_by']('created_by'), ['contacts.id']('contacts.id')), ForeignKeyConstraint(['updated_by']('updated_by'), ['contacts.id']('contacts.id')) ) meta.create_all() class Contact(object): def __init__(self, name, created_by=None): self.name = name self.created_by = created_by def __eq__(self, other): return other.name == self.name def __repr__(self): return "Contact(created_by=%r, updated_by=%r)" % (self.created_by, self.updated_by) mapper(Contact, contacts, properties={ '_created_by': contacts.c.created_by, '_updated_by': contacts.c.updated_by, 'created_by': relation(Contact, primaryjoin=contacts.c.created_by==contacts.c.id, remote_side=[contacts.c.id](contacts.c.id)), 'updated_by': relation(Contact,primaryjoin=contacts.c.updated_by==contacts.c.id, remote_side=[contacts.c.id](contacts.c.id), backref=backref('updated_by_me', primaryjoin=contacts.c.updated_by==contacts.c.id), ) }) sess = create_session() c1 = Contact('c1') c2 = Contact('c2', created_by=c1) c3 = Contact('c3', created_by=c1) c3.updated_by = c2 sess.save(c1) sess.save(c2) sess.save(c3) sess.flush() c2.updated_by = c1 c3.updated_by = c1 sess.flush() c2.updated_by=c3 c3.updated_by = c2 sess.flush() # &lt;--- fails. no INSERTs are happening here so UPDATEs should handle it fine </code></pre></div>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> I upgraded to Babel 7.4.0 and core-js 3.<br> I need to include some global Polyfills due to dependencies requiring them (for example React requires <code class="notranslate">Symbol</code>).<br> I am using <code class="notranslate">useBuiltIns: "usage"</code> in my <code class="notranslate">env</code> config.</p> <p dir="auto">Many polyfills end up being duplicated in my Webpack bundle because they get imported once from <code class="notranslate">core-js@3</code> due to my globally-polluting imports, and once again from <code class="notranslate">core-js-pure@3</code> from the <code class="notranslate">preset-env</code> imports.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42070/54722378-b232d780-4b64-11e9-816b-28681d402c56.png"><img src="https://user-images.githubusercontent.com/42070/54722378-b232d780-4b64-11e9-816b-28681d402c56.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected behavior/code</strong><br> I am not really sure what the expected behaviour would be here, but I expect my bundle to now grow in size because I am using <code class="notranslate">core-js@3</code>.</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="presets = [ &quot;@babel/preset-typescript&quot;, &quot;@babel/preset-react&quot;, [ &quot;@babel/preset-env&quot;, { useBuiltIns: &quot;usage&quot;, corejs: 3, }, ], ] plugins = [ &quot;@babel/plugin-syntax-dynamic-import&quot;, &quot;@babel/plugin-proposal-object-rest-spread&quot;, &quot;@babel/plugin-proposal-class-properties&quot;, [&quot;@babel/plugin-transform-runtime&quot;, { regenerator: false, corejs: 3 }], ] module.exports = { presets, plugins }"><pre class="notranslate"><span class="pl-s1">presets</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-s">"@babel/preset-typescript"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-react"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span> <span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">useBuiltIns</span>: <span class="pl-s">"usage"</span><span class="pl-kos">,</span> <span class="pl-c1">corejs</span>: <span class="pl-c1">3</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-s1">plugins</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-s">"@babel/plugin-syntax-dynamic-import"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/plugin-proposal-object-rest-spread"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/plugin-proposal-class-properties"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"@babel/plugin-transform-runtime"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">regenerator</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">corejs</span>: <span class="pl-c1">3</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> presets<span class="pl-kos">,</span> plugins <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): 7.4.0</li> <li>Node/npm version: 11.11.0 / 6.7.0</li> <li>OS: OSX 10.14.2</li> <li>Monorepo: no</li> <li>How you are using Babel: <code class="notranslate">loader</code></li> </ul>
<blockquote> <p dir="auto">Issue originally made by @skorlir</p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.10.1</li> <li><strong>Node version:</strong> 6.2.0</li> <li><strong>npm version:</strong> 3.8.9</li> </ul> <h3 dir="auto">Description</h3> <p dir="auto">See [[ https://github.com/skorlir/babel-bug-custom-errors | minimal reproduction ]] on GitHub. With a very basic babel setup, if you compile code that looks like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class RequiredError extends Error { constructor (requiredField, actualValue) { super(`[validator error]: ${requiredField} is required but got ${actualValue}.`) } }"><pre class="notranslate"><code class="notranslate">class RequiredError extends Error { constructor (requiredField, actualValue) { super(`[validator error]: ${requiredField} is required but got ${actualValue}.`) } } </code></pre></div> <p dir="auto">you get resulting ES5 that, although it imports correctly in the Node REPL, will not work with <code class="notranslate">instanceof</code>.</p> <p dir="auto">Here are reproduction commands (from the root directory of the minimum reproduction repo):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ babel app/support/errors.js &gt; errors.js $ node &gt; const RequiredError = require('./errors').RequiredError undefined &gt; try { throw new RequiredError() } catch (e) { e instanceof RequiredError } false &gt;"><pre class="notranslate"><code class="notranslate">$ babel app/support/errors.js &gt; errors.js $ node &gt; const RequiredError = require('./errors').RequiredError undefined &gt; try { throw new RequiredError() } catch (e) { e instanceof RequiredError } false &gt; </code></pre></div> <p dir="auto">Note that TypeScript compiles this correctly. If I change the extension of the file from js to ts (<code class="notranslate">mv app/support/errors.js app/support/errors.ts</code>), and then run <code class="notranslate">tsc -m commonjs --outDir . app/support/errors.ts</code>, the output file works correctly when required into the Node REPL and used exactly as above.</p> <p dir="auto">Also note that there is a failing test case already written in the minimum reproduction. All you need to do to run it is run <code class="notranslate">npm i &amp;&amp; npm test</code> as it states in the README.</p>
0
<p dir="auto">Please open new issue in: <a href="https://github.com/microsoft/PowerToys/issues">https://github.com/microsoft/PowerToys/issues</a></p> <ol dir="auto"> <li>upload log file: C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Logs\1.0.0\2020-08-05.txt</li> <li>copy below exception message</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Version: 1.0.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True Date: 08/05/2020 10:34:34 Exception: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Timer'. at System.Timers.Timer.set_Enabled(Boolean value) at System.Timers.Timer.Start() at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e) at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot) at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) at System.Windows.Window.SetRootVisual() at System.Windows.Window.SetRootVisualAndUpdateSTC() at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight) at System.Windows.Window.CreateSourceWindow(Boolean duringShow) at System.Windows.Window.CreateSourceWindowDuringShow() at System.Windows.Window.SafeCreateWindowDuringShow() at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)"><pre class="notranslate"><code class="notranslate">Version: 1.0.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True Date: 08/05/2020 10:34:34 Exception: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Timer'. at System.Timers.Timer.set_Enabled(Boolean value) at System.Timers.Timer.Start() at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e) at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot) at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) at System.Windows.Window.SetRootVisual() at System.Windows.Window.SetRootVisualAndUpdateSTC() at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight) at System.Windows.Window.CreateSourceWindow(Boolean duringShow) at System.Windows.Window.CreateSourceWindowDuringShow() at System.Windows.Window.SafeCreateWindowDuringShow() at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) </code></pre></div> <p dir="auto">Log:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2020-08-05 10:05:44.9691|INFO|App.OnStartup|Begin PowerToys Run startup ---------------------------------------------------- 2020-08-05 10:05:45.0138|INFO|App.OnStartup|Runtime info: Version: 1.0.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True 2020-08-05 10:05:46.0856|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data 2020-08-05 10:05:46.1185|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache&gt;&gt; 2020-08-05 10:05:46.9222|INFO|ImageLoader.Initialize|Preload images cost &lt;391ms&gt; 2020-08-05 10:05:46.9493|INFO|ImageLoader.Initialize|Number of preload images is &lt;0&gt;, Images Number: 4, Unique Items 4 2020-08-05 10:05:47.2251|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json&gt;&gt; 2020-08-05 10:05:47.2342|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data 2020-08-05 10:05:47.2494|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Pinyin.cache&gt;&gt; 2020-08-05 10:05:47.2933|INFO|Wox.Infrastructure.Alphabet.Initialize|Preload pinyin cache &lt;59ms&gt; 2020-08-05 10:05:47.2933|INFO|Wox.Infrastructure.Alphabet.Initialize|Number of preload pinyin combination&lt;0&gt; 2020-08-05 10:05:47.4439|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json&gt;&gt; 2020-08-05 10:05:47.6308|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\Settings.json&gt;&gt; 2020-08-05 10:05:47.6481|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data 2020-08-05 10:05:47.6647|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Win32.cache&gt;&gt; 2020-08-05 10:05:47.6785|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data 2020-08-05 10:05:47.6947|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\UWP.cache&gt;&gt; 2020-08-05 10:05:47.7023|INFO|Microsoft.Plugin.Program.Main|Preload programs cost &lt;54ms&gt; 2020-08-05 10:05:47.7023|INFO|Microsoft.Plugin.Program.Main|Number of preload win32 programs &lt;0&gt; 2020-08-05 10:05:51.1985|ERROR||------------- BEGIN Microsoft.Plugin.Program exception ------------- 2020-08-05 10:05:51.2088|ERROR|| Exception full name: System.Runtime.InteropServices.COMException Error status: KNOWN Class name: Win32 Calling method: LnkProgram Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player.lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded 2020-08-05 10:05:51.2194|ERROR||------------- END Microsoft.Plugin.Program exception ------------- 2020-08-05 10:05:51.2545|ERROR||------------- BEGIN Microsoft.Plugin.Program exception ------------- 2020-08-05 10:05:51.2640|ERROR|| Exception full name: System.Runtime.InteropServices.COMException Error status: KNOWN Class name: Win32 Calling method: LnkProgram Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded 2020-08-05 10:05:51.2640|ERROR||------------- END Microsoft.Plugin.Program exception ------------- 2020-08-05 10:05:53.2602|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json&gt;&gt; 2020-08-05 10:05:53.4945|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json&gt;&gt; 2020-08-05 10:05:53.5145|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json&gt;&gt; 2020-08-05 10:05:53.5312|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json&gt;&gt; 2020-08-05 10:05:53.9144|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\Settings.json&gt;&gt; 2020-08-05 10:34:11.5047|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json&gt;&gt; 2020-08-05 10:34:11.5138|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json&gt;&gt; 2020-08-05 10:34:11.5138|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json&gt;&gt; 2020-08-05 10:34:11.5376|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json&gt;&gt; 2020-08-05 10:34:11.5454|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json&gt;&gt; 2020-08-05 10:34:11.5454|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\Settings.json&gt;&gt; 2020-08-05 10:34:11.5686|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\Settings.json&gt;&gt; 2020-08-05 10:34:11.5905|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Win32.cache&gt;&gt; 2020-08-05 10:34:11.6050|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\UWP.cache&gt;&gt; 2020-08-05 10:34:11.6050|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json&gt;&gt; 2020-08-05 10:34:11.6265|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache&gt;&gt; 2020-08-05 10:34:34.8469|FATAL|UnHandledException| ## Exception "><pre class="notranslate"><code class="notranslate">2020-08-05 10:05:44.9691|INFO|App.OnStartup|Begin PowerToys Run startup ---------------------------------------------------- 2020-08-05 10:05:45.0138|INFO|App.OnStartup|Runtime info: Version: 1.0.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True 2020-08-05 10:05:46.0856|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data 2020-08-05 10:05:46.1185|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache&gt;&gt; 2020-08-05 10:05:46.9222|INFO|ImageLoader.Initialize|Preload images cost &lt;391ms&gt; 2020-08-05 10:05:46.9493|INFO|ImageLoader.Initialize|Number of preload images is &lt;0&gt;, Images Number: 4, Unique Items 4 2020-08-05 10:05:47.2251|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json&gt;&gt; 2020-08-05 10:05:47.2342|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data 2020-08-05 10:05:47.2494|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Pinyin.cache&gt;&gt; 2020-08-05 10:05:47.2933|INFO|Wox.Infrastructure.Alphabet.Initialize|Preload pinyin cache &lt;59ms&gt; 2020-08-05 10:05:47.2933|INFO|Wox.Infrastructure.Alphabet.Initialize|Number of preload pinyin combination&lt;0&gt; 2020-08-05 10:05:47.4439|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json&gt;&gt; 2020-08-05 10:05:47.6308|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\Settings.json&gt;&gt; 2020-08-05 10:05:47.6481|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data 2020-08-05 10:05:47.6647|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Win32.cache&gt;&gt; 2020-08-05 10:05:47.6785|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data 2020-08-05 10:05:47.6947|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\UWP.cache&gt;&gt; 2020-08-05 10:05:47.7023|INFO|Microsoft.Plugin.Program.Main|Preload programs cost &lt;54ms&gt; 2020-08-05 10:05:47.7023|INFO|Microsoft.Plugin.Program.Main|Number of preload win32 programs &lt;0&gt; 2020-08-05 10:05:51.1985|ERROR||------------- BEGIN Microsoft.Plugin.Program exception ------------- 2020-08-05 10:05:51.2088|ERROR|| Exception full name: System.Runtime.InteropServices.COMException Error status: KNOWN Class name: Win32 Calling method: LnkProgram Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player.lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded 2020-08-05 10:05:51.2194|ERROR||------------- END Microsoft.Plugin.Program exception ------------- 2020-08-05 10:05:51.2545|ERROR||------------- BEGIN Microsoft.Plugin.Program exception ------------- 2020-08-05 10:05:51.2640|ERROR|| Exception full name: System.Runtime.InteropServices.COMException Error status: KNOWN Class name: Win32 Calling method: LnkProgram Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded 2020-08-05 10:05:51.2640|ERROR||------------- END Microsoft.Plugin.Program exception ------------- 2020-08-05 10:05:53.2602|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json&gt;&gt; 2020-08-05 10:05:53.4945|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json&gt;&gt; 2020-08-05 10:05:53.5145|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json&gt;&gt; 2020-08-05 10:05:53.5312|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json&gt;&gt; 2020-08-05 10:05:53.9144|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\Settings.json&gt;&gt; 2020-08-05 10:34:11.5047|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json&gt;&gt; 2020-08-05 10:34:11.5138|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json&gt;&gt; 2020-08-05 10:34:11.5138|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json&gt;&gt; 2020-08-05 10:34:11.5376|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json&gt;&gt; 2020-08-05 10:34:11.5454|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json&gt;&gt; 2020-08-05 10:34:11.5454|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\Settings.json&gt;&gt; 2020-08-05 10:34:11.5686|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\Settings.json&gt;&gt; 2020-08-05 10:34:11.5905|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Win32.cache&gt;&gt; 2020-08-05 10:34:11.6050|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\UWP.cache&gt;&gt; 2020-08-05 10:34:11.6050|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json&gt;&gt; 2020-08-05 10:34:11.6265|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\user\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache&gt;&gt; 2020-08-05 10:34:34.8469|FATAL|UnHandledException| ## Exception </code></pre></div> <p dir="auto">System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> Source: System.ComponentModel.TypeConverter<br> TargetAssembly: System.ComponentModel.TypeConverter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a<br> TargetModule: System.ComponentModel.TypeConverter.dll<br> TargetSite: Void set_Enabled(Boolean)<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> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ## Environment * Command Line: &quot;C:\Program Files\PowerToys\modules\launcher\PowerLauncher.dll&quot; 18940 * Timestamp: 08/05/2020 10:34:34 * Wox version: 1.0.0 * OS Version: Microsoft Windows NT 10.0.19041.0 * IntPtr Length: 8 * x64: True * CLR Version: 3.1.6 * Installed .NET Framework: * v2.0.50727 2.0.50727.4927 SP2 * v3.0 3.0.30729.4926 SP2 * v3.5 3.5.30729.4926 SP1 * v4 Client 4.8.04084 * v4 Full 4.8.04084 * v4.0 Client 4.0.0.0 ## Assemblies - PowerLauncher * System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.CoreLib.dll) * PowerLauncher, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerLauncher.dll) * PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework.dll) * WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\WindowsBase.dll) * System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.dll) * System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Xaml.dll) * System.Runtime.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Extensions.dll) * System.Threading, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.dll) * System.Threading.Tasks, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Tasks.dll) * System.IO.Pipes, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.Pipes.dll) * System.Security.AccessControl, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.AccessControl.dll) * System.Security.Principal.Windows, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Principal.Windows.dll) * Wox.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Infrastructure.dll) * Pinyin4Net, Version=2016.4.24.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Pinyin4Net.dll) * mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\mscorlib.dll) * System.IO.Packaging, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.IO.Packaging.dll) * netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\netstandard.dll) * System.Private.Uri, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.Uri.dll) * PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationCore.dll) * DirectWriteForwarder, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\DirectWriteForwarder.dll) * System.Runtime.InteropServices, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.InteropServices.dll) * System.Runtime.CompilerServices.VisualC, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.CompilerServices.VisualC.dll) * System.Diagnostics.Debug, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Debug.dll) * System.Resources.ResourceManager, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Resources.ResourceManager.dll) * Microsoft.Win32.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\Microsoft.Win32.Primitives.dll) * System.Collections.NonGeneric, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.NonGeneric.dll) * System.Linq, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Linq.dll) * System.Collections, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.dll) * Microsoft.Win32.Registry, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\Microsoft.Win32.Registry.dll) * System.Collections.Specialized, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.Specialized.dll) * System.ComponentModel.Primitives, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.Primitives.dll) * System.Diagnostics.Process, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Process.dll) * System.Threading.Thread, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Thread.dll) * System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Configuration.ConfigurationManager.dll) * System.Xml.ReaderWriter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Xml.ReaderWriter.dll) * System.Private.Xml, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.Xml.dll) * System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.FileSystem.dll) * System.Net.WebClient, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.WebClient.dll) * System.Memory, Version=4.2.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Memory.dll) * System.Security.Cryptography.Algorithms, Version=4.3.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Cryptography.Algorithms.dll) * System.Text.Encoding.Extensions, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Text.Encoding.Extensions.dll) * System.Threading.ThreadPool, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.ThreadPool.dll) * System.Diagnostics.TraceSource, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.TraceSource.dll) * System.ComponentModel.TypeConverter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.TypeConverter.dll) * System.Windows.Extensions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Windows.Extensions.dll) * System.ComponentModel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.dll) * System.Collections.Concurrent, Version=4.0.15.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.Concurrent.dll) * System.ObjectModel, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ObjectModel.dll) * System.Net.Requests, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Requests.dll) * System.Net.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Primitives.dll) * System.Security.Principal, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Principal.dll) * System.Net.WebHeaderCollection, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.WebHeaderCollection.dll) * ManagedCommon, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\ManagedCommon.dll) * System.Diagnostics.StackTrace, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.StackTrace.dll) * Telemetry, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Telemetry.dll) * System.Diagnostics.Tracing, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Tracing.dll) * Wox.Plugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Plugin.dll) * Wox.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Core.dll) * PowerLauncher.Telemetry, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerLauncher.Telemetry.dll) * NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c (C:\Program Files\PowerToys\modules\launcher\NLog.dll) * System.Diagnostics.FileVersionInfo, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.FileVersionInfo.dll) * System.Data.Common, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Data.Common.dll) * System.Net.Mail, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Mail.dll) * System.IO.FileSystem.Watcher, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.FileSystem.Watcher.dll) * System.Net.Sockets, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Sockets.dll) * System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Linq.Expressions.dll) * System.Diagnostics.Tools, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Tools.dll) * NLog.Extensions.Logging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c (C:\Program Files\PowerToys\modules\launcher\NLog.Extensions.Logging.dll) * Microsoft.Extensions.Logging.Abstractions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 (C:\Program Files\PowerToys\modules\launcher\Microsoft.Extensions.Logging.Abstractions.dll) * Microsoft.Extensions.Logging, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 (C:\Program Files\PowerToys\modules\launcher\Microsoft.Extensions.Logging.dll) * System.Drawing.Primitives, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Drawing.Primitives.dll) * System.Threading.Timer, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Timer.dll) * ControlzEx, Version=4.0.0.0, Culture=neutral, PublicKeyToken=69f1c32f803d307e (C:\Program Files\PowerToys\modules\launcher\ControlzEx.dll) * MahApps.Metro, Version=2.0.0.0, Culture=neutral, PublicKeyToken=51482d6f650b2b3f (C:\Program Files\PowerToys\modules\launcher\MahApps.Metro.dll) * PresentationFramework-SystemXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework-SystemXml.dll) * System.Windows.Controls.Ribbon, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Windows.Controls.Ribbon.dll) * PresentationFramework-SystemData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework-SystemData.dll) * System.Runtime.Numerics, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Numerics.dll) * Microsoft.Win32.SystemEvents, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\Microsoft.Win32.SystemEvents.dll) * System.ComponentModel.EventBasedAsync, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.EventBasedAsync.dll) * Microsoft.PowerToys.Settings.UI.Lib, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Microsoft.PowerToys.Settings.UI.Lib.dll) * PowerToysInterop, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerToysInterop.dll) * System.Runtime.Serialization.Formatters, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Serialization.Formatters.dll) * Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed (C:\Program Files\PowerToys\modules\launcher\Newtonsoft.Json.dll) * System.Linq.Parallel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Linq.Parallel.dll) * System.Runtime.Serialization.Primitives, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Serialization.Primitives.dll) * System.Reflection.Emit.ILGeneration, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Emit.ILGeneration.dll) * System.Reflection.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Primitives.dll) * System.Reflection.Emit.Lightweight, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Emit.Lightweight.dll) * Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (dynamic assembly doesn't has location) * System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Drawing.Common.dll) * System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Core.dll) * System.Runtime.Loader, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Loader.dll) * Microsoft.Plugin.Calculator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Calculator\Microsoft.Plugin.Calculator.dll) * Microsoft.Plugin.Folder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Folder\Microsoft.Plugin.Folder.dll) * Microsoft.Plugin.Indexer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Indexer\Microsoft.Plugin.Indexer.dll) * Microsoft.Plugin.Program, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Program\Microsoft.Plugin.Program.dll) * Windows.Foundation, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Foundation.winmd) * Windows.ApplicationModel, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.ApplicationModel.winmd) * System.Runtime.InteropServices.WindowsRuntime, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.InteropServices.WindowsRuntime.dll) * System.Threading.Overlapped, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Overlapped.dll) * Windows.Management, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Management.winmd) * System.Buffers, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Buffers.dll) * System.Runtime.WindowsRuntime, Version=4.0.15.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.WindowsRuntime.dll) * System.Security.Claims, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Claims.dll) * Windows.Storage, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Storage.winmd) * Windows.System, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.System.winmd) * Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\Accessibility.dll) * System.Text.RegularExpressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Text.RegularExpressions.dll) * System.Xml.XDocument, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Xml.XDocument.dll) * System.Private.Xml.Linq, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.Xml.Linq.dll) * Microsoft.Plugin.Shell, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Shell\Microsoft.Plugin.Shell.dll) * WindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cad (C:\Program Files\PowerToys\modules\launcher\WindowsInput.dll) * Microsoft.Plugin.WindowWalker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.WindowWalker\Microsoft.Plugin.WindowWalker.dll) * System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.dll) * UIAutomationTypes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\UIAutomationTypes.dll) * PresentationFramework.Aero2, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework.Aero2.dll) * UIAutomationProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\UIAutomationProvider.dll) * Microsoft.Xaml.Behaviors, Version=1.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\PowerToys\modules\launcher\Microsoft.Xaml.Behaviors.dll) * System.Threading.Tasks.Parallel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Tasks.Parallel.dll) * System.IO.FileSystem.DriveInfo, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.FileSystem.DriveInfo.dll) * System.Net.ServicePoint, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.ServicePoint.dll) * System.Net.Security, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Security.dll) * System.Text.Json, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Text.Json.dll) * System.Text.Encodings.Web, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Text.Encodings.Web.dll) * System.Numerics.Vectors, Version=4.1.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Numerics.Vectors.dll) * System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.CompilerServices.Unsafe.dll) * Mages.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Mages.Core.dll) * Microsoft.Search.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f748985a6e9a7cb (C:\Program Files\PowerToys\modules\launcher\Microsoft.Search.Interop.dll) * System.Data.OleDb, Version=4.0.1.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\PowerToys\modules\launcher\System.Data.OleDb.dll) * System.Transactions.Local, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Transactions.Local.dll) * System.Diagnostics.PerformanceCounter, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Diagnostics.PerformanceCounter.dll) * System.Reflection.Metadata, Version=1.4.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Metadata.dll) * System.Collections.Immutable, Version=1.2.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.Immutable.dll)"><pre class="notranslate"><code class="notranslate"> ## Environment * Command Line: "C:\Program Files\PowerToys\modules\launcher\PowerLauncher.dll" 18940 * Timestamp: 08/05/2020 10:34:34 * Wox version: 1.0.0 * OS Version: Microsoft Windows NT 10.0.19041.0 * IntPtr Length: 8 * x64: True * CLR Version: 3.1.6 * Installed .NET Framework: * v2.0.50727 2.0.50727.4927 SP2 * v3.0 3.0.30729.4926 SP2 * v3.5 3.5.30729.4926 SP1 * v4 Client 4.8.04084 * v4 Full 4.8.04084 * v4.0 Client 4.0.0.0 ## Assemblies - PowerLauncher * System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.CoreLib.dll) * PowerLauncher, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerLauncher.dll) * PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework.dll) * WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\WindowsBase.dll) * System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.dll) * System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Xaml.dll) * System.Runtime.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Extensions.dll) * System.Threading, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.dll) * System.Threading.Tasks, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Tasks.dll) * System.IO.Pipes, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.Pipes.dll) * System.Security.AccessControl, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.AccessControl.dll) * System.Security.Principal.Windows, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Principal.Windows.dll) * Wox.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Infrastructure.dll) * Pinyin4Net, Version=2016.4.24.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Pinyin4Net.dll) * mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\mscorlib.dll) * System.IO.Packaging, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.IO.Packaging.dll) * netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\netstandard.dll) * System.Private.Uri, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.Uri.dll) * PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationCore.dll) * DirectWriteForwarder, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\DirectWriteForwarder.dll) * System.Runtime.InteropServices, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.InteropServices.dll) * System.Runtime.CompilerServices.VisualC, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.CompilerServices.VisualC.dll) * System.Diagnostics.Debug, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Debug.dll) * System.Resources.ResourceManager, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Resources.ResourceManager.dll) * Microsoft.Win32.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\Microsoft.Win32.Primitives.dll) * System.Collections.NonGeneric, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.NonGeneric.dll) * System.Linq, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Linq.dll) * System.Collections, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.dll) * Microsoft.Win32.Registry, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\Microsoft.Win32.Registry.dll) * System.Collections.Specialized, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.Specialized.dll) * System.ComponentModel.Primitives, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.Primitives.dll) * System.Diagnostics.Process, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Process.dll) * System.Threading.Thread, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Thread.dll) * System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Configuration.ConfigurationManager.dll) * System.Xml.ReaderWriter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Xml.ReaderWriter.dll) * System.Private.Xml, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.Xml.dll) * System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.FileSystem.dll) * System.Net.WebClient, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.WebClient.dll) * System.Memory, Version=4.2.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Memory.dll) * System.Security.Cryptography.Algorithms, Version=4.3.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Cryptography.Algorithms.dll) * System.Text.Encoding.Extensions, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Text.Encoding.Extensions.dll) * System.Threading.ThreadPool, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.ThreadPool.dll) * System.Diagnostics.TraceSource, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.TraceSource.dll) * System.ComponentModel.TypeConverter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.TypeConverter.dll) * System.Windows.Extensions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Windows.Extensions.dll) * System.ComponentModel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.dll) * System.Collections.Concurrent, Version=4.0.15.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.Concurrent.dll) * System.ObjectModel, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ObjectModel.dll) * System.Net.Requests, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Requests.dll) * System.Net.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Primitives.dll) * System.Security.Principal, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Principal.dll) * System.Net.WebHeaderCollection, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.WebHeaderCollection.dll) * ManagedCommon, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\ManagedCommon.dll) * System.Diagnostics.StackTrace, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.StackTrace.dll) * Telemetry, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Telemetry.dll) * System.Diagnostics.Tracing, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Tracing.dll) * Wox.Plugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Plugin.dll) * Wox.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Core.dll) * PowerLauncher.Telemetry, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerLauncher.Telemetry.dll) * NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c (C:\Program Files\PowerToys\modules\launcher\NLog.dll) * System.Diagnostics.FileVersionInfo, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.FileVersionInfo.dll) * System.Data.Common, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Data.Common.dll) * System.Net.Mail, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Mail.dll) * System.IO.FileSystem.Watcher, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.FileSystem.Watcher.dll) * System.Net.Sockets, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Sockets.dll) * System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Linq.Expressions.dll) * System.Diagnostics.Tools, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Tools.dll) * NLog.Extensions.Logging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c (C:\Program Files\PowerToys\modules\launcher\NLog.Extensions.Logging.dll) * Microsoft.Extensions.Logging.Abstractions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 (C:\Program Files\PowerToys\modules\launcher\Microsoft.Extensions.Logging.Abstractions.dll) * Microsoft.Extensions.Logging, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 (C:\Program Files\PowerToys\modules\launcher\Microsoft.Extensions.Logging.dll) * System.Drawing.Primitives, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Drawing.Primitives.dll) * System.Threading.Timer, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Timer.dll) * ControlzEx, Version=4.0.0.0, Culture=neutral, PublicKeyToken=69f1c32f803d307e (C:\Program Files\PowerToys\modules\launcher\ControlzEx.dll) * MahApps.Metro, Version=2.0.0.0, Culture=neutral, PublicKeyToken=51482d6f650b2b3f (C:\Program Files\PowerToys\modules\launcher\MahApps.Metro.dll) * PresentationFramework-SystemXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework-SystemXml.dll) * System.Windows.Controls.Ribbon, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Windows.Controls.Ribbon.dll) * PresentationFramework-SystemData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework-SystemData.dll) * System.Runtime.Numerics, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Numerics.dll) * Microsoft.Win32.SystemEvents, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\Microsoft.Win32.SystemEvents.dll) * System.ComponentModel.EventBasedAsync, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.EventBasedAsync.dll) * Microsoft.PowerToys.Settings.UI.Lib, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Microsoft.PowerToys.Settings.UI.Lib.dll) * PowerToysInterop, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerToysInterop.dll) * System.Runtime.Serialization.Formatters, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Serialization.Formatters.dll) * Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed (C:\Program Files\PowerToys\modules\launcher\Newtonsoft.Json.dll) * System.Linq.Parallel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Linq.Parallel.dll) * System.Runtime.Serialization.Primitives, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Serialization.Primitives.dll) * System.Reflection.Emit.ILGeneration, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Emit.ILGeneration.dll) * System.Reflection.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Primitives.dll) * System.Reflection.Emit.Lightweight, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Emit.Lightweight.dll) * Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (dynamic assembly doesn't has location) * System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Drawing.Common.dll) * System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Core.dll) * System.Runtime.Loader, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Loader.dll) * Microsoft.Plugin.Calculator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Calculator\Microsoft.Plugin.Calculator.dll) * Microsoft.Plugin.Folder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Folder\Microsoft.Plugin.Folder.dll) * Microsoft.Plugin.Indexer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Indexer\Microsoft.Plugin.Indexer.dll) * Microsoft.Plugin.Program, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Program\Microsoft.Plugin.Program.dll) * Windows.Foundation, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Foundation.winmd) * Windows.ApplicationModel, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.ApplicationModel.winmd) * System.Runtime.InteropServices.WindowsRuntime, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.InteropServices.WindowsRuntime.dll) * System.Threading.Overlapped, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Overlapped.dll) * Windows.Management, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Management.winmd) * System.Buffers, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Buffers.dll) * System.Runtime.WindowsRuntime, Version=4.0.15.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.WindowsRuntime.dll) * System.Security.Claims, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Claims.dll) * Windows.Storage, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Storage.winmd) * Windows.System, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.System.winmd) * Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\Accessibility.dll) * System.Text.RegularExpressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Text.RegularExpressions.dll) * System.Xml.XDocument, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Xml.XDocument.dll) * System.Private.Xml.Linq, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.Xml.Linq.dll) * Microsoft.Plugin.Shell, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Shell\Microsoft.Plugin.Shell.dll) * WindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cad (C:\Program Files\PowerToys\modules\launcher\WindowsInput.dll) * Microsoft.Plugin.WindowWalker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.WindowWalker\Microsoft.Plugin.WindowWalker.dll) * System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.dll) * UIAutomationTypes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\UIAutomationTypes.dll) * PresentationFramework.Aero2, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework.Aero2.dll) * UIAutomationProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\UIAutomationProvider.dll) * Microsoft.Xaml.Behaviors, Version=1.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\PowerToys\modules\launcher\Microsoft.Xaml.Behaviors.dll) * System.Threading.Tasks.Parallel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Tasks.Parallel.dll) * System.IO.FileSystem.DriveInfo, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.FileSystem.DriveInfo.dll) * System.Net.ServicePoint, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.ServicePoint.dll) * System.Net.Security, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Security.dll) * System.Text.Json, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Text.Json.dll) * System.Text.Encodings.Web, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Text.Encodings.Web.dll) * System.Numerics.Vectors, Version=4.1.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Numerics.Vectors.dll) * System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.CompilerServices.Unsafe.dll) * Mages.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Mages.Core.dll) * Microsoft.Search.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f748985a6e9a7cb (C:\Program Files\PowerToys\modules\launcher\Microsoft.Search.Interop.dll) * System.Data.OleDb, Version=4.0.1.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\PowerToys\modules\launcher\System.Data.OleDb.dll) * System.Transactions.Local, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Transactions.Local.dll) * System.Diagnostics.PerformanceCounter, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Diagnostics.PerformanceCounter.dll) * System.Reflection.Metadata, Version=1.4.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Metadata.dll) * System.Collections.Immutable, Version=1.2.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.Immutable.dll) </code></pre></div>
<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
<ul dir="auto"> <li>open a folder that contains code of an extension</li> <li>debug the extension</li> <li>close the extension window (debugger connection correctly gets closed)</li> <li>in the window switch to a different folder<br> Warning appears<br> 'There is a task running. Do you want to terminate it'</li> </ul> <p dir="auto">It is not clear to me what task that is. At the very least it could show the name of the task.</p>
<p dir="auto">It would be great if VS Code's "command" property of a keyboard binding could be configued as an array of actions to perform.</p> <p dir="auto">For example, some requests (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="137610386" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3588" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3588/hovercard" href="https://github.com/microsoft/vscode/issues/3588">#3588</a> for one) would be moot if <code class="notranslate">cmd+s</code> could be configured to execute <code class="notranslate">HookyQR.beautify</code> then <code class="notranslate">workbench.action.files.save</code>.</p>
0
<p dir="auto">As of today specifying ES6 as a module format to transpile to with ES5 as a target will result in the "error TS1204: Cannot compile modules into 'es2015' when targeting 'ES5' or lower." error.</p> <p dir="auto">But having ES6 modules in the ES5 output would be beneficial for ES6-based tree-shakers like <a href="https://github.com/rollup/rollup">Rollup</a>.</p> <p dir="auto">Currently one can ES5 output with ES6 modules by using <code class="notranslate">ts.transpileModule(...)</code> but the output is broken in some cases. For example transpiling:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ts.version // 1.7.4 ts.transpileModule('export class A {}', { compilerOptions: { target: ts.ScriptTarget.ES5, module: ts.ModuleKind.ES6 } })"><pre class="notranslate"><span class="pl-s1">ts</span><span class="pl-kos">.</span><span class="pl-c1">version</span> <span class="pl-c">// 1.7.4</span> <span class="pl-s1">ts</span><span class="pl-kos">.</span><span class="pl-en">transpileModule</span><span class="pl-kos">(</span><span class="pl-s">'export class A {}'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">compilerOptions</span>: <span class="pl-kos">{</span> <span class="pl-c1">target</span>: <span class="pl-s1">ts</span><span class="pl-kos">.</span><span class="pl-c1">ScriptTarget</span><span class="pl-kos">.</span><span class="pl-c1">ES5</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-s1">ts</span><span class="pl-kos">.</span><span class="pl-c1">ModuleKind</span><span class="pl-kos">.</span><span class="pl-c1">ES6</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">yields:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var A = (function () { function A() { } return A; })(); A = A;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">A</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-v">A</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-v">A</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">A</span> <span class="pl-c1">=</span> <span class="pl-v">A</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Notice: <code class="notranslate">A = A;</code> which should probably be <code class="notranslate">export { A };</code></p> <p dir="auto">In-depth discussion and more examples in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118805237" data-permission-text="Title is private" data-url="https://github.com/rollup/rollup-plugin-typescript/issues/9" data-hovercard-type="issue" data-hovercard-url="/rollup/rollup-plugin-typescript/issues/9/hovercard" href="https://github.com/rollup/rollup-plugin-typescript/issues/9">rollup/rollup-plugin-typescript#9</a></p> <p dir="auto">Given the above I've got <strong>a question</strong>: do you plan to support ES6 modules for ES5 output? If not are you planning to provide a TS-specific tree-shaking bundler?</p>
<p dir="auto">Possible duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134795461" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/7148" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/7148/hovercard" href="https://github.com/microsoft/TypeScript/issues/7148">#7148</a>, but it seems like it should be working according to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="129919547" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6742" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/6742/hovercard" href="https://github.com/microsoft/TypeScript/pull/6742">#6742</a>.</p> <p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.7</p> <p dir="auto"><strong>Code</strong></p> <p dir="auto">File: <code class="notranslate">1.d.ts</code></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare module 'm1' { function x (): x.Test; namespace x { export interface Test { prop1: boolean; } } export = x; }"><pre class="notranslate"><span class="pl-k">declare</span> module <span class="pl-s">'m1'</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-s1">x</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-smi">Test</span><span class="pl-kos">;</span> <span class="pl-k">namespace</span> <span class="pl-s1">x</span> <span class="pl-kos">{</span> <span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">Test</span> <span class="pl-kos">{</span> <span class="pl-c1">prop1</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">File: <code class="notranslate">2.ts</code></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// &lt;reference path=&quot;./1.d.ts&quot; /&gt; import m1 = require('m1'); declare module 'm1' { interface Test { prop2: boolean; } } m1().prop2 // `prop2` does not exist on type `Test`."><pre class="notranslate"><span class="pl-c">/// &lt;reference path="./1.d.ts" /&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">m1</span> <span class="pl-c1">=</span> require<span class="pl-kos">(</span><span class="pl-s">'m1'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">declare</span> module <span class="pl-s">'m1'</span> <span class="pl-kos">{</span> <span class="pl-k">interface</span> <span class="pl-smi">Test</span> <span class="pl-kos">{</span> <span class="pl-c1">prop2</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-en">m1</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">prop2</span> <span class="pl-c">// `prop2` does not exist on type `Test`.</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">Interfaces should merge, giving me access to <code class="notranslate">prop2</code>.</p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">No <code class="notranslate">prop2</code> on interface <code class="notranslate">Test</code>.</p>
0
<p dir="auto">If a responsive navbar (i.e., with a collapse data-toggle, etc, as in the examples) lacks a brand element, then the menu items are not positioned correctly on a small screen, instead appearing too high, with pull-right menu items partially overlaying the nav-collapse button.</p> <p dir="auto">The presence of a navbar-brand element, even an empty one, seems to avoid the issue.</p>
<p dir="auto">Hi,<br> I test version 3.0 RC1. I have a problem when I hive my website with my mobile. In Fact when I am on my home page and show my menu I don't hidden this menu. Why ? Because de first item on the nav is "active" and the button (show/hid) is in background.</p> <p dir="auto">I hope that I am clear.</p> <p dir="auto">best regards,</p> <p dir="auto">Lefandordinateur</p>
1
<p dir="auto">I found this <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="82877775" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/1655" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/1655/hovercard" href="https://github.com/babel/babel/issues/1655">#1655</a> but it was closed without a real answer and it links to a <a href="https://gist.github.com/jeffmo/054df782c05639da2adb">spec doc</a> that people ask about it in the comments but I do not see anyone answering why it's omitted in the spec.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const first = Symbol(); const second = Symbol(); class Foo { // This works [first]() {} // This does not [second] = {}; }"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">first</span> <span class="pl-c1">=</span> <span class="pl-v">Symbol</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">second</span> <span class="pl-c1">=</span> <span class="pl-v">Symbol</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-c">// This works</span> <span class="pl-kos">[</span><span class="pl-s1">first</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-c">// This does not</span> <span class="pl-kos">[</span><span class="pl-s1">second</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="repl: Unexpected token (6:11) 4 | class Foo { 5 | [first]() {} &gt; 6 | [second] = {}; | ^ 7 | }"><pre class="notranslate"><code class="notranslate">repl: Unexpected token (6:11) 4 | class Foo { 5 | [first]() {} &gt; 6 | [second] = {}; | ^ 7 | } </code></pre></div> <p dir="auto"><a href="https://babeljs.io/repl/#?experimental=true&amp;evaluate=true&amp;loose=false&amp;spec=false&amp;playground=true&amp;code=const%20first%20%3D%20Symbol%28%29%3B%0Aconst%20second%20%3D%20Symbol%28%29%3B%0A%0Aclass%20Foo%20%7B%0A%20%20%5Bfirst%5D%28%29%20%7B%7D%0A%20%20%5Bsecond%5D%20%3D%20%7B%7D%3B%0A%7D&amp;stage=0" rel="nofollow">REPL</a></p> <p dir="auto">Cc/ <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jeffmo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jeffmo">@jeffmo</a></p>
<p dir="auto">The class property names can only be identifiers while the name of the methods can also be declared with ["name-of-method"] syntax. Should the two specifications be consistent?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class A { [&quot;my-property&quot;] = 5; // Not valid syntax [&quot;my-method&quot;]() { } // Valid syntax }"><pre class="notranslate"><code class="notranslate">class A { ["my-property"] = 5; // Not valid syntax ["my-method"]() { } // Valid syntax } </code></pre></div>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.2.0</li> <li>Operating System / Platform =&gt; Linux x86 (cross compiling to ARMv7)</li> <li>Compiler =&gt; GNU 8.2.1</li> </ul> <h5 dir="auto">Detailed description</h5> <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/opencv/opencv/blob/8808aaccffaec43d5d276af493ff408d81d4593c/modules/videoio/cmake/detect_ffmpeg.cmake#L27">opencv/modules/videoio/cmake/detect_ffmpeg.cmake</a> </p> <p class="mb-0 color-fg-muted"> Line 27 in <a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/8808aaccffaec43d5d276af493ff408d81d4593c">8808aac</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="L27" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="27"></td> <td id="LC27" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span>(<span class="pl-k">NOT</span> HAVE_FFMPEG <span class="pl-k">AND</span> PKG_CONFIG_FOUND) </td> </tr> </tbody></table> </div> </div> <br> <code class="notranslate">PKG_CONFIG_FOUND</code> here is always false, since <code class="notranslate">include(FindPkgConfig)</code> was never called after the fix in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="437648383" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/14426" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/14426/hovercard" href="https://github.com/opencv/opencv/pull/14426">#14426</a>.<p></p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Run cmake with <code class="notranslate">-DWITH_FFMPEG=ON</code> after setting the environment variable <code class="notranslate">PKG_CONFIG_PATH</code> to the target dir.<br> Result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-- Video I/O: -- DC1394: NO -- FFMPEG: NO -- avcodec: NO -- avformat: NO -- avutil: NO -- swscale: NO -- avresample: NO"><pre class="notranslate"><code class="notranslate">-- Video I/O: -- DC1394: NO -- FFMPEG: NO -- avcodec: NO -- avformat: NO -- avutil: NO -- swscale: NO -- avresample: NO </code></pre></div> <p dir="auto">After adding <code class="notranslate">include(FindPkgConfig)</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-- Video I/O: -- DC1394: NO -- FFMPEG: YES -- avcodec: YES (58.54.100) -- avformat: YES (58.29.100) -- avutil: YES (56.31.100) -- swscale: YES (5.5.100) -- avresample: NO"><pre class="notranslate"><code class="notranslate">-- Video I/O: -- DC1394: NO -- FFMPEG: YES -- avcodec: YES (58.54.100) -- avformat: YES (58.29.100) -- avutil: YES (56.31.100) -- swscale: YES (5.5.100) -- avresample: NO </code></pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.0</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>Compiler =&gt; Visual Studio 2017 Express</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Various problems with the coding of SBM_Sample.cpp.</p> <p dir="auto">Quoted from <a href="http://answers.opencv.org/question/183414/sbm_samplecpp-is-this-disparity-map-correct/" rel="nofollow">here</a>:</p> <ol dir="auto"> <li>The default images should be changed from the rubberwhale images (optical flow test images) to rectified left and right images (e.g. aloeL.jpg and aloeR.jpg).</li> <li>An appropriate minDisparity and numDisparities should be updated to match the new default images. (e.g. numDisparities = 16x10 instead of 16x5)</li> <li>Program ignores its image parameters - if this is intentional, then remove mention of parameters. If it is not, then add and test support for them.</li> <li>Any references to the example should be found and updated, and if there's a test that runs this program, the test should be updated as well.</li> </ol> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Look at the code of SBM_Sample.cpp</p>
0
<p dir="auto">Currently using Celery 4.1.0</p> <h2 dir="auto">Steps to reproduce</h2> <p dir="auto">Start a new project using RabbitMQ and register the following task:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from django.core.cache import cache @shared_task(bind=True) def test_1(self): if not cache.add(self.request.id, 1): raise Exception('Duplicated task {}'.format(self.request.id))"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">django</span>.<span class="pl-s1">core</span>.<span class="pl-s1">cache</span> <span class="pl-k">import</span> <span class="pl-s1">cache</span> <span class="pl-en">@<span class="pl-en">shared_task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span> <span class="pl-k">def</span> <span class="pl-en">test_1</span>(<span class="pl-s1">self</span>): <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">cache</span>.<span class="pl-en">add</span>(<span class="pl-s1">self</span>.<span class="pl-s1">request</span>.<span class="pl-s1">id</span>, <span class="pl-c1">1</span>): <span class="pl-k">raise</span> <span class="pl-v">Exception</span>(<span class="pl-s">'Duplicated task {}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">self</span>.<span class="pl-s1">request</span>.<span class="pl-s1">id</span>))</pre></div> <p dir="auto">Now start 2 workers. I used gevent with a concurrency of 25 for this test:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery worker -A my_proj -Q my_queue -P gevent -c 25"><pre class="notranslate"><code class="notranslate">celery worker -A my_proj -Q my_queue -P gevent -c 25 </code></pre></div> <p dir="auto">Open a python shell and fire a a bunch of tasks:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from myproj.tasks import test_1 for i in range(10000): test_1.apply_async()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">myproj</span>.<span class="pl-s1">tasks</span> <span class="pl-k">import</span> <span class="pl-s1">test_1</span> <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">10000</span>): <span class="pl-s1">test_1</span>.<span class="pl-en">apply_async</span>()</pre></div> <p dir="auto">Now quickly do a warm shutdown (Ctrl+c) in one of the workers while it's still processing the tasks, you should see the errors popping in the second worker:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR Task my_proj.tasks.test_1[e28e6760-1371-49c9-af87-d196c59375e9] raised unexpected: Exception('Duplicated task e28e6760-1371-49c9-af87-d196c59375e9',) Traceback (most recent call last): File &quot;/code/virtualenv/CURRENT/lib/python3.5/site-packages/celery/app/trace.py&quot;, line 374, in trace_task R = retval = fun(*args, **kwargs) File &quot;/code/virtualenv/CURRENT/lib/python3.5/site-packages/celery/app/trace.py&quot;, line 629, in __protected_call__ return self.run(*args, **kwargs) File &quot;/code/scp/python/my_proj/tasks.py&quot;, line 33, in test_1 raise Exception('Duplicated task {}'.format(self.request.id)) Exception: Duplicated task e28e6760-1371-49c9-af87-d196c59375e9"><pre class="notranslate"><code class="notranslate">ERROR Task my_proj.tasks.test_1[e28e6760-1371-49c9-af87-d196c59375e9] raised unexpected: Exception('Duplicated task e28e6760-1371-49c9-af87-d196c59375e9',) Traceback (most recent call last): File "/code/virtualenv/CURRENT/lib/python3.5/site-packages/celery/app/trace.py", line 374, in trace_task R = retval = fun(*args, **kwargs) File "/code/virtualenv/CURRENT/lib/python3.5/site-packages/celery/app/trace.py", line 629, in __protected_call__ return self.run(*args, **kwargs) File "/code/scp/python/my_proj/tasks.py", line 33, in test_1 raise Exception('Duplicated task {}'.format(self.request.id)) Exception: Duplicated task e28e6760-1371-49c9-af87-d196c59375e9 </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Since I am not using late acknowledgment and I am not killing the workers I wasn't expecting the tasks to execute again.</p> <h2 dir="auto">Actual behavior</h2> <p dir="auto">The tasking are being executed twice, this is causing some problems in our servers because we restart our works every 15 minutes or so in order to avoid memory leaks.</p>
<p dir="auto">def reset_connection(self):<br> """Re-establish the broker connection and set up consumers,<br> heartbeat and the event dispatcher."""<br> ###################### Added code ###########################################<br> listening_queues = self.task_consumer.queues and self.task_consumer.queues or None</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ....... self.task_consumer = self.app.amqp.TaskConsumer(self.connection, queues=listening_queues, on_decode_error=self.on_decode_error)"><pre class="notranslate"><code class="notranslate"> ....... self.task_consumer = self.app.amqp.TaskConsumer(self.connection, queues=listening_queues, on_decode_error=self.on_decode_error) </code></pre></div> <p dir="auto">I read the logic of reset_connection, find out the consumer only recover the queue sent to it when initializing.<br> But the queue added with celery.control.broadcast("add_task_queue") will be lost forever.</p>
0
<p dir="auto">When storing a DataFrame using HDFStore the datetime information is altered. My guess is that there is some problem with daylight saving and time zones when the DataFrame is loaded from the h5 file. An example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: from pandas import * In [2]: df = DataFrame([0,1], [datetime(2011, 3, 27, 2, 2, 2),datetime(2011, 3, 27, 3, 2, 2)]) In [3]: s = HDFStore(&quot;test.h5&quot;) In [4]: s[&quot;test&quot;] = df In [5]: df Out[5]: 0 2011-03-27 02:02:02 0 2011-03-27 03:02:02 1 In [6]: s[&quot;test&quot;] Out[6]: 0 2011-03-27 03:02:02 0 2011-03-27 03:02:02 1"><pre class="notranslate"><code class="notranslate">In [1]: from pandas import * In [2]: df = DataFrame([0,1], [datetime(2011, 3, 27, 2, 2, 2),datetime(2011, 3, 27, 3, 2, 2)]) In [3]: s = HDFStore("test.h5") In [4]: s["test"] = df In [5]: df Out[5]: 0 2011-03-27 02:02:02 0 2011-03-27 03:02:02 1 In [6]: s["test"] Out[6]: 0 2011-03-27 03:02:02 0 2011-03-27 03:02:02 1 </code></pre></div>
<p dir="auto">E.g. for reindex on panel</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="elp on method reindex in module pandas.core.generic: reindex(self, *args, **kwargs) method of pandas.core.panel.Panel instance Conform DataFrame to new index with optional filling logic, placing NA/NaN in locations having no value in the previous index. A new object is produced unless the new index is equivalent to the current one and copy=False Parameters ---------- axes : array-like, optional (can be specified in order, or as keywords) New labels / index to conform to. Preferably an Index object to avoid duplicating data method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None Method to use for filling holes in reindexed DataFrame pad / ffill: propagate last valid observation forward to next valid backfill / bfill: use NEXT valid observation to fill gap copy : boolean, default True Return a new object, even if the passed indexes are the same level : int or name Broadcast across a level, matching Index values on the passed MultiIndex level fill_value : scalar, default np.NaN Value to use for missing values. Defaults to NaN, but can be any &quot;compatible&quot; value limit : int, default None Maximum size gap to forward or backward fill takeable : boolean, default False treat the passed as positional values Examples --------"><pre class="notranslate"><code class="notranslate">elp on method reindex in module pandas.core.generic: reindex(self, *args, **kwargs) method of pandas.core.panel.Panel instance Conform DataFrame to new index with optional filling logic, placing NA/NaN in locations having no value in the previous index. A new object is produced unless the new index is equivalent to the current one and copy=False Parameters ---------- axes : array-like, optional (can be specified in order, or as keywords) New labels / index to conform to. Preferably an Index object to avoid duplicating data method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None Method to use for filling holes in reindexed DataFrame pad / ffill: propagate last valid observation forward to next valid backfill / bfill: use NEXT valid observation to fill gap copy : boolean, default True Return a new object, even if the passed indexes are the same level : int or name Broadcast across a level, matching Index values on the passed MultiIndex level fill_value : scalar, default np.NaN Value to use for missing values. Defaults to NaN, but can be any "compatible" value limit : int, default None Maximum size gap to forward or backward fill takeable : boolean, default False treat the passed as positional values Examples -------- </code></pre></div> <p dir="auto">Functions that need parameters list/explanation:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> swapaxes</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> pop [what does 'items' mean?]</li> </ul> <p dir="auto">Functions that only need list of axes:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> filter [need to check if it should be defined for Series at all]</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> fillna [Series, Frame]</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> reindex_axis [needs class name + axes]</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> rename [might need a bit more logic to do docstring + note that args interpreted like axes??]</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> transpose</li> </ul> <p dir="auto">Functions needing a little work:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> reindex <ul dir="auto"> <li>needs to have panel check that both major and major_axis aren't passed, same with minor and minor_axis (like <code class="notranslate">SparsePanel</code> does)</li> <li>would be better if there were individual functions for Series Frame and Panel that explicitly enumerate axes in type signature.</li> </ul> </li> </ul> <p dir="auto">Functions that may not need to be changed:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> align</li> </ul> <p dir="auto">Functions that could use slight wording tweaks:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> truncate</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> where</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> mask</li> </ul>
0
<p dir="auto"><a href="http://plnkr.co/edit/5731Z9N6tQ391gQtfZrA?p=preview" rel="nofollow">http://plnkr.co/edit/5731Z9N6tQ391gQtfZrA?p=preview</a></p> <p dir="auto">I've been over the documentation 10 times, I've read through the source code, tutorials, the works... and I still can't wrap my head around what I'm doing wrong.</p> <p dir="auto">all I want to do is:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;app myTitle='my awesome title'&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">app</span> <span class="pl-c1">myTitle</span>='<span class="pl-s">my awesome title</span>'<span class="pl-kos">&gt;</span> </pre></div> <p dir="auto">and access myTitle from inside the constructor.</p> <p dir="auto">Is that possible in NG2?</p>
1
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8 (From the site)</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// A self-contained demonstration of the problem follows... "><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> when I open a vs 2015 command prompt and type tsc.exe -v it should say the latest version.<br> <strong>Actual behavior:</strong><br> It shows an older version.</p>
<p dir="auto">Hello,</p> <p dir="auto">I have upgraded typescript to the latest 1.6 release by downloading the VS 2015 installation here: <a href="http://www.typescriptlang.org/#Download" rel="nofollow">http://www.typescriptlang.org/#Download</a></p> <p dir="auto">However if I open up command prompt and do <code class="notranslate">tsc --version</code> I get 1.5.3</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3176632/10107023/1258cc50-63b0-11e5-8cbf-a9f60b2d33ac.png"><img src="https://cloud.githubusercontent.com/assets/3176632/10107023/1258cc50-63b0-11e5-8cbf-a9f60b2d33ac.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The reason I am suspecting this may be a problem is because when I have a <code class="notranslate">tsconfig.json</code> in my project:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;module&quot;: &quot;AMD&quot;, &quot;target&quot;: &quot;ES5&quot;, &quot;noImplicitAny&quot;: true, &quot;removeComments&quot;: true, &quot;preserveConstEnums&quot;: true, &quot;sourceMap&quot;: true, &quot;listFiles&quot;: true, &quot;noEmitOnError&quot;: true, &quot;outDir&quot;: &quot;../wwwroot/dist&quot;, &quot;outFile&quot;: &quot;tscompiled.js&quot; }, &quot;files&quot;: [ &quot;app.ts&quot; ] } "><pre class="notranslate"><code class="notranslate">{ "compilerOptions": { "module": "AMD", "target": "ES5", "noImplicitAny": true, "removeComments": true, "preserveConstEnums": true, "sourceMap": true, "listFiles": true, "noEmitOnError": true, "outDir": "../wwwroot/dist", "outFile": "tscompiled.js" }, "files": [ "app.ts" ] } </code></pre></div> <p dir="auto">and this is the file</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/// &lt;reference path=&quot;../typings/tsd.d.ts&quot; /&gt; /// &lt;reference path=&quot;../typings/es6.d.ts&quot; /&gt; /// &lt;reference path=&quot;../typings/core-js.d.ts&quot; /&gt; import {Router} from &quot;aurelia-router&quot;; // my comment! module Dazinator { export class App { constructor() { this.message = &quot;Welcome To Daz's World ya!&quot; } message: string; } }"><pre class="notranslate"><code class="notranslate">/// &lt;reference path="../typings/tsd.d.ts" /&gt; /// &lt;reference path="../typings/es6.d.ts" /&gt; /// &lt;reference path="../typings/core-js.d.ts" /&gt; import {Router} from "aurelia-router"; // my comment! module Dazinator { export class App { constructor() { this.message = "Welcome To Daz's World ya!" } message: string; } } </code></pre></div> <p dir="auto">When I build the VS solution, I get an empty 'tscompiled.js' file produce - with a source mapping directive:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="//# sourceMappingURL=tscompiled.js.map "><pre class="notranslate"><code class="notranslate">//# sourceMappingURL=tscompiled.js.map </code></pre></div> <p dir="auto">If I do a compile form the command line it says it doesn't recognise the <code class="notranslate">outFile</code> argument</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="![image](https://cloud.githubusercontent.com/assets/3176632/10107159/19dbf5be-63b1-11e5-8ecc-c72709ecb3c9.png) "><pre class="notranslate"><code class="notranslate">![image](https://cloud.githubusercontent.com/assets/3176632/10107159/19dbf5be-63b1-11e5-8ecc-c72709ecb3c9.png) </code></pre></div> <p dir="auto">Looking at the docs - it says <code class="notranslate">outFile</code> is to be used as <code class="notranslate">out</code> is deprecated: <a href="https://github.com/Microsoft/TypeScript/wiki/Compiler-Options">https://github.com/Microsoft/TypeScript/wiki/Compiler-Options</a></p> <p dir="auto">Any help would be appreciated!</p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of celery -A proj report in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of pip freeze in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the master branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one message broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue with retries, ETA/Countdown &amp; rate limits disabled.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="97457005" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/2727" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/2727/hovercard" href="https://github.com/celery/celery/issues/2727">#2727</a> - symptoms are similar, however that issue doesn't originally mention the transport and at least one user there mentioned transport:redis, for which I can't reproduce the problem.</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.2.2 (windowlicker) kombu:4.3.0 py:2.7.16 billiard:3.5.0.5 qpid:N/A platform -&gt; system:Linux arch:64bit imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:qpid results:rpc:/// broker_url: u'qpid://localhost:5672//' result_backend: u'rpc:///'"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.2.2 (windowlicker) kombu:4.3.0 py:2.7.16 billiard:3.5.0.5 qpid:N/A platform -&gt; system:Linux arch:64bit imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:qpid results:rpc:/// broker_url: u'qpid://localhost:5672//' result_backend: u'rpc:///' </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: Unknown</li> <li><strong>Minimal Broker Version</strong>: Unknown</li> <li><strong>Minimal Result Backend Version</strong>: Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: Unknown</li> <li><strong>Minimal Broker Client Version</strong>: Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: Unknown</li> <li>Must use qpid transport (not reproducible on rabbitmq or redis transports)</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==2.4.2 billiard==3.5.0.5 celery==4.2.2 kombu==4.3.0 pytz==2018.9 qpid-python==1.36.0.post1 qpid-tools==1.36.0.post1 redis==3.2.1 vine==1.3.0"><pre class="notranslate"><code class="notranslate">amqp==2.4.2 billiard==3.5.0.5 celery==4.2.2 kombu==4.3.0 pytz==2018.9 qpid-python==1.36.0.post1 qpid-tools==1.36.0.post1 redis==3.2.1 vine==1.3.0 </code></pre></div> <p dir="auto"></p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <p dir="auto">The following gist has testcases for revoking a task in progress:</p> <p dir="auto"><a href="https://gist.github.com/rohanpm/78480b28b6c3e26fd9e33e999c899ee8">https://gist.github.com/rohanpm/78480b28b6c3e26fd9e33e999c899ee8</a></p> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">When <code class="notranslate">task2.revoke(terminate=True)</code> is called, task2 is terminated. The worker continues to execute subsequent tasks.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">When <code class="notranslate">task2.revoke(terminate=True)</code> is called, one of the following happens:</p> <ul dir="auto"> <li>If there's no more tasks in the queue:<br> -- task2 is terminated, but the worker then hangs and doesn't process any further tasks.</li> <li>If there are tasks in the queue:<br> -- task2 is not terminated, the worker continues executing task2 and subsequent tasks as if no revoke call was made</li> </ul>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical enhancement to an existing feature.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed enhancements.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the if the same enhancement was already implemented in the<br> master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <p dir="auto">None I could find on the issue tracker.</p> <h1 dir="auto">Brief Summary</h1> <p dir="auto">The <a href="https://docs.celeryproject.org/en/stable/userguide/configuration.html#new-lowercase-settings" rel="nofollow">Celery 4.0 lowercase name change</a> brings zero benefit for developer but causes downsides in the form of name and style collisions in existing configuration files/classes.</p> <h1 dir="auto">Design</h1> <h2 dir="auto">Architectural Considerations</h2> <p dir="auto">None</p> <h2 dir="auto">Proposed Behavior</h2> <p dir="auto">Allow people to keep the old behaviour because the new one isn't beneficial.</p> <h2 dir="auto">Diagrams</h2> <p dir="auto">N/A</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">There isn't a way to avoid name collisions in a simple way because Celery decided to namesquat randomly. Separate file maybe. The lack of configuration option owner prefix can't really be worked around trivially.</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/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.7</li> <li>Operating System version: macOS 10.15.3</li> <li>Java version: 1.8.0_11</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15379292/92544700-1d082f00-f281-11ea-8cc0-f45862fafbfe.png"><img src="https://user-images.githubusercontent.com/15379292/92544700-1d082f00-f281-11ea-8cc0-f45862fafbfe.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">It is recommended to add a default constructor, otherwise some serialization tools like <code class="notranslate">kryo</code> cannot work well</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>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" //泛化调用,异步 ref.$invoke(callMethod, typeArrays, objectArrays); //2.7.1正常,2.7.2出现npe String uri = RpcContext.getContext().getUrl().toFullString(); event.setTotalUri(uri); Future&lt;Object&gt; result = RpcContext.getContext().getFuture(); "><pre class="notranslate"> <span class="pl-c">//泛化调用,异步</span> <span class="pl-s1">ref</span>.<span class="pl-en">$invoke</span>(<span class="pl-s1">callMethod</span>, <span class="pl-s1">typeArrays</span>, <span class="pl-s1">objectArrays</span>); <span class="pl-c">//2.7.1正常,2.7.2出现npe</span> <span class="pl-smi">String</span> <span class="pl-s1">uri</span> = <span class="pl-smi">RpcContext</span>.<span class="pl-en">getContext</span>().<span class="pl-en">getUrl</span>().<span class="pl-en">toFullString</span>(); <span class="pl-s1">event</span>.<span class="pl-en">setTotalUri</span>(<span class="pl-s1">uri</span>); <span class="pl-smi">Future</span>&lt;<span class="pl-smi">Object</span>&gt; <span class="pl-s1">result</span> = <span class="pl-smi">RpcContext</span>.<span class="pl-en">getContext</span>().<span class="pl-en">getFuture</span>();</pre></div> <p dir="auto">上面同一段代码,2.7.1的时候没有问题, 2.7.2 RpcContext.getContext().getUrl().toFullString();会出现npe</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2860398/60083357-2a162c80-9768-11e9-8c70-3f2c00560598.png"><img src="https://user-images.githubusercontent.com/2860398/60083357-2a162c80-9768-11e9-8c70-3f2c00560598.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">When you choose to customise bootstrap before downloading it from here:<br> <a href="http://getbootstrap.com/customize/" rel="nofollow">http://getbootstrap.com/customize/</a></p> <p dir="auto">The complied CSS for both bootstrap.css and bootstrap.min.css is WRONG.</p> <p dir="auto">The CSS declaration for the .fade.in opacity is placed at the bottom on each CSS script, meaning when you open the Modal this element:</p> <div dir="auto"></div> <p dir="auto">Takes on this CSS :<br> .fade.in {<br> opacity: 1;<br> }</p> <p dir="auto">Instead of what it is supposed to be:</p> <p dir="auto">.modal-backdrop.in {<br> opacity: 0.5;<br> filter: alpha(opacity=50);<br> }</p> <p dir="auto">This is because the .fade.in declaration is below the modal-backdrop CSS.</p> <p dir="auto">With the normal bootstrap complied download (meaning non-customised version) is fine, and works as expected. Just not the custom one.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e3c6a8b48495dab698ef98cd325e86fb7827ea01cfb2ac11e0bd0955a3c8e418/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f353336393733392f313037303436322f63333739646232362d313435342d313165332d393339622d3430653061613736613764332e6a7067"><img src="https://camo.githubusercontent.com/e3c6a8b48495dab698ef98cd325e86fb7827ea01cfb2ac11e0bd0955a3c8e418/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f353336393733392f313037303436322f63333739646232362d313435342d313165332d393339622d3430653061613736613764332e6a7067" alt="screen-shot-2013-09-03-at-2 32 40-pm" data-canonical-src="https://f.cloud.github.com/assets/5369739/1070462/c379db26-1454-11e3-939b-40e0aa76a7d3.jpg" style="max-width: 100%;"></a></p> <p dir="auto">Cheers,</p> <p dir="auto">Alice.</p>
<p dir="auto">Hi!</p> <p dir="auto">I just generated a customized version and the modal background is totally black (I also generated a version without any change to be sure it wasn't me that caused that):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/7c884cd09470c8345f0304ad6c0a9768a9b9ad1b1cf415c28d5eb6df1beb82ab/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f353238373238352f313030393333382f66653335323434612d306233362d313165332d393531332d3962363637663362646665652e706e67"><img src="https://camo.githubusercontent.com/7c884cd09470c8345f0304ad6c0a9768a9b9ad1b1cf415c28d5eb6df1beb82ab/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f353238373238352f313030393333382f66653335323434612d306233362d313165332d393531332d3962363637663362646665652e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/5287285/1009338/fe35244a-0b36-11e3-9513-9b667f3bdfee.png" style="max-width: 100%;"></a></p> <p dir="auto">The download link on the home page does have transparency:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/c35f738d5bc9c495c9e5c3e792a7c2a713e064f7ba536da495ecd6830f696e96/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f353238373238352f313030393335332f33396635313138342d306233372d313165332d383231622d3263396365363830626339352e706e67"><img src="https://camo.githubusercontent.com/c35f738d5bc9c495c9e5c3e792a7c2a713e064f7ba536da495ecd6830f696e96/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f353238373238352f313030393335332f33396635313138342d306233372d313165332d383231622d3263396365363830626339352e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/5287285/1009353/39f51184-0b37-11e3-821b-2c9ce680bc95.png" style="max-width: 100%;"></a></p>
1
<p dir="auto">I notice that pressing the stop button in debug no longer seems to close the extension host window, at least sometimes. Did something change here in the protocol?</p> <p dir="auto">I only see it sporadically so I wonder if this is some timing issue.</p> <p dir="auto">Also <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/weinand/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/weinand">@weinand</a> fyi</p>
<ul dir="auto"> <li>VSCode Version: 1.3.0 insiders</li> <li>OS Version: Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>run mock-debug as an extension</li> <li>terminate debug session</li> </ol> <p dir="auto">Observe: extension host window doesn't always disappear</p>
1
<p dir="auto">When I execute the following SQL in the apache-shardingsphere-5.0.0-RC1-SNAPSHOT-shardingsphere-proxy-bin, the following error is reported:<br> select product_id, apply_id from coupon_activity_map inner join coupon_products_map on coupon_activity_map.coupon_apply_id = coupon_products_map.apply_id where product_id in (1900080401,100022,20468821) and coupon_activity_map.activity_end_date &gt; '2021-08-03 10:39:11';</p> <p dir="auto">ERROR 1815 (HY000): Internal error: exception while executing query: class java.sql.Timestamp cannot be cast to class java.lang.Long (java.sql.Timestamp is in module java.sql of loader 'platform'; java.lang.Long is in module java.base of loader 'bootstrap')</p> <p dir="auto">the proxy logs as follows:<br> Caused by: java.lang.ClassCastException: class java.sql.Timestamp cannot be cast to class java.lang.Long (java.sql.Timestamp is in module java.sql of loader 'platform'; java.lang.Long is in module java.base of loader 'bootstrap')<br> at Buzz.execute(Unknown Source)<br> at Buzz.execute(Unknown Source)<br> at org.apache.calcite.interpreter.TableScanNode.lambda$createEnumerable$1(TableScanNode.java:270)<br> at org.apache.calcite.linq4j.EnumerableDefaults$28.moveNext(EnumerableDefaults.java:3667)<br> at org.apache.calcite.linq4j.TransformedEnumerator.moveNext(TransformedEnumerator.java:35)<br> at org.apache.calcite.linq4j.EnumerableDefaults.toLookup_(EnumerableDefaults.java:3563)<br> at org.apache.calcite.linq4j.EnumerableDefaults$14.enumerator(EnumerableDefaults.java:2621)<br> at org.apache.calcite.linq4j.EnumerableDefaults$MergeJoinEnumerator.getLeftEnumerator(EnumerableDefaults.java:4137)<br> at org.apache.calcite.linq4j.EnumerableDefaults$MergeJoinEnumerator.leftMoveNext(EnumerableDefaults.java:4153)<br> at org.apache.calcite.linq4j.EnumerableDefaults$MergeJoinEnumerator.start(EnumerableDefaults.java:4174)<br> at org.apache.calcite.linq4j.EnumerableDefaults$MergeJoinEnumerator.(EnumerableDefaults.java:4132)<br> at org.apache.calcite.linq4j.EnumerableDefaults$13.enumerator(EnumerableDefaults.java:2187)<br> at Baz$7$1.(Unknown Source)<br> at Baz$7.enumerator(Unknown Source)<br> at org.apache.calcite.linq4j.AbstractEnumerable.iterator(AbstractEnumerable.java:33)<br> at org.apache.calcite.avatica.MetaImpl.createCursor(MetaImpl.java:90)<br> at org.apache.calcite.avatica.AvaticaResultSet.execute(AvaticaResultSet.java:184)<br> at org.apache.calcite.jdbc.CalciteResultSet.execute(CalciteResultSet.java:64)<br> at org.apache.calcite.jdbc.CalciteResultSet.execute(CalciteResultSet.java:43)<br> at org.apache.calcite.avatica.AvaticaConnection.executeQueryInternal(AvaticaConnection.java:573)<br> ... 16 common frames omitted</p>
<h2 dir="auto">Bug Report</h2> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">master</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">Proxy</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">When using server PreparedStatement to execute TCL, the transaction state in <code class="notranslate">BackendConnection</code> is incorrect.</p>
0
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.1.4 (latest released)</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Ubuntu 20.04.3 LTS (Focal Fossa)</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-apache-hive==2.0.0<br> apache-airflow-providers-cncf-kubernetes==2.0.2; python_version &gt;= "3.6" and python_version &lt; "4.0"<br> apache-airflow-providers-ftp==2.0.1; python_version &gt;= "3.6" and python_version &lt; "4.0"<br> apache-airflow-providers-http==2.0.1; python_version &gt;= "3.6" and python_version &lt; "4.0"<br> apache-airflow-providers-imap==2.0.1; python_version &gt;= "3.6" and python_version &lt; "4.0"<br> apache-airflow-providers-oracle==2.0.1<br> apache-airflow-providers-postgres==2.2.0<br> apache-airflow-providers-sqlite==2.0.1; python_version &gt;= "3.6" and python_version &lt; "4.0"<br> apache-airflow-providers-ssh==2.1.1</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Virtualenv installation</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">Dag <code class="notranslate">Graph UI</code>:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22302313/136254640-3a7be2b6-6fe1-4e34-9e15-b153ba7cf9a6.png"><img width="801" alt="bug1" src="https://user-images.githubusercontent.com/22302313/136254640-3a7be2b6-6fe1-4e34-9e15-b153ba7cf9a6.png" style="max-width: 100%;"></a></p> <p dir="auto">Dag <code class="notranslate">Tree View</code> (same time):<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22302313/136254753-9be9bd2a-e528-4058-afc8-ae472bdd87de.png"><img width="737" alt="bug2" src="https://user-images.githubusercontent.com/22302313/136254753-9be9bd2a-e528-4058-afc8-ae472bdd87de.png" style="max-width: 100%;"></a></p> <h3 dir="auto">What happened</h3> <p dir="auto">Statuses of <code class="notranslate">Tasks</code>: <code class="notranslate">'running'</code>, <code class="notranslate">'queued'</code> don't update inside TaskGroup. New task statuses appear only with reclick on <code class="notranslate">TaskGroup</code>.</p> <h3 dir="auto">What you expected to happen</h3> <p dir="auto">I expect that statuses of <code class="notranslate">Tasks</code> are actual. Withou reclick on <code class="notranslate">TaskGroup</code></p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Create <code class="notranslate">TaskGroup</code> with <code class="notranslate">Task</code>, run <code class="notranslate">DAG</code>, close <code class="notranslate">DAG</code> window and u will see empty statuses of tasks.</p> <h3 dir="auto">Anything else</h3> <p dir="auto">Problem occurs always.</p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.1.4 (latest released)</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Linux/Debian</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Deployment</h3> <p dir="auto">Official Apache Airflow Helm Chart</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">What happened</h3> <p dir="auto">When upgrading to latest release (2.1.4) from 2.1.3, Graph View does not properly display tasks statuses.</p> <p dir="auto">See:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12841394/133980917-678a447b-5678-4225-b172-93df17257661.png"><img src="https://user-images.githubusercontent.com/12841394/133980917-678a447b-5678-4225-b172-93df17257661.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">All these tasks are in succeed or failed status in the Tree View, for the same Dag Run.</p> <h3 dir="auto">What you expected to happen</h3> <p dir="auto">Graph View to display task statuses.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">As I can see, DAGs without tasks groups are not affected. So, probably just create a DAG with a task group. I can reproduce this with in local with the official docker image (python 3.8).</p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.4.1</li> <li>Operating System version: Linux 4.15.0-122-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="70300267" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/124" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/124/hovercard" href="https://github.com/apache/dubbo/issues/124">#124</a>~16.04.1-Ubuntu SMP Thu Oct 15 16:08:36 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux</li> <li>Java version: 1.8.0_201</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>Provide a method in service-side and return a large data( for example 4M).</li> <li>Create a fixed threadpool(fox example,with 100 threads), and invoke the remote method in a loop.</li> <li>After the loop finished, the memory about 400M was always kept by <code class="notranslate">InternalThreadLocalMap</code>.</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">After all finished, memory kept by <code class="notranslate">InternalThreadLocalMap</code> will be revoked by GC.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">The memory about 400M was always kept by <code class="notranslate">InternalThreadLocalMap</code>.</p> <h3 dir="auto">More</h3> <p dir="auto">The <a href="https://github.com/liusf1993/dubbo-test">demo</a> can reproduce this issue.<br> Other information I can provided:<br> The leak memory was created by <code class="notranslate">FutureContext#futureTL</code>, and data in threadlocal can be traced by <code class="notranslate">InternalThreadLocal#VARIABLES_TO_REMOVE_INDEX</code>, invoke method <code class="notranslate">InternalThreadLocal#removeAll</code> in consumer filter can free the memory, but I can't find any usages of this method. Now I add <code class="notranslate">InternalThreadLocal#removeAll</code> in an extended filter to solve this problem in my program.<br> If this is configuration error, thanks for your correction.</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> <p dir="auto">The test <code class="notranslate">dubbo-common,org.apache.dubbo.common.threadlocal.InternalThreadLocalTest.testSize</code> is not idempotent and fails if run twice in the same JVM, because it pollutes state shared among tests.</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: dubbo-2.7.8</li> <li>Operating System version: macOS 10.15.6</li> <li>Java version: 1.8.0_151</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>Run unit test <code class="notranslate">InternalThreadLocalTest.testSize</code> twice in the same JVM.</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">Specifically, when running <code class="notranslate">InternalThreadLocalTest.testSize</code> twice in the same JVM, both runs should pass.(The test should not modify shared states among the tests)</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">While the first run of <code class="notranslate">InternalThreadLocalTest.testSize</code> passes, the second run of the test fails with the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: org.opentest4j.AssertionFailedError: size method is wrong! ==&gt; Expected :1 Actual :3 at org.apache.dubbo.common.threadlocal.InternalThreadLocalTest.testSize(InternalThreadLocalTest.java)"><pre class="notranslate"><code class="notranslate">error: org.opentest4j.AssertionFailedError: size method is wrong! ==&gt; Expected :1 Actual :3 at org.apache.dubbo.common.threadlocal.InternalThreadLocalTest.testSize(InternalThreadLocalTest.java) </code></pre></div>
0
<p dir="auto">Bug:<br> If you click a bit quickly and sequentially group items <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1446398" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/2" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/2/hovercard" href="https://github.com/twbs/bootstrap/issues/2">#2</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1446658" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/3" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/3/hovercard" href="https://github.com/twbs/bootstrap/pull/3">#3</a>, they both open. (should not occur). same thing can happen with any two groups, if cliked a bit more quick than normal speed, while browsing.</p> <p dir="auto">Feature Request:<br> Options variable: force one group item to be always visible, so that the user will not hide all groups together on a static layout page.</p>
<p dir="auto">Steps to reproduce the issue:</p> <p dir="auto">Goto: <a href="http://twitter.github.com/bootstrap/javascript.html#collapse">http://twitter.github.com/bootstrap/javascript.html#collapse</a></p> <ol dir="auto"> <li>Expand third item, wait</li> <li>Click on second and then quickly click on the first item</li> </ol> <p dir="auto">Both first and second panels will be expanded.</p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat example.json { &quot;kind&quot;: &quot;Pod&quot;, &quot;apiVersion&quot;: &quot;v1&quot;, &quot;metadata&quot;: { &quot;name&quot;: &quot;example&quot;, }, &quot;spec&quot;: { &quot;containers&quot;: [ { &quot;name&quot;: &quot;example&quot;, &quot;image&quot;: &quot;phusion/baseimage:latest&quot;, &quot;command&quot;: [ &quot;echo&quot;, &quot;hello&quot; ], }, ], } }"><pre class="notranslate"><code class="notranslate">$ cat example.json { "kind": "Pod", "apiVersion": "v1", "metadata": { "name": "example", }, "spec": { "containers": [ { "name": "example", "image": "phusion/baseimage:latest", "command": [ "echo", "hello" ], }, ], } } </code></pre></div> <p dir="auto">(There's a syntax error in there somewhere, not sure where.)</p> <p dir="auto">$ kubectl create -f example.json<br> invalid character '}' looking for beginning of object key string</p> <p dir="auto">kubectl should include the line and column number so I can fix my json.</p>
<p dir="auto">Kubernetes version v1.3.0</p> <p dir="auto">Kubelet concatenates host /etc/resolv.conf and cluster domain entries for my pod, resulting in an invalid config (too many entries with duplicates). The max is only 6 search domains. Any more and DNS resolution breaks when trying to leverage search domains.</p> <p dir="auto">The example below has only cluster DNS entries, but illustrates the issue:</p> <p dir="auto">Host /etc/resolv.conf:<br> search default.svc.cluster.local svc.cluster.local cluster.local<br> nameserver 10.233.0.2<br> nameserver 10.90.0.1<br> options timeout:2<br> options attempts:2</p> <p dir="auto">Container /etc/resolv.conf:<br> kubectl run -i --tty busybox --image=busybox -- sh<br> (skip waiting text)<br> / # cat /etc/resolv.conf<br> search default.svc.cluster.local svc.cluster.local cluster.local default.svc.cluster.local svc.cluster.local cluster.local<br> nameserver 10.233.0.2<br> options attempts:2<br> options ndots:5</p> <p dir="auto">I should be enable cluster DNS config in my host DNS settings and still have functional pod DNS. Kubelet should be intelligent enough to filter out duplicate search domain entries (or drop search domains beyond the 6th entry)</p>
0
<h3 dir="auto">System Info</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- `transformers` version: 4.19.3 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.9.7 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.9.0 (False) - Tensorflow version (GPU?): not installed (NA) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: NO - Using distributed or parallel set-up in script?: NO"><pre class="notranslate">- <span class="pl-s"><span class="pl-pds">`</span>transformers<span class="pl-pds">`</span></span> version: 4.19.3 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.9.7 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU<span class="pl-k">?</span>): 1.9.0 (False) - Tensorflow version (GPU<span class="pl-k">?</span>): not installed (NA) - Flax version (CPU<span class="pl-k">?</span>/GPU<span class="pl-k">?</span>/TPU<span class="pl-k">?</span>): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU <span class="pl-k">in</span> script<span class="pl-k">?</span>: NO - Using distributed or parallel set-up <span class="pl-k">in</span> script<span class="pl-k">?</span>: NO</pre></div> <h3 dir="auto">Who can help?</h3> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/younesbelkada/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/younesbelkada">@younesbelkada</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patrickvonplaten/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patrickvonplaten">@patrickvonplaten</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lys/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lys">@lys</a></p> <h3 dir="auto">Information</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> The official example scripts</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own modified scripts</li> </ul> <h3 dir="auto">Tasks</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own task or dataset (give details below)</li> </ul> <h3 dir="auto">Reproduction</h3> <ol dir="auto"> <li>Load opt-350m model from the hub with <code class="notranslate">AutoModelForCausalLM.from_pretrained('facebook/opt-350m')</code></li> <li>Save the model using <code class="notranslate">model.save_pretrained('save_dir/')</code></li> <li>Try loading back the model with <code class="notranslate">AutoModelForCausalLM.from_pretrained('save_dir/')</code></li> </ol> <p dir="auto">Full code:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from transformers import AutoModelForCausalLM opt350m = AutoModelForCausalLM.from_pretrained('facebook/opt-350m') opt350m.save_pretrained(&quot;local_save_dir/&quot;) loaded_opt = AutoModelForCausalLM.from_pretrained('local_save_dir/')"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">transformers</span> <span class="pl-k">import</span> <span class="pl-v">AutoModelForCausalLM</span> <span class="pl-s1">opt350m</span> <span class="pl-c1">=</span> <span class="pl-v">AutoModelForCausalLM</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">'facebook/opt-350m'</span>) <span class="pl-s1">opt350m</span>.<span class="pl-en">save_pretrained</span>(<span class="pl-s">"local_save_dir/"</span>) <span class="pl-s1">loaded_opt</span> <span class="pl-c1">=</span> <span class="pl-v">AutoModelForCausalLM</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">'local_save_dir/'</span>)</pre></div> <h3 dir="auto">Expected behavior</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="A RuntimeError will be raised when loading the model from save_dir/ Logs: Traceback (most recent call last): File &quot;/Users/gregoireretourne/opt/miniconda3/envs/health/lib/python3.9/code.py&quot;, line 90, in runcode exec(code, self.locals) File &quot;&lt;input&gt;&quot;, line 5, in &lt;module&gt; File &quot;lib/python3.9/site-packages/transformers/models/auto/auto_factory.py&quot;, line 446, in from_pretrained return model_class.from_pretrained(pretrained_model_name_or_path, *model_args, config=config, **kwargs) File &quot;lib/python3.9/site-packages/transformers/modeling_utils.py&quot;, line 2059, in from_pretrained model, missing_keys, unexpected_keys, mismatched_keys, error_msgs = cls._load_pretrained_model( File &quot;lib/python3.9/site-packages/transformers/modeling_utils.py&quot;, line 2251, in _load_pretrained_model raise RuntimeError(f&quot;Error(s) in loading state_dict for {model.__class__.__name__}:\n\t{error_msg}&quot;) RuntimeError: Error(s) in loading state_dict for OPTForCausalLM: size mismatch for lm_head.weight: copying a param with shape torch.Size([50272, 512]) from checkpoint, the shape in current model is torch.Size([50272, 1024])."><pre class="notranslate">A RuntimeError will be raised when loading the model from save_dir/ Logs: Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/Users/gregoireretourne/opt/miniconda3/envs/health/lib/python3.9/code.py<span class="pl-pds">"</span></span>, line 90, <span class="pl-k">in</span> runcode exec(code, self.locals) File <span class="pl-s"><span class="pl-pds">"</span>&lt;input&gt;<span class="pl-pds">"</span></span>, line 5, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> File <span class="pl-s"><span class="pl-pds">"</span>lib/python3.9/site-packages/transformers/models/auto/auto_factory.py<span class="pl-pds">"</span></span>, line 446, <span class="pl-k">in</span> from_pretrained <span class="pl-k">return</span> model_class.from_pretrained(pretrained_model_name_or_path, <span class="pl-k">*</span>model_args, config=config, <span class="pl-k">**</span>kwargs) File <span class="pl-s"><span class="pl-pds">"</span>lib/python3.9/site-packages/transformers/modeling_utils.py<span class="pl-pds">"</span></span>, line 2059, <span class="pl-k">in</span> from_pretrained model, missing_keys, unexpected_keys, mismatched_keys, error_msgs = cls._load_pretrained_model( File <span class="pl-s"><span class="pl-pds">"</span>lib/python3.9/site-packages/transformers/modeling_utils.py<span class="pl-pds">"</span></span>, line 2251, <span class="pl-k">in</span> _load_pretrained_model raise RuntimeError(f<span class="pl-s"><span class="pl-pds">"</span>Error(s) in loading state_dict for {model.__class__.__name__}:\n\t{error_msg}<span class="pl-pds">"</span></span>) RuntimeError: Error(s) <span class="pl-k">in</span> loading state_dict <span class="pl-k">for</span> OPTForCausalLM: size mismatch <span class="pl-k">for</span> <span class="pl-smi">lm_head.weight: copying a param with shape torch.Size([50272, 512]) from checkpoint, the shape</span> <span class="pl-k">in</span> current model is torch.Size([50272, 1024]).</pre></div>
<h3 dir="auto">System Info</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- `transformers` version: 4.19.0 - Platform: macOS-12.3.1-arm64-i386-64bit - Python version: 3.8.13 - Huggingface_hub version: 0.2.1 - PyTorch version (GPU?): 1.10.2 (False) - Tensorflow version (GPU?): not installed (NA) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: &lt;fill in&gt; - Using distributed or parallel set-up in script?: &lt;fill in&gt;"><pre class="notranslate">- <span class="pl-s"><span class="pl-pds">`</span>transformers<span class="pl-pds">`</span></span> version: 4.19.0 - Platform: macOS-12.3.1-arm64-i386-64bit - Python version: 3.8.13 - Huggingface_hub version: 0.2.1 - PyTorch version (GPU<span class="pl-k">?</span>): 1.10.2 (False) - Tensorflow version (GPU<span class="pl-k">?</span>): not installed (NA) - Flax version (CPU<span class="pl-k">?</span>/GPU<span class="pl-k">?</span>/TPU<span class="pl-k">?</span>): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU <span class="pl-k">in</span> script<span class="pl-k">?</span>: <span class="pl-k">&lt;</span>fill in<span class="pl-k">&gt;</span> - Using distributed or parallel set-up <span class="pl-k">in</span> script<span class="pl-k">?</span>: <span class="pl-k">&lt;</span>fill in<span class="pl-k">&gt;</span></pre></div> <h3 dir="auto">Who can help?</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Information</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The official example scripts</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own modified scripts</li> </ul> <h3 dir="auto">Tasks</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own task or dataset (give details below)</li> </ul> <h3 dir="auto">Reproduction</h3> <h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">When the OPT-350M variant is fine-tuned via huggingface, the resulting model will give the following error when loaded</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="model = OPTForCausalLM.from_pretrained(model path) RuntimeError: Error(s) in loading state_dict for OPTForCausalLM: size mismatch for lm_head.weight: copying a param with shape torch.Size([50272, 512]) from checkpoint, the shape in current model is torch.Size([50272, 1024]). "><pre class="notranslate"><code class="notranslate">model = OPTForCausalLM.from_pretrained(model path) RuntimeError: Error(s) in loading state_dict for OPTForCausalLM: size mismatch for lm_head.weight: copying a param with shape torch.Size([50272, 512]) from checkpoint, the shape in current model is torch.Size([50272, 1024]). </code></pre></div> <p dir="auto">##Code to load model</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from transformers import AutoModelForCausalLM, AutoTokenizer, set_seed, OPTForCausalLM import torch def generate_text(model, tokenizer, prompt): input_ids = tokenizer(prompt, return_tensors=&quot;pt&quot;).input_ids generated_ids = model.generate(input_ids, do_sample=True, num_return_sequences=5, max_length=10) texts = tokenizer.batch_decode(generated_ids, skip_special_tokens=True) return texts path = &quot;facebook/opt-350m&quot; path = &quot;opt/model_ckpts&quot; model = OPTForCausalLM.from_pretrained(path) tokenizer = AutoTokenizer.from_pretrained(path, use_fast=False) prompt = &quot;The woman worked as a&quot; print(generate_text(model, tokenizer, prompt))"><pre class="notranslate"><code class="notranslate">from transformers import AutoModelForCausalLM, AutoTokenizer, set_seed, OPTForCausalLM import torch def generate_text(model, tokenizer, prompt): input_ids = tokenizer(prompt, return_tensors="pt").input_ids generated_ids = model.generate(input_ids, do_sample=True, num_return_sequences=5, max_length=10) texts = tokenizer.batch_decode(generated_ids, skip_special_tokens=True) return texts path = "facebook/opt-350m" path = "opt/model_ckpts" model = OPTForCausalLM.from_pretrained(path) tokenizer = AutoTokenizer.from_pretrained(path, use_fast=False) prompt = "The woman worked as a" print(generate_text(model, tokenizer, prompt)) </code></pre></div> <p dir="auto">##Training Code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch as th from dataset import get_examples, GSMDataset from transformers import GPT2Tokenizer, GPT2LMHeadModel from transformers import GPT2Config, AdamW from transformers import get_scheduler from tqdm.auto import tqdm from torch.utils.data import DataLoader from transformers import AutoModelForCausalLM, AutoTokenizer, OPTModel, OPTConfig, OPTForCausalLM import torch model = OPTForCausalLM.from_pretrained(&quot;facebook/opt-350m&quot;) tokenizer = AutoTokenizer.from_pretrained(&quot;facebook/opt-350m&quot;, use_fast=False) try: model = OPTForCausalLM.from_pretrained(&quot;model_ckpts&quot;) print(&quot;model loaded&quot;) except Exception as e: print(e) train_examples = get_examples(&quot;train&quot;) train_dset = GSMDataset(tokenizer, train_examples) device = th.device(&quot;cuda&quot;) model.to(device) model.train() train_loader = DataLoader(train_dset, batch_size=4, shuffle=True) optim = AdamW(model.parameters(), lr=1e-5) num_epochs = 10 num_training_steps = num_epochs * len(train_loader) lr_scheduler = get_scheduler( &quot;linear&quot;, optimizer=optim, num_warmup_steps=0, num_training_steps=num_training_steps, ) pbar = tqdm(range(num_training_steps)) for epoch in range(num_epochs): for batch in train_loader: optim.zero_grad() batch = {k: v.to(device) for k, v in batch.items()} outputs = model(**batch, labels=batch[&quot;input_ids&quot;]) loss = outputs[0] loss.backward() optim.step() lr_scheduler.step() pbar.update(1) pbar.set_description(f&quot;train_loss: {loss.item():.5f}&quot;) model.save_pretrained(&quot;model_ckpts/&quot;)"><pre class="notranslate"><code class="notranslate">import torch as th from dataset import get_examples, GSMDataset from transformers import GPT2Tokenizer, GPT2LMHeadModel from transformers import GPT2Config, AdamW from transformers import get_scheduler from tqdm.auto import tqdm from torch.utils.data import DataLoader from transformers import AutoModelForCausalLM, AutoTokenizer, OPTModel, OPTConfig, OPTForCausalLM import torch model = OPTForCausalLM.from_pretrained("facebook/opt-350m") tokenizer = AutoTokenizer.from_pretrained("facebook/opt-350m", use_fast=False) try: model = OPTForCausalLM.from_pretrained("model_ckpts") print("model loaded") except Exception as e: print(e) train_examples = get_examples("train") train_dset = GSMDataset(tokenizer, train_examples) device = th.device("cuda") model.to(device) model.train() train_loader = DataLoader(train_dset, batch_size=4, shuffle=True) optim = AdamW(model.parameters(), lr=1e-5) num_epochs = 10 num_training_steps = num_epochs * len(train_loader) lr_scheduler = get_scheduler( "linear", optimizer=optim, num_warmup_steps=0, num_training_steps=num_training_steps, ) pbar = tqdm(range(num_training_steps)) for epoch in range(num_epochs): for batch in train_loader: optim.zero_grad() batch = {k: v.to(device) for k, v in batch.items()} outputs = model(**batch, labels=batch["input_ids"]) loss = outputs[0] loss.backward() optim.step() lr_scheduler.step() pbar.update(1) pbar.set_description(f"train_loss: {loss.item():.5f}") model.save_pretrained("model_ckpts/") </code></pre></div> <p dir="auto">##Dataset module</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import os import re import torch as th def read_jsonl(path: str): with open(path) as fh: return [json.loads(line) for line in fh.readlines() if line] def get_examples(split): path = os.path.join(&quot;data/&quot;, f&quot;{split}.jsonl&quot;) examples = read_jsonl(path) #examples = examples[0:100] for ex in examples: ex.update(question=ex[&quot;question&quot;] + &quot;\n&quot;) ex.update(answer=ex[&quot;answer&quot;] + &quot;&lt;|endoftext|&gt;&quot;) print(f&quot;{len(examples)} {split} examples&quot;) return examples ANS_RE = re.compile(r&quot;#### (\-?[0-9\.\,]+)&quot;) INVALID_ANS = &quot;[invalid]&quot; def extract_answer(completion): match = ANS_RE.search(completion) if match: match_str = match.group(1).strip() match_str = match_str.replace(&quot;,&quot;, &quot;&quot;) return match_str else: return INVALID_ANS def is_correct(model_completion, gt_example): gt_answer = extract_answer(gt_example[&quot;answer&quot;]) assert gt_answer != INVALID_ANS return extract_answer(model_completion) == gt_answer class GSMDataset(th.utils.data.Dataset): def __init__(self, tokenizer, examples, loss_on_prefix=True): self.examples = examples self.qns = [ex[&quot;question&quot;] for ex in self.examples] self.ans = [ex[&quot;answer&quot;] for ex in self.examples] self.qns = tokenizer(self.qns, padding=False) self.ans = tokenizer(self.ans, padding=False) self.loss_on_prefix = loss_on_prefix self.max_len = max( [ len(self.qns[&quot;input_ids&quot;][i]) + len(self.ans[&quot;input_ids&quot;][i]) for i in range(len(self.examples)) ] ) print(f&quot;Max tokens: {self.max_len}&quot;) def __len__(self): return len(self.examples) def __getitem__(self, idx): qn_tokens = self.qns[&quot;input_ids&quot;][idx] ans_tokens = self.ans[&quot;input_ids&quot;][idx] pad_tokens = [0] * (self.max_len - len(qn_tokens) - len(ans_tokens)) tokens = qn_tokens + ans_tokens + pad_tokens mask = ( ([int(self.loss_on_prefix)] * len(qn_tokens)) + ([1] * len(ans_tokens)) + ([0] * len(pad_tokens)) ) tokens = th.tensor(tokens) mask = th.tensor(mask) return dict(input_ids=tokens, attention_mask=mask)``` ### Expected behavior ```shell Expected model to load"><pre lang="import" class="notranslate"><code class="notranslate">import os import re import torch as th def read_jsonl(path: str): with open(path) as fh: return [json.loads(line) for line in fh.readlines() if line] def get_examples(split): path = os.path.join("data/", f"{split}.jsonl") examples = read_jsonl(path) #examples = examples[0:100] for ex in examples: ex.update(question=ex["question"] + "\n") ex.update(answer=ex["answer"] + "&lt;|endoftext|&gt;") print(f"{len(examples)} {split} examples") return examples ANS_RE = re.compile(r"#### (\-?[0-9\.\,]+)") INVALID_ANS = "[invalid]" def extract_answer(completion): match = ANS_RE.search(completion) if match: match_str = match.group(1).strip() match_str = match_str.replace(",", "") return match_str else: return INVALID_ANS def is_correct(model_completion, gt_example): gt_answer = extract_answer(gt_example["answer"]) assert gt_answer != INVALID_ANS return extract_answer(model_completion) == gt_answer class GSMDataset(th.utils.data.Dataset): def __init__(self, tokenizer, examples, loss_on_prefix=True): self.examples = examples self.qns = [ex["question"] for ex in self.examples] self.ans = [ex["answer"] for ex in self.examples] self.qns = tokenizer(self.qns, padding=False) self.ans = tokenizer(self.ans, padding=False) self.loss_on_prefix = loss_on_prefix self.max_len = max( [ len(self.qns["input_ids"][i]) + len(self.ans["input_ids"][i]) for i in range(len(self.examples)) ] ) print(f"Max tokens: {self.max_len}") def __len__(self): return len(self.examples) def __getitem__(self, idx): qn_tokens = self.qns["input_ids"][idx] ans_tokens = self.ans["input_ids"][idx] pad_tokens = [0] * (self.max_len - len(qn_tokens) - len(ans_tokens)) tokens = qn_tokens + ans_tokens + pad_tokens mask = ( ([int(self.loss_on_prefix)] * len(qn_tokens)) + ([1] * len(ans_tokens)) + ([0] * len(pad_tokens)) ) tokens = th.tensor(tokens) mask = th.tensor(mask) return dict(input_ids=tokens, attention_mask=mask)``` ### Expected behavior ```shell Expected model to load </code></pre></div>
1
<p dir="auto">I have a question, and I can't manage to find the answer in the docs.</p> <p dir="auto">I would like to get the HTML the server is going to render on a route so I can connect it to a service that turns that HTML into a PDF, in order to server side render pages as PDF.</p> <p dir="auto">Can someone shed any light on where I could plug in this? Im playing around in server.js but I cant manage to get the HTML..</p> <p dir="auto">The idea is as follows:</p> <p dir="auto">1.- You enter in /document/:id/pdf/ route<br> 2.- The HTML string is processed by a HTML to PDF script on the server (or possibly is sent to an external service)<br> 3.- The server renders the page and serves the PDF document file to the user.</p> <p dir="auto">Any info is greatly appreciated. Thanks.</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>
<p dir="auto">pnpm is an alternative package manager.</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">Should work.</p> <h2 dir="auto">Current Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm run build &gt; [email protected] build /Users/Vaughan/dev-live/vwp &gt; next build &gt; Failed to build on /var/folders/kp/06ys69nn6hq9k23cv0xxn19m0000gn/T/f445f6d8-80e8-4d8d-8946-d62056f4ddb7 { Error: ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry Module not found: Error: Can't resolve '../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js' in '/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages' resolve '../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js' in '/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages' using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages) Field 'browser' doesn't contain a valid alias configuration after using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages) using description file: /Users/Vaughan/dev-live/vwp/package.json (relative path: ./.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js) no extension Field 'browser' doesn't contain a valid alias configuration /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.js doesn't exist .json Field 'browser' doesn't contain a valid alias configuration /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.json doesn't exist as directory /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js doesn't exist [/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js] [/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.js] [/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.json] [/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js] @ ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry 3:17-118 @ multi ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry at /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/build/index.js:182:21 at emitRecords.err (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:269:13) at Compiler.emitRecords (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:375:38) at emitAssets.err (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:262:10) at applyPluginsAsyncSeries1.err (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:368:12) at next (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/tapable/0.2.8/node_modules/tapable/lib/Tapable.js:218:11) at Compiler.compiler.plugin (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4) at Compiler.applyPluginsAsyncSeries1 (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/tapable/0.2.8/node_modules/tapable/lib/Tapable.js:222:13) at Compiler.afterEmit (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:365:9) at require.forEach.err (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:360:15) errors: [ './node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry\nModule not found: Error: Can\'t resolve \'../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js\' in \'/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages\'\nresolve \'../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js\' in \'/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages\'\n using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages)\n using description file: /Users/Vaughan/dev-live/vwp/package.json (relative path: ./.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.js doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.json doesn\'t exist\n as directory\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js doesn\'t exist\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.js]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.json]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js]\n @ ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry 3:17-118\n @ multi ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry', './node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_document.js?entry\nModule not found: Error: Can\'t resolve \'../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js\' in \'/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages\'\nresolve \'../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js\' in \'/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages\'\n using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages)\n using description file: /Users/Vaughan/dev-live/vwp/package.json (relative path: ./.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js.js doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js.json doesn\'t exist\n as directory\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js doesn\'t exist\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js.js]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js.json]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js]\n @ ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_document.js?entry 3:17-124\n @ multi ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_document.js?entry' ], warnings: [] }"><pre class="notranslate"><code class="notranslate">npm run build &gt; [email protected] build /Users/Vaughan/dev-live/vwp &gt; next build &gt; Failed to build on /var/folders/kp/06ys69nn6hq9k23cv0xxn19m0000gn/T/f445f6d8-80e8-4d8d-8946-d62056f4ddb7 { Error: ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry Module not found: Error: Can't resolve '../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js' in '/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages' resolve '../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js' in '/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages' using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages) Field 'browser' doesn't contain a valid alias configuration after using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages) using description file: /Users/Vaughan/dev-live/vwp/package.json (relative path: ./.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js) no extension Field 'browser' doesn't contain a valid alias configuration /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.js doesn't exist .json Field 'browser' doesn't contain a valid alias configuration /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.json doesn't exist as directory /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js doesn't exist [/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js] [/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.js] [/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.json] [/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js] @ ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry 3:17-118 @ multi ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry at /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/build/index.js:182:21 at emitRecords.err (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:269:13) at Compiler.emitRecords (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:375:38) at emitAssets.err (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:262:10) at applyPluginsAsyncSeries1.err (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:368:12) at next (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/tapable/0.2.8/node_modules/tapable/lib/Tapable.js:218:11) at Compiler.compiler.plugin (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4) at Compiler.applyPluginsAsyncSeries1 (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/tapable/0.2.8/node_modules/tapable/lib/Tapable.js:222:13) at Compiler.afterEmit (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:365:9) at require.forEach.err (/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/webpack/3.3.0/node_modules/webpack/lib/Compiler.js:360:15) errors: [ './node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry\nModule not found: Error: Can\'t resolve \'../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js\' in \'/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages\'\nresolve \'../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js\' in \'/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages\'\n using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages)\n using description file: /Users/Vaughan/dev-live/vwp/package.json (relative path: ./.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.js doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.json doesn\'t exist\n as directory\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js doesn\'t exist\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.js]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js.json]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/lib/error.js]\n @ ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry 3:17-118\n @ multi ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_error.js?entry', './node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_document.js?entry\nModule not found: Error: Can\'t resolve \'../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js\' in \'/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages\'\nresolve \'../../../../../../../../.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js\' in \'/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages\'\n using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/package.json (relative path: ./dist/pages)\n using description file: /Users/Vaughan/dev-live/vwp/package.json (relative path: ./.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js.js doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js.json doesn\'t exist\n as directory\n /Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js doesn\'t exist\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js.js]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js.json]\n[/Users/Vaughan/dev-live/vwp/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/server/document.js]\n @ ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_document.js?entry 3:17-124\n @ multi ./node_modules/.registry.npmjs.org/next/3.0.6/node_modules/next/dist/pages/_document.js?entry' ], warnings: [] } </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>mkdir foo &amp;&amp; cd foo</li> <li>npm init -y</li> <li>pnpm i react react-dom next</li> <li>npm run build</li> <li></li> </ol> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>3.0.6</td> </tr> <tr> <td>node</td> <td>8.1.2</td> </tr> <tr> <td>OS</td> <td>macOS</td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<ul dir="auto"> <li>Electron version: v0.37.5</li> <li>Operating system: Fedora Workstation 23</li> </ul> <p dir="auto">As far as I can see in the latest version, <code class="notranslate">&lt;webview&gt;</code> is not working for me. The element is on the document but Electron seems to skip right over it. On the other hand <code class="notranslate">&lt;iframe&gt;</code> seems to work as expected. I have had it setup similar to the following:</p> <p dir="auto">`</p> &lt;style&gt; .box { height: 500px; width: 500px; } &lt;/style&gt; <p dir="auto">IFrame</p> &lt;iframe class="box" src="https://www.github.com/"&gt;&lt;/iframe&gt; <p dir="auto">Webview</p> ` <p dir="auto">Screenshot:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6377796/14482418/6ff2d836-00f1-11e6-9806-75ee7f25a7b4.png"><img src="https://cloud.githubusercontent.com/assets/6377796/14482418/6ff2d836-00f1-11e6-9806-75ee7f25a7b4.png" alt="electron" style="max-width: 100%;"></a><br> <strong>Note:</strong> I am aware that GitHub not loading in the iframe, that is <strong>NOT</strong> the error I am trying to report.</p>
<p dir="auto">I have a very little demo like this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Hello World!&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;webview src=&quot;https://www.google.com/&quot; autosize=&quot;on&quot; minwidth=&quot;576&quot; minheight=&quot;432&quot;&gt;&lt;/webview&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span>Hello World!<span class="pl-kos">&lt;/</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">webview</span> <span class="pl-c1">src</span>="<span class="pl-s">https://www.google.com/</span>" <span class="pl-c1">autosize</span>="<span class="pl-s">on</span>" <span class="pl-c1">minwidth</span>="<span class="pl-s">576</span>" <span class="pl-c1">minheight</span>="<span class="pl-s">432</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">webview</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">When I run the application, I get a blank page, nothing displayed. But if I add some script to the page, the webview will render. e.g.:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Hello World!&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;script&gt;console.log(&quot;Hello World&quot;);&lt;/script&gt; &lt;webview src=&quot;http://www.baidu.com/&quot; autosize=&quot;on&quot; minwidth=&quot;576&quot; minheight=&quot;432&quot;&gt;&lt;/webview&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span>Hello World!<span class="pl-kos">&lt;/</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Hello World"</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">webview</span> <span class="pl-c1">src</span>="<span class="pl-s">http://www.baidu.com/</span>" <span class="pl-c1">autosize</span>="<span class="pl-s">on</span>" <span class="pl-c1">minwidth</span>="<span class="pl-s">576</span>" <span class="pl-c1">minheight</span>="<span class="pl-s">432</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">webview</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div>
1
<p dir="auto">I'm currently using Julia 1.7.0 and discovered some weird behaviour between <code class="notranslate">minimum</code> and <code class="notranslate">Set{CartesianIndex}</code></p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 1.7.0 Commit 3bf9d17731 (2021-11-30 12:12 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-12.0.1 (ORCJIT, skylake) Environment: JULIA_LOAD_PATH = /home/doudou/Documents/Code/AdventofCode:@:@v#.#:@stdlib"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">versioninfo</span>() Julia Version <span class="pl-c1">1.7</span>.<span class="pl-c1">0</span> Commit <span class="pl-c1">3</span>bf9d17731 (<span class="pl-c1">2021</span><span class="pl-k">-</span><span class="pl-c1">11</span><span class="pl-k">-</span><span class="pl-c1">30</span> <span class="pl-c1">12</span><span class="pl-k">:</span><span class="pl-c1">12</span> UTC) Platform Info<span class="pl-k">:</span> OS<span class="pl-k">:</span> Linux (x86_64<span class="pl-k">-</span>pc<span class="pl-k">-</span>linux<span class="pl-k">-</span>gnu) CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Core</span>(TM) i7<span class="pl-k">-</span><span class="pl-c1">8750</span>H CPU @ <span class="pl-c1">2.20</span>GHz WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span> LIBM<span class="pl-k">:</span> libopenlibm LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">12.0</span>.<span class="pl-c1">1</span> (ORCJIT, skylake) Environment<span class="pl-k">:</span> JULIA_LOAD_PATH <span class="pl-k">=</span> <span class="pl-k">/</span>home<span class="pl-k">/</span>doudou<span class="pl-k">/</span>Documents<span class="pl-k">/</span>Code<span class="pl-k">/</span>AdventofCode<span class="pl-k">:</span>@:<span class="pl-c1">@v</span><span class="pl-c"><span class="pl-c">#</span>.#:@stdlib</span></pre></div> <p dir="auto">The minimal reproducible code is the following:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="s = Set(CartesianIndices((2, 2))) #Set{CartesianIndex{2}} with 4 elements: # CartesianIndex(2, 1) # CartesianIndex(1, 1) # CartesianIndex(2, 2) # CartesianIndex(1, 2) minimum(s) #CartesianIndex(1, 1) delete!(s, CartesianIndex(1, 1)) #Set{CartesianIndex{2}} with 3 elements: # CartesianIndex(2, 1) # CartesianIndex(2, 2) # CartesianIndex(1, 2) minimum(s) #CartesianIndex(1, 1) minimum(s) ∈ s #false pop!(s) #Any element of s randomly minimum(s) ∈ s #true"><pre class="notranslate">s <span class="pl-k">=</span> <span class="pl-c1">Set</span>(<span class="pl-c1">CartesianIndices</span>((<span class="pl-c1">2</span>, <span class="pl-c1">2</span>))) <span class="pl-c"><span class="pl-c">#</span>Set{CartesianIndex{2}} with 4 elements:</span> <span class="pl-c"><span class="pl-c">#</span> CartesianIndex(2, 1)</span> <span class="pl-c"><span class="pl-c">#</span> CartesianIndex(1, 1)</span> <span class="pl-c"><span class="pl-c">#</span> CartesianIndex(2, 2)</span> <span class="pl-c"><span class="pl-c">#</span> CartesianIndex(1, 2)</span> <span class="pl-c1">minimum</span>(s) <span class="pl-c"><span class="pl-c">#</span>CartesianIndex(1, 1)</span> <span class="pl-c1">delete!</span>(s, <span class="pl-c1">CartesianIndex</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>)) <span class="pl-c"><span class="pl-c">#</span>Set{CartesianIndex{2}} with 3 elements:</span> <span class="pl-c"><span class="pl-c">#</span> CartesianIndex(2, 1)</span> <span class="pl-c"><span class="pl-c">#</span> CartesianIndex(2, 2)</span> <span class="pl-c"><span class="pl-c">#</span> CartesianIndex(1, 2)</span> <span class="pl-c1">minimum</span>(s) <span class="pl-c"><span class="pl-c">#</span>CartesianIndex(1, 1)</span> <span class="pl-c1">minimum</span>(s) <span class="pl-k">∈</span> s <span class="pl-c"><span class="pl-c">#</span>false</span> <span class="pl-c1">pop!</span>(s) <span class="pl-c"><span class="pl-c">#</span>Any element of s randomly</span> <span class="pl-c1">minimum</span>(s) <span class="pl-k">∈</span> s <span class="pl-c"><span class="pl-c">#</span>true</span></pre></div> <p dir="auto">This does not happens with other type (tried <code class="notranslate">Int</code> and some custom struct) inside the set and it seems a <code class="notranslate">pop!</code> puts everything back in order.</p>
<p dir="auto">Since If blocks are expressions, Julia's ternary operator is redundant since it is just a less readable alias for an if block. Furthermore, since Julia uses both : as a separate operator it leads to ambiguous parses in cases like <code class="notranslate">whichrange()?1:2:3:4</code> (which returns 1 or 2:3:2 in Julia 0.6).</p> <p dir="auto">Deprecating the ?: syntax in favor of just pointing people to if blocks would make the language more consistent, it would eliminate the possibility of an ambiguous parse, and it would mean that people coming from Python or Matlab would have one less new bit of syntax to learn. Using if as a ternary expression is natural enough that I don't think that having the same syntax as C is of any benefit tbh.</p> <p dir="auto">Regarding the same tradeoff in other languages, Rust had both if expressions and ?: in beta, but deprecated ?: before 1.0. When someone put up a post-1.0 pull request in favor of adding (?:) it was overwhelmingly voted against<br> ( <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3008539" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/1698" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/1698/hovercard" href="https://github.com/rust-lang/rust/issues/1698">rust-lang/rust#1698</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3015860" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/1705" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/1705/hovercard" href="https://github.com/rust-lang/rust/pull/1705">rust-lang/rust#1705</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116190286" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rfcs/issues/1362" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rfcs/issues/1362/hovercard" href="https://github.com/rust-lang/rfcs/issues/1362">rust-lang/rfcs#1362</a> ).</p>
0
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <p dir="auto">I have not found an easy way to access a column of a multi index by name. Consider the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd df = pd.DataFrame([[1,1,10,200], [1,2,11,201], [1,3,12,202], [2,1,13,210], [2,2,14,230]], columns=list('ABCD')).set_index(['A','B']) ii = df.index "><pre class="notranslate"><code class="notranslate">import pandas as pd df = pd.DataFrame([[1,1,10,200], [1,2,11,201], [1,3,12,202], [2,1,13,210], [2,2,14,230]], columns=list('ABCD')).set_index(['A','B']) ii = df.index </code></pre></div> <p dir="auto">To access the values of column B i can e.g. do:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df.reset_index('B').B.tolist()"><pre class="notranslate"><code class="notranslate">df.reset_index('B').B.tolist() </code></pre></div> <p dir="auto">or</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[v[1] for v in ii.tolist()]"><pre class="notranslate"><code class="notranslate">[v[1] for v in ii.tolist()] </code></pre></div> <p dir="auto">Both of there are somewhat cumbersome What I'm proposing is to add similar shorcut access to a multiindex just like a dataframe. E.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ii.B"><pre class="notranslate"><code class="notranslate">ii.B </code></pre></div> <p dir="auto">or</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ii['B']"><pre class="notranslate"><code class="notranslate">ii['B'] </code></pre></div> <p dir="auto">that would return the same list as in the two examples above.</p> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <p dir="auto">0.18.1</p>
<p dir="auto">Hi Wes,<br> I'm trying to read in a csv file with few header lines at the beginning of the file starting w/ a '#'. I tried to use skiprows specifying a list of the first n rows to skip as [0,1,2,3,..,n] but I keep getting Index has duplicates ['#'] error. Is this a bug or I'm doing something wrong? Also, will this be the best place to post such issues?<br> I'm using pandas v 0.6.0 with python 2.7.2<br> Thanks for the great work you are doing w/ pandas. I'm finding it very useful and saves me a lot of time analyzing time series data.</p> <p dir="auto">-Solomon</p>
0
<p dir="auto">If a metric is deleted, charts using it in a single-value MetricControl won't be able to replace it with another metric.</p> <h4 dir="auto">Screenshots</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/335541/114797075-34dbf000-9d47-11eb-8494-734d3b54545a.png"><img width="783" alt="deleted-metric-bug" src="https://user-images.githubusercontent.com/335541/114797075-34dbf000-9d47-11eb-8494-734d3b54545a.png" style="max-width: 100%;"></a></p> <h4 dir="auto">How to reproduce the bug</h4> <ol dir="auto"> <li>Add a saved metric to a chart using single-value metric select (e.g. Country Map or Pie Chart).</li> <li>Save the chart</li> <li>Delete said metric in Datasource editor and save.</li> <li>Refresh the page.</li> </ol> <h3 dir="auto">Environment</h3> <p dir="auto">Latest master</p>
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if any</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar</li> </ul> <h3 dir="auto">Superset version</h3> <p dir="auto">Reproduced the issue on versions:</p> <ul dir="auto"> <li>0.17.0</li> <li>0.17.3</li> </ul> <h3 dir="auto">Expected results</h3> <p dir="auto">Exporting and importing dashboard anonymously should fail with an authorization error unless permissions were granted to the <code class="notranslate">Public</code> role.</p> <h3 dir="auto">Actual results</h3> <ul dir="auto"> <li>No authorization checks occur on dashboard export or import.</li> <li>Dashboards and slices are successfully exported and will be imported without an owner ID (effectively creating a duplicate dashboard / slices)</li> </ul> <h3 dir="auto">Steps to reproduce</h3> <ul dir="auto"> <li>Install Superset</li> <li>Configure a data source</li> <li>Create a slice</li> <li>Create a dashboard and add the slice</li> <li>Note the ID of the dashboard</li> <li>Use <code class="notranslate">curl</code> to export the dashboard to a pickle file (see below for actual command)</li> <li>Optionally modify the existing dashboard</li> <li>Use <code class="notranslate">curl</code> to import the dashboard</li> <li>See that the imported dashboard is created without an owner</li> </ul> <p dir="auto"><strong>curl commands</strong></p> <p dir="auto">Export the dashboard with a given ID:</p> <ul dir="auto"> <li>This will export the dashboard with ID=6 and save the output as <code class="notranslate">test.pickle</code></li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ curl 'http://localhost:8088/dashboardmodelview/export_dashboards_form?id=6&amp;action=go' -o test.pickle"><pre class="notranslate"><code class="notranslate">$ curl 'http://localhost:8088/dashboardmodelview/export_dashboards_form?id=6&amp;action=go' -o test.pickle </code></pre></div> <p dir="auto">Import the dashboard back into Superset:</p> <ul dir="auto"> <li>This will import the above <code class="notranslate">test.pickle</code> file back into Superset</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ curl -X POST http://localhost:8088/superset/import_dashboards -F &quot;[email protected]&quot;"><pre class="notranslate"><code class="notranslate">$ curl -X POST http://localhost:8088/superset/import_dashboards -F "[email protected]" </code></pre></div> <h3 dir="auto">Other details</h3> <ul dir="auto"> <li>OS is CentOS 7</li> <li>Configuration has <code class="notranslate">AUTH_ROLE_PUBLIC = 'Public'</code></li> <li>The <code class="notranslate">Public</code> role has the default empty set of permissions</li> </ul>
0
<p dir="auto"><strong>Feature request</strong> for the opposite of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28452689" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/1603" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/1603/hovercard" href="https://github.com/atom/atom/issues/1603">#1603</a> (not to reverse it, but to add an option to disable it).</p> <p dir="auto"><strong>Currently:</strong> Atom will reopen files that were not closed from last time (within the same project)<br> <strong>Desired:</strong> An option to disable this, so that no additional files are opened when Atom starts</p> <p dir="auto">There is currently <a href="https://discuss.atom.io/t/dont-open-previously-opened-files-on-new-start/5959" rel="nofollow">a hack for this</a>, however, a configurable setting would be much more appropriate.</p> <p dir="auto"><strong>Using:</strong> Atom 0.198.0 on Linux</p> <p dir="auto">Thanks</p>
<p dir="auto">It's useful that atom can remember the files/folders you had open last time and then re-open them next time you start atom. I can't seem to figure out how to turn off this behavior though, I generally <em>want</em> to start clean each time I open atom.</p> <p dir="auto">Is there a config option to enable/disable this feature? Or could we implement a dialog box when closing atom that asks if you want it to remember what you had open?</p>
1
<ul dir="auto"> <li><strong>OS Platform and Distribution</strong>: Ubuntu 16.04</li> <li><strong>TensorFlow installed from (source or binary)</strong>: binary</li> <li><strong>TensorFlow version</strong>: 1.4.1</li> <li><strong>Python version</strong>: 3.5.2</li> <li><strong>CUDA/cuDNN version</strong>: CUDA 8.0, CUDNN 7.0.5</li> <li><strong>GPU model and memory</strong>: GTX1080 (8G)</li> <li><strong>Exact command to reproduce</strong>: python3 test.py</li> <li><strong>Have I written custom code</strong>: True</li> <li><strong>Bazel version</strong>: N/A</li> <li><strong>GCC version</strong>: N/A</li> </ul> <p dir="auto">Repoduce code:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf _BATCH_NORM_DECAY = 0.997 _BATCH_NORM_EPSILON = 1e-5 def two_batchnorm(inputs): with tf.variable_scope('two_batchnorm'): inputs = tf.layers.batch_normalization( inputs=inputs, axis=3, momentum=_BATCH_NORM_DECAY, epsilon=_BATCH_NORM_EPSILON, center=True, scale=True, training=True, fused=True) inputs = tf.layers.batch_normalization( inputs=inputs, axis=3, momentum=_BATCH_NORM_DECAY, epsilon=_BATCH_NORM_EPSILON, center=True, scale=True, training=True, fused=True) return inputs inputs = tf.placeholder(tf.float32, [1, 5, 5, 3]) x = inputs x = two_batchnorm(x) x = two_batchnorm(x)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-s1">_BATCH_NORM_DECAY</span> <span class="pl-c1">=</span> <span class="pl-c1">0.997</span> <span class="pl-s1">_BATCH_NORM_EPSILON</span> <span class="pl-c1">=</span> <span class="pl-c1">1e-5</span> <span class="pl-k">def</span> <span class="pl-en">two_batchnorm</span>(<span class="pl-s1">inputs</span>): <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">variable_scope</span>(<span class="pl-s">'two_batchnorm'</span>): <span class="pl-s1">inputs</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">layers</span>.<span class="pl-en">batch_normalization</span>( <span class="pl-s1">inputs</span><span class="pl-c1">=</span><span class="pl-s1">inputs</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">momentum</span><span class="pl-c1">=</span><span class="pl-s1">_BATCH_NORM_DECAY</span>, <span class="pl-s1">epsilon</span><span class="pl-c1">=</span><span class="pl-s1">_BATCH_NORM_EPSILON</span>, <span class="pl-s1">center</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">scale</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">training</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">fused</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">inputs</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">layers</span>.<span class="pl-en">batch_normalization</span>( <span class="pl-s1">inputs</span><span class="pl-c1">=</span><span class="pl-s1">inputs</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">momentum</span><span class="pl-c1">=</span><span class="pl-s1">_BATCH_NORM_DECAY</span>, <span class="pl-s1">epsilon</span><span class="pl-c1">=</span><span class="pl-s1">_BATCH_NORM_EPSILON</span>, <span class="pl-s1">center</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">scale</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">training</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">fused</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-k">return</span> <span class="pl-s1">inputs</span> <span class="pl-s1">inputs</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">placeholder</span>(<span class="pl-s1">tf</span>.<span class="pl-s1">float32</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">5</span>, <span class="pl-c1">5</span>, <span class="pl-c1">3</span>]) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">inputs</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-en">two_batchnorm</span>(<span class="pl-s1">x</span>) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-en">two_batchnorm</span>(<span class="pl-s1">x</span>)</pre></div> <p dir="auto">It'll trigger an unexpected ValueError as following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError: Variable two_batchnorm/batch_normalization/gamma already exists, disallowed."><pre class="notranslate"><code class="notranslate">ValueError: Variable two_batchnorm/batch_normalization/gamma already exists, disallowed. </code></pre></div> <p dir="auto">Removing the variable scope <code class="notranslate">with tf.variable_scope('two_batchnorm')</code> in <code class="notranslate">two_batchnorm</code> will work as expected.</p> <p dir="auto">All variables defined in the graph should be (in creation sequense):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="two_batchnorm/batch_normalization/gamma:0 two_batchnorm/batch_normalization/beta:0 two_batchnorm/batch_normalization/moving_mean:0 two_batchnorm/batch_normalization/moving_variance:0 two_batchnorm/batch_normalization_1/gamma:0 two_batchnorm/batch_normalization_1/beta:0 two_batchnorm/batch_normalization_1/moving_mean:0 two_batchnorm/batch_normalization_1/moving_variance:0 two_batchnorm/batch_normalization_2/gamma:0 two_batchnorm/batch_normalization_2/beta:0 two_batchnorm/batch_normalization_2/moving_mean:0 two_batchnorm/batch_normalization_2/moving_variance:0 two_batchnorm/batch_normalization_3/gamma:0 two_batchnorm/batch_normalization_3/beta:0 two_batchnorm/batch_normalization_3/moving_mean:0 two_batchnorm/batch_normalization_3/moving_variance:0"><pre class="notranslate"><code class="notranslate">two_batchnorm/batch_normalization/gamma:0 two_batchnorm/batch_normalization/beta:0 two_batchnorm/batch_normalization/moving_mean:0 two_batchnorm/batch_normalization/moving_variance:0 two_batchnorm/batch_normalization_1/gamma:0 two_batchnorm/batch_normalization_1/beta:0 two_batchnorm/batch_normalization_1/moving_mean:0 two_batchnorm/batch_normalization_1/moving_variance:0 two_batchnorm/batch_normalization_2/gamma:0 two_batchnorm/batch_normalization_2/beta:0 two_batchnorm/batch_normalization_2/moving_mean:0 two_batchnorm/batch_normalization_2/moving_variance:0 two_batchnorm/batch_normalization_3/gamma:0 two_batchnorm/batch_normalization_3/beta:0 two_batchnorm/batch_normalization_3/moving_mean:0 two_batchnorm/batch_normalization_3/moving_variance:0 </code></pre></div> <p dir="auto">However, with <code class="notranslate">tf.layers.Layer</code>'s <code class="notranslate">add_variable</code> logics, it'll result in an unexpected value name as following (in creation sequence):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="two_batchnorm/batch_normalization/gamma:0 two_batchnorm/batch_normalization/beta:0 two_batchnorm/batch_normalization/moving_mean:0 two_batchnorm/batch_normalization/moving_variance:0 two_batchnorm/batch_normalization_1/gamma:0 two_batchnorm/batch_normalization_1/beta:0 two_batchnorm/batch_normalization_1/moving_mean:0 two_batchnorm/batch_normalization_1/moving_variance:0 two_batchnorm/batch_normalization/gamma:0 &lt;-- ValueError raised here. two_batchnorm/batch_normalization/beta:0 two_batchnorm/batch_normalization/moving_mean:0 two_batchnorm/batch_normalization/moving_variance:0 two_batchnorm/batch_normalization_1/gamma:0 two_batchnorm/batch_normalization_1/beta:0 two_batchnorm/batch_normalization_1/moving_mean:0 two_batchnorm/batch_normalization_1/moving_variance:0"><pre class="notranslate"><code class="notranslate">two_batchnorm/batch_normalization/gamma:0 two_batchnorm/batch_normalization/beta:0 two_batchnorm/batch_normalization/moving_mean:0 two_batchnorm/batch_normalization/moving_variance:0 two_batchnorm/batch_normalization_1/gamma:0 two_batchnorm/batch_normalization_1/beta:0 two_batchnorm/batch_normalization_1/moving_mean:0 two_batchnorm/batch_normalization_1/moving_variance:0 two_batchnorm/batch_normalization/gamma:0 &lt;-- ValueError raised here. two_batchnorm/batch_normalization/beta:0 two_batchnorm/batch_normalization/moving_mean:0 two_batchnorm/batch_normalization/moving_variance:0 two_batchnorm/batch_normalization_1/gamma:0 two_batchnorm/batch_normalization_1/beta:0 two_batchnorm/batch_normalization_1/moving_mean:0 two_batchnorm/batch_normalization_1/moving_variance:0 </code></pre></div> <p dir="auto">One solution might be using <code class="notranslate">self._name</code> to setup Layer's scope, not <code class="notranslate">self._base_name</code>.</p>
<p dir="auto">I am using tf.TFRecordReader and tf.train.batch to evaluate one epoch of my dataset (it has only one file). In order to get a better performance I tried to use enqueue_many passing a list of reader calls, because supposedly it launches several reader threads. However its behaviour has not been as I expected. It returns each item duplicated, although I thought it would return the same list of items, but faster. I took the code from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yaroslavvb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yaroslavvb">@yaroslavvb</a> github: <a href="https://github.com/yaroslavvb/stuff/blob/master/ericyue-slowreader/benchmark.py">https://github.com/yaroslavvb/stuff/blob/master/ericyue-slowreader/benchmark.py</a></p> <p dir="auto">Is this behaviour right? It seems really strange to me and I don't know if it is a bug or a feature.</p> <p dir="auto">Here you can see a snippet of the code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="reader = tf.TFRecordReader() queue_batch = [] for i in range(enqueue_many_size): _, serialized_example = reader.read(filename_queue) queue_batch.append(serialized_example) batch_serialized_example = tf.train.batch( [queue_batch], batch_size=batch_size, num_threads=thread_number, capacity=capacity, enqueue_many=True)"><pre class="notranslate"><code class="notranslate">reader = tf.TFRecordReader() queue_batch = [] for i in range(enqueue_many_size): _, serialized_example = reader.read(filename_queue) queue_batch.append(serialized_example) batch_serialized_example = tf.train.batch( [queue_batch], batch_size=batch_size, num_threads=thread_number, capacity=capacity, enqueue_many=True) </code></pre></div> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Ubuntu 16.04<br> Nvidia Geforce 1080<br> Python 3.5<br> Tensorflow version: 1.0.0</p> <p dir="auto">Installed version of CUDA and cuDNN:<br> /usr/local/cuda-8.0/lib64/libcudadevrt.a /usr/local/cuda-8.0/lib64/libcudnn.so<br> /usr/local/cuda-8.0/lib64/libcudart.so /usr/local/cuda-8.0/lib64/libcudnn.so.5<br> /usr/local/cuda-8.0/lib64/libcudart.so.8.0 /usr/local/cuda-8.0/lib64/libcudnn.so.5.0.5<br> /usr/local/cuda-8.0/lib64/libcudart.so.8.0.44 /usr/local/cuda-8.0/lib64/libcudnn.so.5.1.5<br> /usr/local/cuda-8.0/lib64/libcudart_static.a /usr/local/cuda-8.0/lib64/libcudnn_static.a</p> <p dir="auto">The output for batch size of 4 records, enqueue_many_size=2, and record size of 16 floats, is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[array([[ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15.], [ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15.], [ 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31.], [ 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31.]], dtype=float32)]"><pre class="notranslate"><code class="notranslate">[array([[ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15.], [ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15.], [ 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31.], [ 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31.]], dtype=float32)] </code></pre></div>
0
<p dir="auto">If state is currently:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ foo: 123, user: {typing: false, active: false} }"><pre class="notranslate"><code class="notranslate">{ foo: 123, user: {typing: false, active: false} } </code></pre></div> <p dir="auto">Then calling <code class="notranslate">this.setState({user: {typing: true}})</code> results in state being:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ foo: 123, user: {typing: true} }"><pre class="notranslate"><code class="notranslate">{ foo: 123, user: {typing: true} } </code></pre></div> <p dir="auto">It would be great to have a <code class="notranslate">setStateRecursively</code> function and to make it clear in the <code class="notranslate">setState</code> documentation that it only merges one level deep before just replacing sub-states.</p>
<p dir="auto">You know people want it…</p>
1