text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto"><strong>Symfony version(s) affected</strong>: Probably all of them, but I am currently in 4.1</p> <p dir="auto"><strong>Description</strong></p> <p dir="auto">When you try to put the Translator Path in an envrionment variable, Symfony try to check if the Path exist <strong>BEFORE</strong> the compilation of the envrionment variable.</p> <p dir="auto">So with <code class="notranslate">'%env(resolve:PATH_TRANSLATION)%'</code>, Symfony throw an UnexpectedValueException : <code class="notranslate">%env(resolve:PATH_TRANSLATION)% defined in translator.paths does not exist or is not a directory</code>.</p> <p dir="auto"><strong>How to reproduce</strong></p> <p dir="auto">You can reproduce the bug easily by adding an environment variable (in <code class="notranslate">.env</code>) and resolve it in the config file.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="framework: translator: paths: - '%env(resolve:PATH_TRANSLATION)%'"><pre class="notranslate"><code class="notranslate">framework: translator: paths: - '%env(resolve:PATH_TRANSLATION)%' </code></pre></div> <p dir="auto"><strong>Possible Solution</strong></p> <p dir="auto">Symfony should resolve the environment variable before checking if the file exist or not.</p> <p dir="auto"><strong>Additional context</strong></p> <p dir="auto">Symfony bump into here ==&gt; <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L1020">https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L1020</a></p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.3.9</td> </tr> </tbody> </table> <p dir="auto">when using an env var inside the value of a framework.translator.paths, the env var value is not resolved, and instead its placeholder is given to the translator</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="parameters: active_site: '%env(ACTIVE_SITE)%' framework: translator: paths: - &quot;%kernel.root_dir%/../src/ST/AppBundle/Resources/translations_sites/%active_site%&quot;"><pre class="notranslate"><span class="pl-ent">parameters</span>: <span class="pl-ent">active_site</span>: <span class="pl-s"><span class="pl-pds">'</span>%env(ACTIVE_SITE)%<span class="pl-pds">'</span></span> <span class="pl-ent">framework</span>: <span class="pl-ent">translator</span>: <span class="pl-ent">paths</span>: - <span class="pl-s"><span class="pl-pds">"</span>%kernel.root_dir%/../src/ST/AppBundle/Resources/translations_sites/%active_site%<span class="pl-pds">"</span></span></pre></div> <blockquote> <p dir="auto">UnexpectedValueException<br> /var/www/app/../src/ST/AppBundle/Resources/translations_sites/env_ACTIVE_SITE_1210a6ec49918eebfffc01fc4f72ca65 defined in translator.paths does not exist or is not a directory</p> </blockquote> <p dir="auto">note: same thing happen if I use the env directly like that:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="framework: translator: paths: - &quot;%kernel.root_dir%/../src/ST/AppBundle/Resources/translations_sites/%env(ACTIVE_SITE)%&quot;"><pre class="notranslate"><span class="pl-ent">framework</span>: <span class="pl-ent">translator</span>: <span class="pl-ent">paths</span>: - <span class="pl-s"><span class="pl-pds">"</span>%kernel.root_dir%/../src/ST/AppBundle/Resources/translations_sites/%env(ACTIVE_SITE)%<span class="pl-pds">"</span></span></pre></div>
1
<p dir="auto">In type definition @types/react is bug in interface LinkHTMLAttributes.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13852854/31860812-07c3f30c-b721-11e7-9986-a3a7b46e3a63.png"><img width="1680" alt="snimek obrazovky 2017-10-22 v 12 02 25" src="https://user-images.githubusercontent.com/13852854/31860812-07c3f30c-b721-11e7-9986-a3a7b46e3a63.png" style="max-width: 100%;"></a></p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/autoprefixer</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/odnamrataizem/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/odnamrataizem">@odnamrataizem</a></li> </ul> </li> </ul> <p dir="auto">When compiling a project which contains <code class="notranslate">gulp-postcss</code> and <code class="notranslate">autoprefixer</code> I find myself facing the following errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[20:12:38] gulp-tsb [commonjs] 2 errors across 2 files [20:12:38] ./node_modules/@types/autoprefixer/node_modules/postcss/lib/postcss.d.ts 1305:4 Duplicate identifier 'export='. ./node_modules/postcss/lib/postcss.d.ts 1283:4 Duplicate identifier 'export='."><pre class="notranslate"><code class="notranslate">[20:12:38] gulp-tsb [commonjs] 2 errors across 2 files [20:12:38] ./node_modules/@types/autoprefixer/node_modules/postcss/lib/postcss.d.ts 1305:4 Duplicate identifier 'export='. ./node_modules/postcss/lib/postcss.d.ts 1283:4 Duplicate identifier 'export='. </code></pre></div> <p dir="auto"><strong>I have a theory although I'm not certain:</strong> Is it due to the fact that <code class="notranslate">@types/autoprefixer</code> lists <code class="notranslate">postcss</code> as a dependency, ought it be a dev dependency <strong>and</strong> a peer dependency? Would that provide the typings for development but stop it from duplicating <code class="notranslate">postcss.d.ts</code> (as per above) when included as a dependency in a project. Is this idea testable?</p>
0
<p dir="auto"><strong>I'm submitting a ...</strong></p> <p dir="auto">[X] bug report</p> <p dir="auto"><strong>Current behavior</strong><br> Error Messages on running npm run test after upgrade from 2.4.8 to 4.0.0-rc1:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[at-loader] Checking finished with 1045 errors Hash: 2075dbec0d36e9d4552f Version: webpack 2.2.0 Time: 17756ms Asset Size Chunks Chunk Names 0.bundle.js 690 bytes 0 [emitted] config/spec-bundle.js 8.18 MB 1 [emitted] [big] config/spec-bundle.js WARNING in ./~/@angular/core/@angular/core.es5.js 3702:272-293 Critical dependency: the request of a dependency is an expression WARNING in ./~/@angular/core/@angular/core.es5.js 3705:332-415 Critical dependency: the request of a dependency is an expression ERROR in ./src/app/home/x-large/x-large.directive.spec.ts Module not found: Error: Can't resolve '@angular/platform-browser/src/dom/debug/by' in 'C:\projects\angular2-webpack-starter\src\app\home\x-large' @ ./src/app/home/x-large/x-large.directive.spec.ts 5:11-64 @ ./src \.spec\.ts @ ./config/spec-bundle.js ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:13:36 Type 'any' is not a constructor function type. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:14:27 Namespace ''*'' has no exported member 'CommonModule'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:15:30 Namespace ''*'' has no exported member 'NgLocaleLocalization'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:16:30 Namespace ''*'' has no exported member 'Injector'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:19:35 Namespace ''*'' has no exported member 'NgLocaleLocalization'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:20:111 Property 'parent' does not exist on type 'CommonModuleInjector'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:23:28 Namespace ''*'' has no exported member 'CommonModule'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:35:44 Namespace ''*'' has no exported member 'NgModuleFactory'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\directives\ng_class.ngfactory.ts:14:19 Namespace ''*'' has no exported member 'NgClass'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\directives\ng_class.ngfactory.ts:24:27 Namespace ''*'' has no exported member 'AppView'. ..... ERROR in [at-loader] compiled\src\app\no-content\no-content.component.ngfactory.ts:96:25 Property 'renderer' does not exist on type 'View_NoContentComponent0'. ERROR in [at-loader] compiled\src\app\no-content\no-content.component.ngfactory.ts:97:10 Property 'init' does not exist on type 'View_NoContentComponent0'. ERROR in [at-loader] compiled\src\app\no-content\no-content.component.ngfactory.ts:97:41 Property 'renderer' does not exist on type 'View_NoContentComponent0'."><pre class="notranslate"><code class="notranslate">[at-loader] Checking finished with 1045 errors Hash: 2075dbec0d36e9d4552f Version: webpack 2.2.0 Time: 17756ms Asset Size Chunks Chunk Names 0.bundle.js 690 bytes 0 [emitted] config/spec-bundle.js 8.18 MB 1 [emitted] [big] config/spec-bundle.js WARNING in ./~/@angular/core/@angular/core.es5.js 3702:272-293 Critical dependency: the request of a dependency is an expression WARNING in ./~/@angular/core/@angular/core.es5.js 3705:332-415 Critical dependency: the request of a dependency is an expression ERROR in ./src/app/home/x-large/x-large.directive.spec.ts Module not found: Error: Can't resolve '@angular/platform-browser/src/dom/debug/by' in 'C:\projects\angular2-webpack-starter\src\app\home\x-large' @ ./src/app/home/x-large/x-large.directive.spec.ts 5:11-64 @ ./src \.spec\.ts @ ./config/spec-bundle.js ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:13:36 Type 'any' is not a constructor function type. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:14:27 Namespace ''*'' has no exported member 'CommonModule'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:15:30 Namespace ''*'' has no exported member 'NgLocaleLocalization'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:16:30 Namespace ''*'' has no exported member 'Injector'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:19:35 Namespace ''*'' has no exported member 'NgLocaleLocalization'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:20:111 Property 'parent' does not exist on type 'CommonModuleInjector'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:23:28 Namespace ''*'' has no exported member 'CommonModule'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\common_module.ngfactory.ts:35:44 Namespace ''*'' has no exported member 'NgModuleFactory'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\directives\ng_class.ngfactory.ts:14:19 Namespace ''*'' has no exported member 'NgClass'. ERROR in [at-loader] compiled\node_modules\@angular\common\src\directives\ng_class.ngfactory.ts:24:27 Namespace ''*'' has no exported member 'AppView'. ..... ERROR in [at-loader] compiled\src\app\no-content\no-content.component.ngfactory.ts:96:25 Property 'renderer' does not exist on type 'View_NoContentComponent0'. ERROR in [at-loader] compiled\src\app\no-content\no-content.component.ngfactory.ts:97:10 Property 'init' does not exist on type 'View_NoContentComponent0'. ERROR in [at-loader] compiled\src\app\no-content\no-content.component.ngfactory.ts:97:41 Property 'renderer' does not exist on type 'View_NoContentComponent0'. </code></pre></div> <p dir="auto">Everything works when running my application in either debug or production mode without errors - although the same errors appear when trying an aot build with:</p> <p dir="auto"><code class="notranslate">[at-loader] Checking finished with 16433 errors</code></p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">The same errors as I get in my real project can be observed using this minimal angular2-webpack-starter which I upgraded using the npm install command specified in the release notes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/arturh85/angular2-webpack-starter.git cd angular2-webpack-starter npm i npm test"><pre class="notranslate"><code class="notranslate">git clone https://github.com/arturh85/angular2-webpack-starter.git cd angular2-webpack-starter npm i npm test </code></pre></div> <ul dir="auto"> <li><strong>Angular version:</strong> upgrading from 2.4.8 to 4.0.0-rc1</li> </ul> <p dir="auto">see <a class="commit-link" href="https://github.com/arturh85/angular2-webpack-starter/commit/057b37f1f6d378de11140d07a37af07185199d30#diff-b9cfc7f2cdf78a7f4b91a753d10865a2">arturh85/angular2-webpack-starter@<tt>057b37f</tt>#diff-b9cfc7f2cdf78a7f4b91a753d10865a2</a></p> <ul dir="auto"> <li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br> v6.2.2 (Windows 10)</li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> ES5 testing bundle files(<code class="notranslate">testing.es5.js</code>) contain ES2015 codes.</p> <p dir="auto"><strong>Expected behavior</strong><br> <code class="notranslate">testing.es5.js</code> files contain transpiled ES5 codes.</p> <ul dir="auto"> <li><strong>Angular version:</strong> 4.0.0-rc.1</li> </ul> <ul dir="auto"> <li><strong>Language:</strong>: Typescript 2.1.6</li> </ul>
1
<p dir="auto">Dropdown not working on the navigation bar on Android.</p> <p dir="auto">I'm testing in some browsers for Android.</p> <p dir="auto">Links within the dropbox dont work.</p>
<p dir="auto">I had a project using more or less the same menu and it worked. Found out it was using Bootstrap version 2.3.1. Compared version 2.3.2 and 2.3.1 and found that in version 2.3.2 there's this snippet of CSS that reads:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; }"><pre class="notranslate"><code class="notranslate">.dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; } </code></pre></div> <p dir="auto">and the rule: <code class="notranslate">position: fixed;</code> seems to cause all the problems.</p> <p dir="auto">I still don't undertand the point of the markup that is added by the bootstrap dropdown plugin:</p> <p dir="auto"><code class="notranslate">&lt;div class="dropdown-backdrop"&gt;&lt;/div&gt;</code></p> <p dir="auto">So I've temporarily fixed the bug on my end by adding a style to override the style causing the problem:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".dropdown-backdrop { position: static; }"><pre class="notranslate"><code class="notranslate">.dropdown-backdrop { position: static; } </code></pre></div> <p dir="auto">To me this looks like a bug introduced from version 2.3.1 to 2.3.2. Maybe I'm wrong. If someone could explain the purpose of the empty div, it would be helpful.</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">When using a colormap to generate a color array with data that contains np.nan (NaN), an warning is given, and the previous color entry is duplicated. The method that has this issue is <code class="notranslate">to_rgba</code>.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np from matplotlib.colors import Normalize from matplotlib import cm y = np.linspace(0.0, 1.0, 4) y[1] = np.nan norm = Normalize(0.0, 1.0) colormap = cm.ScalarMappable(norm, 'rainbow') colors = colormap.to_rgba(y) print(colors)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">colors</span> <span class="pl-k">import</span> <span class="pl-v">Normalize</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">cm</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0.0</span>, <span class="pl-c1">1.0</span>, <span class="pl-c1">4</span>) <span class="pl-s1">y</span>[<span class="pl-c1">1</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">nan</span> <span class="pl-s1">norm</span> <span class="pl-c1">=</span> <span class="pl-v">Normalize</span>(<span class="pl-c1">0.0</span>, <span class="pl-c1">1.0</span>) <span class="pl-s1">colormap</span> <span class="pl-c1">=</span> <span class="pl-s1">cm</span>.<span class="pl-v">ScalarMappable</span>(<span class="pl-s1">norm</span>, <span class="pl-s">'rainbow'</span>) <span class="pl-s1">colors</span> <span class="pl-c1">=</span> <span class="pl-s1">colormap</span>.<span class="pl-en">to_rgba</span>(<span class="pl-s1">y</span>) <span class="pl-en">print</span>(<span class="pl-s1">colors</span>)</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/colors.py:496: RuntimeWarning: invalid value encountered in less cbook._putmask(xa, xa &lt; 0.0, -1) [[ 5.00000000e-01 0.00000000e+00 1.00000000e+00 1.00000000e+00] [ 5.00000000e-01 0.00000000e+00 1.00000000e+00 1.00000000e+00] [ 8.33333333e-01 8.66025404e-01 5.00000000e-01 1.00000000e+00] [ 1.00000000e+00 1.22464680e-16 6.12323400e-17 1.00000000e+00]]"><pre class="notranslate"><code class="notranslate">/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/colors.py:496: RuntimeWarning: invalid value encountered in less cbook._putmask(xa, xa &lt; 0.0, -1) [[ 5.00000000e-01 0.00000000e+00 1.00000000e+00 1.00000000e+00] [ 5.00000000e-01 0.00000000e+00 1.00000000e+00 1.00000000e+00] [ 8.33333333e-01 8.66025404e-01 5.00000000e-01 1.00000000e+00] [ 1.00000000e+00 1.22464680e-16 6.12323400e-17 1.00000000e+00]] </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">NaN values should be quietly handled. I think the most reasonable output would be to fill the color array with np.nan rather than copy the previous entry.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[[ 5.00000000e-01 0.00000000e+00 1.00000000e+00 1.00000000e+00] [ NaN NaN NaN NaN] [ 8.33333333e-01 8.66025404e-01 5.00000000e-01 1.00000000e+00] [ 1.00000000e+00 1.22464680e-16 6.12323400e-17 1.00000000e+00]]"><pre class="notranslate"><code class="notranslate">[[ 5.00000000e-01 0.00000000e+00 1.00000000e+00 1.00000000e+00] [ NaN NaN NaN NaN] [ 8.33333333e-01 8.66025404e-01 5.00000000e-01 1.00000000e+00] [ 1.00000000e+00 1.22464680e-16 6.12323400e-17 1.00000000e+00]] </code></pre></div> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: OSX</li> <li>Matplotlib version: 2.0.2</li> <li>Matplotlib backend: module://ipykernel.pylab.backend_inline &amp; MacOSX</li> <li>Python version: 3.6.3</li> <li>Jupyter Notebook version: 5.2.0</li> <li>Other libraries: None</li> </ul>
<h3 dir="auto">Bug summary</h3> <p dir="auto">The default minor colorbar ticks in matplotlib 3.5.1 look strange in the presence of major ticks determined by <code class="notranslate">BoundaryNorm</code>. Thought I had seen this issue in a previous thread but can't seem to find it... apologies if this is a duplicate.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib import numpy as np import matplotlib.pyplot as plt crf_bounds = np.array([0, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 0.97, 0.98, 0.99, 1.0]) norm = matplotlib.colors.BoundaryNorm(boundaries=crf_bounds, ncolors=256) x = y = np.array([-10, -5, 0, 5, 10]) np.random.seed(20) data = np.random.uniform(0,1,(4,4)) fig = plt.figure() ax = fig.add_subplot() m = ax.pcolormesh(x, y, data, cmap='RdYlGn', norm=norm) cb = fig.colorbar(m) cb.minorticks_on()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">crf_bounds</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0</span>, <span class="pl-c1">0.7</span>, <span class="pl-c1">0.75</span>, <span class="pl-c1">0.8</span>, <span class="pl-c1">0.85</span>, <span class="pl-c1">0.9</span>, <span class="pl-c1">0.95</span>, <span class="pl-c1">0.97</span>, <span class="pl-c1">0.98</span>, <span class="pl-c1">0.99</span>, <span class="pl-c1">1.0</span>]) <span class="pl-s1">norm</span> <span class="pl-c1">=</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">colors</span>.<span class="pl-v">BoundaryNorm</span>(<span class="pl-s1">boundaries</span><span class="pl-c1">=</span><span class="pl-s1">crf_bounds</span>, <span class="pl-s1">ncolors</span><span class="pl-c1">=</span><span class="pl-c1">256</span>) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">-</span><span class="pl-c1">10</span>, <span class="pl-c1">-</span><span class="pl-c1">5</span>, <span class="pl-c1">0</span>, <span class="pl-c1">5</span>, <span class="pl-c1">10</span>]) <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">20</span>) <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">uniform</span>(<span class="pl-c1">0</span>,<span class="pl-c1">1</span>,(<span class="pl-c1">4</span>,<span class="pl-c1">4</span>)) <span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>() <span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">pcolormesh</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">data</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s">'RdYlGn'</span>, <span class="pl-s1">norm</span><span class="pl-c1">=</span><span class="pl-s1">norm</span>) <span class="pl-s1">cb</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">m</span>) <span class="pl-s1">cb</span>.<span class="pl-en">minorticks_on</span>()</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">Matplotlib 3.5.1 result:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19657652/149579945-9482bda0-846e-4d77-99a3-417af76df29e.png"><img src="https://user-images.githubusercontent.com/19657652/149579945-9482bda0-846e-4d77-99a3-417af76df29e.png" alt="tmp" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">Matplotlib 3.2.1 result:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19657652/149580206-c030ce00-8fcf-43e7-b70e-d2c392f4012d.png"><img src="https://user-images.githubusercontent.com/19657652/149580206-c030ce00-8fcf-43e7-b70e-d2c392f4012d.png" alt="tmp_nice" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional information</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Operating system</h3> <p dir="auto">MacOS</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.1</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">module://matplotlib_inline.backend_inline</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.9.9</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto">3.1.18</p> <h3 dir="auto">Installation</h3> <p dir="auto">conda</p>
0
<p dir="auto">Hello! I want to use <a href="https://github.com/bumptech">Glide</a> and <a href="https://github.com/material-components">Material Components</a> in my project. Here are my dependencies:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.google.android.material:material:1.0.0-alpha3' implementation 'androidx.recyclerview:recyclerview:1.0.0-alpha3' implementation ('com.github.bumptech.glide:glide:4.7.1') annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'"><pre class="notranslate"><code class="notranslate"> implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.google.android.material:material:1.0.0-alpha3' implementation 'androidx.recyclerview:recyclerview:1.0.0-alpha3' implementation ('com.github.bumptech.glide:glide:4.7.1') annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1' </code></pre></div> <p dir="auto">Also, I am targeting version 28. But when I try to build, I get the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Program type already present: android.support.v4.os.ResultReceiver$1 Message{kind=ERROR, text=Program type already present: android.support.v4.os.ResultReceiver$1, sources=[Unknown source file], tool name=Optional.of(D8)} org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: dir\1.jar, ..., dir\241.jar at com.android.builder.profile.Recorder$Block.handleException(Recorder.java:55) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104) at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:212) at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:46) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92) ... 32 more Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: dir\1.jar, ..., dir\241.jar at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:124) at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:109) at com.android.build.gradle.internal.transforms.DexMergerTransformCallable.call(DexMergerTransformCallable.java:101) at com.android.build.gradle.internal.transforms.ExternalLibsMergerTransform.transform(ExternalLibsMergerTransform.kt:123) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:221) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:217) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102) ... 47 more Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:76) at com.android.tools.r8.utils.ExceptionUtils.withD8CompilationHandler(ExceptionUtils.java:45) at com.android.tools.r8.D8.run(D8.java:67) at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:107) ... 52 more Caused by: com.android.tools.r8.utils.AbortException at com.android.tools.r8.utils.Reporter.failIfPendingErrors(Reporter.java:77) at com.android.tools.r8.utils.Reporter.fatalError(Reporter.java:58) at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:67) ... 55 more "><pre class="notranslate"><code class="notranslate">Program type already present: android.support.v4.os.ResultReceiver$1 Message{kind=ERROR, text=Program type already present: android.support.v4.os.ResultReceiver$1, sources=[Unknown source file], tool name=Optional.of(D8)} org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: dir\1.jar, ..., dir\241.jar at com.android.builder.profile.Recorder$Block.handleException(Recorder.java:55) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104) at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:212) at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:46) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92) ... 32 more Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: dir\1.jar, ..., dir\241.jar at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:124) at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:109) at com.android.build.gradle.internal.transforms.DexMergerTransformCallable.call(DexMergerTransformCallable.java:101) at com.android.build.gradle.internal.transforms.ExternalLibsMergerTransform.transform(ExternalLibsMergerTransform.kt:123) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:221) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:217) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102) ... 47 more Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:76) at com.android.tools.r8.utils.ExceptionUtils.withD8CompilationHandler(ExceptionUtils.java:45) at com.android.tools.r8.D8.run(D8.java:67) at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:107) ... 52 more Caused by: com.android.tools.r8.utils.AbortException at com.android.tools.r8.utils.Reporter.failIfPendingErrors(Reporter.java:77) at com.android.tools.r8.utils.Reporter.fatalError(Reporter.java:58) at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:67) ... 55 more </code></pre></div>
<p dir="auto"><strong>Glide Version</strong>:4.7.1</p> <p dir="auto"><strong>Integration libraries</strong>:</p> <p dir="auto"><strong>Device/Android Version</strong>:xiaomi 6 Android8.0</p> <p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:</p> <p dir="auto">the gif url is <a href="http://emyfs.bs2cdn.yy.com/Zjk0MDVmYTItNThlYi00MzdkLWJmNWYtNzZkYmUzY2Y1YmUw.jpg" rel="nofollow">http://emyfs.bs2cdn.yy.com/Zjk0MDVmYTItNThlYi00MzdkLWJmNWYtNzZkYmUzY2Y1YmUw.jpg</a></p> <p dir="auto">the gif is has alapha channel</p> <p dir="auto">glide load display effect<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10829860/39988662-8668670a-579a-11e8-858a-2822af930a6c.png"><img src="https://user-images.githubusercontent.com/10829860/39988662-8668670a-579a-11e8-858a-2822af930a6c.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(MainActivity.this.getApplicationContext()).load(strs[0]).into(mIv);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">MainActivity</span>.<span class="pl-smi">this</span>.<span class="pl-en">getApplicationContext</span>()).<span class="pl-en">load</span>(<span class="pl-s1">strs</span>[<span class="pl-c1">0</span>]).<span class="pl-en">into</span>(<span class="pl-s1">mIv</span>);</pre></div> <p dir="auto"><strong>Layout XML</strong>:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;FrameLayout xmlns:android=&quot;..."><pre class="notranslate">&lt;<span class="pl-ent">FrameLayout</span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">android</span>=<span class="pl-s"><span class="pl-pds">"</span>...</span></pre></div> <p dir="auto"><strong>Stack trace / LogCat</strong>:</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="2018-05-14 22:01:13.205 16693-16693/com.wangrunxiang.glidedemo I/MyGlideModule: applyOptions 2018-05-14 22:01:13.275 16693-16952/com.wangrunxiang.glidedemo D/NetworkSecurityConfig: No Network Security Config specified, using platform default 2018-05-14 22:01:13.359 16693-16701/com.wangrunxiang.glidedemo I/zygote64: Do partial code cache collection, code=30KB, data=21KB 2018-05-14 22:01:13.360 16693-16701/com.wangrunxiang.glidedemo I/zygote64: After code cache collection, code=29KB, data=20KB 2018-05-14 22:01:13.360 16693-16701/com.wangrunxiang.glidedemo I/zygote64: Increasing code cache capacity to 128KB 2018-05-14 22:01:17.229 16693-16701/com.wangrunxiang.glidedemo I/zygote64: Do partial code cache collection, code=61KB, data=45KB 2018-05-14 22:01:17.230 16693-16701/com.wangrunxiang.glidedemo I/zygote64: After code cache collection, code=54KB, data=43KB 2018-05-14 22:01:17.230 16693-16701/com.wangrunxiang.glidedemo I/zygote64: Increasing code cache capacity to 256KB 2018-05-14 22:01:17.796 16693-16701/com.wangrunxiang.glidedemo I/zygote64: Compiler allocated 6MB to compile void android.view.ViewRootImpl.performTraversals()"><pre class="notranslate"><span class="pl-c1">2018</span>-<span class="pl-c1">05</span>-<span class="pl-c1">14</span> <span class="pl-c1">22</span><span class="pl-pds">:01</span><span class="pl-pds">:13</span><span class="pl-kos">.</span><span class="pl-c1">205</span> <span class="pl-c1">16693</span>-<span class="pl-c1">16693</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">wangrunxiang</span><span class="pl-kos">.</span><span class="pl-en">glidedemo</span> <span class="pl-c1">I</span>/<span class="pl-v">MyGlideModule</span>: <span class="pl-en">applyOptions</span> <span class="pl-c1">2018</span>-<span class="pl-c1">05</span>-<span class="pl-c1">14</span> <span class="pl-c1">22</span><span class="pl-pds">:01</span><span class="pl-pds">:13</span><span class="pl-kos">.</span><span class="pl-c1">275</span> <span class="pl-c1">16693</span>-<span class="pl-c1">16952</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">wangrunxiang</span><span class="pl-kos">.</span><span class="pl-en">glidedemo</span> <span class="pl-c1">D</span>/<span class="pl-v">NetworkSecurityConfig</span>: <span class="pl-v">No</span> <span class="pl-v">Network</span> <span class="pl-v">Security</span> <span class="pl-v">Config</span> <span class="pl-en">specified</span><span class="pl-kos">,</span> <span class="pl-en">using</span> <span class="pl-en">platform</span> <span class="pl-en">default</span> <span class="pl-c1">2018</span>-<span class="pl-c1">05</span>-<span class="pl-c1">14</span> <span class="pl-c1">22</span><span class="pl-pds">:01</span><span class="pl-pds">:13</span><span class="pl-kos">.</span><span class="pl-c1">359</span> <span class="pl-c1">16693</span>-<span class="pl-c1">16701</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">wangrunxiang</span><span class="pl-kos">.</span><span class="pl-en">glidedemo</span> <span class="pl-c1">I</span>/<span class="pl-en">zygote64</span>: <span class="pl-v">Do</span> <span class="pl-en">partial</span> <span class="pl-en">code</span> <span class="pl-en">cache</span> <span class="pl-s1">collection</span><span class="pl-kos">,</span> <span class="pl-s1">code</span><span class="pl-c1">=</span><span class="pl-c1">30</span><span class="pl-c1">KB</span><span class="pl-kos">,</span> <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-c1">21</span><span class="pl-c1">KB</span> <span class="pl-c1">2018</span>-<span class="pl-c1">05</span>-<span class="pl-c1">14</span> <span class="pl-c1">22</span><span class="pl-pds">:01</span><span class="pl-pds">:13</span><span class="pl-kos">.</span><span class="pl-c1">360</span> <span class="pl-c1">16693</span>-<span class="pl-c1">16701</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">wangrunxiang</span><span class="pl-kos">.</span><span class="pl-en">glidedemo</span> <span class="pl-c1">I</span>/<span class="pl-en">zygote64</span>: <span class="pl-v">After</span> <span class="pl-s1">code</span> <span class="pl-en">cache</span> <span class="pl-s1">collection</span><span class="pl-kos">,</span> <span class="pl-s1">code</span><span class="pl-c1">=</span><span class="pl-c1">29</span><span class="pl-c1">KB</span><span class="pl-kos">,</span> <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-c1">20</span><span class="pl-c1">KB</span> <span class="pl-c1">2018</span>-<span class="pl-c1">05</span>-<span class="pl-c1">14</span> <span class="pl-c1">22</span><span class="pl-pds">:01</span><span class="pl-pds">:13</span><span class="pl-kos">.</span><span class="pl-c1">360</span> <span class="pl-c1">16693</span>-<span class="pl-c1">16701</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">wangrunxiang</span><span class="pl-kos">.</span><span class="pl-en">glidedemo</span> <span class="pl-c1">I</span>/<span class="pl-en">zygote64</span>: <span class="pl-v">Increasing</span> <span class="pl-s1">code</span> <span class="pl-en">cache</span> <span class="pl-en">capacity</span> <span class="pl-en">to</span> <span class="pl-c1">128</span><span class="pl-c1">KB</span> <span class="pl-c1">2018</span>-<span class="pl-c1">05</span>-<span class="pl-c1">14</span> <span class="pl-c1">22</span><span class="pl-pds">:01</span><span class="pl-pds">:17</span><span class="pl-kos">.</span><span class="pl-c1">229</span> <span class="pl-c1">16693</span>-<span class="pl-c1">16701</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">wangrunxiang</span><span class="pl-kos">.</span><span class="pl-en">glidedemo</span> <span class="pl-c1">I</span>/<span class="pl-en">zygote64</span>: <span class="pl-v">Do</span> <span class="pl-en">partial</span> <span class="pl-s1">code</span> <span class="pl-en">cache</span> <span class="pl-s1">collection</span><span class="pl-kos">,</span> <span class="pl-s1">code</span><span class="pl-c1">=</span><span class="pl-c1">61</span><span class="pl-c1">KB</span><span class="pl-kos">,</span> <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-c1">45</span><span class="pl-c1">KB</span> <span class="pl-c1">2018</span>-<span class="pl-c1">05</span>-<span class="pl-c1">14</span> <span class="pl-c1">22</span><span class="pl-pds">:01</span><span class="pl-pds">:17</span><span class="pl-kos">.</span><span class="pl-c1">230</span> <span class="pl-c1">16693</span>-<span class="pl-c1">16701</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">wangrunxiang</span><span class="pl-kos">.</span><span class="pl-en">glidedemo</span> <span class="pl-c1">I</span>/<span class="pl-en">zygote64</span>: <span class="pl-v">After</span> <span class="pl-s1">code</span> <span class="pl-en">cache</span> <span class="pl-s1">collection</span><span class="pl-kos">,</span> <span class="pl-s1">code</span><span class="pl-c1">=</span><span class="pl-c1">54</span><span class="pl-c1">KB</span><span class="pl-kos">,</span> <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-c1">43</span><span class="pl-c1">KB</span> <span class="pl-c1">2018</span>-<span class="pl-c1">05</span>-<span class="pl-c1">14</span> <span class="pl-c1">22</span><span class="pl-pds">:01</span><span class="pl-pds">:17</span><span class="pl-kos">.</span><span class="pl-c1">230</span> <span class="pl-c1">16693</span>-<span class="pl-c1">16701</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">wangrunxiang</span><span class="pl-kos">.</span><span class="pl-en">glidedemo</span> <span class="pl-c1">I</span>/<span class="pl-en">zygote64</span>: <span class="pl-v">Increasing</span> <span class="pl-s1">code</span> <span class="pl-en">cache</span> <span class="pl-en">capacity</span> <span class="pl-en">to</span> <span class="pl-c1">256</span><span class="pl-c1">KB</span> <span class="pl-c1">2018</span>-<span class="pl-c1">05</span>-<span class="pl-c1">14</span> <span class="pl-c1">22</span><span class="pl-pds">:01</span><span class="pl-pds">:17</span><span class="pl-kos">.</span><span class="pl-c1">796</span> <span class="pl-c1">16693</span>-<span class="pl-c1">16701</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">wangrunxiang</span><span class="pl-kos">.</span><span class="pl-en">glidedemo</span> <span class="pl-c1">I</span>/<span class="pl-en">zygote64</span>: <span class="pl-v">Compiler</span> <span class="pl-en">allocated</span> <span class="pl-c1">6</span><span class="pl-c1">MB</span> <span class="pl-en">to</span> <span class="pl-en">compile</span> <span class="pl-en">void</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">view</span><span class="pl-kos">.</span><span class="pl-en">ViewRootImpl</span><span class="pl-kos">.</span><span class="pl-en">performTraversals</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions and Help</h2> <p dir="auto">I want to convert a custom layer to onnx format in pytorch 1.1.0. But I get an error<br> <code class="notranslate">RuntimeError: tuple appears in op that does not forward tuples</code>.</p> <p dir="auto">But in pytorch 0.4.1 it works.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">My code to reproduce the error:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch class CustomFunction(torch.autograd.Function): @staticmethod def symbolic(g, input): return g.op('Custom', input, outputs=2) @staticmethod def forward(ctx, input): return input, input class Custom(torch.nn.Module): def forward(self, input): return CustomFunction.apply(input) model = Custom() batch = torch.FloatTensor(1, 3) torch.onnx.export(model, batch, &quot;test.onnx&quot;, verbose=True)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">class</span> <span class="pl-v">CustomFunction</span>(<span class="pl-s1">torch</span>.<span class="pl-s1">autograd</span>.<span class="pl-v">Function</span>): <span class="pl-en">@<span class="pl-s1">staticmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">symbolic</span>(<span class="pl-s1">g</span>, <span class="pl-s1">input</span>): <span class="pl-k">return</span> <span class="pl-s1">g</span>.<span class="pl-en">op</span>(<span class="pl-s">'Custom'</span>, <span class="pl-s1">input</span>, <span class="pl-s1">outputs</span><span class="pl-c1">=</span><span class="pl-c1">2</span>) <span class="pl-en">@<span class="pl-s1">staticmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">ctx</span>, <span class="pl-s1">input</span>): <span class="pl-k">return</span> <span class="pl-s1">input</span>, <span class="pl-s1">input</span> <span class="pl-k">class</span> <span class="pl-v">Custom</span>(<span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">Module</span>): <span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">input</span>): <span class="pl-k">return</span> <span class="pl-v">CustomFunction</span>.<span class="pl-en">apply</span>(<span class="pl-s1">input</span>) <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">Custom</span>() <span class="pl-s1">batch</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-v">FloatTensor</span>(<span class="pl-c1">1</span>, <span class="pl-c1">3</span>) <span class="pl-s1">torch</span>.<span class="pl-s1">onnx</span>.<span class="pl-en">export</span>(<span class="pl-s1">model</span>, <span class="pl-s1">batch</span>, <span class="pl-s">"test.onnx"</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div> <h2 dir="auto">Expected behavior</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) &lt;ipython-input-7-6ff6d6df1bca&gt; in &lt;module&gt; 19 model = Custom() 20 batch = torch.FloatTensor(1, 3) ---&gt; 21 torch.onnx.export(model, batch, &quot;test.onnx&quot;, verbose=True) ~/anaconda3/lib/python3.7/site-packages/torch/onnx/__init__.py in export(*args, **kwargs) 23 def export(*args, **kwargs): 24 from torch.onnx import utils ---&gt; 25 return utils.export(*args, **kwargs) 26 27 ~/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py in export(model, args, f, export_params, verbose, training, input_names, output_names, aten, export_raw_ir, operator_export_type, opset_version, _retain_param_name, do_constant_folding, strip_doc_string) 129 operator_export_type=operator_export_type, opset_version=opset_version, 130 _retain_param_name=_retain_param_name, do_constant_folding=do_constant_folding, --&gt; 131 strip_doc_string=strip_doc_string) 132 133 ~/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py in _export(model, args, f, export_params, verbose, training, input_names, output_names, operator_export_type, export_type, example_outputs, propagate, opset_version, _retain_param_name, do_constant_folding, strip_doc_string) 361 output_names, operator_export_type, 362 example_outputs, propagate, --&gt; 363 _retain_param_name, do_constant_folding) 364 365 # TODO: Don't allocate a in-memory string for the protobuf ~/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py in _model_to_graph(model, args, verbose, training, input_names, output_names, operator_export_type, example_outputs, propagate, _retain_param_name, do_constant_folding, _disable_torch_constant_prop) 276 277 graph = _optimize_graph(graph, operator_export_type, --&gt; 278 _disable_torch_constant_prop=_disable_torch_constant_prop) 279 280 # NB: ONNX requires complete information about output types, which might be ~/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py in _optimize_graph(graph, operator_export_type, _disable_torch_constant_prop) 181 torch._C._jit_pass_erase_number_types(graph) 182 # onnx does not support tuples, so try to remove them --&gt; 183 torch._C._jit_pass_lower_all_tuples(graph) 184 torch._C._jit_pass_peephole(graph, True) 185 torch._C._jit_pass_lint(graph) RuntimeError: tuple appears in op that does not forward tuples (VisitNode at /pytorch/torch/csrc/jit/passes/lower_tuples.cpp:117) frame #0: std::function&lt;std::string ()&gt;::operator()() const + 0x11 (0x7f9b0c2b3441 in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libc10.so) frame #1: c10::Error::Error(c10::SourceLocation, std::string const&amp;) + 0x2a (0x7f9b0c2b2d7a in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libc10.so) frame #2: &lt;unknown function&gt; + 0xaf61f5 (0x7f9b0b4b41f5 in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so.1) frame #3: &lt;unknown function&gt; + 0xaf6464 (0x7f9b0b4b4464 in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so.1) frame #4: torch::jit::LowerAllTuples(std::shared_ptr&lt;torch::jit::Graph&gt;&amp;) + 0x13 (0x7f9b0b4b44a3 in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so.1) frame #5: &lt;unknown function&gt; + 0x3f9444 (0x7f9b4b87b444 in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch_python.so) frame #6: &lt;unknown function&gt; + 0x130fac (0x7f9b4b5b2fac in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch_python.so) frame #7: _PyMethodDef_RawFastCallKeywords + 0x264 (0x564a1c09b6e4 in /home/videoanalytics/anaconda3/bin/python) frame #8: _PyCFunction_FastCallKeywords + 0x21 (0x564a1c09b801 in /home/videoanalytics/anaconda3/bin/python) frame #9: _PyEval_EvalFrameDefault + 0x4e8c (0x564a1c0f72bc in /home/videoanalytics/anaconda3/bin/python) frame #10: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python) frame #11: _PyFunction_FastCallKeywords + 0x387 (0x564a1c09aa27 in /home/videoanalytics/anaconda3/bin/python) frame #12: _PyEval_EvalFrameDefault + 0x14ce (0x564a1c0f38fe in /home/videoanalytics/anaconda3/bin/python) frame #13: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python) frame #14: _PyFunction_FastCallKeywords + 0x325 (0x564a1c09a9c5 in /home/videoanalytics/anaconda3/bin/python) frame #15: _PyEval_EvalFrameDefault + 0x416 (0x564a1c0f2846 in /home/videoanalytics/anaconda3/bin/python) frame #16: _PyEval_EvalCodeWithName + 0xbb9 (0x564a1c038db9 in /home/videoanalytics/anaconda3/bin/python) frame #17: _PyFunction_FastCallKeywords + 0x387 (0x564a1c09aa27 in /home/videoanalytics/anaconda3/bin/python) frame #18: _PyEval_EvalFrameDefault + 0x14ce (0x564a1c0f38fe in /home/videoanalytics/anaconda3/bin/python) frame #19: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python) frame #20: _PyFunction_FastCallDict + 0x400 (0x564a1c039800 in /home/videoanalytics/anaconda3/bin/python) frame #21: _PyEval_EvalFrameDefault + 0x1e20 (0x564a1c0f4250 in /home/videoanalytics/anaconda3/bin/python) frame #22: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python) frame #23: _PyFunction_FastCallKeywords + 0x387 (0x564a1c09aa27 in /home/videoanalytics/anaconda3/bin/python) frame #24: _PyEval_EvalFrameDefault + 0x14ce (0x564a1c0f38fe in /home/videoanalytics/anaconda3/bin/python) frame #25: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python) frame #26: PyEval_EvalCodeEx + 0x44 (0x564a1c0393c4 in /home/videoanalytics/anaconda3/bin/python) frame #27: PyEval_EvalCode + 0x1c (0x564a1c0393ec in /home/videoanalytics/anaconda3/bin/python) frame #28: &lt;unknown function&gt; + 0x1e004d (0x564a1c10204d in /home/videoanalytics/anaconda3/bin/python) frame #29: _PyMethodDef_RawFastCallKeywords + 0xe9 (0x564a1c09b569 in /home/videoanalytics/anaconda3/bin/python) frame #30: _PyCFunction_FastCallKeywords + 0x21 (0x564a1c09b801 in /home/videoanalytics/anaconda3/bin/python) frame #31: _PyEval_EvalFrameDefault + 0x4755 (0x564a1c0f6b85 in /home/videoanalytics/anaconda3/bin/python) frame #32: _PyGen_Send + 0x2a2 (0x564a1c094672 in /home/videoanalytics/anaconda3/bin/python) frame #33: _PyEval_EvalFrameDefault + 0x1a6d (0x564a1c0f3e9d in /home/videoanalytics/anaconda3/bin/python) frame #34: _PyGen_Send + 0x2a2 (0x564a1c094672 in /home/videoanalytics/anaconda3/bin/python) frame #35: _PyEval_EvalFrameDefault + 0x1a6d (0x564a1c0f3e9d in /home/videoanalytics/anaconda3/bin/python) frame #36: _PyGen_Send + 0x2a2 (0x564a1c094672 in /home/videoanalytics/anaconda3/bin/python) frame #37: _PyMethodDef_RawFastCallKeywords + 0x8c (0x564a1c09b50c in /home/videoanalytics/anaconda3/bin/python) frame #38: _PyMethodDescr_FastCallKeywords + 0x4f (0x564a1c09b86f in /home/videoanalytics/anaconda3/bin/python) frame #39: _PyEval_EvalFrameDefault + 0x4c4c (0x564a1c0f707c in /home/videoanalytics/anaconda3/bin/python) frame #40: _PyFunction_FastCallKeywords + 0xfb (0x564a1c09a79b in /home/videoanalytics/anaconda3/bin/python) frame #41: _PyEval_EvalFrameDefault + 0x416 (0x564a1c0f2846 in /home/videoanalytics/anaconda3/bin/python) frame #42: _PyFunction_FastCallKeywords + 0xfb (0x564a1c09a79b in /home/videoanalytics/anaconda3/bin/python) frame #43: _PyEval_EvalFrameDefault + 0x6a0 (0x564a1c0f2ad0 in /home/videoanalytics/anaconda3/bin/python) frame #44: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python) frame #45: _PyFunction_FastCallDict + 0x400 (0x564a1c039800 in /home/videoanalytics/anaconda3/bin/python) frame #46: _PyObject_Call_Prepend + 0x63 (0x564a1c050c43 in /home/videoanalytics/anaconda3/bin/python) frame #47: PyObject_Call + 0x6e (0x564a1c04595e in /home/videoanalytics/anaconda3/bin/python) frame #48: _PyEval_EvalFrameDefault + 0x1e20 (0x564a1c0f4250 in /home/videoanalytics/anaconda3/bin/python) frame #49: _PyEval_EvalCodeWithName + 0x5da (0x564a1c0387da in /home/videoanalytics/anaconda3/bin/python) frame #50: _PyFunction_FastCallKeywords + 0x387 (0x564a1c09aa27 in /home/videoanalytics/anaconda3/bin/python) frame #51: _PyEval_EvalFrameDefault + 0x14ce (0x564a1c0f38fe in /home/videoanalytics/anaconda3/bin/python) frame #52: &lt;unknown function&gt; + 0x171cc6 (0x564a1c093cc6 in /home/videoanalytics/anaconda3/bin/python) frame #53: &lt;unknown function&gt; + 0x171ecb (0x564a1c093ecb in /home/videoanalytics/anaconda3/bin/python) frame #54: _PyMethodDef_RawFastCallKeywords + 0xe9 (0x564a1c09b569 in /home/videoanalytics/anaconda3/bin/python) frame #55: _PyCFunction_FastCallKeywords + 0x21 (0x564a1c09b801 in /home/videoanalytics/anaconda3/bin/python) frame #56: _PyEval_EvalFrameDefault + 0x4755 (0x564a1c0f6b85 in /home/videoanalytics/anaconda3/bin/python) frame #57: _PyEval_EvalCodeWithName + 0x5da (0x564a1c0387da in /home/videoanalytics/anaconda3/bin/python) frame #58: _PyFunction_FastCallKeywords + 0x387 (0x564a1c09aa27 in /home/videoanalytics/anaconda3/bin/python) frame #59: _PyEval_EvalFrameDefault + 0x6a0 (0x564a1c0f2ad0 in /home/videoanalytics/anaconda3/bin/python) frame #60: &lt;unknown function&gt; + 0x171cc6 (0x564a1c093cc6 in /home/videoanalytics/anaconda3/bin/python) frame #61: &lt;unknown function&gt; + 0x171ecb (0x564a1c093ecb in /home/videoanalytics/anaconda3/bin/python) frame #62: _PyMethodDef_RawFastCallKeywords + 0xe9 (0x564a1c09b569 in /home/videoanalytics/anaconda3/bin/python) frame #63: _PyCFunction_FastCallKeywords + 0x21 (0x564a1c09b801 in /home/videoanalytics/anaconda3/bin/python)"><pre class="notranslate"><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">RuntimeError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-c1">6</span><span class="pl-s1">ff6d6df1bca</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-c1">19</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">Custom</span>() <span class="pl-c1">20</span> <span class="pl-s1">batch</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-v">FloatTensor</span>(<span class="pl-c1">1</span>, <span class="pl-c1">3</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">21</span> <span class="pl-s1">torch</span>.<span class="pl-s1">onnx</span>.<span class="pl-en">export</span>(<span class="pl-s1">model</span>, <span class="pl-s1">batch</span>, <span class="pl-s">"test.onnx"</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">anaconda3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">torch</span><span class="pl-c1">/</span><span class="pl-s1">onnx</span><span class="pl-c1">/</span><span class="pl-s1">__init__</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">export</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">23</span> <span class="pl-k">def</span> <span class="pl-en">export</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-c1">24</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span>.<span class="pl-s1">onnx</span> <span class="pl-k">import</span> <span class="pl-s1">utils</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">25</span> <span class="pl-s1">return</span> <span class="pl-s1">utils</span>.<span class="pl-en">export</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">26</span> <span class="pl-c1">27</span> <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">anaconda3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">torch</span><span class="pl-c1">/</span><span class="pl-s1">onnx</span><span class="pl-c1">/</span><span class="pl-s1">utils</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">export</span>(<span class="pl-s1">model</span>, <span class="pl-s1">args</span>, <span class="pl-s1">f</span>, <span class="pl-s1">export_params</span>, <span class="pl-s1">verbose</span>, <span class="pl-s1">training</span>, <span class="pl-s1">input_names</span>, <span class="pl-s1">output_names</span>, <span class="pl-s1">aten</span>, <span class="pl-s1">export_raw_ir</span>, <span class="pl-s1">operator_export_type</span>, <span class="pl-s1">opset_version</span>, <span class="pl-s1">_retain_param_name</span>, <span class="pl-s1">do_constant_folding</span>, <span class="pl-s1">strip_doc_string</span>) <span class="pl-c1">129</span> <span class="pl-s1">operator_export_type</span><span class="pl-c1">=</span><span class="pl-s1">operator_export_type</span>, <span class="pl-s1">opset_version</span><span class="pl-c1">=</span><span class="pl-s1">opset_version</span>, <span class="pl-c1">130</span> <span class="pl-s1">_retain_param_name</span><span class="pl-c1">=</span><span class="pl-s1">_retain_param_name</span>, <span class="pl-s1">do_constant_folding</span><span class="pl-c1">=</span><span class="pl-s1">do_constant_folding</span>, <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">131</span> <span class="pl-s1">strip_doc_string</span><span class="pl-c1">=</span><span class="pl-s1">strip_doc_string</span>) <span class="pl-c1">132</span> <span class="pl-c1">133</span> <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">anaconda3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">torch</span><span class="pl-c1">/</span><span class="pl-s1">onnx</span><span class="pl-c1">/</span><span class="pl-s1">utils</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_export</span>(<span class="pl-s1">model</span>, <span class="pl-s1">args</span>, <span class="pl-s1">f</span>, <span class="pl-s1">export_params</span>, <span class="pl-s1">verbose</span>, <span class="pl-s1">training</span>, <span class="pl-s1">input_names</span>, <span class="pl-s1">output_names</span>, <span class="pl-s1">operator_export_type</span>, <span class="pl-s1">export_type</span>, <span class="pl-s1">example_outputs</span>, <span class="pl-s1">propagate</span>, <span class="pl-s1">opset_version</span>, <span class="pl-s1">_retain_param_name</span>, <span class="pl-s1">do_constant_folding</span>, <span class="pl-s1">strip_doc_string</span>) <span class="pl-c1">361</span> <span class="pl-s1">output_names</span>, <span class="pl-s1">operator_export_type</span>, <span class="pl-c1">362</span> <span class="pl-s1">example_outputs</span>, <span class="pl-s1">propagate</span>, <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">363</span> <span class="pl-s1">_retain_param_name</span>, <span class="pl-s1">do_constant_folding</span>) <span class="pl-c1">364</span> <span class="pl-c1">365</span> <span class="pl-c"># TODO: Don't allocate a in-memory string for the protobuf</span> <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">anaconda3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">torch</span><span class="pl-c1">/</span><span class="pl-s1">onnx</span><span class="pl-c1">/</span><span class="pl-s1">utils</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_model_to_graph</span>(<span class="pl-s1">model</span>, <span class="pl-s1">args</span>, <span class="pl-s1">verbose</span>, <span class="pl-s1">training</span>, <span class="pl-s1">input_names</span>, <span class="pl-s1">output_names</span>, <span class="pl-s1">operator_export_type</span>, <span class="pl-s1">example_outputs</span>, <span class="pl-s1">propagate</span>, <span class="pl-s1">_retain_param_name</span>, <span class="pl-s1">do_constant_folding</span>, <span class="pl-s1">_disable_torch_constant_prop</span>) <span class="pl-c1">276</span> <span class="pl-c1">277</span> <span class="pl-s1">graph</span> <span class="pl-c1">=</span> <span class="pl-en">_optimize_graph</span>(<span class="pl-s1">graph</span>, <span class="pl-s1">operator_export_type</span>, <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">278</span> <span class="pl-s1">_disable_torch_constant_prop</span><span class="pl-c1">=</span><span class="pl-s1">_disable_torch_constant_prop</span>) <span class="pl-c1">279</span> <span class="pl-c1">280</span> <span class="pl-c"># NB: ONNX requires complete information about output types, which might be</span> <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">anaconda3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">torch</span><span class="pl-c1">/</span><span class="pl-s1">onnx</span><span class="pl-c1">/</span><span class="pl-s1">utils</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_optimize_graph</span>(<span class="pl-s1">graph</span>, <span class="pl-s1">operator_export_type</span>, <span class="pl-s1">_disable_torch_constant_prop</span>) <span class="pl-c1">181</span> <span class="pl-s1">torch</span>.<span class="pl-s1">_C</span>.<span class="pl-en">_jit_pass_erase_number_types</span>(<span class="pl-s1">graph</span>) <span class="pl-c1">182</span> <span class="pl-c"># onnx does not support tuples, so try to remove them</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">183</span> <span class="pl-s1">torch</span>.<span class="pl-s1">_C</span>.<span class="pl-en">_jit_pass_lower_all_tuples</span>(<span class="pl-s1">graph</span>) <span class="pl-c1">184</span> <span class="pl-s1">torch</span>.<span class="pl-s1">_C</span>.<span class="pl-en">_jit_pass_peephole</span>(<span class="pl-s1">graph</span>, <span class="pl-c1">True</span>) <span class="pl-c1">185</span> <span class="pl-s1">torch</span>.<span class="pl-s1">_C</span>.<span class="pl-en">_jit_pass_lint</span>(<span class="pl-s1">graph</span>) <span class="pl-v">RuntimeError</span>: <span class="pl-s1">tuple</span> <span class="pl-s1">appears</span> <span class="pl-c1">in</span> <span class="pl-s1">op</span> <span class="pl-s1">that</span> <span class="pl-s1">does</span> <span class="pl-c1">not</span> <span class="pl-s1">forward</span> <span class="pl-en">tuples</span> (<span class="pl-v">VisitNode</span> <span class="pl-s1">at</span> <span class="pl-c1">/</span><span class="pl-s1">pytorch</span><span class="pl-c1">/</span><span class="pl-s1">torch</span><span class="pl-c1">/</span><span class="pl-s1">csrc</span><span class="pl-c1">/</span><span class="pl-s1">jit</span><span class="pl-c1">/</span><span class="pl-s1">passes</span><span class="pl-c1">/</span><span class="pl-s1">lower_tuples</span>.<span class="pl-s1">cpp</span>:<span class="pl-c1">117</span>) <span class="pl-s1">frame</span> <span class="pl-c">#0: std::function&lt;std::string ()&gt;::operator()() const + 0x11 (0x7f9b0c2b3441 in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libc10.so)</span> <span class="pl-s1">frame</span> <span class="pl-c">#1: c10::Error::Error(c10::SourceLocation, std::string const&amp;) + 0x2a (0x7f9b0c2b2d7a in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libc10.so)</span> <span class="pl-s1">frame</span> <span class="pl-c">#2: &lt;unknown function&gt; + 0xaf61f5 (0x7f9b0b4b41f5 in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so.1)</span> <span class="pl-s1">frame</span> <span class="pl-c">#3: &lt;unknown function&gt; + 0xaf6464 (0x7f9b0b4b4464 in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so.1)</span> <span class="pl-s1">frame</span> <span class="pl-c">#4: torch::jit::LowerAllTuples(std::shared_ptr&lt;torch::jit::Graph&gt;&amp;) + 0x13 (0x7f9b0b4b44a3 in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so.1)</span> <span class="pl-s1">frame</span> <span class="pl-c">#5: &lt;unknown function&gt; + 0x3f9444 (0x7f9b4b87b444 in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch_python.so)</span> <span class="pl-s1">frame</span> <span class="pl-c">#6: &lt;unknown function&gt; + 0x130fac (0x7f9b4b5b2fac in /home/videoanalytics/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch_python.so)</span> <span class="pl-s1">frame</span> <span class="pl-c">#7: _PyMethodDef_RawFastCallKeywords + 0x264 (0x564a1c09b6e4 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#8: _PyCFunction_FastCallKeywords + 0x21 (0x564a1c09b801 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#9: _PyEval_EvalFrameDefault + 0x4e8c (0x564a1c0f72bc in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#10: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#11: _PyFunction_FastCallKeywords + 0x387 (0x564a1c09aa27 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#12: _PyEval_EvalFrameDefault + 0x14ce (0x564a1c0f38fe in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#13: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#14: _PyFunction_FastCallKeywords + 0x325 (0x564a1c09a9c5 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#15: _PyEval_EvalFrameDefault + 0x416 (0x564a1c0f2846 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#16: _PyEval_EvalCodeWithName + 0xbb9 (0x564a1c038db9 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#17: _PyFunction_FastCallKeywords + 0x387 (0x564a1c09aa27 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#18: _PyEval_EvalFrameDefault + 0x14ce (0x564a1c0f38fe in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#19: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#20: _PyFunction_FastCallDict + 0x400 (0x564a1c039800 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#21: _PyEval_EvalFrameDefault + 0x1e20 (0x564a1c0f4250 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#22: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#23: _PyFunction_FastCallKeywords + 0x387 (0x564a1c09aa27 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#24: _PyEval_EvalFrameDefault + 0x14ce (0x564a1c0f38fe in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#25: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#26: PyEval_EvalCodeEx + 0x44 (0x564a1c0393c4 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#27: PyEval_EvalCode + 0x1c (0x564a1c0393ec in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#28: &lt;unknown function&gt; + 0x1e004d (0x564a1c10204d in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#29: _PyMethodDef_RawFastCallKeywords + 0xe9 (0x564a1c09b569 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#30: _PyCFunction_FastCallKeywords + 0x21 (0x564a1c09b801 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#31: _PyEval_EvalFrameDefault + 0x4755 (0x564a1c0f6b85 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#32: _PyGen_Send + 0x2a2 (0x564a1c094672 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#33: _PyEval_EvalFrameDefault + 0x1a6d (0x564a1c0f3e9d in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#34: _PyGen_Send + 0x2a2 (0x564a1c094672 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#35: _PyEval_EvalFrameDefault + 0x1a6d (0x564a1c0f3e9d in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#36: _PyGen_Send + 0x2a2 (0x564a1c094672 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#37: _PyMethodDef_RawFastCallKeywords + 0x8c (0x564a1c09b50c in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#38: _PyMethodDescr_FastCallKeywords + 0x4f (0x564a1c09b86f in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#39: _PyEval_EvalFrameDefault + 0x4c4c (0x564a1c0f707c in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#40: _PyFunction_FastCallKeywords + 0xfb (0x564a1c09a79b in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#41: _PyEval_EvalFrameDefault + 0x416 (0x564a1c0f2846 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#42: _PyFunction_FastCallKeywords + 0xfb (0x564a1c09a79b in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#43: _PyEval_EvalFrameDefault + 0x6a0 (0x564a1c0f2ad0 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#44: _PyEval_EvalCodeWithName + 0x2f9 (0x564a1c0384f9 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#45: _PyFunction_FastCallDict + 0x400 (0x564a1c039800 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#46: _PyObject_Call_Prepend + 0x63 (0x564a1c050c43 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#47: PyObject_Call + 0x6e (0x564a1c04595e in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#48: _PyEval_EvalFrameDefault + 0x1e20 (0x564a1c0f4250 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#49: _PyEval_EvalCodeWithName + 0x5da (0x564a1c0387da in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#50: _PyFunction_FastCallKeywords + 0x387 (0x564a1c09aa27 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#51: _PyEval_EvalFrameDefault + 0x14ce (0x564a1c0f38fe in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#52: &lt;unknown function&gt; + 0x171cc6 (0x564a1c093cc6 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#53: &lt;unknown function&gt; + 0x171ecb (0x564a1c093ecb in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#54: _PyMethodDef_RawFastCallKeywords + 0xe9 (0x564a1c09b569 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#55: _PyCFunction_FastCallKeywords + 0x21 (0x564a1c09b801 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#56: _PyEval_EvalFrameDefault + 0x4755 (0x564a1c0f6b85 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#57: _PyEval_EvalCodeWithName + 0x5da (0x564a1c0387da in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#58: _PyFunction_FastCallKeywords + 0x387 (0x564a1c09aa27 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#59: _PyEval_EvalFrameDefault + 0x6a0 (0x564a1c0f2ad0 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#60: &lt;unknown function&gt; + 0x171cc6 (0x564a1c093cc6 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#61: &lt;unknown function&gt; + 0x171ecb (0x564a1c093ecb in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#62: _PyMethodDef_RawFastCallKeywords + 0xe9 (0x564a1c09b569 in /home/videoanalytics/anaconda3/bin/python)</span> <span class="pl-s1">frame</span> <span class="pl-c">#63: _PyCFunction_FastCallKeywords + 0x21 (0x564a1c09b801 in /home/videoanalytics/anaconda3/bin/python)</span></pre></div> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li> <p dir="auto">PyTorch version: 1.1.0</p> </li> <li> <p dir="auto">Is debug build: No</p> </li> <li> <p dir="auto">CUDA used to build PyTorch: 9.0.176</p> </li> <li> <p dir="auto">OS: Ubuntu 18.04.2 LTS</p> </li> <li> <p dir="auto">GCC version: (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0</p> </li> <li> <p dir="auto">CMake version: Could not collect</p> </li> <li> <p dir="auto">Python version: 3.7</p> </li> <li> <p dir="auto">Is CUDA available: Yes</p> </li> <li> <p dir="auto">CUDA runtime version: Could not collect</p> </li> <li> <p dir="auto">GPU models and configuration: GPU 0: GeForce RTX 2080 Ti</p> </li> <li> <p dir="auto">Nvidia driver version: 418.56</p> </li> <li> <p dir="auto">cuDNN version: Could not collect</p> </li> <li> <p dir="auto">Versions of relevant libraries:<br> onnx==1.5.0<br> [pip] numpy==1.14.6<br> [pip] numpydoc==0.8.0<br> [pip] torch==1.1.0<br> [pip] torchvision==0.2.2.post3<br> [conda] blas 1.0 mkl<br> [conda] mkl 2019.3 199<br> [conda] mkl-service 1.1.2 py37he904b0f_5<br> [conda] mkl_fft 1.0.10 py37ha843d7b_0<br> [conda] mkl_random 1.0.2 py37hd81dba3_0<br> [conda] torch 1.1.0 pypi_0 pypi<br> [conda] torchvision 0.2.2.post3 pypi_0 pypi</p> </li> </ul> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/suo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/suo">@suo</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/houseroad/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/houseroad">@houseroad</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spandantiwari/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spandantiwari">@spandantiwari</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lara-hdr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lara-hdr">@lara-hdr</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/BowenBao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/BowenBao">@BowenBao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/neginraoof/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/neginraoof">@neginraoof</a></p>
<p dir="auto"><strong>Summary by <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>.</strong> If you are using multiprocessing code, and are in Python 3, you can work around this problem by adding <code class="notranslate">mp.set_start_method('spawn')</code> to your script. Otherwise, to work around, you need to make sure there are no CUDA calls prior to starting your subprocesses; <code class="notranslate">torch.cuda.is_available()</code> and <code class="notranslate">torch.manual_seed</code> both count as a CUDA calls in PyTorch 0.2.0.</p> <hr> <p dir="auto">Run <a href="https://github.com/ikostrikov/pytorch-a3c">https://github.com/ikostrikov/pytorch-a3c</a> using pytorch 0.2.0, python 2.7 with error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="terminate called after throwing an instance of 'std::runtime_error' what(): CUDA error (3): initialization error"><pre class="notranslate"><code class="notranslate">terminate called after throwing an instance of 'std::runtime_error' what(): CUDA error (3): initialization error </code></pre></div> <p dir="auto">occur on this those lines:<br> <a href="https://github.com/ikostrikov/pytorch-a3c/blob/842ec4da82df3d2dda02943d881c6b577f078ab9/train.py#L105-L111">https://github.com/ikostrikov/pytorch-a3c/blob/842ec4da82df3d2dda02943d881c6b577f078ab9/train.py#L105-L111</a></p> <p dir="auto">while using pytorch 0.12.0 works fine</p>
0
<p dir="auto">There is another one like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="80883823" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/500" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/500/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/500">#500</a>. Alas, I can't load up a screenshot. :-/</p>
<p dir="auto">This issue is to track Syntax error popping up in the challenges.</p>
1
<p dir="auto">Hi, two question about glide.<br> 1、How to clear cache of a specific url?<br> clearDiskCache() and clearMemory() will chear all cache, but this is not what I want?<br> 2、How to get bitmap?</p>
<p dir="auto"><strong>Glide Version</strong>: 3.7.0<br> <strong>Device/Android Version</strong>: Android 4.4.2 - wolfgang AT-AS55HD1</p> <p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>: RecyclerAdapter</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(context) .load(APIRoutes.getProjectBlobURL(project.getProjectID(), accountConfiguration.peekLocalAccountToken())) .placeholder(R.drawable.ic_image_black_24dp) .into(holder.projectImage);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">context</span>) .<span class="pl-en">load</span>(<span class="pl-smi">APIRoutes</span>.<span class="pl-en">getProjectBlobURL</span>(<span class="pl-s1">project</span>.<span class="pl-en">getProjectID</span>(), <span class="pl-s1">accountConfiguration</span>.<span class="pl-en">peekLocalAccountToken</span>())) .<span class="pl-en">placeholder</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">ic_image_black_24dp</span>) .<span class="pl-en">into</span>(<span class="pl-s1">holder</span>.<span class="pl-s1">projectImage</span>);</pre></div> <p dir="auto"><strong>Layout XML</strong>:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;ImageView android:id=&quot;@+id/project_image&quot; app:srcCompat=&quot;@drawable/ic_image_black_24dp&quot; android:adjustViewBounds=&quot;true&quot; android:layout_width=&quot;@dimen/material_list_avatar_size&quot; android:layout_height=&quot;@dimen/material_list_avatar_size&quot; android:layout_marginLeft=&quot;@dimen/material_baseline_grid_1x&quot; android:layout_marginBottom=&quot;@dimen/material_baseline_grid_1x&quot; android:layout_marginTop=&quot;@dimen/material_baseline_grid_1x&quot; app:layout_constraintLeft_toLeftOf=&quot;parent&quot; app:layout_constraintTop_toTopOf=&quot;parent&quot; app:layout_constraintBottom_toBottomOf=&quot;parent&quot;/&gt;"><pre class="notranslate">&lt;<span class="pl-ent">ImageView</span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/project_image<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">srcCompat</span>=<span class="pl-s"><span class="pl-pds">"</span>@drawable/ic_image_black_24dp<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">adjustViewBounds</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/material_list_avatar_size<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/material_list_avatar_size<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_marginLeft</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/material_baseline_grid_1x<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_marginBottom</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/material_baseline_grid_1x<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_marginTop</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/material_baseline_grid_1x<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintLeft_toLeftOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintTop_toTopOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintBottom_toBottomOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span>/&gt;</pre></div> <p dir="auto"><strong>Stack trace / LogCat</strong>:</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="paste stack trace and/or log here"><pre class="notranslate"><span class="pl-en">paste</span> <span class="pl-en">stack</span> <span class="pl-en">trace</span> <span class="pl-k">and</span>/<span class="pl-en">or</span> <span class="pl-en">log</span> <span class="pl-en">here</span></pre></div>
0
<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>.): First attempted via #kubernetes-users on slack</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.): internal aws load balancer</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):<br> Feature</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3&quot;, GitVersion:&quot;v1.3.5+b0deb2e&quot;, GitCommit:&quot;b0deb2eb8f4037421077f77cb163dbb4c0a2a9f5&quot;, GitTreeState:&quot;not a git tree&quot;, BuildDate:&quot;2016-08-21T12:21:36Z&quot;, GoVersion:&quot;go1.7&quot;, Compiler:&quot;gc&quot;, Platform:&quot;darwin/amd64&quot;} Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3&quot;, GitVersion:&quot;v1.3.5+coreos.0&quot;, GitCommit:&quot;d7a04b1c6044647f5919fadf3cecb9ee70c10fc5&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-08-15T21:01:42Z&quot;, GoVersion:&quot;go1.6.2&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.5+b0deb2e", GitCommit:"b0deb2eb8f4037421077f77cb163dbb4c0a2a9f5", GitTreeState:"not a git tree", BuildDate:"2016-08-21T12:21:36Z", GoVersion:"go1.7", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.5+coreos.0", GitCommit:"d7a04b1c6044647f5919fadf3cecb9ee70c10fc5", GitTreeState:"clean", BuildDate:"2016-08-15T21:01:42Z", GoVersion:"go1.6.2", 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>: AWS</li> <li><strong>OS</strong> (e.g. from /etc/os-release): CoreOS</li> <li><strong>Install Method</strong>: kube-aws</li> </ul> <p dir="auto"><strong>Our use case</strong>:<br> We are extending our on premise infrastructure into the AWS Cloud. It's meant to be <em>internal-only</em> and we're taking measures to guarantee that security.</p> <p dir="auto"><strong>Feature Request</strong>:<br> A method to guarantee that the environment <em>stays</em> internal and does not accidentally get exposed externally.</p> <p dir="auto"><strong>Possible Methods I've explored</strong>:</p> <ul dir="auto"> <li>AWS IAM Policy to restrict kubernetes from creating a public ELB</li> <li>AWS Security Group limiting client source IPs</li> </ul> <p dir="auto">I was speaking with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/justinsb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/justinsb">@justinsb</a> on #kubernetes-users on slack and he suggested I submit a request for this here.</p>
<p dir="auto">I haven't found a way of pausing/decommissioning a node, have all its containers stopped and recreated elsewhere in the cluster.</p> <p dir="auto">This would be great for node upgrades (hardware, OS, etc.).</p> <p dir="auto">Obviously, the node would have to be <em>blacklisted</em> so that no new containers are scheduled to it.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jmreicha/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jmreicha">@jmreicha</a></p>
0
<p dir="auto">Hi bro,<br> The below is my stacktrace.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="12-18 23:44:05.602: D/dalvikvm(1966): VFY: replacing opcode 0x6e at 0x000a 12-18 23:44:05.670: D/dalvikvm(1966): GC_FOR_ALLOC freed 290K, 8% free 5596K/6020K, paused 3ms, total 4ms 12-18 23:44:06.294: D/dalvikvm(1966): GC_FOR_ALLOC freed 321K, 8% free 5750K/6208K, paused 2ms, total 3ms 12-18 23:44:06.298: D/dalvikvm(1966): GC_FOR_ALLOC freed 21K, 8% free 5875K/6356K, paused 3ms, total 3ms 12-18 23:44:06.386: D/dalvikvm(1966): GC_FOR_ALLOC freed 38K, 9% free 5915K/6436K, paused 4ms, total 4ms 12-18 23:44:06.386: I/dalvikvm-heap(1966): Grow heap (frag case) to 6.059MB for 162024-byte allocation 12-18 23:44:06.390: D/dalvikvm(1966): GC_FOR_ALLOC freed 78K, 10% free 5995K/6596K, paused 3ms, total 3ms 12-18 23:44:06.494: D/dalvikvm(1966): GC_FOR_ALLOC freed &lt;1K, 10% free 5995K/6596K, paused 4ms, total 4ms 12-18 23:44:06.494: I/dalvikvm-heap(1966): Grow heap (frag case) to 6.293MB for 325864-byte allocation 12-18 23:44:06.498: D/dalvikvm(1966): GC_FOR_ALLOC freed 158K, 12% free 6155K/6916K, paused 6ms, total 6ms 12-18 23:44:06.610: D/dalvikvm(1966): GC_FOR_ALLOC freed 1K, 12% free 6155K/6916K, paused 2ms, total 2ms 12-18 23:44:06.638: I/dalvikvm-heap(1966): Grow heap (frag case) to 6.762MB for 653544-byte allocation 12-18 23:44:06.650: D/dalvikvm(1966): GC_FOR_ALLOC freed 318K, 15% free 6475K/7556K, paused 11ms, total 11ms 12-18 23:44:06.754: D/dalvikvm(1966): GC_FOR_ALLOC freed 4K, 15% free 6475K/7556K, paused 2ms, total 2ms 12-18 23:44:06.758: I/dalvikvm-heap(1966): Grow heap (frag case) to 7.700MB for 1308904-byte allocation 12-18 23:44:06.762: D/dalvikvm(1966): GC_FOR_ALLOC freed 638K, 20% free 7115K/8836K, paused 3ms, total 3ms 12-18 23:44:06.894: D/dalvikvm(1966): GC_FOR_ALLOC freed 8K, 20% free 7115K/8836K, paused 2ms, total 2ms 12-18 23:44:06.898: I/dalvikvm-heap(1966): Grow heap (frag case) to 9.575MB for 2619624-byte allocation 12-18 23:44:06.902: D/dalvikvm(1966): GC_FOR_ALLOC freed 1278K, 27% free 8395K/11396K, paused 3ms, total 3ms 12-18 23:44:07.662: D/dalvikvm(1966): GC_FOR_ALLOC freed 17K, 27% free 8395K/11396K, paused 9ms, total 9ms 12-18 23:44:07.678: I/dalvikvm-heap(1966): Grow heap (frag case) to 13.325MB for 5241064-byte allocation 12-18 23:44:07.690: D/dalvikvm(1966): GC_FOR_ALLOC freed 2558K, 34% free 10955K/16516K, paused 7ms, total 7ms 12-18 23:44:09.762: D/dalvikvm(1966): GC_FOR_ALLOC freed 33K, 34% free 10955K/16516K, paused 8ms, total 8ms 12-18 23:44:09.798: I/dalvikvm-heap(1966): Grow heap (frag case) to 20.825MB for 10483944-byte allocation 12-18 23:44:09.806: D/dalvikvm(1966): GC_FOR_ALLOC freed 5118K, 40% free 16075K/26756K, paused 5ms, total 5ms 12-18 23:44:14.278: D/dalvikvm(1966): GC_FOR_ALLOC freed 64K, 40% free 16075K/26756K, paused 11ms, total 11ms 12-18 23:44:14.334: I/dalvikvm-heap(1966): Grow heap (frag case) to 35.825MB for 20969704-byte allocation 12-18 23:44:14.342: D/dalvikvm(1966): GC_FOR_ALLOC freed 10238K, 45% free 26315K/47236K, paused 4ms, total 4ms 12-18 23:44:19.198: D/dalvikvm(1966): GC_FOR_ALLOC freed 124K, 45% free 26315K/47236K, paused 11ms, total 12ms 12-18 23:44:19.274: I/dalvikvm-heap(1966): Grow heap (frag case) to 65.825MB for 41941224-byte allocation 12-18 23:44:19.286: D/dalvikvm(1966): GC_FOR_ALLOC freed 20478K, 47% free 46795K/88196K, paused 3ms, total 3ms 12-18 23:44:20.638: D/dalvikvm(1966): GC_FOR_ALLOC freed 39K, 47% free 46799K/88196K, paused 8ms, total 8ms 12-18 23:44:20.646: I/dalvikvm-heap(1966): Grow heap (frag case) to 68.812MB for 24097205-byte allocation 12-18 23:44:20.670: D/dalvikvm(1966): GC_FOR_ALLOC freed 40974K, 2% free 29357K/29836K, paused 11ms, total 11ms 12-18 23:44:20.694: D/dalvikvm(1966): GC_FOR_ALLOC freed 4K, 2% free 29360K/29836K, paused 3ms, total 3ms 12-18 23:44:20.726: I/dalvikvm-heap(1966): Grow heap (frag case) to 76.801MB for 50331660-byte allocation 12-18 23:44:20.730: D/dalvikvm(1966): GC_FOR_ALLOC freed 0K, 1% free 78513K/78992K, paused 3ms, total 3ms 12-18 23:44:20.730: I/dalvikvm-heap(1966): Forcing collection of SoftReferences for 201326604-byte allocation 12-18 23:44:20.738: D/dalvikvm(1966): GC_BEFORE_OOM freed 69K, 1% free 78443K/78992K, paused 9ms, total 9ms 12-18 23:44:20.738: E/dalvikvm-heap(1966): Out of memory on a 201326604-byte allocation. 12-18 23:44:20.738: I/dalvikvm(1966): &quot;fifo-pool-thread-0&quot; prio=5 tid=12 RUNNABLE 12-18 23:44:20.738: I/dalvikvm(1966): | group=&quot;main&quot; sCount=0 dsCount=0 obj=0xa51056c8 self=0xb8a52078 12-18 23:44:20.738: I/dalvikvm(1966): | sysTid=2057 nice=10 sched=3/0 cgrp=[fopen-error:2] handle=-1196952016 12-18 23:44:20.738: I/dalvikvm(1966): | state=R schedstat=( 2201918736 628603171 6972 ) utm=106 stm=113 core=0 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.gifdecoder.GifDecoder.setData(GifDecoder.java:~381) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gif.GifResourceDecoder.decodeFirstFrame(GifResourceDecoder.java:89) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:75) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:61) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:1) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decodeGifWrapper(GifBitmapWrapperResourceDecoder.java:101) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decodeStream(GifBitmapWrapperResourceDecoder.java:87) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:71) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:61) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:1) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.engine.DecodeJob.decodeFromSourceData(DecodeJob.java:189) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.engine.DecodeJob.decodeSource(DecodeJob.java:176) 12-18 23:44:20.742: I/dalvikvm(1966): at com.bumptech.glide.load.engine.DecodeJob.decodeFromSource(DecodeJob.java:127) 12-18 23:44:20.742: I/dalvikvm(1966): at com.bumptech.glide.load.engine.EngineRunnable.decodeFromSource(EngineRunnable.java:122) 12-18 23:44:20.742: I/dalvikvm(1966): at com.bumptech.glide.load.engine.EngineRunnable.decode(EngineRunnable.java:101) 12-18 23:44:20.742: I/dalvikvm(1966): at com.bumptech.glide.load.engine.EngineRunnable.run(EngineRunnable.java:58) 12-18 23:44:20.742: I/dalvikvm(1966): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390) 12-18 23:44:20.742: I/dalvikvm(1966): at java.util.concurrent.FutureTask.run(FutureTask.java:234) 12-18 23:44:20.742: I/dalvikvm(1966): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) 12-18 23:44:20.742: I/dalvikvm(1966): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) 12-18 23:44:20.742: I/dalvikvm(1966): at java.lang.Thread.run(Thread.java:841) 12-18 23:44:20.742: I/dalvikvm(1966): at com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor$DefaultThreadFactory$1.run(FifoPriorityThreadPoolExecutor.java:53)"><pre class="notranslate"><code class="notranslate">12-18 23:44:05.602: D/dalvikvm(1966): VFY: replacing opcode 0x6e at 0x000a 12-18 23:44:05.670: D/dalvikvm(1966): GC_FOR_ALLOC freed 290K, 8% free 5596K/6020K, paused 3ms, total 4ms 12-18 23:44:06.294: D/dalvikvm(1966): GC_FOR_ALLOC freed 321K, 8% free 5750K/6208K, paused 2ms, total 3ms 12-18 23:44:06.298: D/dalvikvm(1966): GC_FOR_ALLOC freed 21K, 8% free 5875K/6356K, paused 3ms, total 3ms 12-18 23:44:06.386: D/dalvikvm(1966): GC_FOR_ALLOC freed 38K, 9% free 5915K/6436K, paused 4ms, total 4ms 12-18 23:44:06.386: I/dalvikvm-heap(1966): Grow heap (frag case) to 6.059MB for 162024-byte allocation 12-18 23:44:06.390: D/dalvikvm(1966): GC_FOR_ALLOC freed 78K, 10% free 5995K/6596K, paused 3ms, total 3ms 12-18 23:44:06.494: D/dalvikvm(1966): GC_FOR_ALLOC freed &lt;1K, 10% free 5995K/6596K, paused 4ms, total 4ms 12-18 23:44:06.494: I/dalvikvm-heap(1966): Grow heap (frag case) to 6.293MB for 325864-byte allocation 12-18 23:44:06.498: D/dalvikvm(1966): GC_FOR_ALLOC freed 158K, 12% free 6155K/6916K, paused 6ms, total 6ms 12-18 23:44:06.610: D/dalvikvm(1966): GC_FOR_ALLOC freed 1K, 12% free 6155K/6916K, paused 2ms, total 2ms 12-18 23:44:06.638: I/dalvikvm-heap(1966): Grow heap (frag case) to 6.762MB for 653544-byte allocation 12-18 23:44:06.650: D/dalvikvm(1966): GC_FOR_ALLOC freed 318K, 15% free 6475K/7556K, paused 11ms, total 11ms 12-18 23:44:06.754: D/dalvikvm(1966): GC_FOR_ALLOC freed 4K, 15% free 6475K/7556K, paused 2ms, total 2ms 12-18 23:44:06.758: I/dalvikvm-heap(1966): Grow heap (frag case) to 7.700MB for 1308904-byte allocation 12-18 23:44:06.762: D/dalvikvm(1966): GC_FOR_ALLOC freed 638K, 20% free 7115K/8836K, paused 3ms, total 3ms 12-18 23:44:06.894: D/dalvikvm(1966): GC_FOR_ALLOC freed 8K, 20% free 7115K/8836K, paused 2ms, total 2ms 12-18 23:44:06.898: I/dalvikvm-heap(1966): Grow heap (frag case) to 9.575MB for 2619624-byte allocation 12-18 23:44:06.902: D/dalvikvm(1966): GC_FOR_ALLOC freed 1278K, 27% free 8395K/11396K, paused 3ms, total 3ms 12-18 23:44:07.662: D/dalvikvm(1966): GC_FOR_ALLOC freed 17K, 27% free 8395K/11396K, paused 9ms, total 9ms 12-18 23:44:07.678: I/dalvikvm-heap(1966): Grow heap (frag case) to 13.325MB for 5241064-byte allocation 12-18 23:44:07.690: D/dalvikvm(1966): GC_FOR_ALLOC freed 2558K, 34% free 10955K/16516K, paused 7ms, total 7ms 12-18 23:44:09.762: D/dalvikvm(1966): GC_FOR_ALLOC freed 33K, 34% free 10955K/16516K, paused 8ms, total 8ms 12-18 23:44:09.798: I/dalvikvm-heap(1966): Grow heap (frag case) to 20.825MB for 10483944-byte allocation 12-18 23:44:09.806: D/dalvikvm(1966): GC_FOR_ALLOC freed 5118K, 40% free 16075K/26756K, paused 5ms, total 5ms 12-18 23:44:14.278: D/dalvikvm(1966): GC_FOR_ALLOC freed 64K, 40% free 16075K/26756K, paused 11ms, total 11ms 12-18 23:44:14.334: I/dalvikvm-heap(1966): Grow heap (frag case) to 35.825MB for 20969704-byte allocation 12-18 23:44:14.342: D/dalvikvm(1966): GC_FOR_ALLOC freed 10238K, 45% free 26315K/47236K, paused 4ms, total 4ms 12-18 23:44:19.198: D/dalvikvm(1966): GC_FOR_ALLOC freed 124K, 45% free 26315K/47236K, paused 11ms, total 12ms 12-18 23:44:19.274: I/dalvikvm-heap(1966): Grow heap (frag case) to 65.825MB for 41941224-byte allocation 12-18 23:44:19.286: D/dalvikvm(1966): GC_FOR_ALLOC freed 20478K, 47% free 46795K/88196K, paused 3ms, total 3ms 12-18 23:44:20.638: D/dalvikvm(1966): GC_FOR_ALLOC freed 39K, 47% free 46799K/88196K, paused 8ms, total 8ms 12-18 23:44:20.646: I/dalvikvm-heap(1966): Grow heap (frag case) to 68.812MB for 24097205-byte allocation 12-18 23:44:20.670: D/dalvikvm(1966): GC_FOR_ALLOC freed 40974K, 2% free 29357K/29836K, paused 11ms, total 11ms 12-18 23:44:20.694: D/dalvikvm(1966): GC_FOR_ALLOC freed 4K, 2% free 29360K/29836K, paused 3ms, total 3ms 12-18 23:44:20.726: I/dalvikvm-heap(1966): Grow heap (frag case) to 76.801MB for 50331660-byte allocation 12-18 23:44:20.730: D/dalvikvm(1966): GC_FOR_ALLOC freed 0K, 1% free 78513K/78992K, paused 3ms, total 3ms 12-18 23:44:20.730: I/dalvikvm-heap(1966): Forcing collection of SoftReferences for 201326604-byte allocation 12-18 23:44:20.738: D/dalvikvm(1966): GC_BEFORE_OOM freed 69K, 1% free 78443K/78992K, paused 9ms, total 9ms 12-18 23:44:20.738: E/dalvikvm-heap(1966): Out of memory on a 201326604-byte allocation. 12-18 23:44:20.738: I/dalvikvm(1966): "fifo-pool-thread-0" prio=5 tid=12 RUNNABLE 12-18 23:44:20.738: I/dalvikvm(1966): | group="main" sCount=0 dsCount=0 obj=0xa51056c8 self=0xb8a52078 12-18 23:44:20.738: I/dalvikvm(1966): | sysTid=2057 nice=10 sched=3/0 cgrp=[fopen-error:2] handle=-1196952016 12-18 23:44:20.738: I/dalvikvm(1966): | state=R schedstat=( 2201918736 628603171 6972 ) utm=106 stm=113 core=0 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.gifdecoder.GifDecoder.setData(GifDecoder.java:~381) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gif.GifResourceDecoder.decodeFirstFrame(GifResourceDecoder.java:89) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:75) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:61) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:1) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decodeGifWrapper(GifBitmapWrapperResourceDecoder.java:101) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decodeStream(GifBitmapWrapperResourceDecoder.java:87) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:71) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:61) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:1) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.engine.DecodeJob.decodeFromSourceData(DecodeJob.java:189) 12-18 23:44:20.738: I/dalvikvm(1966): at com.bumptech.glide.load.engine.DecodeJob.decodeSource(DecodeJob.java:176) 12-18 23:44:20.742: I/dalvikvm(1966): at com.bumptech.glide.load.engine.DecodeJob.decodeFromSource(DecodeJob.java:127) 12-18 23:44:20.742: I/dalvikvm(1966): at com.bumptech.glide.load.engine.EngineRunnable.decodeFromSource(EngineRunnable.java:122) 12-18 23:44:20.742: I/dalvikvm(1966): at com.bumptech.glide.load.engine.EngineRunnable.decode(EngineRunnable.java:101) 12-18 23:44:20.742: I/dalvikvm(1966): at com.bumptech.glide.load.engine.EngineRunnable.run(EngineRunnable.java:58) 12-18 23:44:20.742: I/dalvikvm(1966): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390) 12-18 23:44:20.742: I/dalvikvm(1966): at java.util.concurrent.FutureTask.run(FutureTask.java:234) 12-18 23:44:20.742: I/dalvikvm(1966): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) 12-18 23:44:20.742: I/dalvikvm(1966): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) 12-18 23:44:20.742: I/dalvikvm(1966): at java.lang.Thread.run(Thread.java:841) 12-18 23:44:20.742: I/dalvikvm(1966): at com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor$DefaultThreadFactory$1.run(FifoPriorityThreadPoolExecutor.java:53) </code></pre></div> <p dir="auto">This is my code :</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(this) .load(&quot;https://farm8.staticflickr.com/7489/15428306664_6903c2f82d_o.gif&quot;) .into(img);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>) .<span class="pl-en">load</span>(<span class="pl-s">"https://farm8.staticflickr.com/7489/15428306664_6903c2f82d_o.gif"</span>) .<span class="pl-en">into</span>(<span class="pl-s1">img</span>);</pre></div> <p dir="auto">You can see heap dump file <a href="https://www.dropbox.com/s/4nqsbmgfg09xm26/glide_oop_gif.hprof?dl=0" rel="nofollow">at here</a></p> <p dir="auto">See this stacktrace , I understand my application has leak memory when I trying load a large GIF image,but i don't find the reason:(.Please help me resolve it.Thanks you.</p>
<p dir="auto">A 3840x2880 example is <a href="http://media4.giphy.com/media/ToMjGpquWkOQon5nAvS/giphy.gif" rel="nofollow">http://media4.giphy.com/media/ToMjGpquWkOQon5nAvS/giphy.gif</a>.</p> <p dir="auto">Probably the most reasonable thing is to catch the exception, allow the load to fail, and encourage users to not try to load gigantic gifs, but we may also be able to find some reasonable way of downsampling GIFs the same way we do Bitmaps.</p>
1
<p dir="auto">http/3 support?</p> <p dir="auto"><a href="https://www.rfc-editor.org/rfc/rfc9114.html" rel="nofollow">https://www.rfc-editor.org/rfc/rfc9114.html</a></p>
<p dir="auto">Hi 👋🏻</p> <p dir="auto">I have tried Deno several times, before version 1.0, and with the latest version. One obvious problem I see, and which I think is huge, is the permission system. Currently, when we run a script with Deno, we have to specify the different permissions we want using arguments like <code class="notranslate">--allow-run</code>, <code class="notranslate">--allow-read</code>.... or <code class="notranslate">--all</code> or <code class="notranslate">-A</code> in order to accept all permissions.<br> The point is that by allowing all permissions on a program, we expose ourselves to serious risk to the machine or the user, but out of "developer laziness", we don't want to have an execution line like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno run --allow-read --allow-net --allow-write --allow-env mod.ts"><pre class="notranslate"><code class="notranslate">deno run --allow-read --allow-net --allow-write --allow-env mod.ts </code></pre></div> <p dir="auto">That's why I propose a new way of working. Arguments are still important, especially for everything CI. At the same time, for a better user experience, I can see something like:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run mod.ts mod.ts needs the net permission. Do you allow it? - Yes - No &gt; Yes mod.ts needs the write permission. Do you allow it? - Yes - No &gt; Yes"><pre class="notranslate">deno run mod.ts mod.ts needs the net permission. Do you allow it<span class="pl-k">?</span> - Yes - No <span class="pl-k">&gt;</span> Yes mod.ts needs the write permission. Do you allow it<span class="pl-k">?</span> - Yes - No <span class="pl-k">&gt;</span> Yes</pre></div> <p dir="auto">Once the developer has entered his preferences, they are cached, so that he doesn't have to specify them again.</p> <p dir="auto">An alternative would be to have a configuration file for this, specifically, add this possibility to the current configuration system.</p> <p dir="auto">I think a better developer experience at this level would bring more developers into the project, or at least interest a part of the community.</p> <p dir="auto">This is an open suggestion, and I would love to hear from the developers and the Deno team about this one.</p>
0
<p dir="auto">(Update by @RyanCavanuagh)</p> <p dir="auto">Please see <a href="https://github.com/microsoft/TypeScript/issues/2000#issuecomment-400761370" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2000/hovercard">this comment</a> before asking for "any updates", "please add this now", etc.. Comments not meaningfully adding to the discussion will be removed to keep the thread length somewhat reasonable.</p> <hr> <p dir="auto">(NOTE, this is <em>not</em> a duplicate of Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="52218177" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/1524" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/1524/hovercard" href="https://github.com/microsoft/TypeScript/issues/1524">#1524</a>. The proposal here is more along the lines of the C++ override specifier, which makes much more sense for typescript)</p> <p dir="auto">An override keyword would be immensely useful in typescript. It would be an optional keyword on any method that overrides a super class method, and similar to the override specifier in C++ would indicate an intent that "<em>the name+signature of this method should always match the name+signature of a super class method</em>". This catches a whole range of issues in larger code bases that can otherwise be easily missed.</p> <p dir="auto">Again similar to C++, <em>it is not an error to omit the override keyword from an overridden method</em>. In this case the compiler just acts exactly as it currently does, and skips the extra compile time checks associated with the override keyword. This allows for the more complex untyped javascript scenarios where the derived class override does not exactly match the signature of the base class.</p> <h2 dir="auto">Example use</h2> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Animal { move(meters:number):void { } } class Snake extends Animal { override move(meters:number):void { } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Animal</span> <span class="pl-kos">{</span> <span class="pl-en">move</span><span class="pl-kos">(</span><span class="pl-s1">meters</span>:<span class="pl-smi">number</span><span class="pl-kos">)</span>:<span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Snake</span> <span class="pl-k">extends</span> <span class="pl-smi">Animal</span> <span class="pl-kos">{</span> <span class="pl-k">override</span> <span class="pl-en">move</span><span class="pl-kos">(</span><span class="pl-s1">meters</span>:<span class="pl-smi">number</span><span class="pl-kos">)</span>:<span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h2 dir="auto">Example compile error conditions</h2> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Add an additional param to move, unaware that the intent was // to override a specific signature in the base class class Snake extends Animal { override move(meters:number, height:number):void { } } // COMPILE ERROR: Snake super does not define move(meters:number,height:number):void // Rename the function in the base class, unaware that a derived class // existed that was overriding the same method and hence it needs renaming as well class Animal { megamove(meters:number):void { } } // COMPILE ERROR: Snake super does not define move(meters:number):void // Require the function to now return a bool, unaware that a derived class // existed that was still using void, and hence it needs updating class Animal { move(meters:number):bool { } } // COMPILE ERROR: Snake super does not define move(meters:number):void"><pre class="notranslate"><span class="pl-c">// Add an additional param to move, unaware that the intent was </span> <span class="pl-c">// to override a specific signature in the base class</span> <span class="pl-k">class</span> <span class="pl-smi">Snake</span> <span class="pl-k">extends</span> <span class="pl-smi">Animal</span> <span class="pl-kos">{</span> <span class="pl-k">override</span> <span class="pl-en">move</span><span class="pl-kos">(</span><span class="pl-s1">meters</span>:<span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">height</span>:<span class="pl-smi">number</span><span class="pl-kos">)</span>:<span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c">// COMPILE ERROR: Snake super does not define move(meters:number,height:number):void</span> <span class="pl-c">// Rename the function in the base class, unaware that a derived class</span> <span class="pl-c">// existed that was overriding the same method and hence it needs renaming as well</span> <span class="pl-k">class</span> <span class="pl-smi">Animal</span> <span class="pl-kos">{</span> <span class="pl-en">megamove</span><span class="pl-kos">(</span><span class="pl-s1">meters</span>:<span class="pl-smi">number</span><span class="pl-kos">)</span>:<span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c">// COMPILE ERROR: Snake super does not define move(meters:number):void</span> <span class="pl-c">// Require the function to now return a bool, unaware that a derived class</span> <span class="pl-c">// existed that was still using void, and hence it needs updating</span> <span class="pl-k">class</span> <span class="pl-smi">Animal</span> <span class="pl-kos">{</span> <span class="pl-en">move</span><span class="pl-kos">(</span><span class="pl-s1">meters</span>:<span class="pl-smi">number</span><span class="pl-kos">)</span>:<span class="pl-smi">bool</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c">// COMPILE ERROR: Snake super does not define move(meters:number):void</span></pre></div> <h2 dir="auto">IntelliSense</h2> <p dir="auto">As well as additional compile time validation, the override keyword provides a mechanism for typescript intellisense to easily display and select available super methods, where the intent is to specifically override one of them in a derived class. Currently this is very clunky and involves browsing through the super class chain, finding the method you want to override, and then copy pasting it in to the derived class to guarantee the signatures match.</p> <h3 dir="auto">Proposed IntelliSense mechanism</h3> <p dir="auto">Within a class declaration:</p> <ol dir="auto"> <li>type override</li> <li>An auto complete drop down appears of all super methods for the class</li> <li>A method is selected in the drop down</li> <li>The signature for the method is emitted into the class declaration after the override keyword.</li> </ol>
<p dir="auto">I noticed that recently a lot of new APIs are added to <code class="notranslate">lib.d.ts</code>. Of cause this is a good thing, however my code breaks badly because of such update.</p> <p dir="auto">Previously I had added a lot of declarations in my code for HTML5 APIs that were missing in <code class="notranslate">lib.d.ts</code> . Now some of them are added to <code class="notranslate">lib.d.ts</code>, and I get quite a few "duplicated identifier" errors. For example, I had added this piece to play with fullscreen:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Document { //... fullscreenEnabled: boolean; mozFullScreenEnabled: boolean; webkitFullscreenEnabled: boolean; }"><pre class="notranslate"><span class="pl-s1">interface</span> <span class="pl-v">Document</span> <span class="pl-kos">{</span> <span class="pl-c">//...</span> fullscreenEnabled: <span class="pl-s1">boolean</span><span class="pl-kos">;</span> mozFullScreenEnabled: <span class="pl-s1">boolean</span><span class="pl-kos">;</span> webkitFullscreenEnabled: <span class="pl-s1">boolean</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Now <code class="notranslate">fullscreenEnabled</code> and <code class="notranslate">webkitFullscreenEnabled</code> are available in <code class="notranslate">lib.d.ts</code>, and my code breaks, and I have to remove them. However, you are still missing <code class="notranslate">mozFullScreenEnabled</code> right? -- well, waiting for the next break.</p> <p dir="auto">Web platforms are constantly evolving, it is not practical to expect <code class="notranslate">lib.d.ts</code> always up to date, so developers just have to write such compensating declarations from time to time. Can TS avoid such breaks? I have a few ideas:</p> <ul dir="auto"> <li>Allow duplicated members in multiple interface declarations, as long as they are identical. In the fullscreen API example above, tsc should not fire errors. Optional compiling warnings are acceptable, to assist developers to remove redundant codes at convenient time.</li> <li>Make <code class="notranslate">lib.d.ts</code> overridable. When tsc find conflictions between <code class="notranslate">lib.d.ts</code> and client codes, it should pickup declarations in client codes. This is because declarations <code class="notranslate">lib.d.ts</code> may contain bugs, developers should be allowed to workaround them. E.g. <code class="notranslate">MutationObserver</code>'s constructor was missing a parameter for a long time. Again, optional warnings are welcomed.</li> </ul> <p dir="auto">What do you think?</p>
0
<p dir="auto">I have a function that takes a class constructor as a parameter, and returns another class constructor of the same type. Internally, the provided constructor is subclassed and augmented, and the subclass is returned.</p> <p dir="auto">I'm having trouble finding a way to express this function in a generic, strongly-typed manner. Note the <code class="notranslate">//ERROR</code> comment in the repro code below:</p> <p dir="auto">Repro code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Base type of the family of classes operated on by the augment() function class FooClass { /*...*/ } // ========== Works, but is not generic ========== function augment(SuperClass: typeof FooClass): typeof FooClass { class SubClass extends SuperClass { /*...*/ } return SubClass; } var FooClass2 = augment(FooClass); // ========== Generic, but does not compile ========== function genericAugment&lt;T extends typeof FooClass&gt;(SuperClass: T): T { class SubClass extends SuperClass { //ERROR: Type 'T' is not a constructor function type /*...*/ } return SubClass; }"><pre class="notranslate"><span class="pl-c">// Base type of the family of classes operated on by the augment() function</span> <span class="pl-k">class</span> <span class="pl-smi">FooClass</span> <span class="pl-kos">{</span> <span class="pl-c">/*...*/</span> <span class="pl-kos">}</span> <span class="pl-c">// ========== Works, but is not generic ==========</span> <span class="pl-k">function</span> <span class="pl-en">augment</span><span class="pl-kos">(</span><span class="pl-smi">SuperClass</span>: <span class="pl-k">typeof</span> <span class="pl-smi">FooClass</span><span class="pl-kos">)</span>: <span class="pl-k">typeof</span> <span class="pl-smi">FooClass</span> <span class="pl-kos">{</span> <span class="pl-k">class</span> <span class="pl-smi">SubClass</span> <span class="pl-k">extends</span> <span class="pl-smi">SuperClass</span> <span class="pl-kos">{</span> <span class="pl-c">/*...*/</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-smi">SubClass</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-smi">FooClass2</span> <span class="pl-c1">=</span> <span class="pl-en">augment</span><span class="pl-kos">(</span><span class="pl-smi">FooClass</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// ========== Generic, but does not compile ==========</span> <span class="pl-k">function</span> <span class="pl-en">genericAugment</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-k">typeof</span> <span class="pl-smi">FooClass</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-smi">SuperClass</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span> <span class="pl-kos">{</span> <span class="pl-k">class</span> <span class="pl-smi">SubClass</span> <span class="pl-k">extends</span> <span class="pl-smi">SuperClass</span> <span class="pl-kos">{</span> <span class="pl-c">//ERROR: Type 'T' is not a constructor function type</span> <span class="pl-c">/*...*/</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-smi">SubClass</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I've tried a few other variations, but can't seem to find a way to express this pattern.</p> <p dir="auto">Is there any way to do it?</p>
<p dir="auto">There appears to be some kind of internal "class" type that is impossible to represent generically:</p> <p dir="auto">You can see a live version here: <a href="http://goo.gl/exBzY6" rel="nofollow">http://goo.gl/exBzY6</a></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function IdentifiableSubclass&lt;T extends What?&gt;(SuperClass: T) { return class extends T { public _id = null; } } class Thing { public hello = null; /* impl */ } const IdentifiableThing = IdentifiableSubclass(Thing); class ChildThing extends IdentifiableThing { } let child = new ChildThing(); child.hello; // TS does not understand that this exists child._id; // TS understands that this exists"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-smi">IdentifiableSubclass</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">What</span>?<span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-smi">SuperClass</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">class</span> <span class="pl-k">extends</span> <span class="pl-smi">T</span> <span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-c1">_id</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Thing</span> <span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-c1">hello</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-c">/* impl */</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-smi">IdentifiableThing</span> <span class="pl-c1">=</span> <span class="pl-smi">IdentifiableSubclass</span><span class="pl-kos">(</span><span class="pl-smi">Thing</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-smi">ChildThing</span> <span class="pl-k">extends</span> <span class="pl-smi">IdentifiableThing</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">let</span> <span class="pl-s1">child</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">ChildThing</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">child</span><span class="pl-kos">.</span><span class="pl-c1">hello</span><span class="pl-kos">;</span> <span class="pl-c">// TS does not understand that this exists</span> <span class="pl-s1">child</span><span class="pl-kos">.</span><span class="pl-c1">_id</span><span class="pl-kos">;</span> <span class="pl-c">// TS understands that this exists</span></pre></div>
1
<p dir="auto">Opening a new issue since no action has been taken on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="547604689" data-permission-text="Title is private" data-url="https://github.com/tiangolo/fastapi/issues/842" data-hovercard-type="issue" data-hovercard-url="/tiangolo/fastapi/issues/842/hovercard" href="https://github.com/tiangolo/fastapi/issues/842">#842</a> for more than a month.</p> <p dir="auto">Looks like we have an issue on how fastapi handles lists of elements passed as <code class="notranslate">Form</code> parameter (so anything that is type hinted <code class="notranslate">List[...] = Form(...)</code>). The issue doesn't arise when they are defined as <code class="notranslate">Query</code> parameters.<br> After some digging I managed to get to the root of the problem, which is <em>how</em> we pass the parameters when making an api call. fastapi indeed correctly understands that the input needs to be a list of elements, but doesn't parse the list if it comes from a single field.</p> <p dir="auto">Example using <code class="notranslate">Query</code>, works as expected</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.post(&quot;/&quot;) def api_test(l: List[int] = Query(...)) -&gt; List[int]: return l"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">"/"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">api_test</span>(<span class="pl-s1">l</span>: <span class="pl-v">List</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Query</span>(...)) <span class="pl-c1">-&gt;</span> <span class="pl-v">List</span>[<span class="pl-s1">int</span>]: <span class="pl-k">return</span> <span class="pl-s1">l</span></pre></div> <p dir="auto">Api request generated using the swagger UI</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl -X 'GET' \ 'http://localhost:5009/?l=1&amp;l=2' \ -H 'accept: application/json'"><pre class="notranslate">curl -X <span class="pl-s"><span class="pl-pds">'</span>GET<span class="pl-pds">'</span></span> \ <span class="pl-s"><span class="pl-pds">'</span>http://localhost:5009/?l=1&amp;l=2<span class="pl-pds">'</span></span> \ -H <span class="pl-s"><span class="pl-pds">'</span>accept: application/json<span class="pl-pds">'</span></span></pre></div> <p dir="auto">note how the passed values are <code class="notranslate">l=1&amp;l=2</code></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[ 1, 2 ]"><pre class="notranslate">[ 1, 2 ]</pre></div> <p dir="auto">Example using <code class="notranslate">Form</code>, doesn't work as expected</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.post(&quot;/&quot;) def api_test(l: List[int] = Form(...)) -&gt; List[int]: return l"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">"/"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">api_test</span>(<span class="pl-s1">l</span>: <span class="pl-v">List</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Form</span>(...)) <span class="pl-c1">-&gt;</span> <span class="pl-v">List</span>[<span class="pl-s1">int</span>]: <span class="pl-k">return</span> <span class="pl-s1">l</span></pre></div> <p dir="auto">Api request generated using the swagger UI</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl -X 'POST' \ 'http://localhost:5009/' \ -H 'accept: application/json' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'l=1,2'"><pre class="notranslate">curl -X <span class="pl-s"><span class="pl-pds">'</span>POST<span class="pl-pds">'</span></span> \ <span class="pl-s"><span class="pl-pds">'</span>http://localhost:5009/<span class="pl-pds">'</span></span> \ -H <span class="pl-s"><span class="pl-pds">'</span>accept: application/json<span class="pl-pds">'</span></span> \ -H <span class="pl-s"><span class="pl-pds">'</span>Content-Type: application/x-www-form-urlencoded<span class="pl-pds">'</span></span> \ -d <span class="pl-s"><span class="pl-pds">'</span>l=1,2<span class="pl-pds">'</span></span></pre></div> <p dir="auto">note how the passed values are <code class="notranslate">l=1,2</code></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;detail&quot;: [ { &quot;loc&quot;: [ &quot;body&quot;, &quot;l&quot;, 0 ], &quot;msg&quot;: &quot;value is not a valid integer&quot;, &quot;type&quot;: &quot;type_error.integer&quot; } ] }"><pre class="notranslate">{ <span class="pl-s"><span class="pl-pds">"</span>detail<span class="pl-pds">"</span></span>: [ { <span class="pl-s"><span class="pl-pds">"</span>loc<span class="pl-pds">"</span></span>: [ <span class="pl-s"><span class="pl-pds">"</span>body<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>l<span class="pl-pds">"</span></span>, 0 ], <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>value is not a valid integer<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>type_error.integer<span class="pl-pds">"</span></span> } ] }</pre></div> <p dir="auto">Manual api request</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl -X 'POST' \ 'http://localhost:5009/' \ -H 'accept: application/json' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'l=1' \ -d 'l=2'"><pre class="notranslate">curl -X <span class="pl-s"><span class="pl-pds">'</span>POST<span class="pl-pds">'</span></span> \ <span class="pl-s"><span class="pl-pds">'</span>http://localhost:5009/<span class="pl-pds">'</span></span> \ -H <span class="pl-s"><span class="pl-pds">'</span>accept: application/json<span class="pl-pds">'</span></span> \ -H <span class="pl-s"><span class="pl-pds">'</span>Content-Type: application/x-www-form-urlencoded<span class="pl-pds">'</span></span> \ -d <span class="pl-s"><span class="pl-pds">'</span>l=1<span class="pl-pds">'</span></span> \ -d <span class="pl-s"><span class="pl-pds">'</span>l=2<span class="pl-pds">'</span></span></pre></div> <p dir="auto">Now the values are passed as <code class="notranslate">-d 'l=1'</code> and <code class="notranslate">-d 'l=2'</code></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[ 1, 2 ]"><pre class="notranslate">[ 1, 2 ]</pre></div> <p dir="auto">I am fairly sure that <code class="notranslate">l=1,2</code> should be an accepted way of passing a list of values as parameter, but fastapi doesn't seem to like it. Also, if this isn't the case, the Swagger UI doesn't produce the correct curl requests for lists given as <code class="notranslate">Form</code> parameters.</p> <p dir="auto">Packages:</p> <ul dir="auto"> <li><code class="notranslate">fastapi</code>: <code class="notranslate">0.66.0</code></li> <li><code class="notranslate">python</code>: <code class="notranslate">3.7.4</code></li> </ul> <p dir="auto">Let me know if you need other details!</p> <p dir="auto">Thank you for coming to my TED talk</p>
<p dir="auto"><strong>Description</strong></p> <p dir="auto">I need to support several query parameters with same name in GET route. Typical request looks like this:<br> <a href="http://localhost/item?num=1&amp;num=2" rel="nofollow">http://localhost/item?num=1&amp;num=2</a></p> <p dir="auto">I configured a route</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@app.get(&quot;/item&quot;, content_type=UJSONResponse) async def get_part(num: list): found = False for i in num: if i in some_data: found = True break return {&quot;found&quot;: found}"><pre class="notranslate"><code class="notranslate">@app.get("/item", content_type=UJSONResponse) async def get_part(num: list): found = False for i in num: if i in some_data: found = True break return {"found": found} </code></pre></div> <p dir="auto">The idea is, that I can pass several numbers to check, if they exist in some_data. In my opinion, it is not a good idea to get numbers from body here, because it is a simple GET request, but in current version application expects argument "num" in body, so on my request (written above) I receive a response</p> <p dir="auto"><code class="notranslate">{"detail":[{"loc":["body","num"],"msg":"field required","type":"value_error.missing"}]}</code></p> <p dir="auto">As I know, it is not restricted to pass several query parameters with the same name in an HTTP request by any specifications, so I would like to ask, is it possible to configure a route in FastAPI, which will be able to parse several query parameters with the same name?</p>
1
<p dir="auto">If you define a class that has a property which only has a setter, but not a getter, and then attempt to use the non-existent getter the code will compile, but the getter is undefined, leading to a crash when it is used. For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class MyClass { private theCount: number; constructor() { this.theCount = 5; } public set count(i: number) { this.theCount = i; } } window.onload = () =&gt; { var obj: MyClass = new MyClass(); obj.count = 12; var num: number = obj.count; document.getElementById(&quot;content&quot;).innerHTML = num.toString(); };"><pre class="notranslate"><code class="notranslate">class MyClass { private theCount: number; constructor() { this.theCount = 5; } public set count(i: number) { this.theCount = i; } } window.onload = () =&gt; { var obj: MyClass = new MyClass(); obj.count = 12; var num: number = obj.count; document.getElementById("content").innerHTML = num.toString(); }; </code></pre></div> <p dir="auto">The above will compile, but crashes when reading obj.count.<br> Surely it would be better if this code did not compile.</p>
<p dir="auto">What, all this business with union types, indeed a veritable managerie of type-related tricks, and we can't make the basics work?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function borked(): number { if (false) return 1; }"><pre class="notranslate"><code class="notranslate">function borked(): number { if (false) return 1; } </code></pre></div> <p dir="auto">I know this will be flagged with the dreaded "By Design", because of some silly JavaScript use case that I can't imagine, but it's such an obviously wrong feature of the language that I can't help raising as an issue. (Apologies if it's a duplicate.)</p>
0
<p dir="auto">This complies ok:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct A(int); impl A { unsafe fn a(&amp;self) -&gt; int { **self } } trait B { unsafe fn b(&amp;self) -&gt; int; } impl B for A { unsafe fn b(&amp;self) -&gt; int { **self } } fn main() { let _ = A(1).a(); let _ = A(1).b(); unsafe { let _ = A(1).a(); let _ = A(1).b(); } }"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">A</span><span class="pl-kos">(</span><span class="pl-smi">int</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">impl</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-k">unsafe</span> <span class="pl-k">fn</span> <span class="pl-en">a</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">int</span> <span class="pl-kos">{</span> <span class="pl-c1">*</span><span class="pl-c1">*</span><span class="pl-smi">self</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">trait</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span> <span class="pl-k">unsafe</span> <span class="pl-k">fn</span> <span class="pl-en">b</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">int</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span> <span class="pl-smi">B</span> <span class="pl-k">for</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-k">unsafe</span> <span class="pl-k">fn</span> <span class="pl-en">b</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">int</span> <span class="pl-kos">{</span> <span class="pl-c1">*</span><span class="pl-c1">*</span><span class="pl-smi">self</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> _ = <span class="pl-v">A</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">a</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> _ = <span class="pl-v">A</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">b</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">unsafe</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> _ = <span class="pl-v">A</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">a</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> _ = <span class="pl-v">A</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">b</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">With this warning:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="unsafe-methods.rs:19:4: 22:5 warning: unnecessary `unsafe` block [-W unused-unsafe (default)] unsafe-methods.rs:19 unsafe { unsafe-methods.rs:20 let _ = A(1).a(); unsafe-methods.rs:21 let _ = A(1).b(); unsafe-methods.rs:22 }"><pre class="notranslate"><code class="notranslate">unsafe-methods.rs:19:4: 22:5 warning: unnecessary `unsafe` block [-W unused-unsafe (default)] unsafe-methods.rs:19 unsafe { unsafe-methods.rs:20 let _ = A(1).a(); unsafe-methods.rs:21 let _ = A(1).b(); unsafe-methods.rs:22 } </code></pre></div> <p dir="auto">Yikes.</p>
<p dir="auto">This compiles, and shouldn't:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="enum x = (); impl x { unsafe fn with() { } } fn main() { x(()).with(); }"><pre class="notranslate"><code class="notranslate">enum x = (); impl x { unsafe fn with() { } } fn main() { x(()).with(); } </code></pre></div>
1
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [147]: pandas.Timestamp('4 pm') --------------------------------------------------------------------------- OutOfBoundsDatetime Traceback (most recent call last) &lt;ipython-input-147-333a3814fcab&gt; in &lt;module&gt;() ----&gt; 1 pandas.Timestamp('4 pm') pandas/tslib.pyx in pandas.tslib.Timestamp.__new__ (pandas/tslib.c:10447)() pandas/tslib.pyx in pandas.tslib.convert_to_tsobject (pandas/tslib.c:27555)() pandas/tslib.pyx in pandas.tslib.convert_str_to_tsobject (pandas/tslib.c:29955)() pandas/tslib.pyx in pandas.tslib.convert_to_tsobject (pandas/tslib.c:28700)() pandas/tslib.pyx in pandas.tslib._check_dts_bounds (pandas/tslib.c:32835)() OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 1-01-01 16:00:00 "><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">147</span>]: <span class="pl-s1">pandas</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'4 pm'</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">OutOfBoundsDatetime</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">147</span><span class="pl-c1">-</span><span class="pl-c1">333</span><span class="pl-s1">a3814fcab</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>() <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">pandas</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'4 pm'</span>) <span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-v">Timestamp</span>.<span class="pl-en">__new__</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">10447</span>)() <span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-en">convert_to_tsobject</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">27555</span>)() <span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-en">convert_str_to_tsobject</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">29955</span>)() <span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-en">convert_to_tsobject</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">28700</span>)() <span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-en">_check_dts_bounds</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">32835</span>)() <span class="pl-v">OutOfBoundsDatetime</span>: <span class="pl-v">Out</span> <span class="pl-s1">of</span> <span class="pl-s1">bounds</span> <span class="pl-s1">nanosecond</span> <span class="pl-s1">timestamp</span>: <span class="pl-c1">1</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-c1">16</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span> </pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">this type of string conversion doesn't work with 0.19.2 since upgrade from 0.16.0<br> traced the problem using git bisect to this commit:<br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pandas-dev/pandas/commit/c2ea0d4d1f7333dfb5f35d0795267d8894a37d83/hovercard" href="https://github.com/pandas-dev/pandas/commit/c2ea0d4d1f7333dfb5f35d0795267d8894a37d83"><tt>c2ea0d4</tt></a></p> <h4 dir="auto">Expected Output</h4> <p dir="auto">In [3]: pandas.Timestamp('4 pm')<br> Out[3]: Timestamp('2017-04-20 16:00:00')</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-112-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None <p dir="auto">pandas: 0.19.2<br> nose: None<br> pip: 9.0.1<br> setuptools: 34.3.3<br> Cython: None<br> numpy: 1.11.2<br> scipy: None<br> statsmodels: None<br> xarray: None<br> IPython: 5.3.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.5.3<br> pytz: 2016.7<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: None<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: None<br> boto: None<br> pandas_datareader: None</p> </details>
<p dir="auto">I assume that this was officially supported before. Haven't narrowed it down any more than sometime between 0.16.2 and 0.17.0.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: pd.__version__ Out[1]: '0.16.2' In [2]: pd.date_range(&quot;Jan 1&quot;, &quot;March 31&quot;, name=&quot;date&quot;) Out[2]: DatetimeIndex(['2015-01-01', '2015-01-02', '2015-01-03', '2015-01-04', '2015-01-05', '2015-01-06', '2015-01-07', '2015-01-08', '2015-01-09', '2015-01-10', '2015-01-11', '2015-01-12', ..."><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">pd</span>.<span class="pl-s1">__version__</span> <span class="pl-v">Out</span>[<span class="pl-c1">1</span>]: <span class="pl-s">'0.16.2'</span> <span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s">"Jan 1"</span>, <span class="pl-s">"March 31"</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"date"</span>) <span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: <span class="pl-v">DatetimeIndex</span>([<span class="pl-s">'2015-01-01'</span>, <span class="pl-s">'2015-01-02'</span>, <span class="pl-s">'2015-01-03'</span>, <span class="pl-s">'2015-01-04'</span>, <span class="pl-s">'2015-01-05'</span>, <span class="pl-s">'2015-01-06'</span>, <span class="pl-s">'2015-01-07'</span>, <span class="pl-s">'2015-01-08'</span>, <span class="pl-s">'2015-01-09'</span>, <span class="pl-s">'2015-01-10'</span>, <span class="pl-s">'2015-01-11'</span>, <span class="pl-s">'2015-01-12'</span>, ...</pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: pd.__version__ Out[1]: '0.17.0' In [2]: pd.date_range(&quot;Jan 1&quot;, &quot;March 31&quot;, name=&quot;date&quot;) --------------------------------------------------------------------------- OutOfBoundsDatetime Traceback (most recent call last) &lt;ipython-input-2-8eaca08051ac&gt; in &lt;module&gt;() ----&gt; 1 pd.date_range(&quot;Jan 1&quot;, &quot;March 31&quot;, name=&quot;date&quot;) /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/tseries/index.py in date_range(start, end, periods, freq, tz, normalize, name, closed) 1912 return DatetimeIndex(start=start, end=end, periods=periods, 1913 freq=freq, tz=tz, normalize=normalize, name=name, -&gt; 1914 closed=closed) 1915 1916 /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/util/decorators.py in wrapper(*args, **kwargs) 87 else: 88 kwargs[new_arg_name] = new_arg_value ---&gt; 89 return func(*args, **kwargs) 90 return wrapper 91 return _deprecate_kwarg /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/tseries/index.py in __new__(cls, data, freq, start, end, periods, copy, name, tz, verify_integrity, normalize, closed, ambiguous, dtype, **kwargs) 234 return cls._generate(start, end, periods, name, freq, 235 tz=tz, normalize=normalize, closed=closed, --&gt; 236 ambiguous=ambiguous) 237 238 if not isinstance(data, (np.ndarray, Index, ABCSeries)): /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/tseries/index.py in _generate(cls, start, end, periods, name, offset, tz, normalize, ambiguous, closed) 383 384 if start is not None: --&gt; 385 start = Timestamp(start) 386 387 if end is not None: pandas/tslib.pyx in pandas.tslib.Timestamp.__new__ (pandas/tslib.c:8967)() pandas/tslib.pyx in pandas.tslib.convert_to_tsobject (pandas/tslib.c:22303)() pandas/tslib.pyx in pandas.tslib.convert_str_to_tsobject (pandas/tslib.c:24364)() pandas/tslib.pyx in pandas.tslib.convert_to_tsobject (pandas/tslib.c:23344)() pandas/tslib.pyx in pandas.tslib._check_dts_bounds (pandas/tslib.c:26590)() OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 1-01-01 00:00:00"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">pd</span>.<span class="pl-s1">__version__</span> <span class="pl-v">Out</span>[<span class="pl-c1">1</span>]: <span class="pl-s">'0.17.0'</span> <span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s">"Jan 1"</span>, <span class="pl-s">"March 31"</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"date"</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">OutOfBoundsDatetime</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">2</span><span class="pl-c1">-</span><span class="pl-c1">8</span><span class="pl-s1">eaca08051ac</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>() <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s">"Jan 1"</span>, <span class="pl-s">"March 31"</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"date"</span>) <span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">tom</span>.<span class="pl-s1">augspurger</span><span class="pl-c1">/</span><span class="pl-v">Envs</span><span class="pl-c1">/</span><span class="pl-s1">py3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tseries</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">date_range</span>(<span class="pl-s1">start</span>, <span class="pl-s1">end</span>, <span class="pl-s1">periods</span>, <span class="pl-s1">freq</span>, <span class="pl-s1">tz</span>, <span class="pl-s1">normalize</span>, <span class="pl-s1">name</span>, <span class="pl-s1">closed</span>) <span class="pl-c1">1912</span> <span class="pl-k">return</span> <span class="pl-v">DatetimeIndex</span>(<span class="pl-s1">start</span><span class="pl-c1">=</span><span class="pl-s1">start</span>, <span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s1">end</span>, <span class="pl-s1">periods</span><span class="pl-c1">=</span><span class="pl-s1">periods</span>, <span class="pl-c1">1913</span> <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s1">freq</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s1">tz</span>, <span class="pl-s1">normalize</span><span class="pl-c1">=</span><span class="pl-s1">normalize</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>, <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1914</span> <span class="pl-s1">closed</span><span class="pl-c1">=</span><span class="pl-s1">closed</span>) <span class="pl-c1">1915</span> <span class="pl-c1">1916</span> <span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">tom</span>.<span class="pl-s1">augspurger</span><span class="pl-c1">/</span><span class="pl-v">Envs</span><span class="pl-c1">/</span><span class="pl-s1">py3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">util</span><span class="pl-c1">/</span><span class="pl-s1">decorators</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">wrapper</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">87</span> <span class="pl-s1">else</span>: <span class="pl-c1">88</span> <span class="pl-s1">kwargs</span>[<span class="pl-s1">new_arg_name</span>] <span class="pl-c1">=</span> <span class="pl-s1">new_arg_value</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">89</span> <span class="pl-s1">return</span> <span class="pl-en">func</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">90</span> <span class="pl-k">return</span> <span class="pl-s1">wrapper</span> <span class="pl-c1">91</span> <span class="pl-s1">return</span> <span class="pl-s1">_deprecate_kwarg</span> <span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">tom</span>.<span class="pl-s1">augspurger</span><span class="pl-c1">/</span><span class="pl-v">Envs</span><span class="pl-c1">/</span><span class="pl-s1">py3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tseries</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">__new__</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">data</span>, <span class="pl-s1">freq</span>, <span class="pl-s1">start</span>, <span class="pl-s1">end</span>, <span class="pl-s1">periods</span>, <span class="pl-s1">copy</span>, <span class="pl-s1">name</span>, <span class="pl-s1">tz</span>, <span class="pl-s1">verify_integrity</span>, <span class="pl-s1">normalize</span>, <span class="pl-s1">closed</span>, <span class="pl-s1">ambiguous</span>, <span class="pl-s1">dtype</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">234</span> <span class="pl-k">return</span> <span class="pl-s1">cls</span>.<span class="pl-en">_generate</span>(<span class="pl-s1">start</span>, <span class="pl-s1">end</span>, <span class="pl-s1">periods</span>, <span class="pl-s1">name</span>, <span class="pl-s1">freq</span>, <span class="pl-c1">235</span> <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s1">tz</span>, <span class="pl-s1">normalize</span><span class="pl-c1">=</span><span class="pl-s1">normalize</span>, <span class="pl-s1">closed</span><span class="pl-c1">=</span><span class="pl-s1">closed</span>, <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">236</span> <span class="pl-s1">ambiguous</span><span class="pl-c1">=</span><span class="pl-s1">ambiguous</span>) <span class="pl-c1">237</span> <span class="pl-c1">238</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">data</span>, (<span class="pl-s1">np</span>.<span class="pl-s1">ndarray</span>, <span class="pl-v">Index</span>, <span class="pl-v">ABCSeries</span>)): <span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">tom</span>.<span class="pl-s1">augspurger</span><span class="pl-c1">/</span><span class="pl-v">Envs</span><span class="pl-c1">/</span><span class="pl-s1">py3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tseries</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_generate</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">start</span>, <span class="pl-s1">end</span>, <span class="pl-s1">periods</span>, <span class="pl-s1">name</span>, <span class="pl-s1">offset</span>, <span class="pl-s1">tz</span>, <span class="pl-s1">normalize</span>, <span class="pl-s1">ambiguous</span>, <span class="pl-s1">closed</span>) <span class="pl-c1">383</span> <span class="pl-c1">384</span> <span class="pl-k">if</span> <span class="pl-s1">start</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">385</span> <span class="pl-s1">start</span> <span class="pl-c1">=</span> <span class="pl-v">Timestamp</span>(<span class="pl-s1">start</span>) <span class="pl-c1">386</span> <span class="pl-c1">387</span> <span class="pl-k">if</span> <span class="pl-s1">end</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-v">Timestamp</span>.<span class="pl-en">__new__</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">8967</span>)() <span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-en">convert_to_tsobject</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">22303</span>)() <span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-en">convert_str_to_tsobject</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">24364</span>)() <span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-en">convert_to_tsobject</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">23344</span>)() <span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-en">_check_dts_bounds</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tslib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">26590</span>)() <span class="pl-v">OutOfBoundsDatetime</span>: <span class="pl-v">Out</span> <span class="pl-s1">of</span> <span class="pl-s1">bounds</span> <span class="pl-s1">nanosecond</span> <span class="pl-s1">timestamp</span>: <span class="pl-c1">1</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-c1">00</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span></pre></div>
1
<p dir="auto">Im not sure if this is an implementation issue or Doctrine itself. But if i was to create two identical entities and persist them, why does doctrine store two entries in the database? surely the idea of a DBAL is to handle normalisation for you? Is there a way you can prevent duplicate entries in the database?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $address = new Address(); $address-&gt;setTitle('Mr'); $address-&gt;setFirstname('Sam'); $this-&gt;em-&gt;persist($address); $address1 = new Address(); $address1-&gt;setTitle('Mr'); $address1-&gt;setFirstname('Sam'); $this-&gt;em-&gt;persist($address1);"><pre class="notranslate"><code class="notranslate"> $address = new Address(); $address-&gt;setTitle('Mr'); $address-&gt;setFirstname('Sam'); $this-&gt;em-&gt;persist($address); $address1 = new Address(); $address1-&gt;setTitle('Mr'); $address1-&gt;setFirstname('Sam'); $this-&gt;em-&gt;persist($address1); </code></pre></div> <p dir="auto">I feel doctrine should not persist the second entity but just pretend it has. It should then only create two rows if the two entities where to become different.</p>
<p dir="auto">The Framework bundle only implements two asset version strategies: empty and static (defaults provided by the Asset component).</p> <p dir="auto">If I want to use a custom strategy for my package (eg. to add the locale its path) without overriding the defaults, the <a href="https://github.com/symfony/symfony-docs/pull/4987" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony-docs/pull/4987/hovercard">recommended solution</a> is to:</p> <ul dir="auto"> <li>create a new service (my strategy)</li> <li>use a compiler pass to extract the version and version format parameters from the default static strategy my package is compiled with</li> <li>update the definition of my service with previously extracted parameters</li> </ul> <p dir="auto">If I have two packages with the same custom strategy but different versions, I need to duplicate my service declaration and update my compiler. And I cannot create services on-demand during the compiler pass. I could also create my own package configuration for my bundle that would override or extend the default <code class="notranslate">assets.packages</code> service.</p> <p dir="auto">It's neither convenient nor elegant.</p> <p dir="auto">I propose to add an optional parameter to set custom strategies:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#app/config/config.yml framework: #... assets: base_urls: //my.cdn.com packages: pdf: version: %version% version_format: /name/space/%%2$s/pdf%%1$s localized_doc: version: %version% version_strategy: my.abstract.service.id # default is assets.static_version_strategy falling back on assets.empty_version_strategy if version is null (current behavior) version_format: /name/space/%%2$s/doc/%%3$s%/abc%1$s #%3$s would be my locale"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span>app/config/config.yml</span> <span class="pl-ent">framework</span>: <span class="pl-c"><span class="pl-c">#</span>...</span> <span class="pl-ent">assets</span>: <span class="pl-ent">base_urls</span>: <span class="pl-s">//my.cdn.com</span> <span class="pl-ent">packages</span>: <span class="pl-ent">pdf</span>: <span class="pl-ent">version</span>: <span class="pl-s">%version%</span> <span class="pl-ent">version_format</span>: <span class="pl-s">/name/space/%%2$s/pdf%%1$s</span> <span class="pl-ent">localized_doc</span>: <span class="pl-ent">version</span>: <span class="pl-s">%version%</span> <span class="pl-ent">version_strategy</span>: <span class="pl-s">my.abstract.service.id </span><span class="pl-c"><span class="pl-c">#</span> default is assets.static_version_strategy falling back on assets.empty_version_strategy if version is null (current behavior)</span> <span class="pl-ent">version_format</span>: <span class="pl-s">/name/space/%%2$s/doc/%%3$s%/abc%1$s </span><span class="pl-c"><span class="pl-c">#</span>%3$s would be my locale</span></pre></div> <p dir="auto">A convenient abstract <code class="notranslate">BaseVersionStrategy</code> class could be provided that would declare <code class="notranslate">setVersion</code> and <code class="notranslate">setVersionFormat</code> to inject said parameters.</p> <p dir="auto">This solves a particular problem I have where I want to inject known parameters in an asset <code class="notranslate">base_urls</code> or <code class="notranslate">base_path</code>. Please provide your thoughts.</p>
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.6.0-6cceaeb67</p> <p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:173658)<br> at p (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:359968)<br> at Zc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:360183)<br> at ci (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59620)<br> at nl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:69923)<br> at Ll (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:110996)<br> at qc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102381)<br> at Hc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102306)<br> at Vc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102171)<br> at Tc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:98781)</p> <p dir="auto">Component stack: in Zc<br> in div<br> in div<br> in So<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in rl<br> in Ze<br> in fn<br> in Ga<br> in _s</p>
<p dir="auto">The DevTools Profiler occasionally encounters the error:</p> <blockquote> <p dir="auto">Could not find commit data for root "..." and commit ...</p> </blockquote> <p dir="auto">This issue is intermittent and we do not currently know hot to reproduce it. <strong>If you can reproduce it</strong> we would love to get any of the following information from you:</p> <ul dir="auto"> <li>Info about how you reproduce it. (Share your code or site with us?)</li> <li>An exported Profiler JSON that contains the bug. (This may be less useful, since the bug likely happens pre-export- but may still be helpful.)</li> </ul>
1
<p dir="auto">The file <code class="notranslate">tensorflow/lite/experimental/micro/README.md</code> says</p> <blockquote> <p dir="auto">The core runtime fits in 16KB on a Cortex M3, and with enough operators to run a speech keyword detection model, takes up a total of 22KB.</p> </blockquote> <p dir="auto">But after compiling <code class="notranslate">libtensorflow-microlite.a</code>, I get</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ls -lh total 512 -rw-r--r-- 1 xxx xxx 254K Sep 9 18:11 libtensorflow-microlite.a"><pre class="notranslate"><code class="notranslate">ls -lh total 512 -rw-r--r-- 1 xxx xxx 254K Sep 9 18:11 libtensorflow-microlite.a </code></pre></div> <p dir="auto">which is an order of magnitude larger than <code class="notranslate">22KB</code>.</p> <p dir="auto">The command I used to compile it is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="make -j2 -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=foo microlite"><pre class="notranslate"><code class="notranslate">make -j2 -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=foo microlite </code></pre></div> <p dir="auto">The configuration file <code class="notranslate">lite/experimental/micro/tools/make/targets/foo_makefile.inc</code> is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ifeq ($(TARGET), foo) TARGET_TOOLCHAIN_PREFIX := arm-none-eabi- COMMON_FLAGS := \ -O2 \ -fno-unwind-tables \ -fstack-reuse=all -ffunction-sections -fdata-sections -Wl,--gc-sections -nostartfiles \ -mthumb -mcpu=cortex-m4 -march=armv7e-m -mfloat-abi=hard -mfpu=fpv4-sp-d16 \ -mno-thumb-interwork -ffast-math \ -Wall -Werror -Wlogical-op -Waddress -Wempty-body -Wpointer-arith \ -Wenum-compare -fno-strict-aliasing \ -Wno-sign-compare \ -nostdlib \ -fno-exceptions \ -fno-unwind-tables \ -fno-builtin CXXFLAGS += $(COMMON_FLAGS) -fno-rtti CCFLAGS += $(COMMON_FLAGS) endif"><pre class="notranslate"><code class="notranslate">ifeq ($(TARGET), foo) TARGET_TOOLCHAIN_PREFIX := arm-none-eabi- COMMON_FLAGS := \ -O2 \ -fno-unwind-tables \ -fstack-reuse=all -ffunction-sections -fdata-sections -Wl,--gc-sections -nostartfiles \ -mthumb -mcpu=cortex-m4 -march=armv7e-m -mfloat-abi=hard -mfpu=fpv4-sp-d16 \ -mno-thumb-interwork -ffast-math \ -Wall -Werror -Wlogical-op -Waddress -Wempty-body -Wpointer-arith \ -Wenum-compare -fno-strict-aliasing \ -Wno-sign-compare \ -nostdlib \ -fno-exceptions \ -fno-unwind-tables \ -fno-builtin CXXFLAGS += $(COMMON_FLAGS) -fno-rtti CCFLAGS += $(COMMON_FLAGS) endif </code></pre></div> <p dir="auto">The compiler toolchain information is as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ arm-none-eabi-gcc --version arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.3.1 20160307 (release) [ARM/embedded-5-branch revision 234589] Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."><pre class="notranslate"><code class="notranslate">$ arm-none-eabi-gcc --version arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.3.1 20160307 (release) [ARM/embedded-5-branch revision 234589] Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. </code></pre></div>
<p dir="auto">Hello,<br> I would like to ask if current API of datasets allows for implementation of oversampling algorithm? I deal with highly imbalanced class problem. I was thinking that it would be nice to oversample specific classes during dataset parsing i.e. online generation. I've seen the implementation for <code class="notranslate">rejection_resample</code> function, however this removes samples instead of duplicating them and its slows down batch generation (when target distribution is much different then initial one). The thing I would like to achieve is: to take an example, look at its class probability decide if duplicate it or not. Then call <code class="notranslate">dataset.shuffle(...)</code> <code class="notranslate">dataset.batch(...)</code> and get iterator. The best (in my opinion) approach would be to oversample low probable classes and subsample most probable ones. I would like to do it online since it's more flexible. Just wondering if this is possible with current API?</p>
0
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Reading the flamegraph of my React app</li> <li>Clicked on one of the options in the <code class="notranslate">Rendered at</code> list of the graph<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/41026008/64542778-69710580-d2e1-11e9-8846-ab1b810e034c.png"><img src="https://user-images.githubusercontent.com/41026008/64542778-69710580-d2e1-11e9-8846-ab1b810e034c.png" alt="image" style="max-width: 100%;"></a></li> <li>This caused the below error to appear in React DevTools.</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.0.6-a39d9c3</p> <p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11442<br> at Map.forEach ()<br> at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11388)<br> at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11921)<br> at xi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277807)<br> at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55891)<br> at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62940)<br> at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99536)<br> at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84256)<br> at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81286)</p> <p dir="auto">Component stack: in xi<br> in div<br> in div<br> in div<br> in Ir<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Wa<br> in ce<br> in be<br> in So<br> in Vl</p>
<p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p> <p dir="auto">I got this error when I click 'Ranked'.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.0.4-3c6a219</p> <p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441<br> at Map.forEach ()<br> at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)<br> at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)<br> at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)<br> at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br> at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)<br> at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br> at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363</p> <p dir="auto">Component stack: in _i<br> in div<br> in div<br> in div<br> in Or<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Ha<br> in le<br> in ve<br> in ko<br> in Ul</p>
1
<p dir="auto">It would be super handy if there was an interface for drag and drop on the file tree to move files around. I shouldn't think it would be too terribly difficult (I might actually have a crack at it if I can find the time) as it the action would just be an alias for a cut/paste action.</p>
<p dir="auto">Would be awesome to be able to drag and drop files between folders in the file tree right in Atom. I like the text-based rename feature that lets you move files between folders, but drag and drop feels more natural to me having gotten used to it in TextMate.</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> <p dir="auto">unboxing may get failed because null value could be returned<br> <a href="https://github.com/apache/dubbo/blob/master/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/ServiceDiscoveryRegistry.java#L587">https://github.com/apache/dubbo/blob/master/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/ServiceDiscoveryRegistry.java#L587</a></p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<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: master</li> <li>Operating System version: all platform</li> <li>Java version: all version</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>set SystemProperty "java.net.preferIPv6Addresses" to true.</li> <li>call org.apache.dubbo.common.utils.NetUtils#isPreferIPV6Address().</li> <li>check the return value.</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">org.apache.dubbo.common.utils.NetUtils#isPreferIPV6Address() will return true when SystemProperty "java.net.preferIPv6Addresses" set to true.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">org.apache.dubbo.common.utils.NetUtils#isPreferIPV6Address() method ignore SystemProperty "java.net.preferIPv6Addresses" and always return false</p>
0
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">main (development)</p> <h3 dir="auto">Operating System</h3> <p dir="auto">macOsS</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-amazon (main)</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"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/airflow/blob/098765e227d4ab7873a2f675845b50c633e356da/airflow/providers/amazon/aws/utils/emailer.py#L40-L41">airflow/airflow/providers/amazon/aws/utils/emailer.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 40 to 41 in <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/098765e227d4ab7873a2f675845b50c633e356da">098765e</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L40" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="40"></td> <td id="LC40" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">mail_from</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, </td> </tr> <tr class="border-0"> <td id="L41" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="41"></td> <td id="LC41" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">to</span><span class="pl-c1">=</span><span class="pl-s1">to</span>, </td> </tr> </tbody></table> </div> </div> <p></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" hook.send_email( mail_from=None, to=to, subject=subject, html_content=html_content, files=files, cc=cc, bcc=bcc, mime_subtype=mime_subtype, mime_charset=mime_charset, )"><pre class="notranslate"><code class="notranslate"> hook.send_email( mail_from=None, to=to, subject=subject, html_content=html_content, files=files, cc=cc, bcc=bcc, mime_subtype=mime_subtype, mime_charset=mime_charset, ) </code></pre></div> <p dir="auto">the <code class="notranslate">mail_from=None</code> will trigger an error when sending the mail, when using AWS Simple Email Service you need to provide a from address and has to be already verified in AWS SES &gt; "Verified identities"</p> <h3 dir="auto">What you expected to happen</h3> <p dir="auto">I expected it to send a mail but it doesn't because</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto">This is easily solved by providing a from address like in:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" smtp_mail_from = conf.get('smtp', 'SMTP_MAIL_FROM') hook.send_email( mail_from=smtp_mail_from,"><pre class="notranslate"><code class="notranslate"> smtp_mail_from = conf.get('smtp', 'SMTP_MAIL_FROM') hook.send_email( mail_from=smtp_mail_from, </code></pre></div> <p dir="auto">the problem is: Can we reuse the smtp.SMTP_MAIL_FROM or do we need to create a new configuration parameter like email.email_from_address ?</p> <ul dir="auto"> <li>smtp uses its own config smtp.smtp_mail_from</li> <li>sendgrid uses an environment variable <code class="notranslate">SENDGRID_MAIL_FROM</code> (undocumented by the way)</li> </ul> <p dir="auto">So, my personal proposal is to</p> <ul dir="auto"> <li>introduce an email.email_from_email and email.email_from_name</li> <li>read those new configuration parameters at <a href="https://github.com/apache/airflow/blob/098765e227d4ab7873a2f675845b50c633e356da/airflow/utils/email.py#L50-L67">utils.email.send_email</a></li> <li>pass those as arguments to the backend (kwargs <code class="notranslate">from_email</code>, <code class="notranslate">from_name</code>) . the <a href="https://github.com/apache/airflow/blob/098765e227d4ab7873a2f675845b50c633e356da/airflow/providers/sendgrid/utils/emailer.py#L70-L71">sendgrid backend can already read those </a> although seems unused at the momemt.</li> </ul> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.6.1</p> <h3 dir="auto">What happened</h3> <p dir="auto">When using search filters for pages accessible from the <code class="notranslate">Browse</code> context menu (i.e. <code class="notranslate">Browse &gt; DAG Runs</code>), some filters do not seem to apply. Instances of this are clearest with filtering by logical date which returns all DAG Runs, with the ones matching the filter generally being towards the top. This can also be seen on the Variables page using the <code class="notranslate">ends with</code> filter.</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">When a filter is applied, it appropriately filters out the rows that do not meet the filter and only those that do are shown.</p> <h3 dir="auto">How to reproduce</h3> <ol dir="auto"> <li>Have DAG Runs across multiple logical dates</li> <li>Go to <code class="notranslate">Browse &gt; DAG Runs</code></li> <li>Filter based on a logical date (i.e. greater than 2023-05-31 12:00 AM)</li> <li>Scroll to see that extraneous data is included</li> </ol> <h3 dir="auto">Operating System</h3> <p dir="auto">CentOS Linux 7 (Core)</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">Installed on a miniconda environment running Python 3.9</p> <h3 dir="auto">Anything else</h3> <p dir="auto">Not all filters seem to be broken. "Starts with" seems to work well, meanwhile "Ends with" does not. They both do add a request to the URL, however the "ends with" one seems to add <code class="notranslate">?_flt_undefined_key=</code> whereas the "starts with" adds <code class="notranslate">?_flt_0_key=</code>. The filters that do not work also do not appear on the filter list.</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>
0
<p dir="auto">Got this error now for the second time - PowerToys stops working for a while after that.</p> <p dir="auto">Error Message:</p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.18363.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/02/2020 17:28:30<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>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<h5 dir="auto">Description of the problem</h5> <p dir="auto">I seems that DirectGeometry.fromGeometry creates duplicate vertices. In <a href="https://github.com/mrdoob/three.js/blob/dev/src/core/DirectGeometry.js#L170">this</a> line of code vertices are created when looping through faces, not vertices. This result in duplicate vertices.</p> <p dir="auto">I think this is unintended, or am I missing something?.</p> <p dir="auto">This problem effects BufferGeometry (via fromGeometry) and means the WebGL renderer needs to do ~6x as much work.</p> <p dir="auto">Working example:</p> <ul dir="auto"> <li><a href="http://jsfiddle.net/wassname/rvg3gv8o/1/" rel="nofollow">JSFiddle</a></li> </ul> <p dir="auto">To replicate this, convert a geometry to buffer geometry and back again. Then compare the vertices as below:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// extract from jsfiddle var bufferGeom = new THREE.BufferGeometry() bufferGeom.fromGeometry(geometry) var newGeom = geometry.clone() newGeom.fromBufferGeometry(bufferGeom) if (newGeom.vertices.length != geometry.vertices.length) { console.error('The new geometry has ', newGeom.vertices.length, 'vertices while the geometry only had ', geometry.vertices.length) }"><pre class="notranslate"><span class="pl-c">// extract from jsfiddle</span> <span class="pl-k">var</span> <span class="pl-s1">bufferGeom</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">BufferGeometry</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">bufferGeom</span><span class="pl-kos">.</span><span class="pl-en">fromGeometry</span><span class="pl-kos">(</span><span class="pl-s1">geometry</span><span class="pl-kos">)</span> <span class="pl-k">var</span> <span class="pl-s1">newGeom</span> <span class="pl-c1">=</span> <span class="pl-s1">geometry</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">newGeom</span><span class="pl-kos">.</span><span class="pl-en">fromBufferGeometry</span><span class="pl-kos">(</span><span class="pl-s1">bufferGeom</span><span class="pl-kos">)</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">newGeom</span><span class="pl-kos">.</span><span class="pl-c1">vertices</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">!=</span> <span class="pl-s1">geometry</span><span class="pl-kos">.</span><span class="pl-c1">vertices</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-s">'The new geometry has '</span><span class="pl-kos">,</span> <span class="pl-s1">newGeom</span><span class="pl-kos">.</span><span class="pl-c1">vertices</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">,</span> <span class="pl-s">'vertices while the geometry only had '</span><span class="pl-kos">,</span> <span class="pl-s1">geometry</span><span class="pl-kos">.</span><span class="pl-c1">vertices</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r75</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> IOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> <p dir="auto">NA</p>
<p dir="auto">I miss the wireframe feature on BufferGeometry based objects like Planes (e.g. webgl_geometry_extrude_shapes2.html). I'm not sure why it was removed.</p> <p dir="auto">So I tried to put it back in. I added some code in "WebGLRenderer.js" to "renderBufferDirect" and it worked as expected:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" var offsets = geometry.offsets; if ( offsets.length === 0 ) { + if ( material.wireframe ) { + + if ( updateBuffers ) { + + setupVertexAttributes( material, programAttributes, geometryAttributes, 0 ); + + var webglLineBuffer = _gl.createBuffer(); + var lineArray = new Uint16Array( index.array.length * 2 ); + var f, fl, offset_line = 0; + + for ( f = 0, fl = index.array.length; f &lt; fl; f ++ ) { + lineArray[ offset_line ] = index.array[f]; + lineArray[ offset_line + 1 ] = index.array[f+1]; + + lineArray[ offset_line + 2 ] = index.array[f+1]; + lineArray[ offset_line + 3 ] = index.array[f+2]; + + lineArray[ offset_line + 4 ] = index.array[f+2]; + lineArray[ offset_line + 5 ] = index.array[f]; + + offset_line += 6; + f += 2; + } + + _gl.bindBuffer( _gl.ELEMENT_ARRAY_BUFFER, webglLineBuffer ); + _gl.bufferData( _gl.ELEMENT_ARRAY_BUFFER, lineArray, _gl.DYNAMIC_DRAW ); + + } + + _gl.drawElements( _gl.LINES, lineArray.length, type, 0 ); + } else { if ( updateBuffers ) { setupVertexAttributes( material, programAttributes, geometryAttributes, 0 ); _gl.bindBuffer( _gl.ELEMENT_ARRAY_BUFFER, index.buffer ); } _gl.drawElements( _gl.TRIANGLES, index.array.length, type, 0 ); + } _this.info.render.calls ++; _this.info.render.vertices += index.array.length; // not really true, here vertices can be shared _this.info.render.faces += index.array.length / 3; } else {"><pre class="notranslate"><code class="notranslate"> var offsets = geometry.offsets; if ( offsets.length === 0 ) { + if ( material.wireframe ) { + + if ( updateBuffers ) { + + setupVertexAttributes( material, programAttributes, geometryAttributes, 0 ); + + var webglLineBuffer = _gl.createBuffer(); + var lineArray = new Uint16Array( index.array.length * 2 ); + var f, fl, offset_line = 0; + + for ( f = 0, fl = index.array.length; f &lt; fl; f ++ ) { + lineArray[ offset_line ] = index.array[f]; + lineArray[ offset_line + 1 ] = index.array[f+1]; + + lineArray[ offset_line + 2 ] = index.array[f+1]; + lineArray[ offset_line + 3 ] = index.array[f+2]; + + lineArray[ offset_line + 4 ] = index.array[f+2]; + lineArray[ offset_line + 5 ] = index.array[f]; + + offset_line += 6; + f += 2; + } + + _gl.bindBuffer( _gl.ELEMENT_ARRAY_BUFFER, webglLineBuffer ); + _gl.bufferData( _gl.ELEMENT_ARRAY_BUFFER, lineArray, _gl.DYNAMIC_DRAW ); + + } + + _gl.drawElements( _gl.LINES, lineArray.length, type, 0 ); + } else { if ( updateBuffers ) { setupVertexAttributes( material, programAttributes, geometryAttributes, 0 ); _gl.bindBuffer( _gl.ELEMENT_ARRAY_BUFFER, index.buffer ); } _gl.drawElements( _gl.TRIANGLES, index.array.length, type, 0 ); + } _this.info.render.calls ++; _this.info.render.vertices += index.array.length; // not really true, here vertices can be shared _this.info.render.faces += index.array.length / 3; } else { </code></pre></div> <p dir="auto">This is probably not the best place to put this creation of the lineArray and it's certainly not the only place where this has to be done. But it doesn't look very complicated.</p> <p dir="auto">Unfortunately I'm not deep enough into this code to do it myself without breaking something important. Nevertheless I would love to see wireframe resurrected :-)</p>
0
<p dir="auto">Chaining <code class="notranslate">ngFor</code> with a <code class="notranslate">slice</code> pipe throws errors.<br> I just realized that now that the dev mode is enabled by default (alpha-55).</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ selector: 'users-cmp', template: `&lt;div *ngFor=&quot;#user of users | slice:0:2&quot;&gt;{{user.name}}&lt;/div&gt;` }) export class UsersCmp { users: Array&lt;any&gt; = [ {name: 'Cedric}, {name: 'Agnes'}, {name: 'Cyril'} ]; }"><pre class="notranslate">@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'users-cmp'</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>: <span class="pl-s">`&lt;div *ngFor="#user of users | slice:0:2"&gt;{{user.name}}&lt;/div&gt;`</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">UsersCmp</span> <span class="pl-kos">{</span> <span class="pl-c1">users</span>: <span class="pl-smi">Array</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-kos">{</span><span class="pl-c1">name</span>: <span class="pl-s">'Cedric},</span> <span class="pl-s"> {name: '</span><span class="pl-smi">Agnes</span>'<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">name</span>: <span class="pl-s">'Cyril'</span><span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Gives <code class="notranslate">Expression 'users | slice:0:2 in UsersCmp@0:5' has changed after it was checked</code>.<br> Runtime works (despite the errors), but unit tests are failing.</p> <p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="122429850" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/5941" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/5941/hovercard" href="https://github.com/angular/angular/issues/5941">#5941</a> I think.</p>
<p dir="auto"><strong>I'm submitting a ...</strong><br> [x] bug report</p> <p dir="auto">Modules are loaded twice.<br> • angular version : 2.4.4 (latest)<br> • angular/router : 3.4.4 (latest)</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> <a href="https://github.com/ASmeha/angular2-sample">https://github.com/ASmeha/angular2-sample</a><br> In this sample modules are loaded when changing routes .</p> <p dir="auto"><strong>Example in the repo for the issue</strong> :<br> Logs in modules class constructor are displayed twice.</p>
0
<p dir="auto">I just came across an error message that, in my opinion didn't really tell me what the problem was.</p> <p dir="auto">I was setting up a simple *ngFor <code class="notranslate">*ngFor="#mode in modes"</code></p> <p dir="auto">Yet, obviously I got an error because I put "in" instead of "of", however the error was<br> <code class="notranslate">Can't bind to 'ngForIn' since it isn't a known native property (template info)</code></p> <p dir="auto">It's clearly a stupid mistake, and now that I've seen it once, I understand the error. However first looking at it, I was stumped. I don't personally have suggestions as to what It should be, though perhaps the community does. (If it's deemed worthy of a rewrite)</p>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report =&gt; search github for a similar issue or PR before submitting [x ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report =&gt; search github for a similar issue or PR before submitting [x ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> ViewChildren and ViewChild are searching for child / children only,</p> <p dir="auto"><strong>Expected/desired behavior</strong><br> They should search for descendents also.</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> steps for reproduce:<br> Lets say you have component1 that declare component2 inside of it,<br> and component2 declare component3 inside of itself.<br> component1 can't use ViewChildren to get component3.</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> I would expect component1 to find component3</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> I want to find descendents of specific type and not only children</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.4</li> <li><strong>Browser:</strong> [Chrome 52]</li> <li><strong>Language:</strong> [ TypeScript 1.8]</li> </ul>
0
<p dir="auto">Every time I open <code class="notranslate">app/assets/stylesheets/github/contributions.scss</code> the app becomes unresponsive -- except I can Quit. No amount of waiting seems to allow for it to right itself. I've opened the inspector before opening the file to try to catch some hint of what's going on, but either the app becomes unresponsive before reporting errors or nothing actually errors out.</p> <p dir="auto"><em>Note: This is accompanied with a CPU spike where the Atom Helper process is consuming 100%.</em></p> <p dir="auto">Not sure if this is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10147636" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/150" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/150/hovercard" href="https://github.com/atom/atom/issues/150">#150</a> as I am able to load large large files from <code class="notranslate">vendor/assets</code> just fine.</p>
<p dir="auto">When I open _transition.scss It reliably freezes my whole atom. I can't even open web inspector console.</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 2.4.11</li> <li>Operating System / Platform =&gt;Windows 64 Bit</li> <li>Compiler =&gt; python</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Much thanks to anyone who may help,</p> <p dir="auto">I am using the cv2.findcirclesgrid() in python script to detect the centers of images of calibration board, but the results appear to be existing a shift between the detected centers and visual centers(from my own point of view). As follows:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44866138/56272117-a66b0e80-612c-11e9-8902-2eb719aa09bd.png"><img src="https://user-images.githubusercontent.com/44866138/56272117-a66b0e80-612c-11e9-8902-2eb719aa09bd.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I checked the blob detector this morning, it successfully extracted the circles in my pictures. So maybe this shift is not because of the blob parameters(I think so). As follows:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44866138/56272236-e03c1500-612c-11e9-8ecb-4f326bce3f5c.jpg"><img src="https://user-images.githubusercontent.com/44866138/56272236-e03c1500-612c-11e9-8ecb-4f326bce3f5c.jpg" alt="checkedImg0" style="max-width: 100%;"></a></p> <p dir="auto">Anyhow, I wonder:</p> <ol dir="auto"> <li>Whether this should happen? apparent bias of extracted centers between real position.</li> <li>If the answer is 'it should not be like this', then what should I do?</li> </ol> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">here is my code in python, appreciation for any information you may supply to me<br> <a href="https://github.com/opencv/opencv/files/3088604/findCircleGridAsymmetric.txt">findCircleGridAsymmetric.txt</a></p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.2.0-dev <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/opencv/opencv/commit/5265db82c7ed0880117634cc723ed1bc91333b1b/hovercard" href="https://github.com/opencv/opencv/commit/5265db82c7ed0880117634cc723ed1bc91333b1b"><tt>5265db8</tt></a></li> <li>Operating System / Platform =&gt; Windows 10 64 Bit</li> <li>Compiler =&gt; Visual Studio 2015</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I have a Caffe model with <a href="https://caffe.berkeleyvision.org/tutorial/layers/slice.html" rel="nofollow"><code class="notranslate">Slice</code></a> layers. However, I'm not able to access the "implicit" outputs of the layer.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Here is a MWE:</p> <p dir="auto">Model definition and weights: <a href="https://github.com/BVLC/caffe/tree/master/models/bvlc_reference_caffenet">https://github.com/BVLC/caffe/tree/master/models/bvlc_reference_caffenet</a></p> <p dir="auto">By adding a Slice layer after the final <code class="notranslate">prob</code> layer:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="layer { name: &quot;split&quot; type: &quot;Slice&quot; bottom: &quot;prob&quot; top: &quot;out1&quot; top: &quot;out2&quot; slice_param { axis: 1 slice_point: 100 } }"><pre class="notranslate"><code class="notranslate">layer { name: "split" type: "Slice" bottom: "prob" top: "out1" top: "out2" slice_param { axis: 1 slice_point: 100 } } </code></pre></div> <p dir="auto">the outputs <code class="notranslate">out1</code> / <code class="notranslate">out2</code> can be accessed in Caffe by</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="net.forward()['out1']"><pre class="notranslate"><code class="notranslate">net.forward()['out1'] </code></pre></div> <p dir="auto">In OpenCV, though, I got the error:<br> <code class="notranslate">OpenCV(4.2.0-dev) Error: Unspecified error (Requested layer "out1" not found) in cv::dnn::dnn4_v20191202::Net::Impl::getLayerData, file C:\src\opencv\modules\dnn\src\dnn.cpp, line 1473</code><br> with the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="net = cv::dnn::readNetFromCaffe(&quot;deploy.prototxt&quot;, &quot;bvlc_alexnet.caffemodel&quot;); net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA); net.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA); cv::Mat blob, img = cv::imread(&quot;examples/images/cat.jpg&quot;); cv::dnn::blobFromImage(img, blob, 1, cv::Size(227, 227), cv::Scalar(104, 117, 123), false/*swapRB*/, false/*crop*/); net.setInput(blob, &quot;data&quot;); cv::Mat detection = net.forward(&quot;out1&quot;);"><pre class="notranslate"><code class="notranslate">net = cv::dnn::readNetFromCaffe("deploy.prototxt", "bvlc_alexnet.caffemodel"); net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA); net.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA); cv::Mat blob, img = cv::imread("examples/images/cat.jpg"); cv::dnn::blobFromImage(img, blob, 1, cv::Size(227, 227), cv::Scalar(104, 117, 123), false/*swapRB*/, false/*crop*/); net.setInput(blob, "data"); cv::Mat detection = net.forward("out1"); </code></pre></div> <p dir="auto">Note:</p> <ul dir="auto"> <li>There is no problem executing <code class="notranslate">net.forward("prob")</code>.</li> <li>Both on CPU and CUDA backend.</li> </ul> <p dir="auto">I'm not sure if this is a bug or not. <g-emoji class="g-emoji" alias="thinking" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f914.png">🤔</g-emoji></p>
0
<p dir="auto">Currently only variables and modules which conflict with aliases give errors, for example</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module A { export var AAA: {VarInt;} export interface AAA { IntInt; } } module MyModule { var XXX : { VarExt; } // Highlighted as error - ok // module XXX { export var VarExt; } // Also would give an error, but import statement would be highlighted. A little bit inconsisent, but ok import XXX = A.AAA; }"><pre class="notranslate"><code class="notranslate">module A { export var AAA: {VarInt;} export interface AAA { IntInt; } } module MyModule { var XXX : { VarExt; } // Highlighted as error - ok // module XXX { export var VarExt; } // Also would give an error, but import statement would be highlighted. A little bit inconsisent, but ok import XXX = A.AAA; } </code></pre></div> <p dir="auto">At the same time, interfaces, classes, enums and functions would not produce an error. Instead, import aliases with a same name would be silently ignored, resulting in WTF errors later in the code.</p> <p dir="auto">For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module A { export var AAA: {VarInt;} export interface AAA { IntInt; } } module MyModuleWithFunction { function XXX() {} import XXX = A.AAA; XXX.VarInt; // WTF error XXX.arguments; // No error } module MyModuleWithClass { class XXX { static VarDup; IntDup;} import XXX = A.AAA; XXX.VarInt; // WTF error XXX.VarDup; // No error var i: XXX; i.IntInt; // WTF error i.IntDup; // No error }"><pre class="notranslate"><code class="notranslate">module A { export var AAA: {VarInt;} export interface AAA { IntInt; } } module MyModuleWithFunction { function XXX() {} import XXX = A.AAA; XXX.VarInt; // WTF error XXX.arguments; // No error } module MyModuleWithClass { class XXX { static VarDup; IntDup;} import XXX = A.AAA; XXX.VarInt; // WTF error XXX.VarDup; // No error var i: XXX; i.IntInt; // WTF error i.IntDup; // No error } </code></pre></div> <p dir="auto">IMHO, current behavior of silently ignoring duplicate aliases is confusing and is not described in specifications.</p>
<p dir="auto">I have been having a heck of a time getting es6 promises to work with Typescript in a ASP.NET 5 project. I installed the es6-promise.d.ts via tsd install es6-promise. However, I get errors about Promise being duplicated. When I hover on the Promise declaration in the es6-promise.d.ts file, I get the error below (see the blue section ac the bottom of the image). It seems to be conflicting with some typescript definition file from a Microsoft SDK, which is obviously not part of my project.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/4ff8edec977fea4dacb8690b9e03ec88c518410599a06d5f64387d8af4bbfb0d/687474703a2f2f692e737461636b2e696d6775722e636f6d2f76303950632e706e67"><img src="https://camo.githubusercontent.com/4ff8edec977fea4dacb8690b9e03ec88c518410599a06d5f64387d8af4bbfb0d/687474703a2f2f692e737461636b2e696d6775722e636f6d2f76303950632e706e67" alt="error" data-canonical-src="http://i.stack.imgur.com/v09Pc.png" style="max-width: 100%;"></a></p> <p dir="auto">Does anyone have an idea on why this might be happening or how I can fix this?</p>
0
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Patch?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.2</td> </tr> </tbody> </table> <p dir="auto">The problem occurs when the amount of cache generated is such that writing is no longer possible on the HttpCache (e.g dedicated disk, my case).</p> <p dir="auto">More precisely, the temporary file created by <strong>tempnam</strong> can no longer be moved to the HttpCache cache folder.</p> <p dir="auto">Until then everything is not going so bad, the cache is not created but the page is displayed correctly.</p> <p dir="auto">Symfony/Component/HttpKernel/HttpCache/Store.php The case is provided line 412</p> <blockquote> <p dir="auto">if (false === <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rename/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rename">@rename</a>($tmpFile, $path)) {<br> return false;<br> }</p> </blockquote> <p dir="auto">The tempnam function creates a unique temporary file for each call to a page to be cached, and if the temporary folder passed as an argument is not writable, tempnam will use /tmp.</p> <p dir="auto"><em>Note: If PHP cannot create a file in the specified dir parameter, it falls back on the system default. On NTFS this also happens if the specified dir contains more than 65534 files.</em><br> <a href="http://php.net/manual/en/function.tempnam.php" rel="nofollow">http://php.net/manual/en/function.tempnam.php</a></p> <p dir="auto">Therefore, as soon as the HttpCache cache is no longer writable, the /tmp fills up fairly quickly, <strong>tempnam</strong> being called on every page (since no page cache) and creating a new unique file in /tmp.</p> <p dir="auto">Patch:<br> I propose to delete the temporary file $tmpFile. It will not fix the space problem for the cache but it will no longer fill the server /tmp and will not crash the instance anymore:</p> <p dir="auto"><a href="https://github.com/symfony/symfony/files/1002484/httpcache.patch.txt">httpcache.patch.txt</a></p> <p dir="auto">Thx!</p>
<p dir="auto">Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser received a new regular expression in 2.7.10, breaking the use of template names that are not in Resources/views.</p> <p dir="auto">E.g. a template in "src/My/SuperBundle/Whatever/Template.html.twig" could be found with "@MySuperBundle/Whatever/Template.html.twig" as template name until 2.7.9.</p> <p dir="auto">As of 2.7.10 the new regex in the TemplateNameParser matches said template name and thus does not use the parent's parse method of Symfony\Component\Templating\TemplateNameParser effectively not finding the template anymore.</p> <p dir="auto">This should not have happened in a minor release.</p>
0
<h3 dir="auto">Environment info</h3> <p dir="auto">Operating System:<br> Linux 3.10.0-327.13.1.el7.x86_64<br> CentOS Linux release 7.2.1511 (Core)</p> <p dir="auto">Installed version of CUDA and cuDNN:<br> CUDA is 7.5 and cuDNN is 4.0.7<br> ls -l /usr/local/cuda/lib64/libcud*<br> -rw-r--r-- 1 root root 322936 Aug 15 2015 /usr/local/cuda/lib64/libcudadevrt.a<br> lrwxrwxrwx 1 root root 16 May 11 22:38 /usr/local/cuda/lib64/libcudart.so -&gt; libcudart.so.7.5<br> lrwxrwxrwx 1 root root 19 May 11 22:38 /usr/local/cuda/lib64/libcudart.so.7.5 -&gt; libcudart.so.7.5.18<br> -rwxr-xr-x 1 root root 383336 Aug 15 2015 /usr/local/cuda/lib64/libcudart.so.7.5.18<br> -rw-r--r-- 1 root root 720192 Aug 15 2015 /usr/local/cuda/lib64/libcudart_static.a<br> lrwxrwxrwx 1 root root 13 May 12 14:47 /usr/local/cuda/lib64/libcudnn.so -&gt; libcudnn.so.4<br> lrwxrwxrwx 1 root root 17 May 12 14:47 /usr/local/cuda/lib64/libcudnn.so.4 -&gt; libcudnn.so.4.0.7<br> -rwxr-xr-x 1 root root 61453024 Feb 8 17:12 /usr/local/cuda/lib64/libcudnn.so.4.0.7<br> -rw-r--r-- 1 root root 62025862 Feb 8 17:12 /usr/local/cuda/lib64/libcudnn_static.a</p> <p dir="auto">If installed from binary pip package, provide:</p> <ol dir="auto"> <li>Which pip package you installed.<br> <a href="https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl</a></li> <li>The output from python -c "import tensorflow; print(tensorflow.<strong>version</strong>)".<br> python -c "import tensorflow; print(tensorflow.<strong>version</strong>)"<br> I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally<br> I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcudnn.so locally<br> I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcufft.so locally<br> I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcuda.so.1 locally<br> I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcurand.so locally<br> 0.8.0</li> </ol> <p dir="auto">If installed from sources, provide the commit hash:<br> Trying to build from sources the distributed version of tensorflow</p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>git clone --recurse-submodules <a href="https://github.com/tensorflow/tensorflow">https://github.com/tensorflow/tensorflow</a><br> The latest commit hash is <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/66edcda74c0f4823c9b9e3cddd17db9dfff63ad6/hovercard" href="https://github.com/tensorflow/tensorflow/commit/66edcda74c0f4823c9b9e3cddd17db9dfff63ad6"><tt>66edcda</tt></a></li> <li>installed bazel from binaries<br> sh bazel-0.2.2b-installer-linux-x86_64.sh</li> <li>building with bazel fails<br> bazel build -c opt --config=cuda --verbose_failures --spawn_strategy=standalone --genrule_strategy=standalone //tensorflow/core/distributed_runtime/rpc:grpc_tensorflow_server<br> WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See <a href="http://bazel.io/docs/bazel-user-manual.html#sandboxing" rel="nofollow">http://bazel.io/docs/bazel-user-manual.html#sandboxing</a> for more information. You can turn off this warning via --ignore_unsupported_sandboxing.<br> INFO: Found 1 target...<br> ERROR: /root/tmp/tensorflow/google/protobuf/BUILD:29:1: undeclared inclusion(s) in rule '//google/protobuf:protobuf_lite':<br> this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/stubs/once.cc':<br> '/include/c++/4.8.5/string'<br> '/include/c++/4.8.5/x86_64-redhat-linux/bits/c++config.h'<br> '/include/c++/4.8.5/x86_64-redhat-linux/bits/os_defines.h'<br> '/include/c++/4.8.5/x86_64-redhat-linux/bits/cpu_defines.h'<br> '/include/c++/4.8.5/bits/stringfwd.h'<br> '/include/c++/4.8.5/bits/memoryfwd.h'<br> '/include/c++/4.8.5/bits/char_traits.h'<br> '/include/c++/4.8.5/bits/stl_algobase.h'<br> '/include/c++/4.8.5/bits/functexcept.h'<br> '/include/c++/4.8.5/bits/exception_defines.h'<br> '/include/c++/4.8.5/bits/cpp_type_traits.h'<br> '/include/c++/4.8.5/ext/type_traits.h'<br> '/include/c++/4.8.5/ext/numeric_traits.h'<br> '/include/c++/4.8.5/bits/stl_pair.h'<br> '/include/c++/4.8.5/bits/move.h'<br> '/include/c++/4.8.5/bits/concept_check.h'<br> '/include/c++/4.8.5/type_traits'<br> '/include/c++/4.8.5/bits/stl_iterator_base_types.h'<br> '/include/c++/4.8.5/bits/stl_iterator_base_funcs.h'<br> '/include/c++/4.8.5/debug/debug.h'<br> '/include/c++/4.8.5/bits/stl_iterator.h'<br> '/include/c++/4.8.5/bits/postypes.h'<br> '/include/c++/4.8.5/cwchar'<br> '/lib/gcc/x86_64-redhat-linux/4.8.5/include/stdarg.h'<br> '/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h'<br> '/include/c++/4.8.5/cstdint'<br> '/lib/gcc/x86_64-redhat-linux/4.8.5/include/stdint.h'<br> '/include/c++/4.8.5/bits/allocator.h'<br> '/include/c++/4.8.5/x86_64-redhat-linux/bits/c++allocator.h'<br> '/include/c++/4.8.5/ext/new_allocator.h'<br> '/include/c++/4.8.5/new'<br> '/include/c++/4.8.5/exception'<br> '/include/c++/4.8.5/bits/atomic_lockfree_defines.h'<br> '/include/c++/4.8.5/bits/exception_ptr.h'<br> '/include/c++/4.8.5/bits/nested_exception.h'<br> '/include/c++/4.8.5/bits/localefwd.h'<br> '/include/c++/4.8.5/x86_64-redhat-linux/bits/c++locale.h'<br> '/include/c++/4.8.5/clocale'<br> '/include/c++/4.8.5/iosfwd'<br> '/include/c++/4.8.5/cctype'<br> '/include/c++/4.8.5/bits/ostream_insert.h'<br> '/include/c++/4.8.5/bits/cxxabi_forced.h'<br> '/include/c++/4.8.5/bits/stl_function.h'<br> '/include/c++/4.8.5/backward/binders.h'<br> '/include/c++/4.8.5/bits/range_access.h'<br> '/include/c++/4.8.5/bits/basic_string.h'<br> '/include/c++/4.8.5/ext/atomicity.h'<br> '/include/c++/4.8.5/x86_64-redhat-linux/bits/gthr.h'<br> '/include/c++/4.8.5/x86_64-redhat-linux/bits/gthr-default.h'<br> '/include/c++/4.8.5/x86_64-redhat-linux/bits/atomic_word.h'<br> '/include/c++/4.8.5/initializer_list'<br> '/include/c++/4.8.5/ext/string_conversions.h'<br> '/include/c++/4.8.5/cstdlib'<br> '/include/c++/4.8.5/cstdio'<br> '/include/c++/4.8.5/cerrno'<br> '/include/c++/4.8.5/bits/functional_hash.h'<br> '/include/c++/4.8.5/bits/hash_bytes.h'<br> '/include/c++/4.8.5/bits/basic_string.tcc'<br> '/include/c++/4.8.5/cstddef'<br> '/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h'<br> '/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h'<br> '/include/c++/4.8.5/utility'<br> '/include/c++/4.8.5/bits/stl_relops.h'.<br> Target //tensorflow/core/distributed_runtime/rpc:grpc_tensorflow_server failed to build<br> INFO: Elapsed time: 8.212s, Critical Path: 1.98s</li> </ol> <p dir="auto">rpm -qa | grep gcc<br> gcc-c++-4.8.5-4.el7.x86_64<br> libgcc-4.8.5-4.el7.x86_64<br> gcc-4.8.5-4.el7.x86_64<br> rpm -qa | grep glibc<br> glibc-common-2.17-106.el7_2.4.x86_64<br> glibc-devel-2.17-106.el7_2.4.x86_64<br> glibc-2.17-106.el7_2.4.x86_64<br> glibc-headers-2.17-106.el7_2.4.x86_64</p> <p dir="auto">I am not sure what are the dependencies. I saw that glibc 2.17 should at least meet the minimum.</p> <h3 dir="auto">What have you tried?</h3> <ol dir="auto"> <li>Nothing else yet. Trying to build bazel from source.</li> </ol> <p dir="auto">Any thoughts?</p>
<p dir="auto">The following commands were run on a Fedora 23 64 bits on Tensorflow master, but I get similar results on the 0.8 branch.</p> <p dir="auto">Using Bazel 0.2.1 on a laptop without graphics card:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel build -c opt --verbose_failures //tensorflow/tools/pip_package:build_pip_package INFO: Found 1 target... ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2': this rule is missing dependency declarations for the following files included by 'external/re2/util/rune.cc': '/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdarg.h' '/lib/gcc/x86_64-redhat-linux/5.3.1/include/stddef.h' '/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdint.h'. Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 1.394s, Critical Path: 0.34s"><pre class="notranslate"><code class="notranslate">$ bazel build -c opt --verbose_failures //tensorflow/tools/pip_package:build_pip_package INFO: Found 1 target... ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2': this rule is missing dependency declarations for the following files included by 'external/re2/util/rune.cc': '/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdarg.h' '/lib/gcc/x86_64-redhat-linux/5.3.1/include/stddef.h' '/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdint.h'. Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 1.394s, Critical Path: 0.34s </code></pre></div> <p dir="auto">On a machine with Cuda 7.5 and cudnn 5 installed, GCC 4.9 built locally (but I get the same results with system's GCC 5.3.1):</p> <p dir="auto">With bazel 0.1.1:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel build -c opt --config=cuda --spawn_strategy=standalone //tensorflow/tools/pip_package:build_pip_package Warning: ignoring LD_PRELOAD in environment. ERROR: /home/david/gits/tensorflow/WORKSPACE:16:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path.. ERROR: /home/david/gits/tensorflow/WORKSPACE:20:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path.. ERROR: WORKSPACE file could not be parsed. ERROR: no such package 'external': Package 'external' contains errors. INFO: Elapsed time: 0.065s"><pre class="notranslate"><code class="notranslate">$ bazel build -c opt --config=cuda --spawn_strategy=standalone //tensorflow/tools/pip_package:build_pip_package Warning: ignoring LD_PRELOAD in environment. ERROR: /home/david/gits/tensorflow/WORKSPACE:16:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path.. ERROR: /home/david/gits/tensorflow/WORKSPACE:20:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path.. ERROR: WORKSPACE file could not be parsed. ERROR: no such package 'external': Package 'external' contains errors. INFO: Elapsed time: 0.065s </code></pre></div> <p dir="auto">With Bazel 0.2.1:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build -c opt --config=cuda --spawn_strategy=standalone //tensorflow/tools/pip_package:build_pip_package Warning: ignoring LD_PRELOAD in environment. Sending SIGTERM to previous Bazel server (pid=19634)... done. ..... INFO: Found 1 target... ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2': this rule is missing dependency declarations for the following files included by 'external/re2/re2/perl_groups.cc': '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h' '/home/david/.local/include/c++/4.9.3/ctime' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h' '/home/david/.local/include/c++/4.9.3/vector' '/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h' '/home/david/.local/include/c++/4.9.3/bits/functexcept.h' '/home/david/.local/include/c++/4.9.3/bits/exception_defines.h' '/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_pair.h' '/home/david/.local/include/c++/4.9.3/bits/move.h' '/home/david/.local/include/c++/4.9.3/bits/concept_check.h' '/home/david/.local/include/c++/4.9.3/type_traits' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h' '/home/david/.local/include/c++/4.9.3/debug/debug.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h' '/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h' '/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h' '/home/david/.local/include/c++/4.9.3/bits/allocator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h' '/home/david/.local/include/c++/4.9.3/ext/new_allocator.h' '/home/david/.local/include/c++/4.9.3/new' '/home/david/.local/include/c++/4.9.3/exception' '/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h' '/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h' '/home/david/.local/include/c++/4.9.3/bits/nested_exception.h' '/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h' '/home/david/.local/include/c++/4.9.3/bits/stl_construct.h' '/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h' '/home/david/.local/include/c++/4.9.3/bits/stl_vector.h' '/home/david/.local/include/c++/4.9.3/initializer_list' '/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h' '/home/david/.local/include/c++/4.9.3/bits/functional_hash.h' '/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h' '/home/david/.local/include/c++/4.9.3/bits/range_access.h' '/home/david/.local/include/c++/4.9.3/bits/vector.tcc' '/home/david/.local/include/c++/4.9.3/string' '/home/david/.local/include/c++/4.9.3/bits/stringfwd.h' '/home/david/.local/include/c++/4.9.3/bits/char_traits.h' '/home/david/.local/include/c++/4.9.3/bits/postypes.h' '/home/david/.local/include/c++/4.9.3/cwchar' '/home/david/.local/include/c++/4.9.3/cstdint' '/home/david/.local/include/c++/4.9.3/bits/localefwd.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h' '/home/david/.local/include/c++/4.9.3/clocale' '/home/david/.local/include/c++/4.9.3/iosfwd' '/home/david/.local/include/c++/4.9.3/cctype' '/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h' '/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h' '/home/david/.local/include/c++/4.9.3/bits/stl_function.h' '/home/david/.local/include/c++/4.9.3/backward/binders.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.h' '/home/david/.local/include/c++/4.9.3/ext/atomicity.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h' '/home/david/.local/include/c++/4.9.3/ext/string_conversions.h' '/home/david/.local/include/c++/4.9.3/cstdlib' '/home/david/.local/include/c++/4.9.3/cstdio' '/home/david/.local/include/c++/4.9.3/cerrno' '/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc' '/home/david/.local/include/c++/4.9.3/algorithm' '/home/david/.local/include/c++/4.9.3/utility' '/home/david/.local/include/c++/4.9.3/bits/stl_relops.h' '/home/david/.local/include/c++/4.9.3/bits/stl_algo.h' '/home/david/.local/include/c++/4.9.3/bits/algorithmfwd.h' '/home/david/.local/include/c++/4.9.3/bits/stl_heap.h' '/home/david/.local/include/c++/4.9.3/bits/stl_tempbuf.h' '/home/david/.local/include/c++/4.9.3/random' '/home/david/.local/include/c++/4.9.3/cmath' '/home/david/.local/include/c++/4.9.3/limits' '/home/david/.local/include/c++/4.9.3/bits/random.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/opt_random.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/x86intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ia32intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm_malloc.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/emmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/pmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ammintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/smmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/popcntintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/wmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/immintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avxintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx2intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512fintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512erintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512pfintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512cdintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/shaintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lzcntintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmiintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmi2intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fmaintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/f16cintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rtmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xtestintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm3dnow.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/prfchwintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fma4intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xopintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lwpintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tbmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rdseedintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fxsrintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveoptintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/adxintrin.h' '/home/david/.local/include/c++/4.9.3/bits/random.tcc' '/home/david/.local/include/c++/4.9.3/numeric' '/home/david/.local/include/c++/4.9.3/bits/stl_numeric.h' '/home/david/.local/include/c++/4.9.3/map' '/home/david/.local/include/c++/4.9.3/bits/stl_tree.h' '/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h' '/home/david/.local/include/c++/4.9.3/bits/stl_map.h' '/home/david/.local/include/c++/4.9.3/tuple' '/home/david/.local/include/c++/4.9.3/array' '/home/david/.local/include/c++/4.9.3/stdexcept' '/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h' '/home/david/.local/include/c++/4.9.3/bits/stl_multimap.h' '/home/david/.local/include/c++/4.9.3/stack' '/home/david/.local/include/c++/4.9.3/deque' '/home/david/.local/include/c++/4.9.3/bits/stl_deque.h' '/home/david/.local/include/c++/4.9.3/bits/deque.tcc' '/home/david/.local/include/c++/4.9.3/bits/stl_stack.h' '/home/david/.local/include/c++/4.9.3/ostream' '/home/david/.local/include/c++/4.9.3/ios' '/home/david/.local/include/c++/4.9.3/bits/ios_base.h' '/home/david/.local/include/c++/4.9.3/bits/locale_classes.h' '/home/david/.local/include/c++/4.9.3/bits/locale_classes.tcc' '/home/david/.local/include/c++/4.9.3/streambuf' '/home/david/.local/include/c++/4.9.3/bits/streambuf.tcc' '/home/david/.local/include/c++/4.9.3/bits/basic_ios.h' '/home/david/.local/include/c++/4.9.3/bits/locale_facets.h' '/home/david/.local/include/c++/4.9.3/cwctype' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_base.h' '/home/david/.local/include/c++/4.9.3/bits/streambuf_iterator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h' '/home/david/.local/include/c++/4.9.3/bits/locale_facets.tcc' '/home/david/.local/include/c++/4.9.3/bits/basic_ios.tcc' '/home/david/.local/include/c++/4.9.3/bits/ostream.tcc' '/home/david/.local/include/c++/4.9.3/set' '/home/david/.local/include/c++/4.9.3/bits/stl_set.h' '/home/david/.local/include/c++/4.9.3/bits/stl_multiset.h' '/home/david/.local/include/c++/4.9.3/tr1/unordered_set' '/home/david/.local/include/c++/4.9.3/tr1/type_traits' '/home/david/.local/include/c++/4.9.3/tr1/functional_hash.h' '/home/david/.local/include/c++/4.9.3/tr1/hashtable.h' '/home/david/.local/include/c++/4.9.3/tr1/hashtable_policy.h' '/home/david/.local/include/c++/4.9.3/tr1/unordered_set.h' '/home/david/.local/include/c++/4.9.3/sstream' '/home/david/.local/include/c++/4.9.3/istream' '/home/david/.local/include/c++/4.9.3/bits/istream.tcc' '/home/david/.local/include/c++/4.9.3/bits/sstream.tcc'. Target //tensorflow/tools/pip_package:build_pip_package failed to build Use --verbose_failures to see the command lines of failed build steps."><pre class="notranslate"><code class="notranslate">bazel build -c opt --config=cuda --spawn_strategy=standalone //tensorflow/tools/pip_package:build_pip_package Warning: ignoring LD_PRELOAD in environment. Sending SIGTERM to previous Bazel server (pid=19634)... done. ..... INFO: Found 1 target... ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2': this rule is missing dependency declarations for the following files included by 'external/re2/re2/perl_groups.cc': '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h' '/home/david/.local/include/c++/4.9.3/ctime' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h' '/home/david/.local/include/c++/4.9.3/vector' '/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h' '/home/david/.local/include/c++/4.9.3/bits/functexcept.h' '/home/david/.local/include/c++/4.9.3/bits/exception_defines.h' '/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_pair.h' '/home/david/.local/include/c++/4.9.3/bits/move.h' '/home/david/.local/include/c++/4.9.3/bits/concept_check.h' '/home/david/.local/include/c++/4.9.3/type_traits' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h' '/home/david/.local/include/c++/4.9.3/debug/debug.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h' '/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h' '/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h' '/home/david/.local/include/c++/4.9.3/bits/allocator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h' '/home/david/.local/include/c++/4.9.3/ext/new_allocator.h' '/home/david/.local/include/c++/4.9.3/new' '/home/david/.local/include/c++/4.9.3/exception' '/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h' '/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h' '/home/david/.local/include/c++/4.9.3/bits/nested_exception.h' '/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h' '/home/david/.local/include/c++/4.9.3/bits/stl_construct.h' '/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h' '/home/david/.local/include/c++/4.9.3/bits/stl_vector.h' '/home/david/.local/include/c++/4.9.3/initializer_list' '/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h' '/home/david/.local/include/c++/4.9.3/bits/functional_hash.h' '/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h' '/home/david/.local/include/c++/4.9.3/bits/range_access.h' '/home/david/.local/include/c++/4.9.3/bits/vector.tcc' '/home/david/.local/include/c++/4.9.3/string' '/home/david/.local/include/c++/4.9.3/bits/stringfwd.h' '/home/david/.local/include/c++/4.9.3/bits/char_traits.h' '/home/david/.local/include/c++/4.9.3/bits/postypes.h' '/home/david/.local/include/c++/4.9.3/cwchar' '/home/david/.local/include/c++/4.9.3/cstdint' '/home/david/.local/include/c++/4.9.3/bits/localefwd.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h' '/home/david/.local/include/c++/4.9.3/clocale' '/home/david/.local/include/c++/4.9.3/iosfwd' '/home/david/.local/include/c++/4.9.3/cctype' '/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h' '/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h' '/home/david/.local/include/c++/4.9.3/bits/stl_function.h' '/home/david/.local/include/c++/4.9.3/backward/binders.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.h' '/home/david/.local/include/c++/4.9.3/ext/atomicity.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h' '/home/david/.local/include/c++/4.9.3/ext/string_conversions.h' '/home/david/.local/include/c++/4.9.3/cstdlib' '/home/david/.local/include/c++/4.9.3/cstdio' '/home/david/.local/include/c++/4.9.3/cerrno' '/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc' '/home/david/.local/include/c++/4.9.3/algorithm' '/home/david/.local/include/c++/4.9.3/utility' '/home/david/.local/include/c++/4.9.3/bits/stl_relops.h' '/home/david/.local/include/c++/4.9.3/bits/stl_algo.h' '/home/david/.local/include/c++/4.9.3/bits/algorithmfwd.h' '/home/david/.local/include/c++/4.9.3/bits/stl_heap.h' '/home/david/.local/include/c++/4.9.3/bits/stl_tempbuf.h' '/home/david/.local/include/c++/4.9.3/random' '/home/david/.local/include/c++/4.9.3/cmath' '/home/david/.local/include/c++/4.9.3/limits' '/home/david/.local/include/c++/4.9.3/bits/random.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/opt_random.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/x86intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ia32intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm_malloc.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/emmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/pmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ammintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/smmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/popcntintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/wmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/immintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avxintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx2intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512fintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512erintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512pfintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512cdintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/shaintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lzcntintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmiintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmi2intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fmaintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/f16cintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rtmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xtestintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm3dnow.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/prfchwintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fma4intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xopintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lwpintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tbmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rdseedintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fxsrintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveoptintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/adxintrin.h' '/home/david/.local/include/c++/4.9.3/bits/random.tcc' '/home/david/.local/include/c++/4.9.3/numeric' '/home/david/.local/include/c++/4.9.3/bits/stl_numeric.h' '/home/david/.local/include/c++/4.9.3/map' '/home/david/.local/include/c++/4.9.3/bits/stl_tree.h' '/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h' '/home/david/.local/include/c++/4.9.3/bits/stl_map.h' '/home/david/.local/include/c++/4.9.3/tuple' '/home/david/.local/include/c++/4.9.3/array' '/home/david/.local/include/c++/4.9.3/stdexcept' '/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h' '/home/david/.local/include/c++/4.9.3/bits/stl_multimap.h' '/home/david/.local/include/c++/4.9.3/stack' '/home/david/.local/include/c++/4.9.3/deque' '/home/david/.local/include/c++/4.9.3/bits/stl_deque.h' '/home/david/.local/include/c++/4.9.3/bits/deque.tcc' '/home/david/.local/include/c++/4.9.3/bits/stl_stack.h' '/home/david/.local/include/c++/4.9.3/ostream' '/home/david/.local/include/c++/4.9.3/ios' '/home/david/.local/include/c++/4.9.3/bits/ios_base.h' '/home/david/.local/include/c++/4.9.3/bits/locale_classes.h' '/home/david/.local/include/c++/4.9.3/bits/locale_classes.tcc' '/home/david/.local/include/c++/4.9.3/streambuf' '/home/david/.local/include/c++/4.9.3/bits/streambuf.tcc' '/home/david/.local/include/c++/4.9.3/bits/basic_ios.h' '/home/david/.local/include/c++/4.9.3/bits/locale_facets.h' '/home/david/.local/include/c++/4.9.3/cwctype' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_base.h' '/home/david/.local/include/c++/4.9.3/bits/streambuf_iterator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h' '/home/david/.local/include/c++/4.9.3/bits/locale_facets.tcc' '/home/david/.local/include/c++/4.9.3/bits/basic_ios.tcc' '/home/david/.local/include/c++/4.9.3/bits/ostream.tcc' '/home/david/.local/include/c++/4.9.3/set' '/home/david/.local/include/c++/4.9.3/bits/stl_set.h' '/home/david/.local/include/c++/4.9.3/bits/stl_multiset.h' '/home/david/.local/include/c++/4.9.3/tr1/unordered_set' '/home/david/.local/include/c++/4.9.3/tr1/type_traits' '/home/david/.local/include/c++/4.9.3/tr1/functional_hash.h' '/home/david/.local/include/c++/4.9.3/tr1/hashtable.h' '/home/david/.local/include/c++/4.9.3/tr1/hashtable_policy.h' '/home/david/.local/include/c++/4.9.3/tr1/unordered_set.h' '/home/david/.local/include/c++/4.9.3/sstream' '/home/david/.local/include/c++/4.9.3/istream' '/home/david/.local/include/c++/4.9.3/bits/istream.tcc' '/home/david/.local/include/c++/4.9.3/bits/sstream.tcc'. Target //tensorflow/tools/pip_package:build_pip_package failed to build Use --verbose_failures to see the command lines of failed build steps. </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer Warning: ignoring LD_PRELOAD in environment. INFO: Found 1 target... ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2': this rule is missing dependency declarations for the following files included by 'external/re2/util/valgrind.cc': '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h' '/home/david/.local/include/c++/4.9.3/ctime' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h' '/home/david/.local/include/c++/4.9.3/vector' '/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h' '/home/david/.local/include/c++/4.9.3/bits/functexcept.h' '/home/david/.local/include/c++/4.9.3/bits/exception_defines.h' '/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_pair.h' '/home/david/.local/include/c++/4.9.3/bits/move.h' '/home/david/.local/include/c++/4.9.3/bits/concept_check.h' '/home/david/.local/include/c++/4.9.3/type_traits' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h' '/home/david/.local/include/c++/4.9.3/debug/debug.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h' '/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h' '/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h' '/home/david/.local/include/c++/4.9.3/bits/allocator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h' '/home/david/.local/include/c++/4.9.3/ext/new_allocator.h' '/home/david/.local/include/c++/4.9.3/new' '/home/david/.local/include/c++/4.9.3/exception' '/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h' '/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h' '/home/david/.local/include/c++/4.9.3/bits/nested_exception.h' '/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h' '/home/david/.local/include/c++/4.9.3/bits/stl_construct.h' '/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h' '/home/david/.local/include/c++/4.9.3/bits/stl_vector.h' '/home/david/.local/include/c++/4.9.3/initializer_list' '/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h' '/home/david/.local/include/c++/4.9.3/bits/functional_hash.h' '/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h' '/home/david/.local/include/c++/4.9.3/bits/range_access.h' '/home/david/.local/include/c++/4.9.3/bits/vector.tcc' '/home/david/.local/include/c++/4.9.3/string' '/home/david/.local/include/c++/4.9.3/bits/stringfwd.h' '/home/david/.local/include/c++/4.9.3/bits/char_traits.h' '/home/david/.local/include/c++/4.9.3/bits/postypes.h' '/home/david/.local/include/c++/4.9.3/cwchar' '/home/david/.local/include/c++/4.9.3/cstdint' '/home/david/.local/include/c++/4.9.3/bits/localefwd.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h' '/home/david/.local/include/c++/4.9.3/clocale' '/home/david/.local/include/c++/4.9.3/iosfwd' '/home/david/.local/include/c++/4.9.3/cctype' '/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h' '/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h' '/home/david/.local/include/c++/4.9.3/bits/stl_function.h' '/home/david/.local/include/c++/4.9.3/backward/binders.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.h' '/home/david/.local/include/c++/4.9.3/ext/atomicity.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h' '/home/david/.local/include/c++/4.9.3/ext/string_conversions.h' '/home/david/.local/include/c++/4.9.3/cstdlib' '/home/david/.local/include/c++/4.9.3/cstdio' '/home/david/.local/include/c++/4.9.3/cerrno' '/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc' '/home/david/.local/include/c++/4.9.3/algorithm' '/home/david/.local/include/c++/4.9.3/utility' '/home/david/.local/include/c++/4.9.3/bits/stl_relops.h' '/home/david/.local/include/c++/4.9.3/bits/stl_algo.h' '/home/david/.local/include/c++/4.9.3/bits/algorithmfwd.h' '/home/david/.local/include/c++/4.9.3/bits/stl_heap.h' '/home/david/.local/include/c++/4.9.3/bits/stl_tempbuf.h' '/home/david/.local/include/c++/4.9.3/random' '/home/david/.local/include/c++/4.9.3/cmath' '/home/david/.local/include/c++/4.9.3/limits' '/home/david/.local/include/c++/4.9.3/bits/random.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/opt_random.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/x86intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ia32intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm_malloc.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/emmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/pmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ammintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/smmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/popcntintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/wmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/immintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avxintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx2intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512fintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512erintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512pfintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512cdintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/shaintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lzcntintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmiintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmi2intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fmaintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/f16cintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rtmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xtestintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm3dnow.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/prfchwintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fma4intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xopintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lwpintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tbmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rdseedintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fxsrintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveoptintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/adxintrin.h' '/home/david/.local/include/c++/4.9.3/bits/random.tcc' '/home/david/.local/include/c++/4.9.3/numeric' '/home/david/.local/include/c++/4.9.3/bits/stl_numeric.h' '/home/david/.local/include/c++/4.9.3/map' '/home/david/.local/include/c++/4.9.3/bits/stl_tree.h' '/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h' '/home/david/.local/include/c++/4.9.3/bits/stl_map.h' '/home/david/.local/include/c++/4.9.3/tuple' '/home/david/.local/include/c++/4.9.3/array' '/home/david/.local/include/c++/4.9.3/stdexcept' '/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h' '/home/david/.local/include/c++/4.9.3/bits/stl_multimap.h' '/home/david/.local/include/c++/4.9.3/stack' '/home/david/.local/include/c++/4.9.3/deque' '/home/david/.local/include/c++/4.9.3/bits/stl_deque.h' '/home/david/.local/include/c++/4.9.3/bits/deque.tcc' '/home/david/.local/include/c++/4.9.3/bits/stl_stack.h' '/home/david/.local/include/c++/4.9.3/ostream' '/home/david/.local/include/c++/4.9.3/ios' '/home/david/.local/include/c++/4.9.3/bits/ios_base.h' '/home/david/.local/include/c++/4.9.3/bits/locale_classes.h' '/home/david/.local/include/c++/4.9.3/bits/locale_classes.tcc' '/home/david/.local/include/c++/4.9.3/streambuf' '/home/david/.local/include/c++/4.9.3/bits/streambuf.tcc' '/home/david/.local/include/c++/4.9.3/bits/basic_ios.h' '/home/david/.local/include/c++/4.9.3/bits/locale_facets.h' '/home/david/.local/include/c++/4.9.3/cwctype' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_base.h' '/home/david/.local/include/c++/4.9.3/bits/streambuf_iterator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h' '/home/david/.local/include/c++/4.9.3/bits/locale_facets.tcc' '/home/david/.local/include/c++/4.9.3/bits/basic_ios.tcc' '/home/david/.local/include/c++/4.9.3/bits/ostream.tcc' '/home/david/.local/include/c++/4.9.3/set' '/home/david/.local/include/c++/4.9.3/bits/stl_set.h' '/home/david/.local/include/c++/4.9.3/bits/stl_multiset.h' '/home/david/.local/include/c++/4.9.3/tr1/unordered_set' '/home/david/.local/include/c++/4.9.3/tr1/type_traits' '/home/david/.local/include/c++/4.9.3/tr1/functional_hash.h' '/home/david/.local/include/c++/4.9.3/tr1/hashtable.h' '/home/david/.local/include/c++/4.9.3/tr1/hashtable_policy.h' '/home/david/.local/include/c++/4.9.3/tr1/unordered_set.h' '/home/david/.local/include/c++/4.9.3/sstream' '/home/david/.local/include/c++/4.9.3/istream' '/home/david/.local/include/c++/4.9.3/bits/istream.tcc' '/home/david/.local/include/c++/4.9.3/bits/sstream.tcc'. Target //tensorflow/cc:tutorials_example_trainer failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 2.889s, Critical Path: 2.49s"><pre class="notranslate"><code class="notranslate">bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer Warning: ignoring LD_PRELOAD in environment. INFO: Found 1 target... ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2': this rule is missing dependency declarations for the following files included by 'external/re2/util/valgrind.cc': '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h' '/home/david/.local/include/c++/4.9.3/ctime' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h' '/home/david/.local/include/c++/4.9.3/vector' '/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h' '/home/david/.local/include/c++/4.9.3/bits/functexcept.h' '/home/david/.local/include/c++/4.9.3/bits/exception_defines.h' '/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_pair.h' '/home/david/.local/include/c++/4.9.3/bits/move.h' '/home/david/.local/include/c++/4.9.3/bits/concept_check.h' '/home/david/.local/include/c++/4.9.3/type_traits' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h' '/home/david/.local/include/c++/4.9.3/debug/debug.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h' '/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h' '/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h' '/home/david/.local/include/c++/4.9.3/bits/allocator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h' '/home/david/.local/include/c++/4.9.3/ext/new_allocator.h' '/home/david/.local/include/c++/4.9.3/new' '/home/david/.local/include/c++/4.9.3/exception' '/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h' '/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h' '/home/david/.local/include/c++/4.9.3/bits/nested_exception.h' '/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h' '/home/david/.local/include/c++/4.9.3/bits/stl_construct.h' '/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h' '/home/david/.local/include/c++/4.9.3/bits/stl_vector.h' '/home/david/.local/include/c++/4.9.3/initializer_list' '/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h' '/home/david/.local/include/c++/4.9.3/bits/functional_hash.h' '/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h' '/home/david/.local/include/c++/4.9.3/bits/range_access.h' '/home/david/.local/include/c++/4.9.3/bits/vector.tcc' '/home/david/.local/include/c++/4.9.3/string' '/home/david/.local/include/c++/4.9.3/bits/stringfwd.h' '/home/david/.local/include/c++/4.9.3/bits/char_traits.h' '/home/david/.local/include/c++/4.9.3/bits/postypes.h' '/home/david/.local/include/c++/4.9.3/cwchar' '/home/david/.local/include/c++/4.9.3/cstdint' '/home/david/.local/include/c++/4.9.3/bits/localefwd.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h' '/home/david/.local/include/c++/4.9.3/clocale' '/home/david/.local/include/c++/4.9.3/iosfwd' '/home/david/.local/include/c++/4.9.3/cctype' '/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h' '/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h' '/home/david/.local/include/c++/4.9.3/bits/stl_function.h' '/home/david/.local/include/c++/4.9.3/backward/binders.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.h' '/home/david/.local/include/c++/4.9.3/ext/atomicity.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h' '/home/david/.local/include/c++/4.9.3/ext/string_conversions.h' '/home/david/.local/include/c++/4.9.3/cstdlib' '/home/david/.local/include/c++/4.9.3/cstdio' '/home/david/.local/include/c++/4.9.3/cerrno' '/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc' '/home/david/.local/include/c++/4.9.3/algorithm' '/home/david/.local/include/c++/4.9.3/utility' '/home/david/.local/include/c++/4.9.3/bits/stl_relops.h' '/home/david/.local/include/c++/4.9.3/bits/stl_algo.h' '/home/david/.local/include/c++/4.9.3/bits/algorithmfwd.h' '/home/david/.local/include/c++/4.9.3/bits/stl_heap.h' '/home/david/.local/include/c++/4.9.3/bits/stl_tempbuf.h' '/home/david/.local/include/c++/4.9.3/random' '/home/david/.local/include/c++/4.9.3/cmath' '/home/david/.local/include/c++/4.9.3/limits' '/home/david/.local/include/c++/4.9.3/bits/random.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/opt_random.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/x86intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ia32intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm_malloc.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/emmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/pmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ammintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/smmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/popcntintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/wmmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/immintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avxintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx2intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512fintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512erintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512pfintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512cdintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/shaintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lzcntintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmiintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmi2intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fmaintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/f16cintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rtmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xtestintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm3dnow.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/prfchwintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fma4intrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xopintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lwpintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tbmintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rdseedintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fxsrintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveoptintrin.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/adxintrin.h' '/home/david/.local/include/c++/4.9.3/bits/random.tcc' '/home/david/.local/include/c++/4.9.3/numeric' '/home/david/.local/include/c++/4.9.3/bits/stl_numeric.h' '/home/david/.local/include/c++/4.9.3/map' '/home/david/.local/include/c++/4.9.3/bits/stl_tree.h' '/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h' '/home/david/.local/include/c++/4.9.3/bits/stl_map.h' '/home/david/.local/include/c++/4.9.3/tuple' '/home/david/.local/include/c++/4.9.3/array' '/home/david/.local/include/c++/4.9.3/stdexcept' '/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h' '/home/david/.local/include/c++/4.9.3/bits/stl_multimap.h' '/home/david/.local/include/c++/4.9.3/stack' '/home/david/.local/include/c++/4.9.3/deque' '/home/david/.local/include/c++/4.9.3/bits/stl_deque.h' '/home/david/.local/include/c++/4.9.3/bits/deque.tcc' '/home/david/.local/include/c++/4.9.3/bits/stl_stack.h' '/home/david/.local/include/c++/4.9.3/ostream' '/home/david/.local/include/c++/4.9.3/ios' '/home/david/.local/include/c++/4.9.3/bits/ios_base.h' '/home/david/.local/include/c++/4.9.3/bits/locale_classes.h' '/home/david/.local/include/c++/4.9.3/bits/locale_classes.tcc' '/home/david/.local/include/c++/4.9.3/streambuf' '/home/david/.local/include/c++/4.9.3/bits/streambuf.tcc' '/home/david/.local/include/c++/4.9.3/bits/basic_ios.h' '/home/david/.local/include/c++/4.9.3/bits/locale_facets.h' '/home/david/.local/include/c++/4.9.3/cwctype' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_base.h' '/home/david/.local/include/c++/4.9.3/bits/streambuf_iterator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h' '/home/david/.local/include/c++/4.9.3/bits/locale_facets.tcc' '/home/david/.local/include/c++/4.9.3/bits/basic_ios.tcc' '/home/david/.local/include/c++/4.9.3/bits/ostream.tcc' '/home/david/.local/include/c++/4.9.3/set' '/home/david/.local/include/c++/4.9.3/bits/stl_set.h' '/home/david/.local/include/c++/4.9.3/bits/stl_multiset.h' '/home/david/.local/include/c++/4.9.3/tr1/unordered_set' '/home/david/.local/include/c++/4.9.3/tr1/type_traits' '/home/david/.local/include/c++/4.9.3/tr1/functional_hash.h' '/home/david/.local/include/c++/4.9.3/tr1/hashtable.h' '/home/david/.local/include/c++/4.9.3/tr1/hashtable_policy.h' '/home/david/.local/include/c++/4.9.3/tr1/unordered_set.h' '/home/david/.local/include/c++/4.9.3/sstream' '/home/david/.local/include/c++/4.9.3/istream' '/home/david/.local/include/c++/4.9.3/bits/istream.tcc' '/home/david/.local/include/c++/4.9.3/bits/sstream.tcc'. Target //tensorflow/cc:tutorials_example_trainer failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 2.889s, Critical Path: 2.49s </code></pre></div> <p dir="auto">With Bazel 0.1.5:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build -c opt --config=cuda --verbose_failures //tensorflow/cc:tutorials_example_trainer Warning: ignoring LD_PRELOAD in environment. INFO: Found 1 target... ERROR: /home/david/gits/tensorflow/google/protobuf/BUILD:64:1: undeclared inclusion(s) in rule '//google/protobuf:protobuf': this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/io/strtod.cc': '/home/david/.local/include/c++/4.9.3/cstdio' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h' '/home/david/.local/include/c++/4.9.3/cstring' '/home/david/.local/include/c++/4.9.3/limits' '/home/david/.local/include/c++/4.9.3/string' '/home/david/.local/include/c++/4.9.3/bits/stringfwd.h' '/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h' '/home/david/.local/include/c++/4.9.3/bits/char_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h' '/home/david/.local/include/c++/4.9.3/bits/functexcept.h' '/home/david/.local/include/c++/4.9.3/bits/exception_defines.h' '/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_pair.h' '/home/david/.local/include/c++/4.9.3/bits/move.h' '/home/david/.local/include/c++/4.9.3/bits/concept_check.h' '/home/david/.local/include/c++/4.9.3/type_traits' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h' '/home/david/.local/include/c++/4.9.3/debug/debug.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h' '/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h' '/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h' '/home/david/.local/include/c++/4.9.3/bits/postypes.h' '/home/david/.local/include/c++/4.9.3/cwchar' '/home/david/.local/include/c++/4.9.3/cstdint' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h' '/home/david/.local/include/c++/4.9.3/bits/allocator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h' '/home/david/.local/include/c++/4.9.3/ext/new_allocator.h' '/home/david/.local/include/c++/4.9.3/new' '/home/david/.local/include/c++/4.9.3/exception' '/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h' '/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h' '/home/david/.local/include/c++/4.9.3/bits/nested_exception.h' '/home/david/.local/include/c++/4.9.3/bits/localefwd.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h' '/home/david/.local/include/c++/4.9.3/clocale' '/home/david/.local/include/c++/4.9.3/iosfwd' '/home/david/.local/include/c++/4.9.3/cctype' '/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h' '/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h' '/home/david/.local/include/c++/4.9.3/bits/stl_function.h' '/home/david/.local/include/c++/4.9.3/backward/binders.h' '/home/david/.local/include/c++/4.9.3/bits/range_access.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.h' '/home/david/.local/include/c++/4.9.3/ext/atomicity.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h' '/home/david/.local/include/c++/4.9.3/initializer_list' '/home/david/.local/include/c++/4.9.3/ext/string_conversions.h' '/home/david/.local/include/c++/4.9.3/cstdlib' '/home/david/.local/include/c++/4.9.3/cerrno' '/home/david/.local/include/c++/4.9.3/bits/functional_hash.h' '/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc' '/home/david/.local/include/c++/4.9.3/cstddef' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h' '/home/david/.local/include/c++/4.9.3/utility' '/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'. Target //tensorflow/cc:tutorials_example_trainer failed to build INFO: Elapsed time: 2.634s, Critical Path: 2.21s $ bazel build -c opt --config=cuda --verbose_failures --spawn_strategy=standalone //tensorflow/cc:tutorials_example_trainer Warning: ignoring LD_PRELOAD in environment. INFO: Found 1 target... ERROR: /home/david/gits/tensorflow/google/protobuf/BUILD:64:1: undeclared inclusion(s) in rule '//google/protobuf:protobuf': this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/stubs/substitute.cc': '/home/david/.local/include/c++/4.9.3/string' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h' '/home/david/.local/include/c++/4.9.3/bits/stringfwd.h' '/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h' '/home/david/.local/include/c++/4.9.3/bits/char_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h' '/home/david/.local/include/c++/4.9.3/bits/functexcept.h' '/home/david/.local/include/c++/4.9.3/bits/exception_defines.h' '/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_pair.h' '/home/david/.local/include/c++/4.9.3/bits/move.h' '/home/david/.local/include/c++/4.9.3/bits/concept_check.h' '/home/david/.local/include/c++/4.9.3/type_traits' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h' '/home/david/.local/include/c++/4.9.3/debug/debug.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h' '/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h' '/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h' '/home/david/.local/include/c++/4.9.3/bits/postypes.h' '/home/david/.local/include/c++/4.9.3/cwchar' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h' '/home/david/.local/include/c++/4.9.3/cstdint' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h' '/home/david/.local/include/c++/4.9.3/bits/allocator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h' '/home/david/.local/include/c++/4.9.3/ext/new_allocator.h' '/home/david/.local/include/c++/4.9.3/new' '/home/david/.local/include/c++/4.9.3/exception' '/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h' '/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h' '/home/david/.local/include/c++/4.9.3/bits/nested_exception.h' '/home/david/.local/include/c++/4.9.3/bits/localefwd.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h' '/home/david/.local/include/c++/4.9.3/clocale' '/home/david/.local/include/c++/4.9.3/iosfwd' '/home/david/.local/include/c++/4.9.3/cctype' '/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h' '/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h' '/home/david/.local/include/c++/4.9.3/bits/stl_function.h' '/home/david/.local/include/c++/4.9.3/backward/binders.h' '/home/david/.local/include/c++/4.9.3/bits/range_access.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.h' '/home/david/.local/include/c++/4.9.3/ext/atomicity.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h' '/home/david/.local/include/c++/4.9.3/initializer_list' '/home/david/.local/include/c++/4.9.3/ext/string_conversions.h' '/home/david/.local/include/c++/4.9.3/cstdlib' '/home/david/.local/include/c++/4.9.3/cstdio' '/home/david/.local/include/c++/4.9.3/cerrno' '/home/david/.local/include/c++/4.9.3/bits/functional_hash.h' '/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc' '/home/david/.local/include/c++/4.9.3/cstddef' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h' '/home/david/.local/include/c++/4.9.3/utility' '/home/david/.local/include/c++/4.9.3/bits/stl_relops.h' '/home/david/.local/include/c++/4.9.3/vector' '/home/david/.local/include/c++/4.9.3/bits/stl_construct.h' '/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h' '/home/david/.local/include/c++/4.9.3/bits/stl_vector.h' '/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h' '/home/david/.local/include/c++/4.9.3/bits/vector.tcc' '/home/david/.local/include/c++/4.9.3/limits' '/home/david/.local/include/c++/4.9.3/unordered_map' '/home/david/.local/include/c++/4.9.3/tuple' '/home/david/.local/include/c++/4.9.3/array' '/home/david/.local/include/c++/4.9.3/stdexcept' '/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h' '/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h' '/home/david/.local/include/c++/4.9.3/bits/hashtable.h' '/home/david/.local/include/c++/4.9.3/bits/hashtable_policy.h' '/home/david/.local/include/c++/4.9.3/bits/unordered_map.h' '/home/david/.local/include/c++/4.9.3/unordered_set' '/home/david/.local/include/c++/4.9.3/bits/unordered_set.h'. Target //tensorflow/cc:tutorials_example_trainer failed to build ERROR: /home/david/gits/tensorflow/tensorflow/cc/BUILD:28:1 undeclared inclusion(s) in rule '//google/protobuf:protobuf': this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/stubs/substitute.cc': '/home/david/.local/include/c++/4.9.3/string' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h' '/home/david/.local/include/c++/4.9.3/bits/stringfwd.h' '/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h' '/home/david/.local/include/c++/4.9.3/bits/char_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h' '/home/david/.local/include/c++/4.9.3/bits/functexcept.h' '/home/david/.local/include/c++/4.9.3/bits/exception_defines.h' '/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_pair.h' '/home/david/.local/include/c++/4.9.3/bits/move.h' '/home/david/.local/include/c++/4.9.3/bits/concept_check.h' '/home/david/.local/include/c++/4.9.3/type_traits' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h' '/home/david/.local/include/c++/4.9.3/debug/debug.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h' '/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h' '/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h' '/home/david/.local/include/c++/4.9.3/bits/postypes.h' '/home/david/.local/include/c++/4.9.3/cwchar' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h' '/home/david/.local/include/c++/4.9.3/cstdint' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h' '/home/david/.local/include/c++/4.9.3/bits/allocator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h' '/home/david/.local/include/c++/4.9.3/ext/new_allocator.h' '/home/david/.local/include/c++/4.9.3/new' '/home/david/.local/include/c++/4.9.3/exception' '/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h' '/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h' '/home/david/.local/include/c++/4.9.3/bits/nested_exception.h' '/home/david/.local/include/c++/4.9.3/bits/localefwd.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h' '/home/david/.local/include/c++/4.9.3/clocale' '/home/david/.local/include/c++/4.9.3/iosfwd' '/home/david/.local/include/c++/4.9.3/cctype' '/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h' '/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h' '/home/david/.local/include/c++/4.9.3/bits/stl_function.h' '/home/david/.local/include/c++/4.9.3/backward/binders.h' '/home/david/.local/include/c++/4.9.3/bits/range_access.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.h' '/home/david/.local/include/c++/4.9.3/ext/atomicity.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h' '/home/david/.local/include/c++/4.9.3/initializer_list' '/home/david/.local/include/c++/4.9.3/ext/string_conversions.h' '/home/david/.local/include/c++/4.9.3/cstdlib' '/home/david/.local/include/c++/4.9.3/cstdio' '/home/david/.local/include/c++/4.9.3/cerrno' '/home/david/.local/include/c++/4.9.3/bits/functional_hash.h' '/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc' '/home/david/.local/include/c++/4.9.3/cstddef' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h' '/home/david/.local/include/c++/4.9.3/utility' '/home/david/.local/include/c++/4.9.3/bits/stl_relops.h' '/home/david/.local/include/c++/4.9.3/vector' '/home/david/.local/include/c++/4.9.3/bits/stl_construct.h' '/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h' '/home/david/.local/include/c++/4.9.3/bits/stl_vector.h' '/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h' '/home/david/.local/include/c++/4.9.3/bits/vector.tcc' '/home/david/.local/include/c++/4.9.3/limits' '/home/david/.local/include/c++/4.9.3/unordered_map' '/home/david/.local/include/c++/4.9.3/tuple' '/home/david/.local/include/c++/4.9.3/array' '/home/david/.local/include/c++/4.9.3/stdexcept' '/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h' '/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h' '/home/david/.local/include/c++/4.9.3/bits/hashtable.h' '/home/david/.local/include/c++/4.9.3/bits/hashtable_policy.h' '/home/david/.local/include/c++/4.9.3/bits/unordered_map.h' '/home/david/.local/include/c++/4.9.3/unordered_set' '/home/david/.local/include/c++/4.9.3/bits/unordered_set.h'. INFO: Elapsed time: 0.999s, Critical Path: 0.80s"><pre class="notranslate"><code class="notranslate">bazel build -c opt --config=cuda --verbose_failures //tensorflow/cc:tutorials_example_trainer Warning: ignoring LD_PRELOAD in environment. INFO: Found 1 target... ERROR: /home/david/gits/tensorflow/google/protobuf/BUILD:64:1: undeclared inclusion(s) in rule '//google/protobuf:protobuf': this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/io/strtod.cc': '/home/david/.local/include/c++/4.9.3/cstdio' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h' '/home/david/.local/include/c++/4.9.3/cstring' '/home/david/.local/include/c++/4.9.3/limits' '/home/david/.local/include/c++/4.9.3/string' '/home/david/.local/include/c++/4.9.3/bits/stringfwd.h' '/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h' '/home/david/.local/include/c++/4.9.3/bits/char_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h' '/home/david/.local/include/c++/4.9.3/bits/functexcept.h' '/home/david/.local/include/c++/4.9.3/bits/exception_defines.h' '/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_pair.h' '/home/david/.local/include/c++/4.9.3/bits/move.h' '/home/david/.local/include/c++/4.9.3/bits/concept_check.h' '/home/david/.local/include/c++/4.9.3/type_traits' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h' '/home/david/.local/include/c++/4.9.3/debug/debug.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h' '/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h' '/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h' '/home/david/.local/include/c++/4.9.3/bits/postypes.h' '/home/david/.local/include/c++/4.9.3/cwchar' '/home/david/.local/include/c++/4.9.3/cstdint' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h' '/home/david/.local/include/c++/4.9.3/bits/allocator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h' '/home/david/.local/include/c++/4.9.3/ext/new_allocator.h' '/home/david/.local/include/c++/4.9.3/new' '/home/david/.local/include/c++/4.9.3/exception' '/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h' '/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h' '/home/david/.local/include/c++/4.9.3/bits/nested_exception.h' '/home/david/.local/include/c++/4.9.3/bits/localefwd.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h' '/home/david/.local/include/c++/4.9.3/clocale' '/home/david/.local/include/c++/4.9.3/iosfwd' '/home/david/.local/include/c++/4.9.3/cctype' '/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h' '/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h' '/home/david/.local/include/c++/4.9.3/bits/stl_function.h' '/home/david/.local/include/c++/4.9.3/backward/binders.h' '/home/david/.local/include/c++/4.9.3/bits/range_access.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.h' '/home/david/.local/include/c++/4.9.3/ext/atomicity.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h' '/home/david/.local/include/c++/4.9.3/initializer_list' '/home/david/.local/include/c++/4.9.3/ext/string_conversions.h' '/home/david/.local/include/c++/4.9.3/cstdlib' '/home/david/.local/include/c++/4.9.3/cerrno' '/home/david/.local/include/c++/4.9.3/bits/functional_hash.h' '/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc' '/home/david/.local/include/c++/4.9.3/cstddef' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h' '/home/david/.local/include/c++/4.9.3/utility' '/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'. Target //tensorflow/cc:tutorials_example_trainer failed to build INFO: Elapsed time: 2.634s, Critical Path: 2.21s $ bazel build -c opt --config=cuda --verbose_failures --spawn_strategy=standalone //tensorflow/cc:tutorials_example_trainer Warning: ignoring LD_PRELOAD in environment. INFO: Found 1 target... ERROR: /home/david/gits/tensorflow/google/protobuf/BUILD:64:1: undeclared inclusion(s) in rule '//google/protobuf:protobuf': this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/stubs/substitute.cc': '/home/david/.local/include/c++/4.9.3/string' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h' '/home/david/.local/include/c++/4.9.3/bits/stringfwd.h' '/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h' '/home/david/.local/include/c++/4.9.3/bits/char_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h' '/home/david/.local/include/c++/4.9.3/bits/functexcept.h' '/home/david/.local/include/c++/4.9.3/bits/exception_defines.h' '/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_pair.h' '/home/david/.local/include/c++/4.9.3/bits/move.h' '/home/david/.local/include/c++/4.9.3/bits/concept_check.h' '/home/david/.local/include/c++/4.9.3/type_traits' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h' '/home/david/.local/include/c++/4.9.3/debug/debug.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h' '/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h' '/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h' '/home/david/.local/include/c++/4.9.3/bits/postypes.h' '/home/david/.local/include/c++/4.9.3/cwchar' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h' '/home/david/.local/include/c++/4.9.3/cstdint' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h' '/home/david/.local/include/c++/4.9.3/bits/allocator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h' '/home/david/.local/include/c++/4.9.3/ext/new_allocator.h' '/home/david/.local/include/c++/4.9.3/new' '/home/david/.local/include/c++/4.9.3/exception' '/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h' '/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h' '/home/david/.local/include/c++/4.9.3/bits/nested_exception.h' '/home/david/.local/include/c++/4.9.3/bits/localefwd.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h' '/home/david/.local/include/c++/4.9.3/clocale' '/home/david/.local/include/c++/4.9.3/iosfwd' '/home/david/.local/include/c++/4.9.3/cctype' '/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h' '/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h' '/home/david/.local/include/c++/4.9.3/bits/stl_function.h' '/home/david/.local/include/c++/4.9.3/backward/binders.h' '/home/david/.local/include/c++/4.9.3/bits/range_access.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.h' '/home/david/.local/include/c++/4.9.3/ext/atomicity.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h' '/home/david/.local/include/c++/4.9.3/initializer_list' '/home/david/.local/include/c++/4.9.3/ext/string_conversions.h' '/home/david/.local/include/c++/4.9.3/cstdlib' '/home/david/.local/include/c++/4.9.3/cstdio' '/home/david/.local/include/c++/4.9.3/cerrno' '/home/david/.local/include/c++/4.9.3/bits/functional_hash.h' '/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc' '/home/david/.local/include/c++/4.9.3/cstddef' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h' '/home/david/.local/include/c++/4.9.3/utility' '/home/david/.local/include/c++/4.9.3/bits/stl_relops.h' '/home/david/.local/include/c++/4.9.3/vector' '/home/david/.local/include/c++/4.9.3/bits/stl_construct.h' '/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h' '/home/david/.local/include/c++/4.9.3/bits/stl_vector.h' '/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h' '/home/david/.local/include/c++/4.9.3/bits/vector.tcc' '/home/david/.local/include/c++/4.9.3/limits' '/home/david/.local/include/c++/4.9.3/unordered_map' '/home/david/.local/include/c++/4.9.3/tuple' '/home/david/.local/include/c++/4.9.3/array' '/home/david/.local/include/c++/4.9.3/stdexcept' '/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h' '/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h' '/home/david/.local/include/c++/4.9.3/bits/hashtable.h' '/home/david/.local/include/c++/4.9.3/bits/hashtable_policy.h' '/home/david/.local/include/c++/4.9.3/bits/unordered_map.h' '/home/david/.local/include/c++/4.9.3/unordered_set' '/home/david/.local/include/c++/4.9.3/bits/unordered_set.h'. Target //tensorflow/cc:tutorials_example_trainer failed to build ERROR: /home/david/gits/tensorflow/tensorflow/cc/BUILD:28:1 undeclared inclusion(s) in rule '//google/protobuf:protobuf': this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/stubs/substitute.cc': '/home/david/.local/include/c++/4.9.3/string' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h' '/home/david/.local/include/c++/4.9.3/bits/stringfwd.h' '/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h' '/home/david/.local/include/c++/4.9.3/bits/char_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h' '/home/david/.local/include/c++/4.9.3/bits/functexcept.h' '/home/david/.local/include/c++/4.9.3/bits/exception_defines.h' '/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/type_traits.h' '/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_pair.h' '/home/david/.local/include/c++/4.9.3/bits/move.h' '/home/david/.local/include/c++/4.9.3/bits/concept_check.h' '/home/david/.local/include/c++/4.9.3/type_traits' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h' '/home/david/.local/include/c++/4.9.3/debug/debug.h' '/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h' '/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h' '/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h' '/home/david/.local/include/c++/4.9.3/bits/postypes.h' '/home/david/.local/include/c++/4.9.3/cwchar' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h' '/home/david/.local/include/c++/4.9.3/cstdint' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h' '/home/david/.local/include/c++/4.9.3/bits/allocator.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h' '/home/david/.local/include/c++/4.9.3/ext/new_allocator.h' '/home/david/.local/include/c++/4.9.3/new' '/home/david/.local/include/c++/4.9.3/exception' '/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h' '/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h' '/home/david/.local/include/c++/4.9.3/bits/nested_exception.h' '/home/david/.local/include/c++/4.9.3/bits/localefwd.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h' '/home/david/.local/include/c++/4.9.3/clocale' '/home/david/.local/include/c++/4.9.3/iosfwd' '/home/david/.local/include/c++/4.9.3/cctype' '/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h' '/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h' '/home/david/.local/include/c++/4.9.3/bits/stl_function.h' '/home/david/.local/include/c++/4.9.3/backward/binders.h' '/home/david/.local/include/c++/4.9.3/bits/range_access.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.h' '/home/david/.local/include/c++/4.9.3/ext/atomicity.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h' '/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h' '/home/david/.local/include/c++/4.9.3/initializer_list' '/home/david/.local/include/c++/4.9.3/ext/string_conversions.h' '/home/david/.local/include/c++/4.9.3/cstdlib' '/home/david/.local/include/c++/4.9.3/cstdio' '/home/david/.local/include/c++/4.9.3/cerrno' '/home/david/.local/include/c++/4.9.3/bits/functional_hash.h' '/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h' '/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc' '/home/david/.local/include/c++/4.9.3/cstddef' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h' '/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h' '/home/david/.local/include/c++/4.9.3/utility' '/home/david/.local/include/c++/4.9.3/bits/stl_relops.h' '/home/david/.local/include/c++/4.9.3/vector' '/home/david/.local/include/c++/4.9.3/bits/stl_construct.h' '/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h' '/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h' '/home/david/.local/include/c++/4.9.3/bits/stl_vector.h' '/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h' '/home/david/.local/include/c++/4.9.3/bits/vector.tcc' '/home/david/.local/include/c++/4.9.3/limits' '/home/david/.local/include/c++/4.9.3/unordered_map' '/home/david/.local/include/c++/4.9.3/tuple' '/home/david/.local/include/c++/4.9.3/array' '/home/david/.local/include/c++/4.9.3/stdexcept' '/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h' '/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h' '/home/david/.local/include/c++/4.9.3/bits/hashtable.h' '/home/david/.local/include/c++/4.9.3/bits/hashtable_policy.h' '/home/david/.local/include/c++/4.9.3/bits/unordered_map.h' '/home/david/.local/include/c++/4.9.3/unordered_set' '/home/david/.local/include/c++/4.9.3/bits/unordered_set.h'. INFO: Elapsed time: 0.999s, Critical Path: 0.80s </code></pre></div> <p dir="auto">Bazel 2.2b fails when tensorflow tries to parse the version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" bazel build -c opt --config=cuda --verbose_failures --spawn_strategy=standalone //tensorflow/cc:tutorials_example_trainer Warning: ignoring LD_PRELOAD in environment. Sending SIGTERM to previous Bazel server (pid=24216)... done. ...... ERROR: /home/david/gits/tensorflow/WORKSPACE:21:1: Traceback (most recent call last): File &quot;/home/david/gits/tensorflow/WORKSPACE&quot;, line 21 check_version(&quot;0.1.4&quot;) File &quot;/home/david/gits/tensorflow/tensorflow/tensorflow.bzl&quot;, line 22, in check_version _parse_bazel_version(native.bazel_version) File &quot;/home/david/gits/tensorflow/tensorflow/tensorflow.bzl&quot;, line 15, in _parse_bazel_version int(number) invalid literal for int(): &quot;2b&quot;. ERROR: Error evaluating WORKSPACE file. ERROR: no such package 'external': Package 'external' contains errors. INFO: Elapsed time: 0.610s"><pre class="notranslate"><code class="notranslate"> bazel build -c opt --config=cuda --verbose_failures --spawn_strategy=standalone //tensorflow/cc:tutorials_example_trainer Warning: ignoring LD_PRELOAD in environment. Sending SIGTERM to previous Bazel server (pid=24216)... done. ...... ERROR: /home/david/gits/tensorflow/WORKSPACE:21:1: Traceback (most recent call last): File "/home/david/gits/tensorflow/WORKSPACE", line 21 check_version("0.1.4") File "/home/david/gits/tensorflow/tensorflow/tensorflow.bzl", line 22, in check_version _parse_bazel_version(native.bazel_version) File "/home/david/gits/tensorflow/tensorflow/tensorflow.bzl", line 15, in _parse_bazel_version int(number) invalid literal for int(): "2b". ERROR: Error evaluating WORKSPACE file. ERROR: no such package 'external': Package 'external' contains errors. INFO: Elapsed time: 0.610s </code></pre></div> <p dir="auto">Correcting that mistake I get a bulld error again:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" bazel build -c opt --config=cuda --spawn_strategy=standalone --verbose_failures //tensorflow/tools/pip_package:build_pip_package Warning: ignoring LD_PRELOAD in environment. ERROR: no such package 'external': Package 'external' contains errors. INFO: Elapsed time: 0.084s"><pre class="notranslate"><code class="notranslate"> bazel build -c opt --config=cuda --spawn_strategy=standalone --verbose_failures //tensorflow/tools/pip_package:build_pip_package Warning: ignoring LD_PRELOAD in environment. ERROR: no such package 'external': Package 'external' contains errors. INFO: Elapsed time: 0.084s </code></pre></div> <p dir="auto">How can I get it to work? I am interested in building Tensorflow with vector instructions for my laptop and linking against the latest cudnn for my workstation.</p>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Today, custom-zone-sets are stored in the zones-settings.json file, along with app-zone-history and devices trees. This makes it difficult to backup or share configurations between people / computers.</p> <h1 dir="auto">Proposed Solution</h1> <p dir="auto">Propose moving custom-zone-sets into a directory where each custom zone setting is a separate file.</p> <h1 dir="auto">Benefits</h1> <ul dir="auto"> <li>back up and restore custom zone sets</li> <li>sharing custom zone sets or specific templates with community</li> </ul>
<p dir="auto">Having the app history in the same file of the zones settings has some drawbacks:</p> <ul dir="auto"> <li>it contains sensitive data and makes more complicated to report the zone settings without it</li> <li>we need to make changes to the app history schema and that work should not effect the zones settings code path</li> <li>since we have to persist the app history data more frequently than the zone settings, it's kind of pointless to process the zone settings every time we need to read/write the app history</li> </ul>
1
<p dir="auto">There is no environment variable equivalent to <code class="notranslate">-J</code>/<code class="notranslate">--sysimage</code> option for specifying a custom image for Julia instance. I think supporting a variable like <code class="notranslate">JULIA_SYSIMAGE</code> can be quite useful when deploying Julia for custom environment, i.e. deploying in a Docker container with custom system image baked in.</p> <p dir="auto">Currently, one would have to manually add an option every time or create a wrapper script to launch Julia with custom image, especially when replacing default system image is not an option (i.e. <a href="https://github.com/jupyterhub/repo2docker">repo2docker</a> does not allow root privileges for touching system image when using default Julia buildpak).</p>
<p dir="auto">Being able to specify this path with a variable such as <code class="notranslate">JULIA_SYSIMAGE=/tmp/sysimage.so</code> would be useful.</p>
1
<p dir="auto">The include/exclude clause used in aggregations like <em>terms</em> agg uses regex syntax to identify terms.<br> While this offers a lot of flexibility for matching, the list of terms supplied by a user is sometimes a fixed set of raw values and it is:<br> a) inconvenient for the user to have to escape these strings into "legal" regex patterns and<br> b) inefficient to parse and interpret these as regex patterns when a simple hashset would suffice</p> <p dir="auto">The proposed change is the addition of a "values" array to both <em>include</em> and <em>exclude</em> clauses:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;terms&quot; : { &quot;field&quot; : &quot;domains.raw&quot;, &quot;include&quot; : { &quot;values&quot;: [ &quot;http://www.foo.com&quot;, &quot;http://www.bar.com&quot;] } }"><pre class="notranslate"><code class="notranslate">"terms" : { "field" : "domains.raw", "include" : { "values": [ "http://www.foo.com", "http://www.bar.com"] } } </code></pre></div> <p dir="auto">This can be used in conjunction or instead of the existing "pattern" clause in a search. If an include or exclude statement contains a mix of regex ("pattern") and exact ("values") clauses then this would be a logical OR - a match on the regex clause OR the exact value clause would constitute a match.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/clintongormley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/clintongormley">@clintongormley</a> you may have some input on this?</p>
<p dir="auto">In facets, we can filter a Terms Facet using an <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-terms-facet.html#_excluding_terms" rel="nofollow">array of values</a>:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;query&quot; : { &quot;match_all&quot; : { } }, &quot;facets&quot; : { &quot;tag&quot; : { &quot;terms&quot; : { &quot;field&quot; : &quot;tag&quot;, &quot;exclude&quot; : [&quot;term1&quot;, &quot;term2&quot;] } } } }"><pre class="notranslate">{ <span class="pl-ent">"query"</span> : { <span class="pl-ent">"match_all"</span> : { } }, <span class="pl-ent">"facets"</span> : { <span class="pl-ent">"tag"</span> : { <span class="pl-ent">"terms"</span> : { <span class="pl-ent">"field"</span> : <span class="pl-s"><span class="pl-pds">"</span>tag<span class="pl-pds">"</span></span>, <span class="pl-ent">"exclude"</span> : [<span class="pl-s"><span class="pl-pds">"</span>term1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>term2<span class="pl-pds">"</span></span>] } } } }</pre></div> <p dir="auto">In aggs, we can't use the same syntax anymore as <a href="https://github.com/elasticsearch/elasticsearch/blob/1.2/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/support/IncludeExclude.java#L141-155">IncludeExclude</a> does not support arrays.</p> <p dir="auto">Same apply for include.</p> <p dir="auto">We can probably use <code class="notranslate">|</code> character to separate terms but it could be handy to be able to specify directly an array of terms.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jpountz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jpountz">@jpountz</a></p>
1
<p dir="auto">For English only, other languages we will close it directly.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <p dir="auto">Before submit a new issue, please check existed issue first, to make sure your issue is not a duplicated one.</p> <h3 dir="auto">Which version of Sharding-Sphere do you using?</h3> <p dir="auto">3.0.0M3</p> <h3 dir="auto">Which project do you using? Sharding-JDBC or Sharding-Proxy?</h3> <p dir="auto">Sharding-JDBC</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">there are two data sources ds-2017 and ds-2018 use year sharding database<br> very data sources use month sharding tabale table1..12<br> using create_date field in table sharding rule<br> query 2017-08-01 to 2018-09-01 data</p> <p dir="auto">Sharding-Sphere-SQL.log<br> select * from ds-2017.table1..12 where create_date between ? and ?<br> select * from ds-2018.table1..12 where create_date between ? and ?<br> way not<br> select * from ds-2017.table8..12 where create_date between ? and ?<br> select * from ds-2018.table1..09 where create_date between ? and ?</p> <p dir="auto">It's my sharding rule problem?</p> <p dir="auto">if database sharding rule and table sharding rule can unified processing, use the same doBetweenSharding() method then can return the specified database corresponds to the specified table<br> like ds-2017 contain table8..table12 ds-2018 contain table1..09<br> Map&lt;String, List&gt; result = [{ds2017, [table8,table9....,table12]}, {ds2018, [table1.....,table9]}]</p> <p dir="auto">please help answer this question thank you!</p> <h3 dir="auto">Actual behavior</h3> <h3 dir="auto">Reason analyze</h3> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc</h3> <h3 dir="auto">For bug report, please <em>MUST</em> provide the reproduce example codes (such as a github link).</h3>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">master</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">Proxy + Agent</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto"><code class="notranslate">build_info</code>, <code class="notranslate">proxy_state</code>, <code class="notranslate">proxy_meta_data_info</code> are only exported once.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto"><code class="notranslate">build_info</code>, <code class="notranslate">proxy_state</code>, <code class="notranslate">proxy_meta_data_info</code> will be repeatedly exported.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16010265/215697339-8436f4c8-7074-4663-a774-c3497b33e0bf.png"><img src="https://user-images.githubusercontent.com/16010265/215697339-8436f4c8-7074-4663-a774-c3497b33e0bf.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Reason analyze (If you can)</h3> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
0
<h2 dir="auto">Description</h2> <p dir="auto">When fitting a <code class="notranslate">LogisticRegression</code> on a sparse <code class="notranslate">csr</code> matrix with <code class="notranslate">dtype</code> set to <code class="notranslate">np.float32</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;378019x13491 sparse matrix of type '&lt;class 'numpy.float32'&gt;' with 13405727 stored elements in Compressed Sparse Row format&gt;"><pre class="notranslate"><code class="notranslate">&lt;378019x13491 sparse matrix of type '&lt;class 'numpy.float32'&gt;' with 13405727 stored elements in Compressed Sparse Row format&gt; </code></pre></div> <p dir="auto">the call to <code class="notranslate">fit</code> fails, with the exception below, indicating we are trying to write to a read-only variable.</p> <p dir="auto">I have read <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="68665973" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/4597" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/4597/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/4597">#4597</a>, and the issue seems similar here:</p> <ul dir="auto"> <li><code class="notranslate">joblib</code> thinks data matrix is large enough to be exposed as a read-only memory-mapped file</li> <li><code class="notranslate">logistic.py</code> runs the following check, which can lead to an implicit cast to <code class="notranslate">np.float64</code>:</li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" if solver == 'lbfgs': _dtype = np.float64 else: _dtype = [np.float64, np.float32] X, y = check_X_y(X, y, accept_sparse='csr', dtype=_dtype, order=&quot;C&quot;, accept_large_sparse=solver != 'liblinear')"><pre class="notranslate"> <span class="pl-k">if</span> <span class="pl-s1">solver</span> <span class="pl-c1">==</span> <span class="pl-s">'lbfgs'</span>: <span class="pl-s1">_dtype</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">float64</span> <span class="pl-k">else</span>: <span class="pl-s1">_dtype</span> <span class="pl-c1">=</span> [<span class="pl-s1">np</span>.<span class="pl-s1">float64</span>, <span class="pl-s1">np</span>.<span class="pl-s1">float32</span>] <span class="pl-v">X</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">check_X_y</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>, <span class="pl-s1">accept_sparse</span><span class="pl-c1">=</span><span class="pl-s">'csr'</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">_dtype</span>, <span class="pl-s1">order</span><span class="pl-c1">=</span><span class="pl-s">"C"</span>, <span class="pl-s1">accept_large_sparse</span><span class="pl-c1">=</span><span class="pl-s1">solver</span> <span class="pl-c1">!=</span> <span class="pl-s">'liblinear'</span>)</pre></div> <p dir="auto">Here, <code class="notranslate">check_X_y</code> tries to convert <code class="notranslate">X</code> to <code class="notranslate">np.float64</code> which apparently cannot be done.</p> <p dir="auto">Solutions appear to be either:</p> <ul dir="auto"> <li>Pass in a matrix with <code class="notranslate">np.float64</code> type</li> <li>Use a different solver than <code class="notranslate">lbfgs</code></li> </ul> <p dir="auto">which I guess is acceptable. I am not sure if <code class="notranslate">check_X_y</code> could also do the type conversion without having to write X (this seems to be done as part of sorting)&gt;</p> <p dir="auto">The logistic regression API and documentation could also be improved to be more user-friendly:</p> <ul dir="auto"> <li> <p dir="auto">The documentation for <code class="notranslate">LogisticRegression</code> does not mention that <code class="notranslate">lbfgs</code> only supports <code class="notranslate">np.float64</code>. I think using <code class="notranslate">np.float32</code> is a relatively common use case to limit memory usage, but here, even when memory mapping is not used, it silently leads to a copy with a different type being made.</p> </li> <li> <p dir="auto">Should <code class="notranslate">check_X_y</code> check whether <code class="notranslate">X</code> is read-only before attempting to do a type conversion? This could fail with a clearer exception, if we are not able to do the copy without touching the original matrix.</p> </li> </ul> <h4 dir="auto">Code</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.model_selection import GridSearchCV, GroupKFold, StratifiedKFold from sklearn.metrics import accuracy_score, balanced_accuracy_score, make_scorer from sklearn.linear_model import LogisticRegression parameters = {&quot;C&quot;: np.logspace(-4, 1, 6), &quot;penalty&quot;: [&quot;l2&quot;], &quot;max_iter&quot;: [800]} clf = LogisticRegression(verbose=3, class_weight=&quot;balanced&quot;) cv = StratifiedKFold(3) grid_cv = GridSearchCV( clf, parameters, refit=False, cv=cv, scoring=make_scorer(balanced_accuracy_score), n_jobs=20, ) clf_ovr = OneVsRestClassifier(grid_cv, n_jobs=20) clf_ovr.fit(X_np32, y)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">model_selection</span> <span class="pl-k">import</span> <span class="pl-v">GridSearchCV</span>, <span class="pl-v">GroupKFold</span>, <span class="pl-v">StratifiedKFold</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">metrics</span> <span class="pl-k">import</span> <span class="pl-s1">accuracy_score</span>, <span class="pl-s1">balanced_accuracy_score</span>, <span class="pl-s1">make_scorer</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">linear_model</span> <span class="pl-k">import</span> <span class="pl-v">LogisticRegression</span> <span class="pl-s1">parameters</span> <span class="pl-c1">=</span> {<span class="pl-s">"C"</span>: <span class="pl-s1">np</span>.<span class="pl-en">logspace</span>(<span class="pl-c1">-</span><span class="pl-c1">4</span>, <span class="pl-c1">1</span>, <span class="pl-c1">6</span>), <span class="pl-s">"penalty"</span>: [<span class="pl-s">"l2"</span>], <span class="pl-s">"max_iter"</span>: [<span class="pl-c1">800</span>]} <span class="pl-s1">clf</span> <span class="pl-c1">=</span> <span class="pl-v">LogisticRegression</span>(<span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">class_weight</span><span class="pl-c1">=</span><span class="pl-s">"balanced"</span>) <span class="pl-s1">cv</span> <span class="pl-c1">=</span> <span class="pl-v">StratifiedKFold</span>(<span class="pl-c1">3</span>) <span class="pl-s1">grid_cv</span> <span class="pl-c1">=</span> <span class="pl-v">GridSearchCV</span>( <span class="pl-s1">clf</span>, <span class="pl-s1">parameters</span>, <span class="pl-s1">refit</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">cv</span><span class="pl-c1">=</span><span class="pl-s1">cv</span>, <span class="pl-s1">scoring</span><span class="pl-c1">=</span><span class="pl-en">make_scorer</span>(<span class="pl-s1">balanced_accuracy_score</span>), <span class="pl-s1">n_jobs</span><span class="pl-c1">=</span><span class="pl-c1">20</span>, ) <span class="pl-s1">clf_ovr</span> <span class="pl-c1">=</span> <span class="pl-v">OneVsRestClassifier</span>(<span class="pl-s1">grid_cv</span>, <span class="pl-s1">n_jobs</span><span class="pl-c1">=</span><span class="pl-c1">20</span>) <span class="pl-s1">clf_ovr</span>.<span class="pl-en">fit</span>(<span class="pl-v">X_np32</span>, <span class="pl-s1">y</span>)</pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">More user-friendly exception/warning</p> <h4 dir="auto">Actual Results</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/opt/venv/python3/lib/python3.6/site-packages/joblib/externals/loky/process_executor.py&quot;, line 418, in _process_worker r = call_item() File &quot;/opt/venv/python3/lib/python3.6/site-packages/joblib/externals/loky/process_executor.py&quot;, line 272, in __call__ return self.fn(*self.args, **self.kwargs) File &quot;/opt/venv/python3/lib/python3.6/site-packages/joblib/_parallel_backends.py&quot;, line 600, in __call__ return self.func(*args, **kwargs) File &quot;/opt/venv/python3/lib/python3.6/site-packages/joblib/parallel.py&quot;, line 256, in __call__ for func, args, kwargs in self.items] File &quot;/opt/venv/python3/lib/python3.6/site-packages/joblib/parallel.py&quot;, line 256, in &lt;listcomp&gt; for func, args, kwargs in self.items] File &quot;/opt/venv/python3/lib/python3.6/site-packages/sklearn/multiclass.py&quot;, line 80, in _fit_binary estimator.fit(X, y) File &quot;/opt/venv/python3/lib/python3.6/site-packages/sklearn/model_selection/_search.py&quot;, line 715, in fit self.best_estimator_.fit(X, y, **fit_params) File &quot;/opt/venv/python3/lib/python3.6/site-packages/sklearn/linear_model/logistic.py&quot;, line 1532, in fit accept_large_sparse=solver != 'liblinear') File &quot;/opt/venv/python3/lib/python3.6/site-packages/sklearn/utils/validation.py&quot;, line 719, in check_X_y estimator=estimator) File &quot;/opt/venv/python3/lib/python3.6/site-packages/sklearn/utils/validation.py&quot;, line 486, in check_array accept_large_sparse=accept_large_sparse) File &quot;/opt/venv/python3/lib/python3.6/site-packages/sklearn/utils/validation.py&quot;, line 309, in _ensure_sparse_format spmatrix = spmatrix.astype(dtype) File &quot;/opt/venv/python3/lib/python3.6/site-packages/scipy/sparse/data.py&quot;, line 71, in astype self._deduped_data().astype(dtype, casting=casting, copy=copy), File &quot;/opt/venv/python3/lib/python3.6/site-packages/scipy/sparse/data.py&quot;, line 34, in _deduped_data self.sum_duplicates() File &quot;/opt/venv/python3/lib/python3.6/site-packages/scipy/sparse/compressed.py&quot;, line 1013, in sum_duplicates self.sort_indices() File &quot;/opt/venv/python3/lib/python3.6/site-packages/scipy/sparse/compressed.py&quot;, line 1059, in sort_indices self.indices, self.data) ValueError: UPDATEIFCOPY base is read-only"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/opt/venv/python3/lib/python3.6/site-packages/joblib/externals/loky/process_executor.py", line 418, in _process_worker r = call_item() File "/opt/venv/python3/lib/python3.6/site-packages/joblib/externals/loky/process_executor.py", line 272, in __call__ return self.fn(*self.args, **self.kwargs) File "/opt/venv/python3/lib/python3.6/site-packages/joblib/_parallel_backends.py", line 600, in __call__ return self.func(*args, **kwargs) File "/opt/venv/python3/lib/python3.6/site-packages/joblib/parallel.py", line 256, in __call__ for func, args, kwargs in self.items] File "/opt/venv/python3/lib/python3.6/site-packages/joblib/parallel.py", line 256, in &lt;listcomp&gt; for func, args, kwargs in self.items] File "/opt/venv/python3/lib/python3.6/site-packages/sklearn/multiclass.py", line 80, in _fit_binary estimator.fit(X, y) File "/opt/venv/python3/lib/python3.6/site-packages/sklearn/model_selection/_search.py", line 715, in fit self.best_estimator_.fit(X, y, **fit_params) File "/opt/venv/python3/lib/python3.6/site-packages/sklearn/linear_model/logistic.py", line 1532, in fit accept_large_sparse=solver != 'liblinear') File "/opt/venv/python3/lib/python3.6/site-packages/sklearn/utils/validation.py", line 719, in check_X_y estimator=estimator) File "/opt/venv/python3/lib/python3.6/site-packages/sklearn/utils/validation.py", line 486, in check_array accept_large_sparse=accept_large_sparse) File "/opt/venv/python3/lib/python3.6/site-packages/sklearn/utils/validation.py", line 309, in _ensure_sparse_format spmatrix = spmatrix.astype(dtype) File "/opt/venv/python3/lib/python3.6/site-packages/scipy/sparse/data.py", line 71, in astype self._deduped_data().astype(dtype, casting=casting, copy=copy), File "/opt/venv/python3/lib/python3.6/site-packages/scipy/sparse/data.py", line 34, in _deduped_data self.sum_duplicates() File "/opt/venv/python3/lib/python3.6/site-packages/scipy/sparse/compressed.py", line 1013, in sum_duplicates self.sort_indices() File "/opt/venv/python3/lib/python3.6/site-packages/scipy/sparse/compressed.py", line 1059, in sort_indices self.indices, self.data) ValueError: UPDATEIFCOPY base is read-only </code></pre></div> <h4 dir="auto">Versions</h4> <p dir="auto">ystem:<br> python: 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 13:09:58) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]<br> executable: /opt/venv/python3/bin/python<br> machine: Linux-4.14.146-93.123.amzn1.x86_64-x86_64-with-glibc2.2.5</p> <p dir="auto">Python deps:<br> pip: 19.3.1<br> setuptools: 41.4.0<br> sklearn: 0.21.3<br> numpy: 1.13.1<br> scipy: 1.1.0<br> Cython: 0.26.1<br> pandas: 0.23.4</p>
<p dir="auto">To reproduce:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics import classification_report from sklearn.multiclass import OneVsRestClassifier from sklearn.pipeline import Pipeline from sklearn.svm import SVC, LinearSVC from sklearn.datasets import fetch_20newsgroups data_train = fetch_20newsgroups(subset='train') data_test = fetch_20newsgroups(subset='test') clf=OneVsRestClassifier(estimator=SVC(),n_jobs=-1) ##Error when calling fit #clf=OneVsRestClassifier(estimator=SVC(),n_jobs=1) ##NO Error if set to 1 pipeLine=Pipeline([('tfidf',TfidfVectorizer(min_df=10)), ('clf',clf)]) trainx=data_train.data trainy=data_train.target evalx=data_test.data evaly=data_test.target pipeLine.fit(trainx,trainy) predictValue=pipeLine.predict(evalx) print classification_report(evaly,predictValue)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">feature_extraction</span>.<span class="pl-s1">text</span> <span class="pl-k">import</span> <span class="pl-v">TfidfVectorizer</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">metrics</span> <span class="pl-k">import</span> <span class="pl-s1">classification_report</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">multiclass</span> <span class="pl-k">import</span> <span class="pl-v">OneVsRestClassifier</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">pipeline</span> <span class="pl-k">import</span> <span class="pl-v">Pipeline</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">svm</span> <span class="pl-k">import</span> <span class="pl-v">SVC</span>, <span class="pl-v">LinearSVC</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span> <span class="pl-k">import</span> <span class="pl-s1">fetch_20newsgroups</span> <span class="pl-s1">data_train</span> <span class="pl-c1">=</span> <span class="pl-en">fetch_20newsgroups</span>(<span class="pl-s1">subset</span><span class="pl-c1">=</span><span class="pl-s">'train'</span>) <span class="pl-s1">data_test</span> <span class="pl-c1">=</span> <span class="pl-en">fetch_20newsgroups</span>(<span class="pl-s1">subset</span><span class="pl-c1">=</span><span class="pl-s">'test'</span>) <span class="pl-s1">clf</span><span class="pl-c1">=</span><span class="pl-v">OneVsRestClassifier</span>(<span class="pl-s1">estimator</span><span class="pl-c1">=</span><span class="pl-v">SVC</span>(),<span class="pl-s1">n_jobs</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">1</span>) <span class="pl-c">##Error when calling fit</span> <span class="pl-c">#clf=OneVsRestClassifier(estimator=SVC(),n_jobs=1) ##NO Error if set to 1</span> <span class="pl-s1">pipeLine</span><span class="pl-c1">=</span><span class="pl-v">Pipeline</span>([(<span class="pl-s">'tfidf'</span>,<span class="pl-v">TfidfVectorizer</span>(<span class="pl-s1">min_df</span><span class="pl-c1">=</span><span class="pl-c1">10</span>)), (<span class="pl-s">'clf'</span>,<span class="pl-s1">clf</span>)]) <span class="pl-s1">trainx</span><span class="pl-c1">=</span><span class="pl-s1">data_train</span>.<span class="pl-s1">data</span> <span class="pl-s1">trainy</span><span class="pl-c1">=</span><span class="pl-s1">data_train</span>.<span class="pl-s1">target</span> <span class="pl-s1">evalx</span><span class="pl-c1">=</span><span class="pl-s1">data_test</span>.<span class="pl-s1">data</span> <span class="pl-s1">evaly</span><span class="pl-c1">=</span><span class="pl-s1">data_test</span>.<span class="pl-s1">target</span> <span class="pl-s1">pipeLine</span>.<span class="pl-en">fit</span>(<span class="pl-s1">trainx</span>,<span class="pl-s1">trainy</span>) <span class="pl-s1">predictValue</span><span class="pl-c1">=</span><span class="pl-s1">pipeLine</span>.<span class="pl-en">predict</span>(<span class="pl-s1">evalx</span>) <span class="pl-k">print</span> <span class="pl-en">classification_report</span>(<span class="pl-s1">evaly</span>,<span class="pl-s1">predictValue</span>)</pre></div> <p dir="auto">Output:</p> <p dir="auto">ValueError: UPDATEIFCOPY base is read-only</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Linux-4.2.0-19-generic-x86_64-with-Ubuntu-15.10-wily ('Python', '2.7.10 (default, Oct 14 2015, 16:09:02) \n[GCC 5.2.1 20151010]') ('NumPy', '1.10.4') ('SciPy', '0.17.0') ('Scikit-Learn', '0.18.dev0')"><pre class="notranslate"><code class="notranslate">Linux-4.2.0-19-generic-x86_64-with-Ubuntu-15.10-wily ('Python', '2.7.10 (default, Oct 14 2015, 16:09:02) \n[GCC 5.2.1 20151010]') ('NumPy', '1.10.4') ('SciPy', '0.17.0') ('Scikit-Learn', '0.18.dev0') </code></pre></div>
1
<p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong></p> <p dir="auto">Yes, as document describes, material cannot be shared by Mesh and InstanceMesh. So when I set override material of scene, it would no work on one of Mesh and InstanceMesh.<br> I guess this is because the material will be compiled before rendering. Once a Mesh object is rendered first, the vertexShader of the material will not contain the code blocks required by InstanceMesh.<br> So, for example, when I render a scene contains Mesh and InstanceMesh, and use a BokehPass which required a override material to render a depth buffer, it will trigger a visual bug.</p> <p dir="auto"><strong>Describe the solution you'd like</strong></p> <ol dir="auto"> <li>Add an <strong>overriedMaterialForInstance</strong> property to Scene, and once the overrideMaterial is set, we clone it to overriedMaterialForInstance.</li> <li>Inside the renderObjects function of WebGLRenderer. we override object's material based on whether it is instanceof Mesh or InstanceMesh.</li> </ol> <p dir="auto">If you think the solution I proposed is feasible, I am willing to submit a PR.</p> <p dir="auto"><strong>Describe alternatives you've considered</strong></p> <p dir="auto">None.</p> <p dir="auto"><strong>Additional context</strong></p> <p dir="auto">None.</p>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">I'm having a problem where the InstancedMesh method <code class="notranslate">setMatrixAt</code> seems to fail (the matrix positions doesn't change visually) whenever I add another object with the same material object (not a clone) in the scene. No log/warning/errors are emitted.</p> <p dir="auto">The following briefly illustrates:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" var geometry = new THREE.BoxBufferGeometry(); var material = new THREE.MeshStandardMaterial( { roughness: 0, envMap: texture }); var mesh1 = new THREE.Mesh( geometry, material ); mesh1.position.set(0, 1, 0); scene.add( mesh1 ); // removing this line makes the instanced mesh work as intended mesh = new THREE.InstancedMesh( geometry, material, 9 ); // same material usage scene.add( mesh ); // This works and I can see both meshes in the scene. var dummy = new THREE.Object3D(); dummy.position.set( 1, 5, 1 ); dummy.updateMatrix(); mesh.setMatrixAt( 0, dummy.matrix ); // Nope, doesn't work, it just stays where it's at. mesh.setMatrixAt( 1, dummy.matrix ); // Rotation seems to be applied, but position doesn't. // It looks like every instance is at the same place, but I don't know."><pre class="notranslate"> <span class="pl-k">var</span> <span class="pl-s1">geometry</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">BoxBufferGeometry</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">material</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">MeshStandardMaterial</span><span class="pl-kos">(</span> <span class="pl-kos">{</span> <span class="pl-c1">roughness</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">envMap</span>: <span class="pl-s1">texture</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">mesh1</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Mesh</span><span class="pl-kos">(</span> <span class="pl-s1">geometry</span><span class="pl-kos">,</span> <span class="pl-s1">material</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">mesh1</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">scene</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span> <span class="pl-s1">mesh1</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// removing this line makes the instanced mesh work as intended</span> <span class="pl-s1">mesh</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">InstancedMesh</span><span class="pl-kos">(</span> <span class="pl-s1">geometry</span><span class="pl-kos">,</span> <span class="pl-s1">material</span><span class="pl-kos">,</span> <span class="pl-c1">9</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// same material usage</span> <span class="pl-s1">scene</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span> <span class="pl-s1">mesh</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// This works and I can see both meshes in the scene.</span> <span class="pl-k">var</span> <span class="pl-s1">dummy</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Object3D</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">1</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-en">updateMatrix</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">mesh</span><span class="pl-kos">.</span><span class="pl-en">setMatrixAt</span><span class="pl-kos">(</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-c1">matrix</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Nope, doesn't work, it just stays where it's at.</span> <span class="pl-s1">mesh</span><span class="pl-kos">.</span><span class="pl-en">setMatrixAt</span><span class="pl-kos">(</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-c1">matrix</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Rotation seems to be applied, but position doesn't.</span> <span class="pl-c">// It looks like every instance is at the same place, but I don't know.</span></pre></div> <p dir="auto">Note that if I use material.clone() at the instanced mesh declaration, the problem also goes away / is fixed, but now I have two materials, and I intend to have one for performance reasons.</p> <p dir="auto">A live example is available here:</p> <ul dir="auto"> <li><a href="https://jsfiddle.net/ghmrdk4z/4/" rel="nofollow">jsfiddle</a> (The problem is that you should see multiple boxes, but only 1 or 2 are visible, remove line 41 to fix)</li> </ul> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r109</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r108</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> <p dir="auto">(Not applicable, as far as I know)</p>
1
<h1 dir="auto">Feature request</h1> <h2 dir="auto">Is your feature request related to a problem? Please describe.</h2> <p dir="auto">By default next.js automatically routes /api/file, we need a way to access the api through relative path. It is currently forbidden in next.js probably due to the need to support SSR, though it should be possible to supply the address where api could be accessed from the req header.</p> <h2 dir="auto">Describe the solution you'd like</h2> <p dir="auto">add something like appAddress in context parameter of getInitialProps</p> <h2 dir="auto">Describe alternatives you've considered</h2> <p dir="auto">.env or other configuration setting to customize, though it creates overhead for a usual use-case.</p> <h2 dir="auto">Additional context</h2>
<h1 dir="auto">Feature request</h1> <p dir="auto">Add <code class="notranslate">hostname</code> parameter in <code class="notranslate">ctx</code> which returns current hostname on both server and client.</p> <h2 dir="auto">Is your feature request related to a problem? Please describe.</h2> <p dir="auto">We have 2 web apps - Next.js frontend and Django API. We use Nginx to proxy routes so both are using the same host but API is hosted under <code class="notranslate">/api</code>. And because we deliver our app to VPS we don't know the current host so we can't just use <code class="notranslate">localhost</code>.</p> <p dir="auto">I have to use custom _app without prerendering so my page only renders on server.</p> <p dir="auto">Here's my _app:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from 'react' import App from 'next/app' class CustomApp extends App { static async getInitialProps({ Component, ctx }) { let host if (ctx.req) { host = ctx.req.headers.host } else { host = location.hostname } let pageProps = {} if (Component.getInitialProps) { pageProps = await Component.getInitialProps({ ...ctx, host }) } return { pageProps } } render() { const { Component, pageProps } = this.props return &lt;Component {...pageProps} /&gt; } } export default CustomApp"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span> <span class="pl-k">import</span> <span class="pl-v">App</span> <span class="pl-k">from</span> <span class="pl-s">'next/app'</span> <span class="pl-k">class</span> <span class="pl-v">CustomApp</span> <span class="pl-k">extends</span> <span class="pl-v">App</span> <span class="pl-kos">{</span> <span class="pl-k">static</span> <span class="pl-k">async</span> <span class="pl-en">getInitialProps</span><span class="pl-kos">(</span><span class="pl-kos">{</span> Component<span class="pl-kos">,</span> ctx <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">host</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">req</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">host</span> <span class="pl-c1">=</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">req</span><span class="pl-kos">.</span><span class="pl-c1">headers</span><span class="pl-kos">.</span><span class="pl-c1">host</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-s1">host</span> <span class="pl-c1">=</span> <span class="pl-s1">location</span><span class="pl-kos">.</span><span class="pl-c1">hostname</span> <span class="pl-kos">}</span> <span class="pl-k">let</span> <span class="pl-s1">pageProps</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">Component</span><span class="pl-kos">.</span><span class="pl-c1">getInitialProps</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">pageProps</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-v">Component</span><span class="pl-kos">.</span><span class="pl-en">getInitialProps</span><span class="pl-kos">(</span><span class="pl-kos">{</span> ...<span class="pl-s1">ctx</span><span class="pl-kos">,</span> host <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> pageProps <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> Component<span class="pl-kos">,</span> pageProps <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Component</span> <span class="pl-kos">{</span>...<span class="pl-s1">pageProps</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">CustomApp</span></pre></div> <h2 dir="auto">Describe the solution you'd like</h2> <p dir="auto">I can make a PR with this custom <code class="notranslate">getInitialProps</code> argument so it will be accessible via <code class="notranslate">ctx.hostname</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Page.getInitialProps = async ({ hostname }) =&gt; { const res = await fetch(`${hostname}/some-proxied-api/data`) }"><pre class="notranslate"><span class="pl-v">Page</span><span class="pl-kos">.</span><span class="pl-en">getInitialProps</span> <span class="pl-c1">=</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> hostname <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">hostname</span><span class="pl-kos">}</span></span>/some-proxied-api/data`</span><span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <h2 dir="auto">Describe alternatives you've considered</h2> <p dir="auto">Write a function <code class="notranslate">getHost</code> and call it in every <code class="notranslate">getInitialProps</code>. Not very suitable especially when you have tons of pages with using <code class="notranslate">getInitialProps</code>.</p>
1
<p dir="auto">I am currently working on splitting up various parts of my app into separate files and lay-loading them when needed. The concept works out, however, webpack doesn't play nicely. In two separate files - <code class="notranslate">main.oj</code> and <code class="notranslate">editor.oj</code>- I use <code class="notranslate">require("highlight.js")</code> to require the HighlightJS module. However, what the difference is:</p> <ul dir="auto"> <li><code class="notranslate">main.oj</code> uses the async require.</li> <li><code class="notranslate">editor.oj</code> uses the sync require directly in a call.</li> </ul> <p dir="auto">In <code class="notranslate">main.oj</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// ... if($(&quot;body&quot;).find(&quot;pre code&quot;).length &gt; 0) { require([ // Should only load the hljs stuff we need... &quot;highlight.js&quot;, // Stylesheet. &quot;highlight.js/styles/hybrid.css&quot; ], function(hljs){ // ... snip ... }); } // ..."><pre class="notranslate"><span class="pl-c">// ...</span> <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"body"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">"pre code"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-c">// Should only load the hljs stuff we need...</span> <span class="pl-s">"highlight.js"</span><span class="pl-kos">,</span> <span class="pl-c">// Stylesheet.</span> <span class="pl-s">"highlight.js/styles/hybrid.css"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">hljs</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-c">// ... snip ...</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">// ...</span></pre></div> <p dir="auto">In <code class="notranslate">editor.oj</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// ... $html = $(data); $html.filter(&quot;pre&quot;).find(&quot;code&quot;).each(function(i, block) { $(block).parent().css({&quot;border&quot;:&quot;none&quot;, &quot;background&quot;:&quot;none&quot;}); require(&quot;highlight.js&quot;).highlightBlock(block); }); // ..."><pre class="notranslate"><span class="pl-c">// ...</span> <span class="pl-s1">$html</span> <span class="pl-c1">=</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">$html</span><span class="pl-kos">.</span><span class="pl-en">filter</span><span class="pl-kos">(</span><span class="pl-s">"pre"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">"code"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">each</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">,</span> <span class="pl-s1">block</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s1">block</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">parent</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-s">"border"</span>:<span class="pl-s">"none"</span><span class="pl-kos">,</span> <span class="pl-s">"background"</span>:<span class="pl-s">"none"</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"highlight.js"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">highlightBlock</span><span class="pl-kos">(</span><span class="pl-s1">block</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">// ...</span></pre></div> <p dir="auto">... And this shows up on the compile:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="chunk {2} ba91d8a1dcc9a057b0f7-2.2.js 74.6 kB {0} [rendered] [48] ./~/highlight.js/lib/languages/ini.js 599 bytes {2} {3} [built] [47] ./~/highlight.js/lib/languages/http.js 843 bytes {2} {3} [built] [50] ./~/highlight.js/lib/languages/json.js 1.02 kB {2} {3} [built] [40] ./web-lib/highlight.js 1.14 kB {2} {3} [built] [56] ./~/highlight.js/styles/hybrid.css 1.36 kB {2} [built] [46] ./~/highlight.js/lib/languages/markdown.js 2.3 kB {2} {3} [built] [42] ./~/highlight.js/lib/languages/bash.js 2.35 kB {2} {3} [built] [51] ./~/highlight.js/lib/languages/objectivec.js 2.4 kB {2} {3} [built] [55] ./~/highlight.js/lib/languages/xml.js 2.48 kB {2} {3} [built] [45] ./~/highlight.js/lib/languages/css.js 2.58 kB {2} {3} [built] [52] ./~/highlight.js/lib/languages/php.js 3.28 kB {2} {3} [built] [49] ./~/highlight.js/lib/languages/javascript.js 3.51 kB {2} {3} [built] [44] ./~/highlight.js/lib/languages/cs.js 3.59 kB {2} {3} [built] [43] ./~/highlight.js/lib/languages/cpp.js 4.19 kB {2} {3} [built] [57] ./~/css-loader?keepSpecialComments=0&amp;processImport=true&amp;rebase=true&amp;relativeTo=/Users/Ingwie/Work/Bird3&amp;shorthandCompacting=true&amp;target=/Users/Ingwie/Work/Bird3/cdn/app&amp;sourceMap!./~/highlight.js/styles/hybrid.css 5.68 kB {2} [built] [54] ./~/highlight.js/lib/languages/sql.js 7.25 kB {2} {3} [built] [53] ./~/highlight.js/lib/languages/scss.js 7.6 kB {2} {3} [built] [41] ./~/highlight.js/lib/highlight.js 22.4 kB {2} {3} [built] chunk {3} ba91d8a1dcc9a057b0f7-3.3.js 126 kB {0} [rendered] [60] ./web_modules/LDT.webpack.js 421 bytes {3} [built] [48] ./~/highlight.js/lib/languages/ini.js 599 bytes {2} {3} [built] [64] ./~/exports-loader?SelectHelper!./web_modules/LDT/lib/SelectHelper.js 698 bytes {3} [built] [70] ./protected/extensions/BIRD3/js/views/editor/link.ejs 841 bytes {3} [built] [47] ./~/highlight.js/lib/languages/http.js 843 bytes {2} {3} [built] [71] ./protected/extensions/BIRD3/js/views/editor/image.ejs 851 bytes {3} [built] [63] ./~/exports-loader?Parser!./web_modules/LDT/lib/Parser.js 862 bytes {3} [built] [69] ./protected/extensions/BIRD3/js/views/editor/code_block.ejs 975 bytes {3} [built] [50] ./~/highlight.js/lib/languages/json.js 1.02 kB {2} {3} [built] [40] ./web-lib/highlight.js 1.14 kB {2} {3} [built] [68] ./protected/extensions/BIRD3/js/views/editor/bg_color.ejs 1.19 kB {3} [built] [65] ./web_modules/LDT/lib/TextareaDecorator.css 1.46 kB {3} [built] [62] ./~/exports-loader?Keybinder!./web_modules/LDT/lib/Keybinder.js 2.14 kB {3} [built] [46] ./~/highlight.js/lib/languages/markdown.js 2.3 kB {2} {3} [built] [42] ./~/highlight.js/lib/languages/bash.js 2.35 kB {2} {3} [built] [51] ./~/highlight.js/lib/languages/objectivec.js 2.4 kB {2} {3} [built] [55] ./~/highlight.js/lib/languages/xml.js 2.48 kB {2} {3} [built] [45] ./~/highlight.js/lib/languages/css.js 2.58 kB {2} {3} [built] [66] ./~/css-loader?keepSpecialComments=0&amp;processImport=true&amp;rebase=true&amp;relativeTo=/Users/Ingwie/Work/Bird3&amp;shorthandCompacting=true&amp;target=/Users/Ingwie/Work/Bird3/cdn/app&amp;sourceMap!./web_modules/LDT/lib/TextareaDecorator.css 2.7 kB {3} [built] [52] ./~/highlight.js/lib/languages/php.js 3.28 kB {2} {3} [built] [49] ./~/highlight.js/lib/languages/javascript.js 3.51 kB {2} {3} [built] [44] ./~/highlight.js/lib/languages/cs.js 3.59 kB {2} {3} [built] [61] ./~/exports-loader?TextareaDecorator!./web_modules/LDT/lib/TextareaDecorator.js 3.71 kB {3} [built] [43] ./~/highlight.js/lib/languages/cpp.js 4.19 kB {2} {3} [built] [67] ./protected/extensions/BIRD3/js/views/editor/toolbar.ejs 6.15 kB {3} [built] [54] ./~/highlight.js/lib/languages/sql.js 7.25 kB {2} {3} [built] [53] ./~/highlight.js/lib/languages/scss.js 7.6 kB {2} {3} [built] [58] ./protected/extensions/BIRD3/js/editor.oj 12.3 kB {3} [built] [41] ./~/highlight.js/lib/highlight.js 22.4 kB {2} {3} [built] [59] ./web_modules/behave.js/behave.js 24.4 kB {3} [built]"><pre class="notranslate"><code class="notranslate">chunk {2} ba91d8a1dcc9a057b0f7-2.2.js 74.6 kB {0} [rendered] [48] ./~/highlight.js/lib/languages/ini.js 599 bytes {2} {3} [built] [47] ./~/highlight.js/lib/languages/http.js 843 bytes {2} {3} [built] [50] ./~/highlight.js/lib/languages/json.js 1.02 kB {2} {3} [built] [40] ./web-lib/highlight.js 1.14 kB {2} {3} [built] [56] ./~/highlight.js/styles/hybrid.css 1.36 kB {2} [built] [46] ./~/highlight.js/lib/languages/markdown.js 2.3 kB {2} {3} [built] [42] ./~/highlight.js/lib/languages/bash.js 2.35 kB {2} {3} [built] [51] ./~/highlight.js/lib/languages/objectivec.js 2.4 kB {2} {3} [built] [55] ./~/highlight.js/lib/languages/xml.js 2.48 kB {2} {3} [built] [45] ./~/highlight.js/lib/languages/css.js 2.58 kB {2} {3} [built] [52] ./~/highlight.js/lib/languages/php.js 3.28 kB {2} {3} [built] [49] ./~/highlight.js/lib/languages/javascript.js 3.51 kB {2} {3} [built] [44] ./~/highlight.js/lib/languages/cs.js 3.59 kB {2} {3} [built] [43] ./~/highlight.js/lib/languages/cpp.js 4.19 kB {2} {3} [built] [57] ./~/css-loader?keepSpecialComments=0&amp;processImport=true&amp;rebase=true&amp;relativeTo=/Users/Ingwie/Work/Bird3&amp;shorthandCompacting=true&amp;target=/Users/Ingwie/Work/Bird3/cdn/app&amp;sourceMap!./~/highlight.js/styles/hybrid.css 5.68 kB {2} [built] [54] ./~/highlight.js/lib/languages/sql.js 7.25 kB {2} {3} [built] [53] ./~/highlight.js/lib/languages/scss.js 7.6 kB {2} {3} [built] [41] ./~/highlight.js/lib/highlight.js 22.4 kB {2} {3} [built] chunk {3} ba91d8a1dcc9a057b0f7-3.3.js 126 kB {0} [rendered] [60] ./web_modules/LDT.webpack.js 421 bytes {3} [built] [48] ./~/highlight.js/lib/languages/ini.js 599 bytes {2} {3} [built] [64] ./~/exports-loader?SelectHelper!./web_modules/LDT/lib/SelectHelper.js 698 bytes {3} [built] [70] ./protected/extensions/BIRD3/js/views/editor/link.ejs 841 bytes {3} [built] [47] ./~/highlight.js/lib/languages/http.js 843 bytes {2} {3} [built] [71] ./protected/extensions/BIRD3/js/views/editor/image.ejs 851 bytes {3} [built] [63] ./~/exports-loader?Parser!./web_modules/LDT/lib/Parser.js 862 bytes {3} [built] [69] ./protected/extensions/BIRD3/js/views/editor/code_block.ejs 975 bytes {3} [built] [50] ./~/highlight.js/lib/languages/json.js 1.02 kB {2} {3} [built] [40] ./web-lib/highlight.js 1.14 kB {2} {3} [built] [68] ./protected/extensions/BIRD3/js/views/editor/bg_color.ejs 1.19 kB {3} [built] [65] ./web_modules/LDT/lib/TextareaDecorator.css 1.46 kB {3} [built] [62] ./~/exports-loader?Keybinder!./web_modules/LDT/lib/Keybinder.js 2.14 kB {3} [built] [46] ./~/highlight.js/lib/languages/markdown.js 2.3 kB {2} {3} [built] [42] ./~/highlight.js/lib/languages/bash.js 2.35 kB {2} {3} [built] [51] ./~/highlight.js/lib/languages/objectivec.js 2.4 kB {2} {3} [built] [55] ./~/highlight.js/lib/languages/xml.js 2.48 kB {2} {3} [built] [45] ./~/highlight.js/lib/languages/css.js 2.58 kB {2} {3} [built] [66] ./~/css-loader?keepSpecialComments=0&amp;processImport=true&amp;rebase=true&amp;relativeTo=/Users/Ingwie/Work/Bird3&amp;shorthandCompacting=true&amp;target=/Users/Ingwie/Work/Bird3/cdn/app&amp;sourceMap!./web_modules/LDT/lib/TextareaDecorator.css 2.7 kB {3} [built] [52] ./~/highlight.js/lib/languages/php.js 3.28 kB {2} {3} [built] [49] ./~/highlight.js/lib/languages/javascript.js 3.51 kB {2} {3} [built] [44] ./~/highlight.js/lib/languages/cs.js 3.59 kB {2} {3} [built] [61] ./~/exports-loader?TextareaDecorator!./web_modules/LDT/lib/TextareaDecorator.js 3.71 kB {3} [built] [43] ./~/highlight.js/lib/languages/cpp.js 4.19 kB {2} {3} [built] [67] ./protected/extensions/BIRD3/js/views/editor/toolbar.ejs 6.15 kB {3} [built] [54] ./~/highlight.js/lib/languages/sql.js 7.25 kB {2} {3} [built] [53] ./~/highlight.js/lib/languages/scss.js 7.6 kB {2} {3} [built] [58] ./protected/extensions/BIRD3/js/editor.oj 12.3 kB {3} [built] [41] ./~/highlight.js/lib/highlight.js 22.4 kB {2} {3} [built] [59] ./web_modules/behave.js/behave.js 24.4 kB {3} [built] </code></pre></div> <p dir="auto">My config is pretty big. So, <a href="https://gist.github.com/IngwiePhoenix/2d4fdd21218f1fd3edbe">I uploaded it as a gist.</a></p> <p dir="auto">How can I avoid the duplicated inclusion? Is there a plugin I have to activate?</p> <p dir="auto">Kind regards, Ingwie.</p>
<p dir="auto">There are files which are 80% or under for test coverage on Coveralls, giving them a red label. Providing these files with dedicated unit tests will help solidify their API, as well as bring their coverage up to 100%.<br> Please see the coverall coverage report: <a href="https://coveralls.io/github/webpack/webpack" rel="nofollow">https://coveralls.io/github/webpack/webpack</a></p> <p dir="auto">This issue aims to help co-ordinate any effort to add unit test for these files, with the aim then have all files with higher than 80% coverage when closed off.</p> <ol class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>(65.73%) <code class="notranslate">lib/MultiCompiler.js</code> - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="199129020" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/3802" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/3802/hovercard" href="https://github.com/webpack/webpack/pull/3802">#3802</a></del> - Merged</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>(70.45%) <code class="notranslate">lib/LibraryTemplatePlugin.js</code> - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="199376584" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/3835" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/3835/hovercard" href="https://github.com/webpack/webpack/pull/3835">#3835</a></del> - Merged</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>(74.19%) <code class="notranslate">lib/optimize/UglifyJsPlugin.js</code> - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="203816349" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/4127" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/4127/hovercard" href="https://github.com/webpack/webpack/pull/4127">#4127</a></del> - Merged</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>(75.00%) <code class="notranslate">lib/webworker/WebWorkerMainTemplatePlugin.js</code> - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="199692449" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/3866" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/3866/hovercard" href="https://github.com/webpack/webpack/pull/3866">#3866</a></del> - Merged</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>(75.00%) <code class="notranslate">examples/move-to-parent/webpack.config.js</code> - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="202725701" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/4092" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/4092/hovercard" href="https://github.com/webpack/webpack/pull/4092">#4092</a></del> - Merged</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>(75.93%) <code class="notranslate">lib/node/NodeMainTemplatePlugin.js</code> - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="201573461" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/3999" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/3999/hovercard" href="https://github.com/webpack/webpack/pull/3999">#3999</a></del> - Merged</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>(79.49%) <code class="notranslate">lib/node/NodeWatchFileSystem.js</code> - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="199387282" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/3837" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/3837/hovercard" href="https://github.com/webpack/webpack/pull/3837">#3837</a></del> - Merged</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>(80.00%) <code class="notranslate">lib/HotUpdateChunkTemplate.js</code> - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="199697552" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/3867" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/3867/hovercard" href="https://github.com/webpack/webpack/pull/3867">#3867</a></del> - Merged</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> (75.68%) <code class="notranslate">lib/ContextReplacementPlugin.js</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> (78.57%) <code class="notranslate">lib/dependencies/ContextDependencyTemplateAsId.js</code> - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="205364988" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/4203" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/4203/hovercard" href="https://github.com/webpack/webpack/pull/4203">#4203</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>(80.00%) <code class="notranslate">lib/EnvironmentPlugin.js</code> - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="205352791" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/4201" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/4201/hovercard" href="https://github.com/webpack/webpack/pull/4201">#4201</a></del> - Merged</li> </ol> <p dir="auto">Add a comment below if you're adding unit tests for one of the files above to prevent duplication of effort, and then link to the PR once it's up.</p>
0
<p dir="auto">I'm trying to display placeholder value in a Select if value is not selected. When user selects value it should disappear and the value should replace placeholder. However label should be displayed all the time. I can achieve it in TextField but not in Select.</p> <p dir="auto">Here is my try however it doesn't display anything in placeholder.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const errorObj = mapError(props); return (&lt;FormControl error={errorObj.error} fullWidth={props.fullWidth} margin={props.margin} required={props.required}&gt; &lt;InputLabel htmlFor={props.label} shrink&gt;{props.label}&lt;/InputLabel&gt; &lt;Select input={&lt;Input id={props.label} placeholder={props.placeholder} margin={props.margin} /&gt;} {...props as any} &gt; {props.children} &lt;/Select&gt; {errorObj.helperText &amp;&amp; &lt;FormHelperText&gt;{errorObj.helperText}&lt;/FormHelperText&gt;} &lt;/FormControl&gt;)"><pre class="notranslate"><code class="notranslate">const errorObj = mapError(props); return (&lt;FormControl error={errorObj.error} fullWidth={props.fullWidth} margin={props.margin} required={props.required}&gt; &lt;InputLabel htmlFor={props.label} shrink&gt;{props.label}&lt;/InputLabel&gt; &lt;Select input={&lt;Input id={props.label} placeholder={props.placeholder} margin={props.margin} /&gt;} {...props as any} &gt; {props.children} &lt;/Select&gt; {errorObj.helperText &amp;&amp; &lt;FormHelperText&gt;{errorObj.helperText}&lt;/FormHelperText&gt;} &lt;/FormControl&gt;) </code></pre></div>
<p dir="auto">disabled is not being inherited by either Checkbox or Switch (or FormControlLabel actually) when used inside a FormControl.</p> <p dir="auto">I tried this:<br> FormControl (disabled) -&gt; checkbox (not inherited)<br> FormControl (disabled) -&gt; FormControlLabel -&gt; checkbox (not inherited)<br> FormControl -&gt; FormControlLabel (disabled) -&gt; checkbox (inherited)</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">when setting a FormControl to disabled the inner controls (Checkbox and Switch) should be disabled as well, both if they are directly inside or wrapper around a FormControlLabel.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">They don't get disabled, having to resort to also put the disabled property on them as a workaround.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto"><a href="https://codesandbox.io/s/w2zy4yqwml" rel="nofollow">https://codesandbox.io/s/w2zy4yqwml</a></p> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>latest beta</td> </tr> <tr> <td>React</td> <td>16</td> </tr> <tr> <td>browser</td> <td>Chrome 62</td> </tr> <tr> <td>etc</td> <td>TS 2.6-rc</td> </tr> </tbody> </table>
0
<p dir="auto">I am running python and keras on windows,<br> I use anaconda2 with"pip install keras" to install the keras. The installed keras version is 1.0.0, and the installed theano version is 0.8.1. Then I run the keras example "mnist_cnn.py" step by step, the errors come out when it run the 70 line" model.fit(X_train, Y_train, batch_size=batch_size, nb_epoch=nb_epoch, verbose=1, validation_data=(X_test, Y_test))".<br> The ERRORs are as follows:</p> <p dir="auto">Using Theano backend.<br> WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.<br> X_train shape: (60000L, 1L, 28L, 28L)<br> 60000 train samples<br> 10000 test samples<br> ERROR (theano.gof.opt): Optimization failure due to: LocalOptGroup(local_abstractconv_gemm,local_abstractconv_gradinputs_gemm,local_abstractconv_gradweight_gemm,local_conv2d_cpu,local_conv2d_gradinputs_cpu,local_conv2d_gradweight_cpu)<br> ERROR (theano.gof.opt): node: AbstractConv2d{border_mode='valid', subsample=(1, 1), filter_flip=True, imshp=(None, None, None, None), kshp=(32, 32, 3, 3)}(Elemwise{mul,no_inplace}.0, convolution2d_2_W)<br> ERROR (theano.gof.opt): TRACEBACK:<br> ERROR (theano.gof.opt): Traceback (most recent call last):<br> File "C:\Anaconda2\lib\site-packages\theano\gof\opt.py", line 1772, in process_node<br> replacements = lopt.transform(node)<br> File "C:\Anaconda2\lib\site-packages\theano\gof\opt.py", line 1223, in transform<br> repl = opt.transform(node)<br> File "C:\Anaconda2\lib\site-packages\theano\tensor\nnet\opt.py", line 153, in local_conv2d_cpu<br> subsample=node.op.subsample)<br> File "C:\Anaconda2\lib\site-packages\theano\tensor\nnet\conv.py", line 132, in conv2d<br> assert image_shape[1] == filter_shape[1]<br> AssertionError</p> <p dir="auto">image [None, None, None, None] filters [32, 32, 3, 3]<br> Traceback (most recent call last):</p> <p dir="auto">File "", line 1, in <br> runfile('E:/DeepLearning/kerasProject/kerasMnistExample.py', wdir='E:/DeepLearning/kerasProject')</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 699, in runfile<br> execfile(filename, namespace)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 74, in execfile<br> exec(compile(scripttext, filename, 'exec'), glob, loc)</p> <p dir="auto">File "E:/DeepLearning/kerasProject/kerasMnistExample.py", line 77, in <br> verbose=1, validation_data=(X_test, Y_test))</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\keras-1.0.0-py2.7.egg\keras\models.py", line 402, in fit<br> sample_weight=sample_weight)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\keras-1.0.0-py2.7.egg\keras\engine\training.py", line 986, in fit<br> self._make_test_function()</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\keras-1.0.0-py2.7.egg\keras\engine\training.py", line 666, in _make_test_function<br> **self._function_kwargs)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\keras-1.0.0-py2.7.egg\keras\backend\theano_backend.py", line 498, in function<br> return Function(inputs, outputs, updates=updates, **kwargs)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\keras-1.0.0-py2.7.egg\keras\backend\theano_backend.py", line 484, in <strong>init</strong><br> **kwargs)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\compile\function.py", line 320, in function<br> output_keys=output_keys)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\compile\pfunc.py", line 479, in pfunc<br> output_keys=output_keys)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\compile\function_module.py", line 1776, in orig_function<br> output_keys=output_keys).create(</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\compile\function_module.py", line 1456, in <strong>init</strong><br> optimizer_profile = optimizer(fgraph)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\gof\opt.py", line 101, in <strong>call</strong><br> return self.optimize(fgraph)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\gof\opt.py", line 89, in optimize<br> ret = self.apply(fgraph, _args, *_kwargs)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\gof\opt.py", line 230, in apply<br> sub_prof = optimizer.optimize(fgraph)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\gof\opt.py", line 89, in optimize<br> ret = self.apply(fgraph, _args, *_kwargs)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\gof\opt.py", line 2196, in apply<br> lopt_change = self.process_node(fgraph, node, lopt)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\gof\opt.py", line 1777, in process_node<br> lopt, node)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\gof\opt.py", line 1673, in warn_inplace<br> return NavigatorOptimizer.warn(exc, nav, repl_pairs, local_opt, node)</p> <p dir="auto">File "C:\Anaconda2\lib\site-packages\theano\gof\opt.py", line 1659, in warn<br> raise exc</p> <p dir="auto">AssertionError</p>
<p dir="auto">found a issue, not sure why.</p> <p dir="auto">was using Mac before, no issue happens.</p> <p dir="auto">but when switch to ubuntu, something happends..</p> <p dir="auto">I am running python 3.5 on ubuntu 14.04 TLS</p> <p dir="auto">I found some weird errors on my own code.</p> <p dir="auto">Then, I just tried running <strong>keras example</strong> <em>mnist_cnn.py</em></p> <p dir="auto">the same thing happend:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="image [None, None, None, None] filters [32, 32, 3, 3] ERROR (theano.gof.opt): Optimization failure due to: LocalOptGroup(local_abstractconv_gemm,local_abstractconv_gradinputs_gemm,local_abstractconv_gradweight_gemm,local_conv2d_cpu,local_conv2d_gradinputs_cpu,local_conv2d_gradweight_cpu) ERROR (theano.gof.opt): node: AbstractConv2d{border_mode='valid', subsample=(1, 1), filter_flip=True, imshp=(None, None, None, None), kshp=(32, 32, 3, 3)}(Elemwise{mul,no_inplace}.0, convolution2d_2_W) ERROR (theano.gof.opt): TRACEBACK: ERROR (theano.gof.opt): Traceback (most recent call last): File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 1772, in process_node replacements = lopt.transform(node) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 1223, in transform repl = opt.transform(node) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/tensor/nnet/opt.py&quot;, line 153, in local_conv2d_cpu subsample=node.op.subsample) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/tensor/nnet/conv.py&quot;, line 132, in conv2d assert image_shape[1] == filter_shape[1] AssertionError Traceback (most recent call last): File &quot;mnist_cnn.py&quot;, line 71, in &lt;module&gt; verbose=1, validation_data=(X_test, Y_test)) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/keras/models.py&quot;, line 402, in fit sample_weight=sample_weight) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/keras/engine/training.py&quot;, line 986, in fit self._make_test_function() File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/keras/engine/training.py&quot;, line 666, in _make_test_function **self._function_kwargs) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/keras/backend/theano_backend.py&quot;, line 498, in function return Function(inputs, outputs, updates=updates, **kwargs) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/keras/backend/theano_backend.py&quot;, line 484, in __init__ **kwargs) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/compile/function.py&quot;, line 322, in function output_keys=output_keys) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/compile/pfunc.py&quot;, line 480, in pfunc output_keys=output_keys) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/compile/function_module.py&quot;, line 1778, in orig_function output_keys=output_keys).create( File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/compile/function_module.py&quot;, line 1458, in __init__ optimizer_profile = optimizer(fgraph) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 101, in __call__ return self.optimize(fgraph) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 89, in optimize ret = self.apply(fgraph, *args, **kwargs) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 230, in apply sub_prof = optimizer.optimize(fgraph) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 89, in optimize ret = self.apply(fgraph, *args, **kwargs) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 2196, in apply lopt_change = self.process_node(fgraph, node, lopt) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 1777, in process_node lopt, node) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 1673, in warn_inplace return NavigatorOptimizer.warn(exc, nav, repl_pairs, local_opt, node) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 1659, in warn raise exc File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 1772, in process_node replacements = lopt.transform(node) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py&quot;, line 1223, in transform repl = opt.transform(node) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/tensor/nnet/opt.py&quot;, line 153, in local_conv2d_cpu subsample=node.op.subsample) File &quot;/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/tensor/nnet/conv.py&quot;, line 132, in conv2d assert image_shape[1] == filter_shape[1] AssertionError"><pre class="notranslate"><span class="pl-s1">image</span> [<span class="pl-c1">None</span>, <span class="pl-c1">None</span>, <span class="pl-c1">None</span>, <span class="pl-c1">None</span>] <span class="pl-s1">filters</span> [<span class="pl-c1">32</span>, <span class="pl-c1">32</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>] <span class="pl-v">ERROR</span> (<span class="pl-s1">theano</span>.<span class="pl-s1">gof</span>.<span class="pl-s1">opt</span>): <span class="pl-v">Optimization</span> <span class="pl-s1">failure</span> <span class="pl-s1">due</span> <span class="pl-s1">to</span>: <span class="pl-v">LocalOptGroup</span>(<span class="pl-s1">local_abstractconv_gemm</span>,<span class="pl-s1">local_abstractconv_gradinputs_gemm</span>,<span class="pl-s1">local_abstractconv_gradweight_gemm</span>,<span class="pl-s1">local_conv2d_cpu</span>,<span class="pl-s1">local_conv2d_gradinputs_cpu</span>,<span class="pl-s1">local_conv2d_gradweight_cpu</span>) <span class="pl-v">ERROR</span> (<span class="pl-s1">theano</span>.<span class="pl-s1">gof</span>.<span class="pl-s1">opt</span>): <span class="pl-s1">node</span>: <span class="pl-v">AbstractConv2d</span>{<span class="pl-s1">border_mode</span><span class="pl-c1">=</span><span class="pl-s">'valid'</span>, <span class="pl-s1">subsample</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>), <span class="pl-s1">filter_flip</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">imshp</span><span class="pl-c1">=</span>(<span class="pl-c1">None</span>, <span class="pl-c1">None</span>, <span class="pl-c1">None</span>, <span class="pl-c1">None</span>), <span class="pl-s1">kshp</span><span class="pl-c1">=</span>(<span class="pl-c1">32</span>, <span class="pl-c1">32</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>)}(<span class="pl-v">Elemwise</span>{<span class="pl-s1">mul</span>,<span class="pl-s1">no_inplace</span>}.<span class="pl-c1">0</span>, <span class="pl-s1">convolution2d_2_W</span>) <span class="pl-v">ERROR</span> (<span class="pl-s1">theano</span>.<span class="pl-s1">gof</span>.<span class="pl-s1">opt</span>): <span class="pl-v">TRACEBACK</span>: <span class="pl-v">ERROR</span> (<span class="pl-s1">theano</span>.<span class="pl-s1">gof</span>.<span class="pl-s1">opt</span>): <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1772</span>, <span class="pl-c1">in</span> <span class="pl-s1">process_node</span> <span class="pl-s1">replacements</span> <span class="pl-c1">=</span> <span class="pl-s1">lopt</span>.<span class="pl-en">transform</span>(<span class="pl-s1">node</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1223</span>, <span class="pl-s1">in</span> <span class="pl-s1">transform</span> <span class="pl-s1">repl</span> <span class="pl-c1">=</span> <span class="pl-s1">opt</span>.<span class="pl-en">transform</span>(<span class="pl-s1">node</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/tensor/nnet/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">153</span>, <span class="pl-s1">in</span> <span class="pl-s1">local_conv2d_cpu</span> <span class="pl-s1">subsample</span><span class="pl-c1">=</span><span class="pl-s1">node</span>.<span class="pl-s1">op</span>.<span class="pl-s1">subsample</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/tensor/nnet/conv.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">132</span>, <span class="pl-s1">in</span> <span class="pl-s1">conv2d</span> <span class="pl-k">assert</span> <span class="pl-s1">image_shape</span>[<span class="pl-c1">1</span>] <span class="pl-c1">==</span> <span class="pl-s1">filter_shape</span>[<span class="pl-c1">1</span>] <span class="pl-v">AssertionError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"mnist_cnn.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">71</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">validation_data</span><span class="pl-c1">=</span>(<span class="pl-v">X_test</span>, <span class="pl-v">Y_test</span>)) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/keras/models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">402</span>, <span class="pl-s1">in</span> <span class="pl-s1">fit</span> <span class="pl-s1">sample_weight</span><span class="pl-c1">=</span><span class="pl-s1">sample_weight</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/keras/engine/training.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">986</span>, <span class="pl-s1">in</span> <span class="pl-s1">fit</span> <span class="pl-s1">self</span>.<span class="pl-en">_make_test_function</span>() <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/keras/engine/training.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">666</span>, <span class="pl-s1">in</span> <span class="pl-s1">_make_test_function</span> <span class="pl-c1">**</span><span class="pl-s1">self</span>.<span class="pl-s1">_function_kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/keras/backend/theano_backend.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">498</span>, <span class="pl-s1">in</span> <span class="pl-s1">function</span> <span class="pl-k">return</span> <span class="pl-v">Function</span>(<span class="pl-s1">inputs</span>, <span class="pl-s1">outputs</span>, <span class="pl-s1">updates</span><span class="pl-c1">=</span><span class="pl-s1">updates</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/keras/backend/theano_backend.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">484</span>, <span class="pl-s1">in</span> <span class="pl-s1">__init__</span> <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/compile/function.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">322</span>, <span class="pl-s1">in</span> <span class="pl-s1">function</span> <span class="pl-s1">output_keys</span><span class="pl-c1">=</span><span class="pl-s1">output_keys</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/compile/pfunc.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">480</span>, <span class="pl-s1">in</span> <span class="pl-s1">pfunc</span> <span class="pl-s1">output_keys</span><span class="pl-c1">=</span><span class="pl-s1">output_keys</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/compile/function_module.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1778</span>, <span class="pl-s1">in</span> <span class="pl-s1">orig_function</span> <span class="pl-s1">output_keys</span><span class="pl-c1">=</span><span class="pl-s1">output_keys</span>).<span class="pl-en">create</span>( <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/compile/function_module.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1458</span>, <span class="pl-s1">in</span> <span class="pl-s1">__init__</span> <span class="pl-s1">optimizer_profile</span> <span class="pl-c1">=</span> <span class="pl-en">optimizer</span>(<span class="pl-s1">fgraph</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">101</span>, <span class="pl-s1">in</span> <span class="pl-s1">__call__</span> <span class="pl-s1">return</span> <span class="pl-s1">self</span>.<span class="pl-en">optimize</span>(<span class="pl-s1">fgraph</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">89</span>, <span class="pl-s1">in</span> <span class="pl-s1">optimize</span> <span class="pl-s1">ret</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">apply</span>(<span class="pl-s1">fgraph</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">230</span>, <span class="pl-s1">in</span> <span class="pl-s1">apply</span> <span class="pl-s1">sub_prof</span> <span class="pl-c1">=</span> <span class="pl-s1">optimizer</span>.<span class="pl-en">optimize</span>(<span class="pl-s1">fgraph</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">89</span>, <span class="pl-s1">in</span> <span class="pl-s1">optimize</span> <span class="pl-s1">ret</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">apply</span>(<span class="pl-s1">fgraph</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2196</span>, <span class="pl-s1">in</span> <span class="pl-s1">apply</span> <span class="pl-s1">lopt_change</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">process_node</span>(<span class="pl-s1">fgraph</span>, <span class="pl-s1">node</span>, <span class="pl-s1">lopt</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1777</span>, <span class="pl-s1">in</span> <span class="pl-s1">process_node</span> <span class="pl-s1">lopt</span>, <span class="pl-s1">node</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1673</span>, <span class="pl-s1">in</span> <span class="pl-s1">warn_inplace</span> <span class="pl-k">return</span> <span class="pl-v">NavigatorOptimizer</span>.<span class="pl-en">warn</span>(<span class="pl-s1">exc</span>, <span class="pl-s1">nav</span>, <span class="pl-s1">repl_pairs</span>, <span class="pl-s1">local_opt</span>, <span class="pl-s1">node</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1659</span>, <span class="pl-s1">in</span> <span class="pl-s1">warn</span> <span class="pl-k">raise</span> <span class="pl-s1">exc</span> <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1772</span>, <span class="pl-s1">in</span> <span class="pl-s1">process_node</span> <span class="pl-s1">replacements</span> <span class="pl-c1">=</span> <span class="pl-s1">lopt</span>.<span class="pl-en">transform</span>(<span class="pl-s1">node</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/gof/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1223</span>, <span class="pl-s1">in</span> <span class="pl-s1">transform</span> <span class="pl-s1">repl</span> <span class="pl-c1">=</span> <span class="pl-s1">opt</span>.<span class="pl-en">transform</span>(<span class="pl-s1">node</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/tensor/nnet/opt.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">153</span>, <span class="pl-s1">in</span> <span class="pl-s1">local_conv2d_cpu</span> <span class="pl-s1">subsample</span><span class="pl-c1">=</span><span class="pl-s1">node</span>.<span class="pl-s1">op</span>.<span class="pl-s1">subsample</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/aaron/Git/.virtualenvs/ts/local/lib/python3.5/site-packages/theano/tensor/nnet/conv.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">132</span>, <span class="pl-s1">in</span> <span class="pl-s1">conv2d</span> <span class="pl-k">assert</span> <span class="pl-s1">image_shape</span>[<span class="pl-c1">1</span>] <span class="pl-c1">==</span> <span class="pl-s1">filter_shape</span>[<span class="pl-c1">1</span>] <span class="pl-v">AssertionError</span></pre></div> <p dir="auto">Not sure what it is.</p> <p dir="auto">help......</p>
1
<p dir="auto">I have been trying to figure this out for over an hour now. Here is the subject code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const ENVIRONMENT = process.env.NODE_ENV; const BASENAME = process.env.APP_BASENAME; console.log('process.env', { ENVIRONMENT: ENVIRONMENT, 'process.env': process.env, NODE_ENV: process.env.NODE_ENV, APP_BASENAME: process.env.APP_BASENAME }); if (ENVIRONMENT !== 'development' &amp;&amp; ENVIRONMENT !== 'production') { throw new Error('Unknown ENVIRONMENT.'); } export { BASENAME, ENVIRONMENT }; "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-c1">ENVIRONMENT</span> <span class="pl-c1">=</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">NODE_ENV</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-c1">BASENAME</span> <span class="pl-c1">=</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">APP_BASENAME</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'process.env'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">ENVIRONMENT</span>: <span class="pl-c1">ENVIRONMENT</span><span class="pl-kos">,</span> <span class="pl-s">'process.env'</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">,</span> <span class="pl-c1">NODE_ENV</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">NODE_ENV</span><span class="pl-kos">,</span> <span class="pl-c1">APP_BASENAME</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">APP_BASENAME</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">ENVIRONMENT</span> <span class="pl-c1">!==</span> <span class="pl-s">'development'</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-c1">ENVIRONMENT</span> <span class="pl-c1">!==</span> <span class="pl-s">'production'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">'Unknown ENVIRONMENT.'</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-kos">{</span> <span class="pl-c1">BASENAME</span><span class="pl-kos">,</span> <span class="pl-c1">ENVIRONMENT</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Here is my webpack config:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const webpack = require('webpack'); const path = require('path'); module.exports = { devtool: 'source-map', debug: false, context: __dirname, entry: { 'app': [ path.resolve(__dirname, './src/app') ] }, output: { path: path.resolve(__dirname, './dist'), filename: '[name].js', publicPath: '/static/' }, plugins: [ new webpack.optimize.UglifyJsPlugin({ compressor: { /* eslint-disable camelcase */ screw_ie8: true, /* eslint-enable */ warnings: false } }), new webpack.DefinePlugin({ 'process.env.NODE_ENV': '&quot;production&quot;', 'process.env.APP_BASENAME': '&quot;' + (process.env.APP_BASENAME || '') + '&quot;' }), new webpack.DefinePlugin({ 'process.env': { NODE_ENV: '&quot;production&quot;', APP_BASENAME: '&quot;' + (process.env.APP_BASENAME || '') + '&quot;' } }), new webpack.optimize.OccurrenceOrderPlugin(), new webpack.optimize.DedupePlugin(), new webpack.NoErrorsPlugin() ], module: { loaders: [ { include: path.resolve(__dirname, './src'), loader: 'babel', test: /\.js$/, }, { loaders: [ 'style?sourceMap', 'css?modules&amp;importLoaders=1&amp;localIdentName=[name]___[local]___[hash:base64:5]', 'resolve-url', 'sass?sourceMap' ], test: /\.scss$/ } ] } }; "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">webpack</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'webpack'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">devtool</span>: <span class="pl-s">'source-map'</span><span class="pl-kos">,</span> <span class="pl-c1">debug</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">context</span>: <span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-c1">entry</span>: <span class="pl-kos">{</span> <span class="pl-s">'app'</span>: <span class="pl-kos">[</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'./src/app'</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">output</span>: <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'./dist'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">filename</span>: <span class="pl-s">'[name].js'</span><span class="pl-kos">,</span> <span class="pl-c1">publicPath</span>: <span class="pl-s">'/static/'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span> <span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">optimize</span><span class="pl-kos">.</span><span class="pl-c1">UglifyJsPlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">compressor</span>: <span class="pl-kos">{</span> <span class="pl-c">/* eslint-disable camelcase */</span> <span class="pl-c1">screw_ie8</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c">/* eslint-enable */</span> <span class="pl-c1">warnings</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">DefinePlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-s">'process.env.NODE_ENV'</span>: <span class="pl-s">'"production"'</span><span class="pl-kos">,</span> <span class="pl-s">'process.env.APP_BASENAME'</span>: <span class="pl-s">'"'</span> <span class="pl-c1">+</span> <span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">APP_BASENAME</span> <span class="pl-c1">||</span> <span class="pl-s">''</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-s">'"'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">DefinePlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-s">'process.env'</span>: <span class="pl-kos">{</span> <span class="pl-c1">NODE_ENV</span>: <span class="pl-s">'"production"'</span><span class="pl-kos">,</span> <span class="pl-c1">APP_BASENAME</span>: <span class="pl-s">'"'</span> <span class="pl-c1">+</span> <span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">APP_BASENAME</span> <span class="pl-c1">||</span> <span class="pl-s">''</span><span class="pl-kos">)</span> <span class="pl-c1">+</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-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">optimize</span><span class="pl-kos">.</span><span class="pl-c1">OccurrenceOrderPlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">optimize</span><span class="pl-kos">.</span><span class="pl-c1">DedupePlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">NoErrorsPlugin</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">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">loaders</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">include</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'./src'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">loader</span>: <span class="pl-s">'babel'</span><span class="pl-kos">,</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>js<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">loaders</span>: <span class="pl-kos">[</span> <span class="pl-s">'style?sourceMap'</span><span class="pl-kos">,</span> <span class="pl-s">'css?modules&amp;importLoaders=1&amp;localIdentName=[name]___[local]___[hash:base64:5]'</span><span class="pl-kos">,</span> <span class="pl-s">'resolve-url'</span><span class="pl-kos">,</span> <span class="pl-s">'sass?sourceMap'</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>scss<span class="pl-cce">$</span><span class="pl-c1">/</span></span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">As you can see, I have tried multiple methods of using <code class="notranslate">DefinePlugin</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new webpack.DefinePlugin({ 'process.env.NODE_ENV': '&quot;production&quot;', 'process.env.APP_BASENAME': '&quot;' + (process.env.APP_BASENAME || '') + '&quot;' }), new webpack.DefinePlugin({ 'process.env': { NODE_ENV: '&quot;production&quot;', APP_BASENAME: '&quot;' + (process.env.APP_BASENAME || '') + '&quot;' } }),"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">DefinePlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-s">'process.env.NODE_ENV'</span>: <span class="pl-s">'"production"'</span><span class="pl-kos">,</span> <span class="pl-s">'process.env.APP_BASENAME'</span>: <span class="pl-s">'"'</span> <span class="pl-c1">+</span> <span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">APP_BASENAME</span> <span class="pl-c1">||</span> <span class="pl-s">''</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-s">'"'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">DefinePlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-s">'process.env'</span>: <span class="pl-kos">{</span> <span class="pl-c1">NODE_ENV</span>: <span class="pl-s">'"production"'</span><span class="pl-kos">,</span> <span class="pl-c1">APP_BASENAME</span>: <span class="pl-s">'"'</span> <span class="pl-c1">+</span> <span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">APP_BASENAME</span> <span class="pl-c1">||</span> <span class="pl-s">''</span><span class="pl-kos">)</span> <span class="pl-c1">+</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></pre></div> <p dir="auto">Here is the console output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ APP_BASENAME: &quot;/campaign-master/upload-static&quot;, ENVIRONMENT: undefined, NODE_ENV: undefined, process.env: { APP_BASENAME: &quot;/campaign-master/upload-static&quot;, NODE_ENV: &quot;production&quot; } }"><pre class="notranslate"><code class="notranslate">{ APP_BASENAME: "/campaign-master/upload-static", ENVIRONMENT: undefined, NODE_ENV: undefined, process.env: { APP_BASENAME: "/campaign-master/upload-static", NODE_ENV: "production" } } </code></pre></div> <p dir="auto">The script execution ends with an exception:</p> <blockquote> <p dir="auto">Uncaught Error: Unknown ENVIRONMENT.</p> </blockquote> <p dir="auto">As a result of the condition that you can see in the <code class="notranslate">config.js</code>.</p> <p dir="auto">What is the reason <code class="notranslate">process.env.NODE_ENV</code> is not getting replaced?</p>
<h2 dir="auto">Feature request</h2> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Various parts of Webpack's (semi-)internal runtime depend on a native <code class="notranslate">Promise</code> being available.<br> Currently, browsers which do not have a native implementation require that it be polyfilled globally.</p> <p dir="auto">It would be nice if Webpack would provide a way to hook in a <em>local</em> polyfill instead; one which does not require writing to <code class="notranslate">window</code>.</p> <p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong></p> <p dir="auto">Projects that act as third-parties inside the websites of others generally need to minimize the way in which they affect the global environment. Currently it is impossible to avoid injecting a global polyfill for <code class="notranslate">Promise</code> when you really on key functionalities like ES6 dynamic <code class="notranslate">import()</code>.</p> <p dir="auto"><strong>How should this be implemented in your opinion?</strong></p> <ol dir="auto"> <li>Centralize creation of <code class="notranslate">Promise</code> instances by code generators. (Seems a lot of it is already being done through <code class="notranslate">RuntimeTemplate</code>'s <code class="notranslate">blockPromise</code>, actually.)</li> <li>Add a configuration property that can be set to a user-space module to be pulled in, instead of accessing the global <code class="notranslate">Promise</code>.</li> </ol> <p dir="auto"><strong>Are you willing to work on this yourself?</strong></p> <p dir="auto">Willing; yes. Able; no.<br> Simply don't have the time.</p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18363.836] PowerToys version: 0.18.1 PowerToy module for which you are reporting the bug (if applicable): launcher"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18363.836] PowerToys version: 0.18.1 PowerToy module for which you are reporting the bug (if applicable): launcher </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">search a file</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">showing files</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">not displaying files in 0.18.1 worked in 0.18 see screenshots</p> <h1 dir="auto">Screenshots</h1> <p dir="auto">0.18.1<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/49693964/82728402-3dbb7180-9cf0-11ea-87d3-62b4f47dbfa4.png"><img src="https://user-images.githubusercontent.com/49693964/82728402-3dbb7180-9cf0-11ea-87d3-62b4f47dbfa4.png" alt="Screenshot (1)" style="max-width: 100%;"></a></p> <p dir="auto">0.18<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/49693964/82728419-562b8c00-9cf0-11ea-92b4-8c7e75b2a621.png"><img src="https://user-images.githubusercontent.com/49693964/82728419-562b8c00-9cf0-11ea-92b4-8c7e75b2a621.png" alt="Screenshot (2)" style="max-width: 100%;"></a></p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Version 10.0.18363.836 PowerToys version: v.0.18.1 PowerToy module for which you are reporting the bug: PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: Version 10.0.18363.836 PowerToys version: v.0.18.1 PowerToy module for which you are reporting the bug: PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Install PowerToys via GetWin<br> Run PowerToys in always admin mode<br> Run PowerToys Run via Alt + Space<br> Search for any give file / folder name</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Showing the file / folder which I searched for</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">No files / folders showing up what so ever,<br> unless I type something like "D:\Documents..."</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/65788233/82751577-70c93800-9db8-11ea-929d-738eb5e63525.png"><img src="https://user-images.githubusercontent.com/65788233/82751577-70c93800-9db8-11ea-929d-738eb5e63525.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/65788233/82761606-13ef7100-9dfc-11ea-8ebf-960528fbd493.png"><img src="https://user-images.githubusercontent.com/65788233/82761606-13ef7100-9dfc-11ea-8ebf-960528fbd493.png" alt="image" style="max-width: 100%;"></a><br> It is a normal folder, I just changed the icon.</p>
1
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/increment-a-number-with-javascript#?solution=%0Avar%20myVar%20%3D%2087%3B%0A%2F%2F%20Only%20change%20code%20below%20this%20line%0AmyVar%20%3D%20%2B%2BmyVar%3B%0A" rel="nofollow">Increment a Number with JavaScript</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (X11; CrOS x86_64 8530.96.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.154 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible. I think it is correct but it won't let me pass</p> <p dir="auto">My code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" var myVar = 87; // Only change code below this line myVar = ++myVar; "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myVar</span> <span class="pl-c1">=</span> <span class="pl-c1">87</span><span class="pl-kos">;</span> <span class="pl-c">// Only change code below this line</span> <span class="pl-s1">myVar</span> <span class="pl-c1">=</span> <span class="pl-c1">++</span><span class="pl-s1">myVar</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life</a> freezes up when trying to enter code. I had started entering my code and got <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="ab016a88da96453bf8737705f8ce2647">$($</math-renderer>) entered when I could no longer enter anything. I also cannot reset my code or anything. I have to kill the page and get back in. If I try to go back to that page it freezes up again during loading.</p>
0
<h2 dir="auto">Summary</h2> <p dir="auto">Information can be lost during the parsing of some complex headers response, like for example these ones <a href="https://developers.google.com/search/reference/robots_meta_tag#xrobotstag" rel="nofollow">https://developers.google.com/search/reference/robots_meta_tag#xrobotstag</a></p> <p dir="auto">Simulating something like this with httpbin gives us: <a href="http://httpbin.org/response-headers?X-Robots-Tag=googlebot:%20nofollow&amp;X-Robots-Tag=otherbot:%20noindex,%20nofollow&amp;X-Robots-Tag=noarchive&amp;X-Robots-Tag=unavailable_after:%2025%20Jun%202010%2015:00:00%20PST" rel="nofollow">http://httpbin.org/response-headers?X-Robots-Tag=googlebot:%20nofollow&amp;X-Robots-Tag=otherbot:%20noindex,%20nofollow&amp;X-Robots-Tag=noarchive&amp;X-Robots-Tag=unavailable_after:%2025%20Jun%202010%2015:00:00%20PST</a></p> <h2 dir="auto">Expected Result</h2> <p dir="auto">Something like the httpbin output would be nice:<br> <code class="notranslate">{ "Content-Length": "227", "Content-Type": "application/json", "X-Robots-Tag": [ "googlebot: nofollow", "otherbot: noindex, nofollow", "noarchive", "unavailable_after: 25 Jun 2010 15:00:00 PST" ] }</code></p> <h2 dir="auto">Actual Result</h2> <p dir="auto">Instead response headers returned by <em>requests</em> are like this:</p> <p dir="auto"><code class="notranslate">{'Date': 'Mon, 13 Jul 2020 15:14:21 GMT', 'Content-Type': 'application/json', 'Content-Length': '227', 'Connection': 'keep-alive', 'Server': 'gunicorn/19.9.0', 'X-Robots-Tag': 'googlebot: nofollow, otherbot: noindex, nofollow, noarchive, unavailable_after: 25 Jun 2010 15:00:00 PST', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Credentials': 'true'}</code></p> <p dir="auto">Note that using <code class="notranslate">raw._original_response.getheaders()</code> is returning more useful results:</p> <p dir="auto"><code class="notranslate">[('Date', 'Mon, 13 Jul 2020 15:14:21 GMT'), ('Content-Type', 'application/json'), ('Content-Length', '227'), ('Connection', 'keep-alive'), ('Server', 'gunicorn/19.9.0'), ('X-Robots-Tag', 'googlebot: nofollow'), ('X-Robots-Tag', 'otherbot: noindex, nofollow'), ('X-Robots-Tag', 'noarchive'), ('X-Robots-Tag', 'unavailable_after: 25 Jun 2010 15:00:00 PST'), ('Access-Control-Allow-Origin', '*'), ('Access-Control-Allow-Credentials', 'true')]</code></p> <h2 dir="auto">Reproduction Steps</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests r=requests.get('http://httpbin.org/response-headers?X-Robots-Tag=googlebot:%20nofollow&amp;X-Robots-Tag=otherbot:%20noindex,%20nofollow&amp;X-Robots-Tag=noarchive&amp;X-Robots-Tag=unavailable_after:%2025%20Jun%202010%2015:00:00%20PST') print(r.headers) print(r.raw._original_response.getheaders())"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span> <span class="pl-s1">r</span><span class="pl-c1">=</span><span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s">'http://httpbin.org/response-headers?X-Robots-Tag=googlebot:%20nofollow&amp;X-Robots-Tag=otherbot:%20noindex,%20nofollow&amp;X-Robots-Tag=noarchive&amp;X-Robots-Tag=unavailable_after:%2025%20Jun%202010%2015:00:00%20PST'</span>) <span class="pl-en">print</span>(<span class="pl-s1">r</span>.<span class="pl-s1">headers</span>) <span class="pl-en">print</span>(<span class="pl-s1">r</span>.<span class="pl-s1">raw</span>.<span class="pl-s1">_original_response</span>.<span class="pl-en">getheaders</span>())</pre></div> <h2 dir="auto">System Information</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;chardet&quot;: { &quot;version&quot;: &quot;3.0.4&quot; }, &quot;cryptography&quot;: { &quot;version&quot;: &quot;&quot; }, &quot;idna&quot;: { &quot;version&quot;: &quot;2.9&quot; }, &quot;implementation&quot;: { &quot;name&quot;: &quot;CPython&quot;, &quot;version&quot;: &quot;3.8.3&quot; }, &quot;platform&quot;: { &quot;release&quot;: &quot;16.7.0&quot;, &quot;system&quot;: &quot;Darwin&quot; }, &quot;pyOpenSSL&quot;: { &quot;openssl_version&quot;: &quot;&quot;, &quot;version&quot;: null }, &quot;requests&quot;: { &quot;version&quot;: &quot;2.23.0&quot; }, &quot;system_ssl&quot;: { &quot;version&quot;: &quot;1010107f&quot; }, &quot;urllib3&quot;: { &quot;version&quot;: &quot;1.25.9&quot; }, &quot;using_pyopenssl&quot;: false } "><pre class="notranslate"><code class="notranslate">{ "chardet": { "version": "3.0.4" }, "cryptography": { "version": "" }, "idna": { "version": "2.9" }, "implementation": { "name": "CPython", "version": "3.8.3" }, "platform": { "release": "16.7.0", "system": "Darwin" }, "pyOpenSSL": { "openssl_version": "", "version": null }, "requests": { "version": "2.23.0" }, "system_ssl": { "version": "1010107f" }, "urllib3": { "version": "1.25.9" }, "using_pyopenssl": false } </code></pre></div>
<p dir="auto">Hi,</p> <p dir="auto">I noticed URL encode issue in get() --</p> <p dir="auto">In [32]: r = requests.get(r'<a href="http://i.ebayimg.com/00/s/ODAzWDEyODA=/$%28KGrHqV,!o8E63YcElkoBPFMhH2vUQ~~60_1.JPG" rel="nofollow">http://i.ebayimg.com/00/s/ODAzWDEyODA=/$%28KGrHqV,!o8E63YcElkoBPFMhH2vUQ~~60_1.JPG</a>')<br> In [33]: r.status_code<br> Out[33]: 404</p> <p dir="auto">In [34]: r = urllib2.urlopen("<a href="http://i.ebayimg.com/00/s/ODAzWDEyODA=/$%28KGrHqV,!o8E63YcElkoBPFMhH2vUQ~~60_1.JPG" rel="nofollow">http://i.ebayimg.com/00/s/ODAzWDEyODA=/$%28KGrHqV,!o8E63YcElkoBPFMhH2vUQ~~60_1.JPG</a>")<br> In [35]: r.getcode()<br> Out[35]: 200</p> <p dir="auto">In Wireshark, I see that it's because requests further encodes the URL (path) to """/00/s/ODAzWDEyODA%3D/%24%28KGrHqV%2C%21o8E63YcElkoBPFMhH2vUQ%7E%7E60_1.JPG"""</p> <p dir="auto">Is it a bug?</p>
0
<p dir="auto">For a week now, sometines, the namespaces property in bootstrap.php.cache is null, which trigger this error:</p> <p dir="auto">Notice: Trying to get property of non-object in app/bootstrap.php.cache on line 1211<br> Warning: Invalid argument supplied for foreach() in app/bootstrap.php.cache on line 1211<br> Notice: Trying to get property of non-object in app/bootstrap.php.cache on line 1225<br> Warning: Invalid argument supplied for foreach() in app/bootstrap.php.cache on line 1225<br> Fatal error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in app/autoload.php on line 35</p> <p dir="auto">And after a few hours, without doing anything special, everything returns to normal, until the error reappears.<br> What makes me create a bug is that, a little annoyed by this error, I completely deleted my project, downloaded the latest symfony version, re-installed my vendors to get back on a clean. But the error is still there...</p> <p dir="auto">I checked three times, the class AnnotationRegistry exists in my project.<br> It can not be a issue between incompatible version bundle, since it is a clean symfony that is installed.</p> <p dir="auto">Is there a hidden cache in symfony | doctrine that I could empty ? How can it be that even after reinstalling my symfony version, the error is still there? More generally, how is it possible that the namespaces property is empty in bootstrap.php.cache ?</p> <p dir="auto">I am aware that github is not a support forum, but I feel that there is here an issue that goes beyond my Symfony installation. It's strange that the error persists even after reinstalling symfony.</p>
<p dir="auto">Some unexpected happens with my symfony2 app in production environment.<br> I always getting 500 Internal Sever Error with following log message:<br> PHP Fatal error: Class 'Doctrine\Common\ClassLoader' not found in /var/www/cosamui/app/autoload.php on line 47</p> <p dir="auto">Code on line 47:<br> $classLoader = new \Doctrine\Common\ClassLoader('DoctrineExtensions', <strong>DIR</strong> . '/../vendor/DoctrineExtensions');</p> <p dir="auto">I ensured that the doctrine extension exists... And It also work's some times. But every 5 request I get this error and a plain site :(</p> <p dir="auto">I've tried to comment out the this line above, because it's not really necessary... But if i to that it does the same... But I get this error:<br> Fatal error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /var/www/cosamui/app/autoload.php on line 49</p> <p dir="auto">Now the AnnatationRegistry can't found at every 5 request...</p> <p dir="auto">Does anyone know what's going on there??</p>
1
<p dir="auto">When a node is both master and minion --- that is, the <code class="notranslate">provision-masterandnode</code> function in <code class="notranslate">util.sh</code> is invoked, the flannel files for both master and minion are copied to the same node. That looks bad, the file names are the same but the contents are different.</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>.): 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.): unable to unmount volume properly</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br> Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:38:40Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}<br> Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:32:42Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: vSphere</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RETTY_NAME=&quot;Debian GNU/Linux 8 (jessie)&quot; NAME=&quot;Debian GNU/Linux&quot; VERSION_ID=&quot;8&quot; VERSION=&quot;8 (jessie)&quot; ID=debian HOME_URL=&quot;http://www.debian.org/&quot; SUPPORT_URL=&quot;http://www.debian.org/support/&quot; BUG_REPORT_URL=&quot;https://bugs.debian.org/&quot;"><pre class="notranslate"><code class="notranslate">RETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=debian HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support/" BUG_REPORT_URL="https://bugs.debian.org/" </code></pre></div> <ul dir="auto"> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):<br> <code class="notranslate">Linux kubernetes-master 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u2 (2016-01-02) x86_64 GNU/Linux</code></li> <li><strong>Install tools</strong>: None</li> <li><strong>Others</strong>: None</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> A deployment was created with the volume "<strong>kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master</strong>" mounted on the pod. Existing deployment was deleted and recreated. When I checked the logs during the delete of the deployment, I unmounts the volume "kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master" successfully. But, I also tries to unmount a volume "<strong>kubernetes.io/vsphere-volume/hello-master</strong>" which doesn't exist at all. This seems to happen only with kubernetes v1.4.5 but v1.4.4 works perfectly fine.<br> You can check the logs below.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.537562 23426 reconciler.go:166] Attempting to start UnmountVolume for volume &quot;kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master&quot; (spec.Name: &quot;hello-master&quot;) from pod &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot; (UID: &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot;). Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.537760 23426 reconciler.go:188] UnmountVolume operation started for volume &quot;kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master&quot; (spec.Name: &quot;hello-master&quot;) from pod &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot; (UID: &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot;). Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.537944 23426 reconciler.go:166] Attempting to start UnmountVolume for volume &quot;kubernetes.io/vsphere-volume/hello-master&quot; (spec.Name: &quot;hello-master&quot;) from pod &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot; (UID: &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot;). Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.538142 23426 reconciler.go:188] UnmountVolume operation started for volume &quot;kubernetes.io/vsphere-volume/hello-master&quot; (spec.Name: &quot;hello-master&quot;) from pod &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot; (UID: &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot;). It loops on forever trying to unmount to the volume &quot;kubernetes.io/vsphere-volume/hello-master&quot; which doesn't exist at all. "><pre class="notranslate"><code class="notranslate">Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.537562 23426 reconciler.go:166] Attempting to start UnmountVolume for volume "kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master" (spec.Name: "hello-master") from pod "d470b123-aadd-11e6-bd75-005056b52a82" (UID: "d470b123-aadd-11e6-bd75-005056b52a82"). Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.537760 23426 reconciler.go:188] UnmountVolume operation started for volume "kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master" (spec.Name: "hello-master") from pod "d470b123-aadd-11e6-bd75-005056b52a82" (UID: "d470b123-aadd-11e6-bd75-005056b52a82"). Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.537944 23426 reconciler.go:166] Attempting to start UnmountVolume for volume "kubernetes.io/vsphere-volume/hello-master" (spec.Name: "hello-master") from pod "d470b123-aadd-11e6-bd75-005056b52a82" (UID: "d470b123-aadd-11e6-bd75-005056b52a82"). Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.538142 23426 reconciler.go:188] UnmountVolume operation started for volume "kubernetes.io/vsphere-volume/hello-master" (spec.Name: "hello-master") from pod "d470b123-aadd-11e6-bd75-005056b52a82" (UID: "d470b123-aadd-11e6-bd75-005056b52a82"). It loops on forever trying to unmount to the volume "kubernetes.io/vsphere-volume/hello-master" which doesn't exist at all. </code></pre></div> <p dir="auto"><strong>What you expected to happen</strong>:<br> All the pods in the recreated deployment comes up.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br> See above.</p> <p dir="auto"><strong>Anything else do we need to know</strong>:<br> Here are some logs. I also see multiple calls to TearDown().</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: E1114 22:00:47.552683 23426 nestedpendingoperations.go:253] Operation for &quot;\&quot;kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master\&quot; (\&quot;d470b123-aadd-11e6-bd75-005056b52a82\&quot;)&quot; failed. No retries permitted until 2016-11-14 22:00:48.052644231 -0500 EST (durationBeforeRetry 500ms). Error: UnmountVolume.TearDown failed for volume &quot;kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master&quot; (volume.spec.Name: &quot;hello-master&quot;) pod &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot; (UID: &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot;) with: Unmount failed: exit status 32 &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: Unmounting arguments: /var/lib/kubelet/pods/d470b123-aadd-11e6-bd75-005056b52a82/volumes/kubernetes.io~vsphere-volume/hello-master &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: Output: umount: /var/lib/kubelet/pods/d470b123-aadd-11e6-bd75-005056b52a82/volumes/kubernetes.io~vsphere-volume/hello-master not mounted &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.639638 23426 reconciler.go:166] Attempting to start UnmountVolume for volume &quot;kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master&quot; (spec.Name: &quot;hello-master&quot;) from pod &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot; (UID: &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot;). &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.640356 23426 reconciler.go:320] Attempting to start UnmountDevice for volume &quot;kubernetes.io/vsphere-volume/hello-master&quot; (spec.Name: &quot;hello-master&quot;) &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.640558 23426 reconciler.go:338] UnmountDevice operation started for volume &quot;kubernetes.io/vsphere-volume/hello-master&quot; (spec.Name: &quot;hello-master&quot;) &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: W1114 22:00:47.642090 23426 mount.go:121] could not determine device for path: &quot;/var/lib/kubelet/plugins/kubernetes.io/vsphere-volume/mounts/hello-master&quot; &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: W1114 22:00:47.642277 23426 util.go:72] Warning: Unmount skipped because path does not exist: /var/lib/kubelet/plugins/kubernetes.io/vsphere-volume/mounts/hello-master &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: E1114 22:00:47.642490 23426 nestedpendingoperations.go:253] Operation for &quot;\&quot;kubernetes.io/vsphere-volume/hello-master\&quot;&quot; failed. No retries permitted until 2016-11-14 22:00:48.142466159 -0500 EST (durationBeforeRetry 500ms). Error: UnmountDevice.DeviceOpened failed for volume &quot;kubernetes.io/vsphere-volume/hello-master&quot; (spec.Name: &quot;hello-master&quot;) with: PathIsDevice failed for path &quot;&quot;: stat : no such file or directory &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.741368 23426 reconciler.go:166] Attempting to start UnmountVolume for volume &quot;kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master&quot; (spec.Name: &quot;hello-master&quot;) from pod &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot; (UID: &quot;d470b123-aadd-11e6-bd75-005056b52a82&quot;). &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.741641 23426 reconciler.go:320] Attempting to start UnmountDevice for volume &quot;kubernetes.io/vsphere-volume/hello-master&quot; (spec.Name: &quot;hello-master&quot;) &gt; "><pre class="notranslate"><code class="notranslate">&gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: E1114 22:00:47.552683 23426 nestedpendingoperations.go:253] Operation for "\"kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master\" (\"d470b123-aadd-11e6-bd75-005056b52a82\")" failed. No retries permitted until 2016-11-14 22:00:48.052644231 -0500 EST (durationBeforeRetry 500ms). Error: UnmountVolume.TearDown failed for volume "kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master" (volume.spec.Name: "hello-master") pod "d470b123-aadd-11e6-bd75-005056b52a82" (UID: "d470b123-aadd-11e6-bd75-005056b52a82") with: Unmount failed: exit status 32 &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: Unmounting arguments: /var/lib/kubelet/pods/d470b123-aadd-11e6-bd75-005056b52a82/volumes/kubernetes.io~vsphere-volume/hello-master &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: Output: umount: /var/lib/kubelet/pods/d470b123-aadd-11e6-bd75-005056b52a82/volumes/kubernetes.io~vsphere-volume/hello-master not mounted &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.639638 23426 reconciler.go:166] Attempting to start UnmountVolume for volume "kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master" (spec.Name: "hello-master") from pod "d470b123-aadd-11e6-bd75-005056b52a82" (UID: "d470b123-aadd-11e6-bd75-005056b52a82"). &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.640356 23426 reconciler.go:320] Attempting to start UnmountDevice for volume "kubernetes.io/vsphere-volume/hello-master" (spec.Name: "hello-master") &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.640558 23426 reconciler.go:338] UnmountDevice operation started for volume "kubernetes.io/vsphere-volume/hello-master" (spec.Name: "hello-master") &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: W1114 22:00:47.642090 23426 mount.go:121] could not determine device for path: "/var/lib/kubelet/plugins/kubernetes.io/vsphere-volume/mounts/hello-master" &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: W1114 22:00:47.642277 23426 util.go:72] Warning: Unmount skipped because path does not exist: /var/lib/kubelet/plugins/kubernetes.io/vsphere-volume/mounts/hello-master &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: E1114 22:00:47.642490 23426 nestedpendingoperations.go:253] Operation for "\"kubernetes.io/vsphere-volume/hello-master\"" failed. No retries permitted until 2016-11-14 22:00:48.142466159 -0500 EST (durationBeforeRetry 500ms). Error: UnmountDevice.DeviceOpened failed for volume "kubernetes.io/vsphere-volume/hello-master" (spec.Name: "hello-master") with: PathIsDevice failed for path "": stat : no such file or directory &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.741368 23426 reconciler.go:166] Attempting to start UnmountVolume for volume "kubernetes.io/vsphere-volume/[datastore2] kubevols/sample-master" (spec.Name: "hello-master") from pod "d470b123-aadd-11e6-bd75-005056b52a82" (UID: "d470b123-aadd-11e6-bd75-005056b52a82"). &gt; Nov 14 22:00:47 kubernetes-minion-2 kubelet[23426]: I1114 22:00:47.741641 23426 reconciler.go:320] Attempting to start UnmountDevice for volume "kubernetes.io/vsphere-volume/hello-master" (spec.Name: "hello-master") &gt; </code></pre></div> <p dir="auto">Also, I see an orphan mount point on the node. Even after deleting this mount point on the node, I still see issues with the new deployment.</p> <p dir="auto">Also we see a similar issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="187456517" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/36269" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/36269/hovercard" href="https://github.com/kubernetes/kubernetes/issues/36269">#36269</a>, however cherry picking the fix from jingxu97:syncAttach-10-15 for this bug did not solve the problem for us.</p>
0
<p dir="auto"><strong>Issue Type:</strong> Bug Report<br> <strong>Ansible Version:</strong> 2.0.0.2<br> <strong>Environment:</strong> OSX<br> <strong>Summary:</strong> Ansible 1x allowed the combination of lists using the <code class="notranslate">+</code> operator. Ansible 2x does not. Is this a wontfix?</p> <p dir="auto">Here is a playbook that fails in 2x but not 1.9x:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: all gather_facts: false vars: fruit: - apple - pear veggie: - carrot - onion tasks: - file: src={{item}} state=touch delegate_to: localhost with_items: fruit + veggie"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">false</span> <span class="pl-ent">vars</span>: <span class="pl-ent">fruit</span>: - <span class="pl-s">apple</span> - <span class="pl-s">pear</span> <span class="pl-ent">veggie</span>: - <span class="pl-s">carrot</span> - <span class="pl-s">onion</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">file</span>: <span class="pl-s">src={{item}} state=touch</span> <span class="pl-ent">delegate_to</span>: <span class="pl-s">localhost</span> <span class="pl-ent">with_items</span>: <span class="pl-s">fruit + veggie</span></pre></div> <p dir="auto"><strong>Workarounds</strong> (use <code class="notranslate">with_flattened</code> or <code class="notranslate">union</code> filter):</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: all gather_facts: false vars: fruit: - apple - pear veggie: - carrot - onion tasks: - file: path={{item}} state=touch delegate_to: localhost with_flattened: - fruit - veggie"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">false</span> <span class="pl-ent">vars</span>: <span class="pl-ent">fruit</span>: - <span class="pl-s">apple</span> - <span class="pl-s">pear</span> <span class="pl-ent">veggie</span>: - <span class="pl-s">carrot</span> - <span class="pl-s">onion</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">file</span>: <span class="pl-s">path={{item}} state=touch</span> <span class="pl-ent">delegate_to</span>: <span class="pl-s">localhost</span> <span class="pl-ent">with_flattened</span>: - <span class="pl-s">fruit</span> - <span class="pl-s">veggie</span></pre></div> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: all gather_facts: false vars: fruit: - apple - pear veggie: - carrot - onion tasks: - file: path={{item}} state=touch delegate_to: localhost with_items: fruit | union(veggie)"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">false</span> <span class="pl-ent">vars</span>: <span class="pl-ent">fruit</span>: - <span class="pl-s">apple</span> - <span class="pl-s">pear</span> <span class="pl-ent">veggie</span>: - <span class="pl-s">carrot</span> - <span class="pl-s">onion</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">file</span>: <span class="pl-s">path={{item}} state=touch</span> <span class="pl-ent">delegate_to</span>: <span class="pl-s">localhost</span> <span class="pl-ent">with_items</span>: <span class="pl-s">fruit | union(veggie)</span></pre></div>
<h2 dir="auto">Enviroment:</h2> <p dir="auto">Ansible: 2.0.0.2<br> OS: Ubuntu 14.04.3 LTS<br> Python: 2.7.6</p> <h2 dir="auto">Steps To Reproduce:</h2> <p dir="auto">TASK:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: test_1 copy: src={{ secure_vault }}/google-authentificator/{{ item['name'] }}/.google_authenticator dest=/home/{{ item['name'] }}/.google_authenticator backup=yes owner={{ item['name'] }} mode=0400 with_items: administrators + developers"><pre class="notranslate"><code class="notranslate">- name: test_1 copy: src={{ secure_vault }}/google-authentificator/{{ item['name'] }}/.google_authenticator dest=/home/{{ item['name'] }}/.google_authenticator backup=yes owner={{ item['name'] }} mode=0400 with_items: administrators + developers </code></pre></div> <p dir="auto">VARS:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="administrators: - { name: bob.ai, mail: [email protected] } - { name: john, mail: [email protected] } developers: - { name: frank_a, mail: [email protected] } - { name: mario_a, mail: [email protected] }"><pre class="notranslate"><code class="notranslate">administrators: - { name: bob.ai, mail: [email protected] } - { name: john, mail: [email protected] } developers: - { name: frank_a, mail: [email protected] } - { name: mario_a, mail: [email protected] } </code></pre></div> <h2 dir="auto">When executing this on Ansible 2.0:</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... TASK [vpn-access-server | test_1] ********** fatal: [vpn03]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;ERROR! 'unicode object' has no attribute 'name'&quot;} ..."><pre class="notranslate"><code class="notranslate">... TASK [vpn-access-server | test_1] ********** fatal: [vpn03]: FAILED! =&gt; {"failed": true, "msg": "ERROR! 'unicode object' has no attribute 'name'"} ... </code></pre></div> <h2 dir="auto">When executing this on Ansible 1.9.4:</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [vpn-access-server | test_1] ******** ok: [vpn03] =&gt; (item={'mail': '[email protected]', 'name': 'bob.ai'}) ok: [vpn03] =&gt; (item={'mail': '[email protected]', 'name': 'john'}) ok: [vpn03] =&gt; (item={'mail': '[email protected]', 'name': 'frank_a'}) ok: [vpn03] =&gt; (item={'mail': '[email protected]', 'name': 'mario_a'})"><pre class="notranslate"><code class="notranslate">TASK: [vpn-access-server | test_1] ******** ok: [vpn03] =&gt; (item={'mail': '[email protected]', 'name': 'bob.ai'}) ok: [vpn03] =&gt; (item={'mail': '[email protected]', 'name': 'john'}) ok: [vpn03] =&gt; (item={'mail': '[email protected]', 'name': 'frank_a'}) ok: [vpn03] =&gt; (item={'mail': '[email protected]', 'name': 'mario_a'}) </code></pre></div>
1
<p dir="auto">In the subject line function, log probability is calculated as follows (lines 287-88):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="proba[proba &lt;= 0] = 1e-5 log_proba = np.log(proba)"><pre class="notranslate"><code class="notranslate">proba[proba &lt;= 0] = 1e-5 log_proba = np.log(proba) </code></pre></div> <p dir="auto">Oftentimes one encounters probabilities significantly smaller than 1.0e-5 that are still nonzero. In the current implementation, for example, the log prob of 1.0e-6 will actually evaluate higher than log prob of 0.0. It seems to me that a better implementation of this would be a floor-like function as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="proba[proba &lt; 1e-9] = 1.e-9"><pre class="notranslate"><code class="notranslate">proba[proba &lt; 1e-9] = 1.e-9 </code></pre></div>
<p dir="auto">This is an issue that I am opening for discussion.</p> <p dir="auto"><strong>Problem</strong>:</p> <p dir="auto">Sample weights (in various estimators), group labels (for cross-validation objects), group id (in learning to rank) are optional information that need to be passed to estimators and the CV framework, and that need to kept to the proper shape throughout the data processing pipeline.</p> <p dir="auto">Right now, the code to deal with this is inhomogeneous in the codebase, the APIs are not fully consistent (ie passing sample_weights to objects that do not support them will just crash).</p> <p dir="auto">This discussion attempt to address the problems above, and open the door to more flexibility to future evolution</p> <p dir="auto"><strong>Core idea</strong></p> <p dir="auto">We could have an argument that is a dataframe-like object, ie a collection (dictionary) of 1D array-like object. This argument would be sliced and diced by any code that modifies the number of samples (CV objects, train_test_split), and passed along the data.</p> <p dir="auto"><strong>Proposal A</strong></p> <p dir="auto">All objects could take as a signature fit(X, y, sample_props=None), with y optional for unsupervised learners.</p> <p dir="auto">sample_props (name to be debated) would be a dataframe like object (ie either a dict of arrays, or a dataframe). It would have a few predefined fields, such as "weight" for sample weight, "group" for sample groups used in cross validation. It would open the door to attaching domain-specific information to samples, and thus make scikit-learn easier to adapt to specific applications.</p> <p dir="auto"><strong>Proposal B</strong></p> <p dir="auto">y could be optionally a dataframe-like object, which would have as a compulsory field "target", serving the purpose of the current y, and other fields such as "weight", "group"... In which case, arguments "sample_weights" and alike would disappear into it.</p> <p dir="auto">People at the Paris sprint (including me) seem to lean towards proposal A.</p> <p dir="auto"><strong>Implementation aspects</strong></p> <p dir="auto">The different validation tools will have to be adapted to accept this type of argument. We should not depend on pandas. Thus we will accept dict of arrays (and build a helper function to slice them in the sample direction). Also, this helper should probably accept data frame (but given that data frames can be indexed like dictionaries, this will not be a problem.</p> <p dir="auto">Finally, the CV objects should be adapted to split the corresponding structure. Probably in a follow up to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="58896940" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/4294" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/4294/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/4294">#4294</a></p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.19018.0 Microsoft Windows NT 10.0.19018.0"><pre lang="none" class="notranslate"><code class="notranslate">Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.19018.0 Microsoft Windows NT 10.0.19018.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">I deleted the profile to recreate automatically to make sure it isn't a profile specific issue<br> On a multimonitor system, drag the terminal to another monitor and it crashes</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">It drags OK</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">It crashes.</p> <h1 dir="auto">Application Log Error</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Fault bucket 1825715257189852845, type 5 Event Name: MoAppCrash Response: Not available Cab Id: 0 Problem signature: P1: Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe P2: praid:App P3: 1.0.1910.22001 P4: 5daf7ab2 P5: StackHash12_611 P6: 0.0.0.0 P7: 00000000 P8: 88000fa8 P9: 0 P10: Attached files: \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA4BB.tmp.mdmp \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA577.tmp.WERInternalMetadata.xml \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA598.tmp.xml \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA5A0.tmp.csv \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA5C0.tmp.txt These files may be available here: \\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Microsoft.Window_819db56bc4a492bff4a9ca442ef8eebdb785ee_b251fdb8_2f5cebaf-7a47-4e07-b4ec-1aafd5d9cfbd Analysis symbol: Rechecking for solution: 0 Report Id: d505dbdd-8398-4675-88be-2782a51f89ee Report Status: 2147487744 Hashed bucket: 1c6494429e7d3de659563e5a75cfe6ad Cab Guid: 0 --- Faulting application name: WindowsTerminal.exe, version: 1.0.1910.22001, time stamp: 0x5daf7ab2 Faulting module name: KERNELBASE.dll, version: 10.0.19018.1, time stamp: 0xece648ff Exception code: 0xc000027b Fault offset: 0x000000000010ab6c Faulting process id: 0x278c Faulting application start time: 0x01d59983f7240a48 Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report Id: d505dbdd-8398-4675-88be-2782a51f89ee Faulting package full name: Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe Faulting package-relative application ID: App"><pre class="notranslate"><code class="notranslate">Fault bucket 1825715257189852845, type 5 Event Name: MoAppCrash Response: Not available Cab Id: 0 Problem signature: P1: Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe P2: praid:App P3: 1.0.1910.22001 P4: 5daf7ab2 P5: StackHash12_611 P6: 0.0.0.0 P7: 00000000 P8: 88000fa8 P9: 0 P10: Attached files: \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA4BB.tmp.mdmp \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA577.tmp.WERInternalMetadata.xml \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA598.tmp.xml \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA5A0.tmp.csv \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA5C0.tmp.txt These files may be available here: \\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Microsoft.Window_819db56bc4a492bff4a9ca442ef8eebdb785ee_b251fdb8_2f5cebaf-7a47-4e07-b4ec-1aafd5d9cfbd Analysis symbol: Rechecking for solution: 0 Report Id: d505dbdd-8398-4675-88be-2782a51f89ee Report Status: 2147487744 Hashed bucket: 1c6494429e7d3de659563e5a75cfe6ad Cab Guid: 0 --- Faulting application name: WindowsTerminal.exe, version: 1.0.1910.22001, time stamp: 0x5daf7ab2 Faulting module name: KERNELBASE.dll, version: 10.0.19018.1, time stamp: 0xece648ff Exception code: 0xc000027b Fault offset: 0x000000000010ab6c Faulting process id: 0x278c Faulting application start time: 0x01d59983f7240a48 Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report Id: d505dbdd-8398-4675-88be-2782a51f89ee Faulting package full name: Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe Faulting package-relative application ID: App </code></pre></div>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.388 Windows Terminal version (if applicable): 0.5.2762.0 Any other software? SSH (from Windows 10), GNU screen on host"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.388 Windows Terminal version (if applicable): 0.5.2762.0 Any other software? SSH (from Windows 10), GNU screen on host </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Ssh into remote host.<br> Start GNU screen (<code class="notranslate">screen</code>)<br> Type <code class="notranslate">cd </code> and the first few <em>non-unique</em> characters of a directory.<br> Press tab key to trigger autocomplete</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The cursor should stay where it is, nothing should be autocompleted. Further keystrokes should continue from this location,</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The cursor jumps to the end of the current line, further keystrokes wrap on subsequent line, backspace makes a big mess.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4256093/66398193-42d3e680-e9d5-11e9-9f84-b52163f81204.png"><img src="https://user-images.githubusercontent.com/4256093/66398193-42d3e680-e9d5-11e9-9f84-b52163f81204.png" alt="windowsterminalbug" style="max-width: 100%;"></a></p>
0
<p dir="auto">I am going to use loss information to update learning rate at each epoch by the following formula:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" learning_rate = initial_learning_rate * exp(Loss)"><pre class="notranslate"><code class="notranslate"> learning_rate = initial_learning_rate * exp(Loss) </code></pre></div> <p dir="auto">How to get the loss at each epoch and then implement the above updating law? Thanks!</p>
<p dir="auto">I have large number of models (of different structure) that were built using the same input shape (but not the same InputLayer object).<br> Is it possible to merge their input into one of the same dimension?<br> I know I can do<br> m = Model(inputs=[m.input for m in models], output=....<br> But this approach requires duplication the x variable in fit method. I would like to avoid this as the number of models is very large.</p> <p dir="auto">Thanks</p>
0
<h3 dir="auto">Bug summary</h3> <p dir="auto">Creating a scatter plot with a legend and setting the color of the legend markers only changes the edgecolor of the markers.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="markers = [&quot;+&quot;, &quot;s&quot;, &quot;o&quot;, &quot;*&quot;] fig, ax = plt.subplots(figsize=figsize) for i, marker in enumerate(markers): data = np.random.randn(10, 3) x, y, z = np.split(data, 3, axis=1) ax.scatter(x, y, c=z, marker=marker, label=f&quot;scatter {i}&quot;) leg = ax.legend(loc=&quot;best&quot;) for leg_handle in leg.legendHandles: leg_handle.set_color(&quot;k&quot;) # leg_handle.set_facecolor(&quot;k&quot;) # leg_handle.set_edgecolor(&quot;k&quot;)"><pre class="notranslate"><span class="pl-s1">markers</span> <span class="pl-c1">=</span> [<span class="pl-s">"+"</span>, <span class="pl-s">"s"</span>, <span class="pl-s">"o"</span>, <span class="pl-s">"*"</span>] <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span><span class="pl-s1">figsize</span>) <span class="pl-k">for</span> <span class="pl-s1">i</span>, <span class="pl-s1">marker</span> <span class="pl-c1">in</span> <span class="pl-en">enumerate</span>(<span class="pl-s1">markers</span>): <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">10</span>, <span class="pl-c1">3</span>) <span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">split</span>(<span class="pl-s1">data</span>, <span class="pl-c1">3</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-s1">ax</span>.<span class="pl-en">scatter</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">c</span><span class="pl-c1">=</span><span class="pl-s1">z</span>, <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s1">marker</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">f"scatter <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">i</span><span class="pl-kos">}</span></span>"</span>) <span class="pl-s1">leg</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">legend</span>(<span class="pl-s1">loc</span><span class="pl-c1">=</span><span class="pl-s">"best"</span>) <span class="pl-k">for</span> <span class="pl-s1">leg_handle</span> <span class="pl-c1">in</span> <span class="pl-s1">leg</span>.<span class="pl-s1">legendHandles</span>: <span class="pl-s1">leg_handle</span>.<span class="pl-en">set_color</span>(<span class="pl-s">"k"</span>) <span class="pl-c"># leg_handle.set_facecolor("k")</span> <span class="pl-c"># leg_handle.set_edgecolor("k")</span></pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">set_color only changes the edgecolor of the marker instead of changing all colors.<br> set_facecolor has no effect.<br> set_edgecolor works as expected.</p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">set_color should change all colors of the marker.<br> set_facecolor should change the face color of the marker.</p> <h3 dir="auto">Additional information</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Operating system</h3> <p dir="auto">Windows</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.2</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">module://matplotlib_inline.backend_inline</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.10.4</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto">6.4.12</p> <h3 dir="auto">Installation</h3> <p dir="auto">conda</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">When a PathCollection is created (e.g. by a scatter plot) using an array of scalars to be colormapped on it then the <code class="notranslate">changed()</code> method reverts the effect of previously issued <code class="notranslate">set_facecolor</code> command thus <code class="notranslate">set_facecolor</code> does not work as expected. (As a consequence <code class="notranslate">set_color()</code> deos not work as expected either.)</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt def make_fig(): fig, ax = plt.subplots(1,2, figsize=(6,2)) sc0 = ax[0].scatter([0,0,1],[0,1,0], c=(1,2,3), linewidths=3, alpha=None) ax[0].set_title('Colormapped scalar') # underlying ScalarMappable mixin is used sc1 = ax[1].scatter([0,0,1],[0,1,0], c=['r','g','b'], linewidths=3, alpha=None) ax[1].set_title('Indiv color definition') return fig, ax, sc0, sc1 fig, ax, sc0, sc1 = make_fig() sc0.set_facecolor([[1, 0, 0, 0.1],[1, 0, 0, 0.5],[1, 0, 0, 0.9]]) sc0.changed() # unexpected behavior here sc1.set_facecolor([[1, 0, 0, 0.1],[1, 0, 0, 0.5],[1, 0, 0, 0.9]]) sc1.changed() # unexpected behavior here"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">def</span> <span class="pl-en">make_fig</span>(): <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">1</span>,<span class="pl-c1">2</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">6</span>,<span class="pl-c1">2</span>)) <span class="pl-s1">sc0</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>[<span class="pl-c1">0</span>].<span class="pl-en">scatter</span>([<span class="pl-c1">0</span>,<span class="pl-c1">0</span>,<span class="pl-c1">1</span>],[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>,<span class="pl-c1">0</span>], <span class="pl-s1">c</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>), <span class="pl-s1">linewidths</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">None</span>) <span class="pl-s1">ax</span>[<span class="pl-c1">0</span>].<span class="pl-en">set_title</span>(<span class="pl-s">'Colormapped scalar'</span>) <span class="pl-c"># underlying ScalarMappable mixin is used</span> <span class="pl-s1">sc1</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>[<span class="pl-c1">1</span>].<span class="pl-en">scatter</span>([<span class="pl-c1">0</span>,<span class="pl-c1">0</span>,<span class="pl-c1">1</span>],[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>,<span class="pl-c1">0</span>], <span class="pl-s1">c</span><span class="pl-c1">=</span>[<span class="pl-s">'r'</span>,<span class="pl-s">'g'</span>,<span class="pl-s">'b'</span>], <span class="pl-s1">linewidths</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">None</span>) <span class="pl-s1">ax</span>[<span class="pl-c1">1</span>].<span class="pl-en">set_title</span>(<span class="pl-s">'Indiv color definition'</span>) <span class="pl-k">return</span> <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span>, <span class="pl-s1">sc0</span>, <span class="pl-s1">sc1</span> <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span>, <span class="pl-s1">sc0</span>, <span class="pl-s1">sc1</span> <span class="pl-c1">=</span> <span class="pl-en">make_fig</span>() <span class="pl-s1">sc0</span>.<span class="pl-en">set_facecolor</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.1</span>],[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.5</span>],[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.9</span>]]) <span class="pl-s1">sc0</span>.<span class="pl-en">changed</span>() <span class="pl-c"># unexpected behavior here</span> <span class="pl-s1">sc1</span>.<span class="pl-en">set_facecolor</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.1</span>],[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.5</span>],[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.9</span>]]) <span class="pl-s1">sc1</span>.<span class="pl-en">changed</span>() <span class="pl-c"># unexpected behavior here</span></pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19959788/50820550-4397f900-132d-11e9-8c9a-c2cab8f6fd15.png"><img src="https://user-images.githubusercontent.com/19959788/50820550-4397f900-132d-11e9-8c9a-c2cab8f6fd15.png" alt="mpl_color_bug1" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">The same shades of red shall appear on the left panel that are displayed on the right.</p> <p dir="auto"><strong>Note:</strong> without the <code class="notranslate">changed()</code> calls everything is OK. <code class="notranslate">set_facecolor</code> correctly changes both face and edge color and alpha for individual colors and for colormapped scalar too.<br> But then, the <code class="notranslate">changed()</code> method reverts all changes for colormapped scalars Most probably <code class="notranslate">set_facecolor</code> does not correctly update some property telling that new colors are not derived from scalar values anymore.</p> <p dir="auto"><strong>Additional nuissances</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fig, ax, sc0, sc1 = make_fig() sc0.set_color([[1, 0, 0, 0.1],[1, 0, 0, 0.5],[1, 0, 0, 0.9]]) sc0.changed() sc1.set_color([[1, 0, 0, 0.1],[1, 0, 0, 0.5],[1, 0, 0, 0.9]]) sc1.changed() # fig.canvas.draw_idle() # does not help"><pre class="notranslate"><span class="pl-s1">fig</span>, <span class="pl-s1">ax</span>, <span class="pl-s1">sc0</span>, <span class="pl-s1">sc1</span> <span class="pl-c1">=</span> <span class="pl-en">make_fig</span>() <span class="pl-s1">sc0</span>.<span class="pl-en">set_color</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.1</span>],[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.5</span>],[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.9</span>]]) <span class="pl-s1">sc0</span>.<span class="pl-en">changed</span>() <span class="pl-s1">sc1</span>.<span class="pl-en">set_color</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.1</span>],[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.5</span>],[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0.9</span>]]) <span class="pl-s1">sc1</span>.<span class="pl-en">changed</span>() <span class="pl-c"># fig.canvas.draw_idle() # does not help</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19959788/50820560-498dda00-132d-11e9-9400-e1bbab8c7816.png"><img src="https://user-images.githubusercontent.com/19959788/50820560-498dda00-132d-11e9-9400-e1bbab8c7816.png" alt="mpl_color_bug2" style="max-width: 100%;"></a></p> <p dir="auto">In the above settings, set_color changes both face and edge color together with alpha for individual colors and edge color together with alpha for colormapped scalar too.<br> But then, the <code class="notranslate">changed()</code> method reverts face color for colormapped scalars. Face color should not be reverted by calling <code class="notranslate">changed()</code>.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Windows</li> <li>Matplotlib version: 3.0.2</li> <li>Python version: 3.6.7 |Anaconda custom (64-bit)| (default, Dec 10 2018, 20:35:02) [MSC v.1915 64 bit (AMD64)]</li> </ul>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">The following code for an animated visualization stopped working after an upgrade from matplotlib 3.2.2 to 3.3.2.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">Below is a minimum code for reproducible problem.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt from matplotlib import animation def create_animated_plot(xs, niter, xlim =(-1.5, 1.5), ylim = [-3, 3]): line_coords = np.vstack(( np.array([-1,1]), np.array([0,0]) )) boxData = [np.array([np.zeros(niter), xs])] fig, ax1 = plt.subplots(1,1) line, = ax1.plot([], [], lw=2) ax1.set_ylabel('position') ax1.set_ylim(ylim) ax1.set_xlim(xlim) lines = [ax1.plot([],[],lw=2,color=&quot;black&quot;)[0]] def init(): lines[0].set_data([],[]) return lines def animate(i): xs = [boxData[0][0, i]] ys = [boxData[0][1, i]] lines[0].set_data(line_coords[0,:]+xs[0], line_coords[1,:]+ys[0]) return lines anim = animation.FuncAnimation(fig, animate, init_func=init, frames=niter, interval=10, blit=True) #writer = animation.PillowWriter(fps=25) #anim.save('animation.gif', writer=writer) niter = 1001 t = np.linspace(0,10,niter) create_animated_plot(xs =np.sin(t), niter=niter) plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">animation</span> <span class="pl-k">def</span> <span class="pl-en">create_animated_plot</span>(<span class="pl-s1">xs</span>, <span class="pl-s1">niter</span>, <span class="pl-s1">xlim</span> <span class="pl-c1">=</span>(<span class="pl-c1">-</span><span class="pl-c1">1.5</span>, <span class="pl-c1">1.5</span>), <span class="pl-s1">ylim</span> <span class="pl-c1">=</span> [<span class="pl-c1">-</span><span class="pl-c1">3</span>, <span class="pl-c1">3</span>]): <span class="pl-s1">line_coords</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">vstack</span>(( <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">-</span><span class="pl-c1">1</span>,<span class="pl-c1">1</span>]), <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0</span>,<span class="pl-c1">0</span>]) )) <span class="pl-s1">boxData</span> <span class="pl-c1">=</span> [<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-s1">niter</span>), <span class="pl-s1">xs</span>])] <span class="pl-s1">fig</span>, <span class="pl-s1">ax1</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">1</span>,<span class="pl-c1">1</span>) <span class="pl-s1">line</span>, <span class="pl-c1">=</span> <span class="pl-s1">ax1</span>.<span class="pl-en">plot</span>([], [], <span class="pl-s1">lw</span><span class="pl-c1">=</span><span class="pl-c1">2</span>) <span class="pl-s1">ax1</span>.<span class="pl-en">set_ylabel</span>(<span class="pl-s">'position'</span>) <span class="pl-s1">ax1</span>.<span class="pl-en">set_ylim</span>(<span class="pl-s1">ylim</span>) <span class="pl-s1">ax1</span>.<span class="pl-en">set_xlim</span>(<span class="pl-s1">xlim</span>) <span class="pl-s1">lines</span> <span class="pl-c1">=</span> [<span class="pl-s1">ax1</span>.<span class="pl-en">plot</span>([],[],<span class="pl-s1">lw</span><span class="pl-c1">=</span><span class="pl-c1">2</span>,<span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">"black"</span>)[<span class="pl-c1">0</span>]] <span class="pl-k">def</span> <span class="pl-en">init</span>(): <span class="pl-s1">lines</span>[<span class="pl-c1">0</span>].<span class="pl-en">set_data</span>([],[]) <span class="pl-k">return</span> <span class="pl-s1">lines</span> <span class="pl-k">def</span> <span class="pl-en">animate</span>(<span class="pl-s1">i</span>): <span class="pl-s1">xs</span> <span class="pl-c1">=</span> [<span class="pl-s1">boxData</span>[<span class="pl-c1">0</span>][<span class="pl-c1">0</span>, <span class="pl-s1">i</span>]] <span class="pl-s1">ys</span> <span class="pl-c1">=</span> [<span class="pl-s1">boxData</span>[<span class="pl-c1">0</span>][<span class="pl-c1">1</span>, <span class="pl-s1">i</span>]] <span class="pl-s1">lines</span>[<span class="pl-c1">0</span>].<span class="pl-en">set_data</span>(<span class="pl-s1">line_coords</span>[<span class="pl-c1">0</span>,:]<span class="pl-c1">+</span><span class="pl-s1">xs</span>[<span class="pl-c1">0</span>], <span class="pl-s1">line_coords</span>[<span class="pl-c1">1</span>,:]<span class="pl-c1">+</span><span class="pl-s1">ys</span>[<span class="pl-c1">0</span>]) <span class="pl-k">return</span> <span class="pl-s1">lines</span> <span class="pl-s1">anim</span> <span class="pl-c1">=</span> <span class="pl-s1">animation</span>.<span class="pl-v">FuncAnimation</span>(<span class="pl-s1">fig</span>, <span class="pl-s1">animate</span>, <span class="pl-s1">init_func</span><span class="pl-c1">=</span><span class="pl-s1">init</span>, <span class="pl-s1">frames</span><span class="pl-c1">=</span><span class="pl-s1">niter</span>, <span class="pl-s1">interval</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">blit</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-c">#writer = animation.PillowWriter(fps=25) </span> <span class="pl-c">#anim.save('animation.gif', writer=writer)</span> <span class="pl-s1">niter</span> <span class="pl-c1">=</span> <span class="pl-c1">1001</span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>,<span class="pl-c1">10</span>,<span class="pl-s1">niter</span>) <span class="pl-en">create_animated_plot</span>(<span class="pl-s1">xs</span> <span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-s1">t</span>), <span class="pl-s1">niter</span><span class="pl-c1">=</span><span class="pl-s1">niter</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">The actual outcome of the code is the following figure. I.e. an empty plot with all xlabels but there is no plot of the line.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8252313/97584327-93631b00-1a00-11eb-8de3-2774af767b2c.png"><img src="https://user-images.githubusercontent.com/8252313/97584327-93631b00-1a00-11eb-8de3-2774af767b2c.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Additionally, something that might help with the debugging, is that if the last two lines in the <code class="notranslate">create_animated_plot()</code> are uncommented,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" #writer = animation.PillowWriter(fps=25) #anim.save('animation.gif', writer=writer)"><pre class="notranslate"><code class="notranslate"> #writer = animation.PillowWriter(fps=25) #anim.save('animation.gif', writer=writer) </code></pre></div> <p dir="auto">the resulting gif works as expected (see below).</p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">The code at the end of the post moves a line up and down in the y direction. It does that successfully with matplotlib 3.2.2, but not with 3.3.2. This is reproducible in different settings.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8252313/97583537-ba6d1d00-19ff-11eb-930c-a6b1029bcecd.gif"><img src="https://user-images.githubusercontent.com/8252313/97583537-ba6d1d00-19ff-11eb-930c-a6b1029bcecd.gif" alt="animation" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">This code was tested on the following setups (C1, C2, C3 are different computers) with the same results:</p> <ul dir="auto"> <li>C1: A desktop with Asrock Z370 P4, Nvidia 1050 Ti, i5-8600K.<br> Tested with: <ul dir="auto"> <li>Python: 3.8.3, matplotlib: 3.2.2 OK</li> <li>Python: 3.8.3, matplotlib: 3.3.2 (problematic)</li> </ul> </li> <li>C2: An Acer Spin 5 SP513-52N laptop.<br> Tested with: <ul dir="auto"> <li>Python: 3.8.3, matplotlib: 3.2.2 OK</li> <li>Python: 3.8.3, matplotlib: 3.3.2 (problematic)</li> </ul> </li> <li>C3<br> Tested with: <ul dir="auto"> <li>Win 10, Python: 3.8.3, matplotlib: 3.3.2 (problematic)</li> <li>Ubuntu 20.04, Python: 3.8.3, matplotlib: 3.1.2 OK</li> <li>Ubuntu 20.04, Python: 3.8.3, updated to matplotlib: 3.3.2 (problematic)</li> </ul> </li> </ul> <p dir="auto">In all cases, when I upgraded the problem appeared, and when I downgraded the problem disappeared.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Win10, Ubuntu 20.04</li> <li>Matplotlib version: 3.3.2</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li> <li>Python version: 3.8.3 (also tested in 3.7.6)</li> <li>Jupyter version (if applicable):</li> <li>Other libraries:</li> </ul> <p dir="auto">In machine C1, and C2 I installed through conda.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Animations need to be held in a reference so that they are not gc'ed. I have argued against that behavior in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="549621478" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/16221" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/16221/hovercard" href="https://github.com/matplotlib/matplotlib/pull/16221">#16221</a>, but as long as we keep it, we could at least add an internal flag tracking whether the animation has been started (I have not checked whether it would be best for this to go in <code class="notranslate">_start</code> or <code class="notranslate">_init_draw</code> or elsewhere), and emit a warning in <code class="notranslate">__del__</code> if the animation is gc'ed without ever being started, to help confused users (<a href="https://discourse.matplotlib.org/t/could-animation-be-triggered-only-when-an-onclick-event-in-silder/21534/2" rel="nofollow">https://discourse.matplotlib.org/t/could-animation-be-triggered-only-when-an-onclick-event-in-silder/21534/2</a>). (Unless someone can think of a reason to instantiate an animation and <em>not</em> start it... and even then we could add a flag <code class="notranslate">i_really_meant_for_this_to_be_perhaps_gced_without_ever_running=True</code>, but let's not get ahead of ourselves.)</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">N/A</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system:</li> <li>Matplotlib version: master</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>):</li> <li>Python version:</li> <li>Jupyter version (if applicable):</li> <li>Other libraries:</li> </ul>
1
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rillian/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rillian">@rillian</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/evanmcc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/evanmcc">@evanmcc</a> have both encountered a build failure -- same place -- stage1 segfaults when building optimized on atom. Seems independent of distribution, (happens on FC17 and Ubuntu oneiric). Both machines were atoms. Tried builds on emulated non-atoms, same distros, no fault. Think it's atom-specific. Might be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3325735" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/1879" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/1879/hovercard" href="https://github.com/rust-lang/rust/issues/1879">#1879</a> (requirement for subtargets).</p>
<p dir="auto">This code:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![feature(if_let, while_let)] use std::io; pub struct Test&lt;W: Writer&gt; { writer: W, } impl&lt;W: Writer&gt; Test&lt;W&gt; { pub fn new(writer: W) -&gt; Test&lt;W&gt; { Test { writer: writer, } } pub fn write_something(&amp;mut self) -&gt; io::IoResult&lt;()&gt; { try!(writeln!(self.writer, &quot;&quot;)); Ok(()) } }"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>if_let<span class="pl-kos">,</span> while_let<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">use</span> std<span class="pl-kos">::</span>io<span class="pl-kos">;</span> <span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">Test</span><span class="pl-kos">&lt;</span><span class="pl-smi">W</span><span class="pl-kos">:</span> <span class="pl-smi">Writer</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">writer</span><span class="pl-kos">:</span> <span class="pl-smi">W</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">W</span><span class="pl-kos">:</span> <span class="pl-smi">Writer</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Test</span><span class="pl-kos">&lt;</span><span class="pl-smi">W</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-s1">writer</span><span class="pl-kos">:</span> <span class="pl-smi">W</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Test</span><span class="pl-kos">&lt;</span><span class="pl-smi">W</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">Test</span> <span class="pl-kos">{</span> <span class="pl-c1">writer</span><span class="pl-kos">:</span> writer<span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">write_something</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; io<span class="pl-kos">::</span><span class="pl-smi">IoResult</span><span class="pl-kos">&lt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">try</span><span class="pl-en">!</span><span class="pl-kos">(</span>writeln!<span class="pl-kos">(</span><span class="pl-smi">self</span>.writer, <span class="pl-s">""</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">Ok</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Produces this very hard to understand error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;std macros&gt;:3:24: 18:34 error: type `W` cannot be dereferenced &lt;std macros&gt;:3 let dst = &amp;mut *$dst; &lt;std macros&gt;:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*) &lt;std macros&gt;:5 }) &lt;std macros&gt;:6 ) error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' panicked at 'index out of bounds: the len is 6 but the index is 6', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/lib.rs:1 stack backtrace: 1: 0x10e61aba2 - rt::backtrace::imp::write::h90a8813e205226e59it 2: 0x10e61dd3d - failure::on_fail::h02cd561a89cb7027gBt 3: 0x10e88df65 - unwind::begin_unwind_inner::h4bc3350c0517820112c 4: 0x10e88dbaf - unwind::begin_unwind_fmt::hd106a62827b11c87c0c 5: 0x10e88d952 - rust_begin_unwind 6: 0x10e8d8fec - panicking::panic_fmt::h17addcbe3c55edecaOl 7: 0x10e8e15b1 - panicking::panic_bounds_check::he446012f6f64f624IMl 8: 0x10c59c015 - codemap::FileMap::get_line::h765ba394c07c5a54m4E 9: 0x10c5ca703 - diagnostic::emit::hb066201a777f2165wvG 10: 0x10c5c6f98 - diagnostic::EmitterWriter.Emitter::emit::h165058475e3b3ec5lrG 11: 0x10c5c5785 - diagnostic::Handler::emit::hde0ac2d5b40efe25F8F 12: 0x10c5981ab - diagnostic::SpanHandler::span_err::h2eaa3c8ca5c5b97cEWF 13: 0x10b9df920 - middle::typeck::infer::InferCtxt&lt;'a, 'tcx&gt;::type_error_message_str_with_expected::h6ee55cab43056003TKF 14: 0x10b92f921 - middle::typeck::infer::InferCtxt&lt;'a, 'tcx&gt;::type_error_message::h3d8733aff7464519dQF 15: 0x10b940539 - middle::typeck::check::check_expr_with_unifier::h40fb1c6e261626f5Nzm 16: 0x10b93e934 - middle::typeck::check::check_expr_with_unifier::h40fb1c6e261626f5Nzm 17: 0x10b96d0b3 - middle::typeck::check::check_decl_local::hfecf573d1629e05egto 18: 0x10b96d2a3 - middle::typeck::check::check_stmt::h837abcc8fc4466f6gvo 19: 0x10b8f41e8 - middle::typeck::check::check_block_with_expected::hb5675eefe857af90vzo 20: 0x10b93a760 - middle::typeck::check::check_expr_with_unifier::h40fb1c6e261626f5Nzm 21: 0x10b82e2db - middle::typeck::check::_match::check_match::h3caf386ed888768e5P8 22: 0x10b93a683 - middle::typeck::check::check_expr_with_unifier::h40fb1c6e261626f5Nzm 23: 0x10b8f4522 - middle::typeck::check::check_block_with_expected::hb5675eefe857af90vzo 24: 0x10b93a760 - middle::typeck::check::check_expr_with_unifier::h40fb1c6e261626f5Nzm 25: 0x10b96d2fa - middle::typeck::check::check_stmt::h837abcc8fc4466f6gvo 26: 0x10b8f41e8 - middle::typeck::check::check_block_with_expected::hb5675eefe857af90vzo 27: 0x10b8cdf00 - middle::typeck::check::check_fn::hd44de11a490be98ce0i 28: 0x10b8f0aae - middle::typeck::check::check_bare_fn::h3c7a1f5d35e30589jPi 29: 0x10b8f754f - middle::typeck::check::check_method_body::he0c86eb88bb45c1blkj 30: 0x10b8edb88 - middle::typeck::check::check_item::h4ddfa2a018f36791t9i 31: 0x10b8f07d0 - middle::typeck::check::check_item_types::h1ade2b1cc61bf6batOi 32: 0x10bc74826 - util::common::time::h8028586279873844585 33: 0x10bc73ca4 - middle::typeck::check_crate::h3a5b374f87cce2eecwM 34: 0x10b265393 - driver::driver::phase_3_run_analysis_passes::hdc8c835c5059844etfS 35: 0x10b2598bc - driver::driver::compile_input::h1998d439bb2aa565dWR 36: 0x10b2d7bc5 - driver::run_compiler::h8a3c490c622774caHUT 37: 0x10b2d639e - driver::run::closure.59807 38: 0x10b0edc5b - task::TaskBuilder&lt;S&gt;::try_future::closure.39061 39: 0x10b0edb53 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.39032 40: 0x10b0b17bd - task::NativeSpawner.Spawner::spawn::closure.2475 41: 0x10e8f082c - rust_try_inner 42: 0x10e8f0816 - rust_try 43: 0x10e88b707 - unwind::try::h9549aa28335b576amRc 44: 0x10e88b59c - task::Task::run::h7f22cfdcfa218bd192b 45: 0x10b0b15e3 - task::NativeSpawner.Spawner::spawn::closure.2399 46: 0x10e88cdd7 - thread::thread_start::h08cb83a10e608715foc 47: 0x7fff9260c2fc - _pthread_body 48: 0x7fff9260c279 - _pthread_body"><pre class="notranslate"><code class="notranslate">&lt;std macros&gt;:3:24: 18:34 error: type `W` cannot be dereferenced &lt;std macros&gt;:3 let dst = &amp;mut *$dst; &lt;std macros&gt;:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*) &lt;std macros&gt;:5 }) &lt;std macros&gt;:6 ) error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' panicked at 'index out of bounds: the len is 6 but the index is 6', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/lib.rs:1 stack backtrace: 1: 0x10e61aba2 - rt::backtrace::imp::write::h90a8813e205226e59it 2: 0x10e61dd3d - failure::on_fail::h02cd561a89cb7027gBt 3: 0x10e88df65 - unwind::begin_unwind_inner::h4bc3350c0517820112c 4: 0x10e88dbaf - unwind::begin_unwind_fmt::hd106a62827b11c87c0c 5: 0x10e88d952 - rust_begin_unwind 6: 0x10e8d8fec - panicking::panic_fmt::h17addcbe3c55edecaOl 7: 0x10e8e15b1 - panicking::panic_bounds_check::he446012f6f64f624IMl 8: 0x10c59c015 - codemap::FileMap::get_line::h765ba394c07c5a54m4E 9: 0x10c5ca703 - diagnostic::emit::hb066201a777f2165wvG 10: 0x10c5c6f98 - diagnostic::EmitterWriter.Emitter::emit::h165058475e3b3ec5lrG 11: 0x10c5c5785 - diagnostic::Handler::emit::hde0ac2d5b40efe25F8F 12: 0x10c5981ab - diagnostic::SpanHandler::span_err::h2eaa3c8ca5c5b97cEWF 13: 0x10b9df920 - middle::typeck::infer::InferCtxt&lt;'a, 'tcx&gt;::type_error_message_str_with_expected::h6ee55cab43056003TKF 14: 0x10b92f921 - middle::typeck::infer::InferCtxt&lt;'a, 'tcx&gt;::type_error_message::h3d8733aff7464519dQF 15: 0x10b940539 - middle::typeck::check::check_expr_with_unifier::h40fb1c6e261626f5Nzm 16: 0x10b93e934 - middle::typeck::check::check_expr_with_unifier::h40fb1c6e261626f5Nzm 17: 0x10b96d0b3 - middle::typeck::check::check_decl_local::hfecf573d1629e05egto 18: 0x10b96d2a3 - middle::typeck::check::check_stmt::h837abcc8fc4466f6gvo 19: 0x10b8f41e8 - middle::typeck::check::check_block_with_expected::hb5675eefe857af90vzo 20: 0x10b93a760 - middle::typeck::check::check_expr_with_unifier::h40fb1c6e261626f5Nzm 21: 0x10b82e2db - middle::typeck::check::_match::check_match::h3caf386ed888768e5P8 22: 0x10b93a683 - middle::typeck::check::check_expr_with_unifier::h40fb1c6e261626f5Nzm 23: 0x10b8f4522 - middle::typeck::check::check_block_with_expected::hb5675eefe857af90vzo 24: 0x10b93a760 - middle::typeck::check::check_expr_with_unifier::h40fb1c6e261626f5Nzm 25: 0x10b96d2fa - middle::typeck::check::check_stmt::h837abcc8fc4466f6gvo 26: 0x10b8f41e8 - middle::typeck::check::check_block_with_expected::hb5675eefe857af90vzo 27: 0x10b8cdf00 - middle::typeck::check::check_fn::hd44de11a490be98ce0i 28: 0x10b8f0aae - middle::typeck::check::check_bare_fn::h3c7a1f5d35e30589jPi 29: 0x10b8f754f - middle::typeck::check::check_method_body::he0c86eb88bb45c1blkj 30: 0x10b8edb88 - middle::typeck::check::check_item::h4ddfa2a018f36791t9i 31: 0x10b8f07d0 - middle::typeck::check::check_item_types::h1ade2b1cc61bf6batOi 32: 0x10bc74826 - util::common::time::h8028586279873844585 33: 0x10bc73ca4 - middle::typeck::check_crate::h3a5b374f87cce2eecwM 34: 0x10b265393 - driver::driver::phase_3_run_analysis_passes::hdc8c835c5059844etfS 35: 0x10b2598bc - driver::driver::compile_input::h1998d439bb2aa565dWR 36: 0x10b2d7bc5 - driver::run_compiler::h8a3c490c622774caHUT 37: 0x10b2d639e - driver::run::closure.59807 38: 0x10b0edc5b - task::TaskBuilder&lt;S&gt;::try_future::closure.39061 39: 0x10b0edb53 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.39032 40: 0x10b0b17bd - task::NativeSpawner.Spawner::spawn::closure.2475 41: 0x10e8f082c - rust_try_inner 42: 0x10e8f0816 - rust_try 43: 0x10e88b707 - unwind::try::h9549aa28335b576amRc 44: 0x10e88b59c - task::Task::run::h7f22cfdcfa218bd192b 45: 0x10b0b15e3 - task::NativeSpawner.Spawner::spawn::closure.2399 46: 0x10e88cdd7 - thread::thread_start::h08cb83a10e608715foc 47: 0x7fff9260c2fc - _pthread_body 48: 0x7fff9260c279 - _pthread_body </code></pre></div>
0
<p dir="auto">Describe what you were doing when the bug occurred:<br> Inspecting a react component with React Developer Tools</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.11.0-39713716aa</p> <p dir="auto">Call stack: at store_Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22171:35)<br> at store_Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22187:26)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29770:63<br> at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23893:18)<br> at Ii (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:14002:76)<br> at Hi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13993:10)<br> at uk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16728:86)<br> at tk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16245:11)<br> at qk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16237:23)<br> at jk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16221:5)</p> <p dir="auto">Component stack: at List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23588:30)<br> at div<br> at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:3111:5)<br> at div<br> at div<br> at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29531:47)<br> at div<br> at div<br> at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28680:3)<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29121:3)<br> at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34645:52)<br> at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30035:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30157:5)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34264:3)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25356:3)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25963:3)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30300:3)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37639:3)</p>
<p dir="auto">I am using typescript in one of my existed react project. I installed necessary deps as what official site says , including [email protected], @types/[email protected] and so on. Of course, I also use craco to rewrite cra's default configurations. I was told to run tsc --init to generate a tsconfig file, it was fine, everything ok, but when i tried to add some custom configurations in it, the whole file would be reset evertime when i run npm run start. is it the problem from craco? my package.json file is as below:</p> <p dir="auto">{<br> "name": "front_end_tool",<br> "version": "4.0.1",<br> "homepage": "./",<br> "private": true,<br> "dependencies": {<br> "@ant-design/icons": "^4.7.0",<br> "@craco/craco": "^6.3.0",<br> "@testing-library/jest-dom": "^5.14.1",<br> "@testing-library/react": "^11.2.7",<br> "@testing-library/user-event": "^12.8.3",<br> "@types/jest": "^27.4.1",<br> "@types/node": "^17.0.23",<br> "@types/react": "^17.0.43",<br> "@types/react-dom": "^17.0.14",<br> "@types/react-router-dom": "^5.3.3",<br> "antd": "^4.19.3",<br> "axios": "^0.21.4",<br> "classnames": "^2.3.1",<br> "craco-less": "^1.20.0",<br> "echarts": "^5.2.1",<br> "echarts-for-react": "^3.0.1",<br> "file-saver": "^2.0.5",<br> "js-cookie": "^3.0.1",<br> "lodash": "^4.17.21",<br> "mockjs": "^1.1.0",<br> "react": "^17.0.2",<br> "react-app-polyfill": "^3.0.0",<br> "react-color": "^2.19.3",<br> "react-copy-to-clipboard": "^5.0.4",<br> "react-custom-scrollbars": "^4.2.1",<br> "react-dom": "^17.0.2",<br> "react-json-view": "^1.21.3",<br> "react-markdown": "^7.1.1",<br> "react-redux": "^7.2.6",<br> "react-router-config": "^5.1.1",<br> "react-router-dom": "^5.3.0",<br> "react-scripts": "4.0.3",<br> "react-syntax-highlighter": "^15.5.0",<br> "rehype-raw": "^6.1.0",<br> "remark-gemoji": "^7.0.1",<br> "remark-gfm": "^3.0.1",<br> "remark-parse": "^10.0.1",<br> "remark-stringify": "^10.0.2",<br> "styled-components": "^5.3.1",<br> "to-vfile": "^7.2.3",<br> "unified": "^10.1.2",<br> "uuid": "^8.3.2",<br> "web-vitals": "^1.1.2"<br> },<br> "scripts": {<br> "start": "craco start",<br> "build": "craco build"<br> },<br> "eslintConfig": {<br> "extends": [<br> "react-app",<br> "react-app/jest"<br> ]<br> },<br> "browserslist": {<br> "production": [<br> "&gt;0.2%",<br> "not dead",<br> "not op_mini all",<br> "ie 11"<br> ],<br> "development": [<br> "last 1 chrome version",<br> "last 1 firefox version",<br> "last 1 safari version",<br> "ie 11"<br> ]<br> },<br> "devDependencies": {<br> "@fec/remark-a11y-emoji": "^3.1.0",<br> "@types/lodash": "^4.14.181",<br> "@types/mockjs": "^1.0.6",<br> "@types/react-copy-to-clipboard": "^5.0.2",<br> "@types/react-custom-scrollbars": "^4.0.10",<br> "@types/react-router-config": "^5.0.6",<br> "@types/react-syntax-highlighter": "^13.5.2",<br> "@types/uuid": "^8.3.4",<br> "craco-antd": "^1.19.0",<br> "raw-loader": "^4.0.2",<br> "rehype-accessible-emojis": "^0.3.2",<br> "ts-node": "^10.7.0",<br> "typescript": "^4.6.3",<br> "webpack-bundle-analyzer": "^4.4.2",<br> "webpackbar": "^5.0.0-3"<br> }<br> }</p>
0
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2932786/9593657/294e292c-5006-11e5-903d-ad9b659d2f47.gif"><img src="https://cloud.githubusercontent.com/assets/2932786/9593657/294e292c-5006-11e5-903d-ad9b659d2f47.gif" alt="jsxcompletionsomitsimport" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">It looks like it's also missing in any other JSX-expression context.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var p = new Array&lt;string&gt;(); var q = true ? p : []; q[0]"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">p</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Array</span><span class="pl-kos">&lt;</span><span class="pl-smi">string</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">q</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> ? <span class="pl-s1">p</span> : <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-s1">q</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span></pre></div> <p dir="auto">My reasoning follows, please correct me if I'm wrong.<br> According to 1.5 spec, type of q[0] was calculated in the following way:</p> <ol dir="auto"> <li>Take union type of <code class="notranslate">Array&lt;string&gt;</code> and empty array (<code class="notranslate">Array&lt;Undefined&gt;</code>).</li> <li>Reduce that union type, which gives us <code class="notranslate">Array&lt;string&gt;</code>, because string is a supertype of undefined.</li> <li>Widen that type (changes nothing).</li> <li>Type of q[0] is string.</li> </ol> <p dir="auto">According to 1.6 spec, type of q[0] should be calculated in the following way:</p> <ol dir="auto"> <li>Take union type of <code class="notranslate">Array&lt;string&gt;</code> and empty array (<code class="notranslate">Array&lt;Undefined&gt;</code>).</li> <li>No reduce is happening.</li> <li>Widen that type, resulting in <code class="notranslate">(Array&lt;string&gt; | Array&lt;any&gt;)</code>.</li> <li>Type of q[0] is <code class="notranslate">(string | any)</code>.</li> </ol> <p dir="auto">But that would break "no implicit any". Where did I make a mistake?</p>
0
<p dir="auto">I apologise for raising this issue again, I'm not intending to be annoying or disrespectful by this, but my previous issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="331857993" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/13034" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/13034/hovercard" href="https://github.com/facebook/react/issues/13034">#13034</a> was closed with a suggestion which I believe not does mitigate the feature request. I'm simply not aware if I should take the hint and go away, if there's a bit of a backlog and I should hang in there, or if it's been missed. I'm assuming the latter, but beg forgiveness if that is not the case. Should you want me to go away I will do so :) Thanks.</p> <p dir="auto">I'm trying to build a container component and child component, whereby the children can sit anywhere in the hierarchy beneath the container, but know their relative order/index within that hierarchy.</p> <p dir="auto">My use-case is to build a helper wrapper for CSS grids, allowing subcomponents to themselves render a "row" component which knows it must be the next index, and may or may not progress the row counter for the next "row" component found in order.</p> <p dir="auto">I've looked into two possible avenues - recursing using React.Children on the component, which stops when it hits a component without props.children (e.g. a redux-connect()-ed one), and passing some means of counting via context, which fails because it seems the render() methods of the child components isn't always called in "DOM order".</p> <p dir="auto">More background here - <a href="https://stackoverflow.com/questions/50776933/react-get-component-order-within-hierarchy" rel="nofollow">https://stackoverflow.com/questions/50776933/react-get-component-order-within-hierarchy</a></p> <p dir="auto">It would be great to have some feature in React which might allow for this.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aweary/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aweary">@aweary</a> had previously suggested in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="331857993" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/13034" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/13034/hovercard" href="https://github.com/facebook/react/issues/13034">#13034</a> that context could do this with nesting, however I'd raised the thought that this would give an indication of recursion depth, not relative position.</p>
<p dir="auto">Hey,</p> <p dir="auto">It seems like there is currently no way to take two mounted component instances and tell which one of them is coming earlier in the application structure (they could have been mounted asynchronously, and tracking the instantiation/render/mount time is not enough). Ideologically I cannot traverse the application tree, that is understandable.</p> <p dir="auto">Though, the relative positions are needed sometimes. My use case — I track focusable elements in the application using context (each focusable element reports of its existence to a focus manager which is provided by the context). This is needed to be able to limit the focusablility/accessibility of all elements which are outside of the currently shown modal dialog/popup so that the focus is trapped inside. For the sake of better accessibility, I need to automatically focus first focusable in the modal dialog when I'm in the keyboard navigation mode. So, I have the references to all focusable elements inside the dialog, but I cannot tell which one comes first using public React API. For web there is a workaround to findDOMNode and compareDocumentPosition(), but that doesn't work with React Native.</p> <p dir="auto">Can we have something similar to compareDocumentPosition() but for React component instances?</p> <p dir="auto">Thanks!</p>
1
<p dir="auto">I assume this is also the case of the light theme.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1293142/11932929/c371b40c-a7c6-11e5-8ddc-8fb8705438d4.png"><img width="612" alt="screen shot 2015-12-21 at 9 39 11 am" src="https://cloud.githubusercontent.com/assets/1293142/11932929/c371b40c-a7c6-11e5-8ddc-8fb8705438d4.png" style="max-width: 100%;"></a></p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/joaomoreno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/joaomoreno">@joaomoreno</a> on December 14, 2015 13:52</em></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/22350/11782623/458b351c-a272-11e5-8bf2-ca1dc66c6560.png"><img src="https://cloud.githubusercontent.com/assets/22350/11782623/458b351c-a272-11e5-8bf2-ca1dc66c6560.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="122046874" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/1269" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/1269/hovercard" href="https://github.com/microsoft/vscode/issues/1269">microsoft/vscode#1269</a></em></p>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/977" rel="nofollow">http://projects.scipy.org/numpy/ticket/977</a> on 2008-12-26 by trac user raybaut, assigned to unknown.</em></p> <p dir="auto">Running unit tests for numpy<br> NumPy version 1.2.1<br> NumPy is installed in C:\Program Files\pythonxy\python\lib\site-packages\numpy<br> Python version 2.5.3 (r253:67855, Dec 19 2008, 16:58:30) [MSC v.1310 32 bit (Intel)]</p> <h1 dir="auto">nose version 0.10.4</h1> <h2 dir="auto">FAIL: test_umath.TestComplexFunctions.test_against_cmath</h2> <p dir="auto">Traceback (most recent call last):<br> File "nose\case.py", line 182, in runTest<br> self.test(*self.arg)<br> File "C:\Program Files\pythonxy\python\lib\site-packages\numpy\core\tests\test_umath.py", line 268<br> , in test_against_cmath<br> assert abs(a - b) &lt; atol, "%s %s: %s; cmath: %s"%(fname,p,a,b)<br> AssertionError: arcsinh -2j: (-1.31695789692-1.57079632679j); cmath: (1.31695789692-1.57079632679j)</p> <hr> <p dir="auto">Ran 1592 tests in 11.484s</p> <p dir="auto">FAILED (KNOWNFAIL=3, failures=1)<br> Out[1]: &lt;nose.result.TextTestResult run=1592 errors=0 failures=1&gt;</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/974" rel="nofollow">http://projects.scipy.org/numpy/ticket/974</a> on 2008-12-20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nilswagner01/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nilswagner01">@nilswagner01</a>, assigned to unknown.</em></p> <p dir="auto">python2,6</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; numpy.__version__ '1.3.0.dev6173' ====================================================================== FAIL: test_umath.TestComplexFunctions.test_against_cmath ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/nwagner/local/lib64/python2.6/site-packages/nose-0.10.4-py2.6.egg/nose/case.py&quot;, line 182, in runTest self.test(*self.arg) File &quot;/home/nwagner/local/lib64/python2.6/site-packages/numpy/core/tests/test_umath.py&quot;, line 423, in test_against_cmath assert abs(a - b) &lt; atol, &quot;%s %s: %s; cmath: %s&quot;%(fname,p,a,b) AssertionError: arcsin 2: (1.57079632679-1.31695789692j); cmath: (1.57079632679+1.31695789692j) &gt;&gt;&gt; numpy.show_config() atlas_threads_info: libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib'] language = f77 include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include'] blas_opt_info: libraries = ['ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib'] define_macros = [('ATLAS_INFO', '&quot;\\&quot;3.8.2\\&quot;&quot;')] language = c include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include'] atlas_blas_threads_info: libraries = ['ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib'] language = c include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include'] lapack_opt_info: libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib'] define_macros = [('ATLAS_INFO', '&quot;\\&quot;3.8.2\\&quot;&quot;')] language = f77 include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include'] lapack_mkl_info: NOT AVAILABLE blas_mkl_info: NOT AVAILABLE mkl_info: NOT AVAILABLE"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; numpy.__version__ '1.3.0.dev6173' ====================================================================== FAIL: test_umath.TestComplexFunctions.test_against_cmath ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.10.4-py2.6.egg/nose/case.py", line 182, in runTest self.test(*self.arg) File "/home/nwagner/local/lib64/python2.6/site-packages/numpy/core/tests/test_umath.py", line 423, in test_against_cmath assert abs(a - b) &lt; atol, "%s %s: %s; cmath: %s"%(fname,p,a,b) AssertionError: arcsin 2: (1.57079632679-1.31695789692j); cmath: (1.57079632679+1.31695789692j) &gt;&gt;&gt; numpy.show_config() atlas_threads_info: libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib'] language = f77 include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include'] blas_opt_info: libraries = ['ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib'] define_macros = [('ATLAS_INFO', '"\\"3.8.2\\""')] language = c include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include'] atlas_blas_threads_info: libraries = ['ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib'] language = c include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include'] lapack_opt_info: libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib'] define_macros = [('ATLAS_INFO', '"\\"3.8.2\\""')] language = f77 include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include'] lapack_mkl_info: NOT AVAILABLE blas_mkl_info: NOT AVAILABLE mkl_info: NOT AVAILABLE </code></pre></div>
1
<p dir="auto">Could you please provide official chart for your image.</p> <p dir="auto">The stable/airflow chart was created for image puckel/docker-airflow.</p> <p dir="auto">There are specific features in the puckel/docker-airflow entrypoint you don't have</p> <p dir="auto">such as<br> <a href="https://github.com/puckel/docker-airflow/blob/master/script/entrypoint.sh#L13">https://github.com/puckel/docker-airflow/blob/master/script/entrypoint.sh#L13</a><br> <a href="https://github.com/puckel/docker-airflow/blob/master/script/entrypoint.sh#L57">https://github.com/puckel/docker-airflow/blob/master/script/entrypoint.sh#L57</a></p> <p dir="auto">So your image won't work with stable/airflow correctly</p>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.6.2</p> <h3 dir="auto">What happened</h3> <p dir="auto">I'm installing a python package that contains airflow.plugins.<br> For some reason when I run <code class="notranslate">airflow plugins</code> the plugins show duplicated twice.<br> This causes an issue loading blueprints:</p> <p dir="auto">ValueError: The name 'edit_run_conf' is already registered for this blueprint. Use 'name=' to provide a unique name.</p> <p dir="auto">Plugins are definitely being loaded only from python package. The plugins_dir is empty. Verified this also with DEBUG log.</p> <p dir="auto">[2023-07-05T14:14:56.911+0000] {plugins_manager.py:300} DEBUG - Loading plugins<br> [2023-07-05T14:14:56.911+0000] {plugins_manager.py:244} DEBUG - Loading plugins from directory: /airflow/plugins<br> [2023-07-05T14:14:56.912+0000] {plugins_manager.py:224} DEBUG - Loading plugins from entrypoints<br> [2023-07-05T14:14:56.920+0000] {plugins_manager.py:227} DEBUG - Importing entry_point plugin cron_display_timezone_plugin<br> [2023-07-05T14:14:56.921+0000] {plugins_manager.py:227} DEBUG - Importing entry_point plugin edit_runconf_plugin<br> [2023-07-05T14:14:56.992+0000] {plugins_manager.py:227} DEBUG - Importing entry_point plugin cron_display_timezone_plugin<br> [2023-07-05T14:14:56.993+0000] {plugins_manager.py:227} DEBUG - Importing entry_point plugin edit_runconf_plugin</p> <p dir="auto">Here is how the entrypoints look like in the python package:<br> ./venv/lib/python3.9/site-packages/gr_airflow-0.0.3.dist-info/entry_points.txt</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[airflow.plugins] cron_display_timezone_plugin = gr_airflow.plugins.timezonetrigger.plugin:CronDisplayTimezonePlugin edit_runconf_plugin = gr_airflow.plugins.edit_runconf.plugin:EditRunConfPlugin"><pre class="notranslate"><code class="notranslate">[airflow.plugins] cron_display_timezone_plugin = gr_airflow.plugins.timezonetrigger.plugin:CronDisplayTimezonePlugin edit_runconf_plugin = gr_airflow.plugins.edit_runconf.plugin:EditRunConfPlugin </code></pre></div> <p dir="auto">Any one else having this issue?</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Install a package that contains plugin entry points in pyproject.toml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[project.entry-points.&quot;airflow.plugins&quot;] cron_display_timezone_plugin = &quot;gr_airflow.plugins.timezonetrigger.plugin:CronDisplayTimezonePlugin&quot; edit_runconf_plugin = &quot;gr_airflow.plugins.edit_runconf.plugin:EditRunConfPlugin&quot;"><pre class="notranslate"><code class="notranslate">[project.entry-points."airflow.plugins"] cron_display_timezone_plugin = "gr_airflow.plugins.timezonetrigger.plugin:CronDisplayTimezonePlugin" edit_runconf_plugin = "gr_airflow.plugins.edit_runconf.plugin:EditRunConfPlugin" </code></pre></div> <h3 dir="auto">Operating System</h3> <p dir="auto">Centos 8</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">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" checked=""> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
0
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>-</td> </tr> <tr> <td>RFC?</td> <td>-</td> </tr> <tr> <td>Symfony version</td> <td>3.4.x</td> </tr> </tbody> </table> <p dir="auto">First of all, sorry if it's not a bug, but it's worth creating an issue;</p> <p dir="auto">I've noticed that the profiler never shows the information about my pools in the right Request.</p> <p dir="auto"><strong>Facts</strong>:</p> <ul dir="auto"> <li>The cache call are made on the main request.</li> <li>Inside app, the menu is rendered via a <code class="notranslate">{{ render(controller(...)) }}</code> call so it triggers 1 subrequest. <strong>No cache calls were made on that subrequest</strong>.</li> </ul> <p dir="auto">After spending some time on understanding what was happening, I discovered that the data is showing on the profiler of the <strong>SUB REQUEST instead of the request itself</strong>.</p> <p dir="auto"><strong>to reproduce:</strong> <a href="https://github.com/tristanbes/symfony-cache-profiler-bug">https://github.com/tristanbes/symfony-cache-profiler-bug</a> (ping <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xabbuh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xabbuh">@xabbuh</a>)</p> <h2 dir="auto">cache pannel, where it should appear since the call were made on this request</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/346010/34614622-607ccbf8-f232-11e7-97e9-3778ce0e4ac6.png"><img src="https://user-images.githubusercontent.com/346010/34614622-607ccbf8-f232-11e7-97e9-3778ce0e4ac6.png" alt="symfony_profiler" style="max-width: 100%;"></a></p> <h2 dir="auto">cache pannel of the subrequest, where <strong>no cache calls were made</strong></h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/346010/34614583-3d7734c2-f232-11e7-9181-7b139a9ce412.png"><img src="https://user-images.githubusercontent.com/346010/34614583-3d7734c2-f232-11e7-9181-7b139a9ce412.png" alt="symfony_profiler" style="max-width: 100%;"></a></p> <p dir="auto">Thanks</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.3.6</td> </tr> </tbody> </table> <p dir="auto">Empty symfony-standard project contains 5 cache calls in profile, but if I add simple render controller - the cache panel becomes empty (No cache calls were made.)</p> <p dir="auto"><a href="https://github.com/BoShurik/symfony-standard/commit/2b2a8c4935c1f751e9745ed7f9f24990e1826596">https://github.com/BoShurik/symfony-standard/commit/2b2a8c4935c1f751e9745ed7f9f24990e1826596</a></p>
1
<p dir="auto">Like in v2. This allows us to apply col-md-# classes to them without issues caused by padding values.</p>
<p dir="auto">Instead of on the <code class="notranslate">input[type=button]</code> and <code class="notranslate">button</code>. This comes in especially handy when using the styles on <code class="notranslate">&lt;a&gt;</code> tags</p>
1
<p dir="auto">This is a strange bug.</p> <p dir="auto">When loading both <code class="notranslate">https://deno.land/[email protected]/hash/mod.ts</code> and some cjs files, deno checks the type of cjs.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export { createHash } from &quot;https://deno.land/[email protected]/hash/mod.ts&quot;; import {} from &quot;./cjsTest.cjs&quot;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">createHash</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/[email protected]/hash/mod.ts"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./cjsTest.cjs"</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: TS2339 [ERROR]: Property 'test' does not exist on type '{}'. return exports.test; ~~~~ at file:///C:/Users/stone/OneDrive/%EB%B0%94%ED%83%95%20%ED%99%94%EB%A9%B4/%EC%83%88%20%ED%8F%B4%EB%8D%94/postgres/cjsTest.cjs:4:18"><pre class="notranslate"><code class="notranslate">error: TS2339 [ERROR]: Property 'test' does not exist on type '{}'. return exports.test; ~~~~ at file:///C:/Users/stone/OneDrive/%EB%B0%94%ED%83%95%20%ED%99%94%EB%A9%B4/%EC%83%88%20%ED%8F%B4%EB%8D%94/postgres/cjsTest.cjs:4:18 </code></pre></div> <p dir="auto">Windows 10 v2004 - X<br> WSL (Ubuntu bionic) - X<br> macOS Catalina - X</p>
<p dir="auto">Receiving TS2531 [ERROR] when running the mjs/cjs after Deno 1.0.4.</p> <p dir="auto">save as "test.mjs"</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { exp } from &quot;./test_mod.ts&quot;; if (false) null.func();"><pre class="notranslate"><code class="notranslate">import { exp } from "./test_mod.ts"; if (false) null.func(); </code></pre></div> <p dir="auto">save as "test_mod.ts"</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export const exp = {};"><pre class="notranslate"><code class="notranslate">export const exp = {}; </code></pre></div> <p dir="auto">and run</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% deno run test.mjs Compile file:/// ... /test.mjs error: TS2531 [ERROR]: Object is possibly 'null'. if (false) null.func(); ~~~~ at file:/// ... /test.mjs:2:12"><pre class="notranslate"><code class="notranslate">% deno run test.mjs Compile file:/// ... /test.mjs error: TS2531 [ERROR]: Object is possibly 'null'. if (false) null.func(); ~~~~ at file:/// ... /test.mjs:2:12 </code></pre></div> <p dir="auto">1.0.5 -- NG<br> 1.0.4 -- NG<br> 1.0.3 -- OK</p> <p dir="auto">without ts import -- OK<br> import mjs -- OK</p>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Well I did not see it suggested before so I would create a ticket for it<br> This is mostly as most game would used modifier keys (Ctrl,Alt,Shift) and depend on keyboard layout, Win key might be close to it and accidentally trigger would be costly in game.</p> <h1 dir="auto">Solution</h1> <p dir="auto">So I would request either disable it or rebind it per focused app to non-interrupt combo like Home/End as those would mostly process if in-game chat was open<br> I still debate on if we still trigger like normal if it was Win+XXX Combo. Like Win+1 might be accident of Ctrl+1.<br> I understand that this is wait on per app binding feature.</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Add option to only show taskbar hints on shortcut guide</h2> <p dir="auto"><em>What is the expected behavior of the proposed feature? What is the scenario this would be used?</em></p> <p dir="auto">The main reason I like the shortcut guide powertoy is because it shows the numbers over taskbar items to jump directly to them (e.g. WinKey + 5 to open the 5th taskbar item). This is useful because unlike other shortcuts, these are prone to change depending on which applications you have open and the powertoy keeps you from having to count out where an app is in the taskbar. It would be useful for other users like me who are familiar with the main shortcuts to have an option to only show the number hints over the taskbar without the rest of the overlay when the windows key is held.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5904472/91885765-4fe56e00-ec56-11ea-9ac8-f9d7bafa0ea7.jpg"><img src="https://user-images.githubusercontent.com/5904472/91885765-4fe56e00-ec56-11ea-9ac8-f9d7bafa0ea7.jpg" alt="Screenshot (2)" style="max-width: 100%;"></a></p> <hr> <p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p>
0
<h3 dir="auto">Environment</h3> <p dir="auto">SQLAlchemy: 1.3.5 or 1.3.11<br> PostgreSQL: 9.6<br> Python: 3.7.4</p> <h3 dir="auto">Problem</h3> <p dir="auto">When delete parent model which has a relationship to children via secondary table, and a relationship to secondary table directly, duplicated delete queries on same instance have been emitted and report SAWarning.</p> <p dir="auto">IMO, Unexpectedly <code class="notranslate">db.session.deleted</code> keep deleted instance after delete record in secondary table automatically.</p> <p dir="auto">Following logs are outputted when delete parent record. (Some comments are my opinion)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Delete automatically by secondary relationship # https://docs.sqlalchemy.org/en/13/orm/cascades.html#delete 2019-11-19 14:30:03,653 INFO sqlalchemy.engine.base.Engine DELETE FROM user_assignments WHERE user_assignments.user_id = %(user_id)s AND user_assignments.account_id = %(account_id)s 2019-11-19 14:30:03,654 INFO sqlalchemy.engine.base.Engine ({'user_id': 8, 'account_id': 6}, {'user_id': 8, 'account_id': 51}) # Delete automatically by explicitly cascade # Unexpectedly db.session.deleted keep deleted instance? 2019-11-19 14:30:03,655 INFO sqlalchemy.engine.base.Engine DELETE FROM user_assignments WHERE user_assignments.user_id = %(user_id)s AND user_assignments.account_id = %(account_id)s 2019-11-19 14:30:03,656 INFO sqlalchemy.engine.base.Engine ({'user_id': 8, 'account_id': 6}, {'user_id': 8, 'account_id': 51}, {'user_id': 8, 'account_id': 987}) # Report SAWarning due to part of user_assignments are already deleted. /home/centos/.pyenv/versions/3.7.4/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py:1367: SAWarning: DELETE statement on table 'user_assignments' expected to delete 3 row(s); 1 were matched. Please set confirm_deleted_rows=False within the mapper configuration to prevent this warning."><pre class="notranslate"><code class="notranslate"># Delete automatically by secondary relationship # https://docs.sqlalchemy.org/en/13/orm/cascades.html#delete 2019-11-19 14:30:03,653 INFO sqlalchemy.engine.base.Engine DELETE FROM user_assignments WHERE user_assignments.user_id = %(user_id)s AND user_assignments.account_id = %(account_id)s 2019-11-19 14:30:03,654 INFO sqlalchemy.engine.base.Engine ({'user_id': 8, 'account_id': 6}, {'user_id': 8, 'account_id': 51}) # Delete automatically by explicitly cascade # Unexpectedly db.session.deleted keep deleted instance? 2019-11-19 14:30:03,655 INFO sqlalchemy.engine.base.Engine DELETE FROM user_assignments WHERE user_assignments.user_id = %(user_id)s AND user_assignments.account_id = %(account_id)s 2019-11-19 14:30:03,656 INFO sqlalchemy.engine.base.Engine ({'user_id': 8, 'account_id': 6}, {'user_id': 8, 'account_id': 51}, {'user_id': 8, 'account_id': 987}) # Report SAWarning due to part of user_assignments are already deleted. /home/centos/.pyenv/versions/3.7.4/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py:1367: SAWarning: DELETE statement on table 'user_assignments' expected to delete 3 row(s); 1 were matched. Please set confirm_deleted_rows=False within the mapper configuration to prevent this warning. </code></pre></div> <h3 dir="auto">Reproduce</h3> <p dir="auto">We have two models <code class="notranslate">Account</code> and <code class="notranslate">User</code>.<br> These models have many-to-many relation via <code class="notranslate">UserAssignment</code> model which has data for email confirmation status.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Account(db.Model): users = db.relationship('User', secondary='user_assignments', back_populates='accounts', lazy='dynamic', secondaryjoin='''and_(User.id == UserAssignment.account_id, UserAssignment.confirmed_at.isnot(None))''') assignments = db.relationship('UserAssignment', cascade='all, delete-orphan', lazy='dynamic')"><pre class="notranslate"><code class="notranslate">class Account(db.Model): users = db.relationship('User', secondary='user_assignments', back_populates='accounts', lazy='dynamic', secondaryjoin='''and_(User.id == UserAssignment.account_id, UserAssignment.confirmed_at.isnot(None))''') assignments = db.relationship('UserAssignment', cascade='all, delete-orphan', lazy='dynamic') </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="select * from user_assignments where user_id = 8; user_id | account_id | confirmed_at ---------+------------+------------------------------- 8 | 6 | 2017-05-19 16:21:38.938036+00 8 | 987 | 8 | 51 | 2019-09-27 05:38:53.467833+00 "><pre class="notranslate"><code class="notranslate">select * from user_assignments where user_id = 8; user_id | account_id | confirmed_at ---------+------------+------------------------------- 8 | 6 | 2017-05-19 16:21:38.938036+00 8 | 987 | 8 | 51 | 2019-09-27 05:38:53.467833+00 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="user = User.query.get(8) db.session.delete(user) db.session.deleted # IdentitySet([&lt;User 8&gt;, &lt;UserAssignment 8, 6&gt;, &lt;UserAssignment 8, 987&gt;, &lt;UserAssignment 8, 51&gt;]) db.session.flush()"><pre class="notranslate"><code class="notranslate">user = User.query.get(8) db.session.delete(user) db.session.deleted # IdentitySet([&lt;User 8&gt;, &lt;UserAssignment 8, 6&gt;, &lt;UserAssignment 8, 987&gt;, &lt;UserAssignment 8, 51&gt;]) db.session.flush() </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">SQLite with default=func.now() Column definition fails on insert</p> <p dir="auto">Testcase:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import sqlalchemy as sqa import datetime db = sqa.create_engine(&quot;sqlite://&quot;) metadata = sqa.BoundMetaData(db) #metadata.engine.echo = True # debug output events_table = sqa.Table('events', metadata, sqa.Column('id', sqa.Integer, primary_key=True), sqa.Column('name', sqa.String(255)), sqa.Column('datetime', sqa.DateTime, default=sqa.func.now()), ) events_table.create() i = events_table.insert() name = &quot;just-a-name&quot; i.execute(name = name)"><pre class="notranslate"><code class="notranslate">import sqlalchemy as sqa import datetime db = sqa.create_engine("sqlite://") metadata = sqa.BoundMetaData(db) #metadata.engine.echo = True # debug output events_table = sqa.Table('events', metadata, sqa.Column('id', sqa.Integer, primary_key=True), sqa.Column('name', sqa.String(255)), sqa.Column('datetime', sqa.DateTime, default=sqa.func.now()), ) events_table.create() i = events_table.insert() name = "just-a-name" i.execute(name = name) </code></pre></div> <p dir="auto">The error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;D:\testcase02.py&quot;, line 19, in ? i.execute(name = name) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py&quot;, line 1207, in execute return self.compile(bind=self.bind, parameters=compile_params).execute(*multiparams, **params) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py&quot;, line 1097, in execute return e.execute_compiled(self, *multiparams, **params) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py&quot;, line 780, in execute_compiled return connection.execute_compiled(compiled, *multiparams, **params) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py&quot;, line 567, in execute_compiled context.pre_exec() File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\default.py&quot;, line 200, in pre_exec self._process_defaults() File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\default.py&quot;, line 302, in _process_defaults newid = drunner.get_column_default(c) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py&quot;, line 1235, in get_column_default return column.default.accept_visitor(self) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\schema.py&quot;, line 840, in accept_visitor return visitor.visit_column_default(self) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py&quot;, line 1276, in visit_column_default return self.exec_default_sql(default) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py&quot;, line 1264, in exec_default_sql return self.connection.execute_compiled(c).scalar() File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py&quot;, line 568, in execute_compiled self._execute_raw(context) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py&quot;, line 581, in _execute_raw self._execute(context) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py&quot;, line 599, in _execute raise exceptions.SQLError(context.statement, context.parameters, e) sqlalchemy.exceptions.SQLError: (OperationalError) no such function: now u'SELECT now()' [workaround ` #!diff --- sqlalchemy/databases/sqlite_old.py Sat Jul 21 03:18:32 2007 +++ sqlalchemy/databases/sqlite.py Thu Aug 02 15:10:01 2007 @@ -325,6 +325,12 @@ self.typemap.setdefault(&quot;CAST&quot;, cast.type) self.strings[cast](]"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "D:\testcase02.py", line 19, in ? i.execute(name = name) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py", line 1207, in execute return self.compile(bind=self.bind, parameters=compile_params).execute(*multiparams, **params) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py", line 1097, in execute return e.execute_compiled(self, *multiparams, **params) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py", line 780, in execute_compiled return connection.execute_compiled(compiled, *multiparams, **params) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py", line 567, in execute_compiled context.pre_exec() File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\default.py", line 200, in pre_exec self._process_defaults() File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\default.py", line 302, in _process_defaults newid = drunner.get_column_default(c) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py", line 1235, in get_column_default return column.default.accept_visitor(self) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\schema.py", line 840, in accept_visitor return visitor.visit_column_default(self) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py", line 1276, in visit_column_default return self.exec_default_sql(default) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py", line 1264, in exec_default_sql return self.connection.execute_compiled(c).scalar() File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py", line 568, in execute_compiled self._execute_raw(context) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py", line 581, in _execute_raw self._execute(context) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py", line 599, in _execute raise exceptions.SQLError(context.statement, context.parameters, e) sqlalchemy.exceptions.SQLError: (OperationalError) no such function: now u'SELECT now()' [workaround ` #!diff --- sqlalchemy/databases/sqlite_old.py Sat Jul 21 03:18:32 2007 +++ sqlalchemy/databases/sqlite.py Thu Aug 02 15:10:01 2007 @@ -325,6 +325,12 @@ self.typemap.setdefault("CAST", cast.type) self.strings[cast](] </code></pre></div> <p dir="auto">Possible) = self.strings<a href="cast.clause">cast.clause</a></p> <ul dir="auto"> <li>def visit_function( self , func ):</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if func.name.lower() == 'now':"><pre class="notranslate"><code class="notranslate"> if func.name.lower() == 'now': </code></pre></div> </li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" self.strings[func](func) = 'DATETIME(&quot;NOW&quot;)'"><pre class="notranslate"><code class="notranslate"> self.strings[func](func) = 'DATETIME("NOW")' </code></pre></div> </li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" else:"><pre class="notranslate"><code class="notranslate"> else: </code></pre></div> </li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ansisql.ANSICompiler.visit_function( self , func )"><pre class="notranslate"><code class="notranslate"> ansisql.ANSICompiler.visit_function( self , func ) </code></pre></div> </li> <li>def limit_clause(self, select):<br> text = ""<br> if select.limit is not None:</li> </ul> <p dir="auto">But it also fails</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;D:\testcase02.py&quot;, line 19, in ? i.execute(name = name) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py&quot;, line 1207, in execute return self.compile(bind=self.bind, parameters=compile_params).execute(*multiparams, **params) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py&quot;, line 1097, in execute return e.execute_compiled(self, *multiparams, **params) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py&quot;, line 780, in execute_compiled return connection.execute_compiled(compiled, *multiparams, **params) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py&quot;, line 567, in execute_compiled context.pre_exec() File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\default.py&quot;, line 201, in pre_exec self.parameters = self._encode_param_keys(self.dialect.convert_compiled_params(self.compiled_parameters)) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\default.py&quot;, line 120, in convert_compiled_params parameters = parameters.get_raw_list() File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py&quot;, line 864, in get_raw_list return [for key in self.positional](self.get_processed(key)) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py&quot;, line 845, in get_processed return bind.typeprocess(value, self.dialect) File &quot;C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py&quot;, line 1883, in typeprocess return self.type.dialect_impl(dialect).convert_bind_param(value, dialect) File &quot;C:\Tools\Python24\lib\site-packages\sqlalchemy\databases\sqlite.py&quot;, line 38, in convert_bind_param return value.strftime(self.__format__) AttributeError: 'unicode' object has no attribute 'strftime'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "D:\testcase02.py", line 19, in ? i.execute(name = name) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py", line 1207, in execute return self.compile(bind=self.bind, parameters=compile_params).execute(*multiparams, **params) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py", line 1097, in execute return e.execute_compiled(self, *multiparams, **params) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py", line 780, in execute_compiled return connection.execute_compiled(compiled, *multiparams, **params) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\base.py", line 567, in execute_compiled context.pre_exec() File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\default.py", line 201, in pre_exec self.parameters = self._encode_param_keys(self.dialect.convert_compiled_params(self.compiled_parameters)) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\engine\default.py", line 120, in convert_compiled_params parameters = parameters.get_raw_list() File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py", line 864, in get_raw_list return [for key in self.positional](self.get_processed(key)) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py", line 845, in get_processed return bind.typeprocess(value, self.dialect) File "C:\Tools\Python24\Lib\site-packages\sqlalchemy\sql.py", line 1883, in typeprocess return self.type.dialect_impl(dialect).convert_bind_param(value, dialect) File "C:\Tools\Python24\lib\site-packages\sqlalchemy\databases\sqlite.py", line 38, in convert_bind_param return value.strftime(self.__format__) AttributeError: 'unicode' object has no attribute 'strftime' </code></pre></div> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/708/testcase02.py">testcase02.py</a></p>
0
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/843748/14981523/122f79f8-1130-11e6-8b57-169e5dd30ee9.png"><img width="462" alt="screen-shot-2016-05-03-11-07-24" src="https://cloud.githubusercontent.com/assets/843748/14981523/122f79f8-1130-11e6-8b57-169e5dd30ee9.png" style="max-width: 100%;"></a></p> <p dir="auto">When floatingLabelText wraps to a new line it overlaps the textarea as shown.</p> <ul dir="auto"> <li>Material-UI: v0.15.0-beta.2</li> <li>React: 15.0.2</li> <li>Browser: Chrome OSX</li> </ul>
<p dir="auto">If the hint text is long and wraps to multiple lines, floatingLabelText will overlap.</p>
1
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">There is a very strange behavior with table joins and limit/offset:<br> example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import * db = create_engine(&quot;mysql://tezzt:tezzt@localhost/tezzt&quot;) m = BoundMetaData(db) db.engine.echo = True class T1(object):pass class T2(object):pass t1 = Table(&quot;a&quot;, m, Column(&quot;id&quot;, Integer, primary_key=True), Column(&quot;b_id&quot;, Integer, ForeignKey(&quot;b.id&quot;))) t2 = Table(&quot;b&quot;, m, Column(&quot;id&quot;, Integer, primary_key=True), Column(&quot;name&quot;, String(10))) T1.mapper = mapper(T1, t1, properties={&quot;b&quot;:relation(T2, lazy=False, order_by=None)}) T2.mapper = mapper(T2, t2) m.drop_all() m.create_all() session = create_session() for a in xrange(1,10): aa = T1() bb = T2() bb.name = &quot;B%d&quot;%a aa.b = bb session.save(aa) session.save(bb) session.flush() session.clear() for a in session.query(T1).select(order_by=[T2.c.name](T2.c.name), limit=10, offset=0): print a.id, a.b.name for a in session.query(T1).select(order_by=[asc(T2.c.name)](asc(T2.c.name)), limit=10, offset=0): print a.id, a.b.name"><pre class="notranslate"><code class="notranslate">from sqlalchemy import * db = create_engine("mysql://tezzt:tezzt@localhost/tezzt") m = BoundMetaData(db) db.engine.echo = True class T1(object):pass class T2(object):pass t1 = Table("a", m, Column("id", Integer, primary_key=True), Column("b_id", Integer, ForeignKey("b.id"))) t2 = Table("b", m, Column("id", Integer, primary_key=True), Column("name", String(10))) T1.mapper = mapper(T1, t1, properties={"b":relation(T2, lazy=False, order_by=None)}) T2.mapper = mapper(T2, t2) m.drop_all() m.create_all() session = create_session() for a in xrange(1,10): aa = T1() bb = T2() bb.name = "B%d"%a aa.b = bb session.save(aa) session.save(bb) session.flush() session.clear() for a in session.query(T1).select(order_by=[T2.c.name](T2.c.name), limit=10, offset=0): print a.id, a.b.name for a in session.query(T1).select(order_by=[asc(T2.c.name)](asc(T2.c.name)), limit=10, offset=0): print a.id, a.b.name </code></pre></div> <p dir="auto">results:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2006-11-15 17:20:26,450 INFO sqlalchemy.engine.base.Engine.0x..d4 SELECT b_1b29.id AS b_1b29_id, b_1b29.name AS b_1b29_name, a.id AS a_id, a.b_id AS a_b_id FROM (SELECT a.id AS a_id, b.name AS b_name FROM a, b ORDER BY b.name LIMIT 10 OFFSET 0) AS tbl_row_count, a LEFT OUTER JOIN b AS b_1b29 ON b_1b29.id = a.b_id WHERE a.id = tbl_row_count.a_id ORDER BY b_1b29.name 2006-11-15 17:20:26,452 INFO sqlalchemy.engine.base.Engine.0x..d4 [B1 2 B2 3 B3 4 B4 5 B5 6 B6 7 B7 8 B8 9 B9 2006-11-15 17:20:26,512 INFO sqlalchemy.engine.base.Engine.0x..d4 SELECT b_1b29.id AS b_1b29_id, b_1b29.name AS b_1b29_name, a.id AS a_id, a.b_id AS a_b_id FROM (SELECT a.id AS a_id, b.name AS b_name FROM a, b ORDER BY b.name ASC LIMIT 10 OFFSET 0) AS tbl_row_count, a LEFT OUTER JOIN b AS b_1b29 ON b_1b29.id = a.b_id WHERE a.id = tbl_row_count.a_id ORDER BY tbl_row_count.b_name ASC 2006-11-15 17:20:26,514 INFO sqlalchemy.engine.base.Engine.0x..d4 [](] 1) 3 B3 6 B6 9 B9 2 B2 5 B5 8 B8 1 B1 4 B4 7 B7"><pre class="notranslate"><code class="notranslate">2006-11-15 17:20:26,450 INFO sqlalchemy.engine.base.Engine.0x..d4 SELECT b_1b29.id AS b_1b29_id, b_1b29.name AS b_1b29_name, a.id AS a_id, a.b_id AS a_b_id FROM (SELECT a.id AS a_id, b.name AS b_name FROM a, b ORDER BY b.name LIMIT 10 OFFSET 0) AS tbl_row_count, a LEFT OUTER JOIN b AS b_1b29 ON b_1b29.id = a.b_id WHERE a.id = tbl_row_count.a_id ORDER BY b_1b29.name 2006-11-15 17:20:26,452 INFO sqlalchemy.engine.base.Engine.0x..d4 [B1 2 B2 3 B3 4 B4 5 B5 6 B6 7 B7 8 B8 9 B9 2006-11-15 17:20:26,512 INFO sqlalchemy.engine.base.Engine.0x..d4 SELECT b_1b29.id AS b_1b29_id, b_1b29.name AS b_1b29_name, a.id AS a_id, a.b_id AS a_b_id FROM (SELECT a.id AS a_id, b.name AS b_name FROM a, b ORDER BY b.name ASC LIMIT 10 OFFSET 0) AS tbl_row_count, a LEFT OUTER JOIN b AS b_1b29 ON b_1b29.id = a.b_id WHERE a.id = tbl_row_count.a_id ORDER BY tbl_row_count.b_name ASC 2006-11-15 17:20:26,514 INFO sqlalchemy.engine.base.Engine.0x..d4 [](] 1) 3 B3 6 B6 9 B9 2 B2 5 B5 8 B8 1 B1 4 B4 7 B7 </code></pre></div> <p dir="auto">I have expected to see same results in the both cases.</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/369/test_error_asc.py">test_error_asc.py</a></p>
<p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong><br> While trying to switch from dropbox/sqlalchemy mypy plugin to the official sqlalchemy plugin, I found that in these stubs <code class="notranslate">nullable</code> and <code class="notranslate">primary_key</code> have no effect on the Colum types.</p> <p dir="auto"><strong>Describe the solution you'd like</strong><br> Currently the inferred type is always a <code class="notranslate">Union[..., None]</code>, however based on <code class="notranslate">nullable</code> and <code class="notranslate">primary_key</code> properties of the <code class="notranslate">Column</code> we could infer that columns should never contain <code class="notranslate">None</code>.</p> <p dir="auto"><strong>Describe alternatives you've considered</strong><br> N/A</p> <p dir="auto"><strong>Additional context</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy.schema import Column from sqlalchemy.types import Integer from sqlalchemy.orm.decl_api import declarative_base Base = declarative_base() class A(Base): __tablename__ = &quot;a&quot; id = Column(Integer, primary_key=True, nullable=False) a = Column(Integer, nullable=True) a = A() reveal_type(a.id) reveal_type(a.a)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">schema</span> <span class="pl-k">import</span> <span class="pl-v">Column</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">types</span> <span class="pl-k">import</span> <span class="pl-v">Integer</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span>.<span class="pl-s1">decl_api</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span> <span class="pl-v">Base</span> <span class="pl-c1">=</span> <span class="pl-en">declarative_base</span>() <span class="pl-k">class</span> <span class="pl-v">A</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"a"</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-v">A</span>() <span class="pl-en">reveal_type</span>(<span class="pl-s1">a</span>.<span class="pl-s1">id</span>) <span class="pl-en">reveal_type</span>(<span class="pl-s1">a</span>.<span class="pl-s1">a</span>)</pre></div> <p dir="auto">Results from <code class="notranslate">plugins = sqlalchemy.ext.mypy.plugin</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test3.py:14: note: Revealed type is 'Union[builtins.int, None]' test3.py:15: note: Revealed type is 'Union[builtins.int, None]' test3.py:16: note: Revealed type is 'Union[builtins.int, None]' "><pre class="notranslate"><code class="notranslate">test3.py:14: note: Revealed type is 'Union[builtins.int, None]' test3.py:15: note: Revealed type is 'Union[builtins.int, None]' test3.py:16: note: Revealed type is 'Union[builtins.int, None]' </code></pre></div> <p dir="auto">Results from <code class="notranslate">plugins = sqlmypy</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test3.py:14: note: Revealed type is 'builtins.int*' test3.py:15: note: Revealed type is 'Union[builtins.int*, None]' test3.py:16: note: Revealed type is 'builtins.int*'"><pre class="notranslate"><code class="notranslate">test3.py:14: note: Revealed type is 'builtins.int*' test3.py:15: note: Revealed type is 'Union[builtins.int*, None]' test3.py:16: note: Revealed type is 'builtins.int*' </code></pre></div> <p dir="auto"><strong>Have a nice day!</strong></p>
0
<p dir="auto">I'm not sure if this issue belongs in this repository since it spans across a few different tools, but I'm grateful for any insights I can get here.</p> <p dir="auto">I have a project set up to use Typescript 1.5.3 transpiling to AMD modules which are loaded via RequireJS. I'd like use SystemJS instead, but there's one small issue I can't seem to get around. When using the es6 import syntax:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as $ from 'jquery';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">$</span> <span class="pl-k">from</span> <span class="pl-s">'jquery'</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I get the behavior I expect; that is, the global jQuery function is assigned to the variable <code class="notranslate">$</code>. However, using this same syntax with a SystemJS setup, I get a plain object with the static jQuery functions and properties, not a callable funciton. If I use the default import syntax:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import $ from jquery;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">$</span> <span class="pl-k">from</span> <span class="pl-s1">jquery</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I then see the expected behavior with SystemJS. I'm not actually sure which behavior is technically correct, but I'm fine with this change. However, the problem that I'm left with (and why I'm asking here) is that the definition file for jQuery does not provide the <code class="notranslate">export default</code> declaration. If I add the following to the definition:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare module 'jquery' { export = JQueryStatic; export default JQueryStatic; }"><pre class="notranslate"><span class="pl-k">declare</span> module <span class="pl-s">'jquery'</span> <span class="pl-kos">{</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-smi">JQueryStatic</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-smi">JQueryStatic</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I get the error: <code class="notranslate">error TS2309: An export assignment cannot be used in a module with other exported elements.</code> This error is choking my build system when processing typescript files independently, so I'm thinking if I can resolve this error, I can move forward with SystemJS as the module loader.</p> <p dir="auto">So my question is, what is the best way to fix this problem? I'd also appreciate an explanation of why that declaration is invalid and which module loader is behaving correctly and why.</p>
<p dir="auto">I am using @types/sinon-chai 2.7.27.</p> <p dir="auto">When i do the npm start i am getting following errors,</p> <p dir="auto">[default] D:\node_modules@types\sinon\index.d.ts:19:19<br> Duplicate identifier 'Sinon'.<br> [default] D:\node_modules@types\sinon\index.d.ts<g-emoji class="g-emoji" alias="100" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4af.png">💯</g-emoji>21<br> A parameter initializer is only allowed in a function or constructor<br> entation.<br> [default] D:\node_modules@types\sinon\index.d.ts<g-emoji class="g-emoji" alias="100" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4af.png">💯</g-emoji>29<br> Cannot find name 'keyof'.<br> [default] D:\node_modules@types\sinon\index.d.ts<g-emoji class="g-emoji" alias="100" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4af.png">💯</g-emoji>35<br> '=' expected.<br> [default] D:\node_modules@types\sinon\index.d.ts:156:21<br> A parameter initializer is only allowed in a function or constructor<br> entation.<br> [default] D:\WBM_repo\wbm\node_modules@types\sinon\index.d.ts:156:29<br> Cannot find name 'keyof'.<br> [default] D:\node_modules@types\sinon\index.d.ts:156:35<br> '=' expected.<br> [default] D:\node_modules@types\sinon\index.d.ts:157:21<br> A parameter initializer is only allowed in a function or constructor<br> entation.<br> [default] D:\node_modules@types\sinon\index.d.ts:157:29<br> Cannot find name 'keyof'.<br> [default] D:\node_modules@types\sinon\index.d.ts:157:35<br> '=' expected.<br> [default] D:\node_modules@types\sinon\index.d.ts:548:9<br> A computed property name must be of type 'string', 'number', 'symbol'<br> any'.<br> [default] D:\node_modules@types\sinon\index.d.ts:548:10<br> Cannot find name 'P'.<br> [default] D:\node_modules@types\sinon\index.d.ts:548:15<br> Cannot find name 'keyof'.<br> [default] D:\node_modules@types\sinon\index.d.ts:548:21<br> ']' expected.<br> [default] D:\node_modules@types\sinon\index.d.ts:548:21<br> Cannot find name 'TType'.<br> [default] D:\node_modules@types\sinon\index.d.ts:548:26<br> ';' expected.<br> [default] D:\node_modules@types\sinon\index.d.ts:548:27<br> Declaration or statement expected.<br> [default] D:\node_modules@types\sinon\index.d.ts:548:29<br> Cannot find name 'SinonStub'.<br> [default] D:\node_modules@types\sinon\index.d.ts:550:1<br> Declaration or statement expected.<br> [default] D:\node_modules@types\sinon\index.d.ts:552:15<br> Duplicate identifier 'Sinon'.<br> [default] Checking finished with 20 errors</p> <p dir="auto">Any help on how can i resolve above issues?</p>
0
<p dir="auto">Hi,<br> I am trying build the ios app detailed in <a href="https://petewarden.com/2016/09/27/tensorflow-for-mobile-poets/" rel="nofollow">https://petewarden.com/2016/09/27/tensorflow-for-mobile-poets/</a></p> <p dir="auto">but it fails with:</p> <p dir="auto"><strong>checking whether we are cross compiling... configure: error: in <code class="notranslate">/projects/tensorflow/tensorflow/tensorflow/contrib/makefile/downloads/protobuf': configure: error: cannot run C compiled programs. If you meant to cross compile, use</code>--host'.<br> See `config.log' for more details</strong></p> <p dir="auto">system details;<br> macos sierra, 10.12</p> <p dir="auto">brew config output: Any pointers will be appreciated.</p> <p dir="auto">MacBook-Pro:tensorflow $ brew config<br> HOMEBREW_VERSION: 1.0.6<br> ORIGIN: https:/<br> HEAD: 35ee2831086e923e7fcaf75fb440b01312e3f9c5<br> Last commit: 7 days ago<br> Core tap ORIGIN: https:/<br> Core tap HEAD: 80f18defefc814d60d3799e58835cbeffc8e93c8<br> Core tap last commit: 2 hours ago<br> HOMEBREW_PREFIX: /usr/local<br> HOMEBREW_REPOSITORY: /usr/local/Homebrew<br> HOMEBREW_CELLAR: /usr/local/Cellar<br> HOMEBREW_BOTTLE_DOMAIN: https:/<br> CPU: quad-core 64-bit broadwell<br> Homebrew Ruby: 2.0.0-p648<br> Clang: 8.0 build 800<br> Git: 2.8.4 =&gt; /Applications/Xcode.app/Contents/Developer/usr/bin/git<br> Perl: /usr/bin/perl<br> Python: /usr/bin/python<br> Ruby: /usr/bin/ruby =&gt; /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby<br> Java: 1.8.0_60<br> macOS: 10.12-x86_64<br> Xcode: 8.0<br> CLT: 8.0.0.0.1.1472435881<br> X11: N/A</p>
<p dir="auto">When running <code class="notranslate">compile_ios_protobuf.sh</code>, it says:<br> checking whether we are cross compiling... configure: error: in '.../tensorflow/tensorflow/contrib/makefile/downloads/protobuf':<br> configure: error: cannot run C compiled programs.<br> If you meant to cross compile, use <code class="notranslate">--host'. See</code>config.log' for more details</p>
1
<p dir="auto">[c:/Program Files/Microsoft VS Code/resources/app/extensions/csharp-o]: Cannot read file c:/Program Files/Microsoft VS Code/resources/app/extensions/csharp-o/package.json: ENOENT: no such file or directory, open 'c:\Program Files\Microsoft VS Code\resources\app\extensions\csharp-o\package.json'</p>
<p dir="auto">Looking into <a href="https://github.com/Microsoft/vscode/tree/master/extensions">repository</a>, there is no longer folder named <strong>csharp-o</strong>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1594619/11973026/891bfd78-a97c-11e5-9335-8dcc84373dfa.png"><img src="https://cloud.githubusercontent.com/assets/1594619/11973026/891bfd78-a97c-11e5-9335-8dcc84373dfa.png" alt="csharp-o" style="max-width: 100%;"></a></p> <p dir="auto">I manually deleted the folder and restarted vscode and issue is gone. So, problem looks like installer not removing that file.</p>
1
<p dir="auto">There are several knobs in the plugins used by the fluentd setups, but none of them are exposed to users of the images. It would be great to have that, without requiring custom images: they're more work, tend to rot, etc.</p> <p dir="auto">I noticed that td-agent.conf supports an <code class="notranslate">@ include</code> directive. Would that work, along with drop-in files in e.g. /etc/td-agent/conf.d/? Is there a way perhaps to inject environment variables into configurations? I can help with PRs once there's agreement on which approach to choose.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/a-robinson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/a-robinson">@a-robinson</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jimmidyson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jimmidyson">@jimmidyson</a></p>
<p dir="auto"><strong>Kubernetes version</strong>: GitVersion:"v1.3.4+coreos.0", GitCommit:"be9bf3e842a90537e48361aded2872e389e902e7",</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: AWS</li> <li><strong>OS</strong> (e.g. from /etc/os-release): CoreOS</li> <li><strong>Kernel</strong>: Linux ip-10-16-11-222.ec2.internal 4.6.3-coreos <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192602" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/2" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/2/hovercard" href="https://github.com/kubernetes/kubernetes/issues/2">#2</a> SMP Fri Aug 5 04:51:16 UTC 2016 x86_64 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz GenuineIntel GNU/Linux</li> <li><strong>Install tools</strong>: kube-aws</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> I updated a deployment of a pod (a web server) to a version that crashes at runtime. The process still works, but any request will return 500. There is a readiness probe that checks if the server is up. The deployment has one replica, and <code class="notranslate">maxUnavailable: 0, maxSurge: 1</code> rollingUpdate strategy. If I inspect the pods, I see two pods, the old one from the previous deployment, and the new one, both in Running status. After a while, the new one goes in <code class="notranslate">CrashLoopBackOff</code> Even though the new pod never gets healthy the <code class="notranslate">rollout status</code> says "deployment X successfully rolled out". This problem makes it very hard to identify bad deployments. It could be that this is the correct behavior for rollout status, but if it is, I don't know what's a good way to identify that a deployment is gone bad.</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> I would expect rollout status to reflect the fact that the deployment didn't succeed. if I <code class="notranslate">describe deployment X</code> I get <code class="notranslate">Replicas: 1 updated | 1 total | 1 available | 1 unavailable</code>, I would also expect <code class="notranslate">updated</code> to be 0, unless I am not understanding correctly what that mean. The rollout status and the updated count are <a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/rollout_status.go#L51">probably related</a>.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br> Updating a deployment to a new image that fails to pass the readiness probe</p>
0
<p dir="auto">Here's the warning message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sklearn/externals/joblib/hashing.py:197: DeprecationWarning: Changing the shape of non-C contiguous array by descriptor assignment is deprecated. To maintain the Fortran contiguity of a multidimensional Fortran array, use 'a.T.view(...).T' instead obj_bytes_view = obj.view(self.np.uint8)"><pre class="notranslate"><code class="notranslate">sklearn/externals/joblib/hashing.py:197: DeprecationWarning: Changing the shape of non-C contiguous array by descriptor assignment is deprecated. To maintain the Fortran contiguity of a multidimensional Fortran array, use 'a.T.view(...).T' instead obj_bytes_view = obj.view(self.np.uint8) </code></pre></div> <p dir="auto">The fix is already commited to the <a href="https://github.com/joblib/joblib">joblib</a> repo, but it's not released yet.</p> <p dir="auto">I wasn't sure how you guys handle joblib updates, so I didn't create the pull request.</p>
<p dir="auto">I juste met a strange Deprecation warning on scikit-learn master:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sklearn/externals/joblib/hashing.py:197: DeprecationWarning: Changing the shape of non-C contiguous array by descriptor assignment is deprecated. To maintain the Fortran contiguity of a multidimensional Fortran array, use 'a.T.view(...).T' instead obj_bytes_view = obj.view(self.np.uint8)"><pre class="notranslate"><code class="notranslate">sklearn/externals/joblib/hashing.py:197: DeprecationWarning: Changing the shape of non-C contiguous array by descriptor assignment is deprecated. To maintain the Fortran contiguity of a multidimensional Fortran array, use 'a.T.view(...).T' instead obj_bytes_view = obj.view(self.np.uint8) </code></pre></div>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" { &quot;startingDirectory&quot;: &quot;%USERPROFILE%&quot;, &quot;guid&quot;: &quot;{cda12610-a377-4bf2-ab27-d25594581ae4}&quot;, &quot;name&quot;: &quot;VS2019_X64&quot;, &quot;colorScheme&quot;: &quot;One Half Dark&quot;, &quot;historySize&quot;: 9001, &quot;snapOnInput&quot;: true, &quot;cursorColor&quot;: &quot;#FFFFFF&quot;, &quot;cursorShape&quot;: &quot;bar&quot;, &quot;commandline&quot;: &quot;%comspec% /k \&quot;D:\\Software\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat\&quot; x64&quot;, &quot;fontFace&quot;: &quot;YaHei Consolas Hybrid&quot;, &quot;fontSize&quot;: 10, &quot;acrylicOpacity&quot;: 0.75, &quot;useAcrylic&quot;: true, &quot;closeOnExit&quot;: true, &quot;padding&quot;: &quot;0, 0, 0, 0&quot;, &quot;icon&quot;: &quot;ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png&quot; }"><pre class="notranslate"><code class="notranslate"> { "startingDirectory": "%USERPROFILE%", "guid": "{cda12610-a377-4bf2-ab27-d25594581ae4}", "name": "VS2019_X64", "colorScheme": "One Half Dark", "historySize": 9001, "snapOnInput": true, "cursorColor": "#FFFFFF", "cursorShape": "bar", "commandline": "%comspec% /k \"D:\\Software\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat\" x64", "fontFace": "YaHei Consolas Hybrid", "fontSize": 10, "acrylicOpacity": 0.75, "useAcrylic": true, "closeOnExit": true, "padding": "0, 0, 0, 0", "icon": "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png" } </code></pre></div>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run &quot;ver&quot; at a command prompt] Windows Terminal version (if applicable): Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt] Windows Terminal version (if applicable): Any other software? </code></pre></div> <p dir="auto">Today I modified the Windows Terminal configuration file and wanted to create a Pwsh with the emoji title. However, I encountered some confusion in this process. I checked the task manager and found that conhost did not escape when the process was started, causing the command line to parse the exception.</p> <h1 dir="auto">Steps to reproduce</h1> <h1 dir="auto">Expected behavior</h1> <p dir="auto">I need to start pwsh by the following command line (note that the following command line is in cmd, or you can start pwsh normally using CreateProcessW.)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;C:\Program Files\PowerShell\7-preview\pwsh.exe&quot; -NoExit -Command &quot;$Host.UI.RawUI.WindowTitle=\&quot;Windows Pwsh 💙 (7 Preview)\&quot;&quot;"><pre class="notranslate"><code class="notranslate">"C:\Program Files\PowerShell\7-preview\pwsh.exe" -NoExit -Command "$Host.UI.RawUI.WindowTitle=\"Windows Pwsh 💙 (7 Preview)\"" </code></pre></div> <p dir="auto">Here is the Windows Terminal configuration file (the command line has been properly escaped):</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" { &quot;startingDirectory&quot;: &quot;C:\\Users\\CharlieInc&quot;, &quot;guid&quot;: &quot;{08a0be98-ff68-4e3a-a054-0fbd3969d3bb}&quot;, &quot;name&quot;: &quot;Windows Pwsh 💙 (7 Preview)&quot;, &quot;colorscheme&quot;: &quot;Campbell&quot;, &quot;historySize&quot;: 9001, &quot;snapOnInput&quot;: true, &quot;cursorColor&quot;: &quot;#FFFFFF&quot;, &quot;cursorShape&quot;: &quot;bar&quot;, &quot;commandline&quot;: &quot;\&quot;C:\\Program Files\\PowerShell\\7-preview\\pwsh.exe\&quot; -NoExit -Command \&quot;$Host.UI.RawUI.WindowTitle=\\\&quot;Windows Pwsh 💙 (7 Preview)\\\&quot;\&quot;&quot;, &quot;fontFace&quot;: &quot;Consolas&quot;, &quot;fontSize&quot;: 12, &quot;acrylicOpacity&quot;: 0.75, &quot;useAcrylic&quot;: true, &quot;closeOnExit&quot;: false, &quot;padding&quot;: &quot;0, 0, 0, 0&quot;, &quot;icon&quot;: &quot;ms-appdata:///roaming/pwsh-32.png&quot; }"><pre class="notranslate"> { <span class="pl-ent">"startingDirectory"</span>: <span class="pl-s"><span class="pl-pds">"</span>C:<span class="pl-cce">\\</span>Users<span class="pl-cce">\\</span>CharlieInc<span class="pl-pds">"</span></span>, <span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{08a0be98-ff68-4e3a-a054-0fbd3969d3bb}<span class="pl-pds">"</span></span>, <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Windows Pwsh 💙 (7 Preview)<span class="pl-pds">"</span></span>, <span class="pl-ent">"colorscheme"</span>: <span class="pl-s"><span class="pl-pds">"</span>Campbell<span class="pl-pds">"</span></span>, <span class="pl-ent">"historySize"</span>: <span class="pl-c1">9001</span>, <span class="pl-ent">"snapOnInput"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"cursorColor"</span>: <span class="pl-s"><span class="pl-pds">"</span>#FFFFFF<span class="pl-pds">"</span></span>, <span class="pl-ent">"cursorShape"</span>: <span class="pl-s"><span class="pl-pds">"</span>bar<span class="pl-pds">"</span></span>, <span class="pl-ent">"commandline"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\"</span>C:<span class="pl-cce">\\</span>Program Files<span class="pl-cce">\\</span>PowerShell<span class="pl-cce">\\</span>7-preview<span class="pl-cce">\\</span>pwsh.exe<span class="pl-cce">\"</span> -NoExit -Command <span class="pl-cce">\"</span>$Host.UI.RawUI.WindowTitle=<span class="pl-cce">\\\"</span>Windows Pwsh 💙 (7 Preview)<span class="pl-cce">\\\"\"</span><span class="pl-pds">"</span></span>, <span class="pl-ent">"fontFace"</span>: <span class="pl-s"><span class="pl-pds">"</span>Consolas<span class="pl-pds">"</span></span>, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">12</span>, <span class="pl-ent">"acrylicOpacity"</span>: <span class="pl-c1">0.75</span>, <span class="pl-ent">"useAcrylic"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"closeOnExit"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"padding"</span>: <span class="pl-s"><span class="pl-pds">"</span>0, 0, 0, 0<span class="pl-pds">"</span></span>, <span class="pl-ent">"icon"</span>: <span class="pl-s"><span class="pl-pds">"</span>ms-appdata:///roaming/pwsh-32.png<span class="pl-pds">"</span></span> }</pre></div> <h1 dir="auto">Actual behavior</h1> <p dir="auto">As expected, Pwsh should set the title correctly, but pwsh reported the error:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6904176/58741634-e7558300-844d-11e9-9b7e-dcdff905ffa3.png"><img src="https://user-images.githubusercontent.com/6904176/58741634-e7558300-844d-11e9-9b7e-dcdff905ffa3.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Let's take a look at the command line:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6904176/58741674-49ae8380-844e-11e9-9ca4-43ce9bf4b1ab.png"><img src="https://user-images.githubusercontent.com/6904176/58741674-49ae8380-844e-11e9-9ca4-43ce9bf4b1ab.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6904176/58741666-38657700-844e-11e9-8711-e813c22bc137.png"><img src="https://user-images.githubusercontent.com/6904176/58741666-38657700-844e-11e9-8711-e813c22bc137.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">When you see the red line, the command line that pwsh starts is incorrect, and when you start conhost, the command line is still correct!</p> <p dir="auto">Currently I have found a suspicious code, most likely this code caused an error:</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/microsoft/terminal/blob/71e19cd82528d66a0a7867cbed85990cfc1685f1/src/host/ConsoleArguments.cpp#L263-L288">terminal/src/host/ConsoleArguments.cpp</a> </p> <p class="mb-0 color-fg-muted"> Lines 263 to 288 in <a data-pjax="true" class="commit-tease-sha" href="/microsoft/terminal/commit/71e19cd82528d66a0a7867cbed85990cfc1685f1">71e19cd</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="L263" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="263"></td> <td id="LC263" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> HRESULT <span class="pl-en">ConsoleArguments::_GetClientCommandline</span>(_Inout_ std::vector&lt;std::wstring&gt;&amp; args, <span class="pl-k">const</span> <span class="pl-c1">size_t</span> index, <span class="pl-k">const</span> <span class="pl-k">bool</span> skipFirst) </td> </tr> <tr class="border-0"> <td id="L264" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="264"></td> <td id="LC264" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td> </tr> <tr class="border-0"> <td id="L265" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="265"></td> <td id="LC265" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">auto</span> start = args.<span class="pl-c1">begin</span>()+<span class="pl-c1">index</span>; </td> </tr> <tr class="border-0"> <td id="L266" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="266"></td> <td id="LC266" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L267" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="267"></td> <td id="LC267" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> Erase the first token.</span> </td> </tr> <tr class="border-0"> <td id="L268" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="268"></td> <td id="LC268" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> Used to get rid of the explicit commandline token "--"</span> </td> </tr> <tr class="border-0"> <td id="L269" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="269"></td> <td id="LC269" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (skipFirst) </td> </tr> <tr class="border-0"> <td id="L270" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="270"></td> <td id="LC270" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td> </tr> <tr class="border-0"> <td id="L271" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="271"></td> <td id="LC271" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> Make sure that the arg we're deleting is "--"</span> </td> </tr> <tr class="border-0"> <td id="L272" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="272"></td> <td id="LC272" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">FAIL_FAST_IF</span>(!(CLIENT_COMMANDLINE_ARG == start-&gt;<span class="pl-c1">c_str</span>())); </td> </tr> <tr class="border-0"> <td id="L273" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="273"></td> <td id="LC273" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> args.<span class="pl-c1">erase</span>(start); </td> </tr> <tr class="border-0"> <td id="L274" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="274"></td> <td id="LC274" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td> </tr> <tr class="border-0"> <td id="L275" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="275"></td> <td id="LC275" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L276" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="276"></td> <td id="LC276" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> _clientCommandline = <span class="pl-s"><span class="pl-pds">L"</span><span class="pl-pds">"</span></span>; </td> </tr> <tr class="border-0"> <td id="L277" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="277"></td> <td id="LC277" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">size_t</span> j = <span class="pl-c1">0</span>; </td> </tr> <tr class="border-0"> <td id="L278" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="278"></td> <td id="LC278" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> (j = <span class="pl-c1">index</span>; j &lt; args.<span class="pl-c1">size</span>(); j++) </td> </tr> <tr class="border-0"> <td id="L279" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="279"></td> <td id="LC279" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td> </tr> <tr class="border-0"> <td id="L280" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="280"></td> <td id="LC280" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> _clientCommandline += args[j]; </td> </tr> <tr class="border-0"> <td id="L281" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="281"></td> <td id="LC281" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (j+<span class="pl-c1">1</span> &lt; args.<span class="pl-c1">size</span>()) </td> </tr> <tr class="border-0"> <td id="L282" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="282"></td> <td id="LC282" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td> </tr> <tr class="border-0"> <td id="L283" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="283"></td> <td id="LC283" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> _clientCommandline += <span class="pl-s"><span class="pl-pds">L"</span> <span class="pl-pds">"</span></span>; </td> </tr> <tr class="border-0"> <td id="L284" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="284"></td> <td id="LC284" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td> </tr> <tr class="border-0"> <td id="L285" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="285"></td> <td id="LC285" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td> </tr> <tr class="border-0"> <td id="L286" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="286"></td> <td id="LC286" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> args.<span class="pl-c1">erase</span>(args.<span class="pl-c1">begin</span>()+<span class="pl-c1">index</span>, args.<span class="pl-c1">begin</span>()+j); </td> </tr> <tr class="border-0"> <td id="L287" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="287"></td> <td id="LC287" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L288" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="288"></td> <td id="LC288" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> S_OK; </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">In this code, command line composition is simply a simple connection rather than a concatenated string. If the string contains spaces, this will result in an incorrect command line.</p> <p dir="auto">Below is a code for the command line escaping, which may be useful:</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="inline std::wstring escape_argument(std::wstring_view ac) { if (ac.empty()) { return L&quot;\&quot;\&quot;&quot;; } bool hasspace = false; auto n = ac.size(); for (auto c : ac) { switch (c) { case L'&quot;': case L'\\': n++; break; case ' ': case '\t': hasspace = true; break; default: break; } } if (hasspace) { n += 2; } if (n == ac.size()) { return std::wstring(ac.data(), ac.size()); } std::wstring buf; if (hasspace) { buf.push_back(L'&quot;'); } size_t slashes = 0; for (auto c : ac) { switch (c) { case L'\\': slashes++; buf.push_back(L'\\'); break; case L'&quot;': { for (; slashes &gt; 0; slashes--) { buf.push_back(L'\\'); } buf.push_back(L'\\'); buf.push_back(c); } break; default: slashes = 0; buf.push_back(c); break; } } if (hasspace) { for (; slashes &gt; 0; slashes--) { buf.push_back(L'\\'); } buf.push_back(L'&quot;'); } return buf; }"><pre class="notranslate"><span class="pl-k">inline</span> std::wstring <span class="pl-en">escape_argument</span>(std::wstring_view ac) { <span class="pl-k">if</span> (ac.<span class="pl-c1">empty</span>()) { <span class="pl-k">return</span> <span class="pl-s"><span class="pl-pds">L"</span><span class="pl-cce">\"\"</span><span class="pl-pds">"</span></span>; } <span class="pl-k">bool</span> hasspace = <span class="pl-c1">false</span>; <span class="pl-k">auto</span> n = ac.<span class="pl-c1">size</span>(); <span class="pl-k">for</span> (<span class="pl-k">auto</span> c : ac) { <span class="pl-k">switch</span> (c) { <span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>: <span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>: n++; <span class="pl-k">break</span>; <span class="pl-k">case</span> <span class="pl-s"><span class="pl-pds">'</span> <span class="pl-pds">'</span></span>: <span class="pl-k">case</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\t</span><span class="pl-pds">'</span></span>: hasspace = <span class="pl-c1">true</span>; <span class="pl-k">break</span>; <span class="pl-k">default</span>: <span class="pl-k">break</span>; } } <span class="pl-k">if</span> (hasspace) { n += <span class="pl-c1">2</span>; } <span class="pl-k">if</span> (n == ac.<span class="pl-c1">size</span>()) { <span class="pl-k">return</span> <span class="pl-c1">std::wstring</span>(ac.<span class="pl-c1">data</span>(), ac.<span class="pl-c1">size</span>()); } std::wstring buf; <span class="pl-k">if</span> (hasspace) { buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>); } <span class="pl-c1">size_t</span> slashes = <span class="pl-c1">0</span>; <span class="pl-k">for</span> (<span class="pl-k">auto</span> c : ac) { <span class="pl-k">switch</span> (c) { <span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>: slashes++; buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>); <span class="pl-k">break</span>; <span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>: { <span class="pl-k">for</span> (; slashes &gt; <span class="pl-c1">0</span>; slashes--) { buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>); } buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>); buf.<span class="pl-c1">push_back</span>(c); } <span class="pl-k">break</span>; <span class="pl-k">default</span>: slashes = <span class="pl-c1">0</span>; buf.<span class="pl-c1">push_back</span>(c); <span class="pl-k">break</span>; } } <span class="pl-k">if</span> (hasspace) { <span class="pl-k">for</span> (; slashes &gt; <span class="pl-c1">0</span>; slashes--) { buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>); } buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>); } <span class="pl-k">return</span> buf; }</pre></div>
1
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Hack: std::ops::Add&lt;Self, Output = Self&gt; + Copy {} fn takes_hack(x: &amp;Hack&lt;Output=i32&gt;) {}``` (which can't work of course) Gives: thread 'rustc' panicked at 'assertion failed: !ty.needs_infer()', ../src/librustc_typeck/lib.rs:152 on playpen's nightly and on an older nightly: 1: 0x7f2a73cac30e - sys::backtrace::write::h1e294cdf8b83f011srs 2: 0x7f2a73cb44d4 - panicking::on_panic::h759b2622c5bddde1mdx 3: 0x7f2a73c76ade - rt::unwind::begin_unwind_inner::hdb2ee52cd09f11c10Sw 4: 0x7f2a73415651 - rt::unwind::begin_unwind::h16407102452406535252 5: 0x7f2a73519747 - collect::convert_item::hee80771e2831a06bVHx 6: 0x7f2a735164c7 - collect::collect_item_types::hb25670e75e1ace20iPw 7: 0x7f2a735636c9 - check_crate::h699f9ca48d981e0dRWC 8: 0x7f2a74211cc9 - driver::phase_3_run_analysis_passes::closure.15891 9: 0x7f2a7421060b - middle::ty::ctxt&lt;'tcx&gt;::create_and_enter::h14877326799551551326 10: 0x7f2a7420b5b1 - driver::phase_3_run_analysis_passes::h13027946853248993312 11: 0x7f2a741ea80c - driver::compile_input::h1bb41626855952a5Tba 12: 0x7f2a742d0e83 - run_compiler::hed8febc643a5bd02A7b 13: 0x7f2a742ce85e - boxed::F.FnBox&lt;A&gt;::call_box::h3262743521461286850 14: 0x7f2a742ce0a9 - rt::unwind::try::try_fn::h13012207966773460524 15: 0x7f2a73d2f9d8 - rust_try_inner 16: 0x7f2a73d2f9c5 - rust_try 17: 0x7f2a73c9f647 - rt::unwind::try::inner_try::hcf9d4b2ce436da47TOw 18: 0x7f2a742ce2bb - boxed::F.FnBox&lt;A&gt;::call_box::h5485760352730305604 19: 0x7f2a73cb3131 - sys::thread::Thread::new::thread_start::h6bca3390d26c61e4GYv"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Hack</span><span class="pl-kos">:</span> std<span class="pl-kos">::</span>ops<span class="pl-kos">::</span><span class="pl-smi">Add</span><span class="pl-kos">&lt;</span><span class="pl-smi">Self</span><span class="pl-kos">,</span> <span class="pl-smi">Output</span> = <span class="pl-smi">Self</span><span class="pl-kos">&gt;</span> + <span class="pl-smi">Copy</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">takes_hack</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">Hack</span><span class="pl-kos">&lt;</span><span class="pl-smi">Output</span>=<span class="pl-smi">i32</span><span class="pl-kos">&gt;</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>``` <span class="pl-kos">(</span>which can<span class="pl-c1">'</span>t work of course<span class="pl-kos">)</span> <span class="pl-v">Gives</span><span class="pl-kos">:</span> thread <span class="pl-c1">'</span>rustc<span class="pl-c1">'</span> panicked at <span class="pl-c1">'</span>assertion failed<span class="pl-kos">:</span> !ty<span class="pl-kos">.</span><span class="pl-en">needs_infer</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-c1">'</span><span class="pl-kos">,</span> ../src/librustc_typeck/lib<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">152</span> on playpen<span class="pl-c1">'</span>s nightly and on an older nightly<span class="pl-kos">:</span> <span class="pl-c1">1</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a73cac30e</span> - sys<span class="pl-kos">::</span>backtrace<span class="pl-kos">::</span>write<span class="pl-kos">::</span>h1e294cdf8b83f011srs <span class="pl-c1">2</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a73cb44d4</span> - panicking<span class="pl-kos">::</span>on_panic<span class="pl-kos">::</span>h759b2622c5bddde1mdx <span class="pl-c1">3</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a73c76ade</span> - rt<span class="pl-kos">::</span>unwind<span class="pl-kos">::</span>begin_unwind_inner<span class="pl-kos">::</span>hdb2ee52cd09f11c10Sw <span class="pl-c1">4</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a73415651</span> - rt<span class="pl-kos">::</span>unwind<span class="pl-kos">::</span>begin_unwind<span class="pl-kos">::</span>h16407102452406535252 <span class="pl-c1">5</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a73519747</span> - collect<span class="pl-kos">::</span>convert_item<span class="pl-kos">::</span>hee80771e2831a06bVHx <span class="pl-c1">6</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a735164c7</span> - collect<span class="pl-kos">::</span>collect_item_types<span class="pl-kos">::</span>hb25670e75e1ace20iPw <span class="pl-c1">7</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a735636c9</span> - check_crate<span class="pl-kos">::</span>h699f9ca48d981e0dRWC <span class="pl-c1">8</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a74211cc9</span> - driver<span class="pl-kos">::</span>phase_3_run_analysis_passes<span class="pl-kos">::</span>closure<span class="pl-kos">.</span><span class="pl-c1">15891</span> <span class="pl-c1">9</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a7421060b</span> - middle<span class="pl-kos">::</span>ty<span class="pl-kos">::</span>ctxt&lt;<span class="pl-c1">'</span>tcx&gt;<span class="pl-kos">::</span>create_and_enter<span class="pl-kos">::</span><span class="pl-smi">h14877326799551551326</span> <span class="pl-c1">10</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a7420b5b1</span> - driver<span class="pl-kos">::</span>phase_3_run_analysis_passes<span class="pl-kos">::</span>h13027946853248993312 <span class="pl-c1">11</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a741ea80c</span> - driver<span class="pl-kos">::</span>compile_input<span class="pl-kos">::</span>h1bb41626855952a5Tba <span class="pl-c1">12</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a742d0e83</span> - run_compiler<span class="pl-kos">::</span>hed8febc643a5bd02A7b <span class="pl-c1">13</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a742ce85e</span> - boxed<span class="pl-kos">::</span><span class="pl-v">F</span><span class="pl-kos">.</span><span class="pl-c1">FnBox</span>&lt;<span class="pl-v">A</span>&gt;<span class="pl-kos">::</span>call_box<span class="pl-kos">::</span>h3262743521461286850 <span class="pl-c1">14</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a742ce0a9</span> - rt<span class="pl-kos">::</span>unwind<span class="pl-kos">::</span>try<span class="pl-kos">::</span>try_fn<span class="pl-kos">::</span>h13012207966773460524 <span class="pl-c1">15</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a73d2f9d8</span> - rust_try_inner <span class="pl-c1">16</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a73d2f9c5</span> - rust_try <span class="pl-c1">17</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a73c9f647</span> - rt<span class="pl-kos">::</span>unwind<span class="pl-kos">::</span>try<span class="pl-kos">::</span>inner_try<span class="pl-kos">::</span>hcf9d4b2ce436da47TOw <span class="pl-c1">18</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a742ce2bb</span> - boxed<span class="pl-kos">::</span><span class="pl-v">F</span><span class="pl-kos">.</span><span class="pl-c1">FnBox</span>&lt;<span class="pl-v">A</span>&gt;<span class="pl-kos">::</span>call_box<span class="pl-kos">::</span>h5485760352730305604 <span class="pl-c1">19</span><span class="pl-kos">:</span> <span class="pl-c1">0x7f2a73cb3131</span> - sys<span class="pl-kos">::</span>thread<span class="pl-kos">::</span><span class="pl-smi">Thread</span><span class="pl-kos">::</span>new<span class="pl-kos">::</span>thread_start<span class="pl-kos">::</span><span class="pl-smi">h6bca3390d26c61e4GYv</span></pre></div>
<p dir="auto">Code:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::ops::Add; pub trait State: Add&lt;Output=Self&gt; { fn new() -&gt; State&lt;Output=Self&gt;; }"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>ops<span class="pl-kos">::</span><span class="pl-v">Add</span><span class="pl-kos">;</span> <span class="pl-k">pub</span> <span class="pl-k">trait</span> <span class="pl-smi">State</span><span class="pl-kos">:</span> <span class="pl-smi">Add</span><span class="pl-kos">&lt;</span><span class="pl-smi">Output</span>=<span class="pl-smi">Self</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">State</span><span class="pl-kos">&lt;</span><span class="pl-smi">Output</span>=<span class="pl-smi">Self</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' panicked at 'assertion failed: !ty.needs_infer()', src/librustc_typeck/lib.rs:152"><pre class="notranslate"><code class="notranslate">thread 'rustc' panicked at 'assertion failed: !ty.needs_infer()', src/librustc_typeck/lib.rs:152 </code></pre></div> <p dir="auto">Backtrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stack backtrace: 1: 0x7f363e5e966e - sys::backtrace::write::ha67a6a2049d22fadIvs 2: 0x7f363e5f1d55 - panicking::on_panic::hfa4bf0215983f759lzx 3: 0x7f363e5b294e - rt::unwind::begin_unwind_inner::ha1b5da93bdf7e8ffC0w 4: 0x7f363dd48d91 - rt::unwind::begin_unwind::h12043835423437895913 5: 0x7f363de580e5 - collect::convert_method::h4805f8e025461365dEx 6: 0x7f363de466dd - collect::convert_item::h6b6cad92074d9a24CSx 7: 0x7f363de41407 - collect::collect_item_types::hd02205bf6b76e82bS0w 8: 0x7f363de8df39 - check_crate::h341139d405597625laD 9: 0x7f363eb4e199 - driver::phase_3_run_analysis_passes::closure.16542 10: 0x7f363eb4cab1 - middle::ty::ctxt&lt;'tcx&gt;::create_and_enter::h9578579149294230291 11: 0x7f363eb47991 - driver::phase_3_run_analysis_passes::h8415522514568150077 12: 0x7f363eb2ba90 - driver::compile_input::h52c7dafd49963360Tba 13: 0x7f363ec11a63 - run_compiler::h473c62e00f865fa9A7b 14: 0x7f363ec0f4de - boxed::F.FnBox&lt;A&gt;::call_box::h10713159552398332324 15: 0x7f363ec0ee09 - rt::unwind::try::try_fn::h16887904248528792425 16: 0x7f363e5f184d - __rust_try 17: 0x7f363e5dc8f7 - rt::unwind::try::inner_try::hafffff77ddacfa5fvWw 18: 0x7f363ec0f028 - boxed::F.FnBox&lt;A&gt;::call_box::h5417278073590676257 19: 0x7f363e5f0991 - sys::thread::Thread::new::thread_start::h29dca2a2cf2294b535v 20: 0x7f3638e904a3 - start_thread 21: 0x7f363e24e13c - clone 22: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">stack backtrace: 1: 0x7f363e5e966e - sys::backtrace::write::ha67a6a2049d22fadIvs 2: 0x7f363e5f1d55 - panicking::on_panic::hfa4bf0215983f759lzx 3: 0x7f363e5b294e - rt::unwind::begin_unwind_inner::ha1b5da93bdf7e8ffC0w 4: 0x7f363dd48d91 - rt::unwind::begin_unwind::h12043835423437895913 5: 0x7f363de580e5 - collect::convert_method::h4805f8e025461365dEx 6: 0x7f363de466dd - collect::convert_item::h6b6cad92074d9a24CSx 7: 0x7f363de41407 - collect::collect_item_types::hd02205bf6b76e82bS0w 8: 0x7f363de8df39 - check_crate::h341139d405597625laD 9: 0x7f363eb4e199 - driver::phase_3_run_analysis_passes::closure.16542 10: 0x7f363eb4cab1 - middle::ty::ctxt&lt;'tcx&gt;::create_and_enter::h9578579149294230291 11: 0x7f363eb47991 - driver::phase_3_run_analysis_passes::h8415522514568150077 12: 0x7f363eb2ba90 - driver::compile_input::h52c7dafd49963360Tba 13: 0x7f363ec11a63 - run_compiler::h473c62e00f865fa9A7b 14: 0x7f363ec0f4de - boxed::F.FnBox&lt;A&gt;::call_box::h10713159552398332324 15: 0x7f363ec0ee09 - rt::unwind::try::try_fn::h16887904248528792425 16: 0x7f363e5f184d - __rust_try 17: 0x7f363e5dc8f7 - rt::unwind::try::inner_try::hafffff77ddacfa5fvWw 18: 0x7f363ec0f028 - boxed::F.FnBox&lt;A&gt;::call_box::h5417278073590676257 19: 0x7f363e5f0991 - sys::thread::Thread::new::thread_start::h29dca2a2cf2294b535v 20: 0x7f3638e904a3 - start_thread 21: 0x7f363e24e13c - clone 22: 0x0 - &lt;unknown&gt; </code></pre></div> <p dir="auto">Version: 1.3.0</p>
1
<p dir="auto">Right-clicking on a line in search results will show a context menu, but it also navigates to the search result. I wasn't trying to leave the results, I was trying to figure out how to collapse some of them.</p> <p dir="auto">Atom Version: 0.48.0<br> User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.48.0 Atom-Shell/0.8.5 Safari/537.36</p>
<p dir="auto">When I right-click (or ctrl-click) on a file in the project search results, the contextual menu appears, but the interface also switches to a tab with that file buffer. This is frustrating when all I wanted to do was right-click to reveal in the file tree or some other contextual operation. Primary click should take me to the tab with that file buffer, not secondary click.</p>
1
<p dir="auto">Problem: the following codes just hang and never returns</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" clientset, err := kubernetes.NewForConfig(config) pods, err := clientset.Core().Pods(&quot;&quot;).List(api.ListOptions{Watch:true})"><pre class="notranslate"><code class="notranslate"> clientset, err := kubernetes.NewForConfig(config) pods, err := clientset.Core().Pods("").List(api.ListOptions{Watch:true}) </code></pre></div> <p dir="auto">while codes like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="watch, err := clientset.Core().Pods(&quot;&quot;).Watch(api.ListOptions{})"><pre class="notranslate"><code class="notranslate">watch, err := clientset.Core().Pods("").Watch(api.ListOptions{}) </code></pre></div> <p dir="auto">work as expected.<br> IMHO, the first use is kind of misleading.</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> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>:</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">Talking 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> a bit, my understanding of the RBAC PolicyRule's <code class="notranslate">apiGroups</code> field is that it determines which API groups the authorizer looks for resources in. For example, if you want to authorize the resource "deployments," you need to explicitly include the "extensions" API group:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="kind: &quot;Role&quot; apiVersion: &quot;rbac.authorization.k8s.io/v1alpha1&quot; metadata: name: &quot;deployer&quot; rules: - apiGroups: [&quot;extensions&quot;] resources: [&quot;deployments&quot;] verbs: [&quot;*&quot;]"><pre class="notranslate"><span class="pl-ent">kind</span>: <span class="pl-s"><span class="pl-pds">"</span>Role<span class="pl-pds">"</span></span> <span class="pl-ent">apiVersion</span>: <span class="pl-s"><span class="pl-pds">"</span>rbac.authorization.k8s.io/v1alpha1<span class="pl-pds">"</span></span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>deployer<span class="pl-pds">"</span></span> <span class="pl-ent">rules</span>: - <span class="pl-ent">apiGroups</span>: <span class="pl-s">["extensions"]</span> <span class="pl-ent">resources</span>: <span class="pl-s">["deployments"]</span> <span class="pl-ent">verbs</span>: <span class="pl-s">["*"]</span></pre></div> <p dir="auto">The reason for this is to help disambiguate resources if resources of the same name exist in more than one API group. However, because both the <code class="notranslate">apiGroups</code> and <code class="notranslate">resources</code> fields are arrays, it actually creates a matrix of request allowances which is likely not what the user intended. For example, say I want to authorize requests for "resource1" in the API group "group1" and "resource2" in the API group "group2." I'd write this:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="kind: &quot;Role&quot; apiVersion: &quot;rbac.authorization.k8s.io/v1alpha1&quot; metadata: name: &quot;problem&quot; rules: - apiGroups: [&quot;group1&quot;, &quot;group2&quot;] resources: [&quot;resource1&quot;, &quot;resource2&quot;] verbs: [&quot;*&quot;]"><pre class="notranslate"><span class="pl-ent">kind</span>: <span class="pl-s"><span class="pl-pds">"</span>Role<span class="pl-pds">"</span></span> <span class="pl-ent">apiVersion</span>: <span class="pl-s"><span class="pl-pds">"</span>rbac.authorization.k8s.io/v1alpha1<span class="pl-pds">"</span></span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>problem<span class="pl-pds">"</span></span> <span class="pl-ent">rules</span>: - <span class="pl-ent">apiGroups</span>: <span class="pl-s">["group1", "group2"]</span> <span class="pl-ent">resources</span>: <span class="pl-s">["resource1", "resource2"]</span> <span class="pl-ent">verbs</span>: <span class="pl-s">["*"]</span></pre></div> <p dir="auto">If it turns out that resources with those two names both happen to exist in both API groups, then I've actually authorized four different resources instead of the intended two. In order to properly express what I want, I'd have to create two rules, each with one group and one resource.</p> <p dir="auto">Because of this behavior, it doesn't make sense to me that the <code class="notranslate">apiGroups</code> field should allow more than one value. Either it should be limited to a single API group name, to prevent any accidental overlap of resource names between API groups, or it should be removed entirely, and resources should be qualified with their API group as a prefix. Below are examples of them written in those two different ways:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="kind: &quot;Role&quot; apiVersion: &quot;rbac.authorization.k8s.io/v1alpha1&quot; metadata: name: &quot;problem&quot; rules: - apiGroups: &quot;group1&quot; resources: [&quot;resource1&quot;] verbs: [&quot;*&quot;] - apiGroups: &quot;group2&quot; resources: [&quot;resource2&quot;] verbs: [&quot;*&quot;]"><pre class="notranslate"><span class="pl-ent">kind</span>: <span class="pl-s"><span class="pl-pds">"</span>Role<span class="pl-pds">"</span></span> <span class="pl-ent">apiVersion</span>: <span class="pl-s"><span class="pl-pds">"</span>rbac.authorization.k8s.io/v1alpha1<span class="pl-pds">"</span></span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>problem<span class="pl-pds">"</span></span> <span class="pl-ent">rules</span>: - <span class="pl-ent">apiGroups</span>: <span class="pl-s"><span class="pl-pds">"</span>group1<span class="pl-pds">"</span></span> <span class="pl-ent">resources</span>: <span class="pl-s">["resource1"]</span> <span class="pl-ent">verbs</span>: <span class="pl-s">["*"]</span> - <span class="pl-ent">apiGroups</span>: <span class="pl-s"><span class="pl-pds">"</span>group2<span class="pl-pds">"</span></span> <span class="pl-ent">resources</span>: <span class="pl-s">["resource2"]</span> <span class="pl-ent">verbs</span>: <span class="pl-s">["*"]</span></pre></div> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="kind: &quot;Role&quot; apiVersion: &quot;rbac.authorization.k8s.io/v1alpha1&quot; metadata: name: &quot;problem&quot; rules: - resources: [&quot;group1/resource1&quot;, &quot;group2/resource2&quot;] verbs: [&quot;*&quot;]"><pre class="notranslate"><span class="pl-ent">kind</span>: <span class="pl-s"><span class="pl-pds">"</span>Role<span class="pl-pds">"</span></span> <span class="pl-ent">apiVersion</span>: <span class="pl-s"><span class="pl-pds">"</span>rbac.authorization.k8s.io/v1alpha1<span class="pl-pds">"</span></span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>problem<span class="pl-pds">"</span></span> <span class="pl-ent">rules</span>: - <span class="pl-ent">resources</span>: <span class="pl-s">["group1/resource1", "group2/resource2"]</span> <span class="pl-ent">verbs</span>: <span class="pl-s">["*"]</span></pre></div> <p dir="auto">The first example is basically what you have to do today to get exactly the desired semantics, with the added benefit of <code class="notranslate">apiGroups</code>'s type enforcing that you do it this way. The second example is less verbose because you can do what you want in a single rule. The downside to the second example is that lists of resources become more verbose in general.</p> <p dir="auto">Refs <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="152862480" data-permission-text="Title is private" data-url="https://github.com/kubernetes/enhancements/issues/2" data-hovercard-type="issue" data-hovercard-url="/kubernetes/enhancements/issues/2/hovercard" href="https://github.com/kubernetes/enhancements/issues/2">kubernetes/enhancements#2</a>.</p>
0
<p dir="auto">The generated docs of typescript files don't show the type of class and interface members.</p>
<p dir="auto">Currently having an <code class="notranslate">@Input</code> on a directive / component with the same as a native property name will shadow input binding (that it, a directive will get the bound value, not the native element). Apparently different rules apply to <code class="notranslate">@Output</code>s.</p> <p dir="auto">In this plunker <a href="https://plnkr.co/edit/TDCsPTWeRvgALildXmkt?p=preview" rel="nofollow">https://plnkr.co/edit/TDCsPTWeRvgALildXmkt?p=preview</a> there is a component with the <code class="notranslate">change</code> output. It turns out that adding <code class="notranslate">(change)</code> event handler to this component will pick up bubbling <code class="notranslate">chnage</code> events which I find surprising / inconsistent with rules in place for <code class="notranslate">@Input</code>s.</p> <p dir="auto">I wonder if the the current behavior is correct and steams from the conscious design decision? Or rather a side effect of the existing implementation?</p>
0
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong></p> <p dir="auto">ERROR in ./js/index.js<br> Module build failed (from ./node_modules/babel-loader/lib/index.js):<br> Error: Duplicate plugin/preset detected.<br> If you'd like to use two separate instances of a plugin,<br> they need separate names, e.g.</p> <p dir="auto">plugins: [<br> ['some-plugin', {}],<br> ['some-plugin', {}, 'some unique name'],<br> ]</p> <p dir="auto"><strong>My webpack.prod.js</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var HtmlWebpackPlugin = require('html-webpack-plugin'); var config = { mode: 'production', target: 'electron-main', entry: './js/index.js', output: { path: __dirname + '/interface_build/prod', publicPath: './', filename: 'app.js' }, module: { rules: [ { test: /\.js$/, loader: 'babel-loader', options: { babelrc: true, presets: ['@babel/preset-env', '@babel/preset-react'], }, exclude: /node_modules/, include: __dirname }, { test: /\.scss$/, use: [ 'style-loader', 'css-loader', 'sass-loader' ], include: __dirname }, { test: /\.css$/, use: [ 'style-loader', 'css-loader' ], include: __dirname }, { test: /\.(jpe?g|png|gif|svg)$/i, use: [ { loader: 'url-loader', options: { limit: 10000 } }, { loader: 'img-loader', options: { progressive: true } } ], // loader: 'url-loader?limit=10000!img?progressive=true', include: __dirname }, { test: /\.(woff|woff2|eot|ttf|otf)$/i, loader: 'file-loader', include: __dirname } ] }, plugins: [ new HtmlWebpackPlugin({ template: 'index.template.ejs', filename: 'index.html', }), new HtmlWebpackPlugin({ template: 'splash.template.ejs', filename: 'splash.html', inject: false }), new HtmlWebpackPlugin({ template: 'cpu.template.ejs', filename: 'cpu.html', inject: false })] }; module.exports = config;"><pre class="notranslate"><code class="notranslate">var HtmlWebpackPlugin = require('html-webpack-plugin'); var config = { mode: 'production', target: 'electron-main', entry: './js/index.js', output: { path: __dirname + '/interface_build/prod', publicPath: './', filename: 'app.js' }, module: { rules: [ { test: /\.js$/, loader: 'babel-loader', options: { babelrc: true, presets: ['@babel/preset-env', '@babel/preset-react'], }, exclude: /node_modules/, include: __dirname }, { test: /\.scss$/, use: [ 'style-loader', 'css-loader', 'sass-loader' ], include: __dirname }, { test: /\.css$/, use: [ 'style-loader', 'css-loader' ], include: __dirname }, { test: /\.(jpe?g|png|gif|svg)$/i, use: [ { loader: 'url-loader', options: { limit: 10000 } }, { loader: 'img-loader', options: { progressive: true } } ], // loader: 'url-loader?limit=10000!img?progressive=true', include: __dirname }, { test: /\.(woff|woff2|eot|ttf|otf)$/i, loader: 'file-loader', include: __dirname } ] }, plugins: [ new HtmlWebpackPlugin({ template: 'index.template.ejs', filename: 'index.html', }), new HtmlWebpackPlugin({ template: 'splash.template.ejs', filename: 'splash.html', inject: false }), new HtmlWebpackPlugin({ template: 'cpu.template.ejs', filename: 'cpu.html', inject: false })] }; module.exports = config; </code></pre></div> <p dir="auto"><strong>My My webpack.dev.js</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var HtmlWebpackPlugin = require('html-webpack-plugin'); var config = { watch: true, mode: 'development', target: 'electron-main', entry: './js/index.js', devServer: { historyApiFallback: true, compress: true, hot: true }, output: { path: __dirname + '/interface_build/dev', publicPath: './', filename: 'app.js' }, module: { rules: [ { test: /\.js$/, loader: 'babel-loader', options: { babelrc: false, presets: ['@babel/preset-env', '@babel/preset-react'], }, exclude: /node_modules/, include: __dirname }, { test: /\.scss$/, use: [ 'style-loader', 'css-loader', 'sass-loader' ], include: __dirname }, { test: /\.css$/, use: [ 'style-loader', 'css-loader' ], include: __dirname }, { test: /\.(jpe?g|png|gif|svg)$/i, use: [ { loader: 'url-loader', options: { limit: 10000 } }, { loader: 'img-loader', options: { progressive: true } } ], // loader: 'url-loader?limit=10000!img?progressive=true', include: __dirname }, { test: /\.(woff|woff2|eot|ttf|otf)$/i, loader: 'file-loader', include: __dirname } ] }, plugins: [ new HtmlWebpackPlugin({ template: 'index.template.ejs', filename: 'index.html', }), new HtmlWebpackPlugin({ template: 'splash.template.ejs', filename: 'splash.html', inject: false }), new HtmlWebpackPlugin({ template: 'cpu.template.ejs', filename: 'cpu.html', inject: false }) ] }; module.exports = config; "><pre class="notranslate"><code class="notranslate">var HtmlWebpackPlugin = require('html-webpack-plugin'); var config = { watch: true, mode: 'development', target: 'electron-main', entry: './js/index.js', devServer: { historyApiFallback: true, compress: true, hot: true }, output: { path: __dirname + '/interface_build/dev', publicPath: './', filename: 'app.js' }, module: { rules: [ { test: /\.js$/, loader: 'babel-loader', options: { babelrc: false, presets: ['@babel/preset-env', '@babel/preset-react'], }, exclude: /node_modules/, include: __dirname }, { test: /\.scss$/, use: [ 'style-loader', 'css-loader', 'sass-loader' ], include: __dirname }, { test: /\.css$/, use: [ 'style-loader', 'css-loader' ], include: __dirname }, { test: /\.(jpe?g|png|gif|svg)$/i, use: [ { loader: 'url-loader', options: { limit: 10000 } }, { loader: 'img-loader', options: { progressive: true } } ], // loader: 'url-loader?limit=10000!img?progressive=true', include: __dirname }, { test: /\.(woff|woff2|eot|ttf|otf)$/i, loader: 'file-loader', include: __dirname } ] }, plugins: [ new HtmlWebpackPlugin({ template: 'index.template.ejs', filename: 'index.html', }), new HtmlWebpackPlugin({ template: 'splash.template.ejs', filename: 'splash.html', inject: false }), new HtmlWebpackPlugin({ template: 'cpu.template.ejs', filename: 'cpu.html', inject: false }) ] }; module.exports = config; </code></pre></div> <p dir="auto"><strong>Expected behavior/code</strong><br> A clear and concise description of what you expected to happen (or code).</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;passPerPreset&quot;: true, &quot;presets&quot;: [ &quot;@babel/preset-env&quot;, &quot;@babel/preset-react&quot; ], &quot;env&quot;: { &quot;development&quot;: { &quot;presets&quot;: [ &quot;react-optimize&quot; ], }, &quot;production&quot;: { &quot;plugins&quot;: [ &quot;transform-react-constant-elements&quot;, &quot;transform-react-inline-elements&quot;, &quot;transform-react-remove-prop-types&quot;, &quot;transform-react-pure-class-to-function&quot; ] }, &quot;test&quot;: { &quot;plugins&quot;: [ &quot;istanbul&quot; ] } }, &quot;plugins&quot;: [ &quot;transform-class-properties&quot;, &quot;transform-object-rest-spread&quot; ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"passPerPreset"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span> <span class="pl-s">"@babel/preset-env"</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">"env"</span>: <span class="pl-kos">{</span> <span class="pl-s">"development"</span>: <span class="pl-kos">{</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span> <span class="pl-s">"react-optimize"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"production"</span>: <span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-s">"transform-react-constant-elements"</span><span class="pl-kos">,</span> <span class="pl-s">"transform-react-inline-elements"</span><span class="pl-kos">,</span> <span class="pl-s">"transform-react-remove-prop-types"</span><span class="pl-kos">,</span> <span class="pl-s">"transform-react-pure-class-to-function"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"test"</span>: <span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-s">"istanbul"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-s">"transform-class-properties"</span><span class="pl-kos">,</span> <span class="pl-s">"transform-object-rest-spread"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): v6.23.0</li> <li>Node/npm version: Node v11.13.0 / npm v6.9.0</li> <li>OS: Windows 10</li> <li>Monorepo: no</li> <li>How you are using Babel: loader</li> </ul> <p dir="auto"><strong>Possible Solution</strong></p> <p dir="auto"><strong>Additional context/Screenshots</strong><br> Add any other context about the problem here. If applicable, add screenshots to help explain.</p>
<p dir="auto">Recently, <a href="https://github.com/lerna/lerna/pull/1616" data-hovercard-type="pull_request" data-hovercard-url="/lerna/lerna/pull/1616/hovercard">lerna</a> decided to make itself illegal for anyone dealing with the American immigration agency <code class="notranslate">ICE</code>. This means that basically every hosting provider (including AWS) is now <code class="notranslate">lerna</code>-intolerant.</p> <p dir="auto">Problematically, I use <code class="notranslate">babel 6</code> and <code class="notranslate">babylon</code> to parse a custom programming language. These are, unsurprisingly, very heavily tested. I can't find a continuous integration provider that is not blocked by the new <code class="notranslate">lerna</code> license.</p> <p dir="auto">Notably, this also means that <code class="notranslate">github</code> is now <code class="notranslate">lerna</code> intolerant.</p> <p dir="auto">Ripping out <code class="notranslate">babel</code> would be catastrophic. Ripping out continuous integration would be very bad as well.</p> <p dir="auto">How do I know whether <code class="notranslate">lerna</code> has changed the legal situation around using your tools?</p>
0
<p dir="auto">The example codepen does not work. Looks like the openweathermap API needs a key to access.</p> <p dir="auto"><a href="http://www.openweathermap.org/api" rel="nofollow">http://www.openweathermap.org/api</a></p> <p dir="auto">The Javascript console says:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="http://api.openweathermap.org/data/2.5/weather?lat=48.1270&amp;lon=11.3665&amp;units=metric&amp;callback=jQuery2130876683295937255_1444809427340&amp;_=1444809427342 Failed to load resource: the server responded with a status of 401 (Unauthorized)"><pre class="notranslate"><code class="notranslate">http://api.openweathermap.org/data/2.5/weather?lat=48.1270&amp;lon=11.3665&amp;units=metric&amp;callback=jQuery2130876683295937255_1444809427340&amp;_=1444809427342 Failed to load resource: the server responded with a status of 401 (Unauthorized) </code></pre></div>
<p dir="auto">Our Weather Zipline example is now broken. Aparently the API <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AdventureBear/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AdventureBear">@AdventureBear</a> used on her Zipline no longer works. <a href="https://www.evernote.com/l/AlwSsfX2kblJYoOSp9uAq-BKFosOSCg8-aAB/image.png" rel="nofollow">https://www.evernote.com/l/AlwSsfX2kblJYoOSp9uAq-BKFosOSCg8-aAB/image.png</a></p> <p dir="auto">We need to find an API that works and doesn't require adding an API key, or we need to make an API endpoint on Free Code Camp that campers can use (we don't want people exposing API keys on CodePen).</p> <p dir="auto">Thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/martoncsikos/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/martoncsikos">@martoncsikos</a> for spotting this issue.</p>
1
<h2 dir="auto">Steps to reproduce</h2> <ol dir="auto"> <li>Create a local JavaScript module file named <code class="notranslate">/test-data.js</code>: <a href="https://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/init.sh" rel="nofollow">https://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/init.sh</a>.</li> <li>Execute <code class="notranslate">deno run <a href="https://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/deno.js" rel="nofollow"></a><a href="https://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/deno.js" rel="nofollow">https://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/deno.js</a></code>.</li> </ol> <p dir="auto">Resource: <a href="https://gist.github.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b">https://gist.github.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b</a></p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Error, just like in Chrome.</p> <h2 dir="auto">Actual behavior</h2> <p dir="auto">It read data from local file and printed it.</p>
1
<p dir="auto">Hi,</p> <p dir="auto">I was trying to use the LLVM C bindings from Rust, but I ran into a mysterious error when I tried to use <code class="notranslate">LLVMGetTypeKind</code>. The Rust program is like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#[allow(cstack)]; use std::libc::{c_uint}; pub enum Context_opaque {} pub type ContextPtr = *Context_opaque; pub enum Type_opaque {} pub type TypePtr = *Type_opaque; #[repr(C)] pub enum LLVMTypeKind { LLVMVoidTypeKind, LLVMHalfTypeKind, LLVMFloatTypeKind, LLVMDoubleTypeKind, LLVMX86_FP80TypeKind, LLVMFP128TypeKind, LLVMPPC_FP128TypeKind, LLVMLabelTypeKind, LLVMIntegerTypeKind, LLVMFunctionTypeKind, LLVMStructTypeKind, LLVMArrayTypeKind, LLVMPointerTypeKind, LLVMVectorTypeKind, LLVMMetadataTypeKind, LLVMX86_MMXTypeKind } #[link_args = &quot;-lLLVMCore -lLLVMSupport&quot;] extern { pub fn LLVMContextCreate() -&gt; ContextPtr; pub fn LLVMContextDispose(c: ContextPtr); pub fn LLVMGetTypeKind(t: TypePtr) -&gt; LLVMTypeKind; pub fn LLVMIntTypeInContext(c: ContextPtr, bits: c_uint) -&gt; TypePtr; } fn main() { unsafe { let ctx_ptr = LLVMContextCreate(); let int32_ptr = LLVMIntTypeInContext(ctx_ptr, 32); let kind = LLVMGetTypeKind(int32_ptr); // boom! println!(&quot;{}&quot;, kind as uint); LLVMContextDispose(ctx_ptr); } }"><pre class="notranslate"><code class="notranslate">#[allow(cstack)]; use std::libc::{c_uint}; pub enum Context_opaque {} pub type ContextPtr = *Context_opaque; pub enum Type_opaque {} pub type TypePtr = *Type_opaque; #[repr(C)] pub enum LLVMTypeKind { LLVMVoidTypeKind, LLVMHalfTypeKind, LLVMFloatTypeKind, LLVMDoubleTypeKind, LLVMX86_FP80TypeKind, LLVMFP128TypeKind, LLVMPPC_FP128TypeKind, LLVMLabelTypeKind, LLVMIntegerTypeKind, LLVMFunctionTypeKind, LLVMStructTypeKind, LLVMArrayTypeKind, LLVMPointerTypeKind, LLVMVectorTypeKind, LLVMMetadataTypeKind, LLVMX86_MMXTypeKind } #[link_args = "-lLLVMCore -lLLVMSupport"] extern { pub fn LLVMContextCreate() -&gt; ContextPtr; pub fn LLVMContextDispose(c: ContextPtr); pub fn LLVMGetTypeKind(t: TypePtr) -&gt; LLVMTypeKind; pub fn LLVMIntTypeInContext(c: ContextPtr, bits: c_uint) -&gt; TypePtr; } fn main() { unsafe { let ctx_ptr = LLVMContextCreate(); let int32_ptr = LLVMIntTypeInContext(ctx_ptr, 32); let kind = LLVMGetTypeKind(int32_ptr); // boom! println!("{}", kind as uint); LLVMContextDispose(ctx_ptr); } } </code></pre></div> <p dir="auto">When compiled and executed, LLVM crashes with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unhandled TypeID. UNREACHABLE executed at Core.cpp:164! Aborted (core dumped)"><pre class="notranslate"><code class="notranslate">Unhandled TypeID. UNREACHABLE executed at Core.cpp:164! Aborted (core dumped) </code></pre></div> <p dir="auto">After some investigation, I made <code class="notranslate">rustc</code> emit LLVM bitcode and found something strange:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="declare void @LLVMGetTypeKind(%enum.LLVMTypeKind* sret, %enum.Type_opaque*) unnamed_addr call void @LLVMGetTypeKind(%enum.LLVMTypeKind* sret %kind, %enum.Type_opaque* %11)"><pre class="notranslate"><code class="notranslate">declare void @LLVMGetTypeKind(%enum.LLVMTypeKind* sret, %enum.Type_opaque*) unnamed_addr call void @LLVMGetTypeKind(%enum.LLVMTypeKind* sret %kind, %enum.Type_opaque* %11) </code></pre></div> <p dir="auto"><code class="notranslate">rustc</code> declared the <code class="notranslate">LLVMGetTypeKind</code> function with wrong parameters, so the function, when called, got a pointer to unitialized value on stack instead of a <code class="notranslate">ContextRef</code>.</p> <p dir="auto">I tried to declare <code class="notranslate">LLVMGetTypeKind</code> as a function returning <code class="notranslate">c_uint</code> and everything worked well (it is probably the reason why <code class="notranslate">rustc</code>'s LLVM bindings declare <code class="notranslate">LLVMTypeKind</code> as a series of static variables).</p> <p dir="auto">Is this a bug or a feature? If it is a feature, it is worth documenting! :)</p>
<p dir="auto">First off, the operator precedence of <code class="notranslate">a..b</code> is extremely low.<br> <code class="notranslate">struct Range</code> recently got #[derive(Eq)], so people might want to compare a range to an expression in range notation.</p> <p dir="auto"><code class="notranslate">r == 1..10</code> parses as <code class="notranslate">(r == 1)..10</code>. Similarly, <code class="notranslate">1..10 == r</code> parses as <code class="notranslate">1..(10 == r)</code>. Both result in type errors.<br> I think there's no good reason for <code class="notranslate">..</code> to have a precedence lower than comparisons. I'd suggest to put it in-between the comparison operators and the bitwise operators.</p> <p dir="auto">But the current implementation gets weirder when we consider the other forms of range notation:<br> <code class="notranslate">r == 1..</code> parses as <code class="notranslate">(r == 1)..</code>, and is a type error (or maybe a <code class="notranslate">RangeFrom&lt;bool&gt;</code>).<br> But <code class="notranslate">r == ..1</code> parses as <code class="notranslate">r == (..1)</code>, and is a valid range comparison.</p> <p dir="auto">In the other direction, <code class="notranslate">..1 == r</code> parses as <code class="notranslate">..(1 == r)</code> and is potentially a <code class="notranslate">RangeTo&lt;bool&gt;</code>.<br> But <code class="notranslate">1.. == r</code> is a syntax error (expected one of <code class="notranslate">)</code> or <code class="notranslate">,</code>, found <code class="notranslate">==</code>).<br> This inconsistent with the prefix form.</p> <p dir="auto">If we keep the current precedence of <code class="notranslate">..</code> (lower than all binops), I think we should disallow <code class="notranslate">r == ..1</code>. I think this can be implemented easily by using RESTRICTION_NO_DOTS when parsing the RHS of any binop.</p> <p dir="auto">Also, we should use RESTRICTION_NO_DOTS when parsing the RHS of prefix-version <code class="notranslate">..expr</code> -- currently <code class="notranslate">..1..2</code> is a <code class="notranslate">RangeTo&lt;Range&lt;_&gt;&gt;</code>, while <code class="notranslate">1..2..3</code> and <code class="notranslate">1..2..</code> both are syntax errors.</p> <p dir="auto">If we increase the precedence, we will need to be careful not to allow code like <code class="notranslate">1 + ..2</code>. I think any binop with precedence smaller than that of <code class="notranslate">..</code> will have to use RESTRICTION_NO_DOTS on the RHS.</p> <p dir="auto">I also think the implementation can be simplified quite a bit if the prefix <code class="notranslate">..</code> wasn't handled in <code class="notranslate">parse_prefix_expr</code> (as that's only supposed to be used for operators with high precedence), but at the same level as the binary and postfix version (<code class="notranslate">parse_assign_expr</code>, or <code class="notranslate">parse_binops</code> if we change the precedence). This would allow us to get rid of RESTRICTION_NO_DOTS and use the normal operator precedence handling instead.</p>
0
<h4 dir="auto">Describe the bug</h4> <p dir="auto">In version 0.19.1 my API worked for DELETE's against my .NET Core 3.1 API, but after upgrading to 0.20.0 this broke.</p> <h4 dir="auto">To Reproduce</h4> <p dir="auto">My ts code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" public static async postDelete(payload: IAssetDeletionData): Promise&lt;IAssetDeletionResult&gt; { const response = await (await getApi(this.apiBase)).delete('', { data: payload }); return response.data as IAssetDeletionResult; } "><pre class="notranslate"><code class="notranslate"> public static async postDelete(payload: IAssetDeletionData): Promise&lt;IAssetDeletionResult&gt; { const response = await (await getApi(this.apiBase)).delete('', { data: payload }); return response.data as IAssetDeletionResult; } </code></pre></div> <p dir="auto">Works with Axios 0.19.1 but not in 0.20.0.<br> I get a<br> <em>{type: "<a href="https://tools.ietf.org/html/rfc7231#section-6.5.13" rel="nofollow">https://tools.ietf.org/html/rfc7231#section-6.5.13</a>", title: "Unsupported Media Type",…}<br> status: 415<br> title: "Unsupported Media Type"<br> traceId: "|3670a9cf-44c6c31efd70086d."<br> type: "<a href="https://tools.ietf.org/html/rfc7231#section-6.5.13" rel="nofollow">https://tools.ietf.org/html/rfc7231#section-6.5.13</a>"</em></p> <p dir="auto">Downgrading to 0.19.1...it works again.</p> <h4 dir="auto">Expected behavior</h4> <p dir="auto">Expect still to work in 0.20.0 and be backwards compatible (as version is non-breaking according to NPM semantic versioning)</p> <h4 dir="auto">Environment</h4> <ul dir="auto"> <li>Axios Version 0.20.0</li> <li>Browser Chrome</li> <li>Browser Version 84.0.4147.135</li> <li>Node.js Version 12.8.0</li> <li>OS: Windows 10 2004</li> <li>Additional Library Versions [e.g. VueJS 2.6.12, Vuetify 2.3.9, Firebase 7.19.0 etc.</li> </ul> <h4 dir="auto">Additional context/Screenshots</h4> <p dir="auto">N/A</p>
<h4 dir="auto">Describe the bug</h4> <p dir="auto">Axios last version (0.20.0) does not use data from config when making DELETE request. In 0.19.2 it's working fine</p> <h4 dir="auto">To Reproduce</h4> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="axios.delete(&quot;...&quot;, { data: { ids: [...] }, }).then(response =&gt; { ... }).catch(error =&gt; { ... });"><pre class="notranslate"><span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-s">"..."</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">data</span>: <span class="pl-kos">{</span> <span class="pl-c1">ids</span>: <span class="pl-kos">[</span>...<span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">response</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> ... <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span><span class="pl-s1">error</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> ... <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h4 dir="auto">Expected behavior</h4> <p dir="auto">Axios send request data from config when making DELETE request</p> <h4 dir="auto">Environment</h4> <ul dir="auto"> <li>Axios Version 0.20.0</li> <li>Browser Chrome</li> <li>Browser Version 84.0.4147.125</li> <li>Node.js Version 12.18.3</li> <li>OS: Linux Mint</li> <li>Additional Library Versions React 16.13.1</li> </ul> <h4 dir="auto">Additional context/Screenshots</h4> <p dir="auto">None</p>
1
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">Currently, you can set a <code class="notranslate">true</code> value on a prop by simply using the prop's name (i.e. <code class="notranslate">&lt;input readonly...&gt;</code>), but there is no equivalence for setting <code class="notranslate">false</code> values (i.e. <code class="notranslate">&lt;input :readonly="false"&gt;</code>).</p> <p dir="auto">In most cases (like above), <code class="notranslate">false</code> is already the default value, but there are still many instances where a prop's default is <code class="notranslate">true</code> and must be overridden. The API is cumbersome in those instances.</p> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto">I'm proposing a simple, in-template, "false-assertion" shorthand that could significantly improve the Vue developer experience. The "false-assertion" operator would explicitly set props to <code class="notranslate">false</code>.</p> <h3 dir="auto">Current API</h3> <p dir="auto"><code class="notranslate">&lt;input :readonly="false"/&gt;</code></p> <h3 dir="auto">Proposed API</h3> <p dir="auto"><code class="notranslate">&lt;input !readonly/&gt;</code></p>
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">There's already a nice shorthand for <code class="notranslate">true</code> props where you just add the prop name on its own, however there isn't an equivilent shorthand for <code class="notranslate">false</code> props. Below are a couple suggestions for that shorthand that would make writing/reading these props easier I think. It's a pretty minor feature request, but I think it would add to the already amazing developer experience of using Vue.</p> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto"><code class="notranslate">&lt;component !prevent /&gt;</code> translates to <code class="notranslate">&lt;component :prevent="false" /&gt;</code></p> <p dir="auto"><code class="notranslate">&lt;component :not-prevent /&gt;</code> translates to <code class="notranslate">&lt;component :prevent="false" /&gt;</code></p>
1
<p dir="auto">If you're coming from numpy you're used to be able to index and assign into arrays in the usual way.</p>
<p dir="auto">We should make our slicing and assignment ops more general to capture more of the functionality of numpy slicing, and add <code class="notranslate">__getitem__</code> sugar for all of it. Specifically,</p> <ol dir="auto"> <li>We should have a 2.5 dimensional set of ops, with dimensions (1) get vs. set, (2) slice type, and for the assignment ops (3) the update op. Currently we have <code class="notranslate">slice</code>, <code class="notranslate">assign_update</code>, <code class="notranslate">assign_add</code>, <code class="notranslate">assign_sub</code>, <code class="notranslate">gather</code>, <code class="notranslate">scatter_update</code>, <code class="notranslate">scatter_add</code>, <code class="notranslate">scatter_sub</code>. We should also have <code class="notranslate">assign_slice_update</code>, <code class="notranslate">assign_slice_add</code>, <code class="notranslate">assign_slice_sub</code>.</li> <li>Both slicing and slice assignment should support strides, with no performance cost if strides aren't used.</li> <li>Ideally, the slice ops should support negative indexing a la Python. Since the slice parameters are already CPU, this is implementable with near zero cost. The unfortunate bit is that since we picked the wrong format for specifying ranges (start + length instead of start : end), negative indexing might be awkward. Thus, it might be best left to a separate bug.</li> <li>Support numpy-like boolean indexing.</li> <li>Generalize <code class="notranslate">gather</code> and <code class="notranslate">scatter_*</code> to take an array of input index tensors, efficiently broadcast them, and do multidimensional indexing similar to numpy.</li> <li>Make <code class="notranslate">__getitem__</code> provide sugar for all of the above. Ideally we'd have something idiomatically similar at least to <code class="notranslate">__setitem__</code>, but this is problematic since the returned assignment op is important to have, <code class="notranslate">__setitem__</code> does not return a value, and the nice range sugar is available only inside indexing / assignment calls.</li> </ol> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ebrevdo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ebrevdo">@ebrevdo</a>: I'm assigning this to you for now since you might get to it first, but feel free to grab only the piece of it that you need for now.</p>
1
<p dir="auto">Fork of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20297343" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/3810" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/3810/hovercard" href="https://github.com/elastic/elasticsearch/issues/3810">#3810</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20215776" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/3799" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/3799/hovercard" href="https://github.com/elastic/elasticsearch/issues/3799">#3799</a>. Decimal intervals would be useful for certain data types such as currencies, temperatures, lengths ...</p>
<p dir="auto">It would be really useful to allow for a 'grace period' between when ES notices that a particular node has gone down, and shard-reallocation begins. There are times when we might want to do a quick restart of an ES node ... or take one down for a full reboot ... and we don't want to do a re-allocation of shards because thats a very IO-intensive operation. In our case, we also use the Zookeeper plugin, and a shard-reallocation is triggered by a short communication break between the ES nodes and Zookeeper.</p>
0
<p dir="auto">It was okay in previous Go versions.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main import &quot;fmt&quot; func main() { var c rune n, e := fmt.Sscanf(&quot;\n&quot;, &quot;%c&quot;, &amp;c) fmt.Println(n, e) // Go 1.5: 0 unexpected newline // Go 1.2, 1.3, 1.4: 1 &lt;nil&gt; }"><pre class="notranslate"><code class="notranslate">package main import "fmt" func main() { var c rune n, e := fmt.Sscanf("\n", "%c", &amp;c) fmt.Println(n, e) // Go 1.5: 0 unexpected newline // Go 1.2, 1.3, 1.4: 1 &lt;nil&gt; } </code></pre></div>
<h3 dir="auto">What version of Go are you using (go version)?</h3> <p dir="auto">I found this when upgrading from Go 1.3.3 to Go 1.5</p> <h3 dir="auto">What operating system and processor architecture are you using?</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GOARCH=&quot;amd64&quot; GOOS=&quot;linux&quot;"><pre class="notranslate"><code class="notranslate">GOARCH="amd64" GOOS="linux" </code></pre></div> <h3 dir="auto">What did you do?</h3> <p dir="auto">$ cat scango.go</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main import &quot;fmt&quot; func main() { var x int n, err := fmt.Sscanf(&quot;A&quot;, &quot;%c&quot;, &amp;x) println(&quot;n=&quot;, n, &quot;x=&quot;, x, &quot;err=&quot;, err) n, err = fmt.Sscanf(&quot; A&quot;, &quot;%c&quot;, &amp;x) println(&quot;n=&quot;, n, &quot;x=&quot;, x, &quot;err=&quot;, err) n, err = fmt.Sscanf(&quot; &quot;, &quot;%c&quot;, &amp;x) println(&quot;n=&quot;, n, &quot;x=&quot;, x, &quot;err=&quot;, err) }"><pre class="notranslate"><code class="notranslate">package main import "fmt" func main() { var x int n, err := fmt.Sscanf("A", "%c", &amp;x) println("n=", n, "x=", x, "err=", err) n, err = fmt.Sscanf(" A", "%c", &amp;x) println("n=", n, "x=", x, "err=", err) n, err = fmt.Sscanf(" ", "%c", &amp;x) println("n=", n, "x=", x, "err=", err) } </code></pre></div> <h3 dir="auto">What did you expect to see?</h3> <p dir="auto">I expected what Go 1.3.3 did: it always gets the first character in the scanned string, either "A" or " ":<br> $ go run scango.go<br> n= 1 x= 65 err= (0x0,0x0)<br> n= 1 x= 32 err= (0x0,0x0)<br> n= 1 x= 32 err= (0x0,0x0)</p> <p dir="auto">That's also what my C compiler does<br> /* gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) */<br> $ cat scanc.c</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include &lt;stdio.h&gt; main() { char x[33]; int n = sscanf(&quot;A&quot;, &quot;%c&quot;, x); printf(&quot;n=%d &lt;%d&gt;\n&quot;, n, *x); n = sscanf(&quot; A&quot;, &quot;%c&quot;, x); printf(&quot;n=%d &lt;%d&gt;\n&quot;, n, *x); n = sscanf(&quot; &quot;, &quot;%c&quot;, x); printf(&quot;n=%d &lt;%d&gt;\n&quot;, n, *x); }"><pre class="notranslate"><code class="notranslate">#include &lt;stdio.h&gt; main() { char x[33]; int n = sscanf("A", "%c", x); printf("n=%d &lt;%d&gt;\n", n, *x); n = sscanf(" A", "%c", x); printf("n=%d &lt;%d&gt;\n", n, *x); n = sscanf(" ", "%c", x); printf("n=%d &lt;%d&gt;\n", n, *x); } </code></pre></div> <p dir="auto">$ gcc scanc.c<br> $ ./a.out<br> n=1 &lt;65&gt;<br> n=1 &lt;32&gt;<br> n=1 &lt;32&gt;</p> <h3 dir="auto">What did you see instead?</h3> <p dir="auto">Under Go 1.5, it skips the blank, and advances to the "A" (in the second clause) or EOF (in the third clause):<br> $ go run scango.go<br> n= 1 x= 65 err= (0x0,0x0)<br> n= 1 x= 65 err= (0x0,0x0)<br> n= 0 x= 65 err= (0x7f555757b028,0xc82000a1d0)</p>
1
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">Other Airflow 2 version (please specify below)</p> <h3 dir="auto">What happened</h3> <p dir="auto">When introducing new DAGs to our Airflow 2.4.0 environment, the web server failed to update Flask permissions and the UI could not show the DAGs, although they were accessible through airflow CLI (<code class="notranslate">airflow dags list</code>, <code class="notranslate">airflow tasks list &lt;dag&gt;</code>, <code class="notranslate">airflow tasks render &lt;dag&gt; &lt;task&gt; &lt;date&gt;</code>).<br> I tried to fix the problem with several restarts and even an <code class="notranslate">airflow db upgrade</code>, but it did not work.<br> Interestingly, I did not encounter this problem in our staging environment (which is identical to our production).<br> I got these errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DETAIL: Failing row contains (null, DAG:glue_catalog_restore). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:glue_catalog_restore'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, 2, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 2, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, DAG:glue_catalog_restore). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:glue_catalog_restore'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, 3, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 3, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, DAG:glue_catalog_restore). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:glue_catalog_restore'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, 1, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 1, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, DAG:mariadb_dump_11). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:mariadb_dump_11'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, 2, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 2, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, DAG:mariadb_dump_11). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:mariadb_dump_11'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, 3, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 3, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, DAG:mariadb_dump_11). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:mariadb_dump_11'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, 1, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 1, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj)"><pre class="notranslate"><code class="notranslate">DETAIL: Failing row contains (null, DAG:glue_catalog_restore). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:glue_catalog_restore'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, 2, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 2, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, DAG:glue_catalog_restore). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:glue_catalog_restore'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, 3, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 3, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, DAG:glue_catalog_restore). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:glue_catalog_restore'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, 1, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 1, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, DAG:mariadb_dump_11). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:mariadb_dump_11'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, 2, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 2, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, DAG:mariadb_dump_11). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:mariadb_dump_11'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, 3, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 3, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, DAG:mariadb_dump_11). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG:mariadb_dump_11'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, 1, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 1, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) </code></pre></div> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">Airflow UI should have worked,</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">???</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Ubuntu 20.04.3 LTS</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apache-airflow @ file:///home/airflow/wheelfreeze/wheels/apache_airflow-2.4.0-py3-none-any.whl apache-airflow-providers-amazon @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_amazon-6.0.0-py3-none-any.whl apache-airflow-providers-common-sql @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_common_sql-1.2.0-py3-none-any.whl apache-airflow-providers-ftp @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_ftp-3.1.0-py3-none-any.whl apache-airflow-providers-http @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_http-4.0.0-py3-none-any.whl apache-airflow-providers-imap @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_imap-3.0.0-py3-none-any.whl apache-airflow-providers-mongo @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_mongo-3.0.0-py3-none-any.whl apache-airflow-providers-mysql @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_mysql-3.2.1-py3-none-any.whl apache-airflow-providers-pagerduty @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_pagerduty-3.0.0-py3-none-any.whl apache-airflow-providers-postgres @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_postgres-5.2.2-py3-none-any.whl apache-airflow-providers-redis @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_redis-3.0.0-py3-none-any.whl apache-airflow-providers-sendgrid @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_sendgrid-3.0.0-py3-none-any.whl apache-airflow-providers-slack @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_slack-6.0.0-py3-none-any.whl apache-airflow-providers-sqlite @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_sqlite-3.2.1-py3-none-any.whl apache-airflow-providers-ssh @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_ssh-3.2.0-py3-none-any.whl apache-airflow-providers-vertica @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_vertica-3.2.1-py3-none-any.whl ### Deployment Virtualenv installation ### Deployment details Python 3.8.10 pip 22.3 setuptools 65.5.0 ### Anything else _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)"><pre class="notranslate"><code class="notranslate">apache-airflow @ file:///home/airflow/wheelfreeze/wheels/apache_airflow-2.4.0-py3-none-any.whl apache-airflow-providers-amazon @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_amazon-6.0.0-py3-none-any.whl apache-airflow-providers-common-sql @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_common_sql-1.2.0-py3-none-any.whl apache-airflow-providers-ftp @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_ftp-3.1.0-py3-none-any.whl apache-airflow-providers-http @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_http-4.0.0-py3-none-any.whl apache-airflow-providers-imap @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_imap-3.0.0-py3-none-any.whl apache-airflow-providers-mongo @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_mongo-3.0.0-py3-none-any.whl apache-airflow-providers-mysql @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_mysql-3.2.1-py3-none-any.whl apache-airflow-providers-pagerduty @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_pagerduty-3.0.0-py3-none-any.whl apache-airflow-providers-postgres @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_postgres-5.2.2-py3-none-any.whl apache-airflow-providers-redis @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_redis-3.0.0-py3-none-any.whl apache-airflow-providers-sendgrid @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_sendgrid-3.0.0-py3-none-any.whl apache-airflow-providers-slack @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_slack-6.0.0-py3-none-any.whl apache-airflow-providers-sqlite @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_sqlite-3.2.1-py3-none-any.whl apache-airflow-providers-ssh @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_ssh-3.2.0-py3-none-any.whl apache-airflow-providers-vertica @ file:///home/airflow/wheelfreeze/wheels/apache_airflow_providers_vertica-3.2.1-py3-none-any.whl ### Deployment Virtualenv installation ### Deployment details Python 3.8.10 pip 22.3 setuptools 65.5.0 ### Anything else _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) </code></pre></div>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.4.0</p> <h3 dir="auto">What happened</h3> <p dir="auto">Stopped existing processes, upgraded from airflow 2.3.4 to 2.4.0, and ran airflow db upgrade successfully. Upon restarting the services, I'm not seeing any dag runs from the past 10 days. I kick off a new job, and I don't see it show up in the grid view. Upon checking the systemd logs, I see that there are a lot of postgress errors with webserver. Below is a sample of such errors.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'Datasets'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,183] {manager.py:511} ERROR - Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, 13, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 13, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,209] {manager.py:420} ERROR - Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, Datasets). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'Datasets'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,212] {manager.py:511} ERROR - Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, 17, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 17, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,229] {manager.py:420} ERROR - Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, DAG Warnings). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG Warnings'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,232] {manager.py:511} ERROR - Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, 17, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 17, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,250] {manager.py:511} ERROR - Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column &quot;id&quot; violates not-null constraint DETAIL: Failing row contains (null, 13, 23)."><pre class="notranslate"><code class="notranslate">[SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'Datasets'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,183] {manager.py:511} ERROR - Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, 13, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 13, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,209] {manager.py:420} ERROR - Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, Datasets). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'Datasets'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,212] {manager.py:511} ERROR - Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, 17, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 17, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,229] {manager.py:420} ERROR - Add View Menu Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, DAG Warnings). [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id] [parameters: {'name': 'DAG Warnings'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,232] {manager.py:511} ERROR - Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, 17, null). [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id] [parameters: {'permission_id': 17, 'view_menu_id': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2022-09-19 14:03:16,250] {manager.py:511} ERROR - Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, 13, 23). </code></pre></div> <p dir="auto">I tried running airflow db check, init, check-migration, upgrade without any errors, but the errors still remain.</p> <p dir="auto">Please let me know if I missed any steps during the upgrade, or if this is a known issue with a workaround.</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">All dag runs should be visible</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">upgrade airflow, upgrade db, restart the services</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Ubuntu 18.04.6 LTS</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">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
<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>.): kinda</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.): OutOfCPU</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3&quot;, GitVersion:&quot;v1.3.2&quot;, GitCommit:&quot;9bafa3400a77c14ee50782bb05f9efc5c91b3185&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-07-17T18:30:39Z&quot;, GoVersion:&quot;go1.6.2&quot;, Compiler:&quot;gc&quot;, Platform:&quot;darwin/amd64&quot;}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.2", GitCommit:"9bafa3400a77c14ee50782bb05f9efc5c91b3185", GitTreeState:"clean", BuildDate:"2016-07-17T18:30:39Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"darwin/amd64"} </code></pre></div> <p dir="auto">(cluster is now torn down, but is also 1.3.2 with the same commit)</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: AWS - 80 c4.4xlarge nodes</li> <li><strong>OS</strong> (e.g. from /etc/os-release): CoreOS 1068.8.0 (stable)</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">Scheduling roughly 10k Pods on 80 nodes with 16 cores each, lots of pods end up having issues with being scheduled and end up with an OutOfCPU error. In the case below, we were experimenting with increasing <code class="notranslate">limits</code> to beyond the node capacity, but we found the behaviour on the <code class="notranslate">Guaranteed</code> (limits and requests set to 14) and <code class="notranslate">Burstable</code> classes. To me, it appears like the scheduler is having problems keeping track of the resources in use and is trying to over-provision the node.</p> <p dir="auto">Here's the <code class="notranslate">describe pods</code> Note that the extra 100m CPU reported as being used is from system containers (fluentd, etc.)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl describe pods worker-7f1df241-5c3f-45cd-8df3-6caa2c972f68 Name: worker-7f1df241-5c3f-45cd-8df3-6caa2c972f68 Namespace: default Node: &lt;REDACTED&gt; Start Time: Tue, 16 Aug 2016 13:02:38 +0800 Labels: sample=&lt;REDACTED&gt;,submitter=&lt;REDACTED&gt; Status: Failed Reason: OutOfCPU Message: Pod Node didn't have enough resource: CPU, requested: 14000, used: 14100, capacity: 16000 IP: Controllers: &lt;none&gt; Containers: pod-template: Image: &lt;REDACTED&gt; Port: Command: &lt;REDACTED&gt; QoS Tier: cpu: Burstable memory: BestEffort Limits: cpu: 32 Requests: cpu: 14 Volumes: workdir: Type: HostPath (bare host directory volume) Path: /mnt default-token-u3fnm: Type: Secret (a volume populated by a Secret) SecretName: default-token-u3fnm Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 31m 31m 1 {kubelet &lt;REDACTED&gt;} Warning OutOfCPU Node didn't have enough resource: CPU, requested: 14000, used: 14100, capacity: 16000"><pre class="notranslate"><code class="notranslate">$ kubectl describe pods worker-7f1df241-5c3f-45cd-8df3-6caa2c972f68 Name: worker-7f1df241-5c3f-45cd-8df3-6caa2c972f68 Namespace: default Node: &lt;REDACTED&gt; Start Time: Tue, 16 Aug 2016 13:02:38 +0800 Labels: sample=&lt;REDACTED&gt;,submitter=&lt;REDACTED&gt; Status: Failed Reason: OutOfCPU Message: Pod Node didn't have enough resource: CPU, requested: 14000, used: 14100, capacity: 16000 IP: Controllers: &lt;none&gt; Containers: pod-template: Image: &lt;REDACTED&gt; Port: Command: &lt;REDACTED&gt; QoS Tier: cpu: Burstable memory: BestEffort Limits: cpu: 32 Requests: cpu: 14 Volumes: workdir: Type: HostPath (bare host directory volume) Path: /mnt default-token-u3fnm: Type: Secret (a volume populated by a Secret) SecretName: default-token-u3fnm Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 31m 31m 1 {kubelet &lt;REDACTED&gt;} Warning OutOfCPU Node didn't have enough resource: CPU, requested: 14000, used: 14100, capacity: 16000 </code></pre></div> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">Pod to stay in a <code class="notranslate">Pending</code> state whilst resources are not available for scheduling.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">Submit 10k jobs requiring 14 CPUs on a cluster containing 16 cores each. Note that in this case, we are submitting all 10k jobs within a 1 minute time window.</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto"><strong>Is this a request for help?</strong>: No</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> OutOfCpu<br> Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="168610759" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29846" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29846/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29846">#29846</a> may be related; however, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="168610759" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29846" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29846/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29846">#29846</a> is not related to cluster autoscaling and is limited to an OutOfCpu condition.</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): 1.4.0</p> <p dir="auto"><strong>Environment</strong>: Google GKE</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: Google</li> <li><strong>OS</strong> (e.g. from /etc/os-release): Google Container-VM Image V55</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux gke-omega-cluster-default-pool-d07fc610-clps 4.4.14+ <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Tue Sep 20 10:32:07 PDT 2016 x86_64 Intel(R) Xeon(R) CPU @ 2.30GHz GenuineIntel GNU/Linux</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> Using cluster of n1-standard-1 nodes, 1 initial node and enabled cluster autoscaling, I started 34 pods requesting 100m CPU each. Since each node has only 1 CPU and 200m CPU is required for Kubernetes services on each node (300m CPU on the first node), each node can run 8 pods (7 for the first node). All 34 pods would, therefore, required 5 nodes. The sequence of events:</p> <p dir="auto">Around 15:06:30: All pods are created. As expected, most pods remain in Pending state.<br> 15:06:42: Kubernetes correctly triggers scale-up; however, the scheduler only requests a single node.<br> 15:07:34: Two pods ("out-of-cpurf679" and "out-of-cpuwi5ge") are killed with "Deleted by rescheduler in order to schedule critical pod kube-system_heapster-v1.2.0-3455740371-j973x".<br> 15:09:33: Scale-up is triggered again, scaling from 2 to 3 nodes.<br> 15:11:48: Two other pods ("out-of-cpu3gsro" and "out-of-cpun30p1") fail with OutOfCpu when 10 pods are assigned to the newly added 3rd node.<br> 15:12:31: Next scale-up, going from 3 to 4 nodes.<br> Eventually, 30 pods are running, 2 pods are in OutOfCpu state, and 2 pods have disappeared.<br> 15:15:16: Another scale-up is triggered from 4 to 5 nodes. The 5th node remains idle as there are no more pods to schedule.</p> <p dir="auto">Please refer to this zip file for details:<br> <a href="https://github.com/kubernetes/kubernetes/files/528186/out-of-cpu-bug.zip">out-of-cpu-bug.zip</a></p> <p dir="auto">"out-of-cpu-bug.yaml" is the YAML that was used to run the experiment through the following commands:</p> <p dir="auto">1&gt; gcloud container clusters create omega-cluster --machine-type=n1-standard-1 --zone us-central1-c --num-nodes 1 --enable-autoscaling --min-nodes=1 --max-nodes=8<br> 2&gt; bash -c 'for i in {1..34}; do kubectl create -f out-of-cpu-bug.yaml; done'</p> <p dir="auto">"out-of-cpu-bug-events.txt" is the capture of events from 'kubectl get events -w' up to the final scale-up. "out-of-cpu-bug-pods1.txt" shows the output of 'kubectl get nodes,pods -a' after the OutOfCpu condition of two pods. Note that only 32 pods show up, because 2 pods have been killed earlier and have "disappeared". "out-of-cpu-bug.pods2.txt" shows the nodes and pods after the final scale-up. The new node "gke-omega-cluster-default-pool-d07fc610-w79v" is unused.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <ol dir="auto"> <li>Scale-up should have been triggered to bring the cluster from 1 to 5 nodes in a single step.</li> <li>Pods "out-of-cpurf679" and "out-of-cpuwi5ge" should not have been killed and disappeared.</li> <li>Pods "out-of-cpu3gsro" and "out-of-cpun30p1" should not have been scheduled onto a full node and should not have received an OutOfCpu condition.</li> <li>Scale-up should not have produced an idle node.</li> </ol> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">See above. Create a cluster on Google with<br> gcloud container clusters create omega-cluster --machine-type=n1-standard-1 --zone us-central1-c --num-nodes 1 --enable-autoscaling --min-nodes=1 --max-nodes=8</p> <p dir="auto">Schedule pods with the supplied YAML:<br> bash -c 'for i in {1..34}; do kubectl create -f out-of-cpu-bug.yaml; done'</p> <p dir="auto">The exact numbers don't matter.</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <p dir="auto">The bug(s) appear to include some race condition as the error does not always (although frequently) happen. The more pods that are being created, the more likely the situation is observed. The YAML has a commented-out section to request pod affinity. This seems to increase the likelyhood of OutOfCpu failures. Nonetheless, the above commands will show the failure with a 1 in 2 chance. Increase the number of pods to 60 or more and the problem occurs almost every time. I consider this problem a showstopper for any serious cluster autoscaling application.</p>
1
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">Linear and logistic regression allow l1, l2, or elasticnet regularization. However, the Poisson regression class (which is amazing to have!) only allows L2 regularization.</p> <h3 dir="auto">Describe your proposed solution</h3> <p dir="auto">Enable flexible regularization choices for the Generalized Linear Models</p> <h3 dir="auto">Describe alternatives you've considered, if relevant</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<p dir="auto">The L1 penalty with coordinate descent solver for GLM was proposed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="243835169" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/9405" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/9405/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/9405">#9405</a> and was not included in the minimal implementation merged in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="465886592" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/14300" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/14300/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/14300">#14300</a>.</p> <p dir="auto">It would be be good to add it, however care must to taken to avoid redundancy with the existing coordinate descent solver in ElasticNet.</p> <p dir="auto">Preliminary benchmarks were done in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="243835169" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/9405" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/9405/hovercard?comment_id=499578511&amp;comment_type=issue_comment" href="https://github.com/scikit-learn/scikit-learn/pull/9405#issuecomment-499578511">#9405 (comment)</a></p> <p dir="auto">Also see: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="575407340" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/16634" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/16634/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/16634">#16634</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="575422429" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/16635" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/16635/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/16635">#16635</a></p>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.32.3</li> <li>Operating System: Windows 10 Pro</li> <li>Browser: Chromium</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul dir="auto"> <li>[x ] I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">or</p> <p dir="auto"><strong>Config file</strong><br> import { defineConfig, devices } from '@playwright/test';</p> <p dir="auto">export default defineConfig({<br> testMatch: '*.e2e.test.ts',<br> testDir: './tests',<br> fullyParallel: true,<br> forbidOnly: !!process.env.CI,<br> retries: process.env.CI ? 2 : 0,<br> workers: process.env.CI ? 1 : undefined,<br> reporter: 'html',<br> use: {<br> headless: true,<br> trace: 'on-first-retry',<br> screenshot: 'only-on-failure',<br> video: 'retain-on-failure',<br> },</p> <p dir="auto">projects: [<br> // Setup project for authentication and capturing the authenticated state in user.json file.<br> {<br> name: 'setup',<br> testDir: './src/common',<br> testMatch: /.*.e2e.setup.ts/,<br> },<br> {<br> name: 'chromium',<br> use: {<br> ...devices['Desktop Chrome'],<br> // Use prepared auth state.<br> storageState: 'playwright/.auth/user.json',<br> },<br> dependencies: ['setup'],<br> },<br> ]<br> });</p> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test as setup, expect } from '@playwright/test' import {fxLoginConfig} from '../config/test-tenant-config' const authFile = 'playwright/.auth/user.json'; //This test will authenticate and store the state of authentication in a cookie. That cookie will be used to run all the tests in chromium project. setup('authenticate', async ({ page,context}) =&gt; { const managerTabName= 'manager'; await context.clearCookies(); await setup.step('authenticate', async() =&gt;{ await page.goto(fxLoginConfig.address); const logo = page.locator('data-testid=login-logo'); await expect(logo).toBeVisible(); await page.locator('data-testid=login-page-wrapper'); await page.locator('data-testid=input-login-email-input').fill(fxLoginConfig.username); await page.locator('data-testid=input-login-pw-input').fill(fxLoginConfig.username); await page.locator('data-testid=login-button').click(); await page.waitForURL(/.*\/manager/); await expect(page).toHaveURL(/.*\/manager/); await expect(page.locator(`id=${managerTabName}`)).toBeVisible(); (await page.context().storageState({ path: authFile })); }); }); navigation.ts import { test, expect, Page } from '@playwright/test'; import {navigateToSideBar, navigateToTab,clickBackButton} from '../src/common/navigation'; import {performanceMark, performanceMeasure} from '../src/common/'; test.describe('navigation flow tests', () =&gt; { const manager = 'manager', modeler:string ='modeler', test.beforeEach(async ({ page }, testInfo) =&gt; { console.log(`Running ${testInfo.title}`); await page.goto('/'); }); test('navigate from Manager Tab to Modeler&gt; Members ', async ({ page },testinfo) =&gt; { await performanceMark(&quot;mark1&quot;); await test.step('navigate to Modeler Tab', async() =&gt;{ await goToModlerTab(page, modeler); }) await test.step('navigate to Data Modeler ', async() =&gt;{ await navigateToSideBar(page,'Data Modeler',modeler); }) await test.step('navigate to Members', async() =&gt;{ await navigateToSideBar(page,'Members',members); }) await performanceMark(&quot;mark2&quot;); await performanceMeasure(testinfo.title,&quot;measuring Navigation&quot;, &quot;mark1&quot;, &quot;mark2&quot;) }); "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span> <span class="pl-k">as</span> <span class="pl-s1">setup</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">fxLoginConfig</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../config/test-tenant-config'</span> <span class="pl-k">const</span> <span class="pl-s1">authFile</span> <span class="pl-c1">=</span> <span class="pl-s">'playwright/.auth/user.json'</span><span class="pl-kos">;</span> <span class="pl-c">//This test will authenticate and store the state of authentication in a cookie. That cookie will be used to run all the tests in chromium project. </span> <span class="pl-en">setup</span><span class="pl-kos">(</span><span class="pl-s">'authenticate'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page<span class="pl-kos">,</span>context<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">managerTabName</span><span class="pl-c1">=</span> <span class="pl-s">'manager'</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">clearCookies</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">setup</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'authenticate'</span><span class="pl-kos">,</span> <span class="pl-k">async</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-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s1">fxLoginConfig</span><span class="pl-kos">.</span><span class="pl-c1">address</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">logo</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'data-testid=login-logo'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">logo</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'data-testid=login-page-wrapper'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'data-testid=input-login-email-input'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">fill</span><span class="pl-kos">(</span><span class="pl-s1">fxLoginConfig</span><span class="pl-kos">.</span><span class="pl-c1">username</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'data-testid=input-login-pw-input'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">fill</span><span class="pl-kos">(</span><span class="pl-s1">fxLoginConfig</span><span class="pl-kos">.</span><span class="pl-c1">username</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'data-testid=login-button'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForURL</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>.<span class="pl-c1">*</span><span class="pl-cce">\/</span>manager<span class="pl-c1">/</span></span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveURL</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>.<span class="pl-c1">*</span><span class="pl-cce">\/</span>manager<span class="pl-c1">/</span></span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">`id=<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">managerTabName</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeVisible</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">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">context</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">storageState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s1">authFile</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">navigation</span><span class="pl-kos">.</span><span class="pl-c1">ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span><span class="pl-kos">,</span> <span class="pl-smi">Page</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">navigateToSideBar</span><span class="pl-kos">,</span> <span class="pl-s1">navigateToTab</span><span class="pl-kos">,</span><span class="pl-s1">clickBackButton</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../src/common/navigation'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">performanceMark</span><span class="pl-kos">,</span> <span class="pl-s1">performanceMeasure</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../src/common/'</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-c1">describe</span><span class="pl-kos">(</span><span class="pl-s">'navigation flow tests'</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-k">const</span> <span class="pl-s1">manager</span> <span class="pl-c1">=</span> <span class="pl-s">'manager'</span><span class="pl-kos">,</span> <span class="pl-s1">modeler</span>:<span class="pl-smi">string</span> <span class="pl-c1">=</span><span class="pl-s">'modeler'</span><span class="pl-kos">,</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-s1">beforeEach</span><span class="pl-kos"></span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">testInfo</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-s">`Running <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">testInfo</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</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-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'navigate from Manager Tab to Modeler&gt; Members '</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-s1">testinfo</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-en">performanceMark</span><span class="pl-kos">(</span><span class="pl-s">"mark1"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'navigate to Modeler Tab'</span><span class="pl-kos">,</span> <span class="pl-k">async</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-k">await</span> <span class="pl-en">goToModlerTab</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span> <span class="pl-s1">modeler</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">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'navigate to Data Modeler '</span><span class="pl-kos">,</span> <span class="pl-k">async</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-k">await</span> <span class="pl-en">navigateToSideBar</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span><span class="pl-s">'Data Modeler'</span><span class="pl-kos">,</span><span class="pl-s1">modeler</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">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'navigate to Members'</span><span class="pl-kos">,</span> <span class="pl-k">async</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-k">await</span> <span class="pl-en">navigateToSideBar</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span><span class="pl-s">'Members'</span><span class="pl-kos">,</span><span class="pl-s1">members</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">await</span> <span class="pl-en">performanceMark</span><span class="pl-kos">(</span><span class="pl-s">"mark2"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">performanceMeasure</span><span class="pl-kos">(</span><span class="pl-s1">testinfo</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">,</span><span class="pl-s">"measuring Navigation"</span><span class="pl-kos">,</span> <span class="pl-s">"mark1"</span><span class="pl-kos">,</span> <span class="pl-s">"mark2"</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>[Run the test]</li> <li>[...]</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Authentication test should run first, which updated the storage state in user.json file. Then Navigation test runs based on logged in state.</p> <p dir="auto"><strong>Actual</strong><br> When running the tests, user.json file gets updated at the end of test run, rather than at the end of dependency project test run.</p> <p dir="auto">1st run, navigation test gives error 'SyntaxError: Error reading storage state from playwright/.auth/user.json:<br> Unexpected end of JSON input'.<br> Authentication test runs and passes and updated user.json file.</p> <p dir="auto">2nd run, since user.json is now populated, the navigation test runs.</p> <p dir="auto">First Run: <a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/114775539/242415307-dc86af53-3914-48b5-bf8b-79e3dfcd5ce1.png"><img src="https://user-images.githubusercontent.com/114775539/242415307-dc86af53-3914-48b5-bf8b-79e3dfcd5ce1.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">2nd run:<br> <a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/114775539/242415664-49274d6c-c313-40aa-b02c-dae9d9f3d812.png"><img src="https://user-images.githubusercontent.com/114775539/242415664-49274d6c-c313-40aa-b02c-dae9d9f3d812.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.31.2</li> <li>Operating System: All</li> <li>Browser: Chromium</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Test file (self-contained)</strong> <strong>test.js</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { chromium } = require('playwright'); (async () =&gt; { const browser = await chromium.launch({ headless: false }); const context = await browser.newContext(); const page = await context.newPage(); page.on('console', msg =&gt; console.log(&quot;&gt; CONSOLE:&quot;, msg)); page.on('pageerror', err =&gt; console.log(&quot;&gt; PAGEERROR:&quot;, err)); await page.goto(`https://vaadin-database-example.demo.vaadin.com/`); await page.waitForTimeout(2000); await context.close(); await browser.close(); })(); "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> chromium <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'playwright'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">async</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-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">headless</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-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newContext</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">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'console'</span><span class="pl-kos">,</span> <span class="pl-s1">msg</span> <span class="pl-c1">=&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">"&gt; CONSOLE:"</span><span class="pl-kos">,</span> <span class="pl-s1">msg</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'pageerror'</span><span class="pl-kos">,</span> <span class="pl-s1">err</span> <span class="pl-c1">=&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">"&gt; PAGEERROR:"</span><span class="pl-kos">,</span> <span class="pl-s1">err</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">`https://vaadin-database-example.demo.vaadin.com/`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForTimeout</span><span class="pl-kos">(</span><span class="pl-c1">2000</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>install playwright dependency <code class="notranslate">npm install playwright</code></li> <li>run the provided <code class="notranslate">.js</code> script <code class="notranslate">node test.js</code></li> </ul> <p dir="auto"><strong>Expected</strong><br> In the terminal output we should see a message like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; CONSOLE: Could not find style data in module named shared-styles &gt; CONSOLE: Failed to load resource: the server responded with a status of 404 (https://vaadin-database-example.demo.vaadin.com/favicon.ico)"><pre class="notranslate"><code class="notranslate">&gt; CONSOLE: Could not find style data in module named shared-styles &gt; CONSOLE: Failed to load resource: the server responded with a status of 404 (https://vaadin-database-example.demo.vaadin.com/favicon.ico) </code></pre></div> <p dir="auto"><strong>Actual</strong><br> Resource url is not displayed</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; CONSOLE: Could not find style data in module named shared-styles &gt; CONSOLE: Failed to load resource: the server responded with a status of 404 ()"><pre class="notranslate"><code class="notranslate">&gt; CONSOLE: Could not find style data in module named shared-styles &gt; CONSOLE: Failed to load resource: the server responded with a status of 404 () </code></pre></div> <p dir="auto">Note that if you open the chromium console in dev tools the resource is correctly displayed</p> <a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/161853/251964133-85844a55-5127-469f-b121-27f54ec6fac9.png"><img width="857" alt="Screenshot 2023-07-08 at 11 04 22" src="https://user-images.githubusercontent.com/161853/251964133-85844a55-5127-469f-b121-27f54ec6fac9.png" style="max-width: 100%;"></a>
0
<ul dir="auto"> <li>VSCode Version: 0.10.12-alpha</li> <li>OS Version: OSX<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="140217085" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/4022" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/4022/hovercard" href="https://github.com/microsoft/vscode/issues/4022">#4022</a></li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>open a new file, add a workspace setting to enable javascript validation <code class="notranslate">"javascript.validate.enable": false</code></li> <li>in the file type:</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var str = &quot;qrqweqwewqe&quot;; str.test(); "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s">"qrqweqwewqe"</span><span class="pl-kos">;</span> <span class="pl-s1">str</span><span class="pl-kos">.</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </pre></div> <p dir="auto">Expected: error under test since test method is not defined on a string.</p>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="129227097" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6658" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6658/hovercard" href="https://github.com/microsoft/TypeScript/issues/6658">#6658</a> for background.</p> <p dir="auto">Currently for JavaScript files we provide a very limited set of errors, mostly for syntax errors. There are a number of grammatical and type errors that would be useful to display also.</p> <p dir="auto">Brief notes from ad hoc discussion in the team room include:</p> <ul dir="auto"> <li>Move the code that flags TypeScript syntax in JavaScript files for better error handling</li> <li>Add a distinction between errors and warnings to avoid "valid" JavaScript containing errors</li> <li>Make the warnings user configurable as part of the project (i.e. may enable/disable certain warnings)</li> </ul> <p dir="auto">More detailed design to come...</p>
1
<h3 dir="auto">Steps to reproduce:</h3> <p dir="auto">Hello, I am using OS Win 10. I am trying to create my first build. I am using the community edition of pycharm. I am also using a virtual environment Here are my requirements</p> <p dir="auto">ansi2html==1.8.0<br> anyio==3.6.2<br> argon2-cffi==21.3.0<br> argon2-cffi-bindings==21.2.0<br> arrow==1.2.3<br> asttokens==2.2.1<br> attrs==22.2.0<br> backcall==0.2.0<br> beautifulsoup4==4.11.2<br> bleach==6.0.0<br> blis==0.7.9<br> Brotli==1.0.9<br> catalogue==2.0.8<br> cffi==1.15.1<br> charset-normalizer==3.0.1<br> click==7.1.2<br> colorama==0.4.6<br> comm==0.1.2<br> confection==0.0.4<br> contourpy==1.0.7<br> cycler==0.11.0<br> cymem==2.0.7<br> dash==1.21.0<br> dash-bootstrap-components==0.13.1<br> dash-core-components==1.17.1<br> dash-html-components==1.1.4<br> dash-table==4.12.0<br> debugpy==1.6.6<br> decorator==5.1.1<br> defusedxml==0.7.1<br> en-core-web-sm @ <a href="https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.5.0/en_core_web_sm-3.5.0-py3-none-any.whl">https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.5.0/en_core_web_sm-3.5.0-py3-none-any.whl</a><br> executing==1.2.0<br> fastjsonschema==2.16.2<br> Flask==1.1.4<br> Flask-Compress==1.10.1<br> fonttools==4.38.0<br> fqdn==1.5.1<br> funcy==1.17<br> future==0.18.2<br> gunicorn==20.0.4<br> idna==3.4<br> import-ipynb==0.1.4<br> importlib-metadata==6.0.0<br> importlib-resources==5.10.2<br> ipykernel==6.21.2<br> ipython==8.10.0<br> ipython-genutils==0.2.0<br> ipywidgets==8.0.4<br> isoduration==20.11.0<br> itsdangerous==1.1.0<br> jedi==0.18.2<br> Jinja2==2.11.3<br> jsonpointer==2.3<br> jsonschema==4.17.3<br> jupyter==1.0.0<br> jupyter-console==6.5.1<br> jupyter-dash==0.4.0<br> jupyter-events==0.6.3<br> jupyter_client==8.0.2<br> jupyter_core==5.2.0<br> jupyter_server==2.3.0<br> jupyter_server_terminals==0.4.4<br> jupyterlab-pygments==0.2.2<br> jupyterlab-widgets==3.0.5<br> kiwisolver==1.4.4<br> langcodes==3.3.0<br> MarkupSafe==2.0.1<br> matplotlib==3.7.0<br> matplotlib-inline==0.1.6<br> mistune==2.0.5<br> murmurhash==1.0.9<br> nbclassic==0.5.1<br> nbclient==0.7.2<br> nbconvert==7.2.9<br> nbformat==5.7.3<br> nest-asyncio==1.5.6<br> notebook==6.5.2<br> notebook_shim==0.2.2<br> numpy==1.23.4<br> packaging==21.3<br> pandas==1.3.3<br> pandocfilters==1.5.0<br> parso==0.8.3<br> pathy==0.10.1<br> patsy==0.5.3<br> pickleshare==0.7.5<br> Pillow==9.4.0<br> platformdirs==3.0.0<br> plotly==5.10.0<br> preshed==3.0.8<br> prometheus-client==0.16.0<br> prompt-toolkit==3.0.36<br> psutil==5.9.4<br> pure-eval==0.2.2<br> pycparser==2.21<br> pydantic==1.10.4<br> Pygments==2.14.0<br> pyLDAvis==3.3.1<br> pyparsing==3.0.9<br> pyrsistent==0.19.3<br> python-dateutil==2.8.2<br> python-json-logger==2.0.6<br> pytz==2022.4<br> pywin32==305<br> pywinpty==2.0.10<br> PyYAML==6.0<br> pyzmq==25.0.0<br> qtconsole==5.4.0<br> QtPy==2.3.0<br> requests==2.28.2<br> retrying==1.3.4<br> rfc3339-validator==0.1.4<br> rfc3986-validator==0.1.1<br> scipy==1.9.2<br> seaborn==0.12.2<br> Send2Trash==1.8.0<br> six==1.16.0<br> sklearn==0.0.post2<br> smart-open==6.3.0<br> sniffio==1.3.0<br> soupsieve==2.4<br> spacy==3.5.0<br> spacy-legacy==3.0.12<br> spacy-loggers==1.0.4<br> srsly==2.4.5<br> stack-data==0.6.2<br> statsmodels==0.13.2<br> tenacity==8.1.0<br> terminado==0.17.1<br> textblob==0.17.1<br> thinc==8.1.7<br> tinycss2==1.2.1<br> tornado==6.2<br> traitlets==5.9.0<br> typer==0.7.0<br> typing_extensions==4.4.0<br> uri-template==1.2.0<br> urllib3==1.26.14<br> wasabi==1.1.1<br> wcwidth==0.2.6<br> webcolors==1.12<br> webencodings==0.5.1<br> websocket-client==1.5.1<br> Werkzeug==1.0.1<br> widgetsnbextension==4.0.5<br> wincertstore==0.2<br> zipp==3.13.0</p> <h3 dir="auto">Error message:</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="remote: gcc: build/src.linux-x86_64-3.11/numpy/core/src/umath/matmul.c remote: gcc: build/src.linux-x86_64-3.11/numpy/core/src/umath/clip.c remote: gcc: numpy/core/src/umath/ufunc_object.c remote: gcc: numpy/core/src/umath/extobj.c remote: gcc: build/src.linux-x86_64-3.11/numpy/core/src/umath/scalarmath.c remote: error: Command &quot;gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DNP Y_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_S OURCE=1 -Ibuild/src.linux-x86_64-3.11/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.11/numpy/core/sr c/npymath -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x 86_64-3.11/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core /src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/app/.herok u/python/include/python3.11 -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Ibuild/src.linux-x86_ 64-3.11/numpy/core/src/npymath -c build/src.linux-x86_64-3.11/numpy/core/src/multiarray/scalartypes.c -o build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/multiarray/scalartypes.o -M MD -MF build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/multiarray/scalartypes. o.d -std=c99&quot; failed with exit status 1 remote: [end of output] remote: remote: note: This error originates from a subprocess, and is likely not a problem with pip. remote: ERROR: Failed building wheel for numpy remote: Failed to build numpy remote: ERROR: Could not build wheels for numpy, which is required to install pyproject.t oml-based projects remote: [end of output] remote: remote: note: This error originates from a subprocess, and is likely not a problem with pip. remote: error: subprocess-exited-with-error remote: remote: × pip subprocess to install build dependencies did not run successfully. remote: │ exit code: 1 remote: ╰─&gt; See above for output. remote: remote: note: This error originates from a subprocess, and is likely not a problem with pip. remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: ! remote: ! ## Warning - The same version of this code has already been built: 8cdbd427e0d29c4d7ef241c1 9c7d790035f80d8b remote: ! remote: ! We have detected that you have triggered a build from source code with version 8cdbd427e0d2 9c4d7ef241c19c7d790035f80d8b remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a diffe rent branch. remote: ! remote: ! If you are developing on a branch and deploying via git you must run: remote: ! remote: ! git push heroku &lt;branchname&gt;:main remote: ! git push heroku &lt;branchname&gt;:main remote: ! git push heroku &lt;branchname&gt;:main remote: ! git push heroku &lt;branchname&gt;:main remote: ! git push heroku &lt;branchname&gt;:main remote: ! remote: ! This article goes into details on the behavior: remote: ! https://devcenter.heroku.com/articles/duplicate-build-version remote:"><pre class="notranslate">remote: gcc: build/src.linux-x86_64-3.11/numpy/core/src/umath/matmul.c remote: gcc: build/src.linux-x86_64-3.11/numpy/core/src/umath/clip.c remote: gcc: numpy/core/src/umath/ufunc_object.c remote: gcc: numpy/core/src/umath/extobj.c remote: gcc: build/src.linux-x86_64-3.11/numpy/core/src/umath/scalarmath.c remote: error: Command <span class="pl-s"><span class="pl-pds">"</span>gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DNP</span> <span class="pl-s">Y_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_S</span> <span class="pl-s">OURCE=1 -Ibuild/src.linux-x86_64-3.11/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.11/numpy/core/sr</span> <span class="pl-s">c/npymath -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x</span> <span class="pl-s">86_64-3.11/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core</span> <span class="pl-s">/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/app/.herok</span> <span class="pl-s">u/python/include/python3.11 -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Ibuild/src.linux-x86_</span> <span class="pl-s">64-3.11/numpy/core/src/npymath -c build/src.linux-x86_64-3.11/numpy/core/src/multiarray/scalartypes.c </span> <span class="pl-s">-o build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/multiarray/scalartypes.o -M</span> <span class="pl-s">MD -MF build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/multiarray/scalartypes.</span> <span class="pl-s">o.d -std=c99<span class="pl-pds">"</span></span> failed with <span class="pl-c1">exit</span> status 1 remote: [end of output] remote: remote: note: This error originates from a subprocess, and is likely not a problem with pip. remote: ERROR: Failed building wheel <span class="pl-k">for</span> numpy remote: Failed to build numpy remote: ERROR: Could not build wheels <span class="pl-k">for</span> numpy, which is required to install pyproject.t oml-based projects remote: [end of output] remote: remote: note: This error originates from a subprocess, and is likely not a problem with pip. remote: error: subprocess-exited-with-error remote: remote: × pip subprocess to install build dependencies did not run successfully. remote: │ <span class="pl-c1">exit</span> code: 1 remote: ╰─<span class="pl-k">&gt;</span> See above <span class="pl-k">for</span> output. remote: remote: note: This error originates from a subprocess, and is likely not a problem with pip. remote: <span class="pl-k">!</span> Push rejected, failed to compile Python app. remote: remote: <span class="pl-k">!</span> Push failed remote: <span class="pl-k">!</span> remote: <span class="pl-k">!</span> <span class="pl-c"><span class="pl-c">#</span># Warning - The same version of this code has already been built: 8cdbd427e0d29c4d7ef241c1</span> 9c7d790035f80d8b remote: <span class="pl-k">!</span> remote: <span class="pl-k">!</span> We have detected that you have triggered a build from <span class="pl-c1">source</span> code with version 8cdbd427e0d2 9c4d7ef241c19c7d790035f80d8b remote: <span class="pl-k">!</span> at least twice. One common cause of this behavior is attempting to deploy code from a diffe rent branch. remote: <span class="pl-k">!</span> remote: <span class="pl-k">!</span> If you are developing on a branch and deploying via git you must run: remote: <span class="pl-k">!</span> remote: <span class="pl-k">!</span> git push heroku <span class="pl-k">&lt;</span>branchname<span class="pl-k">&gt;</span>:main remote: <span class="pl-k">!</span> git push heroku <span class="pl-k">&lt;</span>branchname<span class="pl-k">&gt;</span>:main remote: <span class="pl-k">!</span> git push heroku <span class="pl-k">&lt;</span>branchname<span class="pl-k">&gt;</span>:main remote: <span class="pl-k">!</span> git push heroku <span class="pl-k">&lt;</span>branchname<span class="pl-k">&gt;</span>:main remote: <span class="pl-k">!</span> git push heroku <span class="pl-k">&lt;</span>branchname<span class="pl-k">&gt;</span>:main remote: <span class="pl-k">!</span> remote: <span class="pl-k">!</span> This article goes into details on the behavior: remote: <span class="pl-k">!</span> https://devcenter.heroku.com/articles/duplicate-build-version remote:</pre></div> <h3 dir="auto">Additional information:</h3> <p dir="auto">Please Help!</p>
<p dir="auto">Using Python 3 and Numpy 1.9.2 there is an issue with <code class="notranslate">numpy.fromfile</code> when called on an existing file object. This code works fine in Python 2.7.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ fh &lt;_io.FileIO name=8 mode='rb+'&gt; $ np.fromfile(fh, dtype=dtype, count=length) OSError: first argument must be an open file"><pre class="notranslate">$ <span class="pl-s1">fh</span> <span class="pl-c1">&lt;</span><span class="pl-s1">_io</span>.<span class="pl-v">FileIO</span> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-c1">8</span> <span class="pl-s1">mode</span><span class="pl-c1">=</span><span class="pl-s">'rb+'</span><span class="pl-c1">&gt;</span> $ <span class="pl-s1">np</span>.<span class="pl-en">fromfile</span>(<span class="pl-s1">fh</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">dtype</span>, <span class="pl-s1">count</span><span class="pl-c1">=</span><span class="pl-s1">length</span>) <span class="pl-v">OSError</span>: <span class="pl-s1">first</span> <span class="pl-s1">argument</span> <span class="pl-s1">must</span> <span class="pl-s1">be</span> <span class="pl-s1">an</span> <span class="pl-s1">open</span> <span class="pl-s1">file</span></pre></div> <p dir="auto">I've checked <code class="notranslate">fh.closed</code> is <code class="notranslate">False</code>, so the file is still open. The error is thrown by <a href="https://github.com/numpy/numpy/blob/c29733c228ef6168b2f811f51113e9660bf6c47d/numpy/core/src/multiarray/multiarraymodule.c#L2119">numpy.multiarraymodule.c#2119</a>.</p> <p dir="auto">Someone <a href="http://stackoverflow.com/questions/30466656/using-new-io-classes-with-numpy-fromfile-tofile-in-python-2-converting-io-class" rel="nofollow">mentioned these issues on Stack Overflow</a>, but no clear solutions are present.</p> <p dir="auto">Any suggestions?</p>
0
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <ol dir="auto"> <li> <p dir="auto">What version of Go are you using (<code class="notranslate">go version</code>)?<br> go 1.6.1</p> </li> <li> <p dir="auto">What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?<br> GOARCH="amd64"<br> GOBIN=""<br> GOEXE=""<br> GOHOSTARCH="amd64"<br> GOHOSTOS="darwin"<br> GOOS="darwin"<br> GOPATH="/Users/bo/GOPATH"<br> GORACE=""<br> GOROOT="/usr/local/go"<br> GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"<br> GO15VENDOREXPERIMENT="1"<br> CC="clang"<br> GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"<br> CXX="clang++"<br> CGO_ENABLED="1"</p> </li> <li> <p dir="auto">What did you do?<br> init go mobile development environment<br> my xcode version is 6.4</p> </li> <li> <p dir="auto">What did you expect to see?<br> go mobile tool chain installed successfully</p> </li> <li> <p dir="auto">What did you see instead?<br> data:~ bo$ gomobile init<br> gomobile: go install -p=8 golang.org/x/mobile/app failed: exit status 2</p> <h1 dir="auto">golang.org/x/mobile/app</h1> <p dir="auto">In file included from GOPATH/src/golang.org/x/mobile/app/darwin_amd64.go:16:<br> In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:29:<br> In file included from /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIToolbox.h:240:<br> In file included from /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/IMKInputSession.h:23:<br> In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:<br> In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:6:<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:7:15: error: expected ';' after <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Class/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Class">@Class</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Class/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Class">@Class</a> NSArray;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:7:16: error: cannot find protocol declaration for 'ObjectType'<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Class/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Class">@Class</a> NSArray;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:34:25: error: cannot find protocol declaration for 'ObjectType'<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSEnumerator : NSObject <br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:34:37: error: expected identifier or '('<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSEnumerator : NSObject <br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:36:13: error: expected ')'</p> </li> <li> <p dir="auto">(nullable ObjectType)nextObject;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:36:3: note: to match this '('</p> </li> <li> <p dir="auto">(nullable ObjectType)nextObject;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:25: error: cannot find protocol declaration for 'ObjectType'<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSEnumerator (NSExtendedEnumerator)<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:1: error: duplicate interface definition for class 'NSEnumerator'<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSEnumerator (NSExtendedEnumerator)<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:34:12: note: previous definition is here<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSEnumerator : NSObject <br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:37: error: method type specifier must start with '-' or '+'<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSEnumerator (NSExtendedEnumerator)<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:38: error: expected a type<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSEnumerator (NSExtendedEnumerator)<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:42:1: error: expected selector for Objective-C method<br> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/Property/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Property">@Property</a> (readonly, copy) NSArray *allObjects;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:42:36: error: cannot find protocol declaration for 'ObjectType'<br> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/Property/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Property">@Property</a> (readonly, copy) NSArray *allObjects;<br> ^<br> In file included from GOPATH/src/golang.org/x/mobile/app/darwin_amd64.go:16:<br> In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:29:<br> In file included from /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIToolbox.h:240:<br> In file included from /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/IMKInputSession.h:23:<br> In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:16:32: error: cannot find protocol declaration for 'ObjectType'<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSArray&lt;__covariant ObjectType&gt; : NSObject &lt;NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration&gt;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:16:44: error: expected identifier or '('<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSArray&lt;__covariant ObjectType&gt; : NSObject &lt;NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration&gt;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:19:4: error: expected a type</p> </li> <li> <p dir="auto">(ObjectType)objectAtIndex:(NSUInteger)index;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:21:40: error: expected ')'</p> </li> <li> <p dir="auto">(instancetype)initWithObjects:(const ObjectType [])objects count:(NSUInteger)cnt NS_DESIGNATED_INITIALIZER;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:21:33: note: to match this '('</p> </li> <li> <p dir="auto">(instancetype)initWithObjects:(const ObjectType [])objects count:(NSUInteger)cnt NS_DESIGNATED_INITIALIZER;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:26:20: error: cannot find protocol declaration for 'ObjectType'<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSArray (NSExtendedArray)<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:26:1: error: duplicate interface definition for class 'NSArray'<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSArray (NSExtendedArray)<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:16:12: note: previous definition is here<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSArray&lt;__covariant ObjectType&gt; : NSObject &lt;NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration&gt;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:26:32: error: method type specifier must start with '-' or '+'<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSArray (NSExtendedArray)<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:26:33: error: expected a type<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> NSArray (NSExtendedArray)<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:28:1: error: expected selector for Objective-C method</p> </li> <li> <p dir="auto">(NSArray *)arrayByAddingObject:(ObjectType)anObject;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:29:12: error: cannot find protocol declaration for 'ObjectType'</p> </li> <li> <p dir="auto">(NSArray *)arrayByAddingObjectsFromArray:(NSArray *)otherArray;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:29:65: error: cannot find protocol declaration for 'ObjectType'</p> </li> <li> <p dir="auto">(NSArray *)arrayByAddingObjectsFromArray:(NSArray *)otherArray;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:31:25: error: expected a type</p> </li> <li> <p dir="auto">(BOOL)containsObject:(ObjectType)anObject;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:35:13: error: expected ')'</p> </li> <li> <p dir="auto">(nullable ObjectType)firstObjectCommonWithArray:(NSArray *)otherArray;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:35:3: note: to match this '('</p> </li> <li> <p dir="auto">(nullable ObjectType)firstObjectCommonWithArray:(NSArray *)otherArray;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:35:60: error: cannot find protocol declaration for 'ObjectType'</p> </li> <li> <p dir="auto">(nullable ObjectType)firstObjectCommonWithArray:(NSArray *)otherArray;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:36:21: error: expected a type</p> </li> <li> <p dir="auto">(void)getObjects:(ObjectType __unsafe_unretained [])objects range:(NSRange)range;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:37:30: error: expected a type</p> </li> <li> <p dir="auto">(NSUInteger)indexOfObject:(ObjectType)anObject;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:38:30: error: expected a type</p> </li> <li> <p dir="auto">(NSUInteger)indexOfObject:(ObjectType)anObject inRange:(NSRange)range;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:39:41: error: expected a type</p> </li> <li> <p dir="auto">(NSUInteger)indexOfObjectIdenticalTo:(ObjectType)anObject;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:40:41: error: expected a type</p> </li> <li> <p dir="auto">(NSUInteger)indexOfObjectIdenticalTo:(ObjectType)anObject inRange:(NSRange)range;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:41:33: error: cannot find protocol declaration for 'ObjectType'</p> </li> <li> <p dir="auto">(BOOL)isEqualToArray:(NSArray *)otherArray;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:42:43: error: unknown type name 'ObjectType'<br> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/Property/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Property">@Property</a> (nullable, nonatomic, readonly) ObjectType firstObject NS_AVAILABLE(10_6, 4_0);<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:42:20: error: nullability specifier 'nullable' cannot be applied to non-pointer type 'int'<br> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/Property/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Property">@Property</a> (nullable, nonatomic, readonly) ObjectType firstObject NS_AVAILABLE(10_6, 4_0);<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:43:43: error: unknown type name 'ObjectType'<br> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/Property/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Property">@Property</a> (nullable, nonatomic, readonly) ObjectType lastObject;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:43:20: error: nullability specifier 'nullable' cannot be applied to non-pointer type 'int'<br> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/Property/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Property">@Property</a> (nullable, nonatomic, readonly) ObjectType lastObject;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:44:17: error: cannot find protocol declaration for 'ObjectType'</p> </li> <li> <p dir="auto">(NSEnumerator *)objectEnumerator;<br> ^<br> /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:45:17: error: cannot find protocol declaration for 'ObjectType'</p> </li> <li> <p dir="auto">(NSEnumerator *)reverseObjectEnumerator;</p> </li> </ol>
<p dir="auto">by <strong>islandberry23</strong>:</p> <pre class="notranslate">I am filing this issue as requested at <a href="https://groups.google.com/forum/#" rel="nofollow">https://groups.google.com/forum/#</a>!topic/golang-nuts/8D_tno7WxaY The transferWriter decides if it should write the content-length header at: <a href="https://code.google.com/p/go/source/browse/src/pkg/net/http/transfer.go?name=release&amp;" rel="nofollow">https://code.google.com/p/go/source/browse/src/pkg/net/http/transfer.go?name=release&amp;</a>;r=63dcf9ca33a74dec605f6156393d719150ad6e2e#116 This function returns false for a Content-Length: 0 response unless the transfer encoding is explicitly set to identity. If a response has a content length header and the transfer encoding is not explicitly set to chunked, then the content length header should be written to the output. This is true even of the content length is zero. Zero is a valid response body size.</pre>
0
<p dir="auto">Contrast: <a href="https://github.com/elastic/elasticsearch/blob/master/rest-api-spec/api/search.json#L160-L162">https://github.com/elastic/elasticsearch/blob/master/rest-api-spec/api/search.json#L160-L162</a></p> <p dir="auto">with (admittedly incomplete but not more so than your spec)</p> <p dir="auto"><a href="https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L536-L544">https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L536-L544</a></p> <p dir="auto"><a href="https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L601-L629">https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L601-L629</a></p> <p dir="auto"><a href="https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L823-L832">https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L823-L832</a></p> <p dir="auto"><a href="https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L1729-L1742">https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L1729-L1742</a></p> <p dir="auto">People are using Bloodhound in production.</p> <p dir="auto">I would suggest that a more complete spec is needed to assist client library authors, but I know how annoying maintaining documentation is. Given that, consider that Bloodhound (which has tests) can be tested against Elasticsearch to ensure spec correctness. Have you considered making an explicit spec via a client library in a language with explicit datatypes that was high enough level to make it usable for a casual reader?</p> <p dir="auto">Part of what exacerbates the situation with the spec is that your docs do <em>not</em> show complete or working examples, they show fragments of the complete JSON document that would be required to work, the reader is expected to</p> <ol dir="auto"> <li>Know this</li> <li>Manually inject the fragment you're showing them into the rest of the structure which is not well explained or connected to the individual doc page they're on</li> </ol> <p dir="auto">The problems with 1 and 2 are compounded by the fact that it's <em>extremely</em> easy to get the JSON structure wrong, then you are now faced with the prospect of making fiddly little changes to the JSON over and over until works.</p> <p dir="auto">Thus, <a href="https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L1745-L1758">datatypes that take care of the JSON for you</a>.</p> <p dir="auto">The <em>primary</em> complaints I hear from people about Elasticsearch are the docs &amp; API. It makes what is otherwise a very useful product considerably more frustrating to use than it needs to be.</p>
<p dir="auto">Requests/queries/etc currently have custom parsers, which make it more difficult to be certain that they are error free. We should replace all this hand parsing with some form of grammar, which defines exactly what syntax is allowed. This will also benefit those implementing clients, as they will have a grammar that can be interrogated programmatically.</p> <p dir="auto">Any unknown parameters should throw a parsing exception.</p> <p dir="auto">We can add custom rules where needed (eg to disallow certain combinations of parameters like using <code class="notranslate">fuzzy</code> in the <code class="notranslate">multi_match</code> query with type <code class="notranslate">cross_fields</code>).</p>
1
<p dir="auto"><a href="https://sourceforge.net/tracker/?func=detail&amp;aid=3151034&amp;group_id=80706&amp;atid=560720" rel="nofollow">Original report at SourceForge, opened Tue Jan 4 04:52:13 2011</a></p> <p dir="auto">If the boxplot is called with a small number of discrete, not unique values it shows a different median value than the median command. I consider this a bug.</p> <p dir="auto">How to reproduce:</p> <h1 dir="auto">example data</h1> <p dir="auto">d = array([ 13., 9., 16., 8., 7., 14., 15., 5., 10., 16., 8., 15., 14., 19., 10., 10.], dtype=float32)<br> q1, med, q3 = mlab.prctile(d,[25,50,75]) # axes.py line 5005 axes.py (0.99.3 Rev 8345)<br> med_default = median(d) # for comparison<br> print((med,med_default)) # med = 13.0 med_default = 11.5</p> <p dir="auto">In the example I took the line in axes.py where the median value is computed and compare to a median directly computed. In my opinion the boxplot should use the median function to determine the median such that the same value is reported. I think the reason is in the different handling of equal values of prctile and median.</p> <p dir="auto">Anyway: Here is how to fix it:<br> Replace line 5005 with:<br> q1, q3 = mlab.prctile(d,[25,75])<br> And add a new line directly after it (new 5006):<br> med = np.median(d)</p> <h3 dir="auto">SourceForge Comments</h3> <h4 dir="auto">On Thu Jan 13 04:42:32 2011, jmdb wrote:</h4> <p dir="auto">And to add another point: matlab reports 8.5 for q1.</p> <h4 dir="auto">On Thu Jan 13 04:37:33 2011, jmdb wrote:</h4> <p dir="auto">In addition: if one also computes:<br> from scipy import stats<br> stats.scoreatpercentile(d,25)</p> <p dir="auto">results in 8.75 while q1 from the example (which should be the same) is 9.0</p> <p dir="auto">I think either the mlab.prctle function should be fixed or be replaced by the function from the stats package.</p> <h4 dir="auto">On Tue Jan 4 05:03:55 2011, jmdb wrote:</h4> <p dir="auto">Seems like this is also discussed here: <a href="http://permalink.gmane.org/gmane.comp.python.matplotlib.general/25835" rel="nofollow">http://permalink.gmane.org/gmane.comp.python.matplotlib.general/25835</a></p> <p dir="auto">I can add that the median function agrees with f.ex. matlab while the prctile function gives different results.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Triangulation misses data points when data is far from the origin (eg example attached is in terms of a projection coordinate system with a false origin).</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import numpy as np import matplotlib.pyplot as plt import matplotlib.tri as tri data=np.loadtxt('tricont.dat') print data.shape x=data[:,0] y=data[:,1] t=tri.Triangulation(x,y) plt.triplot(t) plt.plot(x,y,'k+') plt.show() x -= (x.min()+x.max())/2.0 y -= (y.min()+y.max())/2.0 t=tri.Triangulation(x,y) plt.triplot(t) plt.plot(x,y,'k+') plt.show() "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">tri</span> <span class="pl-k">as</span> <span class="pl-s1">tri</span> <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-en">loadtxt</span>(<span class="pl-s">'tricont.dat'</span>) <span class="pl-k">print</span> <span class="pl-s1">data</span>.<span class="pl-s1">shape</span> <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s1">data</span>[:,<span class="pl-c1">0</span>] <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s1">data</span>[:,<span class="pl-c1">1</span>] <span class="pl-s1">t</span><span class="pl-c1">=</span><span class="pl-s1">tri</span>.<span class="pl-v">Triangulation</span>(<span class="pl-s1">x</span>,<span class="pl-s1">y</span>) <span class="pl-s1">plt</span>.<span class="pl-en">triplot</span>(<span class="pl-s1">t</span>) <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>,<span class="pl-s1">y</span>,<span class="pl-s">'k+'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>() <span class="pl-s1">x</span> <span class="pl-c1">-=</span> (<span class="pl-s1">x</span>.<span class="pl-en">min</span>()<span class="pl-c1">+</span><span class="pl-s1">x</span>.<span class="pl-en">max</span>())<span class="pl-c1">/</span><span class="pl-c1">2.0</span> <span class="pl-s1">y</span> <span class="pl-c1">-=</span> (<span class="pl-s1">y</span>.<span class="pl-en">min</span>()<span class="pl-c1">+</span><span class="pl-s1">y</span>.<span class="pl-en">max</span>())<span class="pl-c1">/</span><span class="pl-c1">2.0</span> <span class="pl-s1">t</span><span class="pl-c1">=</span><span class="pl-s1">tri</span>.<span class="pl-v">Triangulation</span>(<span class="pl-s1">x</span>,<span class="pl-s1">y</span>) <span class="pl-s1">plt</span>.<span class="pl-en">triplot</span>(<span class="pl-s1">t</span>) <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>,<span class="pl-s1">y</span>,<span class="pl-s">'k+'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto">Data in: <a href="https://github.com/matplotlib/matplotlib/files/1123260/tricont.zip">tricont.zip</a></p> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/631058/27845470-cdc94708-6183-11e7-9097-927026fb78c8.png"><img src="https://user-images.githubusercontent.com/631058/27845470-cdc94708-6183-11e7-9097-927026fb78c8.png" alt="tricont" style="max-width: 100%;"></a></p> <p dir="auto">Triangulation misses most data points</p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/631058/27845572-8ff7d132-6184-11e7-9c9f-ec50d489f5c6.png"><img src="https://user-images.githubusercontent.com/631058/27845572-8ff7d132-6184-11e7-9c9f-ec50d489f5c6.png" alt="tricont2" style="max-width: 100%;"></a></p> <p dir="auto">Triangulation includes all data points</p> <p dir="auto"><strong>Matplotlib version</strong></p> <p dir="auto">Seen in version 1.5.1 and higher.<br> Not seen in version 1.3.1</p> <ul dir="auto"> <li>Operating System: Ubuntu 16.04</li> <li>Matplotlib Version: 1.5.1</li> <li>Python Version: 2.7.12</li> <li>Jupyter Version (if applicable):</li> <li>Other Libraries:</li> </ul> <p dir="auto">Installed from Ubuntu package repository</p>
0
<blockquote> <p dir="auto">Issue originally reported by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nicolo-ribaudo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nicolo-ribaudo">@nicolo-ribaudo</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="238411555" data-permission-text="Title is private" data-url="https://github.com/babel/babylon/issues/591" data-hovercard-type="issue" data-hovercard-url="/babel/babylon/issues/591/hovercard" href="https://github.com/babel/babylon/issues/591">babel/babylon#591</a></p> </blockquote> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(a, a) =&gt; b"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">a</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">b</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Babylon should throw something like <code class="notranslate">Argument name clash in arrow function</code></p> <h3 dir="auto">Current Behavior</h3> <p dir="auto"><code class="notranslate">Argument name clash in strict mode</code> (even if that code is not in strict mode)</p> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version</th> </tr> </thead> <tbody> <tr> <td>Babylon</td> <td>7.0.0-beta.14, 6.25.0</td> </tr> </tbody> </table>
<p dir="auto"><a href="https://github.com/ai/browserslist">browserslist</a> provides a way for projects to describe the browsers they need to support which is then used by tools like Autoprefixer to generate the appropriate CSS for that set of browsers.</p> <p dir="auto">6to5 could use this metadata + <a href="https://www.npmjs.com/package/caniuse-db" rel="nofollow">caniusedb</a> to selectively transpile features based on browser support.</p>
0
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="532723942" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/858" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/858/hovercard" href="https://github.com/microsoft/PowerToys/issues/858">#858</a> FancyZones</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18363.476] PowerToys version: 0.14.0.0 PowerToy module for which you are reporting the bug (if applicable):Fancy Zones"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18363.476] PowerToys version: 0.14.0.0 PowerToy module for which you are reporting the bug (if applicable):Fancy Zones </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Snap Explorer.exe to a new zone, eventually the files and folders stop showing up. Sometimes the toolbar disappears. Happens to 3rd party tools such as explore++ as well. The hidden files and folders does not happen if the file explorer window is not snapped to a "fancy zone".</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Powertoys 0.13.0.0 does not exhibit the hiding behavior in explorer.exe, you can always see your files and folders regardless of snap position / screen.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Hidden files and folders in file explorer making selecting a file impossible.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto">Unsnapped<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/58522695/70163631-6b9af400-1685-11ea-9a12-dfa6fa50d3e3.png"><img src="https://user-images.githubusercontent.com/58522695/70163631-6b9af400-1685-11ea-9a12-dfa6fa50d3e3.png" alt="image" style="max-width: 100%;"></a><br> Fancy Zone 0.14.0.0 - Snapped to zone.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/58522695/70163729-938a5780-1685-11ea-8264-735464e139ed.png"><img src="https://user-images.githubusercontent.com/58522695/70163729-938a5780-1685-11ea-8264-735464e139ed.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">Environment</h1> <p dir="auto">Windows build number:[Version 10.0.19033.1]<br> PowerToys version: 14<br> Only with/since version 14!</p> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>open powertoys</li> <li>open Outlook Office 365 MSO (16.0.12130)</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Outlooks open</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">outlooks hang on a black screen and several (unknown) windows are open in Taskmanager but are not really visible</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/55558444/70033268-679ca280-15af-11ea-850f-d18c235fbe28.png"><img src="https://user-images.githubusercontent.com/55558444/70033268-679ca280-15af-11ea-850f-d18c235fbe28.png" alt="outlook" style="max-width: 100%;"></a></p> <p dir="auto">beaviour reproducible<br> Kill outlook, exit Powertoys an reopen Outlook =&gt; Outlook open correct<br> Close outlook, start Powertoys, reopen Outlook =&gt; Outlook can't start</p>
1