text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" error: line not found in debugger output: static void [...]main(); command: gdb -quiet -batch -nx -command=x86_64-unknown-linux-gnu/test/debug-info/limited-debuginfo.debugger.script x86_64-unknown-linux-gnu/test/debug-info/limited-debuginfo.stage2-x86_64-unknown-linux-gnu stdout: ------------------------------------------ All defined functions: File /home/cmr/hacking/rust/src/test/debug-info/limited-debuginfo.rs: static void limited-debuginfo::main(void); static void limited-debuginfo::some_function(void); static void limited-debuginfo::some_other_function(void); static void limited-debuginfo::zzz(void);"><pre class="notranslate"><code class="notranslate"> error: line not found in debugger output: static void [...]main(); command: gdb -quiet -batch -nx -command=x86_64-unknown-linux-gnu/test/debug-info/limited-debuginfo.debugger.script x86_64-unknown-linux-gnu/test/debug-info/limited-debuginfo.stage2-x86_64-unknown-linux-gnu stdout: ------------------------------------------ All defined functions: File /home/cmr/hacking/rust/src/test/debug-info/limited-debuginfo.rs: static void limited-debuginfo::main(void); static void limited-debuginfo::some_function(void); static void limited-debuginfo::some_other_function(void); static void limited-debuginfo::zzz(void); </code></pre></div> <p dir="auto">I think this might be because my terminal is too wide, or perhaps gdb version differences?</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/michaelwoerister/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/michaelwoerister">@michaelwoerister</a></p>
<p dir="auto">Apparently new versions of gdb (I'm seeing this with 7.7) changed the output of of <code class="notranslate">info functions</code>.<br> E.g. instead of <code class="notranslate">static void limited-debuginfo::main();</code> it now outputs <code class="notranslate">static void limited-debuginfo::main(void);</code>.</p> <p dir="auto">Output is as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---- [debug-info] debug-info/limited-debuginfo.rs stdout ---- error: line not found in debugger output: static void limited-debuginfo::main(); command: gdb -quiet -batch -nx -command=x86_64-unknown-linux-gnu/test/debug-info/limited-debuginfo.debugger.script x86_64-unknown-linux-gnu/test/debug-info/limited-debuginfo.stage2-x86_64-unknown-linux-gnu stdout: ------------------------------------------ All defined functions: File src/test/debug-info/limited-debuginfo.rs: static void limited-debuginfo::main(void); static void limited-debuginfo::some_function(void); static void limited-debuginfo::some_other_function(void); static void limited-debuginfo::zzz(void); Non-debugging symbols: 0x0000000000400880 _init 0x00000000004008b0 uvio::new_loop::h616534f7e6ab76adGIa::v0.10.pre@plt 0x00000000004008c0 __libc_start_main@plt 0x00000000004008d0 __gmon_start__@plt 0x00000000004008e0 rust_stack_exhausted@plt 0x00000000004008f0 lang_start::hf9e7230acaab0452Bwc::v0.10.pre@plt 0x0000000000400900 _start 0x0000000000400930 deregister_tm_clones 0x0000000000400960 register_tm_clones 0x00000000004009a0 __do_global_dtors_aux 0x00000000004009c0 frame_dummy 0x0000000000400b70 __libc_csu_init 0x0000000000400be0 __libc_csu_fini 0x0000000000400be4 __morestack 0x0000000000400bf4 _fini Breakpoint 1 at 0x400b00: file src/test/debug-info/limited-debuginfo.rs, line 44. static void limited-debuginfo::zzz(void); [Thread debugging using libthread_db enabled] Using host libthread_db library &quot;/usr/lib/libthread_db.so.1&quot;. [New Thread 0x7ffff7f56700 (LWP 5320)] [New Thread 0x7ffff625c700 (LWP 5323)] [New Thread 0x7ffff615b700 (LWP 5324)] [New Thread 0x7ffff605a700 (LWP 5325)] [New Thread 0x7ffff5f59700 (LWP 5326)] [New Thread 0x7ffff5e58700 (LWP 5327)] [New Thread 0x7ffff5d57700 (LWP 5328)] [New Thread 0x7ffff5c56700 (LWP 5329)] [Switching to Thread 0x7ffff7f56700 (LWP 5320)] Breakpoint 1, limited-debuginfo::zzz () at src/test/debug-info/limited-debuginfo.rs:44 44 fn zzz() {()} 0x0000000000400af1 in limited-debuginfo::some_function () at src/test/debug-info/limited-debuginfo.rs:49 49 zzz(); No locals. [Thread 0x7ffff7f56700 (LWP 5320) exited] [Thread 0x7ffff605a700 (LWP 5325) exited] [Thread 0x7ffff615b700 (LWP 5324) exited] [Thread 0x7ffff5c56700 (LWP 5329) exited] [Thread 0x7ffff5d57700 (LWP 5328) exited] [Thread 0x7ffff5e58700 (LWP 5327) exited] [Thread 0x7ffff625c700 (LWP 5323) exited] [Thread 0x7ffff5f59700 (LWP 5326) exited] [Inferior 1 (process 5280) exited normally] ------------------------------------------ stderr: ------------------------------------------ warning: Could not load shared library symbols for linux-vdso.so.1. Do you need &quot;set solib-search-path&quot; or &quot;set sysroot&quot;? ------------------------------------------ task '[debug-info] debug-info/limited-debuginfo.rs' failed at 'explicit failure', /home/florian/devel/rust/src/compiletest/runtest.rs:950"><pre class="notranslate"><code class="notranslate">---- [debug-info] debug-info/limited-debuginfo.rs stdout ---- error: line not found in debugger output: static void limited-debuginfo::main(); command: gdb -quiet -batch -nx -command=x86_64-unknown-linux-gnu/test/debug-info/limited-debuginfo.debugger.script x86_64-unknown-linux-gnu/test/debug-info/limited-debuginfo.stage2-x86_64-unknown-linux-gnu stdout: ------------------------------------------ All defined functions: File src/test/debug-info/limited-debuginfo.rs: static void limited-debuginfo::main(void); static void limited-debuginfo::some_function(void); static void limited-debuginfo::some_other_function(void); static void limited-debuginfo::zzz(void); Non-debugging symbols: 0x0000000000400880 _init 0x00000000004008b0 uvio::new_loop::h616534f7e6ab76adGIa::v0.10.pre@plt 0x00000000004008c0 __libc_start_main@plt 0x00000000004008d0 __gmon_start__@plt 0x00000000004008e0 rust_stack_exhausted@plt 0x00000000004008f0 lang_start::hf9e7230acaab0452Bwc::v0.10.pre@plt 0x0000000000400900 _start 0x0000000000400930 deregister_tm_clones 0x0000000000400960 register_tm_clones 0x00000000004009a0 __do_global_dtors_aux 0x00000000004009c0 frame_dummy 0x0000000000400b70 __libc_csu_init 0x0000000000400be0 __libc_csu_fini 0x0000000000400be4 __morestack 0x0000000000400bf4 _fini Breakpoint 1 at 0x400b00: file src/test/debug-info/limited-debuginfo.rs, line 44. static void limited-debuginfo::zzz(void); [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7ffff7f56700 (LWP 5320)] [New Thread 0x7ffff625c700 (LWP 5323)] [New Thread 0x7ffff615b700 (LWP 5324)] [New Thread 0x7ffff605a700 (LWP 5325)] [New Thread 0x7ffff5f59700 (LWP 5326)] [New Thread 0x7ffff5e58700 (LWP 5327)] [New Thread 0x7ffff5d57700 (LWP 5328)] [New Thread 0x7ffff5c56700 (LWP 5329)] [Switching to Thread 0x7ffff7f56700 (LWP 5320)] Breakpoint 1, limited-debuginfo::zzz () at src/test/debug-info/limited-debuginfo.rs:44 44 fn zzz() {()} 0x0000000000400af1 in limited-debuginfo::some_function () at src/test/debug-info/limited-debuginfo.rs:49 49 zzz(); No locals. [Thread 0x7ffff7f56700 (LWP 5320) exited] [Thread 0x7ffff605a700 (LWP 5325) exited] [Thread 0x7ffff615b700 (LWP 5324) exited] [Thread 0x7ffff5c56700 (LWP 5329) exited] [Thread 0x7ffff5d57700 (LWP 5328) exited] [Thread 0x7ffff5e58700 (LWP 5327) exited] [Thread 0x7ffff625c700 (LWP 5323) exited] [Thread 0x7ffff5f59700 (LWP 5326) exited] [Inferior 1 (process 5280) exited normally] ------------------------------------------ stderr: ------------------------------------------ warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? ------------------------------------------ task '[debug-info] debug-info/limited-debuginfo.rs' failed at 'explicit failure', /home/florian/devel/rust/src/compiletest/runtest.rs:950 </code></pre></div>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> BUG : <a href="https://stackoverflow.com/questions/48695579/how-to-remove-eval-and-function-constructor-from-webpack-build-to-avoid-csp-issu" rel="nofollow">Stackoverflow Link</a></p> <p dir="auto"><strong>What is the current behavior?</strong><br> It gives both eval and Function contructor which is not required</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="try { // This works if eval is allowed (see CSP) g = g || Function(&quot;return this&quot;)() || (1,eval)(&quot;this&quot;); } catch(e) { // This works if the window reference is available if(typeof window === &quot;object&quot;) g = window; } // Another method of build function setImmediate(callback) { // Callback can either be a function or a string if (typeof callback !== &quot;function&quot;) { callback = new Function(&quot;&quot; + callback); }"><pre class="notranslate"><code class="notranslate">try { // This works if eval is allowed (see CSP) g = g || Function("return this")() || (1,eval)("this"); } catch(e) { // This works if the window reference is available if(typeof window === "object") g = window; } // Another method of build function setImmediate(callback) { // Callback can either be a function or a string if (typeof callback !== "function") { callback = new Function("" + callback); } </code></pre></div> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npm install -g vue-cli $ vue init webpack-simple my-project $ cd my-project $ npm install $ npm run prod You can see in `build.js` having eval "><pre class="notranslate"><code class="notranslate">$ npm install -g vue-cli $ vue init webpack-simple my-project $ cd my-project $ npm install $ npm run prod You can see in `build.js` having eval </code></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong><br> I expect that webpack should provide provision to build according to CSP policy as I am using runtime vue which does not even require compiler.</p> <p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong></p> <p dir="auto">Node.js : 9.5.0</p> <p dir="auto">Tried it with latest config too.<br> <strong>Package.json</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;webpack&quot;: &quot;^3.10.0&quot;, &quot;babel-core&quot;: &quot;^6.18.2&quot;, &quot;babel-loader&quot;: &quot;^7.1.2&quot;, &quot;babel-preset-es2015&quot;: &quot;^6.18.0&quot;, &quot;babel-preset-stage-2&quot;: &quot;^6.24.1&quot;, &quot;file-loader&quot;: &quot;^0.9.0&quot;, &quot;style-loader&quot;: &quot;^0.18.2&quot;, &quot;vue-loader&quot;: &quot;^10.0.2&quot; }"><pre class="notranslate"><code class="notranslate">{ "webpack": "^3.10.0", "babel-core": "^6.18.2", "babel-loader": "^7.1.2", "babel-preset-es2015": "^6.18.0", "babel-preset-stage-2": "^6.24.1", "file-loader": "^0.9.0", "style-loader": "^0.18.2", "vue-loader": "^10.0.2" } </code></pre></div>
<p dir="auto">I am currently migrating webpack.config.js from webpack 3 to webpack 4.</p> <p dir="auto">The application uses the style-loader useable feature to load themes as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="loader = require('../styles/app.theme.' + theme + '.less'); loader(function (style) { style.use(); });"><pre class="notranslate"><code class="notranslate">loader = require('../styles/app.theme.' + theme + '.less'); loader(function (style) { style.use(); }); </code></pre></div> <p dir="auto">It also uses the bundle-loader to load cultures as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var loader = require('bundle-loader?name=[name]!./cultures/app.culture.' + locale + '.js'); loader(setLocale);"><pre class="notranslate"><code class="notranslate">var loader = require('bundle-loader?name=[name]!./cultures/app.culture.' + locale + '.js'); loader(setLocale); </code></pre></div> <p dir="auto">My webpack 3 configuration is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var path = require('path'); var util = require('util'); var webpack = require('webpack'); var config = require('./webapp/config'); var pkg = require('./package.json'); var environment = config.environment || 'development'; console.log('webpack environment is ' + environment); console.log('webpack public path is ' + config.get('uris:webpack:root')); console.log('building version ' + pkg.version); /** * DefinePlugin */ var definePlugin = new webpack.DefinePlugin({ __NODE_ENV__: JSON.stringify(environment), __VERSION__: JSON.stringify(pkg.version) }); /** * CommonsChunkPlugin */ var commonsChunkPlugin = new webpack.optimize.CommonsChunkPlugin({ name: 'common', filename: 'common.bundle.js', chunks: ['error', 'home', 'post', 'page', 'search'] }); /** * Webpack configuration */ module.exports = { context: path.join(__dirname, '/'), devtool: 'source-map', entry: { // We need init especially because of FOUJI init: './js/app.init.js', // One entry per view error: './js/app.error.js', home: './js/app.home.js', page: './js/app.page.js', post: './js/app.post.js', search: './js/app.search.js' }, externals: { // CDN modules jquery: 'jQuery' }, output: { path: path.join(__dirname, '/webapp/public/build'), publicPath: config.get('uris:webpack:root'), filename: '[name].bundle.js?v=' + pkg.version, chunkFilename: '[name].chunk.js?v=' + pkg.version }, resolve: { modules: [ path.resolve('.'), path.resolve('./js/vendor/kendo'), 'node_modules' ] }, module: { rules: [ { test: /\.jsx/, // see ./web_modules/jsx-loader use: [ { loader: './web_modules/jsx-loader', options: { config: 'webapp/config' } } ] }, { test: /app\.theme\.[a-z0-9]+\.less$/, use: [ { loader: 'bundle-loader?name=[name]' }, { loader: 'style-loader/useable' }, { loader: 'css-loader', options: { importLoaders: 2 } }, { loader: 'postcss-loader' }, { loader: 'less-loader', options: { compress: true, relativeUrls: true, strictMath: true } } ] }, { test: /\.less$/, exclude: /app\.theme\.[a-z0-9]+\.less$/, use: [ { loader: 'style-loader' }, { loader: 'css-loader', options: { importLoaders: 1 } }, { loader: 'postcss-loader' }, { loader: 'less-loader', options: { compress: true, relativeUrls: true, strictMath: true } } ] }, { test: /\.css$/, use: [ { loader: 'style-loader' }, { loader: 'css-loader', options: { importLoaders: 1 } }, { loader: 'postcss-loader' } ] }, { test: /\.(gif|png|jpe?g)$/, use: [ { loader: 'url-loader', options: { limit: 8192 } } ] }, { test: /\.woff(2)?/, use: [ { loader: 'url-loader', options: { limit: 10000, mimetype: 'application/font-woff' } } ] }, { test: /\.(ttf|eot|svg)/, use: [ { loader: 'file-loader' } ] } ] }, plugins: [ definePlugin, commonsChunkPlugin ] };"><pre class="notranslate"><code class="notranslate">var path = require('path'); var util = require('util'); var webpack = require('webpack'); var config = require('./webapp/config'); var pkg = require('./package.json'); var environment = config.environment || 'development'; console.log('webpack environment is ' + environment); console.log('webpack public path is ' + config.get('uris:webpack:root')); console.log('building version ' + pkg.version); /** * DefinePlugin */ var definePlugin = new webpack.DefinePlugin({ __NODE_ENV__: JSON.stringify(environment), __VERSION__: JSON.stringify(pkg.version) }); /** * CommonsChunkPlugin */ var commonsChunkPlugin = new webpack.optimize.CommonsChunkPlugin({ name: 'common', filename: 'common.bundle.js', chunks: ['error', 'home', 'post', 'page', 'search'] }); /** * Webpack configuration */ module.exports = { context: path.join(__dirname, '/'), devtool: 'source-map', entry: { // We need init especially because of FOUJI init: './js/app.init.js', // One entry per view error: './js/app.error.js', home: './js/app.home.js', page: './js/app.page.js', post: './js/app.post.js', search: './js/app.search.js' }, externals: { // CDN modules jquery: 'jQuery' }, output: { path: path.join(__dirname, '/webapp/public/build'), publicPath: config.get('uris:webpack:root'), filename: '[name].bundle.js?v=' + pkg.version, chunkFilename: '[name].chunk.js?v=' + pkg.version }, resolve: { modules: [ path.resolve('.'), path.resolve('./js/vendor/kendo'), 'node_modules' ] }, module: { rules: [ { test: /\.jsx/, // see ./web_modules/jsx-loader use: [ { loader: './web_modules/jsx-loader', options: { config: 'webapp/config' } } ] }, { test: /app\.theme\.[a-z0-9]+\.less$/, use: [ { loader: 'bundle-loader?name=[name]' }, { loader: 'style-loader/useable' }, { loader: 'css-loader', options: { importLoaders: 2 } }, { loader: 'postcss-loader' }, { loader: 'less-loader', options: { compress: true, relativeUrls: true, strictMath: true } } ] }, { test: /\.less$/, exclude: /app\.theme\.[a-z0-9]+\.less$/, use: [ { loader: 'style-loader' }, { loader: 'css-loader', options: { importLoaders: 1 } }, { loader: 'postcss-loader' }, { loader: 'less-loader', options: { compress: true, relativeUrls: true, strictMath: true } } ] }, { test: /\.css$/, use: [ { loader: 'style-loader' }, { loader: 'css-loader', options: { importLoaders: 1 } }, { loader: 'postcss-loader' } ] }, { test: /\.(gif|png|jpe?g)$/, use: [ { loader: 'url-loader', options: { limit: 8192 } } ] }, { test: /\.woff(2)?/, use: [ { loader: 'url-loader', options: { limit: 10000, mimetype: 'application/font-woff' } } ] }, { test: /\.(ttf|eot|svg)/, use: [ { loader: 'file-loader' } ] } ] }, plugins: [ definePlugin, commonsChunkPlugin ] }; </code></pre></div> <p dir="auto">It produces:</p> <ul dir="auto"> <li>a chunk for each culture</li> <li>a chunk for each theme</li> <li>a bundle for each page (entry point)</li> <li>a common bundle for all code that is common to all entry points.</li> </ul> <p dir="auto">In order to migrate this to webpack 4, I have removed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var commonsChunkPlugin = new webpack.optimize.CommonsChunkPlugin({ name: 'common', filename: 'common.bundle.js', chunks: ['error', 'home', 'post', 'page', 'search'] });"><pre class="notranslate"><code class="notranslate">var commonsChunkPlugin = new webpack.optimize.CommonsChunkPlugin({ name: 'common', filename: 'common.bundle.js', chunks: ['error', 'home', 'post', 'page', 'search'] }); </code></pre></div> <p dir="auto">And I have added the following optimization section:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="optimization: { minimize: true, splitChunks: { // https://gist.github.com/sokra/1522d586b8e5c0f5072d7565c2bee693 cacheGroups: { common: { chunks: 'initial', // enforce: true, filename: '[name].bundle.js?v=' + pkg.version, name: 'common', test: /[\\/]js[\\/]/ // reuseExistingChunk: true } } } },"><pre class="notranslate"><code class="notranslate">optimization: { minimize: true, splitChunks: { // https://gist.github.com/sokra/1522d586b8e5c0f5072d7565c2bee693 cacheGroups: { common: { chunks: 'initial', // enforce: true, filename: '[name].bundle.js?v=' + pkg.version, name: 'common', test: /[\\/]js[\\/]/ // reuseExistingChunk: true } } } }, </code></pre></div> <p dir="auto">As a result, I get with webpack 4 the same list of files as produced with webpack 3, except webpack 4 does not detect that chunks have been produced for themes loaded with the style-loader <strong>useable</strong> feature and embeds all themes (for which it produces chunks) into each entry bundle. As a result themes are duplicated in their own dedicated chunks and in each entry bundle, resulting in much bigger entry bundles.</p> <p dir="auto">Note: enforce and reuseExistingChunk do not affect the output.</p> <p dir="auto"><strong>Is this a bug or a configuration issue?</strong></p> <p dir="auto">Should you feel the need to experiment, the two following projects have very similar webpack configs:</p> <ul dir="auto"> <li><a href="https://github.com/kidoju/Kidoju-Blog">https://github.com/kidoju/Kidoju-Blog</a> (expressJS)</li> <li><a href="https://github.com/kidoju/Kidoju-Mobile">https://github.com/kidoju/Kidoju-Mobile</a> (phonegap)</li> </ul>
0
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [30]: df = pd.DataFrame(dict(a=['A', 'B', 'C'], b=[2, 3, 4])) In [31]: plt.scatter(df['a'], df['b']) Out[31]: &lt;matplotlib.collections.PathCollection at 0x7f17e17b41d0&gt;"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">30</span>]: <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-en">dict</span>(<span class="pl-s1">a</span><span class="pl-c1">=</span>[<span class="pl-s">'A'</span>, <span class="pl-s">'B'</span>, <span class="pl-s">'C'</span>], <span class="pl-s1">b</span><span class="pl-c1">=</span>[<span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>])) <span class="pl-v">In</span> [<span class="pl-c1">31</span>]: <span class="pl-s1">plt</span>.<span class="pl-en">scatter</span>(<span class="pl-s1">df</span>[<span class="pl-s">'a'</span>], <span class="pl-s1">df</span>[<span class="pl-s">'b'</span>]) <span class="pl-v">Out</span>[<span class="pl-c1">31</span>]: <span class="pl-c1">&lt;</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">collections</span>.<span class="pl-v">PathCollection</span> <span class="pl-s1">at</span> <span class="pl-c1">0x7f17e17b41d0</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">This works, and produces this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/167164/33918097-b35d2262-e005-11e7-89a3-31a47647cf7d.png"><img src="https://user-images.githubusercontent.com/167164/33918097-b35d2262-e005-11e7-89a3-31a47647cf7d.png" alt="figure_1" style="max-width: 100%;"></a></p> <p dir="auto">On the other hand, this doesn't:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [32]: df.plot.scatter(x='a', y='b') --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /data/documents/uni/phd/projects/FluxnetTrafficLights/scripts/plots/predictability_plots.py in &lt;module&gt;() ----&gt; 1 df.plot.scatter(x='a', y='b') ~/miniconda3/envs/science/lib/python3.6/site-packages/pandas/plotting/_core.py in scatter(self, x, y, s, c, **kwds) 2803 axes : matplotlib.AxesSubplot or np.array of them 2804 &quot;&quot;&quot; -&gt; 2805 return self(kind='scatter', x=x, y=y, c=c, s=s, **kwds) 2806 2807 def hexbin(self, x, y, C=None, reduce_C_function=None, gridsize=None, ~/miniconda3/envs/science/lib/python3.6/site-packages/pandas/plotting/_core.py in __call__(self, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds) 2625 fontsize=fontsize, colormap=colormap, table=table, 2626 yerr=yerr, xerr=xerr, secondary_y=secondary_y, -&gt; 2627 sort_columns=sort_columns, **kwds) 2628 __call__.__doc__ = plot_frame.__doc__ 2629 ~/miniconda3/envs/science/lib/python3.6/site-packages/pandas/plotting/_core.py in plot_frame(data, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds) 1867 yerr=yerr, xerr=xerr, 1868 secondary_y=secondary_y, sort_columns=sort_columns, -&gt; 1869 **kwds) 1870 1871 ~/miniconda3/envs/science/lib/python3.6/site-packages/pandas/plotting/_core.py in _plot(data, x, y, subplots, ax, kind, **kwds) 1650 if isinstance(data, DataFrame): 1651 plot_obj = klass(data, x=x, y=y, subplots=subplots, ax=ax, -&gt; 1652 kind=kind, **kwds) 1653 else: 1654 raise ValueError(&quot;plot kind %r can only be used for data frames&quot; ~/miniconda3/envs/science/lib/python3.6/site-packages/pandas/plotting/_core.py in __init__(self, data, x, y, s, c, **kwargs) 808 # the handling of this argument later 809 s = 20 --&gt; 810 super(ScatterPlot, self).__init__(data, x, y, s=s, **kwargs) 811 if is_integer(c) and not self.data.columns.holds_integer(): 812 c = self.data.columns[c] ~/miniconda3/envs/science/lib/python3.6/site-packages/pandas/plotting/_core.py in __init__(self, data, x, y, **kwargs) 783 y = self.data.columns[y] 784 if len(self.data[x]._get_numeric_data()) == 0: --&gt; 785 raise ValueError(self._kind + ' requires x column to be numeric') 786 if len(self.data[y]._get_numeric_data()) == 0: 787 raise ValueError(self._kind + ' requires y column to be numeric') ValueError: scatter requires x column to be numeric"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">32</span>]: <span class="pl-s1">df</span>.<span class="pl-s1">plot</span>.<span class="pl-en">scatter</span>(<span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">'a'</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'b'</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</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">ValueError</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">/</span><span class="pl-s1">data</span><span class="pl-c1">/</span><span class="pl-s1">documents</span><span class="pl-c1">/</span><span class="pl-s1">uni</span><span class="pl-c1">/</span><span class="pl-s1">phd</span><span class="pl-c1">/</span><span class="pl-s1">projects</span><span class="pl-c1">/</span><span class="pl-v">FluxnetTrafficLights</span><span class="pl-c1">/</span><span class="pl-s1">scripts</span><span class="pl-c1">/</span><span class="pl-s1">plots</span><span class="pl-c1">/</span><span class="pl-s1">predictability_plots</span>.<span class="pl-s1">py</span> <span class="pl-c1">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">df</span>.<span class="pl-s1">plot</span>.<span class="pl-en">scatter</span>(<span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">'a'</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'b'</span>) <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">science</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">6</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">plotting</span><span class="pl-c1">/</span><span class="pl-s1">_core</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">scatter</span>(<span class="pl-s1">self</span>, <span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">s</span>, <span class="pl-s1">c</span>, <span class="pl-c1">**</span><span class="pl-s1">kwds</span>) <span class="pl-c1">2803</span> <span class="pl-s1">axes</span> : <span class="pl-s1">matplotlib</span>.<span class="pl-v">AxesSubplot</span> <span class="pl-c1">or</span> <span class="pl-s1">np</span>.<span class="pl-s1">array</span> <span class="pl-s1">of</span> <span class="pl-s1">them</span> <span class="pl-c1">2804</span> """ -&gt; 2805 return self(kind='scatter', x=x, y=y, c=c, s=s, **kwds) 2806 2807 def hexbin(self, x, y, C=None, reduce_C_function=None, gridsize=None, ~/miniconda3/envs/science/lib/python3.6/site-packages/pandas/plotting/_core.py in __call__(self, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds) 2625 fontsize=fontsize, colormap=colormap, table=table, 2626 yerr=yerr, xerr=xerr, secondary_y=secondary_y, -&gt; 2627 sort_columns=sort_columns, **kwds) 2628 __call__.__doc__ = plot_frame.__doc__ 2629 ~/miniconda3/envs/science/lib/python3.6/site-packages/pandas/plotting/_core.py in plot_frame(data, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds) 1867 yerr=yerr, xerr=xerr, 1868 secondary_y=secondary_y, sort_columns=sort_columns, -&gt; 1869 **kwds) 1870 1871 ~/miniconda3/envs/science/lib/python3.6/site-packages/pandas/plotting/_core.py in _plot(data, x, y, subplots, ax, kind, **kwds) 1650 if isinstance(data, DataFrame): 1651 plot_obj = klass(data, x=x, y=y, subplots=subplots, ax=ax, -&gt; 1652 kind=kind, **kwds) 1653 else: 1654 raise ValueError("plot kind %r can only be used for data frames" <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">science</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">.6</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">plotting</span><span class="pl-c1">/</span><span class="pl-s1">_core</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">data</span>, <span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">s</span>, <span class="pl-s1">c</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">808</span> <span class="pl-c"># the handling of this argument later</span> <span class="pl-c1">809</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-c1">20</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">810</span> <span class="pl-en">super</span>(<span class="pl-v">ScatterPlot</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>(<span class="pl-s1">data</span>, <span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">s</span><span class="pl-c1">=</span><span class="pl-s1">s</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">811</span> <span class="pl-k">if</span> <span class="pl-en">is_integer</span>(<span class="pl-s1">c</span>) <span class="pl-c1">and</span> <span class="pl-c1">not</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span>.<span class="pl-s1">columns</span>.<span class="pl-en">holds_integer</span>(): <span class="pl-c1">812</span> <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span>.<span class="pl-s1">columns</span>[<span class="pl-s1">c</span>] <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">science</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">6</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">plotting</span><span class="pl-c1">/</span><span class="pl-s1">_core</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">data</span>, <span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">783</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span>.<span class="pl-s1">columns</span>[<span class="pl-s1">y</span>] <span class="pl-c1">784</span> <span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">data</span>[<span class="pl-s1">x</span>].<span class="pl-en">_get_numeric_data</span>()) <span class="pl-c1">==</span> <span class="pl-c1">0</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">785</span> <span class="pl-s1">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s1">self</span>.<span class="pl-s1">_kind</span> <span class="pl-c1">+</span> <span class="pl-s">' requires x column to be numeric'</span>) <span class="pl-c1">786</span> <span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">data</span>[<span class="pl-s1">y</span>].<span class="pl-en">_get_numeric_data</span>()) <span class="pl-c1">==</span> <span class="pl-c1">0</span>: <span class="pl-c1">787</span> <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s1">self</span>.<span class="pl-s1">_kind</span> <span class="pl-c1">+</span> <span class="pl-s">' requires y column to be numeric'</span>) <span class="pl-v">ValueError</span>: <span class="pl-s1">scatter</span> <span class="pl-s1">requires</span> <span class="pl-s1">x</span> <span class="pl-s1">column</span> <span class="pl-s1">to</span> <span class="pl-s1">be</span> <span class="pl-s1">numeric</span></pre></div> <p dir="auto">Why does pandas require x to be numeric if matplotlib doesn't?</p> <p dir="auto">using versions from conda, on Kubuntu 17.10:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="matplotlib 2.1.0 py36hba5de38_0 pandas 0.20.3 py36_0 python 3.6.3 h0ef2715_3 "><pre class="notranslate"><code class="notranslate">matplotlib 2.1.0 py36hba5de38_0 pandas 0.20.3 py36_0 python 3.6.3 h0ef2715_3 </code></pre></div>
<p dir="auto">This is another issue I've found in code that used to work:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd tm = pd.DatetimeIndex(pd.to_datetime([&quot;2014-01-01 10:10:10&quot;]), tz='UTC').tz_convert('Europe/Rome') df = pd.DataFrame({'tm': tm}) df.set_index(df.tm, inplace=True) print(df.tm[0].hour) print(df.index[0].hour)"><pre class="notranslate"><code class="notranslate">import pandas as pd tm = pd.DatetimeIndex(pd.to_datetime(["2014-01-01 10:10:10"]), tz='UTC').tz_convert('Europe/Rome') df = pd.DataFrame({'tm': tm}) df.set_index(df.tm, inplace=True) print(df.tm[0].hour) print(df.index[0].hour) </code></pre></div> <p dir="auto">writes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="11 10"><pre class="notranslate"><code class="notranslate">11 10 </code></pre></div> <p dir="auto">It's unclear to me why the time is shifted. If we take a pd.DatetimeIndex which is not directly contained in the df, it works as it should:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tm = pd.DatetimeIndex(pd.to_datetime([&quot;2014-01-01 10:10:10&quot;]), tz='UTC').tz_convert('Europe/Rome') df = pd.DataFrame({'tm': tm}) df.set_index(tm, inplace=True) print(df.tm[0].hour) print(df.index[0].hour)"><pre class="notranslate"><code class="notranslate">tm = pd.DatetimeIndex(pd.to_datetime(["2014-01-01 10:10:10"]), tz='UTC').tz_convert('Europe/Rome') df = pd.DataFrame({'tm': tm}) df.set_index(tm, inplace=True) print(df.tm[0].hour) print(df.index[0].hour) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="11 11"><pre class="notranslate"><code class="notranslate">11 11 </code></pre></div>
0
<p dir="auto">Hi,<br> In some devices (Moto X) do not download correctly, like the screenshot attached.<br> When i skipMemoryCache(true) it works, because Glide download the image again.<br> I already use asBitmap() with imageDecoder() and the problem still occur.</p> <p dir="auto">But, in my other device (Nexus 4) this problem doesn't occur. Glide works perfectly</p> <p dir="auto">I tried to config listener() to log Exceptions but never called onException() method. In other words, no Exceptions occurs. Its weird.</p> <p dir="auto">Best,<br> Thiago Luis.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5911164/11127862/8dd736e6-895d-11e5-9522-ac0da09c6243.png"><img src="https://cloud.githubusercontent.com/assets/5911164/11127862/8dd736e6-895d-11e5-9522-ac0da09c6243.png" alt="screenshot_2015-11-12-16-45-43" style="max-width: 100%;"></a></p>
<p dir="auto">I load picture with the code</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(mContext).load(caseDetail.getPicInfo().getImage()).crossFade(250).placeholder(R.color.pic_load).error(R.color.pic_load).into(holder.ivPic);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">mContext</span>).<span class="pl-en">load</span>(<span class="pl-s1">caseDetail</span>.<span class="pl-en">getPicInfo</span>().<span class="pl-en">getImage</span>()).<span class="pl-en">crossFade</span>(<span class="pl-c1">250</span>).<span class="pl-en">placeholder</span>(<span class="pl-smi">R</span>.<span class="pl-s1">color</span>.<span class="pl-s1">pic_load</span>).<span class="pl-en">error</span>(<span class="pl-smi">R</span>.<span class="pl-s1">color</span>.<span class="pl-s1">pic_load</span>).<span class="pl-en">into</span>(<span class="pl-s1">holder</span>.<span class="pl-s1">ivPic</span>);</pre></div> <p dir="auto">but it sometimes happe ton black block, some the like <a href="https://plus.google.com/u/0/photos/117861125674754335155/albums/6187610208764710769" rel="nofollow">the picture</a> , how can I fix the problem?</p>
1
<p dir="auto"><strong>Migrated issue, originally created by Johnathon Hege</strong></p> <p dir="auto">It appears that insert().from_select(), when passed a CTE, doesn't generate syntactically valid MS SQL code. The code it generates (using the recursive "parts" example in the CTE documentation) looks like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSERT INTO destination (part, sub_part, quantity) WITH anon_1(part, sub_part, quantity) AS (SELECT parts.sub_part AS sub_part, parts.part AS part, parts.quantity AS quantity FROM parts WHERE parts.part = ? UNION ALL SELECT parts_1.sub_part AS sub_part, parts_1.part AS part, parts_1.quantity AS quantity FROM parts AS parts_1, anon_1 AS anon_2 WHERE parts_1.part = anon_2.sub_part) SELECT anon_1.part, anon_1.sub_part, anon_1.quantity FROM anon_1 "><pre class="notranslate"><code class="notranslate">INSERT INTO destination (part, sub_part, quantity) WITH anon_1(part, sub_part, quantity) AS (SELECT parts.sub_part AS sub_part, parts.part AS part, parts.quantity AS quantity FROM parts WHERE parts.part = ? UNION ALL SELECT parts_1.sub_part AS sub_part, parts_1.part AS part, parts_1.quantity AS quantity FROM parts AS parts_1, anon_1 AS anon_2 WHERE parts_1.part = anon_2.sub_part) SELECT anon_1.part, anon_1.sub_part, anon_1.quantity FROM anon_1 </code></pre></div> <p dir="auto">But SQL Server requires the INSERT below the CTE definition, as below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WITH anon_1(part, sub_part, quantity) AS (SELECT parts.sub_part AS sub_part, parts.part AS part, parts.quantity AS quantity FROM parts WHERE parts.part = ? UNION ALL SELECT parts_1.sub_part AS sub_part, parts_1.part AS part, parts_1.quantity AS quantity FROM parts AS parts_1, anon_1 AS anon_2 WHERE parts_1.part = anon_2.sub_part) INSERT INTO destination (part, sub_part, quantity) SELECT anon_1.part, anon_1.sub_part, anon_1.quantity FROM anon_1 "><pre class="notranslate"><code class="notranslate">WITH anon_1(part, sub_part, quantity) AS (SELECT parts.sub_part AS sub_part, parts.part AS part, parts.quantity AS quantity FROM parts WHERE parts.part = ? UNION ALL SELECT parts_1.sub_part AS sub_part, parts_1.part AS part, parts_1.quantity AS quantity FROM parts AS parts_1, anon_1 AS anon_2 WHERE parts_1.part = anon_2.sub_part) INSERT INTO destination (part, sub_part, quantity) SELECT anon_1.part, anon_1.sub_part, anon_1.quantity FROM anon_1 </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <p dir="auto">apparently its all possible now. might as well make a new syntax bonanza out of it:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WITH upsert AS ( UPDATE metric k SET k.count = k.count + 5 WHERE event = &quot;foo&quot; AND interval = &quot;D&quot; and date = &quot;whatever&quot; RETURNING k.* ) INSERT INTO metric (event, interval, date, count) SELECT (&quot;foo&quot;, &quot;D&quot;, &quot;whatever&quot;, 5) WHERE NOT EXISTS ( SELECT 1 FROM upsert );"><pre class="notranslate"><code class="notranslate">WITH upsert AS ( UPDATE metric k SET k.count = k.count + 5 WHERE event = "foo" AND interval = "D" and date = "whatever" RETURNING k.* ) INSERT INTO metric (event, interval, date, count) SELECT ("foo", "D", "whatever", 5) WHERE NOT EXISTS ( SELECT 1 FROM upsert ); </code></pre></div> <p dir="auto"><a href="http://www.postgresql.org/docs/9.1/static/sql-insert.html" rel="nofollow">http://www.postgresql.org/docs/9.1/static/sql-insert.html</a></p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/2551/ticket_2551.patch">ticket_2551.patch</a> | <a href="../wiki/imported_issue_attachments/2551/CTE.sqlalchemy">CTE.sqlalchemy</a></p>
1
<h2 dir="auto">Question</h2> <p dir="auto">Upgrade 4.1.1 to 5.2.1, I got an error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myTestController': Unsatisfied dependency expressed through method 'setMyTestService' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myTestServiceImpl': Unsatisfied dependency expressed through method 'setMyTestDao' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myTestDao' defined in file [/Users/waylon/Project/fjld/test/server/account/target/classes/com/fjld/test/server/account/dao/MyTestDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/ShardingSphereAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'shardingSphereDataSource' threw exception; nested exception is org.yaml.snakeyaml.error.YAMLException: Unable to find getter for property 'tenantColumn' on object com.alibaba.druid.wall.WallFilter@60df7989:java.lang.reflect.InvocationTargetException "><pre class="notranslate"><code class="notranslate">org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myTestController': Unsatisfied dependency expressed through method 'setMyTestService' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myTestServiceImpl': Unsatisfied dependency expressed through method 'setMyTestDao' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myTestDao' defined in file [/Users/waylon/Project/fjld/test/server/account/target/classes/com/fjld/test/server/account/dao/MyTestDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/ShardingSphereAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'shardingSphereDataSource' threw exception; nested exception is org.yaml.snakeyaml.error.YAMLException: Unable to find getter for property 'tenantColumn' on object com.alibaba.druid.wall.WallFilter@60df7989:java.lang.reflect.InvocationTargetException </code></pre></div>
<h2 dir="auto">Bug Report</h2> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">v5.2.0</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-JDBC</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <ol dir="auto"> <li>Create a druid datasource, and then add some filters.</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="DruidDataSource druidDataSource = new DruidDataSource(); // ... druidDataSource.setProxyFilters(buildFilters());"><pre class="notranslate"><span class="pl-smi">DruidDataSource</span> <span class="pl-s1">druidDataSource</span> = <span class="pl-k">new</span> <span class="pl-smi">DruidDataSource</span>(); <span class="pl-c">// ...</span> <span class="pl-s1">druidDataSource</span>.<span class="pl-en">setProxyFilters</span>(<span class="pl-en">buildFilters</span>());</pre></div> <ol start="2" dir="auto"> <li>Create a shardingsphere datasource by ShardingSphereDataSourceFactory</li> <li>Exception occurs: Can't construct a java object for tag:yaml.org,2002:com.alibaba.druid.filter.stat.StatFilter; exception=Class is not accepted: com.alibaba.druid.filter.stat.StatFilter.</li> </ol> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> <p dir="auto"><a href="https://github.com/caol64/sharding-test">https://github.com/caol64/sharding-test</a></p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> When i use animations in HTML, SSR crashes.</p> <p dir="auto">I have my animation defined and used in html like this</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div [@flyIn]&gt;&lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">[@flyIn]</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">I have browser module which imports <code class="notranslate">import {BrowserAnimationsModule} from '@angular/platform-browser/animations';</code></p> <p dir="auto">I received error on server<br> Error: Found the synthetic property <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/flyin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/flyin">@flyin</a>. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.</p> <p dir="auto">When i import in server module <code class="notranslate">import {NoopAnimationsModule} from '@angular/platform-browser/animations';</code><br> i receive another error which cause crash of server.</p> <p dir="auto">EXCEPTION: document is not defined<br> ORIGINAL STACKTRACE:<br> ReferenceError: document is not defined<br> at DefaultDomRenderer2.selectRootElement (F:\git\ng-universal-demo\dist\server.js:31873:72)<br> at createElement (F:\git\ng-universal-demo\dist\server.js:9067:23)<br> at createViewNodes (F:\git\ng-universal-demo\dist\server.js:11533:44)<br> at createRootView (F:\git\ng-universal-demo\dist\server.js:11480:5)<br> at Object.createProdRootView [as createRootView] (F:\git\ng-universal-demo\dist\server.js:12049:12)<br> at ComponentFactory_.create (F:\git\ng-universal-demo\dist\server.js:9485:46)<br> at ApplicationRef_.bootstrap (F:\git\ng-universal-demo\dist\server.js:4862:57)<br> at F:\git\ng-universal-demo\dist\server.js:4657:89<br> at Array.forEach (native)<br> at PlatformRef_.<em>moduleDoBootstrap (F:\git\ng-universal-demo\dist\server.js:4657:42)<br> at F:\git\ng-universal-demo\dist\server.js:4620:27<br> at ZoneDelegate.invoke (F:\git\ng-universal-demo\dist\server.js:59567:26)<br> at Object.onInvoke (F:\git\ng-universal-demo\dist\server.js:4017:37)<br> at ZoneDelegate.invoke (F:\git\ng-universal-demo\dist\server.js:59566:32)<br> at Zone.run (F:\git\ng-universal-demo\dist\server.js:59359:43)<br> Unhandled Promise rejection: document is not defined ; Zone: ; Task: Promise.then ; Value: { ReferenceError: document is not defined<br> at DefaultDomRenderer2.selectRootElement (F:\git\ng-universal-demo\dist\server.js:31873:72)<br> at createElement (F:\git\ng-universal-demo\dist\server.js:9067:23)<br> at createViewNodes (F:\git\ng-universal-demo\dist\server.js:11533:44)<br> at createRootView (F:\git\ng-universal-demo\dist\server.js:11480:5)<br> at Object.createProdRootView [as createRootView] (F:\git\ng-universal-demo\dist\server.js:12049:12)<br> at ComponentFactory</em>.create (F:\git\ng-universal-demo\dist\server.js:9485:46)<br> at ApplicationRef_.bootstrap (F:\git\ng-universal-demo\dist\server.js:4862:57)<br> at F:\git\ng-universal-demo\dist\server.js:4657:89<br> at Array.forEach (native)<br> at PlatformRef_._moduleDoBootstrap (F:\git\ng-universal-demo\dist\server.js:4657:42)<br> at F:\git\ng-universal-demo\dist\server.js:4620:27<br> at ZoneDelegate.invoke (F:\git\ng-universal-demo\dist\server.js:59567:26)<br> at Object.onInvoke (F:\git\ng-universal-demo\dist\server.js:4017:37)<br> at ZoneDelegate.invoke (F:\git\ng-universal-demo\dist\server.js:59566:32)<br> at Zone.run (F:\git\ng-universal-demo\dist\server.js:59359:43)<br> __zone_symbol__currentTask:<br> ZoneTask {<br> zone:<br> Zone {<br> _properties: {},<br> <em>parent: null,<br> <em>name: '',<br> <em>zoneDelegate: [Object] },<br> runCount: 0,<br> <em>zoneDelegates: null,<br> <em>state: 'notScheduled',<br> type: 'microTask',<br> source: 'Promise.then',<br> data: undefined,<br> scheduleFn: undefined,<br> cancelFn: null,<br> callback: [Function],<br> invoke: [Function] } } ReferenceError: document is not defined<br> at DefaultDomRenderer2.selectRootElement (F:\git\ng-universal-demo\dist\server.js:31873:72)<br> at createElement (F:\git\ng-universal-demo\dist\server.js:9067:23)<br> at createViewNodes (F:\git\ng-universal-demo\dist\server.js:11533:44)<br> at createRootView (F:\git\ng-universal-demo\dist\server.js:11480:5)<br> at Object.createProdRootView [as createRootView] (F:\git\ng-universal-demo\dist\server.js:12049:12)<br> at ComponentFactory</em>.create (F:\git\ng-universal-demo\dist\server.js:9485:46)<br> at ApplicationRef</em>.bootstrap (F:\git\ng-universal-demo\dist\server.js:4862:57)<br> at F:\git\ng-universal-demo\dist\server.js:4657:89<br> at Array.forEach (native)<br> at PlatformRef</em>.<em>moduleDoBootstrap (F:\git\ng-universal-demo\dist\server.js:4657:42)<br> at F:\git\ng-universal-demo\dist\server.js:4620:27<br> at ZoneDelegate.invoke (F:\git\ng-universal-demo\dist\server.js:59567:26)<br> at Object.onInvoke (F:\git\ng-universal-demo\dist\server.js:4017:37)<br> at ZoneDelegate.invoke (F:\git\ng-universal-demo\dist\server.js:59566:32)<br> at Zone.run (F:\git\ng-universal-demo\dist\server.js:59359:43)<br> { Error: Uncaught (in promise): ReferenceError: document is not defined<br> ReferenceError: document is not defined<br> at DefaultDomRenderer2.selectRootElement (F:\git\ng-universal-demo\dist\server.js:31873:72)<br> at createElement (F:\git\ng-universal-demo\dist\server.js:9067:23)<br> at createViewNodes (F:\git\ng-universal-demo\dist\server.js:11533:44)<br> at createRootView (F:\git\ng-universal-demo\dist\server.js:11480:5)<br> at Object.createProdRootView [as createRootView] (F:\git\ng-universal-demo\dist\server.js:12049:12)<br> at ComponentFactory</em>.create (F:\git\ng-universal-demo\dist\server.js:9485:46)<br> at ApplicationRef.bootstrap (F:\git\ng-universal-demo\dist\server.js:4862:57)<br> at F:\git\ng-universal-demo\dist\server.js:4657:89<br> at Array.forEach (native)<br> at PlatformRef.<em>moduleDoBootstrap (F:\git\ng-universal-demo\dist\server.js:4657:42)<br> at F:\git\ng-universal-demo\dist\server.js:4620:27<br> at ZoneDelegate.invoke (F:\git\ng-universal-demo\dist\server.js:59567:26)<br> at Object.onInvoke (F:\git\ng-universal-demo\dist\server.js:4017:37)<br> at ZoneDelegate.invoke (F:\git\ng-universal-demo\dist\server.js:59566:32)<br> at Zone.run (F:\git\ng-universal-demo\dist\server.js:59359:43)<br> at resolvePromise (F:\git\ng-universal-demo\dist\server.js:59898:31) []<br> at resolvePromise (F:\git\ng-universal-demo\dist\server.js:59869:17) []<br> at F:\git\ng-universal-demo\dist\server.js:59946:17 []<br> at Zone.runTask (F:\git\ng-universal-demo\dist\server.js:59399:47) [ =&gt; ]<br> at drainMicroTaskQueue (F:\git\ng-universal-demo\dist\server.js:59779:35) []<br> at ZoneTask.invoke (F:\git\ng-universal-demo\dist\server.js:59657:25) []<br> at data.args.(anonymous function) (F:\git\ng-universal-demo\dist\server.js:60752:25) []<br> at FSReqWrap.oncomplete (fs.js:114:15) []<br> <em><em>zone_symbol__error:<br> { Error: Uncaught (in promise): ReferenceError: document is not defined<br> ReferenceError: document is not defined<br> at DefaultDomRenderer2.selectRootElement (F:\git\ng-universal-demo\dist\server.js:31873:72)<br> at createElement (F:\git\ng-universal-demo\dist\server.js:9067:23)<br> at createViewNodes (F:\git\ng-universal-demo\dist\server.js:11533:44)<br> at createRootView (F:\git\ng-universal-demo\dist\server.js:11480:5)<br> at Object.createProdRootView [as createRootView] (F:\git\ng-universal-demo\dist\server.js:12049:12)<br> at ComponentFactory</em>.create (F:\git\ng-universal-demo\dist\server.js:9485:46)<br> at ApplicationRef</em>.bootstrap (F:\git\ng-universal-demo\dist\server.js:4862:57)<br> at F:\git\ng-universal-demo\dist\server.js:4657:89<br> at Array.forEach (native)<br> at PlatformRef</em>._moduleDoBootstrap (F:\git\ng-universal-demo\dist\server.js:4657:42)<br> at F:\git\ng-universal-demo\dist\server.js:4620:27<br> at ZoneDelegate.invoke (F:\git\ng-universal-demo\dist\server.js:59567:26)<br> at Object.onInvoke (F:\git\ng-universal-demo\dist\server.js:4017:37)<br> at ZoneDelegate.invoke (F:\git\ng-universal-demo\dist\server.js:59566:32)<br> at Zone.run (F:\git\ng-universal-demo\dist\server.js:59359:43)<br> at resolvePromise (F:\git\ng-universal-demo\dist\server.js:59898:31) []<br> at resolvePromise (F:\git\ng-universal-demo\dist\server.js:59869:17) []<br> at F:\git\ng-universal-demo\dist\server.js:59946:17 []<br> at Zone.runTask (F:\git\ng-universal-demo\dist\server.js:59399:47) [ =&gt; ]<br> at drainMicroTaskQueue (F:\git\ng-universal-demo\dist\server.js:59779:35) []<br> at ZoneTask.invoke (F:\git\ng-universal-demo\dist\server.js:59657:25) []<br> at data.args.(anonymous function) (F:\git\ng-universal-demo\dist\server.js:60752:25) []<br> at FSReqWrap.oncomplete (fs.js:114:15) []</em></em></p> <p dir="auto"><strong>Expected behavior</strong><br> When i use animations in HTML, it will have no influence on SSR.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> &gt;=4.0.0-rc.3</li> </ul> <ul dir="auto"> <li><strong>Browser:</strong> [all]</li> </ul> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [TypeScript 2.2.1]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = v7.7.1</p> </li> </ul>
<p dir="auto">This will let animations work as a no-op on the server side when the AnimationModule included in the client app module.</p>
1
<p dir="auto">Aggregations, Filters, Builders all have some form of a Bounding Box implementation. This task is to consolidate all of these duplicate "rogue" classes into one (possibly in GeoUtils).</p> <p dir="auto">Note: this consolidation could eventually be replaced w/ an integration of the Apache SIS geometry package and using the Envelope geometry.</p>
<p dir="auto">Validation of index templates has proven difficult to get right due to how multiple templates that might be invalid on their own can result in a valid template in the end, for instance if two templates match a given index name and one of them is providing analysis index settings while the other one is providing mappings that make use of these analyzers. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176916600" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/20479" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/20479/hovercard" href="https://github.com/elastic/elasticsearch/issues/20479">#20479</a>)</p> <p dir="auto">The fact that we cannot validate index templates is not good, so I think we need to think about how we could validate them all the time without false positives. We were discussing this issue yesterday and the following options have been suggested:</p> <ul dir="auto"> <li>Require that templates are valid on their own. In that case we might also want to remove the ability for several templates to match an index, as several templates could be merged into an invalid one (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183629456" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/20988" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/20988/hovercard" href="https://github.com/elastic/elasticsearch/issues/20988">#20988</a>).</li> <li>Make the inheritance of templates explicit: instead of merging templates together based on <code class="notranslate">order</code>, a template could refer to other templates that should be included in order to not have to repeat the same bits over multiple templates. And again, we would probably only allow one template to be applied per index.</li> </ul>
0
<p dir="auto">A binary compiled with the recent master (or possibly much older master) and <code class="notranslate">extern mod native;</code> fails to run in Windows XP due to the missing symbols including <code class="notranslate">CreateSymbolicLinkW</code>, which are supported since <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa363866%28v=vs.85%29.aspx" rel="nofollow">Windows Vista</a>. I don't have a working Windows XP environment at the moment so there might be more missing symbols. (I've received the report via some user with Windows XP.)</p> <p dir="auto">I'm not sure if it is intentional or not, but given that libuv has a <a href="https://github.com/joyent/libuv/blob/c0716b3d9f89e3557a482ce499e7abc8db686418/src/win/fs.c#L1436">check</a> for the support, we at least need to determine whether to fix or not.</p>
<p dir="auto">I've made some investigation recently, and found that, there are only two APIs which are not supported by Windows XP, throughout the repo tree. There are:</p> <ul dir="auto"> <li>CreateSymbolicLinkW, only used by native::io::file::symlink()</li> <li>GetFinalPathNameByHandleW, only used by native::io::file::readlink()</li> </ul> <p dir="auto">And native::io::file::{symlink,readlink} are never used throughout the repo tree, except std::io::fs::{symlink,readlink} (which are really never used).</p> <p dir="auto">Do we really need including symlink/readlink functionality inside std? How other languages do?</p> <p dir="auto">Currently Windows XP is still wildly used in the world, especially in Asia. Its installed volume is much more than Mac OS + Linux + Unix. We give up supporting XP just because of two api absent? Maybe it's wrong.</p> <p dir="auto">cc <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26678179" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/11950" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/11950/hovercard" href="https://github.com/rust-lang/rust/issues/11950">#11950</a></p> <p dir="auto"><strong>update:</strong> readlink is used by rustc::metadata::filesearch.</p> <p dir="auto"><strong>update:</strong> This is my branch: <a href="https://github.com/liigo/rust/tree/xp">https://github.com/liigo/rust/tree/xp</a><br> I just commented out the usage of CreateSymbolicLinkW and GetFinalPathNameByHandleW. This make the new rustc.exe run successfully in Windows XP, ant it works mostly OK (see my latest comment below).</p>
1
<p dir="auto">This is really a bad thing for packages that are intended to be installed globally, and can be a security issue. It isn't in this case because this build was done inside a container + chroot and the RPATH is a directory in / that won't exist.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rust') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustc') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rusti') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustdoc') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustpkg') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libstd-4782a756585a81-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librustc-c84825241471686d-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libcore-c3ca5d77d81b46c1-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librusti-5047c7f210c7cac8-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librust-39583f72884834e3-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libsyntax-84efebcb12c867a2-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd-4782a756585a81-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc-c84825241471686d-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librusti-5047c7f210c7cac8-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librust-39583f72884834e3-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustdoc-1ac3c0763957e4b0-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libsyntax-84efebcb12c867a2-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustpkg-795073e423d025b-0.6.so')"><pre class="notranslate"><code class="notranslate">rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rust') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustc') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rusti') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustdoc') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustpkg') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libstd-4782a756585a81-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librustc-c84825241471686d-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libcore-c3ca5d77d81b46c1-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librusti-5047c7f210c7cac8-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librust-39583f72884834e3-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libsyntax-84efebcb12c867a2-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd-4782a756585a81-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc-c84825241471686d-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librusti-5047c7f210c7cac8-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librust-39583f72884834e3-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustdoc-1ac3c0763957e4b0-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libsyntax-84efebcb12c867a2-0.6.so') rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustpkg-795073e423d025b-0.6.so') </code></pre></div> <p dir="auto">For reference: <a href="http://wiki.debian.org/RpathIssue" rel="nofollow">http://wiki.debian.org/RpathIssue</a></p>
<p dir="auto">This should compile but no longer does:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::cell::RefCell; trait Foo { fn foo(&amp;self) {} } impl&lt;T&gt; Foo for T where T: Clone {} struct Bar; impl Bar { fn foo(&amp;self) {} } fn main() { let b = RefCell::new(Bar); b.borrow().foo() }"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>cell<span class="pl-kos">::</span><span class="pl-v">RefCell</span><span class="pl-kos">;</span> <span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</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">T</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Foo</span> <span class="pl-k">for</span> <span class="pl-smi">T</span> <span class="pl-k">where</span> <span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">Clone</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">struct</span> <span class="pl-smi">Bar</span><span class="pl-kos">;</span> <span class="pl-k">impl</span> <span class="pl-smi">Bar</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> b = <span class="pl-smi">RefCell</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-v">Bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span> b<span class="pl-kos">.</span><span class="pl-en">borrow</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test.rs:17:5: 17:21 error: the trait `core::clone::Clone` is not implemented for the type `core::cell::Ref&lt;'_,Bar&gt;` test.rs:17 b.borrow().foo() ^~~~~~~~~~~~~~~~"><pre class="notranslate"><code class="notranslate">test.rs:17:5: 17:21 error: the trait `core::clone::Clone` is not implemented for the type `core::cell::Ref&lt;'_,Bar&gt;` test.rs:17 b.borrow().foo() ^~~~~~~~~~~~~~~~ </code></pre></div> <p dir="auto">Note that calling <code class="notranslate">Bar.foo()</code> directly works.</p>
0
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <p dir="auto">import pandas as pd</p> <p dir="auto">In [1]: df = pd.DataFrame([1,1,1,1])</p> <p dir="auto">In [2]: pd.rolling_window(df, window=[1,1], mean=False)<br> C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\start_ipython_kernel.py:1: FutureWarning: pd.rolling_sum is deprecated for DataFrame and will be removed in a future version, replace with<br> DataFrame.rolling(window=[1, 1],center=False,axis=0).sum()</p> <h1 dir="auto">-<em>- coding: utf-8 -</em>-</h1> <p dir="auto">Traceback (most recent call last):</p> <p dir="auto">File "", line 1, in <br> pd.rolling_window(pd.DataFrame([1,1,1,1]), window=[1,1], mean=False)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\stats\moments.py", line 657, in rolling_window<br> **kwargs)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\stats\moments.py", line 240, in ensure_compat<br> result = getattr(r, name)(_args, *_kwds)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 789, in sum<br> return super(Rolling, self).sum(**kwargs)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 552, in sum<br> return self._apply('roll_sum', **kwargs)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 487, in _apply<br> result = np.apply_along_axis(calc, self.axis, values)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\numpy\lib\shape_base.py", line 91, in apply_along_axis<br> res = func1d(arr[tuple(i.tolist())], _args, *_kwargs)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 484, in calc<br> return func(x, window, min_periods=self.min_periods)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 471, in func<br> window, minp, **kwargs)</p> <p dir="auto">File "pandas\algos.pyx", line 901, in pandas.algos.roll_sum (pandas\algos.c:28213)</p> <p dir="auto">TypeError: an integer is required</p> <p dir="auto">In [3]: df.rolling(window=[1, 1],center=False,axis=0).sum()<br> Traceback (most recent call last):</p> <p dir="auto">File "", line 1, in <br> df.rolling(window=[1, 1],center=False,axis=0).sum()</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 789, in sum<br> return super(Rolling, self).sum(**kwargs)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 552, in sum<br> return self._apply('roll_sum', **kwargs)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 487, in _apply<br> result = np.apply_along_axis(calc, self.axis, values)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\numpy\lib\shape_base.py", line 91, in apply_along_axis<br> res = func1d(arr[tuple(i.tolist())], _args, *_kwargs)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 484, in calc<br> return func(x, window, min_periods=self.min_periods)</p> <p dir="auto">File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 471, in func<br> window, minp, **kwargs)</p> <p dir="auto">File "pandas\algos.pyx", line 901, in pandas.algos.roll_sum (pandas\algos.c:28213)</p> <p dir="auto">TypeError: an integer is required</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">[NA, 2, 2, 2]</p> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.5.1.final.0<br> python-bits: 64<br> OS: Windows<br> OS-release: 7<br> machine: AMD64<br> processor: Intel64 Family 6 Model 26 Stepping 5, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US</p> <p dir="auto">pandas: 0.18.0<br> nose: 1.3.7<br> pip: 8.1.1<br> setuptools: 20.3<br> Cython: 0.23.4<br> numpy: 1.10.4<br> scipy: 0.17.0<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 4.1.2<br> sphinx: 1.3.1<br> patsy: 0.4.0<br> dateutil: 2.5.1<br> pytz: 2016.2<br> blosc: None<br> bottleneck: 1.0.0<br> tables: 3.2.2<br> numexpr: 2.5<br> matplotlib: 1.5.1<br> openpyxl: 2.3.2<br> xlrd: 0.9.4<br> xlwt: 1.0.0<br> xlsxwriter: 0.8.4<br> lxml: 3.6.0<br> bs4: 4.4.1<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.0.12<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: 2.39.0</p>
<p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="145203446" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/12765" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/12765/hovercard" href="https://github.com/pandas-dev/pandas/issues/12765">#12765</a>. Let's pick up this as a test case and give a more meaningful error message. e.g. for <code class="notranslate">Window</code> the <code class="notranslate">win_type</code> is missing, so this should be the error.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [15]: pd.DataFrame(np.arange(10)).rolling(2., center=True).median() --------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-15-73c4e557093d&gt; in &lt;module&gt;() ----&gt; 1 pd.DataFrame(np.arange(10)).rolling(2., center=True).median() /usr/lib/python3.5/site-packages/pandas/core/window.py in median(self, **kwargs) 811 @Appender(_shared_docs['median']) 812 def median(self, **kwargs): --&gt; 813 return super(Rolling, self).median(**kwargs) 814 815 @Substitution(name='rolling') /usr/lib/python3.5/site-packages/pandas/core/window.py in median(self, how, **kwargs) 592 if self.freq is not None and how is None: 593 how = 'median' --&gt; 594 return self._apply('roll_median_c', how=how, **kwargs) 595 596 _shared_docs['std'] = dedent(&quot;&quot;&quot; /usr/lib/python3.5/site-packages/pandas/core/window.py in _apply(self, func, window, center, check_minp, how, **kwargs) 473 # calculation function 474 if center: --&gt; 475 offset = _offset(window, center) 476 additional_nans = np.array([np.NaN] * offset) 477 /usr/lib/python3.5/site-packages/pandas/core/window.py in _offset(window, center) 1356 def _offset(window, center): 1357 if not com.is_integer(window): -&gt; 1358 window = len(window) 1359 offset = (window - 1) / 2. if center else 0 1360 try: TypeError: object of type 'float' has no len()"><pre class="notranslate"><code class="notranslate">In [15]: pd.DataFrame(np.arange(10)).rolling(2., center=True).median() --------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-15-73c4e557093d&gt; in &lt;module&gt;() ----&gt; 1 pd.DataFrame(np.arange(10)).rolling(2., center=True).median() /usr/lib/python3.5/site-packages/pandas/core/window.py in median(self, **kwargs) 811 @Appender(_shared_docs['median']) 812 def median(self, **kwargs): --&gt; 813 return super(Rolling, self).median(**kwargs) 814 815 @Substitution(name='rolling') /usr/lib/python3.5/site-packages/pandas/core/window.py in median(self, how, **kwargs) 592 if self.freq is not None and how is None: 593 how = 'median' --&gt; 594 return self._apply('roll_median_c', how=how, **kwargs) 595 596 _shared_docs['std'] = dedent(""" /usr/lib/python3.5/site-packages/pandas/core/window.py in _apply(self, func, window, center, check_minp, how, **kwargs) 473 # calculation function 474 if center: --&gt; 475 offset = _offset(window, center) 476 additional_nans = np.array([np.NaN] * offset) 477 /usr/lib/python3.5/site-packages/pandas/core/window.py in _offset(window, center) 1356 def _offset(window, center): 1357 if not com.is_integer(window): -&gt; 1358 window = len(window) 1359 offset = (window - 1) / 2. if center else 0 1360 try: TypeError: object of type 'float' has no len() </code></pre></div> <p dir="auto">Note that <code class="notranslate">pd.DataFrame(np.arange(10)).rolling(2.).median()</code> works fine.</p> <p dir="auto">pandas 0.18.0.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto"><code class="notranslate">import getConfig from 'next/config'</code> should work in accordance w/ readme</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Running <code class="notranslate">now</code> (and <code class="notranslate">next build</code>) produces the following build error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; Failed to build &gt; { Error: (client) ./config/env.ts &gt; Module not found: Error: Can't resolve 'node_modules/next/config.js' in '/home/nowuser/src/config' &gt; resolve 'node_modules/next/config.js' in '/home/nowuser/src/config' &gt; Parsed request is a module &gt; using description file: /home/nowuser/src/package.json (relative path: ./config) &gt; Field 'browser' doesn't contain a valid alias configuration &gt; after using description file: /home/nowuser/src/package.json (relative path: ./config) &gt; resolve as module &gt; looking for modules in /home/nowuser/src/node_modules/next/node_modules &gt; using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules) &gt; Field 'browser' doesn't contain a valid alias configuration &gt; after using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules) &gt; using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules/node_modules/next/config.js) &gt; no extension &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js doesn't exist &gt; .js &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.js doesn't exist &gt; .jsx &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.jsx doesn't exist &gt; .json &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.json doesn't exist &gt; .ts &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.ts doesn't exist &gt; .tsx &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.tsx doesn't exist &gt; as directory &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js doesn't exist &gt; /home/nowuser/src/config/node_modules doesn't exist or is not a directory &gt; /home/nowuser/node_modules doesn't exist or is not a directory &gt; /home/node_modules doesn't exist or is not a directory &gt; /node_modules doesn't exist or is not a directory &gt; looking for modules in /home/nowuser/src/node_modules &gt; using description file: /home/nowuser/src/package.json (relative path: ./node_modules) &gt; Field 'browser' doesn't contain a valid alias configuration &gt; after using description file: /home/nowuser/src/package.json (relative path: ./node_modules) &gt; using description file: /home/nowuser/src/package.json (relative path: ./node_modules/node_modules/next/config.js) &gt; no extension &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js doesn't exist &gt; .js &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js.js doesn't exist &gt; .jsx &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js.jsx doesn't exist &gt; .json &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js.json doesn't exist &gt; .ts &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js.ts doesn't exist &gt; .tsx &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js.tsx doesn't exist &gt; as directory &gt; /home/nowuser/src/node_modules/node_modules/next/config.js doesn't exist &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.js] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.jsx] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.json] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.ts] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.tsx] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js] &gt; [/home/nowuser/src/config/node_modules] &gt; [/home/nowuser/node_modules] &gt; [/home/node_modules] &gt; [/node_modules] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js.js] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js.jsx] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js.json] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js.ts] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js.tsx] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js] &gt; @ ./config/env.ts 4:16-54 &gt; @ ./config/index.ts &gt; @ ./pages-code/login/make-linkedin-url.ts &gt; @ ./pages/login.js &gt; @ multi ./pages/login.js &gt; at /home/nowuser/src/node_modules/next/dist/server/build/index.js:207:31 &gt; at runWithDependencies (/home/nowuser/src/node_modules/webpack/lib/MultiCompiler.js:154:4) &gt; at /home/nowuser/src/node_modules/webpack/node_modules/async/dist/async.js:1126:9 &gt; at /home/nowuser/src/node_modules/webpack/node_modules/async/dist/async.js:473:16 &gt; at iteratorCallback (/home/nowuser/src/node_modules/webpack/node_modules/async/dist/async.js:1050:13) &gt; at /home/nowuser/src/node_modules/webpack/node_modules/async/dist/async.js:958:16 &gt; at /home/nowuser/src/node_modules/webpack/node_modules/async/dist/async.js:1123:13 &gt; at runCompilers (/home/nowuser/src/node_modules/webpack/lib/MultiCompiler.js:96:47) &gt; at fn (/home/nowuser/src/node_modules/webpack/lib/MultiCompiler.js:101:6) &gt; at compiler.run (/home/nowuser/src/node_modules/webpack/lib/MultiCompiler.js:150:5) &gt; at emitRecords.err (/home/nowuser/src/node_modules/webpack/lib/Compiler.js:265:13) &gt; at Compiler.emitRecords (/home/nowuser/src/node_modules/webpack/lib/Compiler.js:371:38) &gt; at emitAssets.err (/home/nowuser/src/node_modules/webpack/lib/Compiler.js:258:10) &gt; at applyPluginsAsyncSeries1.err (/home/nowuser/src/node_modules/webpack/lib/Compiler.js:364:12) &gt; at next (/home/nowuser/src/node_modules/tapable/lib/Tapable.js:218:11) &gt; at Compiler.compiler.plugin (/home/nowuser/src/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)"><pre class="notranslate"><code class="notranslate">&gt; Failed to build &gt; { Error: (client) ./config/env.ts &gt; Module not found: Error: Can't resolve 'node_modules/next/config.js' in '/home/nowuser/src/config' &gt; resolve 'node_modules/next/config.js' in '/home/nowuser/src/config' &gt; Parsed request is a module &gt; using description file: /home/nowuser/src/package.json (relative path: ./config) &gt; Field 'browser' doesn't contain a valid alias configuration &gt; after using description file: /home/nowuser/src/package.json (relative path: ./config) &gt; resolve as module &gt; looking for modules in /home/nowuser/src/node_modules/next/node_modules &gt; using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules) &gt; Field 'browser' doesn't contain a valid alias configuration &gt; after using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules) &gt; using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules/node_modules/next/config.js) &gt; no extension &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js doesn't exist &gt; .js &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.js doesn't exist &gt; .jsx &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.jsx doesn't exist &gt; .json &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.json doesn't exist &gt; .ts &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.ts doesn't exist &gt; .tsx &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.tsx doesn't exist &gt; as directory &gt; /home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js doesn't exist &gt; /home/nowuser/src/config/node_modules doesn't exist or is not a directory &gt; /home/nowuser/node_modules doesn't exist or is not a directory &gt; /home/node_modules doesn't exist or is not a directory &gt; /node_modules doesn't exist or is not a directory &gt; looking for modules in /home/nowuser/src/node_modules &gt; using description file: /home/nowuser/src/package.json (relative path: ./node_modules) &gt; Field 'browser' doesn't contain a valid alias configuration &gt; after using description file: /home/nowuser/src/package.json (relative path: ./node_modules) &gt; using description file: /home/nowuser/src/package.json (relative path: ./node_modules/node_modules/next/config.js) &gt; no extension &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js doesn't exist &gt; .js &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js.js doesn't exist &gt; .jsx &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js.jsx doesn't exist &gt; .json &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js.json doesn't exist &gt; .ts &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js.ts doesn't exist &gt; .tsx &gt; Field 'browser' doesn't contain a valid alias configuration &gt; /home/nowuser/src/node_modules/node_modules/next/config.js.tsx doesn't exist &gt; as directory &gt; /home/nowuser/src/node_modules/node_modules/next/config.js doesn't exist &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.js] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.jsx] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.json] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.ts] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js.tsx] &gt; [/home/nowuser/src/node_modules/next/node_modules/node_modules/next/config.js] &gt; [/home/nowuser/src/config/node_modules] &gt; [/home/nowuser/node_modules] &gt; [/home/node_modules] &gt; [/node_modules] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js.js] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js.jsx] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js.json] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js.ts] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js.tsx] &gt; [/home/nowuser/src/node_modules/node_modules/next/config.js] &gt; @ ./config/env.ts 4:16-54 &gt; @ ./config/index.ts &gt; @ ./pages-code/login/make-linkedin-url.ts &gt; @ ./pages/login.js &gt; @ multi ./pages/login.js &gt; at /home/nowuser/src/node_modules/next/dist/server/build/index.js:207:31 &gt; at runWithDependencies (/home/nowuser/src/node_modules/webpack/lib/MultiCompiler.js:154:4) &gt; at /home/nowuser/src/node_modules/webpack/node_modules/async/dist/async.js:1126:9 &gt; at /home/nowuser/src/node_modules/webpack/node_modules/async/dist/async.js:473:16 &gt; at iteratorCallback (/home/nowuser/src/node_modules/webpack/node_modules/async/dist/async.js:1050:13) &gt; at /home/nowuser/src/node_modules/webpack/node_modules/async/dist/async.js:958:16 &gt; at /home/nowuser/src/node_modules/webpack/node_modules/async/dist/async.js:1123:13 &gt; at runCompilers (/home/nowuser/src/node_modules/webpack/lib/MultiCompiler.js:96:47) &gt; at fn (/home/nowuser/src/node_modules/webpack/lib/MultiCompiler.js:101:6) &gt; at compiler.run (/home/nowuser/src/node_modules/webpack/lib/MultiCompiler.js:150:5) &gt; at emitRecords.err (/home/nowuser/src/node_modules/webpack/lib/Compiler.js:265:13) &gt; at Compiler.emitRecords (/home/nowuser/src/node_modules/webpack/lib/Compiler.js:371:38) &gt; at emitAssets.err (/home/nowuser/src/node_modules/webpack/lib/Compiler.js:258:10) &gt; at applyPluginsAsyncSeries1.err (/home/nowuser/src/node_modules/webpack/lib/Compiler.js:364:12) &gt; at next (/home/nowuser/src/node_modules/tapable/lib/Tapable.js:218:11) &gt; at Compiler.compiler.plugin (/home/nowuser/src/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4) </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>add <code class="notranslate">import getConfig from 'next/config'</code> in a project using <code class="notranslate">@zeit/next-typescript</code></li> <li><code class="notranslate">next build</code></li> </ol> <p dir="auto">the error doesn't present in development</p> <h2 dir="auto">Context</h2> <p dir="auto">I'm fairly new to typescript. a google shows this sort of error in different contexts, but the most common solution is to add <code class="notranslate">ts</code> to the webpack loader resolver. This is already done in <code class="notranslate">next</code>, though, so the solution is N/A.</p> <p dir="auto">I've also tried the following:</p> <ul dir="auto"> <li>change file importing from <code class="notranslate">next/config</code> to a <code class="notranslate">.js</code></li> <li><code class="notranslate">import * as getConfig from 'next/config'</code></li> <li><code class="notranslate">const getConfig = require('next/config')</code></li> <li><code class="notranslate">import getConfig from '../node_modules/next/dist/lib/runtime-config.js'</code></li> </ul> <p dir="auto">Could this be b/c <code class="notranslate">@types/next</code> doesn't seem to have a <code class="notranslate">config</code> export?</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>5.0.1-canary.10</td> </tr> <tr> <td>node</td> <td>on <code class="notranslate">now</code>, 8.9.4</td> </tr> <tr> <td>OS</td> <td><code class="notranslate">now</code></td> </tr> <tr> <td>browser</td> <td>na</td> </tr> <tr> <td>@zeit/next-typescript</td> <td>0.0.10</td> </tr> </tbody> </table>
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">In development mode, the entire application works fine, but in the production assembly, the main page is not initialized. I get html, index.js, but the react is not initialized<br> There are no errors in the console.<br> The problem is only on next@8, on next@7 there are no problems.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">I don't think I can repeat this case.<br> This problem appears on my computer and on the host machine.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">I expect that react will make hydration and start working.</p> <h2 dir="auto">Screenshots</h2> <p dir="auto">On index page <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11390039/52960536-1453bd80-33aa-11e9-813a-e8d4bc085db4.png"><img src="https://user-images.githubusercontent.com/11390039/52960536-1453bd80-33aa-11e9-813a-e8d4bc085db4.png" alt="image" style="max-width: 100%;"></a><br> On other pages <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11390039/52960581-27ff2400-33aa-11e9-943c-d81a374d25e3.png"><img src="https://user-images.githubusercontent.com/11390039/52960581-27ff2400-33aa-11e9-943c-d81a374d25e3.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11390039/52960761-84fada00-33aa-11e9-8f10-61e2393d89b5.png"><img src="https://user-images.githubusercontent.com/11390039/52960761-84fada00-33aa-11e9-8f10-61e2393d89b5.png" alt="image" style="max-width: 100%;"></a><br> The screenshot shows that all the necessary scripts are connected to the page.</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macOs/linux</li> <li>Browser: chrome, safari, firefox</li> <li>Version of Next.js: 8.01</li> </ul>
0
<p dir="auto"><strong>I'm submitting a ...</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report [ ] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[X] bug report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Two oddities when using microsyntax to set variables on structural directives:</p> <ol dir="auto"> <li>An unused <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/input/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/input">@input</a> named exactly like the selector is required on structural directives.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Directive({ selector: '[aDirective][aDirectiveFoo]', ... }) export class ADirective { @Input() aDirective: any; // Required, but explicitly set to &quot;undefined&quot;. @Input() aDirectiveFoo: string; }"><pre class="notranslate"><code class="notranslate">@Directive({ selector: '[aDirective][aDirectiveFoo]', ... }) export class ADirective { @Input() aDirective: any; // Required, but explicitly set to "undefined". @Input() aDirectiveFoo: string; } </code></pre></div> <ol start="2" dir="auto"> <li>An extraneous character followed by a space is required at the beginning for it to work.</li> </ol> <p dir="auto">Doesn't work:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;a-component *aDirective=&quot;foo:'bar'&quot;&gt; &lt;a-component *aDirective=&quot; foo:'bar'&quot;&gt;"><pre class="notranslate"><code class="notranslate">&lt;a-component *aDirective="foo:'bar'"&gt; &lt;a-component *aDirective=" foo:'bar'"&gt; </code></pre></div> <p dir="auto">Works:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;a-component *aDirective=&quot;z foo:'bar'&quot;&gt; &lt;a-component *aDirective=&quot;config; foo:'bar'&quot;&gt;"><pre class="notranslate"><code class="notranslate">&lt;a-component *aDirective="z foo:'bar'"&gt; &lt;a-component *aDirective="config; foo:'bar'"&gt; </code></pre></div> <p dir="auto"><strong>Expected behavior</strong></p> <ol dir="auto"> <li>Don't require or automatically insert the extraneous <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/input/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/input">@input</a>.</li> <li>Allow variable assignment without the required character and space.</li> </ol> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><a href="https://plnkr.co/edit/aBT256OKZH4ayZT3J0sT" rel="nofollow">Plunker example here</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Allow richer initialization and use of structural directives.</p>
<p dir="auto">See example: <a href="http://plnkr.co/edit/9GdLbXM0mh5zHPKhcwCL?p=info" rel="nofollow">http://plnkr.co/edit/9GdLbXM0mh5zHPKhcwCL?p=info</a></p> <p dir="auto">Both of these should parse correctly:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div *bsPane=&quot;title exp&quot;&gt;&lt;/div&gt; &lt;div *bsPane=&quot;title: exp&quot;&gt;&lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div *bsPane="title exp"&gt;&lt;/div&gt; &lt;div *bsPane="title: exp"&gt;&lt;/div&gt; </code></pre></div> <p dir="auto">Given:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Directive({ selector: '[bsPane]' }) class Foo { @Input() bsPaneTitle: string; }"><pre class="notranslate"><code class="notranslate">@Directive({ selector: '[bsPane]' }) class Foo { @Input() bsPaneTitle: string; } </code></pre></div> <p dir="auto">instead get error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Can't bind to 'bsPane' since it isn't a known native property (&quot; Demo: &lt;div [ERROR -&gt;]*bsPane=&quot;title 'Overview'&quot;&gt;&lt;/div&gt; &lt;div *bsPane=&quot;title 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@2:9 Property binding bsPane not used by any directive on an embedded template (&quot; Demo: [ERROR -&gt;]&lt;div *bsPane=&quot;title 'Overview'&quot;&gt;&lt;/div&gt; &lt;div *bsPane=&quot;title 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@2:4 Can't bind to 'bsPane' since it isn't a known native property (&quot; Demo: &lt;div *bsPane=&quot;title 'Overview'&quot;&gt;&lt;/div&gt; &lt;div [ERROR -&gt;]*bsPane=&quot;title 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@3:9 Property binding bsPane not used by any directive on an embedded template (&quot; Demo: &lt;div *bsPane=&quot;title 'Overview'&quot;&gt;&lt;/div&gt; [ERROR -&gt;]&lt;div *bsPane=&quot;title 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@3:4```"><pre class="notranslate"><code class="notranslate">Can't bind to 'bsPane' since it isn't a known native property (" Demo: &lt;div [ERROR -&gt;]*bsPane="title 'Overview'"&gt;&lt;/div&gt; &lt;div *bsPane="title 'Summary'"&gt;&lt;/div&gt;"): DiDemo@2:9 Property binding bsPane not used by any directive on an embedded template (" Demo: [ERROR -&gt;]&lt;div *bsPane="title 'Overview'"&gt;&lt;/div&gt; &lt;div *bsPane="title 'Summary'"&gt;&lt;/div&gt;"): DiDemo@2:4 Can't bind to 'bsPane' since it isn't a known native property (" Demo: &lt;div *bsPane="title 'Overview'"&gt;&lt;/div&gt; &lt;div [ERROR -&gt;]*bsPane="title 'Summary'"&gt;&lt;/div&gt;"): DiDemo@3:9 Property binding bsPane not used by any directive on an embedded template (" Demo: &lt;div *bsPane="title 'Overview'"&gt;&lt;/div&gt; [ERROR -&gt;]&lt;div *bsPane="title 'Summary'"&gt;&lt;/div&gt;"): DiDemo@3:4``` </code></pre></div> <p dir="auto">and</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="EXCEPTION: Template parse errors: Parser Error: Unexpected token :, expected identifier, keyword, or string at column 13 in [bsPane title: 'Overview'] in DiDemo@2:9 (&quot; Demo: &lt;div [ERROR -&gt;]*bsPane=&quot;title: 'Overview'&quot;&gt;&lt;/div&gt; &lt;div *bsPane=&quot;title: 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@2:9 Parser Error: Unexpected token :, expected identifier, keyword, or string at column 13 in [bsPane title: 'Summary'] in DiDemo@3:9 (&quot; Demo: &lt;div *bsPane=&quot;title: 'Overview'&quot;&gt;&lt;/div&gt; &lt;div [ERROR -&gt;]*bsPane=&quot;title: 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@3:9"><pre class="notranslate"><code class="notranslate">EXCEPTION: Template parse errors: Parser Error: Unexpected token :, expected identifier, keyword, or string at column 13 in [bsPane title: 'Overview'] in DiDemo@2:9 (" Demo: &lt;div [ERROR -&gt;]*bsPane="title: 'Overview'"&gt;&lt;/div&gt; &lt;div *bsPane="title: 'Summary'"&gt;&lt;/div&gt;"): DiDemo@2:9 Parser Error: Unexpected token :, expected identifier, keyword, or string at column 13 in [bsPane title: 'Summary'] in DiDemo@3:9 (" Demo: &lt;div *bsPane="title: 'Overview'"&gt;&lt;/div&gt; &lt;div [ERROR -&gt;]*bsPane="title: 'Summary'"&gt;&lt;/div&gt;"): DiDemo@3:9 </code></pre></div>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; a=zeros(1,1); b = reshape(a,1); push!(b,1); b[1]=-1; a,b ([0.0], [-1.0, 1.0])"><pre class="notranslate"><code class="notranslate">julia&gt; a=zeros(1,1); b = reshape(a,1); push!(b,1); b[1]=-1; a,b ([0.0], [-1.0, 1.0]) </code></pre></div> <p dir="auto">Expected behavior:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; push!(b,1) ERROR: cannot resize array with shared data"><pre class="notranslate"><code class="notranslate">julia&gt; push!(b,1) ERROR: cannot resize array with shared data </code></pre></div> <p dir="auto">Not really sure whether this is a bug or intended, but it is surprising and weird (I would have expected reshape to lock further resizing on either both the source and the target, or on neither).</p>
<p dir="auto">Consider the following example:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="xmat = randn(5,5) xvec = reshape(xmat, 25) push!(xvec, 3) xvec[1] = 0.0 xmat[1] # not zero"><pre class="notranslate">xmat <span class="pl-k">=</span> <span class="pl-c1">randn</span>(<span class="pl-c1">5</span>,<span class="pl-c1">5</span>) xvec <span class="pl-k">=</span> <span class="pl-c1">reshape</span>(xmat, <span class="pl-c1">25</span>) <span class="pl-c1">push!</span>(xvec, <span class="pl-c1">3</span>) xvec[<span class="pl-c1">1</span>] <span class="pl-k">=</span> <span class="pl-c1">0.0</span> xmat[<span class="pl-c1">1</span>] <span class="pl-c"><span class="pl-c">#</span> not zero</span></pre></div> <p dir="auto">Here <code class="notranslate">push!</code> has decoupled <code class="notranslate">xmat</code> and <code class="notranslate">xvec</code>, though one would expect that a reshaped array always point to the same memory as the original array. I think the <code class="notranslate">push!</code> here should raise an error.</p> <p dir="auto">Contrast the example above with the following (source: <a href="https://discourse.julialang.org/t/puzzling-reshape-and-push/28326/2" rel="nofollow">https://discourse.julialang.org/t/puzzling-reshape-and-push/28326/2</a>):</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="xvec = rand(4) xmat = reshape(xvec, 2, 2) push!(xvec, 1.0) # ERROR: cannot resize array with shared data"><pre class="notranslate">xvec <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">4</span>) xmat <span class="pl-k">=</span> <span class="pl-c1">reshape</span>(xvec, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>) <span class="pl-c1">push!</span>(xvec, <span class="pl-c1">1.0</span>) <span class="pl-c"><span class="pl-c">#</span> ERROR: cannot resize array with shared data</span></pre></div> <p dir="auto">To be consistent it seems to me that my first example above should also be an error.</p>
1
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">The following error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeError: Could not export Python function call 'type'"><pre class="notranslate"><code class="notranslate">RuntimeError: Could not export Python function call 'type' </code></pre></div> <p dir="auto">is raised only on <code class="notranslate">save</code> and in a specific case. See below.</p> <h2 dir="auto">To Reproduce</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch def check_input(img: torch.Tensor) -&gt; bool: return isinstance(img, torch.Tensor) def foo(img: torch.Tensor) -&gt; torch.Tensor: if check_input(img): return img raise TypeError(&quot;Unexpected input type. Got {}&quot;.format(type(img))) def bar(img: torch.Tensor) -&gt; torch.Tensor: if isinstance(img, torch.Tensor): return img raise TypeError(&quot;Unexpected input type. Got {}&quot;.format(type(img))) if __name__ == &quot;__main__&quot;: t = torch.rand(3, 12, 12) s_bar = torch.jit.script(bar) assert bar(t).equal(s_bar(t)) s_bar.save(&quot;test_bar.pt&quot;) t = torch.rand(3, 12, 12) s_foo = torch.jit.script(foo) assert foo(t).equal(s_foo(t)) s_foo.save(&quot;test_foo.pt&quot;)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">def</span> <span class="pl-en">check_input</span>(<span class="pl-s1">img</span>: <span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>) <span class="pl-c1">-&gt;</span> <span class="pl-s1">bool</span>: <span class="pl-k">return</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">img</span>, <span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>) <span class="pl-k">def</span> <span class="pl-en">foo</span>(<span class="pl-s1">img</span>: <span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>) <span class="pl-c1">-&gt;</span> <span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>: <span class="pl-k">if</span> <span class="pl-en">check_input</span>(<span class="pl-s1">img</span>): <span class="pl-k">return</span> <span class="pl-s1">img</span> <span class="pl-k">raise</span> <span class="pl-v">TypeError</span>(<span class="pl-s">"Unexpected input type. Got {}"</span>.<span class="pl-en">format</span>(<span class="pl-en">type</span>(<span class="pl-s1">img</span>))) <span class="pl-k">def</span> <span class="pl-en">bar</span>(<span class="pl-s1">img</span>: <span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>) <span class="pl-c1">-&gt;</span> <span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>: <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">img</span>, <span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>): <span class="pl-k">return</span> <span class="pl-s1">img</span> <span class="pl-k">raise</span> <span class="pl-v">TypeError</span>(<span class="pl-s">"Unexpected input type. Got {}"</span>.<span class="pl-en">format</span>(<span class="pl-en">type</span>(<span class="pl-s1">img</span>))) <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>: <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>(<span class="pl-c1">3</span>, <span class="pl-c1">12</span>, <span class="pl-c1">12</span>) <span class="pl-s1">s_bar</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">jit</span>.<span class="pl-en">script</span>(<span class="pl-s1">bar</span>) <span class="pl-k">assert</span> <span class="pl-en">bar</span>(<span class="pl-s1">t</span>).<span class="pl-en">equal</span>(<span class="pl-en">s_bar</span>(<span class="pl-s1">t</span>)) <span class="pl-s1">s_bar</span>.<span class="pl-en">save</span>(<span class="pl-s">"test_bar.pt"</span>) <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>(<span class="pl-c1">3</span>, <span class="pl-c1">12</span>, <span class="pl-c1">12</span>) <span class="pl-s1">s_foo</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">jit</span>.<span class="pl-en">script</span>(<span class="pl-s1">foo</span>) <span class="pl-k">assert</span> <span class="pl-en">foo</span>(<span class="pl-s1">t</span>).<span class="pl-en">equal</span>(<span class="pl-en">s_foo</span>(<span class="pl-s1">t</span>)) <span class="pl-s1">s_foo</span>.<span class="pl-en">save</span>(<span class="pl-s">"test_foo.pt"</span>)</pre></div> <p dir="auto">and output</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;test_type.py&quot;, line 32, in &lt;module&gt; s_foo.save(&quot;test_foo.pt&quot;) RuntimeError: Could not export Python function call 'type'. Remove calls to Python functions before export. Did you forget to add @script or @script_method annotation? If this is a nn.ModuleList, add it to __constants__: File &quot;test_type.py&quot;, line 11 if check_input(img): return img raise TypeError(&quot;Unexpected input type. Got {}&quot;.format(type(img))) ~~~~ &lt;--- HERE"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "test_type.py", line 32, in &lt;module&gt; s_foo.save("test_foo.pt") RuntimeError: Could not export Python function call 'type'. Remove calls to Python functions before export. Did you forget to add @script or @script_method annotation? If this is a nn.ModuleList, add it to __constants__: File "test_type.py", line 11 if check_input(img): return img raise TypeError("Unexpected input type. Got {}".format(type(img))) ~~~~ &lt;--- HERE </code></pre></div> <h2 dir="auto">Environment</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> (or fill out the checklist below manually).</p> <p dir="auto">You can get the script and run it with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Versions of relevant libraries: [pip3] numpy==1.19.2 [pip3] pytorch-sphinx-theme==0.0.24 [pip3] torch==1.7.0.dev20200928 [pip3] torchvision==0.8.0a0+6f75883 [conda] blas 1.0 mkl [conda] cudatoolkit 10.1.243 h6bb024c_0 [conda] mkl 2020.2 256 [conda] mkl-service 2.3.0 py37he904b0f_0 [conda] mkl_fft 1.2.0 py37h23d657b_0 [conda] mkl_random 1.1.1 py37h0573a6f_0 [conda] numpy 1.19.2 pypi_0 pypi [conda] pytorch 1.7.0.dev20200928 py3.7_cuda10.1.243_cudnn7.6.3_0 pytorch-nightly [conda] pytorch-sphinx-theme 0.0.24 dev_0 &lt;develop&gt; [conda] torchvision 0.8.0a0+6f75883 dev_0 &lt;develop&gt;"><pre class="notranslate"><code class="notranslate">Versions of relevant libraries: [pip3] numpy==1.19.2 [pip3] pytorch-sphinx-theme==0.0.24 [pip3] torch==1.7.0.dev20200928 [pip3] torchvision==0.8.0a0+6f75883 [conda] blas 1.0 mkl [conda] cudatoolkit 10.1.243 h6bb024c_0 [conda] mkl 2020.2 256 [conda] mkl-service 2.3.0 py37he904b0f_0 [conda] mkl_fft 1.2.0 py37h23d657b_0 [conda] mkl_random 1.1.1 py37h0573a6f_0 [conda] numpy 1.19.2 pypi_0 pypi [conda] pytorch 1.7.0.dev20200928 py3.7_cuda10.1.243_cudnn7.6.3_0 pytorch-nightly [conda] pytorch-sphinx-theme 0.0.24 dev_0 &lt;develop&gt; [conda] torchvision 0.8.0a0+6f75883 dev_0 &lt;develop&gt; </code></pre></div> <h2 dir="auto">Additional context</h2> <p dir="auto">Torchvision transforms scripting</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmagogsfm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmagogsfm">@gmagogsfm</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2> <p dir="auto">Allow using of type() to get type string of a Python object in TorchScript</p> <h2 dir="auto">Motivation</h2> <p dir="auto">type() is commonly used when creating meaningful error messages, especially so after we <a href="https://github.com/pytorch/pytorch/pull/41907" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/41907/hovercard">support raising exception with custom error messages</a>.</p> <h2 dir="auto">Pitch</h2> <p dir="auto">type() should be supported and return a string in TorchScript.</p> <h2 dir="auto">Example</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" cat type_error_msg.py [ruby-2.5.1p57] import torch @torch.jit.script def fn(cond: torch.Tensor): if bool(cond): raise RuntimeError(&quot;incorrect type:&quot; + str(type(cond))) fn(torch.Tensor(1))"><pre class="notranslate"><code class="notranslate"> cat type_error_msg.py [ruby-2.5.1p57] import torch @torch.jit.script def fn(cond: torch.Tensor): if bool(cond): raise RuntimeError("incorrect type:" + str(type(cond))) fn(torch.Tensor(1)) </code></pre></div> <p dir="auto">Currently this example errors out:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback of TorchScript (most recent call last): File &quot;type_error_msg.py&quot;, line 7, in fn def fn(cond: torch.Tensor): if bool(cond): raise RuntimeError(&quot;incorrect type:&quot; + str(type(cond))) ~~~~ &lt;--- HERE RuntimeError: expected value of type Tensor for return value but instead got value of type type. Value: &lt;class 'torch.Tensor'&gt;"><pre class="notranslate"><code class="notranslate">Traceback of TorchScript (most recent call last): File "type_error_msg.py", line 7, in fn def fn(cond: torch.Tensor): if bool(cond): raise RuntimeError("incorrect type:" + str(type(cond))) ~~~~ &lt;--- HERE RuntimeError: expected value of type Tensor for return value but instead got value of type type. Value: &lt;class 'torch.Tensor'&gt; </code></pre></div> <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/gmagogsfm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmagogsfm">@gmagogsfm</a></p>
1
<p dir="auto">Uncaught Error: EACCES, open '/home/eduardo/.atom/compile-cache/cson/5af7724b023a6274b520f79f04fb798a67319ca7.json'</p> <p dir="auto"><strong>Atom Version</strong>: 0.153.0<br> <strong>System</strong>: linux 3.13.0-40-generic<br> <strong>Thrown From</strong>: Atom Core</p>
<p dir="auto">When I open files of UTF-16LE, ATOM magically decodes only 7-bit ASCII characters but no other characters are decoded. I think there are many \0 characters on the file so that ATOM can detect UTF-16 in better way.<br> Furthermore, even with UTF-16LE files with BOM could not be loaded correctly :(</p>
0
<h1 dir="auto">What I'm doing</h1> <p dir="auto">Trying to estimate the emotion of tweets using <a href="https://huggingface.co/cardiffnlp/twitter-roberta-base-emotion" rel="nofollow">https://huggingface.co/cardiffnlp/twitter-roberta-base-emotion</a></p> <h1 dir="auto">The error</h1> <p dir="auto"><code class="notranslate">RuntimeError: The expanded size of the tensor (601) must match the existing size (514) at non-singleton dimension 1. Target sizes: [1, 601]. Tensor sizes: [1, 514]</code></p> <p dir="auto">Does anyone what the problem might be? I tried <code class="notranslate">truncating=True</code> as well</p> <h1 dir="auto">Code and data to reproduce</h1> <h3 dir="auto">View only</h3> <p dir="auto"><a href="https://deepnote.com/project/Code-to-reproduce-error-RuntimeError-The-expanded-size-of-the-tensor-601-must-match-the-existing-size-514-at-non-singleton-dimension-1-ZfBSsqbKQ7-XWrir593tKQ/%2Fnotebook.ipynb" rel="nofollow">https://deepnote.com/project/Code-to-reproduce-error-RuntimeError-The-expanded-size-of-the-tensor-601-must-match-the-existing-size-514-at-non-singleton-dimension-1-ZfBSsqbKQ7-XWrir593tKQ/%2Fnotebook.ipynb</a></p> <h3 dir="auto">Interactive (can run and/or make changes)</h3> <p dir="auto"><a href="https://deepnote.com/project/Interactive-Code-to-reproduce-error-RuntimeError-The-expanded-size-of-the-tensor-601-must-match-the-existing-size-514-at-non-singleton-dimension-1-Duplicate-qJTy9jxRTPWhXhwytQjU4Q/%2Fnotebook.ipynb" rel="nofollow">https://deepnote.com/project/Interactive-Code-to-reproduce-error-RuntimeError-The-expanded-size-of-the-tensor-601-must-match-the-existing-size-514-at-non-singleton-dimension-1-Duplicate-qJTy9jxRTPWhXhwytQjU4Q/%2Fnotebook.ipynb</a></p> <h3 dir="auto">Environment</h3> <p dir="auto">"Deepnote projects run in containers on Debian Buster with Python 3.7"</p>
<h3 dir="auto">System Info</h3> <p dir="auto">transformers==4.20.1<br> torch==1.11.0+cu113<br> Python 3.9.13</p> <h3 dir="auto">Who can help?</h3> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patrickvonplaten/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patrickvonplaten">@patrickvonplaten</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Narsil/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Narsil">@Narsil</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ola13/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ola13">@ola13</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gante/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gante">@gante</a></p> <h3 dir="auto">Information</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> The official example scripts</li> </ul> <h3 dir="auto">Reproduction</h3> <p dir="auto">Hello everyone,</p> <p dir="auto">I am using BART and I have enabled <code class="notranslate">return_scores = True</code> with <code class="notranslate">beam_size = 4</code>.<br> The shape of the Scores vector is <code class="notranslate">(seq_len, batch_size * beam_size * num_returned sequence, vocab_size)</code>.</p> <p dir="auto">I would like to know how I can subdivide the vector obtaining the shape<br> <code class="notranslate">(seq_len, batch_size, beam_size, num_returned_sequence, vocab_size)</code>.</p> <p dir="auto">Because at the moment it is not possible to map the input sentences in a batch with the output.</p> <p dir="auto">Kind regards,<br> Andrea</p> <p dir="auto">ps: I also opened a <a href="https://discuss.huggingface.co/t/strange-shape-of-scores-vector/24780" rel="nofollow">blog post</a>, I did not know which was the most appropriate place, sorry for the duplicate.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="outputs = model.generate( input_ids=source_ids, max_length = 500, return_dict_in_generate=True, output_scores=True, num_beams=4 ) print(len(outputs.scores)) # seq_len print(outputs.scores[0].shape) # (batch_size * beam_size * num_returned sequence, vocab_size)"><pre class="notranslate"><span class="pl-s1">outputs</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-en">generate</span>( <span class="pl-s1">input_ids</span><span class="pl-c1">=</span><span class="pl-s1">source_ids</span>, <span class="pl-s1">max_length</span> <span class="pl-c1">=</span> <span class="pl-c1">500</span>, <span class="pl-s1">return_dict_in_generate</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">output_scores</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">num_beams</span><span class="pl-c1">=</span><span class="pl-c1">4</span> ) <span class="pl-en">print</span>(<span class="pl-en">len</span>(<span class="pl-s1">outputs</span>.<span class="pl-s1">scores</span>)) <span class="pl-c"># seq_len</span> <span class="pl-en">print</span>(<span class="pl-s1">outputs</span>.<span class="pl-s1">scores</span>[<span class="pl-c1">0</span>].<span class="pl-s1">shape</span>) <span class="pl-c"># (batch_size * beam_size * num_returned sequence, vocab_size)</span></pre></div> <h3 dir="auto">Expected behavior</h3> <p dir="auto">a score vector with a shape of (seq_len, batch_size, beam_size, num_returned_sequence, vocab_size)</p>
0
<p dir="auto">I have noticed on several websites, that exposed functions are not working. Below is a working example of this issue on one URL. If you need more URLs where this occurs, just comment and I'll provide.</p> <h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: Version 1.32.3</li> <li>Operating System: Tested on Ubuntu 22.04</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"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// repro.js const { chromium } = require('playwright'); (async () =&gt; { function testInitScript(){ if(window !== window.top) { return; // only run init script on root } setTimeout(function(){ window.TestExposedFunction('This is a test'); }, 2000); } const browser = await chromium.launch({ headless: false }); const page = await browser.newPage(); await page.exposeFunction(&quot;TestExposedFunction&quot;, (text) =&gt; console.log('TestExposedFunction', text)); await page.addInitScript(testInitScript); await page.goto(&quot;https://essen.vienna.at/&quot;); // ⬅️ This will cause an exception in the browser when calling the TestExposedFunction //await page.goto(&quot;https://www.google.com/&quot;); // ⬅️ This will work just fine, and console.log the TestExposedFunction text await new Promise(resolve =&gt; setTimeout(resolve, 10000)); // Poor man's way of being able to wait a bit with the browser open await browser.close(); })();"><pre class="notranslate"><span class="pl-c">// repro.js</span> <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">function</span> <span class="pl-en">testInitScript</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-smi">window</span> <span class="pl-c1">!==</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">top</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span><span class="pl-kos">;</span> <span class="pl-c">// only run init script on root</span> <span class="pl-kos">}</span> <span class="pl-en">setTimeout</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">TestExposedFunction</span><span class="pl-kos">(</span><span class="pl-s">'This is a test'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">2000</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">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">page</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">newPage</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">exposeFunction</span><span class="pl-kos">(</span><span class="pl-s">"TestExposedFunction"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">text</span><span class="pl-kos">)</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">'TestExposedFunction'</span><span class="pl-kos">,</span> <span class="pl-s1">text</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">addInitScript</span><span class="pl-kos">(</span><span class="pl-s1">testInitScript</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://essen.vienna.at/"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// ⬅️ This will cause an exception in the browser when calling the TestExposedFunction</span> <span class="pl-c">//await page.goto("https://www.google.com/"); // ⬅️ This will work just fine, and console.log the TestExposedFunction text</span> <span class="pl-k">await</span> <span class="pl-k">new</span> <span class="pl-v">Promise</span><span class="pl-kos">(</span><span class="pl-s1">resolve</span> <span class="pl-c1">=&gt;</span> <span class="pl-en">setTimeout</span><span class="pl-kos">(</span><span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-c1">10000</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Poor man's way of being able to wait a bit with the browser open</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>Run the repro.js (<code class="notranslate">node repro.js</code>) with each page.goto()</li> </ul> <p dir="auto"><strong>Expected</strong></p> <ul dir="auto"> <li>Both URLs should give the same result (logging 'TestExposedFunction' with the text)</li> </ul> <p dir="auto"><strong>Actual</strong></p> <ul dir="auto"> <li> <p dir="auto">essen.vienna.at does not console.log, but instead throw below exception:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1552175/232809385-36cfa090-9600-4293-8e96-a12cfd7196e1.png"><img src="https://user-images.githubusercontent.com/1552175/232809385-36cfa090-9600-4293-8e96-a12cfd7196e1.png" alt="image" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">google.com correctly outputs: <code class="notranslate">TestExposedFunction This is a test</code></p> </li> </ul>
<p dir="auto">In Playwright's doc, there is great mentioning on Page Object Model. However, when I try to follow this model (using TypeScript), I encounter a problem. For common page components, like menu or navigation bar, which appreas on every page on my website, if I create web elements for them in each page object, there will be lots of duplications.<br> So what's a good way to implement such common components to avoid duplications?</p>
0
<h4 dir="auto">Failed to format x-axis as Timestamp</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np import pandas as pd import matplotlib.pyplot as plt ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000)) plt.plot(ts.index,ts) plt.show()"><pre class="notranslate"><code class="notranslate">import numpy as np import pandas as pd import matplotlib.pyplot as plt ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000)) plt.plot(ts.index,ts) plt.show() </code></pre></div> <p dir="auto">x-axis is show as raw number of epoch time in nanoseconds (~1.5e18). However, if we call <code class="notranslate">ts.plot()</code> once before calling <code class="notranslate">plt.plot</code>, x-axis is correctly formatted and the correct behavior will persist for the entire python session, even if we're creating new Series or DataFrame.<br> I recently upgraded from pandas 0.17.1 to 0.21.0 and the older version did not have this issue.</p> <h4 dir="auto">Installed Versions</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.4.3.final.0 python-bits: 64 OS: Linux OS-release: 2.6.32-642.11.1.el6.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.21.0 pytest: None pip: 9.0.1 setuptools: 20.1.1 Cython: None numpy: 1.13.3 scipy: 0.17.0 pyarrow: None xarray: None IPython: 4.1.1 sphinx: None patsy: None dateutil: 2.6.1 pytz: 2017.3 blosc: None bottleneck: 1.0.0 tables: None numexpr: 2.6.4 feather: None matplotlib: 2.1.0 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None"><pre class="notranslate"><code class="notranslate">pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.4.3.final.0 python-bits: 64 OS: Linux OS-release: 2.6.32-642.11.1.el6.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.21.0 pytest: None pip: 9.0.1 setuptools: 20.1.1 Cython: None numpy: 1.13.3 scipy: 0.17.0 pyarrow: None xarray: None IPython: 4.1.1 sphinx: None patsy: None dateutil: 2.6.1 pytz: 2017.3 blosc: None bottleneck: 1.0.0 tables: None numexpr: 2.6.4 feather: None matplotlib: 2.1.0 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </code></pre></div>
<p dir="auto">Given the feedback we have got (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="271948289" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18153" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/18153/hovercard" href="https://github.com/pandas-dev/pandas/issues/18153">#18153</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="272608235" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18192" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/18192/hovercard" href="https://github.com/pandas-dev/pandas/issues/18192">#18192</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="272898934" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18212" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/18212/hovercard" href="https://github.com/pandas-dev/pandas/issues/18212">#18212</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="273841641" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18283" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/18283/hovercard" href="https://github.com/pandas-dev/pandas/issues/18283">#18283</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="268491919" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/9577" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/9577/hovercard" href="https://github.com/matplotlib/matplotlib/issues/9577">matplotlib/matplotlib#9577</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="269390066" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/9610" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/9610/hovercard" href="https://github.com/matplotlib/matplotlib/issues/9610">matplotlib/matplotlib#9610</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="273552198" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/9771" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/9771/hovercard" href="https://github.com/matplotlib/matplotlib/issues/9771">matplotlib/matplotlib#9771</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="36017422" data-permission-text="Title is private" data-url="https://github.com/pydata/xarray/issues/166" data-hovercard-type="pull_request" data-hovercard-url="/pydata/xarray/pull/166/hovercard" href="https://github.com/pydata/xarray/pull/166">pydata/xarray#166</a>), it seems we underestimated the impact and we should consider (partly) reverting this change to properly deprecate it instead.</p> <p dir="auto">This should also give matplotlib the time to implement basic datetime64 support (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="269390066" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/9610" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/9610/hovercard" href="https://github.com/matplotlib/matplotlib/issues/9610">matplotlib/matplotlib#9610</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="273707593" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/9779" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/9779/hovercard" href="https://github.com/matplotlib/matplotlib/pull/9779">matplotlib/matplotlib#9779</a>)</p> <p dir="auto">Depending on how we can do this, this might have the consequence that have to undo temporarily the lazy import of matplotlib (affecting the import time). See also discussion in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="273841641" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18283" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/18283/hovercard" href="https://github.com/pandas-dev/pandas/issues/18283">#18283</a></p> <p dir="auto">Opening this issue to keep track of it, should be decided/done for 0.21.1</p>
1
<h3 dir="auto">Describe your issue.</h3> <p dir="auto">In the <code class="notranslate">cp310-macosx_arm64</code> test on cirrus-ci there are 14 failing tests in scipy.stats.<br> <a href="https://cirrus-ci.com/task/6051468460425216" rel="nofollow">https://cirrus-ci.com/task/6051468460425216</a></p> <h3 dir="auto">Reproducing Code Example</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Running the test suite"><pre class="notranslate"><span class="pl-v">Running</span> <span class="pl-s1">the</span> <span class="pl-s1">test</span> <span class="pl-s1">suite</span></pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="=================================== FAILURES =================================== _________________ test_stats_boost_ufunc[_beta_ppf-args1-0.5] __________________ scipy/stats/tests/test_boost_ufuncs.py:41: in test_stats_boost_ufunc value = func(*args) E RuntimeWarning: overflow encountered in _beta_ppf args = [0.6875, 2.0, 3.0] expected = 0.5 func = &lt;ufunc '_beta_ppf'&gt; rtol = 3.814697265625e-06 typ = &lt;class 'numpy.float32'&gt; type_char = 'f' type_chars = ['f', 'd', 'g'] type_sigs = ['fff-&gt;f', 'ddd-&gt;d', 'ggg-&gt;g'] ______________________ test_cont_basic[500-200-ncf-arg74] ______________________ scipy/stats/tests/test_continuous_basic.py:162: in test_cont_basic check_cdf_ppf(distfn, arg, distname) arg = (27, 27, 0.41578441799226107) distfn = &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt; distname = 'ncf' m = 1.0966313767196902 n_fit_samples = 200 rng = RandomState(MT19937) at 0x14A668E40 rvs = array([0.90888841, 0.87523216, 0.73228753, 1.33584017, 0.93548576, 1.09504212, 1.15670442, 0.36786914, 0.791225...03, 1.73540023, 0.87035866, 0.73702581, 0.81477748, 0.87362182, 1.58673099, 1.88455316, 0.61564337, 1.09912842]) sn = 500 v = 0.2013794025952613 scipy/stats/tests/test_continuous_basic.py:516: in check_cdf_ppf npt.assert_almost_equal(distfn.cdf(distfn.ppf(values, *arg), *arg), arg = (27, 27, 0.41578441799226107) distfn = &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt; msg = 'ncf' values = [0.001, 0.5, 0.999] scipy/stats/_distn_infrastructure.py:2333: in ppf place(output, cond, self._ppf(*goodargs) * scale + loc) _a = 0.0 _b = inf args = (array(27), array(27), array(0.41578442)) cond = array([ True, True, True]) cond0 = True cond1 = array([ True, True, True]) cond2 = array([False, False, False]) cond3 = array([False, False, False]) goodargs = [array([0.001, 0.5 , 0.999]), array([27, 27, 27]), array([27, 27, 27]), array([0.41578442, 0.41578442, 0.41578442])] kwds = {} loc = array([0, 0, 0]) lower_bound = 0.0 output = array([nan, nan, nan]) q = array([0.001, 0.5 , 0.999]) scale = array([1, 1, 1]) self = &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt; upper_bound = inf scipy/stats/_continuous_distns.py:6604: in _ppf return _boost._ncf_ppf(q, dfn, dfd, nc) E RuntimeWarning: overflow encountered in _ncf_ppf dfd = array([27, 27, 27]) dfn = array([27, 27, 27]) nc = array([0.41578442, 0.41578442, 0.41578442]) q = array([0.001, 0.5 , 0.999]) self = &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt; ______________________ test_cont_basic[500-200-nct-arg75] ______________________ scipy/stats/tests/test_continuous_basic.py:162: in test_cont_basic check_cdf_ppf(distfn, arg, distname) arg = (14, 0.24045031331198066) distfn = &lt;scipy.stats._continuous_distns.nct_gen object at 0x1231046d0&gt; distname = 'nct' m = 0.2543673273832776 n_fit_samples = 200 rng = RandomState(MT19937) at 0x17F91B140 rvs = array([ 8.73534081e-01, -1.04204572e+00, 8.32185889e-01, 1.83689614e+00, -1.81244028e-01, 7.69549733e-01, 8...9293e+00, 8.20972491e-01, -7.63240067e-01, 1.27150283e+00, 1.30239072e-01, 1.64179170e+00, 1.18497579e+00]) sn = 500 v = 1.1694163414603564 scipy/stats/tests/test_continuous_basic.py:516: in check_cdf_ppf npt.assert_almost_equal(distfn.cdf(distfn.ppf(values, *arg), *arg), arg = (14, 0.24045031331198066) distfn = &lt;scipy.stats._continuous_distns.nct_gen object at 0x1231046d0&gt; msg = 'nct' values = [0.001, 0.5, 0.999] scipy/stats/_distn_infrastructure.py:2333: in ppf place(output, cond, self._ppf(*goodargs) * scale + loc) _a = -inf _b = inf args = (array(14), array(0.24045031)) cond = array([ True, True, True]) cond0 = True cond1 = array([ True, True, True]) cond2 = array([False, False, False]) cond3 = array([False, False, False]) goodargs = [array([0.001, 0.5 , 0.999]), array([14, 14, 14]), array([0.24045031, 0.24045031, 0.24045031])] kwds = {} loc = array([0, 0, 0]) lower_bound = -inf output = array([nan, nan, nan]) q = array([0.001, 0.5 , 0.999]) scale = array([1, 1, 1]) self = &lt;scipy.stats._continuous_distns.nct_gen object at 0x1231046d0&gt; upper_bound = inf scipy/stats/_continuous_distns.py:6800: in _ppf return _boost._nct_ppf(q, df, nc) E RuntimeWarning: overflow encountered in _nct_ppf df = array([14, 14, 14]) nc = array([0.24045031, 0.24045031, 0.24045031]) q = array([0.001, 0.5 , 0.999]) self = &lt;scipy.stats._continuous_distns.nct_gen object at 0x1231046d0&gt; _____________________ test_cont_basic[500-200-ncx2-arg76] ______________________ scipy/stats/tests/test_continuous_basic.py:162: in test_cont_basic check_cdf_ppf(distfn, arg, distname) arg = (21, 1.0560465975116415) distfn = &lt;scipy.stats._continuous_distns.ncx2_gen object at 0x123168490&gt; distname = 'ncx2' m = 22.056046597511642 n_fit_samples = 200 rng = RandomState(MT19937) at 0x17F91B240 rvs = array([24.18228087, 28.6893038 , 24.17456852, 14.84747842, 18.70623905, 16.16763421, 9.29241683, 14.62038405, ...716689, 25.11697161, 27.96343751, 35.36238425, 17.36403196, 25.81839268, 23.01798747, 22.53534591, 20.49078605]) sn = 500 v = 46.22418639004657 scipy/stats/tests/test_continuous_basic.py:516: in check_cdf_ppf npt.assert_almost_equal(distfn.cdf(distfn.ppf(values, *arg), *arg), arg = (21, 1.0560465975116415) distfn = &lt;scipy.stats._continuous_distns.ncx2_gen object at 0x123168490&gt; msg = 'ncx2' values = [0.001, 0.5, 0.999] scipy/stats/_distn_infrastructure.py:2160: in cdf place(output, cond, self._cdf(*goodargs)) _a = 0.0 _b = inf args = (array(21), array(1.0560466)) cond = array([ True, True, True]) cond0 = True cond1 = array([ True, True, True]) cond2 = array([False, False, False]) dtyp = dtype('float64') goodargs = [array([ 6.77671634, 21.36270226, 49.09451392]), array([21, 21, 21]), array([1.0560466, 1.0560466, 1.0560466])] kwds = {} loc = array(0) output = array([0., 0., 0.]) scale = array(1) self = &lt;scipy.stats._continuous_distns.ncx2_gen object at 0x123168490&gt; x = array([ 6.77671634, 21.36270226, 49.09451392]) scipy/stats/_continuous_distns.py:6502: in _cdf return _lazywhere(cond, (x, df, nc), f=_boost._ncx2_cdf, cond = array([ True, True, True]) df = array([21, 21, 21]) nc = array([1.0560466, 1.0560466, 1.0560466]) self = &lt;scipy.stats._continuous_distns.ncx2_gen object at 0x123168490&gt; x = array([ 6.77671634, 21.36270226, 49.09451392]) scipy/_lib/_util.py:69: in _lazywhere np.place(out, cond, f(*temp)) E RuntimeWarning: overflow encountered in _ncx2_cdf args = [array([ True, True, True]), array([ 6.77671634, 21.36270226, 49.09451392]), array([21, 21, 21]), array([1.0560466, 1.0560466, 1.0560466])] arrays = [array([ 6.77671634, 21.36270226, 49.09451392]), array([21, 21, 21]), array([1.0560466, 1.0560466, 1.0560466])] cond = array([ True, True, True]) f = &lt;ufunc '_ncx2_cdf'&gt; f2 = &lt;function ncx2_gen._cdf.&lt;locals&gt;.&lt;lambda&gt; at 0x17f9825f0&gt; fillvalue = nan out = array([nan, nan, nan]) tcode = 'd' temp = (array([ 6.77671634, 21.36270226, 49.09451392]), array([21, 21, 21]), array([1.0560466, 1.0560466, 1.0560466])) ___________________ test_methods_with_lists[ncf-args75-ppf] ____________________ scipy/stats/tests/test_continuous_basic.py:714: in test_methods_with_lists result = f(x, *shape2, loc=loc, scale=scale) args = (27, 27, 0.41578441799226107) dist = &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt; distname = 'ncf' f = &lt;bound method rv_continuous.ppf of &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt;&gt; loc = [0, 0.1] method = 'ppf' scale = [1, 1.01] shape2 = [[27, 27], [27, 27], [0.41578441799226107, 0.41578441799226107]] x = [0.1, 0.2] scipy/stats/_distn_infrastructure.py:2333: in ppf place(output, cond, self._ppf(*goodargs) * scale + loc) _a = 0.0 _b = inf args = (array([27, 27]), array([27, 27]), array([0.41578442, 0.41578442])) cond = array([ True, True]) cond0 = array([ True, True]) cond1 = array([ True, True]) cond2 = array([False, False]) cond3 = array([False, False]) goodargs = [array([0.1, 0.2]), array([27, 27]), array([27, 27]), array([0.41578442, 0.41578442])] kwds = {'loc': [0, 0.1], 'scale': [1, 1.01]} loc = array([0. , 0.1]) lower_bound = array([0. , 0.1]) output = array([nan, nan]) q = array([0.1, 0.2]) scale = array([1. , 1.01]) self = &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt; upper_bound = array([inf, inf]) scipy/stats/_continuous_distns.py:6604: in _ppf return _boost._ncf_ppf(q, dfn, dfd, nc) E RuntimeWarning: overflow encountered in _ncf_ppf dfd = array([27, 27]) dfn = array([27, 27]) nc = array([0.41578442, 0.41578442]) q = array([0.1, 0.2]) self = &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt; ___________________ test_methods_with_lists[ncf-args75-isf] ____________________ scipy/stats/tests/test_continuous_basic.py:714: in test_methods_with_lists result = f(x, *shape2, loc=loc, scale=scale) args = (27, 27, 0.41578441799226107) dist = &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt; distname = 'ncf' f = &lt;bound method rv_continuous.isf of &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt;&gt; loc = [0, 0.1] method = 'isf' scale = [1, 1.01] shape2 = [[27, 27], [27, 27], [0.41578441799226107, 0.41578441799226107]] x = [0.1, 0.2] scipy/stats/_distn_infrastructure.py:2378: in isf place(output, cond, self._isf(*goodargs) * scale + loc) _a = 0.0 _b = inf args = (array([27, 27]), array([27, 27]), array([0.41578442, 0.41578442])) cond = array([ True, True]) cond0 = array([ True, True]) cond1 = array([ True, True]) cond2 = array([False, False]) cond3 = array([False, False]) goodargs = [array([0.1, 0.2]), array([27, 27]), array([27, 27]), array([0.41578442, 0.41578442])] kwds = {'loc': [0, 0.1], 'scale': [1, 1.01]} loc = array([0. , 0.1]) lower_bound = array([0. , 0.1]) output = array([nan, nan]) q = array([0.1, 0.2]) scale = array([1. , 1.01]) self = &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt; upper_bound = array([inf, inf]) scipy/stats/_continuous_distns.py:6610: in _isf return _boost._ncf_isf(x, dfn, dfd, nc) E RuntimeWarning: overflow encountered in _ncf_isf dfd = array([27, 27]) dfn = array([27, 27]) nc = array([0.41578442, 0.41578442]) self = &lt;scipy.stats._continuous_distns.ncf_gen object at 0x123106c20&gt; x = array([0.1, 0.2]) ___________________ test_discrete_basic[skellam-arg17-True] ____________________ scipy/stats/tests/test_discrete_basic.py:47: in test_discrete_basic check_cdf_ppf(distfn, arg, supp, distname + ' cdf_ppf') arg = (15, 8) distfn = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; distname = 'skellam' first_case = True m = 7.0 rvs = array([ 4, 6, 10, ..., 5, 14, 15]) supp = array([-10, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 25]) v = 23.0 scipy/stats/tests/test_discrete_basic.py:185: in check_cdf_ppf npt.assert_array_equal(distfn.ppf(distfn.cdf(supp, *arg), *arg), arg = (15, 8) distfn = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; msg = 'skellam cdf_ppf' supp = array([-10, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 25]) scipy/stats/_distn_infrastructure.py:3433: in cdf place(output, cond, np.clip(self._cdf(*goodargs), 0, 1)) _ = 1 _a = -inf _b = inf args = (array(15), array(8)) cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True,... True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond0 = True cond1 = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True,... True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond2 = array([False, False, False, False, False, False, False, False, False, False, False, False, False, False, False,...False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]) cond3 = array([False, False, False, False, False, False, False, False, False, False, False, False, False, False, False,...False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]) goodargs = [array([-10, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12..., 15]), array([8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8])] k = array([-10, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 25]) kwds = {} loc = array(0) output = array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; scipy/stats/_discrete_distns.py:1437: in _cdf _boost._ncx2_cdf(2*mu2, -2*x, 2*mu1), E RuntimeWarning: overflow encountered in _ncx2_cdf mu1 = array([15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15]) mu2 = array([8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8]) self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; x = array([-10., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 25.]) _________________________ test_moments[skellam-arg17] __________________________ scipy/stats/tests/test_discrete_basic.py:89: in test_moments check_normalization(distfn, arg, distname) arg = (15, 8) distfn = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; distname = 'skellam' k = 0.043478260869565216 m = 7.0 s = 0.06346090862606624 v = 23.0 scipy/stats/tests/common_tests.py:32: in check_normalization normalization_expect = distfn.expect(lambda x: 1, args=args) args = (15, 8) atol = 1e-07 distfn = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; distname = 'skellam' norm_moment = 1.0 rtol = 1e-07 scipy/stats/_distn_infrastructure.py:3739: in expect x0 = self.ppf(0.5, *args) _a = -inf _b = inf args = (15, 8) chunksize = 32 conditional = False fun = &lt;function rv_discrete.expect.&lt;locals&gt;.fun at 0x2840aaa70&gt; func = &lt;function check_normalization.&lt;locals&gt;.&lt;lambda&gt; at 0x2840aa8c0&gt; invfac = 1.0 lb = -inf loc = 0 maxcount = 1000 self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; tolerance = 1e-10 ub = inf scipy/stats/_distn_infrastructure.py:3592: in ppf place(output, cond, self._ppf(*goodargs) + loc) _ = 1 _a = -inf _b = inf args = (array(15), array(8)) cond = True cond0 = True cond1 = True cond2 = False goodargs = [array([0.5]), array([15]), array([8])] kwds = {} loc = array([0]) output = array(nan) q = array(0.5) self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; scipy/stats/_distn_infrastructure.py:989: in _ppf return self._ppfvec(q, *args) args = (array([15]), array([8])) q = array([0.5]) self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; /Users/admin/scipy-dev/lib/python3.10/site-packages/numpy/lib/function_base.py:2328: in __call__ return self._vectorize_call(func=func, args=vargs) args = (&lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt;, array([0.5]), array([15]), array([8])) excluded = set() func = &lt;function _drv2_ppfsingle at 0x126867c70&gt; kwargs = {} self = &lt;numpy.vectorize object at 0x1269cd960&gt; vargs = (&lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt;, array([0.5]), array([15]), array([8])) /Users/admin/scipy-dev/lib/python3.10/site-packages/numpy/lib/function_base.py:2411: in _vectorize_call outputs = ufunc(*inputs) args = (&lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt;, array([0.5]), array([15]), array([8])) func = &lt;function _drv2_ppfsingle at 0x126867c70&gt; inputs = [array(&lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt;, dtype=object), array([0.5], dtype=object), array([15], dtype=object), array([8], dtype=object)] otypes = 'd' self = &lt;numpy.vectorize object at 0x1269cd960&gt; ufunc = &lt;ufunc '_drv2_ppfsingle (vectorized)'&gt; scipy/stats/_distn_infrastructure.py:2943: in _drv2_ppfsingle qb = self._cdf(b, *args) _a = -inf _b = inf a = -inf args = (15, 8) b = 50 q = 0.5 self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; scipy/stats/_discrete_distns.py:1438: in _cdf 1 - _boost._ncx2_cdf(2*mu1, 2*(x+1), 2*mu2)) E RuntimeWarning: overflow encountered in _ncx2_cdf mu1 = 15 mu2 = 8 self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; x = 50.0 _____________________________ test_skellam_gh11474 _____________________________ scipy/stats/tests/test_discrete_distns.py:238: in test_skellam_gh11474 cdf = skellam.cdf(0, mu, mu) mu = [1, 10, 100, 1000, 5000, 5050, ...] scipy/stats/_distn_infrastructure.py:3433: in cdf place(output, cond, np.clip(self._cdf(*goodargs), 0, 1)) _ = 1 _a = -inf _b = inf args = (array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000]), array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000])) cond = array([ True, True, True, True, True, True, True, True, True]) cond0 = array([ True, True, True, True, True, True, True, True, True]) cond1 = True cond2 = False cond3 = False goodargs = [array([0, 0, 0, 0, 0, 0, 0, 0, 0]), array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000]), array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000])] k = array(0) kwds = {} loc = array(0) output = array([0., 0., 0., 0., 0., 0., 0., 0., 0.]) self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; scipy/stats/_discrete_distns.py:1438: in _cdf 1 - _boost._ncx2_cdf(2*mu1, 2*(x+1), 2*mu2)) E RuntimeWarning: overflow encountered in _ncx2_cdf mu1 = array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000]) mu2 = array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000]) self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; x = array([0., 0., 0., 0., 0., 0., 0., 0., 0.]) _____________________________ TestSkellam.test_cdf _____________________________ scipy/stats/tests/test_distributions.py:3249: in test_cdf assert_almost_equal(stats.skellam.cdf(k, mu1, mu2), skcdfR, decimal=5) k = array([-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]) mu1 = 10 mu2 = 5 self = &lt;scipy.stats.tests.test_distributions.TestSkellam object at 0x14aba4520&gt; skcdfR = array([6.40614754e-05, 1.78109860e-04, 4.67906118e-04, 1.15967690e-03, 2.70774851e-03, 5.94897601e-03, 1.228634...799e-01, 8.77852572e-01, 9.21121265e-01, 9.51369425e-01, 9.71360859e-01, 9.83877736e-01, 9.91316724e-01]) scipy/stats/_distn_infrastructure.py:3433: in cdf place(output, cond, np.clip(self._cdf(*goodargs), 0, 1)) _ = 1 _a = -inf _b = inf args = (array(10), array(5)) cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond0 = True cond1 = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond2 = array([False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]) cond3 = array([False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]) goodargs = [array([-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10...0, 10, 10, 10, 10, 10, 10]), array([5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5])] k = array([-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]) kwds = {} loc = array(0) output = array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; scipy/stats/_discrete_distns.py:1437: in _cdf _boost._ncx2_cdf(2*mu2, -2*x, 2*mu1), E RuntimeWarning: overflow encountered in _ncx2_cdf mu1 = array([10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]) mu2 = array([5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]) self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; x = array([-10., -9., -8., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14.]) ___________________________ TestExpect.test_skellam ____________________________ scipy/stats/tests/test_distributions.py:4833: in test_skellam m1 = stats.skellam.expect(lambda x: x, args=(p1, p2)) p1 = 18 p2 = 22 self = &lt;scipy.stats.tests.test_distributions.TestExpect object at 0x149f402b0&gt; scipy/stats/_distn_infrastructure.py:3739: in expect x0 = self.ppf(0.5, *args) _a = -inf _b = inf args = (18, 22) chunksize = 32 conditional = False fun = &lt;function rv_discrete.expect.&lt;locals&gt;.fun at 0x2852a5120&gt; func = &lt;function TestExpect.test_skellam.&lt;locals&gt;.&lt;lambda&gt; at 0x2852a4ca0&gt; invfac = 1.0 lb = -inf loc = 0 maxcount = 1000 self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; tolerance = 1e-10 ub = inf scipy/stats/_distn_infrastructure.py:3592: in ppf place(output, cond, self._ppf(*goodargs) + loc) _ = 1 _a = -inf _b = inf args = (array(18), array(22)) cond = True cond0 = True cond1 = True cond2 = False goodargs = [array([0.5]), array([18]), array([22])] kwds = {} loc = array([0]) output = array(nan) q = array(0.5) self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; scipy/stats/_distn_infrastructure.py:989: in _ppf return self._ppfvec(q, *args) args = (array([18]), array([22])) q = array([0.5]) self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; /Users/admin/scipy-dev/lib/python3.10/site-packages/numpy/lib/function_base.py:2328: in __call__ return self._vectorize_call(func=func, args=vargs) args = (&lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt;, array([0.5]), array([18]), array([22])) excluded = set() func = &lt;function _drv2_ppfsingle at 0x126867c70&gt; kwargs = {} self = &lt;numpy.vectorize object at 0x1269cd960&gt; vargs = (&lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt;, array([0.5]), array([18]), array([22])) /Users/admin/scipy-dev/lib/python3.10/site-packages/numpy/lib/function_base.py:2411: in _vectorize_call outputs = ufunc(*inputs) args = (&lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt;, array([0.5]), array([18]), array([22])) func = &lt;function _drv2_ppfsingle at 0x126867c70&gt; inputs = [array(&lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt;, dtype=object), array([0.5], dtype=object), array([18], dtype=object), array([22], dtype=object)] otypes = 'd' self = &lt;numpy.vectorize object at 0x1269cd960&gt; ufunc = &lt;ufunc '_drv2_ppfsingle (vectorized)'&gt; scipy/stats/_distn_infrastructure.py:2943: in _drv2_ppfsingle qb = self._cdf(b, *args) _a = -inf _b = inf a = -inf args = (18, 22) b = 50 q = 0.5 self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; scipy/stats/_discrete_distns.py:1438: in _cdf 1 - _boost._ncx2_cdf(2*mu1, 2*(x+1), 2*mu2)) E RuntimeWarning: overflow encountered in _ncx2_cdf mu1 = 18 mu2 = 22 self = &lt;scipy.stats._discrete_distns.skellam_gen object at 0x1269cde70&gt; x = 50.0 __________________________ test_ncx2_tails_ticket_955 __________________________ scipy/stats/tests/test_distributions.py:6292: in test_ncx2_tails_ticket_955 a = stats.ncx2.cdf(np.arange(20, 25, 0.2), 2, 1.07458615e+02) scipy/stats/_distn_infrastructure.py:2160: in cdf place(output, cond, self._cdf(*goodargs)) _a = 0.0 _b = inf args = (array(2), array(107.458615)) cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond0 = True cond1 = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond2 = array([False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]) dtyp = dtype('float64') goodargs = [array([20. , 20.2, 20.4, 20.6, 20.8, 21. , 21.2, 21.4, 21.6, 21.8, 22. , 22.2, 22.4, 22.6, 22.8, 23. , 23.2, 2...5, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615])] kwds = {} loc = array(0) output = array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) scale = array(1) self = &lt;scipy.stats._continuous_distns.ncx2_gen object at 0x123168490&gt; x = array([20. , 20.2, 20.4, 20.6, 20.8, 21. , 21.2, 21.4, 21.6, 21.8, 22. , 22.2, 22.4, 22.6, 22.8, 23. , 23.2, 23.4, 23.6, 23.8, 24. , 24.2, 24.4, 24.6, 24.8]) scipy/stats/_continuous_distns.py:6502: in _cdf return _lazywhere(cond, (x, df, nc), f=_boost._ncx2_cdf, cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) df = array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]) nc = array([107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.4586...15, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615]) self = &lt;scipy.stats._continuous_distns.ncx2_gen object at 0x123168490&gt; x = array([20. , 20.2, 20.4, 20.6, 20.8, 21. , 21.2, 21.4, 21.6, 21.8, 22. , 22.2, 22.4, 22.6, 22.8, 23. , 23.2, 23.4, 23.6, 23.8, 24. , 24.2, 24.4, 24.6, 24.8]) scipy/_lib/_util.py:69: in _lazywhere np.place(out, cond, f(*temp)) E RuntimeWarning: overflow encountered in _ncx2_cdf args = [array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True...5, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615])] arrays = [array([20. , 20.2, 20.4, 20.6, 20.8, 21. , 21.2, 21.4, 21.6, 21.8, 22. , 22.2, 22.4, 22.6, 22.8, 23. , 23.2, 2...5, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615])] cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) f = &lt;ufunc '_ncx2_cdf'&gt; f2 = &lt;function ncx2_gen._cdf.&lt;locals&gt;.&lt;lambda&gt; at 0x2852a6f80&gt; fillvalue = nan out = array([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan]) tcode = 'd' temp = (array([20. , 20.2, 20.4, 20.6, 20.8, 21. , 21.2, 21.4, 21.6, 21.8, 22. , 22.2, 22.4, 22.6, 22.8, 23. , 23.2, 2...5, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615])) ______________________________ test_ncx2_gh12731 _______________________________ scipy/stats/tests/test_distributions.py:6345: in test_ncx2_gh12731 assert_equal(stats.ncx2.cdf(1e4, df=1, nc=nc), 0) nc = array([ 100000, 1000000, 10000000, 100000000, 1000000000]) scipy/stats/_distn_infrastructure.py:2160: in cdf place(output, cond, self._cdf(*goodargs)) _a = 0.0 _b = inf args = (array(1), array([ 100000, 1000000, 10000000, 100000000, 1000000000])) cond = array([ True, True, True, True, True]) cond0 = array([ True, True, True, True, True]) cond1 = True cond2 = array([False, False, False, False, False]) dtyp = dtype('float64') goodargs = [array([10000., 10000., 10000., 10000., 10000.]), array([1, 1, 1, 1, 1]), array([ 100000, 1000000, 10000000, 100000000, 1000000000])] kwds = {'df': 1, 'nc': array([ 100000, 1000000, 10000000, 100000000, 1000000000])} loc = array(0) output = array([0., 0., 0., 0., 0.]) scale = array(1) self = &lt;scipy.stats._continuous_distns.ncx2_gen object at 0x123168490&gt; x = array(10000.) scipy/stats/_continuous_distns.py:6502: in _cdf return _lazywhere(cond, (x, df, nc), f=_boost._ncx2_cdf, cond = array([ True, True, True, True, True]) df = array([1, 1, 1, 1, 1]) nc = array([ 100000, 1000000, 10000000, 100000000, 1000000000]) self = &lt;scipy.stats._continuous_distns.ncx2_gen object at 0x123168490&gt; x = array([10000., 10000., 10000., 10000., 10000.]) scipy/_lib/_util.py:69: in _lazywhere np.place(out, cond, f(*temp)) E RuntimeWarning: overflow encountered in _ncx2_cdf args = [array([ True, True, True, True, True]), array([10000., 10000., 10000., 10000., 10000.]), array([1, 1, 1, 1, 1]), array([ 100000, 1000000, 10000000, 100000000, 1000000000])] arrays = [array([10000., 10000., 10000., 10000., 10000.]), array([1, 1, 1, 1, 1]), array([ 100000, 1000000, 10000000, 100000000, 1000000000])] cond = array([ True, True, True, True, True]) f = &lt;ufunc '_ncx2_cdf'&gt; f2 = &lt;function ncx2_gen._cdf.&lt;locals&gt;.&lt;lambda&gt; at 0x2852a6830&gt; fillvalue = nan out = array([nan, nan, nan, nan, nan]) tcode = 'd' temp = (array([10000., 10000., 10000., 10000., 10000.]), array([1, 1, 1, 1, 1]), array([ 100000, 1000000, 10000000, 100000000, 1000000000])) _______________________________ test_ncx2_gh8665 _______________________________ scipy/stats/tests/test_distributions.py:6357: in test_ncx2_gh8665 sf = stats.ncx2.sf(x, df=nu, nc=lam) lam = 499.51538166556196 nu = 20 x = array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515382e+02, 1.07617327e+03, 2.31854502e+03, 4.99515382e+03, 1.07617327e+04, 2.31854502e+04, 4.99515382e+04]) scipy/stats/_distn_infrastructure.py:2243: in sf place(output, cond, self._sf(*goodargs)) _a = 0.0 _b = inf args = (array(20), array(499.51538167)) cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True]) cond0 = True cond1 = array([ True, True, True, True, True, True, True, True, True, True, True, True, True]) cond2 = array([False, False, False, False, False, False, False, False, False, False, False, False, False]) dtyp = dtype('float64') goodargs = [array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515...8167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167])] kwds = {'df': 20, 'nc': 499.51538166556196} loc = array(0) output = array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) scale = array(1) self = &lt;scipy.stats._continuous_distns.ncx2_gen object at 0x123168490&gt; x = array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515382e+02, 1.07617327e+03, 2.31854502e+03, 4.99515382e+03, 1.07617327e+04, 2.31854502e+04, 4.99515382e+04]) scipy/stats/_continuous_distns.py:6515: in _sf return _lazywhere(cond, (x, df, nc), f=_boost._ncx2_sf, cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True]) df = array([20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]) nc = array([499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167]) self = &lt;scipy.stats._continuous_distns.ncx2_gen object at 0x123168490&gt; x = array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515382e+02, 1.07617327e+03, 2.31854502e+03, 4.99515382e+03, 1.07617327e+04, 2.31854502e+04, 4.99515382e+04]) scipy/_lib/_util.py:69: in _lazywhere np.place(out, cond, f(*temp)) E RuntimeWarning: overflow encountered in _ncx2_sf args = [array([ True, True, True, True, True, True, True, True, True, True, True, True, True]), array([4.9...8167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167])] arrays = [array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515...8167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167])] cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True]) f = &lt;ufunc '_ncx2_sf'&gt; f2 = &lt;function ncx2_gen._sf.&lt;locals&gt;.&lt;lambda&gt; at 0x2852a7be0&gt; fillvalue = nan out = array([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan]) tcode = 'd' temp = (array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515...8167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167])) =========================== short test summary info ============================ FAILED scipy/stats/tests/test_boost_ufuncs.py::test_stats_boost_ufunc[_beta_ppf-args1-0.5] FAILED scipy/stats/tests/test_continuous_basic.py::test_cont_basic[500-200-ncf-arg74] FAILED scipy/stats/tests/test_continuous_basic.py::test_cont_basic[500-200-nct-arg75] FAILED scipy/stats/tests/test_continuous_basic.py::test_cont_basic[500-200-ncx2-arg76] FAILED scipy/stats/tests/test_continuous_basic.py::test_methods_with_lists[ncf-args75-ppf] FAILED scipy/stats/tests/test_continuous_basic.py::test_methods_with_lists[ncf-args75-isf] FAILED scipy/stats/tests/test_discrete_basic.py::test_discrete_basic[skellam-arg17-True] FAILED scipy/stats/tests/test_discrete_basic.py::test_moments[skellam-arg17] FAILED scipy/stats/tests/test_discrete_distns.py::test_skellam_gh11474 - Runt... FAILED scipy/stats/tests/test_distributions.py::TestSkellam::test_cdf - Runti... FAILED scipy/stats/tests/test_distributions.py::TestExpect::test_skellam - Ru... FAILED scipy/stats/tests/test_distributions.py::test_ncx2_tails_ticket_955 - ... FAILED scipy/stats/tests/test_distributions.py::test_ncx2_gh12731 - RuntimeWa... FAILED scipy/stats/tests/test_distributions.py::test_ncx2_gh8665 - RuntimeWar..."><pre class="notranslate">=================================== FAILURES =================================== _________________ test_stats_boost_ufunc[_beta_ppf-args1-0.5] __________________ scipy/stats/tests/test_boost_ufuncs.py:41: <span class="pl-k">in</span> test_stats_boost_ufunc value = func(<span class="pl-k">*</span>args) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _beta_ppf args = [0.6875, 2.0, 3.0] expected = 0.5 func = <span class="pl-k">&lt;</span>ufunc <span class="pl-s"><span class="pl-pds">'</span>_beta_ppf<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span> rtol = 3.814697265625e-06 typ = <span class="pl-k">&lt;</span>class <span class="pl-s"><span class="pl-pds">'</span>numpy.float32<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span> type_char = <span class="pl-s"><span class="pl-pds">'</span>f<span class="pl-pds">'</span></span> type_chars = [<span class="pl-s"><span class="pl-pds">'</span>f<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>d<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>g<span class="pl-pds">'</span></span>] type_sigs = [<span class="pl-s"><span class="pl-pds">'</span>fff-&gt;f<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>ddd-&gt;d<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>ggg-&gt;g<span class="pl-pds">'</span></span>] ______________________ test_cont_basic[500-200-ncf-arg74] ______________________ scipy/stats/tests/test_continuous_basic.py:162: <span class="pl-k">in</span> test_cont_basic check_cdf_ppf(distfn, arg, distname) arg = (27, 27, 0.41578441799226107) distfn = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;</span> distname = <span class="pl-s"><span class="pl-pds">'</span>ncf<span class="pl-pds">'</span></span> m = 1.0966313767196902 n_fit_samples = 200 rng = RandomState(MT19937) at 0x14A668E40 rvs = array([0.90888841, 0.87523216, 0.73228753, 1.33584017, 0.93548576, 1.09504212, 1.15670442, 0.36786914, 0.791225...03, 1.73540023, 0.87035866, 0.73702581, 0.81477748, 0.87362182, 1.58673099, 1.88455316, 0.61564337, 1.09912842]) sn = 500 v = 0.2013794025952613 scipy/stats/tests/test_continuous_basic.py:516: <span class="pl-k">in</span> check_cdf_ppf npt.assert_almost_equal(distfn.cdf(distfn.ppf(values, <span class="pl-k">*</span>arg), <span class="pl-k">*</span>arg), arg = (27, 27, 0.41578441799226107) distfn = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;</span> msg = <span class="pl-s"><span class="pl-pds">'</span>ncf<span class="pl-pds">'</span></span> values = [0.001, 0.5, 0.999] scipy/stats/_distn_infrastructure.py:2333: <span class="pl-k">in</span> ppf place(output, cond, self._ppf(<span class="pl-k">*</span>goodargs) <span class="pl-k">*</span> scale + loc) _a = 0.0 _b = inf args = (array(27), array(27), array(0.41578442)) cond = array([ True, True, True]) cond0 = True cond1 = array([ True, True, True]) cond2 = array([False, False, False]) cond3 = array([False, False, False]) goodargs = [array([0.001, 0.5 , 0.999]), array([27, 27, 27]), array([27, 27, 27]), array([0.41578442, 0.41578442, 0.41578442])] kwds = {} loc = array([0, 0, 0]) lower_bound = 0.0 output = array([nan, nan, nan]) q = array([0.001, 0.5 , 0.999]) scale = array([1, 1, 1]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;</span> upper_bound = inf scipy/stats/_continuous_distns.py:6604: <span class="pl-k">in</span> _ppf <span class="pl-k">return</span> _boost._ncf_ppf(q, dfn, dfd, nc) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncf_ppf dfd = array([27, 27, 27]) dfn = array([27, 27, 27]) nc = array([0.41578442, 0.41578442, 0.41578442]) q = array([0.001, 0.5 , 0.999]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;</span> ______________________ test_cont_basic[500-200-nct-arg75] ______________________ scipy/stats/tests/test_continuous_basic.py:162: <span class="pl-k">in</span> test_cont_basic check_cdf_ppf(distfn, arg, distname) arg = (14, 0.24045031331198066) distfn = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.nct_gen object at 0x1231046d<span class="pl-k">0&gt;</span> distname = <span class="pl-s"><span class="pl-pds">'</span>nct<span class="pl-pds">'</span></span> m = 0.2543673273832776 n_fit_samples = 200 rng = RandomState(MT19937) at 0x17F91B140 rvs = array([ 8.73534081e-01, -1.04204572e+00, 8.32185889e-01, 1.83689614e+00, -1.81244028e-01, 7.69549733e-01, 8...9293e+00, 8.20972491e-01, -7.63240067e-01, 1.27150283e+00, 1.30239072e-01, 1.64179170e+00, 1.18497579e+00]) sn = 500 v = 1.1694163414603564 scipy/stats/tests/test_continuous_basic.py:516: <span class="pl-k">in</span> check_cdf_ppf npt.assert_almost_equal(distfn.cdf(distfn.ppf(values, <span class="pl-k">*</span>arg), <span class="pl-k">*</span>arg), arg = (14, 0.24045031331198066) distfn = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.nct_gen object at 0x1231046d<span class="pl-k">0&gt;</span> msg = <span class="pl-s"><span class="pl-pds">'</span>nct<span class="pl-pds">'</span></span> values = [0.001, 0.5, 0.999] scipy/stats/_distn_infrastructure.py:2333: <span class="pl-k">in</span> ppf place(output, cond, self._ppf(<span class="pl-k">*</span>goodargs) <span class="pl-k">*</span> scale + loc) _a = -inf _b = inf args = (array(14), array(0.24045031)) cond = array([ True, True, True]) cond0 = True cond1 = array([ True, True, True]) cond2 = array([False, False, False]) cond3 = array([False, False, False]) goodargs = [array([0.001, 0.5 , 0.999]), array([14, 14, 14]), array([0.24045031, 0.24045031, 0.24045031])] kwds = {} loc = array([0, 0, 0]) lower_bound = -inf output = array([nan, nan, nan]) q = array([0.001, 0.5 , 0.999]) scale = array([1, 1, 1]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.nct_gen object at 0x1231046d<span class="pl-k">0&gt;</span> upper_bound = inf scipy/stats/_continuous_distns.py:6800: <span class="pl-k">in</span> _ppf <span class="pl-k">return</span> _boost._nct_ppf(q, df, nc) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _nct_ppf df = array([14, 14, 14]) nc = array([0.24045031, 0.24045031, 0.24045031]) q = array([0.001, 0.5 , 0.999]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.nct_gen object at 0x1231046d<span class="pl-k">0&gt;</span> _____________________ test_cont_basic[500-200-ncx2-arg76] ______________________ scipy/stats/tests/test_continuous_basic.py:162: <span class="pl-k">in</span> test_cont_basic check_cdf_ppf(distfn, arg, distname) arg = (21, 1.0560465975116415) distfn = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncx2_gen object at 0x<span class="pl-k">123168490&gt;</span> distname = <span class="pl-s"><span class="pl-pds">'</span>ncx2<span class="pl-pds">'</span></span> m = 22.056046597511642 n_fit_samples = 200 rng = RandomState(MT19937) at 0x17F91B240 rvs = array([24.18228087, 28.6893038 , 24.17456852, 14.84747842, 18.70623905, 16.16763421, 9.29241683, 14.62038405, ...716689, 25.11697161, 27.96343751, 35.36238425, 17.36403196, 25.81839268, 23.01798747, 22.53534591, 20.49078605]) sn = 500 v = 46.22418639004657 scipy/stats/tests/test_continuous_basic.py:516: <span class="pl-k">in</span> check_cdf_ppf npt.assert_almost_equal(distfn.cdf(distfn.ppf(values, <span class="pl-k">*</span>arg), <span class="pl-k">*</span>arg), arg = (21, 1.0560465975116415) distfn = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncx2_gen object at 0x<span class="pl-k">123168490&gt;</span> msg = <span class="pl-s"><span class="pl-pds">'</span>ncx2<span class="pl-pds">'</span></span> values = [0.001, 0.5, 0.999] scipy/stats/_distn_infrastructure.py:2160: <span class="pl-k">in</span> cdf place(output, cond, self._cdf(<span class="pl-k">*</span>goodargs)) _a = 0.0 _b = inf args = (array(21), array(1.0560466)) cond = array([ True, True, True]) cond0 = True cond1 = array([ True, True, True]) cond2 = array([False, False, False]) dtyp = dtype(<span class="pl-s"><span class="pl-pds">'</span>float64<span class="pl-pds">'</span></span>) goodargs = [array([ 6.77671634, 21.36270226, 49.09451392]), array([21, 21, 21]), array([1.0560466, 1.0560466, 1.0560466])] kwds = {} loc = array(0) output = array([0., 0., 0.]) scale = array(1) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncx2_gen object at 0x<span class="pl-k">123168490&gt;</span> x = array([ 6.77671634, 21.36270226, 49.09451392]) scipy/stats/_continuous_distns.py:6502: <span class="pl-k">in</span> _cdf <span class="pl-k">return</span> _lazywhere(cond, (x, df, nc), f=_boost._ncx2_cdf, cond = array([ True, True, True]) df = array([21, 21, 21]) nc = array([1.0560466, 1.0560466, 1.0560466]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncx2_gen object at 0x<span class="pl-k">123168490&gt;</span> x = array([ 6.77671634, 21.36270226, 49.09451392]) scipy/_lib/_util.py:69: <span class="pl-k">in</span> _lazywhere np.place(out, cond, f(<span class="pl-k">*</span>temp)) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncx2_cdf args = [array([ True, True, True]), array([ 6.77671634, 21.36270226, 49.09451392]), array([21, 21, 21]), array([1.0560466, 1.0560466, 1.0560466])] arrays = [array([ 6.77671634, 21.36270226, 49.09451392]), array([21, 21, 21]), array([1.0560466, 1.0560466, 1.0560466])] cond = array([ True, True, True]) f = <span class="pl-k">&lt;</span>ufunc <span class="pl-s"><span class="pl-pds">'</span>_ncx2_cdf<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span> f2 = <span class="pl-k">&lt;</span>function ncx2_gen._cdf.<span class="pl-k">&lt;</span>locals<span class="pl-k">&gt;</span>.<span class="pl-k">&lt;</span>lambda<span class="pl-k">&gt;</span> at 0x17f9825f<span class="pl-k">0&gt;</span> fillvalue = nan out = array([nan, nan, nan]) tcode = <span class="pl-s"><span class="pl-pds">'</span>d<span class="pl-pds">'</span></span> temp = (array([ 6.77671634, 21.36270226, 49.09451392]), array([21, 21, 21]), array([1.0560466, 1.0560466, 1.0560466])) ___________________ test_methods_with_lists[ncf-args75-ppf] ____________________ scipy/stats/tests/test_continuous_basic.py:714: <span class="pl-k">in</span> test_methods_with_lists result = f(x, <span class="pl-k">*</span>shape2, loc=loc, scale=scale) args = (27, 27, 0.41578441799226107) dist = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;</span> distname = <span class="pl-s"><span class="pl-pds">'</span>ncf<span class="pl-pds">'</span></span> f = <span class="pl-k">&lt;</span>bound method rv_continuous.ppf of <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;&gt;</span> loc = [0, 0.1] method = <span class="pl-s"><span class="pl-pds">'</span>ppf<span class="pl-pds">'</span></span> scale = [1, 1.01] shape2 = [[27, 27], [27, 27], [0.41578441799226107, 0.41578441799226107]] x = [0.1, 0.2] scipy/stats/_distn_infrastructure.py:2333: <span class="pl-k">in</span> ppf place(output, cond, self._ppf(<span class="pl-k">*</span>goodargs) <span class="pl-k">*</span> scale + loc) _a = 0.0 _b = inf args = (array([27, 27]), array([27, 27]), array([0.41578442, 0.41578442])) cond = array([ True, True]) cond0 = array([ True, True]) cond1 = array([ True, True]) cond2 = array([False, False]) cond3 = array([False, False]) goodargs = [array([0.1, 0.2]), array([27, 27]), array([27, 27]), array([0.41578442, 0.41578442])] kwds = {<span class="pl-s"><span class="pl-pds">'</span>loc<span class="pl-pds">'</span></span>: [0, 0.1], <span class="pl-s"><span class="pl-pds">'</span>scale<span class="pl-pds">'</span></span>: [1, 1.01]} loc = array([0. , 0.1]) lower_bound = array([0. , 0.1]) output = array([nan, nan]) q = array([0.1, 0.2]) scale = array([1. , 1.01]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;</span> upper_bound = array([inf, inf]) scipy/stats/_continuous_distns.py:6604: <span class="pl-k">in</span> _ppf <span class="pl-k">return</span> _boost._ncf_ppf(q, dfn, dfd, nc) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncf_ppf dfd = array([27, 27]) dfn = array([27, 27]) nc = array([0.41578442, 0.41578442]) q = array([0.1, 0.2]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;</span> ___________________ test_methods_with_lists[ncf-args75-isf] ____________________ scipy/stats/tests/test_continuous_basic.py:714: <span class="pl-k">in</span> test_methods_with_lists result = f(x, <span class="pl-k">*</span>shape2, loc=loc, scale=scale) args = (27, 27, 0.41578441799226107) dist = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;</span> distname = <span class="pl-s"><span class="pl-pds">'</span>ncf<span class="pl-pds">'</span></span> f = <span class="pl-k">&lt;</span>bound method rv_continuous.isf of <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;&gt;</span> loc = [0, 0.1] method = <span class="pl-s"><span class="pl-pds">'</span>isf<span class="pl-pds">'</span></span> scale = [1, 1.01] shape2 = [[27, 27], [27, 27], [0.41578441799226107, 0.41578441799226107]] x = [0.1, 0.2] scipy/stats/_distn_infrastructure.py:2378: <span class="pl-k">in</span> isf place(output, cond, self._isf(<span class="pl-k">*</span>goodargs) <span class="pl-k">*</span> scale + loc) _a = 0.0 _b = inf args = (array([27, 27]), array([27, 27]), array([0.41578442, 0.41578442])) cond = array([ True, True]) cond0 = array([ True, True]) cond1 = array([ True, True]) cond2 = array([False, False]) cond3 = array([False, False]) goodargs = [array([0.1, 0.2]), array([27, 27]), array([27, 27]), array([0.41578442, 0.41578442])] kwds = {<span class="pl-s"><span class="pl-pds">'</span>loc<span class="pl-pds">'</span></span>: [0, 0.1], <span class="pl-s"><span class="pl-pds">'</span>scale<span class="pl-pds">'</span></span>: [1, 1.01]} loc = array([0. , 0.1]) lower_bound = array([0. , 0.1]) output = array([nan, nan]) q = array([0.1, 0.2]) scale = array([1. , 1.01]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;</span> upper_bound = array([inf, inf]) scipy/stats/_continuous_distns.py:6610: <span class="pl-k">in</span> _isf <span class="pl-k">return</span> _boost._ncf_isf(x, dfn, dfd, nc) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncf_isf dfd = array([27, 27]) dfn = array([27, 27]) nc = array([0.41578442, 0.41578442]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncf_gen object at 0x123106c<span class="pl-k">20&gt;</span> x = array([0.1, 0.2]) ___________________ test_discrete_basic[skellam-arg17-True] ____________________ scipy/stats/tests/test_discrete_basic.py:47: <span class="pl-k">in</span> test_discrete_basic check_cdf_ppf(distfn, arg, supp, distname + <span class="pl-s"><span class="pl-pds">'</span> cdf_ppf<span class="pl-pds">'</span></span>) arg = (15, 8) distfn = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> distname = <span class="pl-s"><span class="pl-pds">'</span>skellam<span class="pl-pds">'</span></span> first_case = True m = 7.0 rvs = array([ 4, 6, 10, ..., 5, 14, 15]) supp = array([-10, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 25]) v = 23.0 scipy/stats/tests/test_discrete_basic.py:185: <span class="pl-k">in</span> check_cdf_ppf npt.assert_array_equal(distfn.ppf(distfn.cdf(supp, <span class="pl-k">*</span>arg), <span class="pl-k">*</span>arg), arg = (15, 8) distfn = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> msg = <span class="pl-s"><span class="pl-pds">'</span>skellam cdf_ppf<span class="pl-pds">'</span></span> supp = array([-10, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 25]) scipy/stats/_distn_infrastructure.py:3433: <span class="pl-k">in</span> cdf place(output, cond, np.clip(self._cdf(<span class="pl-k">*</span>goodargs), 0, 1)) _ = 1 _a = -inf _b = inf args = (array(15), array(8)) cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True,... True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond0 = True cond1 = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True,... True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond2 = array([False, False, False, False, False, False, False, False, False, False, False, False, False, False, False,...False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]) cond3 = array([False, False, False, False, False, False, False, False, False, False, False, False, False, False, False,...False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]) goodargs = [array([-10, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12..., 15]), array([8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8])] k = array([-10, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 25]) kwds = {} loc = array(0) output = array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> scipy/stats/_discrete_distns.py:1437: <span class="pl-k">in</span> _cdf _boost._ncx2_cdf(2<span class="pl-k">*</span>mu2, -2<span class="pl-k">*</span>x, 2<span class="pl-k">*</span>mu1), E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncx2_cdf mu1 = array([15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15]) mu2 = array([8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8]) self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> x = array([-10., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 25.]) _________________________ test_moments[skellam-arg17] __________________________ scipy/stats/tests/test_discrete_basic.py:89: <span class="pl-k">in</span> test_moments check_normalization(distfn, arg, distname) arg = (15, 8) distfn = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> distname = <span class="pl-s"><span class="pl-pds">'</span>skellam<span class="pl-pds">'</span></span> k = 0.043478260869565216 m = 7.0 s = 0.06346090862606624 v = 23.0 scipy/stats/tests/common_tests.py:32: <span class="pl-k">in</span> check_normalization normalization_expect = distfn.expect(lambda x: 1, args=args) args = (15, 8) atol = 1e-07 distfn = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> distname = <span class="pl-s"><span class="pl-pds">'</span>skellam<span class="pl-pds">'</span></span> norm_moment = 1.0 rtol = 1e-07 scipy/stats/_distn_infrastructure.py:3739: <span class="pl-k">in</span> expect x0 = self.ppf(0.5, <span class="pl-k">*</span>args) _a = -inf _b = inf args = (15, 8) chunksize = 32 conditional = False fun = <span class="pl-k">&lt;</span>function rv_discrete.expect.<span class="pl-k">&lt;</span>locals<span class="pl-k">&gt;</span>.fun at 0x2840aaa<span class="pl-k">70&gt;</span> func = <span class="pl-k">&lt;</span>function check_normalization.<span class="pl-k">&lt;</span>locals<span class="pl-k">&gt;</span>.<span class="pl-k">&lt;</span>lambda<span class="pl-k">&gt;</span> at 0x2840aa8c<span class="pl-k">0&gt;</span> invfac = 1.0 lb = -inf loc = 0 maxcount = 1000 self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> tolerance = 1e-10 ub = inf scipy/stats/_distn_infrastructure.py:3592: <span class="pl-k">in</span> ppf place(output, cond, self._ppf(<span class="pl-k">*</span>goodargs) + loc) _ = 1 _a = -inf _b = inf args = (array(15), array(8)) cond = True cond0 = True cond1 = True cond2 = False goodargs = [array([0.5]), array([15]), array([8])] kwds = {} loc = array([0]) output = array(nan) q = array(0.5) self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> scipy/stats/_distn_infrastructure.py:989: <span class="pl-k">in</span> _ppf <span class="pl-k">return</span> self._ppfvec(q, <span class="pl-k">*</span>args) args = (array([15]), array([8])) q = array([0.5]) self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> /Users/admin/scipy-dev/lib/python3.10/site-packages/numpy/lib/function_base.py:2328: <span class="pl-k">in</span> __call__ <span class="pl-k">return</span> self._vectorize_call(func=func, args=vargs) args = (<span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span>, array([0.5]), array([15]), array([8])) excluded = <span class="pl-en">set</span>() func = <span class="pl-k">&lt;</span>function _drv2_ppfsingle at 0x126867c<span class="pl-k">70&gt;</span> kwargs = {} self = <span class="pl-k">&lt;</span>numpy.vectorize object at 0x1269cd<span class="pl-k">960&gt;</span> vargs = (<span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span>, array([0.5]), array([15]), array([8])) /Users/admin/scipy-dev/lib/python3.10/site-packages/numpy/lib/function_base.py:2411: <span class="pl-k">in</span> _vectorize_call outputs = ufunc(<span class="pl-k">*</span>inputs) args = (<span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span>, array([0.5]), array([15]), array([8])) func = <span class="pl-k">&lt;</span>function _drv2_ppfsingle at 0x126867c<span class="pl-k">70&gt;</span> inputs = [array(<span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span>, dtype=object), array([0.5], dtype=object), array([15], dtype=object), array([8], dtype=object)] otypes = <span class="pl-s"><span class="pl-pds">'</span>d<span class="pl-pds">'</span></span> self = <span class="pl-k">&lt;</span>numpy.vectorize object at 0x1269cd<span class="pl-k">960&gt;</span> ufunc = <span class="pl-k">&lt;</span>ufunc <span class="pl-s"><span class="pl-pds">'</span>_drv2_ppfsingle (vectorized)<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span> scipy/stats/_distn_infrastructure.py:2943: <span class="pl-k">in</span> _drv2_ppfsingle qb = self._cdf(b, <span class="pl-k">*</span>args) _a = -inf _b = inf a = -inf args = (15, 8) b = 50 q = 0.5 self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> scipy/stats/_discrete_distns.py:1438: <span class="pl-k">in</span> _cdf 1 - _boost._ncx2_cdf(2<span class="pl-k">*</span>mu1, 2<span class="pl-k">*</span>(x+1), 2<span class="pl-k">*</span>mu2)) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncx2_cdf mu1 = 15 mu2 = 8 self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> x = 50.0 _____________________________ test_skellam_gh11474 _____________________________ scipy/stats/tests/test_discrete_distns.py:238: <span class="pl-k">in</span> test_skellam_gh11474 cdf = skellam.cdf(0, mu, mu) mu = [1, 10, 100, 1000, 5000, 5050, ...] scipy/stats/_distn_infrastructure.py:3433: <span class="pl-k">in</span> cdf place(output, cond, np.clip(self._cdf(<span class="pl-k">*</span>goodargs), 0, 1)) _ = 1 _a = -inf _b = inf args = (array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000]), array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000])) cond = array([ True, True, True, True, True, True, True, True, True]) cond0 = array([ True, True, True, True, True, True, True, True, True]) cond1 = True cond2 = False cond3 = False goodargs = [array([0, 0, 0, 0, 0, 0, 0, 0, 0]), array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000]), array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000])] k = array(0) kwds = {} loc = array(0) output = array([0., 0., 0., 0., 0., 0., 0., 0., 0.]) self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> scipy/stats/_discrete_distns.py:1438: <span class="pl-k">in</span> _cdf 1 - _boost._ncx2_cdf(2<span class="pl-k">*</span>mu1, 2<span class="pl-k">*</span>(x+1), 2<span class="pl-k">*</span>mu2)) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncx2_cdf mu1 = array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000]) mu2 = array([ 1, 10, 100, 1000, 5000, 5050, 5100, 5250, 6000]) self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> x = array([0., 0., 0., 0., 0., 0., 0., 0., 0.]) _____________________________ TestSkellam.test_cdf _____________________________ scipy/stats/tests/test_distributions.py:3249: <span class="pl-k">in</span> test_cdf assert_almost_equal(stats.skellam.cdf(k, mu1, mu2), skcdfR, decimal=5) k = array([-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]) mu1 = 10 mu2 = 5 self = <span class="pl-k">&lt;</span>scipy.stats.tests.test_distributions.TestSkellam object at 0x14aba<span class="pl-k">4520&gt;</span> skcdfR = array([6.40614754e-05, 1.78109860e-04, 4.67906118e-04, 1.15967690e-03, 2.70774851e-03, 5.94897601e-03, 1.228634...799e-01, 8.77852572e-01, 9.21121265e-01, 9.51369425e-01, 9.71360859e-01, 9.83877736e-01, 9.91316724e-01]) scipy/stats/_distn_infrastructure.py:3433: <span class="pl-k">in</span> cdf place(output, cond, np.clip(self._cdf(<span class="pl-k">*</span>goodargs), 0, 1)) _ = 1 _a = -inf _b = inf args = (array(10), array(5)) cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond0 = True cond1 = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond2 = array([False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]) cond3 = array([False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]) goodargs = [array([-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10...0, 10, 10, 10, 10, 10, 10]), array([5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5])] k = array([-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]) kwds = {} loc = array(0) output = array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> scipy/stats/_discrete_distns.py:1437: <span class="pl-k">in</span> _cdf _boost._ncx2_cdf(2<span class="pl-k">*</span>mu2, -2<span class="pl-k">*</span>x, 2<span class="pl-k">*</span>mu1), E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncx2_cdf mu1 = array([10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]) mu2 = array([5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]) self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> x = array([-10., -9., -8., -7., -6., -5., -4., -3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14.]) ___________________________ TestExpect.test_skellam ____________________________ scipy/stats/tests/test_distributions.py:4833: <span class="pl-k">in</span> test_skellam m1 = stats.skellam.expect(lambda x: x, args=(p1, p2)) p1 = 18 p2 = 22 self = <span class="pl-k">&lt;</span>scipy.stats.tests.test_distributions.TestExpect object at 0x149f402b<span class="pl-k">0&gt;</span> scipy/stats/_distn_infrastructure.py:3739: <span class="pl-k">in</span> expect x0 = self.ppf(0.5, <span class="pl-k">*</span>args) _a = -inf _b = inf args = (18, 22) chunksize = 32 conditional = False fun = <span class="pl-k">&lt;</span>function rv_discrete.expect.<span class="pl-k">&lt;</span>locals<span class="pl-k">&gt;</span>.fun at 0x2852a<span class="pl-k">5120&gt;</span> func = <span class="pl-k">&lt;</span>function TestExpect.test_skellam.<span class="pl-k">&lt;</span>locals<span class="pl-k">&gt;</span>.<span class="pl-k">&lt;</span>lambda<span class="pl-k">&gt;</span> at 0x2852a4ca<span class="pl-k">0&gt;</span> invfac = 1.0 lb = -inf loc = 0 maxcount = 1000 self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> tolerance = 1e-10 ub = inf scipy/stats/_distn_infrastructure.py:3592: <span class="pl-k">in</span> ppf place(output, cond, self._ppf(<span class="pl-k">*</span>goodargs) + loc) _ = 1 _a = -inf _b = inf args = (array(18), array(22)) cond = True cond0 = True cond1 = True cond2 = False goodargs = [array([0.5]), array([18]), array([22])] kwds = {} loc = array([0]) output = array(nan) q = array(0.5) self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> scipy/stats/_distn_infrastructure.py:989: <span class="pl-k">in</span> _ppf <span class="pl-k">return</span> self._ppfvec(q, <span class="pl-k">*</span>args) args = (array([18]), array([22])) q = array([0.5]) self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> /Users/admin/scipy-dev/lib/python3.10/site-packages/numpy/lib/function_base.py:2328: <span class="pl-k">in</span> __call__ <span class="pl-k">return</span> self._vectorize_call(func=func, args=vargs) args = (<span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span>, array([0.5]), array([18]), array([22])) excluded = <span class="pl-en">set</span>() func = <span class="pl-k">&lt;</span>function _drv2_ppfsingle at 0x126867c<span class="pl-k">70&gt;</span> kwargs = {} self = <span class="pl-k">&lt;</span>numpy.vectorize object at 0x1269cd<span class="pl-k">960&gt;</span> vargs = (<span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span>, array([0.5]), array([18]), array([22])) /Users/admin/scipy-dev/lib/python3.10/site-packages/numpy/lib/function_base.py:2411: <span class="pl-k">in</span> _vectorize_call outputs = ufunc(<span class="pl-k">*</span>inputs) args = (<span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span>, array([0.5]), array([18]), array([22])) func = <span class="pl-k">&lt;</span>function _drv2_ppfsingle at 0x126867c<span class="pl-k">70&gt;</span> inputs = [array(<span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span>, dtype=object), array([0.5], dtype=object), array([18], dtype=object), array([22], dtype=object)] otypes = <span class="pl-s"><span class="pl-pds">'</span>d<span class="pl-pds">'</span></span> self = <span class="pl-k">&lt;</span>numpy.vectorize object at 0x1269cd<span class="pl-k">960&gt;</span> ufunc = <span class="pl-k">&lt;</span>ufunc <span class="pl-s"><span class="pl-pds">'</span>_drv2_ppfsingle (vectorized)<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span> scipy/stats/_distn_infrastructure.py:2943: <span class="pl-k">in</span> _drv2_ppfsingle qb = self._cdf(b, <span class="pl-k">*</span>args) _a = -inf _b = inf a = -inf args = (18, 22) b = 50 q = 0.5 self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> scipy/stats/_discrete_distns.py:1438: <span class="pl-k">in</span> _cdf 1 - _boost._ncx2_cdf(2<span class="pl-k">*</span>mu1, 2<span class="pl-k">*</span>(x+1), 2<span class="pl-k">*</span>mu2)) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncx2_cdf mu1 = 18 mu2 = 22 self = <span class="pl-k">&lt;</span>scipy.stats._discrete_distns.skellam_gen object at 0x1269cde<span class="pl-k">70&gt;</span> x = 50.0 __________________________ test_ncx2_tails_ticket_955 __________________________ scipy/stats/tests/test_distributions.py:6292: <span class="pl-k">in</span> test_ncx2_tails_ticket_955 a = stats.ncx2.cdf(np.arange(20, 25, 0.2), 2, 1.07458615e+02) scipy/stats/_distn_infrastructure.py:2160: <span class="pl-k">in</span> cdf place(output, cond, self._cdf(<span class="pl-k">*</span>goodargs)) _a = 0.0 _b = inf args = (array(2), array(107.458615)) cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond0 = True cond1 = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) cond2 = array([False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]) dtyp = dtype(<span class="pl-s"><span class="pl-pds">'</span>float64<span class="pl-pds">'</span></span>) goodargs = [array([20. , 20.2, 20.4, 20.6, 20.8, 21. , 21.2, 21.4, 21.6, 21.8, 22. , 22.2, 22.4, 22.6, 22.8, 23. , 23.2, 2...5, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615])] kwds = {} loc = array(0) output = array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) scale = array(1) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncx2_gen object at 0x<span class="pl-k">123168490&gt;</span> x = array([20. , 20.2, 20.4, 20.6, 20.8, 21. , 21.2, 21.4, 21.6, 21.8, 22. , 22.2, 22.4, 22.6, 22.8, 23. , 23.2, 23.4, 23.6, 23.8, 24. , 24.2, 24.4, 24.6, 24.8]) scipy/stats/_continuous_distns.py:6502: <span class="pl-k">in</span> _cdf <span class="pl-k">return</span> _lazywhere(cond, (x, df, nc), f=_boost._ncx2_cdf, cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) df = array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]) nc = array([107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.4586...15, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncx2_gen object at 0x<span class="pl-k">123168490&gt;</span> x = array([20. , 20.2, 20.4, 20.6, 20.8, 21. , 21.2, 21.4, 21.6, 21.8, 22. , 22.2, 22.4, 22.6, 22.8, 23. , 23.2, 23.4, 23.6, 23.8, 24. , 24.2, 24.4, 24.6, 24.8]) scipy/_lib/_util.py:69: <span class="pl-k">in</span> _lazywhere np.place(out, cond, f(<span class="pl-k">*</span>temp)) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncx2_cdf args = [array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True...5, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615])] arrays = [array([20. , 20.2, 20.4, 20.6, 20.8, 21. , 21.2, 21.4, 21.6, 21.8, 22. , 22.2, 22.4, 22.6, 22.8, 23. , 23.2, 2...5, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615])] cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True]) f = <span class="pl-k">&lt;</span>ufunc <span class="pl-s"><span class="pl-pds">'</span>_ncx2_cdf<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span> f2 = <span class="pl-k">&lt;</span>function ncx2_gen._cdf.<span class="pl-k">&lt;</span>locals<span class="pl-k">&gt;</span>.<span class="pl-k">&lt;</span>lambda<span class="pl-k">&gt;</span> at 0x2852a6f<span class="pl-k">80&gt;</span> fillvalue = nan out = array([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan]) tcode = <span class="pl-s"><span class="pl-pds">'</span>d<span class="pl-pds">'</span></span> temp = (array([20. , 20.2, 20.4, 20.6, 20.8, 21. , 21.2, 21.4, 21.6, 21.8, 22. , 22.2, 22.4, 22.6, 22.8, 23. , 23.2, 2...5, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615, 107.458615])) ______________________________ test_ncx2_gh12731 _______________________________ scipy/stats/tests/test_distributions.py:6345: <span class="pl-k">in</span> test_ncx2_gh12731 assert_equal(stats.ncx2.cdf(1e4, df=1, nc=nc), 0) nc = array([ 100000, 1000000, 10000000, 100000000, 1000000000]) scipy/stats/_distn_infrastructure.py:2160: <span class="pl-k">in</span> cdf place(output, cond, self._cdf(<span class="pl-k">*</span>goodargs)) _a = 0.0 _b = inf args = (array(1), array([ 100000, 1000000, 10000000, 100000000, 1000000000])) cond = array([ True, True, True, True, True]) cond0 = array([ True, True, True, True, True]) cond1 = True cond2 = array([False, False, False, False, False]) dtyp = dtype(<span class="pl-s"><span class="pl-pds">'</span>float64<span class="pl-pds">'</span></span>) goodargs = [array([10000., 10000., 10000., 10000., 10000.]), array([1, 1, 1, 1, 1]), array([ 100000, 1000000, 10000000, 100000000, 1000000000])] kwds = {<span class="pl-s"><span class="pl-pds">'</span>df<span class="pl-pds">'</span></span>: 1, <span class="pl-s"><span class="pl-pds">'</span>nc<span class="pl-pds">'</span></span>: array([ 100000, 1000000, 10000000, 100000000, 1000000000])} loc = array(0) output = array([0., 0., 0., 0., 0.]) scale = array(1) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncx2_gen object at 0x<span class="pl-k">123168490&gt;</span> x = array(10000.) scipy/stats/_continuous_distns.py:6502: <span class="pl-k">in</span> _cdf <span class="pl-k">return</span> _lazywhere(cond, (x, df, nc), f=_boost._ncx2_cdf, cond = array([ True, True, True, True, True]) df = array([1, 1, 1, 1, 1]) nc = array([ 100000, 1000000, 10000000, 100000000, 1000000000]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncx2_gen object at 0x<span class="pl-k">123168490&gt;</span> x = array([10000., 10000., 10000., 10000., 10000.]) scipy/_lib/_util.py:69: <span class="pl-k">in</span> _lazywhere np.place(out, cond, f(<span class="pl-k">*</span>temp)) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncx2_cdf args = [array([ True, True, True, True, True]), array([10000., 10000., 10000., 10000., 10000.]), array([1, 1, 1, 1, 1]), array([ 100000, 1000000, 10000000, 100000000, 1000000000])] arrays = [array([10000., 10000., 10000., 10000., 10000.]), array([1, 1, 1, 1, 1]), array([ 100000, 1000000, 10000000, 100000000, 1000000000])] cond = array([ True, True, True, True, True]) f = <span class="pl-k">&lt;</span>ufunc <span class="pl-s"><span class="pl-pds">'</span>_ncx2_cdf<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span> f2 = <span class="pl-k">&lt;</span>function ncx2_gen._cdf.<span class="pl-k">&lt;</span>locals<span class="pl-k">&gt;</span>.<span class="pl-k">&lt;</span>lambda<span class="pl-k">&gt;</span> at 0x2852a<span class="pl-k">6830&gt;</span> fillvalue = nan out = array([nan, nan, nan, nan, nan]) tcode = <span class="pl-s"><span class="pl-pds">'</span>d<span class="pl-pds">'</span></span> temp = (array([10000., 10000., 10000., 10000., 10000.]), array([1, 1, 1, 1, 1]), array([ 100000, 1000000, 10000000, 100000000, 1000000000])) _______________________________ test_ncx2_gh8665 _______________________________ scipy/stats/tests/test_distributions.py:6357: <span class="pl-k">in</span> test_ncx2_gh8665 sf = stats.ncx2.sf(x, df=nu, nc=lam) lam = 499.51538166556196 nu = 20 x = array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515382e+02, 1.07617327e+03, 2.31854502e+03, 4.99515382e+03, 1.07617327e+04, 2.31854502e+04, 4.99515382e+04]) scipy/stats/_distn_infrastructure.py:2243: <span class="pl-k">in</span> sf place(output, cond, self._sf(<span class="pl-k">*</span>goodargs)) _a = 0.0 _b = inf args = (array(20), array(499.51538167)) cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True]) cond0 = True cond1 = array([ True, True, True, True, True, True, True, True, True, True, True, True, True]) cond2 = array([False, False, False, False, False, False, False, False, False, False, False, False, False]) dtyp = dtype(<span class="pl-s"><span class="pl-pds">'</span>float64<span class="pl-pds">'</span></span>) goodargs = [array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515...8167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167])] kwds = {<span class="pl-s"><span class="pl-pds">'</span>df<span class="pl-pds">'</span></span>: 20, <span class="pl-s"><span class="pl-pds">'</span>nc<span class="pl-pds">'</span></span>: 499.51538166556196} loc = array(0) output = array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) scale = array(1) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncx2_gen object at 0x<span class="pl-k">123168490&gt;</span> x = array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515382e+02, 1.07617327e+03, 2.31854502e+03, 4.99515382e+03, 1.07617327e+04, 2.31854502e+04, 4.99515382e+04]) scipy/stats/_continuous_distns.py:6515: <span class="pl-k">in</span> _sf <span class="pl-k">return</span> _lazywhere(cond, (x, df, nc), f=_boost._ncx2_sf, cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True]) df = array([20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]) nc = array([499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167]) self = <span class="pl-k">&lt;</span>scipy.stats._continuous_distns.ncx2_gen object at 0x<span class="pl-k">123168490&gt;</span> x = array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515382e+02, 1.07617327e+03, 2.31854502e+03, 4.99515382e+03, 1.07617327e+04, 2.31854502e+04, 4.99515382e+04]) scipy/_lib/_util.py:69: <span class="pl-k">in</span> _lazywhere np.place(out, cond, f(<span class="pl-k">*</span>temp)) E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _ncx2_sf args = [array([ True, True, True, True, True, True, True, True, True, True, True, True, True]), array([4.9...8167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167])] arrays = [array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515...8167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167])] cond = array([ True, True, True, True, True, True, True, True, True, True, True, True, True]) f = <span class="pl-k">&lt;</span>ufunc <span class="pl-s"><span class="pl-pds">'</span>_ncx2_sf<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span> f2 = <span class="pl-k">&lt;</span>function ncx2_gen._sf.<span class="pl-k">&lt;</span>locals<span class="pl-k">&gt;</span>.<span class="pl-k">&lt;</span>lambda<span class="pl-k">&gt;</span> at 0x2852a7be<span class="pl-k">0&gt;</span> fillvalue = nan out = array([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan]) tcode = <span class="pl-s"><span class="pl-pds">'</span>d<span class="pl-pds">'</span></span> temp = (array([4.99515382e+00, 1.07617327e+01, 2.31854502e+01, 4.99515382e+01, 1.07617327e+02, 2.31854502e+02, 4.99515...8167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167, 499.51538167])) =========================== short <span class="pl-c1">test</span> summary info ============================ FAILED scipy/stats/tests/test_boost_ufuncs.py::test_stats_boost_ufunc[_beta_ppf-args1-0.5] FAILED scipy/stats/tests/test_continuous_basic.py::test_cont_basic[500-200-ncf-arg74] FAILED scipy/stats/tests/test_continuous_basic.py::test_cont_basic[500-200-nct-arg75] FAILED scipy/stats/tests/test_continuous_basic.py::test_cont_basic[500-200-ncx2-arg76] FAILED scipy/stats/tests/test_continuous_basic.py::test_methods_with_lists[ncf-args75-ppf] FAILED scipy/stats/tests/test_continuous_basic.py::test_methods_with_lists[ncf-args75-isf] FAILED scipy/stats/tests/test_discrete_basic.py::test_discrete_basic[skellam-arg17-True] FAILED scipy/stats/tests/test_discrete_basic.py::test_moments[skellam-arg17] FAILED scipy/stats/tests/test_discrete_distns.py::test_skellam_gh11474 - Runt... FAILED scipy/stats/tests/test_distributions.py::TestSkellam::test_cdf - Runti... FAILED scipy/stats/tests/test_distributions.py::TestExpect::test_skellam - Ru... FAILED scipy/stats/tests/test_distributions.py::test_ncx2_tails_ticket_955 - ... FAILED scipy/stats/tests/test_distributions.py::test_ncx2_gh12731 - RuntimeWa... FAILED scipy/stats/tests/test_distributions.py::test_ncx2_gh8665 - RuntimeWar...</pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">cp310-macosx_arm64</p>
<h3 dir="auto">Describe your issue</h3> <p dir="auto">Several statistical distribution methods emit warnings stemming from Boost. This issue tracks the status of all of them.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">beta.ppf</code> as reported here; should be fixed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1393910253" data-permission-text="Title is private" data-url="https://github.com/boostorg/math/issues/827" data-hovercard-type="pull_request" data-hovercard-url="/boostorg/math/pull/827/hovercard" href="https://github.com/boostorg/math/pull/827">boostorg/math#827</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">ncf</code> as reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1388256302" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/17101" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/17101/hovercard" href="https://github.com/scipy/scipy/issues/17101">gh-17101</a>, should be fixed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1410540033" data-permission-text="Title is private" data-url="https://github.com/boostorg/math/issues/846" data-hovercard-type="pull_request" data-hovercard-url="/boostorg/math/pull/846/hovercard" href="https://github.com/boostorg/math/pull/846">boostorg/math#846</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">nct</code> - I'm not sure that this has been reported separately yet. Is it caused by the same sort of thing?</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">ncx2</code> - Ditto.</li> </ul> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1418900239" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/17272" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/17272/hovercard" href="https://github.com/scipy/scipy/pull/17272">gh-17272</a> will silence <a href="https://github.com/scipy/scipy/issues/14901#issuecomment-1272504168" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/14901/hovercard">the failures in SciPy's tests</a> temporarily, but as many of these marks as possible should be removed when <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1405303062" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/17207" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/17207/hovercard" href="https://github.com/scipy/scipy/pull/17207">gh-17207</a> merges.</p> <hr> <p dir="auto"><em>Original Post</em></p> <h3 dir="auto">Describe your issue.</h3> <p dir="auto">macOS CI is failing due to an overflow. I am still trying to reproduce locally.</p> <p dir="auto">NumPy was updated to 1.21.3, could be this or another dependency.</p> <p dir="auto"><a href="https://github.com/scipy/scipy/runs/3960228039">https://github.com/scipy/scipy/runs/3960228039</a></p> <h3 dir="auto">Reproducing Code Example</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# from scipy/stats/tests/test_distributions.py:2878: in test_issue_12796 import numpy as np from scipy import stats q = 0.999995 a = np.array([ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]) b = np.array([99999, 99998, 99997, 99996, 99995, 99994, 99993, 99992, 99991, 99990, 99989, 99988, 99987, 99986, 99985, 99984, 99983, 99982, 99981]) stats.beta.ppf(q, a, b)"><pre class="notranslate"><span class="pl-c"># from scipy/stats/tests/test_distributions.py:2878: in test_issue_12796</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">from</span> <span class="pl-s1">scipy</span> <span class="pl-k">import</span> <span class="pl-s1">stats</span> <span class="pl-s1">q</span> <span class="pl-c1">=</span> <span class="pl-c1">0.999995</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([ <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>, <span class="pl-c1">7</span>, <span class="pl-c1">8</span>, <span class="pl-c1">9</span>, <span class="pl-c1">10</span>, <span class="pl-c1">11</span>, <span class="pl-c1">12</span>, <span class="pl-c1">13</span>, <span class="pl-c1">14</span>, <span class="pl-c1">15</span>, <span class="pl-c1">16</span>, <span class="pl-c1">17</span>, <span class="pl-c1">18</span>, <span class="pl-c1">19</span>, <span class="pl-c1">20</span>]) <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">99999</span>, <span class="pl-c1">99998</span>, <span class="pl-c1">99997</span>, <span class="pl-c1">99996</span>, <span class="pl-c1">99995</span>, <span class="pl-c1">99994</span>, <span class="pl-c1">99993</span>, <span class="pl-c1">99992</span>, <span class="pl-c1">99991</span>, <span class="pl-c1">99990</span>, <span class="pl-c1">99989</span>, <span class="pl-c1">99988</span>, <span class="pl-c1">99987</span>, <span class="pl-c1">99986</span>, <span class="pl-c1">99985</span>, <span class="pl-c1">99984</span>, <span class="pl-c1">99983</span>, <span class="pl-c1">99982</span>, <span class="pl-c1">99981</span>]) <span class="pl-s1">stats</span>.<span class="pl-s1">beta</span>.<span class="pl-en">ppf</span>(<span class="pl-s1">q</span>, <span class="pl-s1">a</span>, <span class="pl-s1">b</span>)</pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12635 - ... 927 FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12794 - ... 928 FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12796 - ... ... scipy/stats/_continuous_distns.py:626: in _ppf 916 return _boost._beta_ppf(q, a, b) 917 E RuntimeWarning: overflow encountered in _beta_ppf"><pre class="notranslate">FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12635 - ... 927 FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12794 - ... 928 FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12796 - ... ... scipy/stats/_continuous_distns.py:626: <span class="pl-k">in</span> _ppf 916 <span class="pl-k">return</span> _boost._beta_ppf(q, a, b) 917 E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _beta_ppf</pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">master on macOS/CI</p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-create-a-form-element#?solution=%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%3Cul%3E%0A%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%3C%2Ful%3E%0A%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%3Col%3E%0A%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%3C%2Fol%3E%0A%3Cform%20action%3D%22%2Fsubmit-cat-photo%22%3E%0A%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%3E%0A%3C%2Fform%3E%0A" rel="nofollow">Waypoint: Create a Form Element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;link href=&quot;http://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;smaller-image thick-green-border&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt;&lt;/a&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot;&gt; &lt;/form&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">http://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } .<span class="pl-c1">smaller-image</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Click here for <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Things cats love:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">I think I wrote correctly but it doesn't work like I thought :(<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13378727/10334974/3089e878-6d18-11e5-8f89-d9420cb51a43.jpg"><img src="https://cloud.githubusercontent.com/assets/13378727/10334974/3089e878-6d18-11e5-8f89-d9420cb51a43.jpg" alt="30" style="max-width: 100%;"></a></p>
1
<p dir="auto">As with today's command line or powershell, it is possible to go to the address bar in the file explorer and type 'cmd' or 'powershell' and it would open in the current directory location.</p> <ol dir="auto"> <li> <p dir="auto">This feature request is about allowing the same behavior by typing 'terminal' - which will open the terminal with the default profile in the directory location.</p> </li> <li> <p dir="auto">In addition please also allow a context menu entry for terminal that would also open the default profile in the current directory.</p> </li> </ol>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">This might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="451765129" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/1133" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/1133/hovercard" href="https://github.com/microsoft/terminal/issues/1133">#1133</a><br> When creating a new profile there should be an option to runas ... I have seen mention of security issues... My current workstation I have a CLI as standard, then I have one that was launched As Administrator and then another CLI that runs as a different user, a user that has elevated privileges in the domain. I have a sudo like function I can use once the tab starts but that seems to fail. I thought using a GUID that correlates to Admin or the domain admin type account but that does not seem to work.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Include an option to run elevated or provide a credential object in the profile<br> {<br> "acrylicOpacity" : 0.30000001192092896,<br> "background" : "<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1130120750" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/12456" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/12456/hovercard" href="https://github.com/microsoft/terminal/issues/12456">#12456</a>",<br> "backgroundImage" : "C:\users\johnk\Pictures\powershell-wmi1.jpg",<br> "backgroundImageOpacity" : 0.34999999403953552,<br> "closeOnExit" : true,<br> "colorScheme" : "Campbell",<br> "commandline" : "powershell.exe",<br> "AsAdmin": true,<br> "credObject" : &lt;notsurehow to grab PSCredential but it would be my FeatureRequest",<br> "cursorColor" : "#FFFFFF",<br> "cursorShape" : "underscore",<br> "fontFace" : "ProFontWindows Nerd Font",<br> "fontSize" : 12,<br> "guid" : "{d5e8489d-3400-4ea9-9eb7-d723fb4f19f5}",<br> "historySize" : 9001,<br> "icon" : "ms-appdata:///roaming/powershell-wmi1.jpg",<br> "name" : "Windows PowerShell",<br> "padding" : "0, 0, 0, 0",<br> "snapOnInput" : true,<br> "startingDirectory" : "%USERPROFILE%",<br> "useAcrylic" : false<br> }</p>
0
<ul dir="auto"> <li>Deno: v0.35.0</li> </ul> <p dir="auto"><code class="notranslate">.d.ts</code> file can't be compiled when it is executed from CLI.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno empty.d.ts Compile file:///Users/keroxp/src/deno/empty.d.ts No such file or directory (os error 2)"><pre class="notranslate"><code class="notranslate">$ deno empty.d.ts Compile file:///Users/keroxp/src/deno/empty.d.ts No such file or directory (os error 2) </code></pre></div> <p dir="auto">Import without declaration cause same error.</p> <p dir="auto"><strong>some.ts</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import &quot;./empty.d.ts&quot;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">"./empty.d.ts"</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno some.ts Compile file:///Users/keroxp/src/deno/some.ts Compile file:///Users/keroxp/src/deno/empty.d.ts No such file or directory (os error 2)"><pre class="notranslate"><code class="notranslate">$ deno some.ts Compile file:///Users/keroxp/src/deno/some.ts Compile file:///Users/keroxp/src/deno/empty.d.ts No such file or directory (os error 2) </code></pre></div> <p dir="auto">With declaration, no error.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import * as empty from &quot;./empty.d.ts&quot;"><pre class="notranslate"><code class="notranslate">import * as empty from "./empty.d.ts" </code></pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="❯❯❯ cat types.d.ts export interface HelloWorld {} ❯❯❯ cat mod.ts export * from &quot;./types.d.ts&quot;; ❯❯❯ deno info mod.ts error: Failed to get compiled source code of file:///mnt/f9/Projects/github.com/denoland/deno_registry2/types.d.ts. Reason: No such file or directory (os error 2)"><pre class="notranslate">❯❯❯ cat types.d.ts <span class="pl-k">export</span> interface HelloWorld {} ❯❯❯ cat mod.ts <span class="pl-k">export</span> <span class="pl-k">*</span> from <span class="pl-s"><span class="pl-pds">"</span>./types.d.ts<span class="pl-pds">"</span></span><span class="pl-k">;</span> ❯❯❯ deno info mod.ts error: Failed to get compiled <span class="pl-c1">source</span> code of file:///mnt/f9/Projects/github.com/denoland/deno_registry2/types.d.ts. Reason: No such file or directory (os error 2)</pre></div> <p dir="auto">Try it out locally: <code class="notranslate">$ deno cache https://git.io/JJsqz</code></p> <p dir="auto">The quick hacky fix is to forcefully emit an empty file when when tsc skips emitting the file. We know which files we are expecting to be emitted because they should map 1:1 to the input (source) files.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a></p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">Compilation produces the following with strictNullChecks enabled:</p> <p dir="auto">node_modules/@angular/forms/src/model.d.ts(374,27): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; emitModelToViewChange?: boolea...' has no property 'onlySelf' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(374,37): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; emitModelToViewChange?: boolea...' has no property 'emitEvent' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(374,48): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; emitModelToViewChange?: boolea...' has no property 'emitModelToViewChange' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(374,71): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; emitModelToViewChange?: boolea...' has no property 'emitViewToModelChange' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(421,29): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'onlySelf' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(421,39): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'emitEvent' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(544,9): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'onlySelf' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(544,19): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'emitEvent' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(571,9): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'onlySelf' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(571,19): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'emitEvent' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(607,25): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'onlySelf' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(607,35): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'emitEvent' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(711,29): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'onlySelf' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(711,39): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'emitEvent' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(735,31): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'onlySelf' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(735,41): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'emitEvent' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(770,25): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'onlySelf' and no string index signature.<br> node_modules/@angular/forms/src/model.d.ts(770,35): error TS2459: Type '{ onlySelf?: boolean | undefined; emitEvent?: boolean | undefined; } | undefined' has no property 'emitEvent' and no string index signature.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Compilation should not produce any errors.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 4.1.0</li> </ul> <ul dir="auto"> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> </ul> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.2.2</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.10.2</p> </li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Originally we implemented <code class="notranslate">strictNullChecks</code> support by hand-modifying the public api surface and testing apps against that with <code class="notranslate">strictNullChecks</code> tsc option on. We though we got a good coverage and fixed all the issues, but during the RC we started noticing that we missed quite a few places.</p> <p dir="auto">Eventually <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhevery/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhevery">@mhevery</a> went off to implement this properly by actually making the Angular codebase compile with <code class="notranslate">strictNullChecks</code> on without hand-tweaking the API. This work (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="216243890" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/15405" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/15405/hovercard" href="https://github.com/angular/angular/pull/15405">#15405</a>) surfaced a lot more issues with our public api surface that affects apps that do turn on <code class="notranslate">strictNullChecks</code>.</p> <p dir="auto">To make matters worse, we realized that if we were to allow apps to turn on <code class="notranslate">strictNullChecks</code> with these bugs in our public api surface, we wouldn't be able to fix the issues without breaking the apps that do turn on <code class="notranslate">strictNullChecks</code>.</p> <p dir="auto"><strong>Expected behavior</strong><br> Correct <code class="notranslate">strictNullChecks</code> support.</p> <p dir="auto"><strong>Proposed plan</strong></p> <ul dir="auto"> <li>Prevent applications from turning on <code class="notranslate">strictNullChecks</code> for now via a bogus symbol in our api that fails the strict null check</li> <li>Release 4.0 without the <code class="notranslate">strictNullChecks</code> support</li> <li>Merge <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhevery/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhevery">@mhevery</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="216243890" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/15405" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/15405/hovercard" href="https://github.com/angular/angular/pull/15405">#15405</a> and any other follow up PRs related to this</li> <li>Release the <code class="notranslate">strictNullChecks</code> support in 4.1 (due in April, approximately one month from now)</li> </ul>
1
<p dir="auto">I created a form without labels and tried to use the optional success/warning/error icons and noticed that they were not positioned correctly:</p> <p dir="auto"><a href="http://jsfiddle.net/9DSQZ/" rel="nofollow">http://jsfiddle.net/9DSQZ/</a></p> <p dir="auto">It seems as though the positioning of these is determined by a label of 25px height being above the form input.</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".has-feedback .form-control-feedback { position: absolute; top: 25px; ... }"><pre class="notranslate">.<span class="pl-c1">has-feedback</span> .<span class="pl-c1">form-control-feedback</span> { <span class="pl-c1">position</span><span class="pl-kos">:</span> absolute; <span class="pl-c1">top</span><span class="pl-kos">:</span> <span class="pl-c1">25<span class="pl-smi">px</span></span>; ... }</pre></div> <p dir="auto">This means if we style, move or hide form labels, the icon positioning needs to be adjusted.</p>
<p dir="auto">When using the has-feedback class on a form and if the label on the form group is not specified then it does not render correctly.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;form&gt; &lt;div class=&quot;form-group has-success has-feedback&quot;&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;inputSuccess2&quot;&gt; &lt;span class=&quot;glyphicon glyphicon-ok form-control-feedback&quot;&gt;&lt;/span&gt; &lt;/div&gt; &lt;/form&gt;"><pre class="notranslate"><code class="notranslate">&lt;form&gt; &lt;div class="form-group has-success has-feedback"&gt; &lt;input type="text" class="form-control" id="inputSuccess2"&gt; &lt;span class="glyphicon glyphicon-ok form-control-feedback"&gt;&lt;/span&gt; &lt;/div&gt; &lt;/form&gt; </code></pre></div> <p dir="auto">The above code renders like this.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/ffad285c2097690809a7cd5a04208d3a2aa5fa0e7aac88337c2773ddd0752499/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313633393330322f323239303330322f33616434653435652d613031392d313165332d393865392d3832303464663561373137642e706e67"><img src="https://camo.githubusercontent.com/ffad285c2097690809a7cd5a04208d3a2aa5fa0e7aac88337c2773ddd0752499/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313633393330322f323239303330322f33616434653435652d613031392d313165332d393865392d3832303464663561373137642e706e67" alt="bootstrap_feedback_issue" data-canonical-src="https://f.cloud.github.com/assets/1639302/2290302/3ad4e45e-a019-11e3-98e9-8204df5a717d.png" style="max-width: 100%;"></a></p>
1
<h2 dir="auto">Feature request</h2> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">If I have the following,</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import('test.js')"><pre class="notranslate"><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'test.js'</span><span class="pl-kos">)</span></pre></div> <p dir="auto">with the config,</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = { output: { chunkFormat: &quot;module&quot;, }, target: [&quot;web&quot;, &quot;es2020&quot;], };"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">output</span>: <span class="pl-kos">{</span> <span class="pl-c1">chunkFormat</span>: <span class="pl-s">"module"</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">target</span>: <span class="pl-kos">[</span><span class="pl-s">"web"</span><span class="pl-kos">,</span> <span class="pl-s">"es2020"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">You get the following output</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(()=&gt;{var e,t,r,o,n={},f={};function i(e){var t=f[e];if(void 0!==t)return t.exports;var r=f[e]={exports:{}};return n[e](r,r.exports,i),r.exports}i.m=n,t=Object.getPrototypeOf?e=&gt;Object.getPrototypeOf(e):e=&gt;e.__proto__,i.t=function(r,o){if(1&amp;o&amp;&amp;(r=this(r)),8&amp;o)return r;if(&quot;object&quot;==typeof r&amp;&amp;r){if(4&amp;o&amp;&amp;r.__esModule)return r;if(16&amp;o&amp;&amp;&quot;function&quot;==typeof r.then)return r}var n=Object.create(null);i.r(n);var f={};e=e||[null,t({}),t([]),t(t)];for(var u=2&amp;o&amp;&amp;r;&quot;object&quot;==typeof u&amp;&amp;!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((e=&gt;f[e]=()=&gt;r[e]));return f.default=()=&gt;r,i.d(n,f),n},i.d=(e,t)=&gt;{for(var r in t)i.o(t,r)&amp;&amp;!i.o(e,r)&amp;&amp;Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=&gt;Promise.all(Object.keys(i.f).reduce(((t,r)=&gt;(i.f[r](e,t),t)),[])),i.u=e=&gt;e+&quot;.js&quot;,i.o=(e,t)=&gt;Object.prototype.hasOwnProperty.call(e,t),i.r=e=&gt;{&quot;undefined&quot;!=typeof Symbol&amp;&amp;Symbol.toStringTag&amp;&amp;Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;}),Object.defineProperty(e,&quot;__esModule&quot;,{value:!0})},r={179:0},o=e=&gt;{var t,o,{ids:n,modules:f,runtime:u}=e,a=0;for(t in f)i.o(f,t)&amp;&amp;(i.m[t]=f[t]);for(u&amp;&amp;u(i);a&lt;n.length;a++)o=n[a],i.o(r,o)&amp;&amp;r[o]&amp;&amp;r[o][0](),r[n[a]]=0},i.f.j=(e,t)=&gt;{var n=i.o(r,e)?r[e]:void 0;if(0!==n)if(n)t.push(n[1]);else{var f=import(&quot;./&quot;+i.u(e)).then(o,(t=&gt;{throw 0!==r[e]&amp;&amp;(r[e]=void 0),t}));f=Promise.race([f,new Promise((t=&gt;n=r[e]=[t]))]),t.push(n[1]=f)}},i.e(4).then(i.t.bind(i,4,23))})();"><pre class="notranslate"><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">var</span> <span class="pl-s1">e</span><span class="pl-kos">,</span><span class="pl-s1">t</span><span class="pl-kos">,</span><span class="pl-s1">r</span><span class="pl-kos">,</span><span class="pl-s1">o</span><span class="pl-kos">,</span><span class="pl-s1">n</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-s1">f</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span><span class="pl-k">function</span> <span class="pl-en">i</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span><span class="pl-kos">{</span><span class="pl-k">var</span> <span class="pl-s1">t</span><span class="pl-c1">=</span><span class="pl-s1">f</span><span class="pl-kos">[</span><span class="pl-s1">e</span><span class="pl-kos">]</span><span class="pl-kos">;</span><span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-c1">!==</span><span class="pl-s1">t</span><span class="pl-kos">)</span><span class="pl-k">return</span> <span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">exports</span><span class="pl-kos">;</span><span class="pl-k">var</span> <span class="pl-s1">r</span><span class="pl-c1">=</span><span class="pl-s1">f</span><span class="pl-kos">[</span><span class="pl-s1">e</span><span class="pl-kos">]</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">exports</span>:<span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-kos">;</span><span class="pl-k">return</span> <span class="pl-s1">n</span><span class="pl-kos">[</span><span class="pl-s1">e</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">r</span><span class="pl-kos">,</span><span class="pl-s1">r</span><span class="pl-kos">.</span><span class="pl-c1">exports</span><span class="pl-kos">,</span><span class="pl-s1">i</span><span class="pl-kos">)</span><span class="pl-kos">,</span><span class="pl-s1">r</span><span class="pl-kos">.</span><span class="pl-c1">exports</span><span class="pl-kos">}</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-c1">m</span><span class="pl-c1">=</span><span class="pl-s1">n</span><span class="pl-kos">,</span><span class="pl-s1">t</span><span class="pl-c1">=</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-c1">getPrototypeOf</span>?<span class="pl-s1">e</span><span class="pl-c1">=&gt;</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">getPrototypeOf</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span>:<span class="pl-s1">e</span><span class="pl-c1">=&gt;</span><span class="pl-s1">e</span><span class="pl-kos">.</span><span class="pl-c1">__proto__</span><span class="pl-kos">,</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">t</span><span class="pl-c1">=</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">r</span><span class="pl-kos">,</span><span class="pl-s1">o</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">1</span><span class="pl-c1">&amp;</span><span class="pl-s1">o</span><span class="pl-c1">&amp;&amp;</span><span class="pl-kos">(</span><span class="pl-s1">r</span><span class="pl-c1">=</span><span class="pl-smi">this</span><span class="pl-kos">(</span><span class="pl-s1">r</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">,</span><span class="pl-c1">8</span><span class="pl-c1">&amp;</span><span class="pl-s1">o</span><span class="pl-kos">)</span><span class="pl-k">return</span> <span class="pl-s1">r</span><span class="pl-kos">;</span><span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s">"object"</span><span class="pl-c1">==</span><span class="pl-k">typeof</span> <span class="pl-s1">r</span><span class="pl-c1">&amp;&amp;</span><span class="pl-s1">r</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">4</span><span class="pl-c1">&amp;</span><span class="pl-s1">o</span><span class="pl-c1">&amp;&amp;</span><span class="pl-s1">r</span><span class="pl-kos">.</span><span class="pl-c1">__esModule</span><span class="pl-kos">)</span><span class="pl-k">return</span> <span class="pl-s1">r</span><span class="pl-kos">;</span><span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-c1">16</span><span class="pl-c1">&amp;</span><span class="pl-s1">o</span><span class="pl-c1">&amp;&amp;</span><span class="pl-s">"function"</span><span class="pl-c1">==</span><span class="pl-k">typeof</span> <span class="pl-s1">r</span><span class="pl-kos">.</span><span class="pl-c1">then</span><span class="pl-kos">)</span><span class="pl-k">return</span> <span class="pl-s1">r</span><span class="pl-kos">}</span><span class="pl-k">var</span> <span class="pl-s1">n</span><span class="pl-c1">=</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">r</span><span class="pl-kos">(</span><span class="pl-s1">n</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-k">var</span> <span class="pl-s1">f</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span><span class="pl-s1">e</span><span class="pl-c1">=</span><span class="pl-s1">e</span><span class="pl-c1">||</span><span class="pl-kos">[</span><span class="pl-c1">null</span><span class="pl-kos">,</span><span class="pl-s1">t</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">t</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">t</span><span class="pl-kos">(</span><span class="pl-s1">t</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">;</span><span class="pl-k">for</span><span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">u</span><span class="pl-c1">=</span><span class="pl-c1">2</span><span class="pl-c1">&amp;</span><span class="pl-s1">o</span><span class="pl-c1">&amp;&amp;</span><span class="pl-s1">r</span><span class="pl-kos">;</span><span class="pl-s">"object"</span><span class="pl-c1">==</span><span class="pl-k">typeof</span> <span class="pl-s1">u</span><span class="pl-c1">&amp;&amp;</span><span class="pl-c1">!</span><span class="pl-c1">~</span><span class="pl-s1">e</span><span class="pl-kos">.</span><span class="pl-en">indexOf</span><span class="pl-kos">(</span><span class="pl-s1">u</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-s1">u</span><span class="pl-c1">=</span><span class="pl-s1">t</span><span class="pl-kos">(</span><span class="pl-s1">u</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">getOwnPropertyNames</span><span class="pl-kos">(</span><span class="pl-s1">u</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-c1">=&gt;</span><span class="pl-s1">f</span><span class="pl-kos">[</span><span class="pl-s1">e</span><span class="pl-kos">]</span><span class="pl-c1">=</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-s1">r</span><span class="pl-kos">[</span><span class="pl-s1">e</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-k">return</span> <span class="pl-s1">f</span><span class="pl-kos">.</span><span class="pl-en">default</span><span class="pl-c1">=</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-s1">r</span><span class="pl-kos">,</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">d</span><span class="pl-kos">(</span><span class="pl-s1">n</span><span class="pl-kos">,</span><span class="pl-s1">f</span><span class="pl-kos">)</span><span class="pl-kos">,</span><span class="pl-s1">n</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">d</span><span class="pl-c1">=</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">,</span><span class="pl-s1">t</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span><span class="pl-k">for</span><span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">r</span> <span class="pl-k">in</span> <span class="pl-s1">t</span><span class="pl-kos">)</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">o</span><span class="pl-kos">(</span><span class="pl-s1">t</span><span class="pl-kos">,</span><span class="pl-s1">r</span><span class="pl-kos">)</span><span class="pl-c1">&amp;&amp;</span><span class="pl-c1">!</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">o</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">,</span><span class="pl-s1">r</span><span class="pl-kos">)</span><span class="pl-c1">&amp;&amp;</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">,</span><span class="pl-s1">r</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-c1">enumerable</span>:<span class="pl-c1">!</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">get</span>:<span class="pl-s1">t</span><span class="pl-kos">[</span><span class="pl-s1">r</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">i</span><span class="pl-kos">.</span><span class="pl-c1">f</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">e</span><span class="pl-c1">=</span><span class="pl-s1">e</span><span class="pl-c1">=&gt;</span><span class="pl-v">Promise</span><span class="pl-kos">.</span><span class="pl-en">all</span><span class="pl-kos">(</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-c1">f</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">t</span><span class="pl-kos">,</span><span class="pl-s1">r</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-c1">f</span><span class="pl-kos">[</span><span class="pl-s1">r</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">,</span><span class="pl-s1">t</span><span class="pl-kos">)</span><span class="pl-kos">,</span><span class="pl-s1">t</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">i</span><span class="pl-kos">.</span><span class="pl-en">u</span><span class="pl-c1">=</span><span class="pl-s1">e</span><span class="pl-c1">=&gt;</span><span class="pl-s1">e</span><span class="pl-c1">+</span><span class="pl-s">".js"</span><span class="pl-kos">,</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">o</span><span class="pl-c1">=</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">,</span><span class="pl-s1">t</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-c1">hasOwnProperty</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">,</span><span class="pl-s1">t</span><span class="pl-kos">)</span><span class="pl-kos">,</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">r</span><span class="pl-c1">=</span><span class="pl-s1">e</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span><span class="pl-s">"undefined"</span><span class="pl-c1">!=</span><span class="pl-k">typeof</span> <span class="pl-v">Symbol</span><span class="pl-c1">&amp;&amp;</span><span class="pl-v">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">toStringTag</span><span class="pl-c1">&amp;&amp;</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">,</span><span class="pl-v">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">toStringTag</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-c1">value</span>:<span class="pl-s">"Module"</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">,</span><span class="pl-s">"__esModule"</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-c1">value</span>:<span class="pl-c1">!</span><span class="pl-c1">0</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-s1">r</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">179</span>:<span class="pl-c1">0</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-s1">o</span><span class="pl-c1">=</span><span class="pl-s1">e</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span><span class="pl-k">var</span> <span class="pl-s1">t</span><span class="pl-kos">,</span><span class="pl-s1">o</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-c1">ids</span>:<span class="pl-s1">n</span><span class="pl-kos">,</span><span class="pl-c1">modules</span>:<span class="pl-s1">f</span><span class="pl-kos">,</span><span class="pl-c1">runtime</span>:<span class="pl-s1">u</span><span class="pl-kos">}</span><span class="pl-c1">=</span><span class="pl-s1">e</span><span class="pl-kos">,</span><span class="pl-s1">a</span><span class="pl-c1">=</span><span class="pl-c1">0</span><span class="pl-kos">;</span><span class="pl-k">for</span><span class="pl-kos">(</span><span class="pl-s1">t</span> <span class="pl-k">in</span> <span class="pl-s1">f</span><span class="pl-kos">)</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">o</span><span class="pl-kos">(</span><span class="pl-s1">f</span><span class="pl-kos">,</span><span class="pl-s1">t</span><span class="pl-kos">)</span><span class="pl-c1">&amp;&amp;</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-c1">m</span><span class="pl-kos">[</span><span class="pl-s1">t</span><span class="pl-kos">]</span><span class="pl-c1">=</span><span class="pl-s1">f</span><span class="pl-kos">[</span><span class="pl-s1">t</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-k">for</span><span class="pl-kos">(</span><span class="pl-s1">u</span><span class="pl-c1">&amp;&amp;</span><span class="pl-s1">u</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-s1">a</span><span class="pl-c1">&lt;</span><span class="pl-s1">n</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span><span class="pl-s1">a</span><span class="pl-c1">++</span><span class="pl-kos">)</span><span class="pl-s1">o</span><span class="pl-c1">=</span><span class="pl-s1">n</span><span class="pl-kos">[</span><span class="pl-s1">a</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">o</span><span class="pl-kos">(</span><span class="pl-s1">r</span><span class="pl-kos">,</span><span class="pl-s1">o</span><span class="pl-kos">)</span><span class="pl-c1">&amp;&amp;</span><span class="pl-s1">r</span><span class="pl-kos">[</span><span class="pl-s1">o</span><span class="pl-kos">]</span><span class="pl-c1">&amp;&amp;</span><span class="pl-s1">r</span><span class="pl-kos">[</span><span class="pl-s1">o</span><span class="pl-kos">]</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span><span class="pl-s1">r</span><span class="pl-kos">[</span><span class="pl-s1">n</span><span class="pl-kos">[</span><span class="pl-s1">a</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-c1">=</span><span class="pl-c1">0</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-c1">f</span><span class="pl-kos">.</span><span class="pl-en">j</span><span class="pl-c1">=</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">,</span><span class="pl-s1">t</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span><span class="pl-k">var</span> <span class="pl-s1">n</span><span class="pl-c1">=</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">o</span><span class="pl-kos">(</span><span class="pl-s1">r</span><span class="pl-kos">,</span><span class="pl-s1">e</span><span class="pl-kos">)</span>?<span class="pl-s1">r</span><span class="pl-kos">[</span><span class="pl-s1">e</span><span class="pl-kos">]</span>:<span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">;</span><span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-c1">!==</span><span class="pl-s1">n</span><span class="pl-kos">)</span><span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">n</span><span class="pl-kos">)</span><span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">n</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-kos">;</span><span class="pl-k">else</span><span class="pl-kos">{</span><span class="pl-k">var</span> <span class="pl-s1">f</span><span class="pl-c1">=</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">"./"</span><span class="pl-c1">+</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-en">u</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">o</span><span class="pl-kos">,</span><span class="pl-kos">(</span><span class="pl-s1">t</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span><span class="pl-k">throw</span> <span class="pl-c1">0</span><span class="pl-c1">!==</span><span class="pl-s1">r</span><span class="pl-kos">[</span><span class="pl-s1">e</span><span class="pl-kos">]</span><span class="pl-c1">&amp;&amp;</span><span class="pl-kos">(</span><span class="pl-s1">r</span><span class="pl-kos">[</span><span class="pl-s1">e</span><span class="pl-kos">]</span><span class="pl-c1">=</span><span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">,</span><span class="pl-s1">t</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">f</span><span class="pl-c1">=</span><span class="pl-v">Promise</span><span class="pl-kos">.</span><span class="pl-en">race</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s1">f</span><span class="pl-kos">,</span><span class="pl-k">new</span> <span class="pl-v">Promise</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">t</span><span class="pl-c1">=&gt;</span><span class="pl-s1">n</span><span class="pl-c1">=</span><span class="pl-s1">r</span><span class="pl-kos">[</span><span class="pl-s1">e</span><span class="pl-kos">]</span><span class="pl-c1">=</span><span class="pl-kos">[</span><span class="pl-s1">t</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">t</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">n</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-c1">=</span><span class="pl-s1">f</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">i</span><span class="pl-kos">.</span><span class="pl-en">e</span><span class="pl-kos">(</span><span class="pl-c1">4</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">i</span><span class="pl-kos">.</span><span class="pl-c1">t</span><span class="pl-kos">.</span><span class="pl-en">bind</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">,</span><span class="pl-c1">4</span><span class="pl-kos">,</span><span class="pl-c1">23</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">Notably - the <code class="notranslate">import("./"+i.u(e))</code></p> <p dir="auto">Is there a way to force this to output a statically analysable import statement (i.e. <code class="notranslate">import("./4.js")</code>)?</p> <p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong></p> <p dir="auto">If you're using webpack to produce libraries that may be used in other build tools (including webpack), statically analysable imports improve optimisations</p> <p dir="auto"><strong>How should this be implemented in your opinion?</strong></p> <p dir="auto">The current config should produce statically analysable imports</p> <div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="-(i.e = (e) =&gt; - Promise.all(Object.keys(i.f).reduce((t, r) =&gt; (i.f[r](e, t), t), []))), +(i.e = (e, importFunction) =&gt; + Promise.all(Object.keys(i.f).reduce((t, r) =&gt; (i.f[r](e, t, importFunction), t), []))), -(i.u = (e) =&gt; e + &quot;.js&quot;), (i.f.j = (e, t, importFunction) =&gt; { var n = i.o(r, e) ? r[e] : void 0; if (0 !== n) if (n) t.push(n[1]); else { - var f = import(&quot;./&quot; + i.u(e)).then(o, (t) =&gt; { + var f = importFunction().then(o, (t) =&gt; { throw (0 !== r[e] &amp;&amp; (r[e] = void 0), t); }); (f = Promise.race([f, new Promise((t) =&gt; (n = r[e] = [t]))])), t.push((n[1] = f)); } }), -i.e(4).then(i.t.bind(i, 4, 23)); +i.e(4, () =&gt; import(&quot;./4.js&quot;)).then(i.t.bind(i, 4, 23));"><pre class="notranslate"><span class="pl-md"><span class="pl-md">-</span>(i.e = (e) =&gt;</span> <span class="pl-md"><span class="pl-md">-</span> Promise.all(Object.keys(i.f).reduce((t, r) =&gt; (i.f[r](e, t), t), []))),</span> <span class="pl-mi1"><span class="pl-mi1">+</span>(i.e = (e, importFunction) =&gt;</span> <span class="pl-mi1"><span class="pl-mi1">+</span> Promise.all(Object.keys(i.f).reduce((t, r) =&gt; (i.f[r](e, t, importFunction), t), []))),</span> <span class="pl-md"><span class="pl-md">-</span>(i.u = (e) =&gt; e + ".js"),</span> (i.f.j = (e, t, importFunction) =&gt; { var n = i.o(r, e) ? r[e] : void 0; if (0 !== n) if (n) t.push(n[1]); else { <span class="pl-md"><span class="pl-md">-</span> var f = import("./" + i.u(e)).then(o, (t) =&gt; {</span> <span class="pl-mi1"><span class="pl-mi1">+</span> var f = importFunction().then(o, (t) =&gt; {</span> throw (0 !== r[e] &amp;&amp; (r[e] = void 0), t); }); (f = Promise.race([f, new Promise((t) =&gt; (n = r[e] = [t]))])), t.push((n[1] = f)); } }), <span class="pl-md"><span class="pl-md">-</span>i.e(4).then(i.t.bind(i, 4, 23));</span> <span class="pl-mi1"><span class="pl-mi1">+</span>i.e(4, () =&gt; import("./4.js")).then(i.t.bind(i, 4, 23));</span></pre></div> <p dir="auto"><strong>Are you willing to work on this yourself?</strong></p> <p dir="auto">No - this is way out of my depth <g-emoji class="g-emoji" alias="sweat_smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f605.png">😅</g-emoji></p>
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong><br> Throughout the webpack code, md4 is used as has function. md4 is deprecated, and disabled by default in openssl-3.0.0+ (<a href="https://www.openssl.org/docs/manmaster/man3/MD4_Final.html" rel="nofollow">https://www.openssl.org/docs/manmaster/man3/MD4_Final.html</a>)</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br> With any current webpack release, on a system with openssl-3.0.0 (i.e. Fedora rawhide), i.e. webpack serve will give</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="9% setup compilation DefinePluginnode:internal/crypto/hash:67 this[kHandle] = new _Hash(algorithm, xofLen); ^ Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at BulkUpdateDecorator.hashFactory (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/lib/util/createHash.js:155:18) at BulkUpdateDecorator.digest (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/lib/util/createHash.js:80:21) at /home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/lib/DefinePlugin.js:595:38 at Hook.eval [as call] (eval at create (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), &lt;anonymous&gt;:198:1) at Hook.CALL_DELEGATE [as _call] (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/node_modules/tapable/lib/Hook.js:14:14) at Compiler.newCompilation (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/lib/Compiler.js:1053:26) at /home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/lib/Compiler.js:1097:29 at Hook.eval [as callAsync] (eval at create (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), &lt;anonymous&gt;:22:1) { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' } error Command failed with exit code 1."><pre class="notranslate"><code class="notranslate">9% setup compilation DefinePluginnode:internal/crypto/hash:67 this[kHandle] = new _Hash(algorithm, xofLen); ^ Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at BulkUpdateDecorator.hashFactory (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/lib/util/createHash.js:155:18) at BulkUpdateDecorator.digest (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/lib/util/createHash.js:80:21) at /home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/lib/DefinePlugin.js:595:38 at Hook.eval [as call] (eval at create (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), &lt;anonymous&gt;:198:1) at Hook.CALL_DELEGATE [as _call] (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/node_modules/tapable/lib/Hook.js:14:14) at Compiler.newCompilation (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/lib/Compiler.js:1053:26) at /home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/lib/Compiler.js:1097:29 at Hook.eval [as callAsync] (eval at create (/home/sandro/Documents/Devel/berlinerglas/berlinerglas-webmap/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), &lt;anonymous&gt;:22:1) { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' } error Command failed with exit code 1. </code></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong><br> No <code class="notranslate">ERR_OSSL_EVP_UNSUPPORTED</code> error</p> <p dir="auto"><strong>Other relevant information:</strong></p> <p dir="auto">webpack version: 5.59.1<br> Node.js version: nodejs-16.11.1-1.fc36.x86_64<br> Operating System: Fedora rawhide<br> Additional tools: -</p> <p dir="auto">Workaround:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cd node_modules/webpack/lib find -type f -exec sed -i 's|md4|sha512|g' {} \;"><pre class="notranslate"><code class="notranslate">cd node_modules/webpack/lib find -type f -exec sed -i 's|md4|sha512|g' {} \; </code></pre></div>
0
<p dir="auto">Uncaught TypeError: Cannot read property 'slice' of undefined</p> <p dir="auto"><strong>Atom Version</strong>: 0.162.0<br> <strong>System</strong>: linux 3.13.0-43-generic<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Steps To Reproduce</h3> <p dir="auto">I have undone some things (ctrl + z) and then redone (ctrl + shift + z).</p> <h3 dir="auto">Stack Trace</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:557 TypeError: Cannot read property 'slice' of undefined at TextBuffer.module.exports.TextBuffer.applyPatch (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:557:39) at BufferPatch.module.exports.BufferPatch.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21) at Transaction.module.exports.Transaction.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/transaction.js:60:29) at History.module.exports.History.undo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:84:24) at TextBuffer.module.exports.TextBuffer.undo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:675:27) at TextEditor.module.exports.TextEditor.undo (/usr/share/atom/resources/app/src/text-editor.js:1137:26) at TextEditor.atom.commands.add.stopEventPropagation.core:undo (/usr/share/atom/resources/app/src/text-editor-element.js:304:19) at atom-text-editor.newCommandListeners.(anonymous function) (/usr/share/atom/resources/app/src/text-editor-element.js:272:32) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:243:29) at /usr/share/atom/resources/app/src/command-registry.js:3:61 at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16) at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22) at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app/src/window-event-handler.js:167:20) "><pre class="notranslate"><code class="notranslate">At /usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:557 TypeError: Cannot read property 'slice' of undefined at TextBuffer.module.exports.TextBuffer.applyPatch (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:557:39) at BufferPatch.module.exports.BufferPatch.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21) at Transaction.module.exports.Transaction.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/transaction.js:60:29) at History.module.exports.History.undo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:84:24) at TextBuffer.module.exports.TextBuffer.undo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:675:27) at TextEditor.module.exports.TextEditor.undo (/usr/share/atom/resources/app/src/text-editor.js:1137:26) at TextEditor.atom.commands.add.stopEventPropagation.core:undo (/usr/share/atom/resources/app/src/text-editor-element.js:304:19) at atom-text-editor.newCommandListeners.(anonymous function) (/usr/share/atom/resources/app/src/text-editor-element.js:272:32) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:243:29) at /usr/share/atom/resources/app/src/command-registry.js:3:61 at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16) at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22) at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app/src/window-event-handler.js:167:20) </code></pre></div>
<h3 dir="auto">Steps To Reproduce:</h3> <ul dir="auto"> <li>Create an __ init __.py in a python package</li> <li>Try to add a few new lines by typing enter (I can't have more than two lines)</li> </ul> <h3 dir="auto">Error</h3> <p dir="auto">Uncaught TypeError: Cannot read property slice of undefined <strong>Atom Version</strong>: 0.158.0 <strong>System</strong>: linux 3.13.0-43-generic <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:557 TypeError: Cannot read property 'slice' of undefined at TextBuffer.module.exports.TextBuffer.applyPatch (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:557:39) at BufferPatch.module.exports.BufferPatch.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21) at Transaction.module.exports.Transaction.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/transaction.js:60:29) at History.module.exports.History.abortTransaction (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:162:24) at History.module.exports.History.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:119:16) at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:683:27) at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app/src/text-editor.js:1146:26) at atom-text-editor.newCommandListeners.(anonymous function) (/usr/share/atom/resources/app/src/text-editor-element.js:290:22) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:243:29) at /usr/share/atom/resources/app/src/command-registry.js:3:61 at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16) at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22) at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app/src/window-event-handler.js:167:20)"><pre class="notranslate"><code class="notranslate">At /usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:557 TypeError: Cannot read property 'slice' of undefined at TextBuffer.module.exports.TextBuffer.applyPatch (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:557:39) at BufferPatch.module.exports.BufferPatch.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21) at Transaction.module.exports.Transaction.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/transaction.js:60:29) at History.module.exports.History.abortTransaction (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:162:24) at History.module.exports.History.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:119:16) at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:683:27) at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app/src/text-editor.js:1146:26) at atom-text-editor.newCommandListeners.(anonymous function) (/usr/share/atom/resources/app/src/text-editor-element.js:290:22) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:243:29) at /usr/share/atom/resources/app/src/command-registry.js:3:61 at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16) at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22) at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app/src/window-event-handler.js:167:20) </code></pre></div>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/connect-mongo</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"> 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/simonxca/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/simonxca">@simonxca</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/horiuchi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/horiuchi">@horiuchi</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sindrenm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sindrenm">@sindrenm</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lukasz-zak/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lukasz-zak">@lukasz-zak</a></li> </ul> </li> </ul> <p dir="auto">Hi<br> I got this error no another project, so I created a minimal project with <em>connect-mongo</em>, and I'm still getting this error. <a href="https://github.com/ezra100/connect-mongo-error">Here's the project</a>. Basically all I did is install <code class="notranslate">@types/connect-mongo, @types/cookie-parser, @types/mongoose</code> (without even the actual implementation of those packages) and ran <code class="notranslate">tsc -p tsconfig.json</code> and I got the following output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(87,9): error TS2300: Duplicate identifier 'NativeBuffer'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(88,9): error TS2300: Duplicate identifier 'NativeDate'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(89,9): error TS2300: Duplicate identifier 'NativeError'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(97,14): error TS2300: Duplicate identifier 'Mongoose'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(98,8): error TS2300: Duplicate identifier 'Mongoose'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(196,9): error TS2300: Duplicate identifier 'CastError'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(260,18): error TS2300: Duplicate identifier 'ConnectionBase'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(479,9): error TS2300: Duplicate identifier 'Connection'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(495,9): error TS2300: Duplicate identifier 'ValidationError'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(504,9): error TS2300: Duplicate identifier 'Error'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(594,9): error TS2300: Duplicate identifier 'VirtualType'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(611,9): error TS2300: Duplicate identifier 'Schema'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(701,48): error TS2314: Generic type 'HookAsyncCallback&lt;T&gt;' requires 1 type argument(s). node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(702,29): error TS2314: Generic type 'HookSyncCallback&lt;T&gt;' requires 1 type argument(s). node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(764,13): error TS2428: All declarations of 'HookSyncCallback' must have identical type parameters. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(768,13): error TS2428: All declarations of 'HookAsyncCallback' must have identical type parameters. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1015,13): error TS2300: Duplicate identifier 'MongooseDocument'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1016,9): error TS2300: Duplicate identifier 'MongooseDocument'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1222,11): error TS2300: Duplicate identifier 'Subdocument'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1238,11): error TS2300: Duplicate identifier 'Array'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1347,11): error TS2300: Duplicate identifier 'DocumentArray'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1376,11): error TS2300: Duplicate identifier 'Buffer'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1408,10): error TS2300: Duplicate identifier 'ObjectIdConstructor'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1416,11): error TS2300: Duplicate identifier 'Decimal128'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1422,11): error TS2300: Duplicate identifier 'Embedded'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1462,9): error TS2300: Duplicate identifier 'Query'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1463,9): error TS2300: Duplicate identifier 'DocumentQuery'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1889,9): error TS2300: Duplicate identifier 'mquery'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1941,13): error TS2300: Duplicate identifier 'Schema'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(2189,9): error TS2300: Duplicate identifier 'Aggregate'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(2324,9): error TS2300: Duplicate identifier 'SchemaType'. node_modules/@types/mongoose/index.d.ts(61,9): error TS2300: Duplicate identifier 'NativeBuffer'. node_modules/@types/mongoose/index.d.ts(62,9): error TS2300: Duplicate identifier 'NativeDate'. node_modules/@types/mongoose/index.d.ts(63,9): error TS2300: Duplicate identifier 'NativeError'. node_modules/@types/mongoose/index.d.ts(71,14): error TS2300: Duplicate identifier 'Mongoose'. node_modules/@types/mongoose/index.d.ts(72,8): error TS2300: Duplicate identifier 'Mongoose'. node_modules/@types/mongoose/index.d.ts(156,9): error TS2300: Duplicate identifier 'CastError'. node_modules/@types/mongoose/index.d.ts(177,18): error TS2300: Duplicate identifier 'ConnectionBase'. node_modules/@types/mongoose/index.d.ts(447,9): error TS2300: Duplicate identifier 'Connection'. node_modules/@types/mongoose/index.d.ts(463,9): error TS2300: Duplicate identifier 'ValidationError'. node_modules/@types/mongoose/index.d.ts(472,9): error TS2300: Duplicate identifier 'Error'. node_modules/@types/mongoose/index.d.ts(562,9): error TS2300: Duplicate identifier 'VirtualType'. node_modules/@types/mongoose/index.d.ts(579,9): error TS2300: Duplicate identifier 'Schema'. node_modules/@types/mongoose/index.d.ts(801,13): error TS2428: All declarations of 'HookSyncCallback' must have identical type parameters. node_modules/@types/mongoose/index.d.ts(805,13): error TS2428: All declarations of 'HookAsyncCallback' must have identical type parameters. node_modules/@types/mongoose/index.d.ts(850,5): error TS2717: Subsequent property declarations must have the same type. Property 'strict' must be of type 'boolean', but here has type 'boolean | &quot;throw&quot;'. node_modules/@types/mongoose/index.d.ts(852,5): error TS2717: Subsequent property declarations must have the same type. Property 'toJSON' must be of type 'any', but here has type 'DocumentToObjectOptions'. node_modules/@types/mongoose/index.d.ts(854,5): error TS2717: Subsequent property declarations must have the same type. Property 'toObject' must be of type 'any', but here has type 'DocumentToObjectOptions'. node_modules/@types/mongoose/index.d.ts(876,5): error TS2717: Subsequent property declarations must have the same type. Property 'timestamps' must be of type 'any', but here has type 'boolean | SchemaTimestampsConfig'. node_modules/@types/mongoose/index.d.ts(888,5): error TS2374: Duplicate string index signature. node_modules/@types/mongoose/index.d.ts(968,5): error TS2717: Subsequent property declarations must have the same type. Property 'validate' must be of type 'any', but here has type 'RegExp | [RegExp, string] | ValidateFn&lt;T&gt; | [ValidateFn&lt;T&gt;, string] | ValidateOpts | ValidateOpts...'. node_modules/@types/mongoose/index.d.ts(1018,5): error TS2374: Duplicate string index signature. node_modules/@types/mongoose/index.d.ts(1046,7): error TS2717: Subsequent property declarations must have the same type. Property 'validator' must be of type 'Function | RegExp', but here has type 'RegExp | ValidateFn&lt;any&gt;'. node_modules/@types/mongoose/index.d.ts(1072,13): error TS2300: Duplicate identifier 'MongooseDocument'. node_modules/@types/mongoose/index.d.ts(1073,9): error TS2300: Duplicate identifier 'MongooseDocument'. node_modules/@types/mongoose/index.d.ts(1275,11): error TS2300: Duplicate identifier 'Subdocument'. node_modules/@types/mongoose/index.d.ts(1291,11): error TS2300: Duplicate identifier 'Array'. node_modules/@types/mongoose/index.d.ts(1400,11): error TS2300: Duplicate identifier 'DocumentArray'. node_modules/@types/mongoose/index.d.ts(1429,11): error TS2300: Duplicate identifier 'Buffer'. node_modules/@types/mongoose/index.d.ts(1461,10): error TS2300: Duplicate identifier 'ObjectIdConstructor'. node_modules/@types/mongoose/index.d.ts(1469,11): error TS2300: Duplicate identifier 'Decimal128'. node_modules/@types/mongoose/index.d.ts(1475,11): error TS2300: Duplicate identifier 'Embedded'. node_modules/@types/mongoose/index.d.ts(1515,9): error TS2300: Duplicate identifier 'Query'. node_modules/@types/mongoose/index.d.ts(1516,9): error TS2300: Duplicate identifier 'DocumentQuery'. node_modules/@types/mongoose/index.d.ts(1948,9): error TS2300: Duplicate identifier 'mquery'. node_modules/@types/mongoose/index.d.ts(2000,13): error TS2300: Duplicate identifier 'Schema'. node_modules/@types/mongoose/index.d.ts(2248,9): error TS2300: Duplicate identifier 'Aggregate'. node_modules/@types/mongoose/index.d.ts(2411,9): error TS2300: Duplicate identifier 'SchemaType'. node_modules/@types/mongoose/index.d.ts(2528,29): error TS2694: Namespace '&quot;/run/media/es/hdd/Users/User/Documents/Sem-B-2018/Node.js/test/node_modules/@types/mongodb/index&quot;' has no exported member 'ChangeStreamOptions'. node_modules/@types/mongoose/index.d.ts(2528,77): error TS2694: Namespace '&quot;/run/media/es/hdd/Users/User/Documents/Sem-B-2018/Node.js/test/node_modules/@types/mongodb/index&quot;' has no exported member 'ChangeStream'. node_modules/@types/mongoose/index.d.ts(2864,5): error TS2374: Duplicate string index signature. node_modules/@types/mongoose/index.d.ts(2966,5): error TS2374: Duplicate string index signature."><pre class="notranslate"><code class="notranslate">node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(87,9): error TS2300: Duplicate identifier 'NativeBuffer'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(88,9): error TS2300: Duplicate identifier 'NativeDate'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(89,9): error TS2300: Duplicate identifier 'NativeError'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(97,14): error TS2300: Duplicate identifier 'Mongoose'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(98,8): error TS2300: Duplicate identifier 'Mongoose'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(196,9): error TS2300: Duplicate identifier 'CastError'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(260,18): error TS2300: Duplicate identifier 'ConnectionBase'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(479,9): error TS2300: Duplicate identifier 'Connection'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(495,9): error TS2300: Duplicate identifier 'ValidationError'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(504,9): error TS2300: Duplicate identifier 'Error'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(594,9): error TS2300: Duplicate identifier 'VirtualType'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(611,9): error TS2300: Duplicate identifier 'Schema'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(701,48): error TS2314: Generic type 'HookAsyncCallback&lt;T&gt;' requires 1 type argument(s). node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(702,29): error TS2314: Generic type 'HookSyncCallback&lt;T&gt;' requires 1 type argument(s). node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(764,13): error TS2428: All declarations of 'HookSyncCallback' must have identical type parameters. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(768,13): error TS2428: All declarations of 'HookAsyncCallback' must have identical type parameters. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1015,13): error TS2300: Duplicate identifier 'MongooseDocument'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1016,9): error TS2300: Duplicate identifier 'MongooseDocument'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1222,11): error TS2300: Duplicate identifier 'Subdocument'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1238,11): error TS2300: Duplicate identifier 'Array'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1347,11): error TS2300: Duplicate identifier 'DocumentArray'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1376,11): error TS2300: Duplicate identifier 'Buffer'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1408,10): error TS2300: Duplicate identifier 'ObjectIdConstructor'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1416,11): error TS2300: Duplicate identifier 'Decimal128'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1422,11): error TS2300: Duplicate identifier 'Embedded'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1462,9): error TS2300: Duplicate identifier 'Query'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1463,9): error TS2300: Duplicate identifier 'DocumentQuery'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1889,9): error TS2300: Duplicate identifier 'mquery'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(1941,13): error TS2300: Duplicate identifier 'Schema'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(2189,9): error TS2300: Duplicate identifier 'Aggregate'. node_modules/@types/connect-mongo/node_modules/@types/mongoose/index.d.ts(2324,9): error TS2300: Duplicate identifier 'SchemaType'. node_modules/@types/mongoose/index.d.ts(61,9): error TS2300: Duplicate identifier 'NativeBuffer'. node_modules/@types/mongoose/index.d.ts(62,9): error TS2300: Duplicate identifier 'NativeDate'. node_modules/@types/mongoose/index.d.ts(63,9): error TS2300: Duplicate identifier 'NativeError'. node_modules/@types/mongoose/index.d.ts(71,14): error TS2300: Duplicate identifier 'Mongoose'. node_modules/@types/mongoose/index.d.ts(72,8): error TS2300: Duplicate identifier 'Mongoose'. node_modules/@types/mongoose/index.d.ts(156,9): error TS2300: Duplicate identifier 'CastError'. node_modules/@types/mongoose/index.d.ts(177,18): error TS2300: Duplicate identifier 'ConnectionBase'. node_modules/@types/mongoose/index.d.ts(447,9): error TS2300: Duplicate identifier 'Connection'. node_modules/@types/mongoose/index.d.ts(463,9): error TS2300: Duplicate identifier 'ValidationError'. node_modules/@types/mongoose/index.d.ts(472,9): error TS2300: Duplicate identifier 'Error'. node_modules/@types/mongoose/index.d.ts(562,9): error TS2300: Duplicate identifier 'VirtualType'. node_modules/@types/mongoose/index.d.ts(579,9): error TS2300: Duplicate identifier 'Schema'. node_modules/@types/mongoose/index.d.ts(801,13): error TS2428: All declarations of 'HookSyncCallback' must have identical type parameters. node_modules/@types/mongoose/index.d.ts(805,13): error TS2428: All declarations of 'HookAsyncCallback' must have identical type parameters. node_modules/@types/mongoose/index.d.ts(850,5): error TS2717: Subsequent property declarations must have the same type. Property 'strict' must be of type 'boolean', but here has type 'boolean | "throw"'. node_modules/@types/mongoose/index.d.ts(852,5): error TS2717: Subsequent property declarations must have the same type. Property 'toJSON' must be of type 'any', but here has type 'DocumentToObjectOptions'. node_modules/@types/mongoose/index.d.ts(854,5): error TS2717: Subsequent property declarations must have the same type. Property 'toObject' must be of type 'any', but here has type 'DocumentToObjectOptions'. node_modules/@types/mongoose/index.d.ts(876,5): error TS2717: Subsequent property declarations must have the same type. Property 'timestamps' must be of type 'any', but here has type 'boolean | SchemaTimestampsConfig'. node_modules/@types/mongoose/index.d.ts(888,5): error TS2374: Duplicate string index signature. node_modules/@types/mongoose/index.d.ts(968,5): error TS2717: Subsequent property declarations must have the same type. Property 'validate' must be of type 'any', but here has type 'RegExp | [RegExp, string] | ValidateFn&lt;T&gt; | [ValidateFn&lt;T&gt;, string] | ValidateOpts | ValidateOpts...'. node_modules/@types/mongoose/index.d.ts(1018,5): error TS2374: Duplicate string index signature. node_modules/@types/mongoose/index.d.ts(1046,7): error TS2717: Subsequent property declarations must have the same type. Property 'validator' must be of type 'Function | RegExp', but here has type 'RegExp | ValidateFn&lt;any&gt;'. node_modules/@types/mongoose/index.d.ts(1072,13): error TS2300: Duplicate identifier 'MongooseDocument'. node_modules/@types/mongoose/index.d.ts(1073,9): error TS2300: Duplicate identifier 'MongooseDocument'. node_modules/@types/mongoose/index.d.ts(1275,11): error TS2300: Duplicate identifier 'Subdocument'. node_modules/@types/mongoose/index.d.ts(1291,11): error TS2300: Duplicate identifier 'Array'. node_modules/@types/mongoose/index.d.ts(1400,11): error TS2300: Duplicate identifier 'DocumentArray'. node_modules/@types/mongoose/index.d.ts(1429,11): error TS2300: Duplicate identifier 'Buffer'. node_modules/@types/mongoose/index.d.ts(1461,10): error TS2300: Duplicate identifier 'ObjectIdConstructor'. node_modules/@types/mongoose/index.d.ts(1469,11): error TS2300: Duplicate identifier 'Decimal128'. node_modules/@types/mongoose/index.d.ts(1475,11): error TS2300: Duplicate identifier 'Embedded'. node_modules/@types/mongoose/index.d.ts(1515,9): error TS2300: Duplicate identifier 'Query'. node_modules/@types/mongoose/index.d.ts(1516,9): error TS2300: Duplicate identifier 'DocumentQuery'. node_modules/@types/mongoose/index.d.ts(1948,9): error TS2300: Duplicate identifier 'mquery'. node_modules/@types/mongoose/index.d.ts(2000,13): error TS2300: Duplicate identifier 'Schema'. node_modules/@types/mongoose/index.d.ts(2248,9): error TS2300: Duplicate identifier 'Aggregate'. node_modules/@types/mongoose/index.d.ts(2411,9): error TS2300: Duplicate identifier 'SchemaType'. node_modules/@types/mongoose/index.d.ts(2528,29): error TS2694: Namespace '"/run/media/es/hdd/Users/User/Documents/Sem-B-2018/Node.js/test/node_modules/@types/mongodb/index"' has no exported member 'ChangeStreamOptions'. node_modules/@types/mongoose/index.d.ts(2528,77): error TS2694: Namespace '"/run/media/es/hdd/Users/User/Documents/Sem-B-2018/Node.js/test/node_modules/@types/mongodb/index"' has no exported member 'ChangeStream'. node_modules/@types/mongoose/index.d.ts(2864,5): error TS2374: Duplicate string index signature. node_modules/@types/mongoose/index.d.ts(2966,5): error TS2374: Duplicate string index signature. </code></pre></div> <p dir="auto">I noticed also that on the <code class="notranslate">package.json</code> file the dependency says</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;dependencies&quot;: { &quot;@types/express&quot;: &quot;*&quot;, &quot;@types/express-session&quot;: &quot;*&quot;, &quot;@types/mongodb&quot;: &quot;^2&quot;, &quot;@types/mongoose&quot;: &quot;^4&quot; }"><pre class="notranslate"><code class="notranslate">"dependencies": { "@types/express": "*", "@types/express-session": "*", "@types/mongodb": "^2", "@types/mongoose": "^4" } </code></pre></div> <p dir="auto">Considering that I have the latest mongoose - 5.0.18 (mongodb is already at 3 too, but I'm not using it), this seems to be the core of the problem.<br> So I've deleted the directory <code class="notranslate">./node_modules/@types/mongodb</code> , installed <code class="notranslate">@types/mongodb</code> and deleted <code class="notranslate">./node_modules/@types/connect-mongo/node_modules</code> - and it solved the problem.</p> <p dir="auto">But when I look at the original <code class="notranslate">connect-mongo</code> <a href="https://github.com/jdesboeufs/connect-mongo/blob/master/package.json">package.json</a> file, it does list mongodb V2 as dependency and mongoose 4 as dev-dependency (though it works well with the latest versions of those packages on my <a href="https://github.com/ezra100/Shook-server">original project</a>) so I'm not sure whether I should update the <code class="notranslate">@types/connect-mongo</code> package or not.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tkrotoff/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tkrotoff">@tkrotoff</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/huy-nguyen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/huy-nguyen">@huy-nguyen</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/p-jackson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/p-jackson">@p-jackson</a> VS Code complains about duplicate <code class="notranslate">NavLink</code> exported from <code class="notranslate">@types/react-router-dom/index.ts</code> (version 4.2.6):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... 45: export interface LinkProps extends React.AnchorHTMLAttributes&lt;HTMLAnchorElement&gt; { ... } 50: export class NavLink extends React.Component&lt;LinkProps, any&gt; {} 52: export interface NavLinkProps extends LinkProps { ... } 60: export class NavLink extends React.Component&lt;NavLinkProps, any&gt; {}"><pre class="notranslate"><code class="notranslate">... 45: export interface LinkProps extends React.AnchorHTMLAttributes&lt;HTMLAnchorElement&gt; { ... } 50: export class NavLink extends React.Component&lt;LinkProps, any&gt; {} 52: export interface NavLinkProps extends LinkProps { ... } 60: export class NavLink extends React.Component&lt;NavLinkProps, any&gt; {} </code></pre></div> <p dir="auto">I guess the fix would the patch below but I am not sure:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@50 - export class NavLink extends React.Component&lt;LinkProps, any&gt; {} + export class Link extends React.Component&lt;LinkProps, any&gt; {}"><pre class="notranslate"><code class="notranslate">@50 - export class NavLink extends React.Component&lt;LinkProps, any&gt; {} + export class Link extends React.Component&lt;LinkProps, any&gt; {} </code></pre></div> <p dir="auto">After applying the patch, VS Code's Intellisense is able to propose meaningful completions on <code class="notranslate">&lt;Link&gt;</code>. Without, it doesn't show anything useful.</p>
0
<p dir="auto">This line of code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="n=512; L=rand(n,n); z=rand(n); b=L\z;"><pre class="notranslate"><code class="notranslate">n=512; L=rand(n,n); z=rand(n); b=L\z; </code></pre></div> <p dir="auto">runs in the REPL and in IJUlia with 1.6.3. I get a <code class="notranslate">StackOverflowError:</code> in IJulia under 1.6.4. Running Monterey. Others report the same problem in vscode and Juno.</p> <p dir="auto">Please see<br> <a href="https://discourse.julialang.org/t/downgrade-to-1-6-3/72129/2" rel="nofollow">https://discourse.julialang.org/t/downgrade-to-1-6-3/72129/2</a></p>
<p dir="auto">Hello,<br> the sum of two symmetric matrices should be flagged as Hermitian<br> and this seems not the case now.<br> Here is an example (Julia Version 1.1.0).<br> The same thing happens when P and Q are complex and also for Symmetric matrices.</p> <p dir="auto">julia&gt; P<br> 3×3 LinearAlgebra.Hermitian{Float64,Array{Float64,2}}:<br> 3.69851 -0.0364136 0.004914<br> -0.0364136 0.964787 -0.966531<br> 0.004914 -0.966531 1.7757</p> <p dir="auto">julia&gt; Q<br> 3×3 LinearAlgebra.Hermitian{Float64,Array{Float64,2}}:<br> 3.05221 2.72049 -0.659437<br> 2.72049 5.69997 0.348603<br> -0.659437 0.348603 3.45141</p> <p dir="auto">julia&gt; P+Q<br> 3×3 Array{Float64,2}:<br> 6.75072 2.68407 -0.654523<br> 2.68407 6.66476 -0.617927<br> -0.654523 -0.617927 5.22712</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0-SNAPSHOT</li> <li>Operating System version: Ubuntu 18.04 LTS</li> <li>Java version: 1.8.0_181</li> </ul> <h3 dir="auto">Step to reproduce this issue</h3> <ol dir="auto"> <li>Making a breakpoint in the 83th line of class <code class="notranslate">org.apache.dubbo.config.spring.ReferenceBean</code></li> <li>Debugging <code class="notranslate">dubbo-consumer-demo</code></li> </ol> <h3 dir="auto">Got an exception</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.dubbo.config.AbstractConfig.toString(AbstractConfig.java:465) at org.apache.dubbo.config.spring.ReferenceBean.afterPropertiesSet(ReferenceBean.java:83) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1626) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83) at cn.shuaijunlan.dubbo.learning.main.Main.main(Main.java:14) Caused by: java.lang.IllegalStateException: No such application config! Please add &lt;dubbo:application name=&quot;...&quot; /&gt; to your spring config. at org.apache.dubbo.config.AbstractInterfaceConfig.checkApplication(AbstractInterfaceConfig.java:143) at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:280) at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:165) at org.apache.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:66) ... 20 more"><pre class="notranslate"><code class="notranslate">java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.dubbo.config.AbstractConfig.toString(AbstractConfig.java:465) at org.apache.dubbo.config.spring.ReferenceBean.afterPropertiesSet(ReferenceBean.java:83) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1626) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83) at cn.shuaijunlan.dubbo.learning.main.Main.main(Main.java:14) Caused by: java.lang.IllegalStateException: No such application config! Please add &lt;dubbo:application name="..." /&gt; to your spring config. at org.apache.dubbo.config.AbstractInterfaceConfig.checkApplication(AbstractInterfaceConfig.java:143) at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:280) at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:165) at org.apache.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:66) ... 20 more </code></pre></div>
<ul dir="auto"> <li>[<g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔</g-emoji> ] I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li>[✔ ] I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate. // FAT 显示404,望修正</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.6+</li> <li>Operating System version: macOS 10.14.5</li> <li>Java version: AdoptOpenJDK(1.8.0_222)</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>准备 consumer 和 provider 各一个服务</li> <li>启动 provider 的时候通过 "-Ddubbo.provider.tag=test" 指定标签</li> <li>启动 consumer 的时候不指定 Tag 参数,即使用默认值</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">在官网文档 <a href="http://dubbo.apache.org/zh-cn/docs/user/demos/routing-rule.html" rel="nofollow">路由规则</a> 最后一段是这样描述的:</p> <p dir="auto"><code class="notranslate">request.tag未设置时,只会匹配tag为空的provider。即使集群中存在可用的服务,若 tag 不匹配也就无法调用,这与约定1不同,携带标签的请求可以降级访问到无标签的服务,但不携带标签/携带其他种类标签的请求永远无法访问到其他标签的服务。</code></p> <p dir="auto">也就是说 consumer 不指定 tag 的时候流量将不会到达 provider,因为 provider 是带了 tag 标记的</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">实际上 consumer 是可以正常调用带tag标记的provider,这与文档中的描述不一致。在 2.7.5 中没有这个问题,根据我的排查,引入这个问题是由于增加了方法 org.apache.dubbo.registry.integration.RegistryDirectory#getConsumerUrl</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @Override public URL getConsumerUrl() { return this.overrideDirectoryUrl; }"><pre class="notranslate"><code class="notranslate"> @Override public URL getConsumerUrl() { return this.overrideDirectoryUrl; } </code></pre></div> <p dir="auto">2.7.5版本之前使用的是抽象类方法 org.apache.dubbo.rpc.cluster.directory#getConsumerUrl</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" public URL getConsumerUrl() { return consumerUrl; }"><pre class="notranslate"><code class="notranslate"> public URL getConsumerUrl() { return consumerUrl; } </code></pre></div> <p dir="auto">经过 org.apache.dubbo.registry.integration.RegistryDirectory#mergeUrl 方法的处理之后,程序会把provider端的tag注入到属性 this.overrideDirectoryUrl中,因此 getConsumerUrl 方法返回的URL中就有了 tag 信息</p> <p dir="auto">请问这个问题是否会被修正呢?还是我们的用法不对?</p>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>PowerToys version: 0.20.1</li> <li>PowerToy Utility: PowerTools Run</li> <li>Running PowerToys as Admin: Yes</li> <li>Windows build number: 19041.450</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>Write "vscode" in text box</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <p dir="auto">Visual Studio Code should be found as when I write "vscode" in windows search</p> <h3 dir="auto">❌ Actual result</h3> <p dir="auto">Many useless files are found but not Visual Studio Code</p> <h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19806799/91635426-b8371400-e9f8-11ea-8806-f62c4f56a24e.png"><img src="https://user-images.githubusercontent.com/19806799/91635426-b8371400-e9f8-11ea-8806-f62c4f56a24e.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19806799/91635465-119f4300-e9f9-11ea-863f-09a4234cfda1.png"><img src="https://user-images.githubusercontent.com/19806799/91635465-119f4300-e9f9-11ea-863f-09a4234cfda1.png" alt="Screenshot (17)" style="max-width: 100%;"></a></p>
<p dir="auto">I was wondering if you guys wanted to see another little utility that I made for myself which is actually surprisingly useful.</p> <p dir="auto">It's a screenshot utility which is similar to a recently added snap feature in windows but I made it specifically to be as unobtrusive and light-weight as possible.</p> <p dir="auto">It's available at my repo <a href="https://github.com/meJevin/ScreenCropperCSharp">here</a></p> <p dir="auto">Everything is described in the repo. You should try it if you want. That is actually a port from Delphi, but it's stable and can be tested <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji></p> <p dir="auto">If needed, the code could be refactored to suit the common programming patterns like MVVM etc.</p>
0
<p dir="auto">I've tried to run the setup code in the tutorial, but I met some confusing running errors. I'm new to tensorflow, so I have no idea how to deal with it. Could anybody help me fix this problem? Thanks a lot!</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import numpy as np import tensorflow as tf # Data sets IRIS_TRAINING = os.path.join(os.path.dirname(__file__), &quot;iris_training.csv&quot;) IRIS_TEST = os.path.join(os.path.dirname(__file__), &quot;iris_test.csv&quot;) def main(unused_argv): # Load datasets. training_set = tf.contrib.learn.datasets.base.load_csv_with_header( filename=IRIS_TRAINING, target_dtype=np.int, features_dtype=np.float32) test_set = tf.contrib.learn.datasets.base.load_csv_with_header( filename=IRIS_TEST, target_dtype=np.int, features_dtype=np.float32) # Specify that all features have real-value data feature_columns = [tf.contrib.layers.real_valued_column(&quot;&quot;, dimension=4)] # Build 3 layer DNN with 10, 20, 10 units respectively. classifier = tf.contrib.learn.DNNClassifier(feature_columns=feature_columns, hidden_units=[10, 20, 10], n_classes=3, model_dir=&quot;/tmp/iris_model&quot;) # Fit model. classifier.fit(x=training_set.data, y=training_set.target, steps=2000) # Evaluate accuracy. accuracy_score = classifier.evaluate(x=test_set.data, y=test_set.target)[&quot;accuracy&quot;] print('Accuracy: {0:f}'.format(accuracy_score)) # Classify two new flower samples. new_samples = np.array( [[6.4, 3.2, 4.5, 1.5], [5.8, 3.1, 5.0, 1.7]], dtype=float) y = list(classifier.predict(new_samples, as_iterable=True)) print('Predictions: {}'.format(str(y))) if __name__ == &quot;__main__&quot;: tf.app.run()"><pre class="notranslate"><span class="pl-k">from</span> __future__ <span class="pl-k">import</span> <span class="pl-s1">absolute_import</span> <span class="pl-k">from</span> __future__ <span class="pl-k">import</span> <span class="pl-s1">division</span> <span class="pl-k">from</span> __future__ <span class="pl-k">import</span> <span class="pl-s1">print_function</span> <span class="pl-k">import</span> <span class="pl-s1">os</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">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-c"># Data sets</span> <span class="pl-v">IRIS_TRAINING</span> <span class="pl-c1">=</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">join</span>(<span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">dirname</span>(<span class="pl-s1">__file__</span>), <span class="pl-s">"iris_training.csv"</span>) <span class="pl-v">IRIS_TEST</span> <span class="pl-c1">=</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">join</span>(<span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">dirname</span>(<span class="pl-s1">__file__</span>), <span class="pl-s">"iris_test.csv"</span>) <span class="pl-k">def</span> <span class="pl-en">main</span>(<span class="pl-s1">unused_argv</span>): <span class="pl-c"># Load datasets.</span> <span class="pl-s1">training_set</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">learn</span>.<span class="pl-s1">datasets</span>.<span class="pl-s1">base</span>.<span class="pl-en">load_csv_with_header</span>( <span class="pl-s1">filename</span><span class="pl-c1">=</span><span class="pl-v">IRIS_TRAINING</span>, <span class="pl-s1">target_dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">int</span>, <span class="pl-s1">features_dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float32</span>) <span class="pl-s1">test_set</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">learn</span>.<span class="pl-s1">datasets</span>.<span class="pl-s1">base</span>.<span class="pl-en">load_csv_with_header</span>( <span class="pl-s1">filename</span><span class="pl-c1">=</span><span class="pl-v">IRIS_TEST</span>, <span class="pl-s1">target_dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">int</span>, <span class="pl-s1">features_dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float32</span>) <span class="pl-c"># Specify that all features have real-value data</span> <span class="pl-s1">feature_columns</span> <span class="pl-c1">=</span> [<span class="pl-s1">tf</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">layers</span>.<span class="pl-en">real_valued_column</span>(<span class="pl-s">""</span>, <span class="pl-s1">dimension</span><span class="pl-c1">=</span><span class="pl-c1">4</span>)] <span class="pl-c"># Build 3 layer DNN with 10, 20, 10 units respectively.</span> <span class="pl-s1">classifier</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">learn</span>.<span class="pl-v">DNNClassifier</span>(<span class="pl-s1">feature_columns</span><span class="pl-c1">=</span><span class="pl-s1">feature_columns</span>, <span class="pl-s1">hidden_units</span><span class="pl-c1">=</span>[<span class="pl-c1">10</span>, <span class="pl-c1">20</span>, <span class="pl-c1">10</span>], <span class="pl-s1">n_classes</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">model_dir</span><span class="pl-c1">=</span><span class="pl-s">"/tmp/iris_model"</span>) <span class="pl-c"># Fit model.</span> <span class="pl-s1">classifier</span>.<span class="pl-en">fit</span>(<span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s1">training_set</span>.<span class="pl-s1">data</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s1">training_set</span>.<span class="pl-s1">target</span>, <span class="pl-s1">steps</span><span class="pl-c1">=</span><span class="pl-c1">2000</span>) <span class="pl-c"># Evaluate accuracy.</span> <span class="pl-s1">accuracy_score</span> <span class="pl-c1">=</span> <span class="pl-s1">classifier</span>.<span class="pl-en">evaluate</span>(<span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s1">test_set</span>.<span class="pl-s1">data</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s1">test_set</span>.<span class="pl-s1">target</span>)[<span class="pl-s">"accuracy"</span>] <span class="pl-en">print</span>(<span class="pl-s">'Accuracy: {0:f}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">accuracy_score</span>)) <span class="pl-c"># Classify two new flower samples.</span> <span class="pl-s1">new_samples</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>( [[<span class="pl-c1">6.4</span>, <span class="pl-c1">3.2</span>, <span class="pl-c1">4.5</span>, <span class="pl-c1">1.5</span>], [<span class="pl-c1">5.8</span>, <span class="pl-c1">3.1</span>, <span class="pl-c1">5.0</span>, <span class="pl-c1">1.7</span>]], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">classifier</span>.<span class="pl-en">predict</span>(<span class="pl-s1">new_samples</span>, <span class="pl-s1">as_iterable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)) <span class="pl-en">print</span>(<span class="pl-s">'Predictions: {}'</span>.<span class="pl-en">format</span>(<span class="pl-en">str</span>(<span class="pl-s1">y</span>))) <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>: <span class="pl-s1">tf</span>.<span class="pl-s1">app</span>.<span class="pl-en">run</span>()</pre></div> <p dir="auto">Here is what I saw:<br> WARNING:tensorflow:From .\logging_monitoring.py:33: calling BaseEstimator.fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with x is deprecated and will be removed after 2016-12-01.<br> Instructions for updating:<br> Estimator is decoupled from Scikit Learn interface by moving into<br> separate class SKCompat. Arguments x, y and batch_size are only<br> available in the SKCompat class, Estimator will only accept input_fn.<br> Example conversion:<br> est = Estimator(...) -&gt; est = SKCompat(Estimator(...))<br> WARNING:tensorflow:From .\logging_monitoring.py:33: calling BaseEstimator.fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with y is deprecated and will be removed after 2016-12-01.<br> Instructions for updating:<br> Estimator is decoupled from Scikit Learn interface by moving into<br> separate class SKCompat. Arguments x, y and batch_size are only<br> available in the SKCompat class, Estimator will only accept input_fn.<br> Example conversion:<br> est = Estimator(...) -&gt; est = SKCompat(Estimator(...))<br> WARNING:tensorflow:From C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\head.py:642: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30.<br> Instructions for updating:<br> Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported.<br> 2017-09-07 20:00:50.306221: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.<br> 2017-09-07 20:00:50.306424: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.<br> 2017-09-07 20:00:50.447012: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_0/biases not found in checkpoint<br> 2017-09-07 20:00:50.447738: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_0/weights not found in checkpoint<br> 2017-09-07 20:00:50.448265: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_0/biases/denlayer_0/biases/part_0/Adagrad not found in checkpoint<br> 2017-09-07 20:00:50.451033: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/multi_class_head/dnn/learning_rate not found in checkpoint<br> 2017-09-07 20:00:50.451078: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_1/biases not found in checkpoint<br> 2017-09-07 20:00:50.451715: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_0/weights/enlayer_0/weights/part_0/Adagrad not found in checkpoint<br> 2017-09-07 20:00:50.452925: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_1/biases/denlayer_1/biases/part_0/Adagrad not found in checkpoint<br> 2017-09-07 20:00:50.454670: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/logits/weights/nn/logits/weights/part_0/Adagrad not found in checkpoint<br> 2017-09-07 20:00:50.455734: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_1/weights/enlayer_1/weights/part_0/Adagrad not found in checkpoint<br> 2017-09-07 20:00:50.455777: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_1/weights not found in checkpoint<br> 2017-09-07 20:00:50.460821: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_2/biases not found in checkpoint<br> 2017-09-07 20:00:50.463001: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/logits/weights not found in checkpoint<br> 2017-09-07 20:00:50.464352: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_2/biases/denlayer_2/biases/part_0/Adagrad not found in checkpoint<br> 2017-09-07 20:00:50.464794: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_2/weights not found in checkpoint<br> 2017-09-07 20:00:50.467010: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/hiddenlayer_2/weights/enlayer_2/weights/part_0/Adagrad not found in checkpoint<br> 2017-09-07 20:00:50.467803: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/logits/biases/dnn/logits/biases/part_0/Adagrad not found in checkpoint<br> 2017-09-07 20:00:50.472935: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1192] Not found: Key dnn/logits/biases not found in checkpoint<br> Traceback (most recent call last):<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1327, in _do_call<br> return fn(*args)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1306, in _run_fn<br> status, run_metadata)<br> File "C:\Program Files\Python36\lib\contextlib.py", line 88, in <strong>exit</strong><br> next(self.gen)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status<br> pywrap_tensorflow.TF_GetCode(status))<br> tensorflow.python.framework.errors_impl.NotFoundError: Key dnn/hiddenlayer_0/biases not found in checkpoint<br> [[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]</p> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File ".\logging_monitoring.py", line 47, in <br> tf.app.run()<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run<br> _sys.exit(main(_sys.argv[:1] + flags_passthrough))<br> File ".\logging_monitoring.py", line 33, in main<br> steps=2000)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\util\deprecation.py", line 296, in new_func<br> return func(*args, **kwargs)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 442, in fit<br> SKCompat(self).fit(x, y, batch_size, steps, max_steps, monitors)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 1353, in fit<br> monitors=all_monitors)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\util\deprecation.py", line 296, in new_func<br> return func(*args, **kwargs)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 458, in fit<br> loss = self._train_model(input_fn=input_fn, hooks=hooks)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 1006, in _train_model<br> config=self._session_config<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 365, in MonitoredTrainingSession<br> stop_grace_period_secs=stop_grace_period_secs)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 668, in <strong>init</strong><br> stop_grace_period_secs=stop_grace_period_secs)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 490, in <strong>init</strong><br> self._sess = _RecoverableSession(self._coordinated_creator)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 842, in <strong>init</strong><br> _WrappedSession.<strong>init</strong>(self, self._create_session())<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 847, in _create_session<br> return self._sess_creator.create_session()<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 551, in create_session<br> self.tf_sess = self._session_creator.create_session()<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 425, in create_session<br> init_fn=self._scaffold.init_fn)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\session_manager.py", line 273, in prepare_session<br> config=config)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\session_manager.py", line 205, in _restore_checkpoint<br> saver.restore(sess, ckpt.model_checkpoint_path)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 1560, in restore<br> {self.saver_def.filename_tensor_name: save_path})<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\client\session.py", line 895, in run<br> run_metadata_ptr)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1124, in _run<br> feed_dict_tensor, options, run_metadata)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1321, in _do_run<br> options, run_metadata)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1340, in _do_call<br> raise type(e)(node_def, op, message)<br> tensorflow.python.framework.errors_impl.NotFoundError: Key dnn/hiddenlayer_0/biases not found in checkpoint<br> [[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]</p> <p dir="auto">Caused by op 'save/RestoreV2', defined at:<br> File ".\logging_monitoring.py", line 47, in <br> tf.app.run()<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run<br> _sys.exit(main(_sys.argv[:1] + flags_passthrough))<br> File ".\logging_monitoring.py", line 33, in main<br> steps=2000)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\util\deprecation.py", line 296, in new_func<br> return func(*args, **kwargs)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 442, in fit<br> SKCompat(self).fit(x, y, batch_size, steps, max_steps, monitors)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 1353, in fit<br> monitors=all_monitors)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\util\deprecation.py", line 296, in new_func<br> return func(*args, **kwargs)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 458, in fit<br> loss = self._train_model(input_fn=input_fn, hooks=hooks)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 1006, in _train_model<br> config=self._session_config<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 365, in MonitoredTrainingSession<br> stop_grace_period_secs=stop_grace_period_secs)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 668, in <strong>init</strong><br> stop_grace_period_secs=stop_grace_period_secs)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 490, in <strong>init</strong><br> self._sess = _RecoverableSession(self._coordinated_creator)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 842, in <strong>init</strong><br> _WrappedSession.<strong>init</strong>(self, self._create_session())<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 847, in _create_session<br> return self._sess_creator.create_session()<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 551, in create_session<br> self.tf_sess = self._session_creator.create_session()<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 416, in create_session<br> self._scaffold.finalize()<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 209, in finalize<br> self._saver.build()<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 1172, in build<br> filename=self._filename)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 684, in build<br> restore_sequentially, reshape)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 450, in _AddShardedRestoreOps<br> name="restore_shard"))<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 407, in _AddRestoreOps<br> tensors = self.restore_op(filename_tensor, saveable, preferred_shard)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 247, in restore_op<br> [spec.tensor.dtype])[0])<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\ops\gen_io_ops.py", line 663, in restore_v2<br> dtypes=dtypes, name=name)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 767, in apply_op<br> op_def=op_def)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\framework\ops.py", line 2630, in create_op<br> original_op=self._default_original_op, op_def=op_def)<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\framework\ops.py", line 1204, in <strong>init</strong><br> self._traceback = self._graph._extract_stack() # pylint: disable=protected-access</p> <p dir="auto">NotFoundError (see above for traceback): Key dnn/hiddenlayer_0/biases not found in checkpoint<br> [[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]</p> <p dir="auto">ERROR:tensorflow:==================================<br> Object was never used (type &lt;class 'tensorflow.python.framework.ops.Tensor'&gt;):<br> &lt;tf.Tensor 'report_uninitialized_variables_1/boolean_mask/Gather:0' shape=(?,) dtype=string&gt;<br> If you want to mark it as used call its "mark_used()" method.<br> It was originally created here:<br> ['File ".\logging_monitoring.py", line 47, in \n tf.app.run()', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run\n _sys.exit(main(_sys.argv[:1] + flags_passthrough))', 'File ".\logging_monitoring.py", line 33, in main\n steps=2000)', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\util\deprecation.py", line 296, in new_func\n return func(*args, **kwargs)', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 442, in fit\n SKCompat(self).fit(x, y, batch_size, steps, max_steps, monitors)', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 1353, in fit\n monitors=all_monitors)', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\util\deprecation.py", line 296, in new_func\n return func(*args, **kwargs)', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 458, in fit\n loss = self._train_model(input_fn=input_fn, hooks=hooks)', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 1006, in _train_model\n config=self._session_config', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 365, in MonitoredTrainingSession\n stop_grace_period_secs=stop_grace_period_secs)', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 668, in <strong>init</strong>\n stop_grace_period_secs=stop_grace_period_secs)', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 490, in <strong>init</strong>\n self._sess = _RecoverableSession(self._coordinated_creator)', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 842, in <strong>init</strong>\n _WrappedSession.<strong>init</strong>(self, self._create_session())', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 847, in _create_session\n return self._sess_creator.create_session()', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 551, in create_session\n self.tf_sess = self._session_creator.create_session()', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 416, in create_session\n self._scaffold.finalize()', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 196, in finalize\n default_ready_for_local_init_op)', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 258, in get_or_default\n op = default_constructor()', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\training\monitored_session.py", line 193, in default_ready_for_local_init_op\n variables.global_variables())', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\util\tf_should_use.py", line 175, in wrapped\n return _add_should_use_warning(fn(*args, **kwargs))', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\util\tf_should_use.py", line 144, in _add_should_use_warning\n wrapped = TFShouldUseWarningWrapper(x)', 'File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\util\tf_should_use.py", line 101, in <strong>init</strong>\n stack = [s.strip() for s in traceback.format_stack()]']</p>
<p dir="auto">This is a duplicate request from pytorch issue, which I even reuse their issue title<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="275285052" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/3790" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/3790/hovercard" href="https://github.com/pytorch/pytorch/issues/3790">pytorch/pytorch#3790</a></p> <p dir="auto">And the fix from the paper seems to be trivial but I'm not sure how TF should approach this, perhaps just adding another parameter?</p>
0
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.3.1 (latest released)</p> <h3 dir="auto">What happened</h3> <p dir="auto">I have added a new task to an existsting workflow (DAG), where the other tasks already had previous runs.<br> When I added the new task, the grid became inaccessible, because it wanted to get <code class="notranslate">runId</code>s for the new task, which did not exist.<br> An error occured in the grid..js, but since the file is minified/obfuscated, it's unclear for me where exactly.</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">The grid should handle missing <code class="notranslate">runId</code> without causing an exception.</p> <h3 dir="auto">How to reproduce</h3> <ol dir="auto"> <li>Create a simple dag, with a few dummy tasks, and let it run a few times. Check out the grid (it should be okay).</li> <li>After that, add a new dummy task, and check out the grid again. The grid's area will be empty, and the JS console will have the following error: <code class="notranslate">TypeError: Cannot read properties of null (reading 'runId')</code></li> </ol> <p dir="auto">Probably any other scenarios where the tasks run history is uneven, could also cause this error.</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Linux</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">Virtualenv installation</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">Other Airflow 2 version</p> <h3 dir="auto">What happened</h3> <p dir="auto">Airflow 2.3.3.<br> Task instance failures produce duplicates in "task_fail" table for this constraint (dag_id, task_id, run_id, map_index).</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">Recently FK constraint between task_fail and task_instance tables was introduced:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1168790336" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/22260" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/22260/hovercard" href="https://github.com/apache/airflow/pull/22260">#22260</a><br> And then there was a change to purge duplicates for this constraint from task_fail table (on db upgrade):<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1193838101" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/22769" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/22769/hovercard" href="https://github.com/apache/airflow/pull/22769">#22769</a></p> <p dir="auto">Removing duplicates on db upgrade to Airflow 2.3+ before establishing FK between tables makes sense, however these duplicates can occur in running Airflow 2.3+ instance (see "How to reproduce").</p> <p dir="auto">What is rationale for removing duplicates once on upgrading to Airflow 2.3+ but keeping this possibility to generate duplicates again? Isn’t it going to break foreign key and integrity of these two tables?</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Trigger DAG with task that fails multiple times for different tries, it will produce duplications in "task_fail" table.<br> Example (two tries with 5 mins interval for retries):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="id | task_id | dag_id | start_date | end_date | duration | map_index | run_id 1 | task | dag1_failing | 2022-09-23 09:11:44.102894+00 | 2022-09-23 09:11:44.469007+00 | 0 | -1 | scheduled__2022-09-22T00:00:00+00:00 3 | task | dag1_failing | 2022-09-23 09:16:44.995269+00 | 2022-09-23 09:16:45.310398+00 | 0 | -1 | scheduled__2022-09-22T00:00:00+00:00"><pre class="notranslate"><code class="notranslate">id | task_id | dag_id | start_date | end_date | duration | map_index | run_id 1 | task | dag1_failing | 2022-09-23 09:11:44.102894+00 | 2022-09-23 09:11:44.469007+00 | 0 | -1 | scheduled__2022-09-22T00:00:00+00:00 3 | task | dag1_failing | 2022-09-23 09:16:44.995269+00 | 2022-09-23 09:16:45.310398+00 | 0 | -1 | scheduled__2022-09-22T00:00:00+00:00 </code></pre></div> <h3 dir="auto">Operating System</h3> <p dir="auto">Linux</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Deployment</h3> <p dir="auto">Composer</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
0
<p dir="auto">The error reported when starting the app again:</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: 09/23/2020 16:20:06<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> <h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>PowerToys version: 1.0.0</li> <li>PowerToy Utility: Facy Zones</li> <li>Running PowerToys as Admin: No</li> <li>Windows build number: [run "winver"]: 19041.508</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <p dir="auto">The app stops after a random period of time after it was successfully started.</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <p dir="auto">The app does not crash</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3> <p dir="auto">N/A</p> <h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2> <p dir="auto">Log file uploaded<br> <a href="https://github.com/microsoft/PowerToys/files/5268409/2020-09-23.txt">2020-09-23.txt</a></p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto">English is good but I can't type anything with Korean. I can copy and paste the text, but cannot type it. It feels like it just doesn't support Korean input. I can see text output so maybe it would not be a problem with fonts.</p> <h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.267] Windows Terminal version (if applicable): Windows Terminal (Preview) 0.3.2171.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.267] Windows Terminal version (if applicable): Windows Terminal (Preview) 0.3.2171.0 </code></pre></div> <p dir="auto">The font was Consolas.</p> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open any type of terminal.</li> <li>change system language like usual</li> <li>(with 한/영 key (language change key), or click the language change button on the taskbar)</li> <li>write some text.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">I can write Korean text to the terminal</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">I cannot write Korean text to the terminal</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 18950 Windows Terminal version (if applicable): 0.3 Any other software? Python, Firefox, Visual Studio, etc. They shouldn't impact this problem."><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 18950 Windows Terminal version (if applicable): 0.3 Any other software? Python, Firefox, Visual Studio, etc. They shouldn't impact this problem. </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open the Windows Settings app.</li> <li>Change from dark mode to light mode, or vice versa.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The Windows Terminal title bar color will change after a simple change in the Settings app and adapt to the rest of the Windows environment.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The Windows Terminal title bar color stays the same after the Settings app dark/light mode change. I have to restart the app in order for the Terminal title bar to obey the Settings change.</p> <p dir="auto">(Not talking about accent color, by the way)</p>
0
<h5 dir="auto">Description of the problem</h5> <p dir="auto">In creating a shadow for one scene, the basic processes include creating an available light, a cast shadow object, a receive shadow object. The problem I met is in the light's part.</p> <p dir="auto">I create a spotlight with specifying its target to be a cube, adding the shadow camera to one <code class="notranslate">camerahelper</code> and then rendering them, but <strong>results seem different in two different three.js versions</strong>. The grammar and APIs I obeyed is the newest document in three.js website, can be accessed <a href="https://threejs.org/docs/index.html#api/lights/shadows/SpotLightShadow" rel="nofollow">here</a>.</p> <p dir="auto">A code snippet in two different three.js version shows here (the same codes with just different three.js version included):</p> <ul dir="auto"> <li><a href="https://jsfiddle.net/hijiangtao/4wft921w/2/" rel="nofollow">jsfiddle - r85</a>, scripted loaded via <a href="https://cdnjs.cloudflare.com/ajax/libs/three.js/85/three.js" rel="nofollow">cloudflare's CDN</a></li> <li><a href="https://jsfiddle.net/hijiangtao/4wft921w/1/" rel="nofollow">jsfiddle - r84</a>, scripted loaded via <a href="https://cdnjs.cloudflare.com/ajax/libs/three.js/84/three.js" rel="nofollow">cloudflare's CDN</a></li> </ul> <p dir="auto">I also took some screenshots to show the differences between them:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4990015/25666094/14452174-3052-11e7-8361-51c2b78f1f04.png"><img src="https://cloud.githubusercontent.com/assets/4990015/25666094/14452174-3052-11e7-8361-51c2b78f1f04.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><em>The <strong>abnormal one (r85)</strong> with shadow doesn't displayed in the right place, as well as the shadow camera fixed to vec(0,0,0). The shadow camera scope is emphasized with yellow lines in the picture.</em></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4990015/25666259/96c56fe6-3052-11e7-9fe2-7d7beecde5b0.png"><img src="https://cloud.githubusercontent.com/assets/4990015/25666259/96c56fe6-3052-11e7-9fe2-7d7beecde5b0.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><em>The <strong>good (r84)</strong> one with shadow displayed in the right position, but the shadow camera still fixed to vec(0,0,0), which I think it's not supposed to be that, since a good shadow camera should follow the position of its belonged light? (such as the following pic)</em></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4990015/25666477/3efc95d6-3053-11e7-83ed-8cb93a56d7b6.png"><img src="https://cloud.githubusercontent.com/assets/4990015/25666477/3efc95d6-3053-11e7-83ed-8cb93a56d7b6.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>It seems r85 can't display shadow in spotlight normally, but there is no problem in r84; on the other hand, these two versions both have a wrong shadow camera position in spotlight environment.</strong></p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r85</li> </ul> <h5 dir="auto">Browser</h5> <p dir="auto">I didn't test all the browsers but I think it is apparently not the browser internal issues.</p> <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" checked=""> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer (Not test)</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li>[] All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 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">Just follow the basic requirements of three.js' runtime environment is enough to catch this problem.</p>
<p dir="auto">Hi!<br> I'm interested in translating the documentations into French after noticing some of my students are sometimes struggling with English terms.</p> <p dir="auto">I wanted to know if there was a specific process for that and also a way to link a version of the translate page to the English one.<br> I mean, does every English page have a version number that could be linked to any translation so users know if the page he is currently reading in another language is up to date or not.</p> <p dir="auto">Thanks!</p>
0
<p dir="auto">We ran into an issue with keep alives not working. We were using the <code class="notranslate">AutomaticKeepAliveClientMixin</code> in an abstract <code class="notranslate">State</code> class. Because of the <code class="notranslate">@mustCallSuper</code> annotation, we knew to call <code class="notranslate">super.build</code> in the <code class="notranslate">build</code> method of the abstract class. However, there was no warning for the fact that we weren't calling <code class="notranslate">super.build</code> in the concrete implementations of our abstract <code class="notranslate">State</code> class.</p> <p dir="auto">I can't envision a case where you wouldn't want the annotation to extend to all transitive subclasses.</p>
<p dir="auto">Flutter version: Very recent master build</p> <p dir="auto">Happens in the Android Emulator (with Google Keyboard) and on a real Android device (with Sony keyboard). I'm not sure about iOS.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22688477/46633912-79231f80-cb4f-11e8-91fe-bacb722a3546.png"><img src="https://user-images.githubusercontent.com/22688477/46633912-79231f80-cb4f-11e8-91fe-bacb722a3546.png" width="200" style="max-width: 100%;"></a></p> <p dir="auto">Code to reproduce:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_playground/text_area.dart'; import 'package:path/path.dart' as path; void main() =&gt; runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Playground', home: AutoCorrectTest(), ); } } class AutoCorrectTest extends StatefulWidget { @override _AutoCorrectTestState createState() =&gt; _AutoCorrectTestState(); } class _AutoCorrectTestState extends State&lt;AutoCorrectTest&gt; { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('TextField with autocorrect: false'), ), body: Padding( padding: EdgeInsets.all(16.0), child: TextField( autocorrect: false ) ), ); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:flutter/services.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:flutter_playground/text_area.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:path/path.dart'</span> <span class="pl-k">as</span> path; <span class="pl-k">void</span> <span class="pl-en">main</span>() <span class="pl-k">=&gt;</span> <span class="pl-en">runApp</span>(<span class="pl-c1">MyApp</span>()); <span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-c1">MaterialApp</span>( title<span class="pl-k">:</span> <span class="pl-s">'Flutter Playground'</span>, home<span class="pl-k">:</span> <span class="pl-c1">AutoCorrectTest</span>(), ); } } <span class="pl-k">class</span> <span class="pl-c1">AutoCorrectTest</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">_AutoCorrectTestState</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</span> <span class="pl-c1">_AutoCorrectTestState</span>(); } <span class="pl-k">class</span> <span class="pl-c1">_AutoCorrectTestState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">AutoCorrectTest</span>&gt; { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-c1">Scaffold</span>( appBar<span class="pl-k">:</span> <span class="pl-c1">AppBar</span>( title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'TextField with autocorrect: false'</span>), ), body<span class="pl-k">:</span> <span class="pl-c1">Padding</span>( padding<span class="pl-k">:</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">all</span>(<span class="pl-c1">16.0</span>), child<span class="pl-k">:</span> <span class="pl-c1">TextField</span>( autocorrect<span class="pl-k">:</span> <span class="pl-c1">false</span> ) ), ); } }</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] Flutter (Channel master, v0.9.7-pre.61, on Microsoft Windows [Version 10.0.17134.285], locale de-DE) • Flutter version 0.9.7-pre.61 at C:\flutter • Framework revision 2d81adf74c (3 days ago), 2018-10-05 22:29:37 -0700 • Engine revision 572fa5646a • Dart version 2.1.0-dev.6.0.flutter-c6254163dc [√] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at F:\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = F:\Android\sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [√] Android Studio (version 3.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 29.0.2 • Dart plugin version 181.5616 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [!] VS Code, 64-bit edition • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [√] Connected device (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)"><pre class="notranslate"><code class="notranslate">[√] Flutter (Channel master, v0.9.7-pre.61, on Microsoft Windows [Version 10.0.17134.285], locale de-DE) • Flutter version 0.9.7-pre.61 at C:\flutter • Framework revision 2d81adf74c (3 days ago), 2018-10-05 22:29:37 -0700 • Engine revision 572fa5646a • Dart version 2.1.0-dev.6.0.flutter-c6254163dc [√] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at F:\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = F:\Android\sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [√] Android Studio (version 3.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 29.0.2 • Dart plugin version 181.5616 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [!] VS Code, 64-bit edition • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [√] Connected device (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) </code></pre></div>
0
<p dir="auto">by <strong>fuzxxl</strong>:</p> <pre class="notranslate">The following code works under Go 1.2 but fails to compile with the most recent go tip (4b3cdcb02f2d). package cgotest /* #pragma pack(1) struct foo { char c; int x; }; */ import "C" import "unsafe" func foo(f *C.struct_foo) int { return int(f.x) } This is what the correspond _cgo_type.go looks like: type _Ctype_char int8 type _Ctype_int int32 type _Ctype_struct_foo struct { c _Ctype_char _ [4]byte } In Go 1.2, the type definition used to have the x field instead of an underscore. This looks like a regression to me.</pre>
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">I'm seeing not-great TLS performance; enabling the ClientSessionCache seems to help. But it looks like even when resuming a session, we still call processCertsFromClient, and do an (expensive) validation of the client cert chain. Two ideas/questions: 1) Do we really need to re-validate the client cert on resume (haven't we already validated it on first-connect)? Can the client switch certs on us? 2) Is it possible to avoid any of this work using a cache? processCertsFromClient looks very cacheable to my untrained eye. I'm thinking something similar to ClientSessionCache in tls.Config. I guess I could turn off client-cert validation by the tls package, and implement my own cache. It would sure be nice if this was out-of-the-box though! Session resumption makes this less important, but I don't see why we wouldn't also cache validation of server certs.</pre>
0
<p dir="auto">I am now trying to run playwright with firefox in aws lambda. My lambda is deployed as docker container<br> Playwright is working well with docker and firefox on my local, but I can't find a way how to run this on lambda with docker.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;launched&gt; pid=23 [err] *** You are running in headless mode. [err] ExceptionHandler::GenerateDump cloned child 34 [err] ExceptionHandler::SendContinueSignalToChild sent continue signal to child [err] ExceptionHandler::WaitForContinueSignal waiting for continue signal... =========================== logs =========================== &lt;launching&gt; /opt/firefox/firefox -no-remote -headless -profile /tmp/playwright_firefoxdev_profile-BYvMgD -juggler-pipe -silent &lt;launched&gt; pid=23 [err] *** You are running in headless mode. [err] ExceptionHandler::GenerateDump cloned child 34 [err] ExceptionHandler::SendContinueSignalToChild sent continue signal to child [err] ExceptionHandler::WaitForContinueSignal waiting for continue signal... ============================================================ Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs. at Connection.sendMessageToServer (/var/task/node_modules/playwright/lib/client/connection.js:69:15) at Proxy.&lt;anonymous&gt; (/var/task/node_modules/playwright/lib/client/channelOwner.js:44:61) at /var/task/node_modules/playwright/lib/client/browserType.js:61:73 at BrowserType._wrapApiCall (/var/task/node_modules/playwright/lib/client/channelOwner.js:72:34) at BrowserType.launch (/var/task/node_modules/playwright/lib/client/browserType.js:52:21) at Runtime.exports.lambdaHandler [as handler] (/var/task/app1.js:6:39) at Runtime.handleOnce (/var/runtime/Runtime.js:66:25) END RequestId: ec405a11-a666-42ff-a6e3-a87050e38716 REPORT RequestId: ec405a11-a666-42ff-a6e3-a87050e38716 Duration: 1636.06 ms Billed Duration: 2771 ms Memory Size: 512 MB Max Memory Used: 166 MB Init Duration: 1134.78 ms ``` What should I do for this?```"><pre class="notranslate"><code class="notranslate">&lt;launched&gt; pid=23 [err] *** You are running in headless mode. [err] ExceptionHandler::GenerateDump cloned child 34 [err] ExceptionHandler::SendContinueSignalToChild sent continue signal to child [err] ExceptionHandler::WaitForContinueSignal waiting for continue signal... =========================== logs =========================== &lt;launching&gt; /opt/firefox/firefox -no-remote -headless -profile /tmp/playwright_firefoxdev_profile-BYvMgD -juggler-pipe -silent &lt;launched&gt; pid=23 [err] *** You are running in headless mode. [err] ExceptionHandler::GenerateDump cloned child 34 [err] ExceptionHandler::SendContinueSignalToChild sent continue signal to child [err] ExceptionHandler::WaitForContinueSignal waiting for continue signal... ============================================================ Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs. at Connection.sendMessageToServer (/var/task/node_modules/playwright/lib/client/connection.js:69:15) at Proxy.&lt;anonymous&gt; (/var/task/node_modules/playwright/lib/client/channelOwner.js:44:61) at /var/task/node_modules/playwright/lib/client/browserType.js:61:73 at BrowserType._wrapApiCall (/var/task/node_modules/playwright/lib/client/channelOwner.js:72:34) at BrowserType.launch (/var/task/node_modules/playwright/lib/client/browserType.js:52:21) at Runtime.exports.lambdaHandler [as handler] (/var/task/app1.js:6:39) at Runtime.handleOnce (/var/runtime/Runtime.js:66:25) END RequestId: ec405a11-a666-42ff-a6e3-a87050e38716 REPORT RequestId: ec405a11-a666-42ff-a6e3-a87050e38716 Duration: 1636.06 ms Billed Duration: 2771 ms Memory Size: 512 MB Max Memory Used: 166 MB Init Duration: 1134.78 ms ``` What should I do for this?``` </code></pre></div>
1
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">If you have a duplicate key in v-for or a key that isn't a primitive type, you get a helpful warning in the console in development mode. But if you spell the key name wrong <code class="notranslate">:key="object.typ"</code> instead of <code class="notranslate">:key="object.type"</code>, the <code class="notranslate">key</code> becomes undefined and there's no warning or error, even though all keys are undefined and therefore duplicates.</p> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto">Same API but with browser console error like is shown for other v-for key errors.</p>
<h3 dir="auto">Version</h3> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codesandbox.io/embed/vue2-sfc-playground-forked-32ii7p?fontsize=14&amp;hidenavigation=1&amp;theme=dark" rel="nofollow">codesandbox.io</a></p> <h3 dir="auto">Steps to reproduce</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Vue from &quot;vue&quot;; const a = [1, 2, 3]; Vue.set(a, 1, 100); // Cannot read properties of undefined (reading 'shallow')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">Vue</span> <span class="pl-k">from</span> <span class="pl-s">"vue"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-v">Vue</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">100</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Cannot read properties of undefined (reading 'shallow')</span></pre></div> <h3 dir="auto">What is expected?</h3> <p dir="auto">Set the array element by index.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Error occured.</p> <hr> <p dir="auto">Introduced in 2.7.3 with commit</p> <p dir="auto"><a class="commit-link" href="https://github.com/vuejs/vue/commit/360272bde32e93b1a8d611e4b97af1300c38e7a3#diff-2e26135213b820cfd0eaba327405d14d405a4eee7d14a5c4acfcc2c84ef14692R244"><tt>360272b</tt>#diff-2e26135213b820cfd0eaba327405d14d405a4eee7d14a5c4acfcc2c84ef14692R244</a></p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Navigate to the next page without errors.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Taking a 'quiz' after reading through a lesson. I've already completed the quizes, but when I click "next" to leave the page I get an "An unexpected error has occurred." message and an error in the console.</p> <p dir="auto">"Error: StyleSheetRegistry: styleId: <code class="notranslate">jsx-1586328328</code> not found.<br> Stack trace"</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Having already completed the lessons (possibly a factor) go through the quizes</li> <li>After hitting next on a page with a quiz, observe the error message in the browser and console.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">Trying to review content, errors on every other page is a rough ux.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td></td> </tr> <tr> <td>node</td> <td></td> </tr> <tr> <td>OS</td> <td></td> </tr> <tr> <td>browser</td> <td>firefox developer</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Current Behavior</h2> <p dir="auto">My app runs an infinite loop of webpack compilation, every action is therefore hyper slow.</p> <h2 dir="auto">Context</h2> <p dir="auto">I'm running a Next.js app on top of Express, which is itself on top of serverless-offline, which is used to simulate the AWS lambda behavior.</p> <p dir="auto">Express is used by aws-serverless-express, which is a bridge between express and the Serverless framework. I therefore don't run an instance of express myself, but rather just configure the app and export it, as a module. This module is then used internally of aws-serverless-express to run the express server.</p> <p dir="auto">In this situation, I don't see how I can use <code class="notranslate">app.prepare</code>, which is async, because if I run it inside my lambda then it gets called at every call, including the HMR heartbeats.</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: newest master and 2.5.3</li> <li>Operating System version: mac</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">Our company currently uses dubbo-2.5.3, LoadBalance chooses roundrobin. After the weight adjustment is made, the distribution of traffic is not in line with expectations. So I saw the implementation of RoundRobinLoadBalance of 2.5.3, which logically led to the distribution of traffic. Not in line with expectations, so I read the latest dubbo version of the implementation, found that the latest version of RoundRobinLoadBalance implementation traffic distribution is in line with expectations, but the performance is not satisfactory.</p> <p dir="auto">Test Code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package com.manzhizhen.study.loadbalance; import com.alibaba.dubbo.common.utils.AtomicPositiveInteger; import com.alibaba.fastjson.JSON; import com.google.common.collect.Lists; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ThreadLocalRandom; /** * Created by yizhenqiang on 18/9/26. */ public class DubboRoundRobinLoadBalance { /** * 假设该接口有10个可用的Invoker */ private static final int INVOKER_SIZE = 10; private static final int[] INVOKER_WEIGHT_ARRAY = new int[]{100, 100, 200, 200, 300, 300, 400, 400, 500, 500}; private static final String SERVICE_KEY = &quot;com.test.Test.testMethod&quot;; private static final ConcurrentMap&lt;String, AtomicPositiveInteger&gt; sequences = new ConcurrentHashMap&lt;String, AtomicPositiveInteger&gt;(); private static final ConcurrentMap&lt;String, AtomicPositiveInteger&gt; sequences1 = new ConcurrentHashMap&lt;String, AtomicPositiveInteger&gt;(); private static final ConcurrentMap&lt;String, AtomicPositiveInteger&gt; weightSequences = new ConcurrentHashMap&lt;String, AtomicPositiveInteger&gt;(); public static void main(String[] args) { int times = 1000000; int[] selectArray = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; long start = System.nanoTime(); while (times-- &gt; 0) { int select = currentSelect(); selectArray[select]++; } System.out.println(&quot;最新dubbo的RoundRobinLoadBalance耗时:&quot; + (System.nanoTime() - start) / 1000000); System.out.println(&quot;最新dubbo的RoundRobinLoadBalance流量分布:&quot; + JSON.toJSONString(selectArray)); times = 1000000; selectArray = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; start = System.nanoTime(); while (times-- &gt; 0) { int select = oldSelect(); selectArray[select]++; } System.out.println(&quot;dubbo-2.5.3的RoundRobinLoadBalance耗时:&quot; + (System.nanoTime() - start) / 1000000); System.out.println(&quot;dubbo-2.5.3的RoundRobinLoadBalance流量分布:&quot; + JSON.toJSONString(selectArray)); times = 1000000; selectArray = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; start = System.nanoTime(); while (times-- &gt; 0) { int select = oldRandomSelect(); selectArray[select]++; } System.out.println(&quot;dubbo-2.5.3的RandomLoadBalance耗时:&quot; + (System.nanoTime() - start) / 1000000); System.out.println(&quot;dubbo-2.5.3的RandomLoadBalance流量分布:&quot; + JSON.toJSONString(selectArray)); } /** * 当前最新版本dubbo master分支中实现方式 * * @return 选择的invoker的index */ private static int currentSelect() { // 为了测试方便,key默认写死 String key = SERVICE_KEY; // invoker默认是10个 int length = INVOKER_SIZE; // Number of invokers int maxWeight = 0; // The maximum weight int minWeight = Integer.MAX_VALUE; // The minimum weight final LinkedHashMap&lt;Integer, IntegerWrapper&gt; invokerToWeightMap = new LinkedHashMap&lt;Integer, IntegerWrapper&gt;(); int weightSum = 0; for (int i = 0; i &lt; length; i++) { int weight = getWeight(i); maxWeight = Math.max(maxWeight, weight); // Choose the maximum weight minWeight = Math.min(minWeight, weight); // Choose the minimum weight if (weight &gt; 0) { invokerToWeightMap.put(i, new IntegerWrapper(weight)); weightSum += weight; } } AtomicPositiveInteger sequence = sequences.get(key); if (sequence == null) { sequences.putIfAbsent(key, new AtomicPositiveInteger()); sequence = sequences.get(key); } int currentSequence = sequence.getAndIncrement(); if (maxWeight &gt; 0 &amp;&amp; minWeight &lt; maxWeight) { int mod = currentSequence % weightSum; for (int i = 0; i &lt; maxWeight; i++) { for (Map.Entry&lt;Integer, IntegerWrapper&gt; each : invokerToWeightMap.entrySet()) { final Integer k = each.getKey(); final IntegerWrapper v = each.getValue(); if (mod == 0 &amp;&amp; v.getValue() &gt; 0) { return k; } if (v.getValue() &gt; 0) { v.decrement(); mod--; } } } } // Round robin return currentSequence % length; } /** * 2.5.3版本的roundrobin方式 * * @return */ private static int oldSelect() { // 为了测试方便,key默认写死 String key = SERVICE_KEY; // invoker默认是10个 int length = INVOKER_SIZE; // Number of invokers List&lt;Integer&gt; invokers = Lists.newArrayList(); int maxWeight = 0; // 最大权重 int minWeight = Integer.MAX_VALUE; // 最小权重 for (int i = 0; i &lt; length; i++) { int weight = getWeight(i); maxWeight = Math.max(maxWeight, weight); // 累计最大权重 minWeight = Math.min(minWeight, weight); // 累计最小权重 } if (maxWeight &gt; 0 &amp;&amp; minWeight &lt; maxWeight) { // 权重不一样 AtomicPositiveInteger weightSequence = weightSequences.get(key); if (weightSequence == null) { weightSequences.putIfAbsent(key, new AtomicPositiveInteger()); weightSequence = weightSequences.get(key); } int currentWeight = weightSequence.getAndIncrement() % maxWeight; List&lt;Integer&gt; weightInvokers = new ArrayList&lt;Integer&gt;(); for (int i = 0; i &lt; INVOKER_SIZE; i++) { // 筛选权重大于当前权重基数的Invoker if (getWeight(i) &gt; currentWeight) { weightInvokers.add(i); } } int weightLength = weightInvokers.size(); if (weightLength == 1) { return weightInvokers.get(0); } else if (weightLength &gt; 1) { invokers = weightInvokers; length = invokers.size(); } } AtomicPositiveInteger sequence = sequences1.get(key); if (sequence == null) { sequences1.putIfAbsent(key, new AtomicPositiveInteger()); sequence = sequences1.get(key); } // 取模轮循 return invokers.get(sequence.getAndIncrement() % length); } /** * 2.5.3版本的random方式 * * @return */ private static int oldRandomSelect() { // 为了测试方便,key默认写死 String key = SERVICE_KEY; // invoker默认是10个 int length = INVOKER_SIZE; // Number of invokers int totalWeight = 0; // 总权重 boolean sameWeight = true; // 权重是否都一样 for (int i = 0; i &lt; length; i++) { int weight = getWeight(i); totalWeight += weight; // 累计总权重 if (sameWeight &amp;&amp; i &gt; 0 &amp;&amp; weight != getWeight(i - 1)) { sameWeight = false; // 计算所有权重是否一样 } } if (totalWeight &gt; 0 &amp;&amp; !sameWeight) { // 如果权重不相同且权重大于0则按总权重数随机 int offset = ThreadLocalRandom.current().nextInt(totalWeight); // 并确定随机值落在哪个片断上 for (int i = 0; i &lt; length; i++) { offset -= getWeight(i); if (offset &lt; 0) { return i; } } } // 如果权重相同或权重为0则均等随机 return ThreadLocalRandom.current().nextInt(length); } private static int getWeight(int invokerIndex) { return INVOKER_WEIGHT_ARRAY[invokerIndex]; } private static final class IntegerWrapper { private int value; public IntegerWrapper(int value) { this.value = value; } public int getValue() { return value; } public void setValue(int value) { this.value = value; } public void decrement() { this.value--; } } } "><pre class="notranslate"><code class="notranslate">package com.manzhizhen.study.loadbalance; import com.alibaba.dubbo.common.utils.AtomicPositiveInteger; import com.alibaba.fastjson.JSON; import com.google.common.collect.Lists; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ThreadLocalRandom; /** * Created by yizhenqiang on 18/9/26. */ public class DubboRoundRobinLoadBalance { /** * 假设该接口有10个可用的Invoker */ private static final int INVOKER_SIZE = 10; private static final int[] INVOKER_WEIGHT_ARRAY = new int[]{100, 100, 200, 200, 300, 300, 400, 400, 500, 500}; private static final String SERVICE_KEY = "com.test.Test.testMethod"; private static final ConcurrentMap&lt;String, AtomicPositiveInteger&gt; sequences = new ConcurrentHashMap&lt;String, AtomicPositiveInteger&gt;(); private static final ConcurrentMap&lt;String, AtomicPositiveInteger&gt; sequences1 = new ConcurrentHashMap&lt;String, AtomicPositiveInteger&gt;(); private static final ConcurrentMap&lt;String, AtomicPositiveInteger&gt; weightSequences = new ConcurrentHashMap&lt;String, AtomicPositiveInteger&gt;(); public static void main(String[] args) { int times = 1000000; int[] selectArray = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; long start = System.nanoTime(); while (times-- &gt; 0) { int select = currentSelect(); selectArray[select]++; } System.out.println("最新dubbo的RoundRobinLoadBalance耗时:" + (System.nanoTime() - start) / 1000000); System.out.println("最新dubbo的RoundRobinLoadBalance流量分布:" + JSON.toJSONString(selectArray)); times = 1000000; selectArray = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; start = System.nanoTime(); while (times-- &gt; 0) { int select = oldSelect(); selectArray[select]++; } System.out.println("dubbo-2.5.3的RoundRobinLoadBalance耗时:" + (System.nanoTime() - start) / 1000000); System.out.println("dubbo-2.5.3的RoundRobinLoadBalance流量分布:" + JSON.toJSONString(selectArray)); times = 1000000; selectArray = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; start = System.nanoTime(); while (times-- &gt; 0) { int select = oldRandomSelect(); selectArray[select]++; } System.out.println("dubbo-2.5.3的RandomLoadBalance耗时:" + (System.nanoTime() - start) / 1000000); System.out.println("dubbo-2.5.3的RandomLoadBalance流量分布:" + JSON.toJSONString(selectArray)); } /** * 当前最新版本dubbo master分支中实现方式 * * @return 选择的invoker的index */ private static int currentSelect() { // 为了测试方便,key默认写死 String key = SERVICE_KEY; // invoker默认是10个 int length = INVOKER_SIZE; // Number of invokers int maxWeight = 0; // The maximum weight int minWeight = Integer.MAX_VALUE; // The minimum weight final LinkedHashMap&lt;Integer, IntegerWrapper&gt; invokerToWeightMap = new LinkedHashMap&lt;Integer, IntegerWrapper&gt;(); int weightSum = 0; for (int i = 0; i &lt; length; i++) { int weight = getWeight(i); maxWeight = Math.max(maxWeight, weight); // Choose the maximum weight minWeight = Math.min(minWeight, weight); // Choose the minimum weight if (weight &gt; 0) { invokerToWeightMap.put(i, new IntegerWrapper(weight)); weightSum += weight; } } AtomicPositiveInteger sequence = sequences.get(key); if (sequence == null) { sequences.putIfAbsent(key, new AtomicPositiveInteger()); sequence = sequences.get(key); } int currentSequence = sequence.getAndIncrement(); if (maxWeight &gt; 0 &amp;&amp; minWeight &lt; maxWeight) { int mod = currentSequence % weightSum; for (int i = 0; i &lt; maxWeight; i++) { for (Map.Entry&lt;Integer, IntegerWrapper&gt; each : invokerToWeightMap.entrySet()) { final Integer k = each.getKey(); final IntegerWrapper v = each.getValue(); if (mod == 0 &amp;&amp; v.getValue() &gt; 0) { return k; } if (v.getValue() &gt; 0) { v.decrement(); mod--; } } } } // Round robin return currentSequence % length; } /** * 2.5.3版本的roundrobin方式 * * @return */ private static int oldSelect() { // 为了测试方便,key默认写死 String key = SERVICE_KEY; // invoker默认是10个 int length = INVOKER_SIZE; // Number of invokers List&lt;Integer&gt; invokers = Lists.newArrayList(); int maxWeight = 0; // 最大权重 int minWeight = Integer.MAX_VALUE; // 最小权重 for (int i = 0; i &lt; length; i++) { int weight = getWeight(i); maxWeight = Math.max(maxWeight, weight); // 累计最大权重 minWeight = Math.min(minWeight, weight); // 累计最小权重 } if (maxWeight &gt; 0 &amp;&amp; minWeight &lt; maxWeight) { // 权重不一样 AtomicPositiveInteger weightSequence = weightSequences.get(key); if (weightSequence == null) { weightSequences.putIfAbsent(key, new AtomicPositiveInteger()); weightSequence = weightSequences.get(key); } int currentWeight = weightSequence.getAndIncrement() % maxWeight; List&lt;Integer&gt; weightInvokers = new ArrayList&lt;Integer&gt;(); for (int i = 0; i &lt; INVOKER_SIZE; i++) { // 筛选权重大于当前权重基数的Invoker if (getWeight(i) &gt; currentWeight) { weightInvokers.add(i); } } int weightLength = weightInvokers.size(); if (weightLength == 1) { return weightInvokers.get(0); } else if (weightLength &gt; 1) { invokers = weightInvokers; length = invokers.size(); } } AtomicPositiveInteger sequence = sequences1.get(key); if (sequence == null) { sequences1.putIfAbsent(key, new AtomicPositiveInteger()); sequence = sequences1.get(key); } // 取模轮循 return invokers.get(sequence.getAndIncrement() % length); } /** * 2.5.3版本的random方式 * * @return */ private static int oldRandomSelect() { // 为了测试方便,key默认写死 String key = SERVICE_KEY; // invoker默认是10个 int length = INVOKER_SIZE; // Number of invokers int totalWeight = 0; // 总权重 boolean sameWeight = true; // 权重是否都一样 for (int i = 0; i &lt; length; i++) { int weight = getWeight(i); totalWeight += weight; // 累计总权重 if (sameWeight &amp;&amp; i &gt; 0 &amp;&amp; weight != getWeight(i - 1)) { sameWeight = false; // 计算所有权重是否一样 } } if (totalWeight &gt; 0 &amp;&amp; !sameWeight) { // 如果权重不相同且权重大于0则按总权重数随机 int offset = ThreadLocalRandom.current().nextInt(totalWeight); // 并确定随机值落在哪个片断上 for (int i = 0; i &lt; length; i++) { offset -= getWeight(i); if (offset &lt; 0) { return i; } } } // 如果权重相同或权重为0则均等随机 return ThreadLocalRandom.current().nextInt(length); } private static int getWeight(int invokerIndex) { return INVOKER_WEIGHT_ARRAY[invokerIndex]; } private static final class IntegerWrapper { private int value; public IntegerWrapper(int value) { this.value = value; } public int getValue() { return value; } public void setValue(int value) { this.value = value; } public void decrement() { this.value--; } } } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="最新dubbo的RoundRobinLoadBalance耗时:9291 最新dubbo的RoundRobinLoadBalance流量分布:[33400,33400,66700,66700,100000,100000,133300,133300,166600,166600] dubbo-2.5.3的RoundRobinLoadBalance耗时:158 dubbo-2.5.3的RoundRobinLoadBalance流量分布:[20000,20000,45000,45000,78333,78333,128333,128333,228334,228334] dubbo-2.5.3的RandomLoadBalance耗时:39 dubbo-2.5.3的RandomLoadBalance流量分布:[33261,33660,66804,66524,99586,99774,133574,133397,166703,166717]"><pre class="notranslate"><code class="notranslate">最新dubbo的RoundRobinLoadBalance耗时:9291 最新dubbo的RoundRobinLoadBalance流量分布:[33400,33400,66700,66700,100000,100000,133300,133300,166600,166600] dubbo-2.5.3的RoundRobinLoadBalance耗时:158 dubbo-2.5.3的RoundRobinLoadBalance流量分布:[20000,20000,45000,45000,78333,78333,128333,128333,228334,228334] dubbo-2.5.3的RandomLoadBalance耗时:39 dubbo-2.5.3的RandomLoadBalance流量分布:[33261,33660,66804,66524,99586,99774,133574,133397,166703,166717] </code></pre></div> <p dir="auto">In the latest version of the RoundRobinLoadBalance implementation, a large number of for loops are used to do the minus one operation. This is not optimistic when the weight distribution is relatively large (hundreds of thousands of weights).</p>
<p dir="auto">Come up with some design and implementation for dubbo util support. The purpose of this enhancement is to provide utility methods which can help dubbo user to use and achieve the better API experience without enforcing service implementation to provide those support while they write service.</p> <p dir="auto">e.g.<br> If consumer of service needs to make a <strong>Future</strong> type of call then instead of service implementation can add those as feature, using Dubbo provided utility they can transfer Rpc call to future callable using something like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RpcFuture future=DubboRpcUti.toFuture(someService.someMethod(msg),someNotifyMethod); DubboRpcUril.call(someUserService.getUser(org)).process(businessLogicMethod).onException(UserNotAvailable.class,handleUserNotAvailable)"><pre class="notranslate"><code class="notranslate">RpcFuture future=DubboRpcUti.toFuture(someService.someMethod(msg),someNotifyMethod); DubboRpcUril.call(someUserService.getUser(org)).process(businessLogicMethod).onException(UserNotAvailable.class,handleUserNotAvailable) </code></pre></div> <p dir="auto">Above are not exhaustive list or final, but the idea is this is an place holder for coming up with some approach, design and implementation.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">When using nav-justified, and narrowing the window everything responds nicely, but if you widen the window, the nav items don't return to their original size. You can actually see this in the example page.</p> <p dir="auto"><a href="http://getbootstrap.com/examples/justified-nav/" rel="nofollow">http://getbootstrap.com/examples/justified-nav/</a></p>
<p dir="auto">The justified nav example (<a href="http://getbootstrap.com/examples/justified-nav" rel="nofollow">http://getbootstrap.com/examples/justified-nav</a>) collapses perfectly when the screen is narrowed, but when the screen is expanded it get wonky.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/db69ca8e316e013e7709351d88ecf7d585b87ae58bdeb880ad477c8bc93e6608/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f38333730382f3938323439352f33383763663635362d303766382d313165332d393330382d6363376238306661653266642e706e67"><img src="https://camo.githubusercontent.com/db69ca8e316e013e7709351d88ecf7d585b87ae58bdeb880ad477c8bc93e6608/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f38333730382f3938323439352f33383763663635362d303766382d313165332d393330382d6363376238306661653266642e706e67" alt="justified nav" data-canonical-src="https://f.cloud.github.com/assets/83708/982495/387cf656-07f8-11e3-9308-cc7b80fae2fd.png" style="max-width: 100%;"></a><br> expanded</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> What we're trying to achieve:</p> <ul dir="auto"> <li>We have implemented a resolve guard in a lazily loaded module that will navigate to an error component on failure to retrieve data.</li> <li>The resolve guard will also store the failure message in a field of itself.</li> <li>The error component takes the resolve guard as a dependency, and displays the error message from it.</li> </ul> <p dir="auto">Our implementation is very similar to the Tour of Heroes example with the resolve guard navigating to another page on failure. See this <a href="https://angular.io/resources/live-examples/router/ts/eplnkr.html" rel="nofollow">plunkr example</a>, and click on any crisis under the <code class="notranslate">Crisis Center</code></p> <p dir="auto">We have produced an example of the problem by extending the Tour of Heroes example.</p> <p dir="auto">When <code class="notranslate">CrisisCenterModule</code> is lazily loaded, we have observed:</p> <ul dir="auto"> <li>The resolver instance for <code class="notranslate">CrisisDetailComponent</code> is different to the instance being injected in to <code class="notranslate">ErrorComponent</code>, which is a sibling route to the activate route. We have confirmed that the resolver is only provided inside the <code class="notranslate">CrisisCenterRoutingModule</code>, which is inside the lazily loaded module.</li> <li>We can see that the <code class="notranslate">CrisisCenterModule</code> and all it's contained modules and components are instantiated twice, with different injectors.</li> </ul> <p dir="auto">When <code class="notranslate">CrisisCenterModule</code> module is not lazily loaded, this problem does not occur.</p> <p dir="auto">This was previously working when we were using Angular 2.1.0, until we upgraded to 2.3.1/2.4.1. We narrowed it down to when the version of <code class="notranslate">@angular/router</code> changed from <code class="notranslate">3.1.0</code> to <code class="notranslate">3.2.0</code>. This problem did not occur with the beta and RC versions of <code class="notranslate">3.2.0</code>.</p> <p dir="auto">We did consider using an intermediate service for the resolver to share the error message to another component, but we experienced the same issue with multiple instances of this service.</p> <p dir="auto"><strong>Expected behavior</strong><br> Clicking on a crisis under the <code class="notranslate">Crisis Center</code> in this <a href="https://embed.plnkr.co/DLDxPgCmBdJ10SrnP995/" rel="nofollow">plunkr example</a>, you will see <code class="notranslate">Error component - error message:</code>, whereas we expect to see <code class="notranslate">Error component - error message: error</code>.</p> <p dir="auto">We created another <a href="https://embed.plnkr.co/G56i8ndB8HKsUcjlUgwN/" rel="nofollow">plunkr example</a> where <code class="notranslate">CrisisCenterModule</code> module is not lazily loaded, and the problem does not occur.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> We have modified Tour of Heroes example in the following ways:</p> <ul dir="auto"> <li><code class="notranslate">app/crisis-center/crisis-detail-resolver.service.ts</code> - Modified to always set the <code class="notranslate">errorMessage</code> field, and navigate to the <code class="notranslate">ErrorComponent</code>.</li> <li><code class="notranslate">app/crisis-center/error.component.ts</code>- Newly added. Displays the <code class="notranslate">errorMessage</code> field from the injected <code class="notranslate">CrisisDetailResolver</code>.</li> </ul> <p dir="auto">You can download <a href="https://github.com/jbridger/angular2-lazy-load-injection.git">this example Github project</a> where the <code class="notranslate">@angular/router</code> version is <code class="notranslate">3.2.0</code>. To run:</p> <ul dir="auto"> <li>npm install</li> <li>npm run</li> <li>Open <code class="notranslate">http://localhost:4200</code></li> <li>Click on a crisis under the <code class="notranslate">Crisis Center</code></li> <li>You will see <code class="notranslate">Error component - This is the error message:</code>, which is missing the error message from the resolver.</li> <li>You can see in the console log that the <code class="notranslate">CrisisCenterModule</code> is instantiated twice with different injectors, and the error message is not displayed.</li> </ul> <p dir="auto">To see it working, you must switch the version of <code class="notranslate">@angular/router</code> to <code class="notranslate">3.1.0</code> in <code class="notranslate">packages.json</code>, clear the <code class="notranslate">npm_modules</code> folder, and re-run the above steps. You should see the following displayed: <code class="notranslate">Error component - This is the error message:I failed to load crisis</code>. You will also see in the console log that components are only being initialised once.</p> <p dir="auto">Alternatively, you can reproduce with this <a href="https://embed.plnkr.co/DLDxPgCmBdJ10SrnP995/" rel="nofollow">plunkr example</a>.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> We want the resolver to handle failure to load data and navigate to a component that can handle this failure appropriately. This seems to be the pattern that is shown in the Tour of Heroes example (from the Routing advanced guide).</p> <p dir="auto">The alternative would be to modify the resolver to wrap failures in a result object, and let the activated route component handle success and failure cases. We'd like to avoid this, as it would make the component more complex.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li> <p dir="auto">Mac OS X 10.11.5</p> </li> <li> <p dir="auto"><strong>Angular version:</strong> 2.4.1. <code class="notranslate">@angular/router</code> at <code class="notranslate">3.4.1</code>. Works when router is at <code class="notranslate">3.1.0</code>.</p> </li> <li> <p dir="auto"><strong>Browser:</strong> Chrome 55.0.2883.95</p> </li> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.0.3</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.2.1</p> </li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> After upgrading to router 3.2.0, services being provided by component module are being instantiated twice. Once while resolver is being run (last place in router is PreActivation.prototype.getToken) and then again later during activation (last place in router is RouterOutlet.prototype.activate).<br> Upgrading rest of Angular to 2.2.0 and leaving router at 3.1.1 it works as it used to (and looking in debugger I see service is only instantiated from PreActivation.prototype.getToken)</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Providers should only be instantiated once - as they are when using router version 3.1.1</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">Haven't yet reproduced in a plnkr but my use case has a lazy loaded component that itself has sub components (not lazy loaded). The sub component has a resolver that uses a service, and the sub component itself uses the service. The service is included in the lazy loaded components module providers list and is being instantiated twice. Once apparently while router is working on resolve and once when component is being activated.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">Its just wrong, and my service fetches data on initialization so extra instance causes extra fetch. This does not happen with router 3.1.1 (never tried 3.1.2 as deactivate guards don't work correctly in that version)</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">Windows 10, Visual Studio Code, angular-cli: 1.0.0-beta.19-3 ng serve</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X</li> </ul> <p dir="auto">2.2.0</p> <ul dir="auto"> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> </ul> <p dir="auto">Only tried in Chrome</p> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> Typescript 2.0.9</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p> </li> </ul>
1
<p dir="auto">by <strong>Vova616</strong>:</p> <pre class="notranslate">What steps will reproduce the problem? foo.c: #include "_cgo_export.h" void test() { Test(1,2,3); } foo.go: package main //void test(); import "C" import "fmt" //export Test func Test(val C.int, val2 C.double, val3 C.double) { fmt.Println(float64(val), float64(val2), float64(val3)) } func main() { C.test() } What is the expected output? 1 2 3 What do you see instead? 1 9.80967354e-315 5.304989477e-315 Which compiler are you using (5g, 6g, 8g, gccgo)? 8g 386 Which operating system are you using? Windows 7 64bit Which version are you using? (run 'go version') go version go1.1.2 windows/386 also go version devel +1d0a0a267088 Wed Aug 14 22:18:49 2013 +0400 windows/386 Please provide any additional information below. Changing (val C.int -&gt; val C.double) fixes the problem. "tapir" from github confirmed similar code was working fine on Arch linux 32bit but not on windows.</pre>
<pre class="notranslate">The spec at the moment permits _ methods in signatures, like: type A interface{ _() } and such interfaces cannot be implemented, per a prior assessment of this problem (see <a href="https://golang.org/issue/5691" rel="nofollow">issue #5691</a>). That said, there are open questions related to this that are unclear from the spec. For instance: 1) Given A, and a type B defined like A, and variables a, b of type A, and B, respectively, is: a = b permitted at compile-time? That is, are type A and B identical? 2) Given A, and a type B interface { _(); _() } with accordingly typed variables a, b, is: a = b permitted? That is, are type A and B identical now? There are several ways we can fix this in the spec. Here are two possibilities: 1) Disallow _ methods in interfaces altogether since it's never possible to implement such an interface, never possible to call the _ method, and the contents of such variables is always nil. Cons: we permit _ identifiers everywhere else. 2a) Permit _ methods in interfaces but any interface containing (at least) one _ method is different from any other interface type unless they both have the same name. 2b) Permit _ methods in interfaces but any interface containing (at least) one _ method is different from any other interface type including itself (sort of the NaN of interfaces: NaI). 3) Maintain the _ methods in the method set, every single one of them. So interface types that have the same non-blank methods are identical only if they have the same _ methods. That seems like a bad idea since it would require comparing signatures, and also makes compiler internal sorting very complicated. I am leaning towards 2a or 2b. 2b seems cleaner but precludes an easy pointer comparison to check for type equality w/o further checking that no interface with _ method is involved. This is an esoteric corner case but affects how (compiler-) internally method sets are represented and sorted.</pre>
0
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke-staging-parallel/1263/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke-staging-parallel/1263/</a></p> <p dir="auto">Failed: DumpClusterLogs {e2e.go}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="exit status 1"><pre class="notranslate"><code class="notranslate">exit status 1 </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="179960536" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33722" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33722/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33722">#33722</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="192117293" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/37578" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/37578/hovercard" href="https://github.com/kubernetes/kubernetes/issues/37578">#37578</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-aws/1075/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-aws/1075/</a></p> <p dir="auto">Failed: DumpClusterLogs {e2e.go}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="exit status 255"><pre class="notranslate"><code class="notranslate">exit status 255 </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="179960536" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33722" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33722/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33722">#33722</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="192117293" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/37578" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/37578/hovercard" href="https://github.com/kubernetes/kubernetes/issues/37578">#37578</a></p>
1
<p dir="auto">Given this:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct S; impl Drop for S { fn drop(&amp;mut self) { println!(&quot;Dropping S&quot;); panic!(&quot;DIE&quot;); } } struct T; impl Drop for T { fn drop(&amp;mut self) { println!(&quot;Dropping T&quot;); } } fn main() { let t = T; let s = S; }"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">S</span><span class="pl-kos">;</span> <span class="pl-k">impl</span> <span class="pl-smi">Drop</span> <span class="pl-k">for</span> <span class="pl-smi">S</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">drop</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> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"Dropping S"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">panic</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"DIE"</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">struct</span> <span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-k">impl</span> <span class="pl-smi">Drop</span> <span class="pl-k">for</span> <span class="pl-smi">T</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">drop</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> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"Dropping T"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> t = <span class="pl-v">T</span><span class="pl-kos">;</span> <span class="pl-k">let</span> s = <span class="pl-v">S</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The output is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Dropping S thread '&lt;main&gt;' panicked at 'DIE', nounwind.rs:6"><pre class="notranslate"><code class="notranslate">Dropping S thread '&lt;main&gt;' panicked at 'DIE', nounwind.rs:6 </code></pre></div> <p dir="auto">The <code class="notranslate">drop()</code> call for T is completely skipped, while I would have expected it to be called.</p>
<p dir="auto">The following standalone struct, when compiled, generates the assertion below.</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#[deriving(PartialEq)] struct Foo { bar:str }"><pre class="notranslate"><span class="pl-c1">#<span class="pl-kos">[</span>deriving<span class="pl-kos">(</span><span class="pl-v">PartialEq</span><span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">struct</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">bar</span><span class="pl-kos">:</span><span class="pl-smi">str</span> <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/lib/IR/Instructions.cpp:1086: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)-&gt;getType() == cast&lt;PointerType&gt;(getOperand(1)-&gt;getType())-&gt;getElementType() &amp;&amp; &quot;Ptr must be a pointer to Val type!&quot;' failed."><pre class="notranslate"><code class="notranslate">rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/lib/IR/Instructions.cpp:1086: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)-&gt;getType() == cast&lt;PointerType&gt;(getOperand(1)-&gt;getType())-&gt;getElementType() &amp;&amp; "Ptr must be a pointer to Val type!"' failed. </code></pre></div>
0
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>8.0.2</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>Ubuntu 18.04/19.10 (kernel 4.15 and 5.3)</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>Electron 7</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Not to crash on start up.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Several (but not all) users are reporting that our Electron app segfaults immediately on startup. Please see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="579095967" data-permission-text="Title is private" data-url="https://github.com/keybase/client/issues/23018" data-hovercard-type="issue" data-hovercard-url="/keybase/client/issues/23018/hovercard" href="https://github.com/keybase/client/issues/23018#issue-579095967">keybase/client#23018 (comment)</a>, which includes a link to a coredump, though I couldn't find anything super useful in there myself.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Unfortunately we can't reproduce this ourselves on Ubuntu 18.04, but several users are reporting this issue.</p> <h3 dir="auto">Screenshots</h3> <h3 dir="auto">Additional Information</h3> <p dir="auto">I found <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="565903324" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/22215" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/22215/hovercard" href="https://github.com/electron/electron/issues/22215">#22215</a>, which could be relevant but I didn't see much of a resolution or diagnosis there, plus the issue we have is that it crashes immediately on startup, not after a while. In addition, while there are some comments there indicating that linux kernel 5.5 may be the culprit, our users are reporting issues on kernel 4.15 and 5.3.</p> <p dir="auto">Any help debugging this greatly appreciated. Thanks!</p>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Electron Version</h3> <p dir="auto">12.0.0</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">Windows</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">Windows 7</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">ia32</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto">unknown</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">doesn't crash</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">crash silently frequently</p> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><em>No response</em></p> <p dir="auto">dump file opend by visual studio</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="errorcode: 0xC0000005 errorinfo: 该线程尝试读写某个虚拟地址,而它对该地址不具有相应的访问权限 (translate:The thread is trying to read and write to a virtual address that it does not have access to) Heap information: inexistence"><pre class="notranslate"><code class="notranslate">errorcode: 0xC0000005 errorinfo: 该线程尝试读写某个虚拟地址,而它对该地址不具有相应的访问权限 (translate:The thread is trying to read and write to a virtual address that it does not have access to) Heap information: inexistence </code></pre></div> <p dir="auto">dump file opened by WinDBG</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Microsoft (R) Windows Debugger Version 10.0.17763.132 X86 Copyright (c) Microsoft Corporation. All rights reserved. Loading Dump File [C:\Users\liuxiaolun\Downloads\Crashpad\reports\7d286649-80c7-4997-b5d0-03f533215108.dmp] User Mini Dump File: Only registers, stack and portions of memory are available ************* Path validation summary ************** Response Time (ms) Location OK D:\project\symbols\electron-v12.0.0-win32-x64-symbols\breakpad_symbols Symbol search path is: D:\project\symbols\electron-v12.0.0-win32-x64-symbols\breakpad_symbols Executable search path is: Windows 7 Version 7601 (24545) MP (2 procs) Free x64 Product: WinNt Windows NT 6.1.7601.24545 Machine Name: Debug session time: Thu Mar 18 11:28:10.000 2021 (UTC + 8:00) System Uptime: not available Process Uptime: 0 days 17:12:02.000 ................................................................ ......................................................... Loading unloaded module list ... This dump file has an exception of interest stored in it. The stored exception information can be accessed via .ecxr. (8c54.84e4): Access violation - code c0000005 (first/second chance not available) *** WARNING: Unable to verify timestamp for ntdll.dll *** ERROR: Module load completed but symbols could not be loaded for ntdll.dll *** WARNING: Unable to verify timestamp for KERNELBASE.dll *** ERROR: Module load completed but symbols could not be loaded for KERNELBASE.dll ntdll+0x69aea: 00000000`776c9aea c3 ret 0:034&gt; .ecxr. rax=0000000022f64bf0 rbx=0000000000000000 rcx=000000001b2603e8 rdx=0000000023b2f618 rsi=0000000023b2f618 rdi=000000001b2603e8 rip=0000000000000000 rsp=0000000023b2f5a8 rbp=0000000023b2f750 r8=000000000000037f r9=feeefeeefeeefeee r10=00000000008c0158 r11=0000000023b2f590 r12=0000000000000000 r13=0000000000000000 r14=0000000000000000 r15=0000000000000000 iopl=0 nv up ei pl zr na po nc cs=0033 ss=0000 ds=0000 es=0000 fs=0053 gs=002b efl=00010246 00000000`00000000 ?? ??? ^ Extra character error in '.ecxr.'"><pre class="notranslate"><code class="notranslate"> Microsoft (R) Windows Debugger Version 10.0.17763.132 X86 Copyright (c) Microsoft Corporation. All rights reserved. Loading Dump File [C:\Users\liuxiaolun\Downloads\Crashpad\reports\7d286649-80c7-4997-b5d0-03f533215108.dmp] User Mini Dump File: Only registers, stack and portions of memory are available ************* Path validation summary ************** Response Time (ms) Location OK D:\project\symbols\electron-v12.0.0-win32-x64-symbols\breakpad_symbols Symbol search path is: D:\project\symbols\electron-v12.0.0-win32-x64-symbols\breakpad_symbols Executable search path is: Windows 7 Version 7601 (24545) MP (2 procs) Free x64 Product: WinNt Windows NT 6.1.7601.24545 Machine Name: Debug session time: Thu Mar 18 11:28:10.000 2021 (UTC + 8:00) System Uptime: not available Process Uptime: 0 days 17:12:02.000 ................................................................ ......................................................... Loading unloaded module list ... This dump file has an exception of interest stored in it. The stored exception information can be accessed via .ecxr. (8c54.84e4): Access violation - code c0000005 (first/second chance not available) *** WARNING: Unable to verify timestamp for ntdll.dll *** ERROR: Module load completed but symbols could not be loaded for ntdll.dll *** WARNING: Unable to verify timestamp for KERNELBASE.dll *** ERROR: Module load completed but symbols could not be loaded for KERNELBASE.dll ntdll+0x69aea: 00000000`776c9aea c3 ret 0:034&gt; .ecxr. rax=0000000022f64bf0 rbx=0000000000000000 rcx=000000001b2603e8 rdx=0000000023b2f618 rsi=0000000023b2f618 rdi=000000001b2603e8 rip=0000000000000000 rsp=0000000023b2f5a8 rbp=0000000023b2f750 r8=000000000000037f r9=feeefeeefeeefeee r10=00000000008c0158 r11=0000000023b2f590 r12=0000000000000000 r13=0000000000000000 r14=0000000000000000 r15=0000000000000000 iopl=0 nv up ei pl zr na po nc cs=0033 ss=0000 ds=0000 es=0000 fs=0053 gs=002b efl=00010246 00000000`00000000 ?? ??? ^ Extra character error in '.ecxr.' </code></pre></div>
0
<p dir="auto"><strong>Description</strong></p> <p dir="auto"><strong>Use case / motivation</strong></p> <p dir="auto">Hi, Airflow team<br> This issue is not related to the Airflow feature, but to the GitHub action control.<br> I am talking with the GitHub Action team, as I noticed, sometimes, the ASF GitHub action has very limited slots for Apache SkyWalking.<br> GitHub did some research, and at least found one task from the Airflow project,<br> <a href="https://github.com/apache/airflow/actions/runs/259069303">https://github.com/apache/airflow/actions/runs/259069303</a></p> <p dir="auto">This task lasts over 6 hours until GitHub action platform terminated it. Could you help with rechecking why it last so long?</p> <p dir="auto"><strong>Related Issues</strong></p>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.2.3 (latest released)</p> <h3 dir="auto">What happened</h3> <p dir="auto">I have tried to schedule a dag to run every 5 mins. However at time 10:57am the dag looks like the below and I would have assumed the dag should have been triggered.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/96873357/152330551-3b9dfa96-ecea-4f30-acc3-3854adebc884.png"><img src="https://user-images.githubusercontent.com/96873357/152330551-3b9dfa96-ecea-4f30-acc3-3854adebc884.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">And then at 11:02 am I can see the the next run information has changed but the dag still hasn't run<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/96873357/152330780-ced4692b-dd6c-48e3-a9b8-d778a6240c12.png"><img src="https://user-images.githubusercontent.com/96873357/152330780-ced4692b-dd6c-48e3-a9b8-d778a6240c12.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">This is the code used to create the dag</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="with DAG(&quot;my_dag&quot;,start_date=datetime(2021, 1 ,1),schedule_interval= '*/5 * * * *', catchup = False) as dag: task1 = BashOperator(task_id = 'test', bash_command = 'echo &quot;hello&quot;')"><pre class="notranslate"><code class="notranslate">with DAG("my_dag",start_date=datetime(2021, 1 ,1),schedule_interval= '*/5 * * * *', catchup = False) as dag: task1 = BashOperator(task_id = 'test', bash_command = 'echo "hello"') </code></pre></div> <h3 dir="auto">What you expected to happen</h3> <p dir="auto">I expect the dag to run or at least log errors in the scheduler logs</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Create a new dag with a scheduling interval which isn't none</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Amazon Linux 2</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">Virtualenv installation</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto">Using MySQL 8.0.23.<br> Local executor</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">Challenge <a href="https://www.freecodecamp.com/challenges/nest-an-anchor-element-within-a-paragraph#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EView%20more%20%3Ca%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%3C%2Fp%3E%0A%0A%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%0A%0A%3Cp%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%3Cp%20class%3D%22red-text%22%3EPurr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%3C%2Fp%3E%0A" rel="nofollow">Nest an Anchor Element within a Paragraph</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36</code>.</p> <p dir="auto">"Run tests" button doesn't work after this manipulation:</p> <ol dir="auto"> <li>Create an anchor("cat photos") as described in the task(current and a previous one)</li> <li>On the next page(the next task) you will still have that link(part of the task). And if you're curious enough, you try to click that link you made on the right of the screen.</li> <li>"Oh, nothing happens, developers did well".</li> <li>Do the task and press "Run tests"</li> <li>Nothing happens<br> It doesn't work either by clicking on the button or pressing 'CTRL+ENTER'<br> If you update the page and do not click that link, it passes okay. Just a minor bug that I felt I should report.<br> Thanks for an amazing website.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/19791699/16976680/5ca6a612-4e72-11e6-84eb-2ff1b18f22ef.PNG"><img src="https://cloud.githubusercontent.com/assets/19791699/16976680/5ca6a612-4e72-11e6-84eb-2ff1b18f22ef.PNG" alt="capture" style="max-width: 100%;"></a></li> </ol> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;link href=&quot;https://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;View more &lt;a href=&quot;http://www.freecatphotoapp.com&quot;&gt;cat photos&lt;/a&gt;&lt;/p&gt; &lt;img class=&quot;smaller-image thick-green-border&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt; &lt;p class=&quot;red-text&quot;&gt;Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.&lt;/p&gt; &lt;p class=&quot;red-text&quot;&gt;Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.&lt;/p&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } .<span class="pl-c1">smaller-image</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>View more <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">http://www.freecatphotoapp.com</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/applied-accessibility/make-elements-only-visible-to-a-screen-reader-by-using-custom-css" rel="nofollow">make-elements-only-visible-to-a-screen-reader-by-using-custom-css</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">The code editor in this particular challenge is not loading properly.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/20010384/23705459/e45e9348-0444-11e7-8e9f-1b9efdffc6ae.PNG"><img width="949" alt="capture" src="https://cloud.githubusercontent.com/assets/20010384/23705459/e45e9348-0444-11e7-8e9f-1b9efdffc6ae.PNG" style="max-width: 100%;"></a></p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">I'm forced by 2nd assertion to write:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var expression = /and+/gi;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">expression</span> <span class="pl-c1">=</span> <span class="pl-pds"><span class="pl-c1">/</span>and<span class="pl-c1">+</span><span class="pl-c1">/</span>gi</span><span class="pl-kos">;</span></pre></div> <p dir="auto">which searches in testString for and or andd or anddd ... That's not the purpose of the exercise.<br> Also, the lesson is wrong about the regular expression: <code class="notranslate">/the+/gi</code></p> <blockquote> <p dir="auto">+ means we want to find one or more occurrences of this pattern.</p> </blockquote> <p dir="auto"><code class="notranslate">g</code> after <code class="notranslate">\</code>, not <code class="notranslate">+</code>, tells to function <code class="notranslate">match</code> to find all occurrences of this pattern in <code class="notranslate">testString</code><br> If we have to find a repeating succession of 'the' word, the regular expression has to be <code class="notranslate">/(the)+/gi</code> at least.</p>
<p dir="auto">In order to pass the test for this waypoint, the comment for the slash-start-start-slash type of commenting has to be on the same line as the first slash-star, otherwise it doesn't work.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5831309/9332352/22615746-45bc-11e5-83c9-e7932b882df6.png"><img src="https://cloud.githubusercontent.com/assets/5831309/9332352/22615746-45bc-11e5-83c9-e7932b882df6.png" alt="salsh-star" style="max-width: 100%;"></a><br> Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.1</li> <li>Operating System version: win10 64位</li> <li>Java version: openjdk-1.8.0.212-3</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">在IDE中直接运行main函数不会出这个异常,但是打包成jar包之后,执行jar包就会出现。<br> 项目地址 <a href="https://github.com/sniperking1234/dubbo-kubernetes">https://github.com/sniperking1234/dubbo-kubernetes</a><br> pom 路径 /demo/demo-provider/pom.xml</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="Exception in thread &quot;main&quot; java.lang.IllegalStateException: No such extension com.alibaba.dubbo.rpc.Protocol by name dubbo at com.alibaba.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:482) at com.alibaba.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:489) at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:309) at com.alibaba.dubbo.config.ServiceConfig.findConfigedPorts(ServiceConfig.java:636) at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:470) at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:357) at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:316) at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:215) at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:121) at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:50) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:93) at com.alibaba.dubbo.demo.provider.Provider.main(Provider.java:11)"><pre class="notranslate"><code class="notranslate">Exception in thread "main" java.lang.IllegalStateException: No such extension com.alibaba.dubbo.rpc.Protocol by name dubbo at com.alibaba.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:482) at com.alibaba.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:489) at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:309) at com.alibaba.dubbo.config.ServiceConfig.findConfigedPorts(ServiceConfig.java:636) at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:470) at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:357) at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:316) at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:215) at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:121) at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:50) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:93) at com.alibaba.dubbo.demo.provider.Provider.main(Provider.java:11) </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.2</li> <li>Operating System version: mac os 10.13.4</li> <li>Java version: jdk8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9124779/59173853-66029c80-8b81-11e9-9bd6-912f55432544.png"><img src="https://user-images.githubusercontent.com/9124779/59173853-66029c80-8b81-11e9-9bd6-912f55432544.png" alt="image" style="max-width: 100%;"></a><br> I have 300 provider instance; so i set 2000 virutal nodes;<br> when the quantity of provider changed, consumer need to refresh the "ConsistentHashSelector"; if the qps is 200, consumer will create 200 "ConsistentHashSelector" ;<br> it cost 300ms to create a "ConsistentHashSelector" with 2000 virtual nodes and 300 providers;</p> <ol dir="auto"> <li>com.alibaba.dubbo.rpc.cluster.loadbalance.ConsistentHashLoadBalance<br> set hash.nodes = 2000;</li> <li>deploy 3 providers, every provider use consistentHash loadbalance</li> <li>consumer set timeout as 100ms ,test qps is 100, deploy the forth provider, the thread in cusumer will be blocked。</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">now that we removed <code class="notranslate">sandbox</code> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="165914680" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/13670" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/13670/hovercard" href="https://github.com/pandas-dev/pandas/pull/13670">#13670</a>, some scripts remain that use this.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I think we could fully remove the <code class="notranslate">bench</code> sub-dir, taking care if we don't have asv's for anything there (I think we do but need to check). (PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="243260274" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/16984" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/16984/hovercard" href="https://github.com/pandas-dev/pandas/pull/16984">#16984</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">scripts</code> dir, we can blow windows_builder (PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="243260274" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/16984" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/16984/hovercard" href="https://github.com/pandas-dev/pandas/pull/16984">#16984</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">scripts</code> dir, we can blow away most of these with the exception of: <code class="notranslate">api_rst_coverage.py</code>, <code class="notranslate">find_undoc_args.py</code>, <code class="notranslate">merge-py.py</code>, <code class="notranslate">find_commits_touching_func.py</code>, again checking for any benchmark scripts and make sure we have asv.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> add README.md for <code class="notranslate">scripts</code> that documents purpose of these scripts</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>move <code class="notranslate">pandas/build_dist.sh</code> and <code class="notranslate">pandas/release_stats.sh</code> to <code class="notranslate">scripts</code> (need to updat e commit checklist though and slightly modify).</del></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>remove <code class="notranslate">pandas/test_perf.sh</code> and <code class="notranslate">pandas/Makefile</code></del></li> </ul>
<p dir="auto">related <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17655872" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/4468" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/4468/hovercard" href="https://github.com/pandas-dev/pandas/issues/4468">#4468</a></p> <p dir="auto">Add keyword argument to ExcelFile parser to take an integer / list for the rows to interpret as header rows. If more than one, interpret as hierarchical columns / MultiIndex.</p> <p dir="auto">Presumably this would also allow you to round-trip Data Frame with hierarchical columns.</p> <p dir="auto">Basically, if you have something spanning two columns, just converts to two cells with the data in the original cell, ending up just like what you need for csv reader.</p>
0
<p dir="auto">to simple windows-maxsize -&gt; page.windows_maxmize() like selenium;</p>
<p dir="auto">Selenium feature: <a href="https://www.selenium.dev/selenium/docs/api/py/webdriver_remote/selenium.webdriver.remote.webdriver.html#selenium.webdriver.remote.webdriver.WebDriver.maximize_window" rel="nofollow">https://www.selenium.dev/selenium/docs/api/py/webdriver_remote/selenium.webdriver.remote.webdriver.html#selenium.webdriver.remote.webdriver.WebDriver.maximize_window</a></p> <p dir="auto">Requested via Slack.</p> <p dir="auto">Scenario: Automate a website and then let the user complete something. Its great if the max possible width/height could be determined so the user has "maximum available viewport".</p> <p dir="auto">But not sure how or if its easy implementable since we in CR e.g. emulate the viewport independent from the window size.</p> <p dir="auto">For Chromium it works already like that:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// @ts-check const playwright = require('playwright'); (async () =&gt; { const browser = await playwright.chromium.launch({ args: [&quot;--start-maximized&quot;], headless: false, }); const context = await browser.newContext({ viewport: null }); const page = await context.newPage(); await page.goto('http://whatsmyuseragent.org/'); await browser.close(); })();"><pre class="notranslate"><span class="pl-c">// <span class="pl-k">@ts</span>-check</span> <span class="pl-k">const</span> <span class="pl-s1">playwright</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">playwright</span><span class="pl-kos">.</span><span class="pl-c1">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">args</span>: <span class="pl-kos">[</span><span class="pl-s">"--start-maximized"</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-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-c1">viewport</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">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-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">'http://whatsmyuseragent.org/'</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>
1
<p dir="auto">The documentation says very little about the <code class="notranslate">priority</code> attribute:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="priority (int): The task priority, a number between 0 and 9. Defaults to the :attr:`priority` attribute."><pre class="notranslate"><code class="notranslate">priority (int): The task priority, a number between 0 and 9. Defaults to the :attr:`priority` attribute. </code></pre></div> <p dir="auto">If you go to the bottom of the following page - <a href="http://docs.celeryproject.org/en/latest/userguide/calling.html" rel="nofollow">http://docs.celeryproject.org/en/latest/userguide/calling.html</a> - you will see:</p> <blockquote> <p dir="auto">priority<br> A number between 0 and 255, where 255 is the highest priority.</p> <p dir="auto">Supported by: RabbitMQ, Redis (priority reversed, 0 is highest).</p> </blockquote> <p dir="auto">So please clarify (and update the documentation):</p> <ul dir="auto"> <li>Which of these documents are telling the right information - the (current) source code, or the docs.celeryproject.org ?</li> <li>How are priorities ordered - does priority=0 mean highest priority, or not? Or it depends on the backend, as the docs page says...</li> </ul> <p dir="auto">Related StackOverflow question: <a href="https://stackoverflow.com/questions/49319834/could-someone-please-clarify-the-task-priority-usage-in-celery-tasks" rel="nofollow">https://stackoverflow.com/questions/49319834/could-someone-please-clarify-the-task-priority-usage-in-celery-tasks</a></p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical enhancement to an existing feature.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed enhancements.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the if the same enhancement was already implemented in the<br> master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Brief Summary</h1> <p dir="auto">Unfortunately Riak's development is discontinued.<br> Last <a href="https://github.com/basho/riak-python-client/commit/91de13a16607cdf553d1a194e762734e3bec4231">commit</a> on the python client's repository was 3 years ago.<br> The Python client doesn't support Python versions &gt; 3.6 which is a problem for us.<br> We need to deprecate it and remove it from the codebase.</p> <h1 dir="auto">Design</h1> <p dir="auto">The first step is to issue a deprecation warning to all of the Riak backend users.<br> I suspect there aren't many.<br> The second step is to remove the backend entirely.</p> <h2 dir="auto">Architectural Considerations</h2> <p dir="auto">None</p> <h2 dir="auto">Proposed Behavior</h2> <p dir="auto">N/A</p> <h2 dir="auto">Proposed UI/UX</h2> <p dir="auto">A <code class="notranslate">DeprecationWarning</code> will be printed to the users.</p> <h2 dir="auto">Diagrams</h2> <p dir="auto">N/A</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">None</p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/include\thrust/detail/allocator/allocator_traits.inl(101): error C2065: 't': undeclared identifier C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/include\thrust/detail/allocator/allocator_traits.inl(101): error C2923: 'std::_Select&lt;__formal&gt;::_Apply': 't' is not a valid template type argument for parameter '&lt;unnamed-symbol&gt;' C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/include\thrust/detail/allocator/allocator_traits.inl(101): error C2062: type 'unknown-type' unexpected &quot;"><pre class="notranslate"><code class="notranslate">C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/include\thrust/detail/allocator/allocator_traits.inl(101): error C2065: 't': undeclared identifier C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/include\thrust/detail/allocator/allocator_traits.inl(101): error C2923: 'std::_Select&lt;__formal&gt;::_Apply': 't' is not a valid template type argument for parameter '&lt;unnamed-symbol&gt;' C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/include\thrust/detail/allocator/allocator_traits.inl(101): error C2062: type 'unknown-type' unexpected " </code></pre></div> <p dir="auto"><a href="https://ci.pytorch.org/jenkins/job/caffe2-builds/job/py2-cuda9.0-cudnn7-windows-trigger-build/65967/" rel="nofollow">https://ci.pytorch.org/jenkins/job/caffe2-builds/job/py2-cuda9.0-cudnn7-windows-trigger-build/65967/</a></p> <p dir="auto">In this case it failed while <code class="notranslate">Building NVCC (Device) object caffe2/CMakeFiles/torch.dir/__/aten/src/THC/generated/torch_generated_THCTensorMaskedShort.cu.obj</code></p> <p dir="auto">It doesn't seem to happen reliably which is very mysterious.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peterjc123/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peterjc123">@peterjc123</a></p>
<p dir="auto">Kind of similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="486963699" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/25389" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/25389/hovercard" href="https://github.com/pytorch/pytorch/issues/25389">#25389</a></p> <p dir="auto">Sometimes our Eigen build fails this way:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C2993: 'Derived': illegal type for non-type template parameter '__formal' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C2065: 'RhsType': undeclared identifier C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C2923: 'std::_Select&lt;__formal&gt;::_Apply': 'RhsType' is not a valid template type argument for parameter '&lt;unnamed-symbol&gt;' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C2144: syntax error: 'unknown-type' should be preceded by ')' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C2144: syntax error: 'unknown-type' should be preceded by ';' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(367): error C2062: type 'bool' unexpected C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(369): error C2059: syntax error: ')' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(371): error C2143: syntax error: missing ';' before '{' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(371): error C2447: '{': missing function header (old-style formal list?)"><pre class="notranslate"><code class="notranslate">C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C2993: 'Derived': illegal type for non-type template parameter '__formal' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C2065: 'RhsType': undeclared identifier C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C2923: 'std::_Select&lt;__formal&gt;::_Apply': 'RhsType' is not a valid template type argument for parameter '&lt;unnamed-symbol&gt;' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C2144: syntax error: 'unknown-type' should be preceded by ')' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(366): error C2144: syntax error: 'unknown-type' should be preceded by ';' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(367): error C2062: type 'bool' unexpected C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(369): error C2059: syntax error: ')' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(371): error C2143: syntax error: missing ';' before '{' C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\third_party\eigen\Eigen\src/LU/InverseImpl.h(371): error C2447: '{': missing function header (old-style formal list?) </code></pre></div> <p dir="auto">It doesn't seem to reliably repro.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/seemethere/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/seemethere">@seemethere</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peterjc123/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peterjc123">@peterjc123</a></p>
1
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.10</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function Foo() { console.log(new.target); } new Foo();"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-smi">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-k">new</span><span class="pl-kos">.</span><span class="pl-k">target</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-smi">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">When targeting ES6, this should compile without an error.</p> <p dir="auto"><code class="notranslate">new.target</code> is an <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target" rel="nofollow">obscure bit of ES6</a>, but it is there, for example running the code in an <a href="https://jsfiddle.net/kitsonk/2qa0n8m3/2/" rel="nofollow">ES6 browser returns what is expected</a> in that <code class="notranslate">new.target === Foo</code>. When it is just <code class="notranslate">Foo()</code> without <code class="notranslate">new</code> then <code class="notranslate">new.target === undefined</code>.</p> <p dir="auto">While it maybe challenging to come up with an emit that works for ES5, it should be at least supported when targeting ES6.</p> <p dir="auto">I suspect and emit for ES6 might be something like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function Foo() { var _newTarget = this === window ? undefined : this &amp;&amp; this.constructor; console.log(_newTarget); }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">_newTarget</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span> <span class="pl-c1">===</span> <span class="pl-smi">window</span> ? <span class="pl-c1">undefined</span> : <span class="pl-smi">this</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">constructor</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">_newTarget</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">Compiles as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ tsc --target es6 test.ts test.ts(2,18): error TS1109: Expression expected."><pre class="notranslate"><code class="notranslate">$ tsc --target es6 test.ts test.ts(2,18): error TS1109: Expression expected. </code></pre></div>
<p dir="auto">There isn't a lot in the current ES6 spec draft, but it seems to indicate the constructor object that is in the process of being <code class="notranslate">new</code>'d at runtime.</p>
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>.):<br> Yes</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <ul dir="auto"> <li>glusterfs</li> <li>volume</li> <li>provisioning</li> </ul> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):<br> 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;4&quot;, GitVersion:&quot;v1.4.3&quot;, GitCommit:&quot;4957b090e9a4f6a68b4a40375408fdc74a212260&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-10-16T06:36:33Z&quot;, GoVersion:&quot;go1.7.1&quot;, Compiler:&quot;gc&quot;, Platform:&quot;darwin/amd64&quot;} Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.1&quot;, GitCommit:&quot;33cf7b9acbb2cb7c9c72a10d6636321fb180b159&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-10-10T18:13:36Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.3", GitCommit:"4957b090e9a4f6a68b4a40375408fdc74a212260", GitTreeState:"clean", BuildDate:"2016-10-16T06:36:33Z", GoVersion:"go1.7.1", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.1", GitCommit:"33cf7b9acbb2cb7c9c72a10d6636321fb180b159", GitTreeState:"clean", BuildDate:"2016-10-10T18:13:36Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"} </code></pre></div> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: On-prem VSphere</li> <li><strong>OS</strong> (e.g. from /etc/os-release): Ubuntu 16.04 LTS</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>: Kubeadm</li> <li><strong>Others</strong>:</li> <li>Heketi</li> <li>GlusterFS</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> When provisioning a GlusterFS volume via PVC, GlusterFS volume is created but with a durability_type of "None" instead of "replicate" according to:</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/kubernetes/kubernetes/blob/4e393fadf3df60bc15696e9d965f635fefb2a6e9/pkg/volume/glusterfs/glusterfs.go#L60">kubernetes/pkg/volume/glusterfs/glusterfs.go</a> </p> <p class="mb-0 color-fg-muted"> Line 60 in <a data-pjax="true" class="commit-tease-sha" href="/kubernetes/kubernetes/commit/4e393fadf3df60bc15696e9d965f635fefb2a6e9">4e393fa</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="L60" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="60"></td> <td id="LC60" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">durabilitytype</span> <span class="pl-c1">=</span> <span class="pl-s">"replicate"</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">When doing a <code class="notranslate">heketi volume info</code> on the created PV, this is the result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[root@415dd3a6d47d /]# heketi-cli volume info 2f85f8c8c7eabf2daf3b50065bf3160d Name: vol_2f85f8c8c7eabf2daf3b50065bf3160d Size: 5 Volume Id: 2f85f8c8c7eabf2daf3b50065bf3160d Cluster Id: 0ea05409eedd61cf1678d2e8693bdae8 Mount: 10.130.7.153:vol_2f85f8c8c7eabf2daf3b50065bf3160d Mount Options: backup-volfile-servers= Durability Type: none"><pre class="notranslate"><code class="notranslate">[root@415dd3a6d47d /]# heketi-cli volume info 2f85f8c8c7eabf2daf3b50065bf3160d Name: vol_2f85f8c8c7eabf2daf3b50065bf3160d Size: 5 Volume Id: 2f85f8c8c7eabf2daf3b50065bf3160d Cluster Id: 0ea05409eedd61cf1678d2e8693bdae8 Mount: 10.130.7.153:vol_2f85f8c8c7eabf2daf3b50065bf3160d Mount Options: backup-volfile-servers= Durability Type: none </code></pre></div> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">Durability Type should be <code class="notranslate">replicate</code>.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <ul dir="auto"> <li>Create a default storageclass for glusterfs that points to heketi's REST server</li> <li>In your PVC, use glusterfs StorageClass</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" apiVersion: v1 kind: PersistentVolumeClaim metadata: name: glusterclaim-1 annotations: volume.beta.kubernetes.io/storage-class: &quot;glusterfs&quot; spec: accessModes: - ReadWriteOnce resources: requests: storage: &quot;5Gi&quot;"><pre class="notranslate"><code class="notranslate"> apiVersion: v1 kind: PersistentVolumeClaim metadata: name: glusterclaim-1 annotations: volume.beta.kubernetes.io/storage-class: "glusterfs" spec: accessModes: - ReadWriteOnce resources: requests: storage: "5Gi" </code></pre></div> <ul dir="auto"> <li>After doing a <code class="notranslate">kubectl get pv</code>, notice that the PV is created and bounded to the claim</li> <li>Connect to the heketi server and do a <code class="notranslate">heketi volume list</code> and do a <code class="notranslate">heketi volume info</code> on the newly created volume.</li> <li>You should notice that the volume is created with a Durability Type of 'none'</li> </ul> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">Broken out from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40954231" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1007" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/1007/hovercard" href="https://github.com/kubernetes/kubernetes/pull/1007">#1007</a>, which was unwieldy.</p> <p dir="auto">A configuration system needs to be able to diff a new desired state generated from the configuration with the current desired state registered with the system, in a generic, extensible manner, in order to determine which objects require updates (as well as potentially what kinds of updates). In order to do this, it needs uniform structure across all API objects, clean separation of input and output values, and clean differentiation of user-provided values and automatically determined values, including default values.</p> <p dir="auto">Currently, our API objects contain:</p> <ul dir="auto"> <li>(all, even lists which is questionable) JSONBase, which includes Kind, ID, CreationTimestamp, SelfLink, ResourceVersion, and APIVersion</li> <li>(Pod, ReplicationController, Service) Labels</li> <li>(Pod, ReplicationController) DesiredState</li> <li>(Pod only) CurrentState</li> </ul> <p dir="auto">In JSONBase, only ID is explicitly provided by the client and only ResourceVersion is mutable.</p> <p dir="auto">In Pod, DesiredState and CurrentState use the same schema, mixing input and output fields (Manifest, RestartPolicy, Host, HostIP, PodIP, Info).</p> <p dir="auto">Service lacks DesiredState and CurrentState.</p> <p dir="auto">ReplicationController lacks CurrentState (though that may change with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="39314912" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/736" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/736/hovercard" href="https://github.com/kubernetes/kubernetes/issues/736">#736</a>).</p> <p dir="auto">Proposals:</p> <ol dir="auto"> <li>Nest JSONBase in a named field, such as Metadata, to more coarsely bucket them within the objects.</li> <li>Move Labels to JSONBase, so that they're in the same position in every object, together with other generic object metadata. Split Labels into FinalLabels and DynamicLabels. FinalLabels could only be specified at creation time, and would not be mutable. DynamicLabels would be applied at run time and would be ignored in the reconciliation diff. If people thought it would be useful, we could introduce a convenience field (e.g., Labels) that presented a merged view. An alternative would be to represent finality as a bit on each label.</li> <li>Duplicate DesiredState into PrimaryDesiredState, FallbackDesiredState, and DesiredState, and add these to every object. PrimaryDesiredState would be the state set from configuration, and would be the only part of the objects diff'ed by the configuration reconciliation process. FallbackDesiredState would be set by automated processes, such as default values provided by configuration and deployment tools, default values initialized by apiserver itself, values filled in by other automation systems such as auto-scalers (e.g., the replicas field in replicationController), and so on. The PrimaryDesiredState values would always override the FallbackDesiredState values (called shadow values in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40954231" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1007" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/1007/hovercard" href="https://github.com/kubernetes/kubernetes/pull/1007">#1007</a>). DesiredState would present a merged view for components that needed to act upon the full DesiredState. Again, an alternative would be to keep track of whether values should be diff'ed with a bit on each field. That has at least one disadvantage, in that automatically initialized values would be lost in the case that they were overwritten by configuration that was then later reverted. However, it may be simpler for components that don't care about the distinction and may be more space efficient, depending on our internal representation.</li> <li>Add CurrentState to all objects that are lacking it.</li> <li>Use different representations for desired and current state in Pod, appropriately divide the fields between them, and merge ContainerManifest into the new PodDesiredState type.</li> </ol>
0
<p dir="auto">The scipy curve_fit documentation says that xdata can be an object:</p> <blockquote> <p dir="auto">xdataarray_like or object<br> The independent variable where the data is measured. Should usually be an M-length sequence or an (k,M)-shaped array for functions with k predictors, <strong>but can actually be any object.</strong></p> </blockquote> <p dir="auto">(emphasis mine)</p> <p dir="auto">This is currently not respected. Previously, anything could be passed in, but with 1.2.3, it appears that a numpy array is assumed and xdata is modified to float64.</p> <p dir="auto"><code class="notranslate">xdata = xdata.astype(float)</code></p> <p dir="auto">The xdata should not be modified by curve_fit since it's not, in any way, meant for curve_fit to consume. It's meant for our models. These may rely on the data types of the xdata, possibly non-numeric. Even for numeric models, casting to float breaks models that rely on the data types passed to them, or would require possibly lossy conversions back.</p> <p dir="auto">This is a regression that breaks all models that use something besides float64 numpy arrays or need to preserve data types for their models to work.</p> <h4 dir="auto">Reproducing code example:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from scipy.optimize import curve_fit class ExampleObject(object): def __init__(self, a=5, b=3.0): self.a = 5.0 self.b = 3.0 def model(xdata, k): return xdata.a * k values = range(10) answer = curve_fit( model, # Function to fit the data to xdata=ExampleObject(), ydata=values, p0=[1.0], ) "><pre class="notranslate"><code class="notranslate">from scipy.optimize import curve_fit class ExampleObject(object): def __init__(self, a=5, b=3.0): self.a = 5.0 self.b = 3.0 def model(xdata, k): return xdata.a * k values = range(10) answer = curve_fit( model, # Function to fit the data to xdata=ExampleObject(), ydata=values, p0=[1.0], ) </code></pre></div> <h4 dir="auto">Error message:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File &quot;/usr/local/lib/python2.7/site-packages/scipy/optimize/minpack.py&quot;, line 716, in curve_fit xdata = xdata.astype(float) AttributeError: 'ExampleObject' object has no attribute 'astype'"><pre class="notranslate"><code class="notranslate"> File "/usr/local/lib/python2.7/site-packages/scipy/optimize/minpack.py", line 716, in curve_fit xdata = xdata.astype(float) AttributeError: 'ExampleObject' object has no attribute 'astype' </code></pre></div> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="('1.2.3', '1.16.6', sys.version_info(major=2, minor=7, micro=17, releaselevel='final', serial=0))"><pre class="notranslate"><code class="notranslate">('1.2.3', '1.16.6', sys.version_info(major=2, minor=7, micro=17, releaselevel='final', serial=0)) </code></pre></div>
<p dir="auto">In the <a href="https://warrenweckesser.github.io/czi/scipy-2019-czi-proposal-revised.pdf" rel="nofollow">CZI Proposal</a>, we wrote:</p> <blockquote> <p dir="auto">The continuous distributions in SciPy all have a method for fitting the distribution to data using<br> the method of maximum likelihood estimation (MLE). The proposed enhancements are:</p> <ul dir="auto"> <li>Where possible, use an analytical formula rather than numerical optimization for greater<br> speed and accuracy<br> ...</li> </ul> </blockquote> <p dir="auto">This is part of our effort to address the <a href="https://docs.scipy.org/doc/scipy/reference/roadmap.html#statistics-enhancements" rel="nofollow">roadmap item</a> "Improve the options for fitting a probability distribution to data".</p> <p dir="auto">One of the best sources I've found (via a <a href="https://www.itl.nist.gov/div898/handbook/eda/section3/eda366.htm" rel="nofollow">NIST Engineering Statistics Handbook</a>) is the Parameter Estimation sections from:<br> <a href="http://personalpages.to.infn.it/~zaninett/pdf/statistical-distributions.pdf" rel="nofollow">Evans, Hastings, and Peacock (2000), <em>Statistical Distributions</em>, 3rd. Ed., John Wiley and Sons.</a></p> <p dir="auto">Any other sources that are easily accessible?</p> <p dir="auto">Also, for method of moments (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="584866490" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/11695" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/11695/hovercard" href="https://github.com/scipy/scipy/pull/11695">gh-11695</a>), I could write a program that tries to solve for fitting formulas (from the formulas for the moments) using SymPy. I don't think that would work as well for MLE, though. Might not even get anything new for MM.</p> <p dir="auto">Given the formulas, this should be pretty straightforward work: just override the <code class="notranslate">fit</code> methods of the distributions defined in <code class="notranslate">/scipy/stats/_continuous_distns.py</code>, following existing examples (e.g. <code class="notranslate">beta_gen</code>) for extending documentation and any other conventions. For tests, I suppose we could mainly compare against the generic implementation. In cases where the generic implementation isn't working very well, we could check the partial derivatives of the likelihood function?</p> <p dir="auto">If you have any thoughts / words of wisdom before we get started, please let us know here.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fletcheaston/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fletcheaston">@fletcheaston</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/swallan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/swallan">@swallan</a> I think this is next.</p> <p dir="auto"><em>Update:</em><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/swallan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/swallan">@swallan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/WarrenWeckesser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/WarrenWeckesser">@WarrenWeckesser</a> A simple but really useful script for generating first-order conditions is <a href="https://gist.github.com/mdhaber/1861b0c967e315e0830b347e988b3a27">here</a>. Now it can (sometimes) solve for a variable in terms of the rest.</p> <table role="table"> <thead> <tr> <th align="center"><strong>Continuous distributions</strong></th> <th align="left"><strong>Current status of fit override</strong></th> <th align="right"><strong>Page Number of MLE (Evans)</strong></th> </tr> </thead> <tbody> <tr> <td align="center">laplace</td> <td align="left">merged: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="610612454" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/11988" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/11988/hovercard" href="https://github.com/scipy/scipy/pull/11988">gh-11988</a>, good</td> <td align="right">124</td> </tr> <tr> <td align="center">rayleigh</td> <td align="left">merged: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="616315009" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/12097" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/12097/hovercard" href="https://github.com/scipy/scipy/pull/12097">gh-12097</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1384871717" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/17090" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/17090/hovercard" href="https://github.com/scipy/scipy/pull/17090">gh-17090</a>, good</td> <td align="right">175</td> </tr> <tr> <td align="center">logistic</td> <td align="left">merged: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="681357163" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/12738" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/12738/hovercard" href="https://github.com/scipy/scipy/pull/12738">gh-12738</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1391808086" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/17117" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/17117/hovercard" href="https://github.com/scipy/scipy/pull/17117">gh-17117</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1632504876" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/18177" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/18177/hovercard" href="https://github.com/scipy/scipy/pull/18177">gh-18177</a>, almost good, but should use <code class="notranslate">root_scalar</code></td> <td align="right">130</td> </tr> <tr> <td align="center">pareto</td> <td align="left">merged <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1129071572" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/15567" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/15567/hovercard" href="https://github.com/scipy/scipy/pull/15567">gh-15567</a>, good</td> <td align="right">149</td> </tr> <tr> <td align="center">invgauss, wald</td> <td align="left">merged: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="653748802" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/12514" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/12514/hovercard" href="https://github.com/scipy/scipy/pull/12514">gh-12514</a>, further investigation needed</td> <td align="right">121</td> </tr> <tr> <td align="center">gumbel_r, gumbel_l</td> <td align="left">merged: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="681356343" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/12737" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/12737/hovercard" href="https://github.com/scipy/scipy/pull/12737">gh-12737</a>, good</td> <td align="right">101</td> </tr> <tr> <td align="center">powerlaw</td> <td align="left">merged: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="738745581" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/13053" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/13053/hovercard" href="https://github.com/scipy/scipy/pull/13053">gh-13053</a>, good</td> <td align="right">159</td> </tr> <tr> <td align="center">nakagami</td> <td align="left">see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="503737984" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/10908" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/10908/hovercard" href="https://github.com/scipy/scipy/issues/10908">gh-10908</a></td> <td align="right">-</td> </tr> <tr> <td align="center">vonmises</td> <td align="left">merged: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1490487864" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/17585" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/17585/hovercard" href="https://github.com/scipy/scipy/pull/17585">gh-17585</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1590935940" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/18013" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/18013/hovercard" href="https://github.com/scipy/scipy/pull/18013">gh-18013</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1619559232" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/18128" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/18128/hovercard" href="https://github.com/scipy/scipy/pull/18128">gh-18128</a>. Almost good; see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1619559232" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/18128" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/18128/hovercard" href="https://github.com/scipy/scipy/pull/18128">gh-18128</a>.</td> <td align="right">192</td> </tr> <tr> <td align="center">weibull_min, weibull_max</td> <td align="left">see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="594717349" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/11806" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/11806/hovercard" href="https://github.com/scipy/scipy/issues/11806">gh-11806</a></td> <td align="right">196</td> </tr> <tr> <td align="center">asymmetric laplace</td> <td align="left">awaiting PR</td> <td align="right"><a href="https://www.dropbox.com/s/4tyrqjr6708yhh1/MLE%20-%20Asymmetric%20Laplace.pdf?dl=0" rel="nofollow">notes</a></td> </tr> <tr> <td align="center">genextreme</td> <td align="left">see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="467404132" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/10446" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/10446/hovercard" href="https://github.com/scipy/scipy/issues/10446">gh-10446</a></td> <td align="right">-</td> </tr> </tbody> </table> <p dir="auto">Other distributions that have overridden <code class="notranslate">fit</code> method:<br> <code class="notranslate">norm</code> - looks good, nothing to do here<br> <code class="notranslate">beta</code> - investigate fitting <code class="notranslate">loc</code> and <code class="notranslate">scale</code>? Adjust inequality conditions for <code class="notranslate">FitDataError</code>.<br> <code class="notranslate">expon</code> - works perfectly, AFAICT<br> <code class="notranslate">weibull_min</code> - should implement analytical solution when <code class="notranslate">loc</code> is fixed<br> <code class="notranslate">gamma</code> - look into fitting when <code class="notranslate">loc</code> is not fixed. Adjust inequality conditions for <code class="notranslate">FitDataError</code>.<br> <code class="notranslate">lognorm</code> - merged: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1339112947" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/16839" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/16839/hovercard" href="https://github.com/scipy/scipy/pull/16839">gh-16839</a>; works quite well. I'd rather not work on it more, but others are welcome to.<br> <code class="notranslate">uniform</code> - works perfectly, AFAICT</p>
0
<p dir="auto">Some element set display is <code class="notranslate">inline-block</code>, when use .visible-xx or .hidden-xx it will replace to <code class="notranslate">block</code>. and i found that bootstrap add tr,td,th style for the issues. I suggest use <code class="notranslate">display:none</code> only, like this::</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" @media (max-width: 767px) { .visible-sm, .visible-md, .visible-lg, .hidden-xs{ display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-xs, .visible-md, .visible-lg, .hidden-sm{ display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-xs, .visible-sm, .visible-lg, .hidden-md{ display: none !important; } } @media (min-width: 1200px) { .visible-xs, .visible-sm, .visible-md, .hidden-lg{ display: none !important; } }"><pre class="notranslate"> <span class="pl-k">@media</span> (<span class="pl-c1">max-width</span><span class="pl-kos">:</span> <span class="pl-c1">767<span class="pl-smi">px</span></span>) { .<span class="pl-c1">visible-sm</span><span class="pl-kos">,</span> .<span class="pl-c1">visible-md</span><span class="pl-kos">,</span> .<span class="pl-c1">visible-lg</span><span class="pl-kos">,</span> .<span class="pl-c1">hidden-xs</span>{ <span class="pl-c1">display</span><span class="pl-kos">:</span> none <span class="pl-k">!important</span>; } } <span class="pl-k">@media</span> (<span class="pl-c1">min-width</span><span class="pl-kos">:</span> <span class="pl-c1">768<span class="pl-smi">px</span></span>) <span class="pl-c1">and</span> (<span class="pl-c1">max-width</span><span class="pl-kos">:</span> <span class="pl-c1">991<span class="pl-smi">px</span></span>) { .<span class="pl-c1">visible-xs</span><span class="pl-kos">,</span> .<span class="pl-c1">visible-md</span><span class="pl-kos">,</span> .<span class="pl-c1">visible-lg</span><span class="pl-kos">,</span> .<span class="pl-c1">hidden-sm</span>{ <span class="pl-c1">display</span><span class="pl-kos">:</span> none <span class="pl-k">!important</span>; } } <span class="pl-k">@media</span> (<span class="pl-c1">min-width</span><span class="pl-kos">:</span> <span class="pl-c1">992<span class="pl-smi">px</span></span>) <span class="pl-c1">and</span> (<span class="pl-c1">max-width</span><span class="pl-kos">:</span> <span class="pl-c1">1199<span class="pl-smi">px</span></span>) { .<span class="pl-c1">visible-xs</span><span class="pl-kos">,</span> .<span class="pl-c1">visible-sm</span><span class="pl-kos">,</span> .<span class="pl-c1">visible-lg</span><span class="pl-kos">,</span> .<span class="pl-c1">hidden-md</span>{ <span class="pl-c1">display</span><span class="pl-kos">:</span> none <span class="pl-k">!important</span>; } } <span class="pl-k">@media</span> (<span class="pl-c1">min-width</span><span class="pl-kos">:</span> <span class="pl-c1">1200<span class="pl-smi">px</span></span>) { .<span class="pl-c1">visible-xs</span><span class="pl-kos">,</span> .<span class="pl-c1">visible-sm</span><span class="pl-kos">,</span> .<span class="pl-c1">visible-md</span><span class="pl-kos">,</span> .<span class="pl-c1">hidden-lg</span>{ <span class="pl-c1">display</span><span class="pl-kos">:</span> none <span class="pl-k">!important</span>; } }</pre></div> <p dir="auto">and bootstrap can remove all .visible-xx and .hidden-xx before.</p>
<p dir="auto">related to issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16856611" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/8500" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/8500/hovercard" href="https://github.com/twbs/bootstrap/pull/8500">#8500</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14075731" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/7808" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/7808/hovercard" href="https://github.com/twbs/bootstrap/issues/7808">#7808</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6609454" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/4929" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/4929/hovercard" href="https://github.com/twbs/bootstrap/issues/4929">#4929</a> ; using <code class="notranslate">.hidden-sm</code> to hide span within <code class="notranslate">.nav &gt; li &gt; a</code> . Because class is <code class="notranslate">display: block</code> above -sm then text wraps to new line. Would you consider <code class="notranslate">.hidden-*</code> classes to be <code class="notranslate">display: inline-block</code> instead ?</p> <p dir="auto">Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... <a href="http://jsfiddle.net/jholl/P86yf/" rel="nofollow">http://jsfiddle.net/jholl/P86yf/</a></p>
1
<p dir="auto">This might be considered a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116720211" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/357" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/357/hovercard" href="https://github.com/flutter/flutter/issues/357">#357</a> but it's not exactly the same issue.</p> <p dir="auto">I'd like to expose my application to the global share menu and to receive data from other applications, not only browsers.</p> <p dir="auto">The OS's share menu usually allows sharing data between apps like simple strings or even images.<br> Is it planned for Flutter?</p>
<p dir="auto">OEM widget:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5479/11884756/e60f455e-a4d0-11e5-8e6f-ae6a69da3730.png"><img src="https://cloud.githubusercontent.com/assets/5479/11884756/e60f455e-a4d0-11e5-8e6f-ae6a69da3730.png" alt="screenshot_20151217-150821" style="max-width: 100%;"></a></p> <p dir="auto">Flutter widget:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5479/11884759/efa32b9e-a4d0-11e5-9f06-4bc219817223.png"><img src="https://cloud.githubusercontent.com/assets/5479/11884759/efa32b9e-a4d0-11e5-9f06-4bc219817223.png" alt="screenshot_20151217-150831" style="max-width: 100%;"></a></p> <p dir="auto">Couple of things I noticed:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> dates are a darker color in OEM version</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> left and right arrows in OEM version</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> month name has more top padding in OEM version</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> the day abbreviations are lighter, and thinner, in OEM version</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> "cancel" seems closer to "ok" in the OEM version</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> the year is in a different place</li> </ul> <p dir="auto">(also, the assumption is that the OEM widget follows the material design spec. Not sure if that's true? <a href="https://www.google.com/design/spec/components/pickers.html#pickers-usage" rel="nofollow">https://www.google.com/design/spec/components/pickers.html#pickers-usage</a> looks more like the OEM version at a quick glance)</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=david_syer" rel="nofollow">Dave Syer</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9367?redirect=false" rel="nofollow">SPR-9367</a></strong> and commented</p> <p dir="auto">It is very difficult (impossible) to handle a 401 response in the RestTemplate with default settings (Documentation?). In fact it is possible, but you have to supply an error handler <strong>and</strong> a request factory. The error handler was obvious, but the problem is that the default request factory uses java.net which can throw HttpRetryException when you try to look at the status code of the response (despite it being obviously available). The solution is to use HttpComponentsClientHttpRequestFactory. E.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="template.setRequestFactory(new HttpComponentsClientHttpRequestFactory()); template.setErrorHandler(new DefaultResponseErrorHandler() { public boolean hasError(ClientHttpResponse response) throws IOException { HttpStatus statusCode = response.getStatusCode(); return statusCode.series() == HttpStatus.Series.SERVER_ERROR; } });"><pre class="notranslate"><code class="notranslate">template.setRequestFactory(new HttpComponentsClientHttpRequestFactory()); template.setErrorHandler(new DefaultResponseErrorHandler() { public boolean hasError(ClientHttpResponse response) throws IOException { HttpStatus statusCode = response.getStatusCode(); return statusCode.series() == HttpStatus.Series.SERVER_ERROR; } }); </code></pre></div> <p dir="auto">With these settings then a 401 JSON response will be extracted and converted nicely if you just use <code class="notranslate">template.exchange()</code> expecting a JSON response in the 200 case. This is not exactly clear from the user guide, and HttpComponentsClientHttpRequestFactory isn't even mentioned - the deprecated CommonsClientHttpRequestFactory is (I'm looking at <a href="http://static.springsource.org/spring/docs/current/spring-framework-reference/htmlsingle/spring-framework-reference.html" rel="nofollow">http://static.springsource.org/spring/docs/current/spring-framework-reference/htmlsingle/spring-framework-reference.html</a>).</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.1</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398226894" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/21321" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/21321/hovercard" href="https://github.com/spring-projects/spring-framework/issues/21321">#21321</a> RestTemplate - providing custom ResponseErrorHandler does not prevent an error with http 401 responses (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/24ffa5a706d1b8538ff1359c635905f0f9af9fb5/hovercard" href="https://github.com/spring-projects/spring-framework/commit/24ffa5a706d1b8538ff1359c635905f0f9af9fb5"><tt>24ffa5a</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sgarlatm" rel="nofollow">Matthew Sgarlata</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5931?redirect=false" rel="nofollow">SPR-5931</a></strong> and commented</p> <p dir="auto">The dojo framework creates form widgets using a syntax like this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;select dojoType=&quot;dijit.form.FilteringSelect&quot; id=&quot;setvaluetest2&quot; name=&quot;state1&quot; autoComplete=&quot;false&quot; invalidMessage=&quot;Invalid state name&quot; onChange=&quot;dojo.byId('oc1').value=arguments[0]&quot;"><pre class="notranslate"><code class="notranslate"> &lt;select dojoType="dijit.form.FilteringSelect" id="setvaluetest2" name="state1" autoComplete="false" invalidMessage="Invalid state name" onChange="dojo.byId('oc1').value=arguments[0]" </code></pre></div> <p dir="auto">As far as I can tell, it's impossible to do stuff like this with the Spring &lt;form&gt; tags because there is no way to specify non-standard HTML attributes. An approach I've used for my own custom tags is to add a catch-all attribute called "attributes" so the syntax would look something like</p> <p dir="auto">&lt;form:select id="setvaluetest2" attributes='dojoType="dijit.form.FilteringSelect" invalidMessage="Invalid state name" ... etc</p> <hr> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/15637/SPR-5931-patch-draft.txt" rel="nofollow">SPR-5931-patch-draft.txt</a> (<em>4.54 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398097500" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10782" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10782/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10782">#10782</a> Upgrade the Spring JSP tag libraries to JSP 2.0 (<em><strong>"depends on"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398095919" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10543" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10543/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10543">#10543</a> form.tld - Add support for custom attributes (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/982ece595c5dc0f9f0c8b6c0c37f2db8539790a8/hovercard" href="https://github.com/spring-projects/spring-framework/commit/982ece595c5dc0f9f0c8b6c0c37f2db8539790a8"><tt>982ece5</tt></a></p> <p dir="auto">1 votes, 3 watchers</p>
0
<h3 dir="auto">Current Behavior:</h3> <p dir="auto"><code class="notranslate">npm install &lt;pkg&gt;</code> runs pre and post install scripts specified in <code class="notranslate">&lt;pkg&gt;</code>.</p> <h3 dir="auto">Expected Behavior:</h3> <p dir="auto">Either pre and post install scripts must not run or this should be explicitly documented in the npm-install page. Also documentation on npm-scripts page is confusing with it stating that lifecycle scripts are run on <code class="notranslate">npm install</code> and <code class="notranslate">npm install -g &lt;pkg&gt;</code> (no mention of <code class="notranslate">npm install &lt;pkg&gt;</code>)</p> <h3 dir="auto">Environment:</h3> <ul dir="auto"> <li>OS: Windows 10 x64</li> <li>Node: 14.15.4</li> <li>npm: 7.6.3</li> </ul>
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto"><a href="https://github.com/npm/cli/files/6631599/tst.zip">tst.zip</a></p> <p dir="auto">first just do</p> <p dir="auto">npm install</p> <p dir="auto">on the root dir</p> <p dir="auto">if you look then in node_modules you don't have an 'uppy' or 'uppy-angular' or '<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/biacsics/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/biacsics">@biacsics</a>' (thats good)</p> <p dir="auto">the try</p> <p dir="auto">npm install ./child</p> <p dir="auto">npm ERR! code ERESOLVE<br> npm ERR! ERESOLVE unable to resolve dependency tree<br> npm ERR!<br> npm ERR! Found: @angular/[email protected]<br> npm ERR! child/node_modules/@angular/common<br> npm ERR! peer @angular/common@"^7.2.0" from [email protected]<br> npm ERR! child/node_modules/uppy-angular<br> npm ERR! uppy-angular@"^0.1.4" from @servoy/[email protected]<br> npm ERR! child<br> npm ERR! @servoy/[email protected]<br> npm ERR! node_modules/@servoy/servoyextracomponents<br> npm ERR! @servoy/servoyextracomponents@"file:child" from the root project<br> npm ERR!<br> npm ERR! Could not resolve dependency:<br> npm ERR! peer @angular/common@"&gt;=9.0.0" from @biacsics/[email protected]<br> npm ERR! child/node_modules/@biacsics/ng-canvas-gauges<br> npm ERR! @biacsics/ng-canvas-gauges@"^6.0.7" from @servoy/[email protected]<br> npm ERR! child<br> npm ERR! @servoy/[email protected]<br> npm ERR! node_modules/@servoy/servoyextracomponents<br> npm ERR! @servoy/servoyextracomponents@"file:child" from the root project<br> npm ERR!</p> <p dir="auto">so it wants to have an angular/<a href="mailto:[email protected]">[email protected]</a> (from the uppy lib)</p> <p dir="auto">i am not sure why it also reports then @biacsics/ng-canvas-gauges becaus ethat is a &gt;=9.0 and that should be fine thats not the problem<br> the problem i guess is the root angular itself which is fixed to 12.0.3 (i kind of expect that error the be seen)</p> <p dir="auto">if you do then</p> <p dir="auto">npm install ./child --force</p> <p dir="auto">now in the root module you do have an "uppy" and "<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/UPPY/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/UPPY">@UPPY</a>" suddenly there but not the rest what i expect to also have installed there</p> <p dir="auto">but if i look into the child i see a node_modules then i see there suddenly <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/biacsics/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/biacsics">@biacsics</a> and uppy-angular why are these 2 there but the other depedencies of those are in the root?</p> <p dir="auto">but that is not the the biggest problem</p> <p dir="auto">in the childs/node_modules you also see an <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/angular/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/angular">@angular</a>\core and <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/angular/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/angular">@angular</a>\common<br> and you kind of expect that because of the error above and because of the --force those are version 7.2.16<br> but no, what is in there is suddenly the latest angular thats at this time 12.0.4 (root has 12.0.3)</p> <p dir="auto">why does that happen in force mode?<br> What i want is that nothing of angular is installed (not a newer or a older version). But i would conceptually understand better if an older version was installed...</p> <p dir="auto">but only when i use instead of --force:</p> <p dir="auto">npm install .\child --legacy-peer-deps</p> <p dir="auto">then everything is working as i expect</p> <p dir="auto">everything is installed into the root node_modules and no duplicate peers are installed.</p> <p dir="auto">So these scenario's which will happen constantly because of all the npm packages that are out there that are not always actively maintained which can have peer depedencies pointing to older stuff<br> will only be able to work if you use --legacy-peer-deps?<br> But the name "legacy" means its something that will be depricated, shouldn't be used..<br> But its kind of crucial to work with a lot of packages. or i have to form them all and make sure to update all the peers constantly...</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">the expected behavior is kind of the --legacy-peer-deps<br> thats how i want it to work or need it to work<br> For me it can never install 2 angulars because that will cause many problems in angular apps</p> <p dir="auto">But i guess you could say that at least the expected behavior that it would have installed angular 7.x not the latest 12.x</p> <p dir="auto">But that wouldn't really give me the solution i want, and that is that it never installs a conflicting peer dependency, if there is one the main package.json file is always leading</p> <h3 dir="auto">Steps To Reproduce</h3> <p dir="auto">see the above steps and the attached zip.</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: Windows 10</li> <li>Node: v16.2.0</li> <li>npm: 7.16.0</li> </ul>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.1 - newest</li> </ul> <h3 dir="auto">Step to reproduce this issue</h3> <ol dir="auto"> <li></li> </ol> <p dir="auto">String value = null;<br> RpcContext.getContext().getAttachments().put("demokey", value)<br> 2.<br> then invoke one method will NullPointException</p> <p dir="auto">**The Exception reason:<br> In RpcContextFilter.java,public void filter(ClientRequestContext requestContext) throws IOException<br> for (Map.Entry&lt;String, String&gt; entry : RpcContext.getContext().getAttachments().entrySet()) {<br> if (entry.getValue().contains(",") || entry.getValue().contains("=")</p> <p dir="auto">the entry.getValue not judge null!!**</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">It would be nice if keybindings.json added a warning (i.e yellow underscore) on a keybinding if it detects it is a duplicate with an existing keybinding.<br> Thanks</p>
<p dir="auto">If I try to install the extension, vscode asks to restart, then after restarting I see an "issue" at the bottom left of the vscode window.</p> <p dir="auto">[c:/Program Files (x86)/Microsoft VS Code/resources/app/extensions/csharp-o]: Cannot read file c:/Program Files (x86)/Microsoft VS Code/resources/app/extensions/csharp-o/package.json: ENOENT: no such file or directory, open 'c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\csharp-o\package.json'</p> <p dir="auto">This also breaks the install system, as the extension is half installed, I had to remove the extensions folder to fix that.</p>
0
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="f(x::T) where T = 1 hasmethod(f, Tuple{T} where T)"><pre class="notranslate"><span class="pl-en">f</span>(x<span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-k">where</span> T <span class="pl-k">=</span> <span class="pl-c1">1</span> <span class="pl-c1">hasmethod</span>(f, Tuple{T} <span class="pl-k">where</span> T)</pre></div> <p dir="auto">crash the julia repl on julia 1.1.1, windows 7</p>
<p dir="auto">It may be a malformed method call but it crashes julia v1.1 and only after the method has been defined:<br> <code class="notranslate">hasmethod(Base.map!,Tuple{Any,Base.ValueIterator{D}} where D&lt;:Dict)</code></p> <p dir="auto">While this nearly identical version does not:<br> <code class="notranslate">hasmethod(Base.map!,Tuple{Any,Base.ValueIterator{&lt;:Dict}})</code></p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Starting Julia... _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_) (_) | _ _ _| |_ __ _ | Type &quot;?&quot; for help, &quot;]?&quot; for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.1.0 (2019-01-21) _/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release |__/ | julia&gt; hasmethod(Base.map!,Tuple{Any,Base.ValueIterator{&lt;:Dict}}) false julia&gt; hasmethod(Base.map!,Tuple{Any,Base.ValueIterator{D}} where D&lt;:Dict) false julia&gt; function Base.map!(f, iter::Base.ValueIterator{&lt;:Dict}) dict = iter.dict vals = dict.vals # @inbounds is here so the it gets propigated to isslotfiled @inbounds for i = dict.idxfloor:Base.lastindex(vals) if Base.isslotfilled(dict, i) vals[i] = f(vals[i]) end end return iter end julia&gt; hasmethod(Base.map!,Tuple{Any,Base.ValueIterator{&lt;:Dict}}) true julia&gt; hasmethod(Base.map!,Tuple{Any,Base.ValueIterator{D}} where D&lt;:Dict) signal (11): Segmentation fault: 11 in expression starting at no file:0 jl_compilation_sig at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:622 jl_mt_assoc_by_type at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1139 jl_method_lookup_by_type at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1722 [inlined] jl_method_exists at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1729 #hasmethod#21 at ./reflection.jl:1102 [inlined] hasmethod at ./reflection.jl:1100 unknown function (ip: 0x11ac4ed14) do_call at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:323 eval_stmt_value at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:362 [inlined] eval_body at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:759 jl_interpret_toplevel_thunk_callback at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:885 unknown function (ip: 0xfffffffffffffffe) unknown function (ip: 0x1155fe58f) unknown function (ip: 0x6) jl_interpret_toplevel_thunk at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:894 jl_toplevel_eval_flex at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:764 jl_toplevel_eval at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:773 [inlined] jl_toplevel_eval_in at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:793 eval at ./boot.jl:328 [inlined] repleval at /Users/nicholasdinsmore/.julia/packages/Atom/OZKl0/src/repl.jl:147 #168 at /Users/nicholasdinsmore/.julia/packages/Atom/OZKl0/src/repl.jl:182 with_logstate at ./logging.jl:395 with_logger at ./logging.jl:491 [inlined] evalrepl at /Users/nicholasdinsmore/.julia/packages/Atom/OZKl0/src/repl.jl:173 do_call at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:323 eval_stmt_value at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:362 [inlined] eval_body at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:759 jl_interpret_toplevel_thunk_callback at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:885 unknown function (ip: 0xfffffffffffffffe) unknown function (ip: 0x1155fe3af) unknown function (ip: 0xffffffffffffffff) jl_interpret_toplevel_thunk at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:894 jl_toplevel_eval_flex at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:764 jl_toplevel_eval at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:773 [inlined] jl_toplevel_eval_in at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:793 eval at ./boot.jl:328 eval_user_input at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:85 run_backend at /Users/nicholasdinsmore/.julia/packages/Revise/RiaYX/src/Revise.jl:779 #60 at ./task.jl:259 jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1864 jl_apply at /Users/osx/buildbot/slave/package_osx64/build/src/./julia.h:1571 [inlined] start_task at /Users/osx/buildbot/slave/package_osx64/build/src/task.c:572 Allocations: 18323023 (Pool: 18320209; Big: 2814); GC: 41 Julia has exited. Press Enter to start a new session."><pre class="notranslate">Starting Julia<span class="pl-k">...</span> _ _ _ <span class="pl-c1">_</span>(_)_ <span class="pl-k">|</span> Documentation<span class="pl-k">:</span> https<span class="pl-k">:</span><span class="pl-k">//</span>docs<span class="pl-k">.</span>julialang<span class="pl-k">.</span>org (_) <span class="pl-k">|</span> (_) (_) <span class="pl-k">|</span> _ _ _<span class="pl-k">|</span> <span class="pl-k">|</span>_ __ _ <span class="pl-k">|</span> Type <span class="pl-s"><span class="pl-pds">"</span>?<span class="pl-pds">"</span></span> <span class="pl-k">for</span> help, <span class="pl-s"><span class="pl-pds">"</span>]?<span class="pl-pds">"</span></span> <span class="pl-k">for</span> Pkg help. <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span> <span class="pl-k">|</span><span class="pl-k">/</span> <span class="pl-s"><span class="pl-pds"><span class="pl-c1">_</span>`</span> | |</span> <span class="pl-s"> | | |_| | | | (_| | | Version 1.1.0 (2019-01-21)</span> <span class="pl-s"> _/ |<span class="pl-cce">\_</span>_'_|_|_|<span class="pl-cce">\_</span>_'_| | Official https://julialang.org/ release</span> <span class="pl-s">|__/ |</span> <span class="pl-s"></span> <span class="pl-s">julia&gt; hasmethod(Base.map!,Tuple{Any,Base.ValueIterator{&lt;:Dict}})</span> <span class="pl-s">false</span> <span class="pl-s"></span> <span class="pl-s">julia&gt; hasmethod(Base.map!,Tuple{Any,Base.ValueIterator{D}} where D&lt;:Dict)</span> <span class="pl-s">false</span> <span class="pl-s"></span> <span class="pl-s">julia&gt; function Base.map!(f, iter::Base.ValueIterator{&lt;:Dict})</span> <span class="pl-s"> dict = iter.dict</span> <span class="pl-s"> vals = dict.vals</span> <span class="pl-s"> # @inbounds is here so the it gets propigated to isslotfiled</span> <span class="pl-s"> @inbounds for i = dict.idxfloor:Base.lastindex(vals)</span> <span class="pl-s"> if Base.isslotfilled(dict, i)</span> <span class="pl-s"> vals[i] = f(vals[i])</span> <span class="pl-s"> end</span> <span class="pl-s"> end</span> <span class="pl-s"> return iter</span> <span class="pl-s"> end</span> <span class="pl-s"></span> <span class="pl-s">julia&gt; hasmethod(Base.map!,Tuple{Any,Base.ValueIterator{&lt;:Dict}})</span> <span class="pl-s">true</span> <span class="pl-s"></span> <span class="pl-s">julia&gt; hasmethod(Base.map!,Tuple{Any,Base.ValueIterator{D}} where D&lt;:Dict)</span> <span class="pl-s"></span> <span class="pl-s">signal (11): Segmentation fault: 11</span> <span class="pl-s">in expression starting at no file:0</span> <span class="pl-s">jl_compilation_sig at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:622</span> <span class="pl-s">jl_mt_assoc_by_type at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1139</span> <span class="pl-s">jl_method_lookup_by_type at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1722 [inlined]</span> <span class="pl-s">jl_method_exists at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1729</span> <span class="pl-s">#hasmethod#21 at ./reflection.jl:1102 [inlined]</span> <span class="pl-s">hasmethod at ./reflection.jl:1100</span> <span class="pl-s">unknown function (ip: 0x11ac4ed14)</span> <span class="pl-s">do_call at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:323</span> <span class="pl-s">eval_stmt_value at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:362 [inlined]</span> <span class="pl-s">eval_body at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:759</span> <span class="pl-s">jl_interpret_toplevel_thunk_callback at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:885</span> <span class="pl-s">unknown function (ip: 0xfffffffffffffffe)</span> <span class="pl-s">unknown function (ip: 0x1155fe58f)</span> <span class="pl-s">unknown function (ip: 0x6)</span> <span class="pl-s">jl_interpret_toplevel_thunk at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:894</span> <span class="pl-s">jl_toplevel_eval_flex at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:764</span> <span class="pl-s">jl_toplevel_eval at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:773 [inlined]</span> <span class="pl-s">jl_toplevel_eval_in at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:793</span> <span class="pl-s">eval at ./boot.jl:328 [inlined]</span> <span class="pl-s">repleval at /Users/nicholasdinsmore/.julia/packages/Atom/OZKl0/src/repl.jl:147</span> <span class="pl-s">#168 at /Users/nicholasdinsmore/.julia/packages/Atom/OZKl0/src/repl.jl:182</span> <span class="pl-s">with_logstate at ./logging.jl:395</span> <span class="pl-s">with_logger at ./logging.jl:491 [inlined]</span> <span class="pl-s">evalrepl at /Users/nicholasdinsmore/.julia/packages/Atom/OZKl0/src/repl.jl:173</span> <span class="pl-s">do_call at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:323</span> <span class="pl-s">eval_stmt_value at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:362 [inlined]</span> <span class="pl-s">eval_body at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:759</span> <span class="pl-s">jl_interpret_toplevel_thunk_callback at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:885</span> <span class="pl-s">unknown function (ip: 0xfffffffffffffffe)</span> <span class="pl-s">unknown function (ip: 0x1155fe3af)</span> <span class="pl-s">unknown function (ip: 0xffffffffffffffff)</span> <span class="pl-s">jl_interpret_toplevel_thunk at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:894</span> <span class="pl-s">jl_toplevel_eval_flex at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:764</span> <span class="pl-s">jl_toplevel_eval at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:773 [inlined]</span> <span class="pl-s">jl_toplevel_eval_in at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:793</span> <span class="pl-s">eval at ./boot.jl:328</span> <span class="pl-s">eval_user_input at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:85</span> <span class="pl-s">run_backend at /Users/nicholasdinsmore/.julia/packages/Revise/RiaYX/src/Revise.jl:779</span> <span class="pl-s">#60 at ./task.jl:259</span> <span class="pl-s">jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1864</span> <span class="pl-s">jl_apply at /Users/osx/buildbot/slave/package_osx64/build/src/./julia.h:1571 [inlined]</span> <span class="pl-s">start_task at /Users/osx/buildbot/slave/package_osx64/build/src/task.c:572</span> <span class="pl-s">Allocations: 18323023 (Pool: 18320209; Big: 2814); GC: 41</span> <span class="pl-s"></span> <span class="pl-s">Julia has exited. Press Enter to start a new session.</span></pre></div>
1
<p dir="auto">Report: <a href="https://github.com/maleadt/BasePkgEvalReports/blob/0bb12607c245153c8e7215788e580d43d7d2d51a/pkgeval-9bd498d_vs_2e6715c/logs/Strided/1.4.0-DEV-082f446f52.log">https://github.com/maleadt/BasePkgEvalReports/blob/0bb12607c245153c8e7215788e580d43d7d2d51a/pkgeval-9bd498d_vs_2e6715c/logs/Strided/1.4.0-DEV-082f446f52.log</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia: /workspace/srcdir/src/codegen.cpp:4342: jl_cgval_t emit_expr(jl_codectx_t&amp;, jl_value_t*, ssize_t): Assertion `token.V-&gt;getType()-&gt;isTokenTy()' failed. signal (6): Aborted in expression starting at /home/pkgeval/.julia/packages/Strided/qA9SM/test/runtests.jl:228 gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) unknown function (ip: 0x7f452283e399) __assert_fail at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) emit_expr at /workspace/srcdir/src/codegen.cpp:4342 emit_ssaval_assign at /workspace/srcdir/src/codegen.cpp:3836 emit_stmtpos at /workspace/srcdir/src/codegen.cpp:4029 [inlined] emit_function at /workspace/srcdir/src/codegen.cpp:6649 jl_compile_linfo at /workspace/srcdir/src/codegen.cpp:1257 jl_compile_method_internal at /workspace/srcdir/src/gf.c:1889 _jl_invoke at /workspace/srcdir/src/gf.c:2153 [inlined] jl_invoke at /workspace/srcdir/src/gf.c:2165 jl_toplevel_eval_flex at /workspace/srcdir/src/toplevel.c:808 jl_parse_eval_all at /workspace/srcdir/src/ast.c:872 jl_load at /workspace/srcdir/src/toplevel.c:872 include at ./client.jl:439 _jl_invoke at /workspace/srcdir/src/gf.c:2144 [inlined] jl_apply_generic at /workspace/srcdir/src/gf.c:2322 jl_apply at /workspace/srcdir/src/julia.h:1692 [inlined] do_call at /workspace/srcdir/src/interpreter.c:369 eval_value at /workspace/srcdir/src/interpreter.c:458 eval_stmt_value at /workspace/srcdir/src/interpreter.c:409 [inlined] eval_body at /workspace/srcdir/src/interpreter.c:817 jl_interpret_toplevel_thunk at /workspace/srcdir/src/interpreter.c:911 jl_toplevel_eval_flex at /workspace/srcdir/src/toplevel.c:814 jl_toplevel_eval_flex at /workspace/srcdir/src/toplevel.c:764 jl_toplevel_eval_in at /workspace/srcdir/src/toplevel.c:843 eval at ./boot.jl:331 _jl_invoke at /workspace/srcdir/src/gf.c:2144 [inlined] jl_apply_generic at /workspace/srcdir/src/gf.c:2322 exec_options at ./client.jl:264 _start at ./client.jl:484 jfptr__start_2076.clone_1 at /opt/julia/lib/julia/sys.so (unknown line) _jl_invoke at /workspace/srcdir/src/gf.c:2144 [inlined] jl_apply_generic at /workspace/srcdir/src/gf.c:2322 jl_apply at /workspace/srcdir/ui/../src/julia.h:1692 [inlined] true_main at /workspace/srcdir/ui/repl.c:96 main at /workspace/srcdir/ui/repl.c:217 __libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) unknown function (ip: 0x4015e4) Allocations: 585069033 (Pool: 584874239; Big: 194794); GC: 445"><pre class="notranslate"><code class="notranslate">julia: /workspace/srcdir/src/codegen.cpp:4342: jl_cgval_t emit_expr(jl_codectx_t&amp;, jl_value_t*, ssize_t): Assertion `token.V-&gt;getType()-&gt;isTokenTy()' failed. signal (6): Aborted in expression starting at /home/pkgeval/.julia/packages/Strided/qA9SM/test/runtests.jl:228 gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) unknown function (ip: 0x7f452283e399) __assert_fail at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) emit_expr at /workspace/srcdir/src/codegen.cpp:4342 emit_ssaval_assign at /workspace/srcdir/src/codegen.cpp:3836 emit_stmtpos at /workspace/srcdir/src/codegen.cpp:4029 [inlined] emit_function at /workspace/srcdir/src/codegen.cpp:6649 jl_compile_linfo at /workspace/srcdir/src/codegen.cpp:1257 jl_compile_method_internal at /workspace/srcdir/src/gf.c:1889 _jl_invoke at /workspace/srcdir/src/gf.c:2153 [inlined] jl_invoke at /workspace/srcdir/src/gf.c:2165 jl_toplevel_eval_flex at /workspace/srcdir/src/toplevel.c:808 jl_parse_eval_all at /workspace/srcdir/src/ast.c:872 jl_load at /workspace/srcdir/src/toplevel.c:872 include at ./client.jl:439 _jl_invoke at /workspace/srcdir/src/gf.c:2144 [inlined] jl_apply_generic at /workspace/srcdir/src/gf.c:2322 jl_apply at /workspace/srcdir/src/julia.h:1692 [inlined] do_call at /workspace/srcdir/src/interpreter.c:369 eval_value at /workspace/srcdir/src/interpreter.c:458 eval_stmt_value at /workspace/srcdir/src/interpreter.c:409 [inlined] eval_body at /workspace/srcdir/src/interpreter.c:817 jl_interpret_toplevel_thunk at /workspace/srcdir/src/interpreter.c:911 jl_toplevel_eval_flex at /workspace/srcdir/src/toplevel.c:814 jl_toplevel_eval_flex at /workspace/srcdir/src/toplevel.c:764 jl_toplevel_eval_in at /workspace/srcdir/src/toplevel.c:843 eval at ./boot.jl:331 _jl_invoke at /workspace/srcdir/src/gf.c:2144 [inlined] jl_apply_generic at /workspace/srcdir/src/gf.c:2322 exec_options at ./client.jl:264 _start at ./client.jl:484 jfptr__start_2076.clone_1 at /opt/julia/lib/julia/sys.so (unknown line) _jl_invoke at /workspace/srcdir/src/gf.c:2144 [inlined] jl_apply_generic at /workspace/srcdir/src/gf.c:2322 jl_apply at /workspace/srcdir/ui/../src/julia.h:1692 [inlined] true_main at /workspace/srcdir/ui/repl.c:96 main at /workspace/srcdir/ui/repl.c:217 __libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) unknown function (ip: 0x4015e4) Allocations: 585069033 (Pool: 584874239; Big: 194794); GC: 445 </code></pre></div>
<p dir="auto">The following code snippet incorrectly allocates a PhiC nodes, despite not having any variables:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@noinline use(x) = string() @noinline function _waitlock(rl::ReentrantLock) try catch end use(rl) nothing end"><pre class="notranslate"><code class="notranslate">@noinline use(x) = string() @noinline function _waitlock(rl::ReentrantLock) try catch end use(rl) nothing end </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CodeInfo( 1 ─ nothing::Nothing @ /Users/jameson/julia/base/lock.jl:61 within `_waitlock' 2 ─ %2 = $(Expr(:enter, #5)) 3 ─ %3 = ϒ (rl)::ReentrantLock └── $(Expr(:leave, 1)) 4 ─ goto #7 5 ┄ %6 = φᶜ (%3)::ReentrantLock └── $(Expr(:leave, 1)) 6 ─ $(Expr(:pop_exception, :(%2)))::Any @ /Users/jameson/julia/base/lock.jl:64 within `_waitlock' 7 ┄ %9 = φ (#4 =&gt; _2, #6 =&gt; %6)::ReentrantLock │ invoke Base.use(%9::ReentrantLock)::Any │ @ /Users/jameson/julia/base/lock.jl:65 within `_waitlock' └── return Base.nothing @ /Users/jameson/julia/base/lock.jl:61 within `_waitlock' 8 ─ $(Expr(:meta, :noinline)) ) =&gt; Nothing"><pre class="notranslate"><code class="notranslate">CodeInfo( 1 ─ nothing::Nothing @ /Users/jameson/julia/base/lock.jl:61 within `_waitlock' 2 ─ %2 = $(Expr(:enter, #5)) 3 ─ %3 = ϒ (rl)::ReentrantLock └── $(Expr(:leave, 1)) 4 ─ goto #7 5 ┄ %6 = φᶜ (%3)::ReentrantLock └── $(Expr(:leave, 1)) 6 ─ $(Expr(:pop_exception, :(%2)))::Any @ /Users/jameson/julia/base/lock.jl:64 within `_waitlock' 7 ┄ %9 = φ (#4 =&gt; _2, #6 =&gt; %6)::ReentrantLock │ invoke Base.use(%9::ReentrantLock)::Any │ @ /Users/jameson/julia/base/lock.jl:65 within `_waitlock' └── return Base.nothing @ /Users/jameson/julia/base/lock.jl:61 within `_waitlock' 8 ─ $(Expr(:meta, :noinline)) ) =&gt; Nothing </code></pre></div>
1
<p dir="auto">I think next.js grown up into level when examples could live by own life in separate repository (eg. zeit/next.js-examples). Examples are more about wide community than core development and doesn't require so much quality as core do.<br> Many pull request are about updating examples or about adding new examples.<br> Separation could improve dynamism of both projects.</p>
<p dir="auto">And instead open a new repo called zeit/next.js-examples</p> <p dir="auto">It's painful to download all examples while cloning next.js for hacking...</p>
1
<p dir="auto">Consider:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: all tasks: - name: echo stuff command: 'echo &quot;{{ item }}&quot;' notify: notifier {{ item }} with_items: - &quot;a&quot; - &quot;b&quot; - &quot;c&quot; handlers: - name: notifier a command: 'echo &quot;A OK&quot;' - name: notifier b command: 'echo &quot;B OK&quot;' - name: notifier c command: 'echo &quot;C OK&quot;'"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">echo stuff</span> <span class="pl-ent">command</span>: <span class="pl-s"><span class="pl-pds">'</span>echo "{{ item }}"<span class="pl-pds">'</span></span> <span class="pl-ent">notify</span>: <span class="pl-s">notifier {{ item }}</span> <span class="pl-ent">with_items</span>: - <span class="pl-s"><span class="pl-pds">"</span>a<span class="pl-pds">"</span></span> - <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span> - <span class="pl-s"><span class="pl-pds">"</span>c<span class="pl-pds">"</span></span> <span class="pl-ent">handlers</span>: - <span class="pl-ent">name</span>: <span class="pl-s">notifier a</span> <span class="pl-ent">command</span>: <span class="pl-s"><span class="pl-pds">'</span>echo "A OK"<span class="pl-pds">'</span></span> - <span class="pl-ent">name</span>: <span class="pl-s">notifier b</span> <span class="pl-ent">command</span>: <span class="pl-s"><span class="pl-pds">'</span>echo "B OK"<span class="pl-pds">'</span></span> - <span class="pl-ent">name</span>: <span class="pl-s">notifier c</span> <span class="pl-ent">command</span>: <span class="pl-s"><span class="pl-pds">'</span>echo "C OK"<span class="pl-pds">'</span></span></pre></div> <p dir="auto">This errors (on ansible 1.8.2) with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] ******************************************************************** GATHERING FACTS *************************************************************** ok: [test_server_3] ok: [test_server_2] ok: [test_server_1] TASK: [echo stuff] ************************************************************ changed: [test_server_2] =&gt; (item=a) changed: [test_server_3] =&gt; (item=a) changed: [test_server_1] =&gt; (item=a) changed: [test_server_2] =&gt; (item=b) changed: [test_server_1] =&gt; (item=b) changed: [test_server_3] =&gt; (item=b) changed: [test_server_1] =&gt; (item=c) changed: [test_server_2] =&gt; (item=c) changed: [test_server_3] =&gt; (item=c) ERROR: change handler (notifier {{ item }}) is not defined"><pre class="notranslate"><code class="notranslate">PLAY [all] ******************************************************************** GATHERING FACTS *************************************************************** ok: [test_server_3] ok: [test_server_2] ok: [test_server_1] TASK: [echo stuff] ************************************************************ changed: [test_server_2] =&gt; (item=a) changed: [test_server_3] =&gt; (item=a) changed: [test_server_1] =&gt; (item=a) changed: [test_server_2] =&gt; (item=b) changed: [test_server_1] =&gt; (item=b) changed: [test_server_3] =&gt; (item=b) changed: [test_server_1] =&gt; (item=c) changed: [test_server_2] =&gt; (item=c) changed: [test_server_3] =&gt; (item=c) ERROR: change handler (notifier {{ item }}) is not defined </code></pre></div> <p dir="auto">It would awesome to define handlers with variable reference.</p>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.5.3</p> <h5 dir="auto">Environment:</h5> <p dir="auto">N/A</p> <h5 dir="auto">Summary:</h5> <p dir="auto">Parent task unable to call handlers of child</p> <h5 dir="auto">Steps To Reproduce:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="production.yml roles/ upstart/ tasks/ main.yml templates/ upstart.conf.j2 graphite-web/ handlers/ main.yml meta/ main.yml"><pre class="notranslate"><code class="notranslate">production.yml roles/ upstart/ tasks/ main.yml templates/ upstart.conf.j2 graphite-web/ handlers/ main.yml meta/ main.yml </code></pre></div> <p dir="auto">roles/upstart/tasks/main.yml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: config | {{ name }} | upstart template sudo: yes template: src=upstart.conf.j2 dest=/etc/init/{{ name }}.conf ignore_errors: true notify: restart {{ name }}"><pre class="notranslate"><code class="notranslate">- name: config | {{ name }} | upstart template sudo: yes template: src=upstart.conf.j2 dest=/etc/init/{{ name }}.conf ignore_errors: true notify: restart {{ name }} </code></pre></div> <p dir="auto">roles/upstart/templates/upstart.conf.j2:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="description '{{ name }} upstart script' author 'Joel' start on (local-filesystems and net-device-up) stop on shutdown instance &quot;{{ name }}&quot; respawn respawn limit 5 60 limit nofile 165962 165962 script {{script}} end script"><pre class="notranslate"><code class="notranslate">description '{{ name }} upstart script' author 'Joel' start on (local-filesystems and net-device-up) stop on shutdown instance "{{ name }}" respawn respawn limit 5 60 limit nofile 165962 165962 script {{script}} end script </code></pre></div> <p dir="auto">roles/graphite-web/handlers/main.yml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: restart graphite sudo: yes service: name=graphite-web state=restarted"><pre class="notranslate"><code class="notranslate">- name: restart graphite sudo: yes service: name=graphite-web state=restarted </code></pre></div> <p dir="auto">roles/graphite-web/meta/main.yml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- dependencies: - { role: upstart, name: graphite-web, script: &quot;/bin/true&quot; }"><pre class="notranslate"><code class="notranslate"> --- dependencies: - { role: upstart, name: graphite-web, script: "/bin/true" } </code></pre></div> <h5 dir="auto">Expected Results:</h5> <p dir="auto">Play should run without errors, roles/upstart/tasks/main.yml should be able to call a notify on roles/graphite-web/handlers/main.yml</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">ERROR: change handler (restart graphite-web) is not defined<br> Ansible failed to complete successfully. Any error output should be<br> visible above. Please fix these errors and try again.</p>
1
<p dir="auto">The following crashes in 0.7 and 1.0. I cannot reproduce this without parametric types or without at least two Unions in the struct.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Test{T} A::Array{Union{Missing, T},1} x::Union{Nothing, Int} end Base.map(f, t::Test) = Test(map(f, t.A), 1) t = Test([missing, 1], 1) Test(map(x-&gt;x, t.A), 1) # works map(x-&gt;x, t) # crash"><pre class="notranslate"><span class="pl-k">struct</span> Test{T} A<span class="pl-k">::</span><span class="pl-c1">Array{Union{Missing, T},1}</span> x<span class="pl-k">::</span><span class="pl-c1">Union{Nothing, Int}</span> <span class="pl-k">end</span> Base<span class="pl-k">.</span><span class="pl-en">map</span>(f, t<span class="pl-k">::</span><span class="pl-c1">Test</span>) <span class="pl-k">=</span> <span class="pl-c1">Test</span>(<span class="pl-c1">map</span>(f, t<span class="pl-k">.</span>A), <span class="pl-c1">1</span>) t <span class="pl-k">=</span> <span class="pl-c1">Test</span>([<span class="pl-c1">missing</span>, <span class="pl-c1">1</span>], <span class="pl-c1">1</span>) <span class="pl-c1">Test</span>(<span class="pl-c1">map</span>(x<span class="pl-k">-&gt;</span>x, t<span class="pl-k">.</span>A), <span class="pl-c1">1</span>) <span class="pl-c"><span class="pl-c">#</span> works</span> <span class="pl-c1">map</span>(x<span class="pl-k">-&gt;</span>x, t) <span class="pl-c"><span class="pl-c">#</span> crash</span></pre></div> <p dir="auto">Versioninfo:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="versioninfo() Julia Version 1.0.0 Commit 5d4eaca0c9 (2018-08-08 20:58 UTC) Platform Info: OS: macOS (x86_64-apple-darwin14.5.0) CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, haswell)"><pre class="notranslate"><span class="pl-c1">versioninfo</span>() Julia Version <span class="pl-c1">1.0</span>.<span class="pl-c1">0</span> Commit <span class="pl-c1">5</span>d4eaca0c9 (<span class="pl-c1">2018</span><span class="pl-k">-</span><span class="pl-c1">08</span><span class="pl-k">-</span><span class="pl-c1">08</span> <span class="pl-c1">20</span><span class="pl-k">:</span><span class="pl-c1">58</span> UTC) Platform Info<span class="pl-k">:</span> OS<span class="pl-k">:</span> macOS (x86_64<span class="pl-k">-</span>apple<span class="pl-k">-</span>darwin14.<span class="pl-c1">5.0</span>) CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Core</span>(TM) i7<span class="pl-k">-</span><span class="pl-c1">4870</span>HQ CPU @ <span class="pl-c1">2.50</span>GHz WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span> LIBM<span class="pl-k">:</span> libopenlibm LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">6.0</span>.<span class="pl-c1">0</span> (ORCJIT, haswell)</pre></div> <p dir="auto">The crash message:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Unreachable reached at 0x11ad423a4 signal (4): Illegal instruction: 4 in expression starting at /Users/epta/.julia/v0.7/GeoRaster/crash.jl:12 map at /Users/epta/.julia/v0.7/GeoRaster/crash.jl:7 jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1829 do_call at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:324 eval_stmt_value at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:363 [inlined] eval_body at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:686 jl_interpret_toplevel_thunk_callback at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:799 unknown function (ip: 0xfffffffffffffffe) unknown function (ip: 0x11492a85f) unknown function (ip: 0x6) jl_interpret_toplevel_thunk at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:808 jl_toplevel_eval_flex at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:831 jl_parse_eval_all at /Users/osx/buildbot/slave/package_osx64/build/src/ast.c:841 jl_load at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:865 [inlined] jl_load_ at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:872 include at ./boot.jl:317 [inlined] include_relative at ./loading.jl:1038 include at ./sysimg.jl:29 exec_options at ./client.jl:239 _start at ./client.jl:432 true_main at /Applications/Julia-0.7.app/Contents/Resources/julia/bin/julia (unknown line) main at /Applications/Julia-0.7.app/Contents/Resources/julia/bin/julia (unknown line) Allocations: 581374 (Pool: 581270; Big: 104); GC: 0 [1] 18287 illegal hardware instruction /Applications/Julia-0.7.app/Contents/Resources/julia/bin/julia crash.jl"><pre class="notranslate">Unreachable reached at <span class="pl-c1">0x11ad423a4</span> signal (<span class="pl-c1">4</span>)<span class="pl-k">:</span> Illegal instruction<span class="pl-k">:</span> <span class="pl-c1">4</span> in expression starting at <span class="pl-k">/</span>Users<span class="pl-k">/</span>epta<span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>v0.<span class="pl-c1">7</span><span class="pl-k">/</span>GeoRaster<span class="pl-k">/</span>crash<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">12</span> map at <span class="pl-k">/</span>Users<span class="pl-k">/</span>epta<span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>v0.<span class="pl-c1">7</span><span class="pl-k">/</span>GeoRaster<span class="pl-k">/</span>crash<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">7</span> jl_fptr_trampoline at <span class="pl-k">/</span>Users<span class="pl-k">/</span>osx<span class="pl-k">/</span>buildbot<span class="pl-k">/</span>slave<span class="pl-k">/</span>package_osx64<span class="pl-k">/</span>build<span class="pl-k">/</span>src<span class="pl-k">/</span>gf<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">1829</span> do_call at <span class="pl-k">/</span>Users<span class="pl-k">/</span>osx<span class="pl-k">/</span>buildbot<span class="pl-k">/</span>slave<span class="pl-k">/</span>package_osx64<span class="pl-k">/</span>build<span class="pl-k">/</span>src<span class="pl-k">/</span>interpreter<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">324</span> eval_stmt_value at <span class="pl-k">/</span>Users<span class="pl-k">/</span>osx<span class="pl-k">/</span>buildbot<span class="pl-k">/</span>slave<span class="pl-k">/</span>package_osx64<span class="pl-k">/</span>build<span class="pl-k">/</span>src<span class="pl-k">/</span>interpreter<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">363</span> [inlined] eval_body at <span class="pl-k">/</span>Users<span class="pl-k">/</span>osx<span class="pl-k">/</span>buildbot<span class="pl-k">/</span>slave<span class="pl-k">/</span>package_osx64<span class="pl-k">/</span>build<span class="pl-k">/</span>src<span class="pl-k">/</span>interpreter<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">686</span> jl_interpret_toplevel_thunk_callback at <span class="pl-k">/</span>Users<span class="pl-k">/</span>osx<span class="pl-k">/</span>buildbot<span class="pl-k">/</span>slave<span class="pl-k">/</span>package_osx64<span class="pl-k">/</span>build<span class="pl-k">/</span>src<span class="pl-k">/</span>interpreter<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">799</span> unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> <span class="pl-c1">0xfffffffffffffffe</span>) unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> <span class="pl-c1">0x11492a85f</span>) unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> <span class="pl-c1">0x6</span>) jl_interpret_toplevel_thunk at <span class="pl-k">/</span>Users<span class="pl-k">/</span>osx<span class="pl-k">/</span>buildbot<span class="pl-k">/</span>slave<span class="pl-k">/</span>package_osx64<span class="pl-k">/</span>build<span class="pl-k">/</span>src<span class="pl-k">/</span>interpreter<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">808</span> jl_toplevel_eval_flex at <span class="pl-k">/</span>Users<span class="pl-k">/</span>osx<span class="pl-k">/</span>buildbot<span class="pl-k">/</span>slave<span class="pl-k">/</span>package_osx64<span class="pl-k">/</span>build<span class="pl-k">/</span>src<span class="pl-k">/</span>toplevel<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">831</span> jl_parse_eval_all at <span class="pl-k">/</span>Users<span class="pl-k">/</span>osx<span class="pl-k">/</span>buildbot<span class="pl-k">/</span>slave<span class="pl-k">/</span>package_osx64<span class="pl-k">/</span>build<span class="pl-k">/</span>src<span class="pl-k">/</span>ast<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">841</span> jl_load at <span class="pl-k">/</span>Users<span class="pl-k">/</span>osx<span class="pl-k">/</span>buildbot<span class="pl-k">/</span>slave<span class="pl-k">/</span>package_osx64<span class="pl-k">/</span>build<span class="pl-k">/</span>src<span class="pl-k">/</span>toplevel<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">865</span> [inlined] jl_load_ at <span class="pl-k">/</span>Users<span class="pl-k">/</span>osx<span class="pl-k">/</span>buildbot<span class="pl-k">/</span>slave<span class="pl-k">/</span>package_osx64<span class="pl-k">/</span>build<span class="pl-k">/</span>src<span class="pl-k">/</span>toplevel<span class="pl-k">.</span>c<span class="pl-k">:</span><span class="pl-c1">872</span> include at <span class="pl-k">./</span>boot<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">317</span> [inlined] include_relative at <span class="pl-k">./</span>loading<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">1038</span> include at <span class="pl-k">./</span>sysimg<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">29</span> exec_options at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">239</span> _start at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">432</span> true_main at <span class="pl-k">/</span>Applications<span class="pl-k">/</span>Julia<span class="pl-k">-</span><span class="pl-c1">0.7</span><span class="pl-k">.</span>app<span class="pl-k">/</span>Contents<span class="pl-k">/</span>Resources<span class="pl-k">/</span>julia<span class="pl-k">/</span>bin<span class="pl-k">/</span>julia (unknown line) main at <span class="pl-k">/</span>Applications<span class="pl-k">/</span>Julia<span class="pl-k">-</span><span class="pl-c1">0.7</span><span class="pl-k">.</span>app<span class="pl-k">/</span>Contents<span class="pl-k">/</span>Resources<span class="pl-k">/</span>julia<span class="pl-k">/</span>bin<span class="pl-k">/</span>julia (unknown line) Allocations<span class="pl-k">:</span> <span class="pl-c1">581374</span> (Pool<span class="pl-k">:</span> <span class="pl-c1">581270</span>; Big<span class="pl-k">:</span> <span class="pl-c1">104</span>); GC<span class="pl-k">:</span> <span class="pl-c1">0</span> [<span class="pl-c1">1</span>] <span class="pl-c1">18287</span> illegal hardware instruction <span class="pl-k">/</span>Applications<span class="pl-k">/</span>Julia<span class="pl-k">-</span><span class="pl-c1">0.7</span><span class="pl-k">.</span>app<span class="pl-k">/</span>Contents<span class="pl-k">/</span>Resources<span class="pl-k">/</span>julia<span class="pl-k">/</span>bin<span class="pl-k">/</span>julia crash<span class="pl-k">.</span>jl</pre></div> <p dir="auto">Code_typed:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="print(@code_typed map(x-&gt;x, t)) CodeInfo( 7 1 ─ %1 = (Base.getfield)(t, :A)::Array{Union{Missing, Int64},1} │ %2 = %new(Generator{Array{Union{Missing, Int64},1},##5#6}, ##5#6(), %1)::Generator{Array{Union{Missing, Int64},1},##5#6} │ %3 = invoke Base._collect(%1::Array{Union{Missing, Int64},1}, %2::Base.Generator{Array{Union{Missing, Int64},1},getfield(Main, Symbol(&quot;##5#6&quot;))}, $(QuoteNode(Base.EltypeUnknown()))::Base.EltypeUnknown, $(QuoteNode(Base.HasShape{1}()))::Base.HasShape{1})::Array │ (Main.Test)(%3, 1)::Union{} │ $(Expr(:unreachable))::Union{} └── $(Expr(:unreachable))::Union{} ) =&gt; Union{}%"><pre class="notranslate"><span class="pl-c1">print</span>(<span class="pl-c1">@code_typed</span> <span class="pl-c1">map</span>(x<span class="pl-k">-&gt;</span>x, t)) <span class="pl-c1">CodeInfo</span>( <span class="pl-c1">7</span> <span class="pl-c1">1</span> ─ <span class="pl-k">%</span><span class="pl-c1">1</span> <span class="pl-k">=</span> (Base<span class="pl-k">.</span>getfield)(t, <span class="pl-c1">:A</span>)<span class="pl-k">::</span><span class="pl-c1">Array{Union{Missing, Int64},1}</span> │ <span class="pl-k">%</span><span class="pl-c1">2</span> <span class="pl-k">=</span> <span class="pl-k">%</span><span class="pl-c1">new</span>(Generator{Array{Union{Missing, Int64},<span class="pl-c1">1</span>},<span class="pl-c"><span class="pl-c">#</span>#5#6}, ##5#6(), %1)::Generator{Array{Union{Missing, Int64},1},##5#6}</span> │ <span class="pl-k">%</span><span class="pl-c1">3</span> <span class="pl-k">=</span> invoke Base<span class="pl-k">.</span><span class="pl-c1">_collect</span>(<span class="pl-k">%</span><span class="pl-c1">1</span><span class="pl-k">::</span><span class="pl-c1">Array{Union{Missing, Int64},1}</span>, <span class="pl-k">%</span><span class="pl-c1">2</span><span class="pl-k">::</span><span class="pl-c1">Base.Generator{Array{Union{Missing, Int64},1},getfield(Main, Symbol("##5#6"))}</span>, <span class="pl-k">$</span>(<span class="pl-c1">QuoteNode</span>(Base<span class="pl-k">.</span><span class="pl-c1">EltypeUnknown</span>()))<span class="pl-k">::</span><span class="pl-c1">Base.EltypeUnknown</span>, <span class="pl-k">$</span>(<span class="pl-c1">QuoteNode</span>(Base<span class="pl-k">.</span><span class="pl-c1">HasShape</span><span class="pl-c1">{1}</span>()))<span class="pl-k">::</span><span class="pl-c1">Base.HasShape{1}</span>)<span class="pl-k">::</span><span class="pl-c1">Array</span> │ (Main<span class="pl-k">.</span>Test)(<span class="pl-k">%</span><span class="pl-c1">3</span>, <span class="pl-c1">1</span>)<span class="pl-k">::</span><span class="pl-c1">Union{}</span> │ <span class="pl-k">$</span>(<span class="pl-c1">Expr</span>(<span class="pl-c1">:unreachable</span>))<span class="pl-k">::</span><span class="pl-c1">Union{}</span> └── <span class="pl-k">$</span>(<span class="pl-c1">Expr</span>(<span class="pl-c1">:unreachable</span>))<span class="pl-k">::</span><span class="pl-c1">Union{}</span> ) <span class="pl-k">=&gt;</span> Union{}<span class="pl-k">%</span></pre></div>
<p dir="auto">Difficult to tell if this is a duplicate of some existing subtyping issue, but it's important:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; typeintersect(Base.RefValue, Ref{Union{Int,T}} where T) Union{}"><pre class="notranslate"><code class="notranslate">julia&gt; typeintersect(Base.RefValue, Ref{Union{Int,T}} where T) Union{} </code></pre></div> <p dir="auto">The answer should be (ideally) <code class="notranslate">RefValue{Union{Int,T}} where T</code>.</p>
1
<p dir="auto">Hi, I noticed a weird resizing behavior on Chrome. I'm not sure if it's a browser bug or not. It doesn't happen on Firefox. Check the screenshots for a better understanding of the issue.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/403f00bc3773e42281f9105cff42bb1bd0a7117327f600e746c127c84fc44bea/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3730343233312f313031393938392f36323464653738612d306336302d313165332d396331642d3634643666373633353561312e706e67"><img src="https://camo.githubusercontent.com/403f00bc3773e42281f9105cff42bb1bd0a7117327f600e746c127c84fc44bea/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3730343233312f313031393938392f36323464653738612d306336302d313165332d396331642d3634643666373633353561312e706e67" alt="window1" data-canonical-src="https://f.cloud.github.com/assets/704231/1019989/624de78a-0c60-11e3-9c1d-64d6f76355a1.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/6140a4f1ef7db3340c0a546211ee1f5b35d57f783be46c1248772b3966568a02/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3730343233312f313031393938382f36323463646362652d306336302d313165332d396161312d6534306137626161646462632e706e67"><img src="https://camo.githubusercontent.com/6140a4f1ef7db3340c0a546211ee1f5b35d57f783be46c1248772b3966568a02/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3730343233312f313031393938382f36323463646362652d306336302d313165332d396161312d6534306137626161646462632e706e67" alt="window2" data-canonical-src="https://f.cloud.github.com/assets/704231/1019988/624cdcbe-0c60-11e3-9aa1-e40a7baaddbc.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/53c18b1475bebe57f75865a083b1d8a87adb3ed4acbafd467ab3117e850b9858/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3730343233312f313031393938372f36323438616132632d306336302d313165332d396266302d3034666535653531616239372e706e67"><img src="https://camo.githubusercontent.com/53c18b1475bebe57f75865a083b1d8a87adb3ed4acbafd467ab3117e850b9858/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3730343233312f313031393938372f36323438616132632d306336302d313165332d396266302d3034666535653531616239372e706e67" alt="window3" data-canonical-src="https://f.cloud.github.com/assets/704231/1019987/6248aa2c-0c60-11e3-9bf0-04fe5e51ab97.png" style="max-width: 100%;"></a></p>
<p dir="auto">The justified nav example (<a href="http://getbootstrap.com/examples/justified-nav" rel="nofollow">http://getbootstrap.com/examples/justified-nav</a>) collapses perfectly when the screen is narrowed, but when the screen is expanded it get wonky.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/db69ca8e316e013e7709351d88ecf7d585b87ae58bdeb880ad477c8bc93e6608/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f38333730382f3938323439352f33383763663635362d303766382d313165332d393330382d6363376238306661653266642e706e67"><img src="https://camo.githubusercontent.com/db69ca8e316e013e7709351d88ecf7d585b87ae58bdeb880ad477c8bc93e6608/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f38333730382f3938323439352f33383763663635362d303766382d313165332d393330382d6363376238306661653266642e706e67" alt="justified nav" data-canonical-src="https://f.cloud.github.com/assets/83708/982495/387cf656-07f8-11e3-9308-cc7b80fae2fd.png" style="max-width: 100%;"></a><br> expanded</p>
1
<p dir="auto">Hi!</p> <p dir="auto">I'm using TypeScript with named parameters massively like this.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class User { public firstName: string; public lastName: string; constructor({firstName, lastName}: {firstName: string, lastName: string}) { this.firstName = firstName; this.lastName = lastName; } } new User({firstName: 'Foo', lastName: 'BAR'});"><pre class="notranslate"><code class="notranslate">class User { public firstName: string; public lastName: string; constructor({firstName, lastName}: {firstName: string, lastName: string}) { this.firstName = firstName; this.lastName = lastName; } } new User({firstName: 'Foo', lastName: 'BAR'}); </code></pre></div> <p dir="auto">And I would love to be able to generate the properties automatically like this.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class User { constructor({public firstName, public lastName}: {firstName: string, lastName: string}) {} } new User({firstName: 'Foo', lastName: 'BAR'});"><pre class="notranslate"><code class="notranslate">class User { constructor({public firstName, public lastName}: {firstName: string, lastName: string}) {} } new User({firstName: 'Foo', lastName: 'BAR'}); </code></pre></div> <p dir="auto">I think that this feature can be really interesting and would encourage more developers to use named parameters which I think is one of the most important best practices in TypeScript and any other language by the way.</p> <p dir="auto">Thank you in advance.</p>
<p dir="auto">Today, we can take advantage of parameter properties to reduce the boilerplate, e.g:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Person { constructor(public firstName: string, public lastName: number, public age: number) { } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Person</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">public</span> <span class="pl-s1">firstName</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-k">public</span> <span class="pl-s1">lastName</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-k">public</span> <span class="pl-s1">age</span>: <span class="pl-smi">number</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">Since 1.5, we can also use destructuring, e.g:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Person { firstName: string; lastName: string; age: number; constructor({ firstName, lastName, age } : { firstName: string, lastName: string, age: number }) { this.firstName = firstName; this.lastName = lastName; this.age = age; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Person</span> <span class="pl-kos">{</span> <span class="pl-c1">firstName</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-c1">lastName</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-c1">age</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">{</span> firstName<span class="pl-kos">,</span> lastName<span class="pl-kos">,</span> age <span class="pl-kos">}</span> : <span class="pl-kos">{</span> <span class="pl-c1">firstName</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">lastName</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">age</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">firstName</span> <span class="pl-c1">=</span> <span class="pl-s1">firstName</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">lastName</span> <span class="pl-c1">=</span> <span class="pl-s1">lastName</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">age</span> <span class="pl-c1">=</span> <span class="pl-s1">age</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I've tried in many ways to combine both features, but had no success. So:</p> <ol dir="auto"> <li>Is it possible to combine them nowadays, and if yes, how?</li> <li>If not, could it be an improvement to a future TypeScript version? E.g:</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Person { constructor(public { firstName, lastName, age } : { firstName: string, lastName: string, age: number }) { } } // the code above would possibly transpile to: var Person = (function () { function Person(_a) { var firstName = _a.firstName, lastName = _a.lastName, age = _a.age; this.firstName = firstName; this.lastName = lastName; this.age = age; } return Person; })();"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Person</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">public</span> <span class="pl-kos">{</span> firstName<span class="pl-kos">,</span> lastName<span class="pl-kos">,</span> age <span class="pl-kos">}</span> : <span class="pl-kos">{</span> <span class="pl-c1">firstName</span>: <span class="pl-s1">string</span><span class="pl-kos">,</span> <span class="pl-c1">lastName</span>: <span class="pl-s1">string</span><span class="pl-kos">,</span> <span class="pl-c1">age</span>: <span class="pl-s1">number</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">// the code above would possibly transpile to:</span> <span class="pl-k">var</span> <span class="pl-v">Person</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-s1">_a</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">firstName</span> <span class="pl-c1">=</span> <span class="pl-s1">_a</span><span class="pl-kos">.</span><span class="pl-c1">firstName</span><span class="pl-kos">,</span> <span class="pl-s1">lastName</span> <span class="pl-c1">=</span> <span class="pl-s1">_a</span><span class="pl-kos">.</span><span class="pl-c1">lastName</span><span class="pl-kos">,</span> <span class="pl-s1">age</span> <span class="pl-c1">=</span> <span class="pl-s1">_a</span><span class="pl-kos">.</span><span class="pl-c1">age</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">firstName</span> <span class="pl-c1">=</span> <span class="pl-s1">firstName</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">lastName</span> <span class="pl-c1">=</span> <span class="pl-s1">lastName</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">age</span> <span class="pl-c1">=</span> <span class="pl-s1">age</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-v">Person</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>
1
<p dir="auto">When I run in android studio it showing following error :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception in thread &quot;main&quot; java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:219) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:149) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:163) at org.gradle.wrapper.Install.unzip(Install.java:214) at org.gradle.wrapper.Install.access$600(Install.java:27) at org.gradle.wrapper.Install$1.call(Install.java:74) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) Command: C:\Users\Arvind\AndroidStudioProjects\my_flutter_app\android\gradlew.bat -v"><pre class="notranslate"><code class="notranslate">Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:219) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:149) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:163) at org.gradle.wrapper.Install.unzip(Install.java:214) at org.gradle.wrapper.Install.access$600(Install.java:27) at org.gradle.wrapper.Install$1.call(Install.java:74) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) Command: C:\Users\Arvind\AndroidStudioProjects\my_flutter_app\android\gradlew.bat -v </code></pre></div>
<p dir="auto">Right now there isn't single source of truth for the clang version used, which is causing formatting mismatches across environments.</p>
0
<p dir="auto">Hi guys,</p> <p dir="auto">I have been trying to solve this issue for 64 hours and nothing. I am a bit tired. Could you help me please?</p> <p dir="auto">Here is the project: <a href="https://github.com/slamby/slamby-website">https://github.com/slamby/slamby-website</a></p> <p dir="auto">Right now I do not use the aot compilation for production, everything is ready to start it, but I have the same issue, generating ngFactory fiels: there are no ngFactory files generated, just js files.</p> <p dir="auto">My tsconfig.aot.json</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;target&quot;: &quot;es5&quot;, &quot;module&quot;: &quot;es2015&quot;, &quot;moduleResolution&quot;: &quot;node&quot;, &quot;outDir&quot;: &quot;./aot&quot;, &quot;sourceMap&quot;: true, &quot;emitDecoratorMetadata&quot;: true, &quot;experimentalDecorators&quot;: true, &quot;lib&quot;: [&quot;es2015&quot;, &quot;dom&quot;], &quot;noImplicitAny&quot;: true, &quot;suppressImplicitAnyIndexErrors&quot;: true, &quot;typeRoots&quot;: [ &quot;./node_modules/@types&quot; ], &quot;types&quot;: [ &quot;node&quot; ] }, &quot;files&quot;: [ &quot;./src/app/app.module.ts&quot; ], &quot;angularCompilerOptions&quot;: { &quot;genDir&quot;: &quot;./aot&quot;, &quot;skipMetadataEmit&quot; : true } }"><pre class="notranslate">{ <span class="pl-ent">"compilerOptions"</span>: { <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>es5<span class="pl-pds">"</span></span>, <span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>es2015<span class="pl-pds">"</span></span>, <span class="pl-ent">"moduleResolution"</span>: <span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>, <span class="pl-ent">"outDir"</span>: <span class="pl-s"><span class="pl-pds">"</span>./aot<span class="pl-pds">"</span></span>, <span class="pl-ent">"sourceMap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"emitDecoratorMetadata"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"experimentalDecorators"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"lib"</span>: [<span class="pl-s"><span class="pl-pds">"</span>es2015<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>dom<span class="pl-pds">"</span></span>], <span class="pl-ent">"noImplicitAny"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"suppressImplicitAnyIndexErrors"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"typeRoots"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>./node_modules/@types<span class="pl-pds">"</span></span> ], <span class="pl-ent">"types"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"files"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>./src/app/app.module.ts<span class="pl-pds">"</span></span> ], <span class="pl-ent">"angularCompilerOptions"</span>: { <span class="pl-ent">"genDir"</span>: <span class="pl-s"><span class="pl-pds">"</span>./aot<span class="pl-pds">"</span></span>, <span class="pl-ent">"skipMetadataEmit"</span> : <span class="pl-c1">true</span> } }</pre></div> <p dir="auto">Command to execute ngc:</p> <blockquote> <p dir="auto">node_modules/.bin/ngc -p tsconfig.aot.json</p> </blockquote> <p dir="auto">Output files print screen:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/18461114/21105702/801c0868-c08b-11e6-85fb-3cbdd99c5f61.png"><img src="https://cloud.githubusercontent.com/assets/18461114/21105702/801c0868-c08b-11e6-85fb-3cbdd99c5f61.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Angular pacakages:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &quot;@angular/common&quot;: &quot;~2.3.0&quot;, &quot;@angular/compiler&quot;: &quot;~2.3.0&quot;, &quot;@angular/compiler-cli&quot;: &quot;^2.3.0&quot;, &quot;@angular/core&quot;: &quot;~2.3.0&quot;, &quot;@angular/forms&quot;: &quot;~2.3.0&quot;, &quot;@angular/http&quot;: &quot;~2.3.0&quot;, &quot;@angular/platform-browser&quot;: &quot;~2.3.0&quot;, &quot;@angular/platform-browser-dynamic&quot;: &quot;~2.3.0&quot;, &quot;@angular/platform-server&quot;: &quot;^2.3.0&quot;, &quot;@angular/router&quot;: &quot;~3.3.0&quot;,"><pre class="notranslate"> <span class="pl-ent">"@angular/common"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/compiler"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/compiler-cli"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/forms"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/http"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/platform-browser"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/platform-browser-dynamic"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/platform-server"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/router"</span>: <span class="pl-s"><span class="pl-pds">"</span>~3.3.0<span class="pl-pds">"</span></span>,</pre></div> <p dir="auto">Typescript:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;typescript&quot;: &quot;^2.0.2&quot;,"><pre class="notranslate"><span class="pl-ent">"typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.0.2<span class="pl-pds">"</span></span>,</pre></div> <p dir="auto">Could you please help me?</p>
<p dir="auto">Hey guys,</p> <p dir="auto">I just updated to angular/compiler 2.2.4 and my ngc is no longer creating my application ngFactory files in the specified outGen folder. The last working version of angular/compiler on my stack was 2.1.2. I'm currently on node 6.9.1 and angular 2.2.4. You can check out my stack <a href="https://github.com/projectSHAI/GOAT-stack">here</a> and follow the instructions below to reproduce the process</p> <p dir="auto">Thanks in advance!<br> JT</p> <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">initial angular/compiler compilation; app.module.ngFactory file not being created</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">app.module.ngFactory file would be created along with component factories</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <ul dir="auto"> <li>clone <a href="https://github.com/projectSHAI/GOAT-stack">https://github.com/projectSHAI/GOAT-stack</a></li> <li>run commands <ul dir="auto"> <li><code class="notranslate">npm install</code></li> <li><code class="notranslate">gulp prod</code></li> </ul> </li> <li>ngc-aot folder should have node_module factories and app factories <ul dir="auto"> <li>app factories missing!!</li> </ul> </li> </ul> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">cannot compile AoT</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">MEAN stack</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.2.4</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [all]</p> <ul dir="auto"> <li>(not a dom issue)</li> </ul> </li> <li> <p dir="auto"><strong>Language:</strong> [TypeScript 2.1.1]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.9.1</p> </li> </ul>
1
<p dir="auto">If a modal is defined with <code class="notranslate">'backdrop': false</code>, hidding it will throw an error :</p> <blockquote> <p dir="auto">Uncaught TypeError: Cannot call method 'remove' of undefined</p> </blockquote> <p dir="auto">changing :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=", removeBackdrop: function () { this.$backdrop.remove() this.$backdrop = null }"><pre class="notranslate"><code class="notranslate">, removeBackdrop: function () { this.$backdrop.remove() this.$backdrop = null } </code></pre></div> <p dir="auto">by :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=", removeBackdrop: function () { if (this.$backdrop) { this.$backdrop.remove() this.$backdrop = null } }"><pre class="notranslate"><code class="notranslate">, removeBackdrop: function () { if (this.$backdrop) { this.$backdrop.remove() this.$backdrop = null } } </code></pre></div> <p dir="auto">Fixes it</p>
<p dir="auto">With options { backdrop: false }, this.$backdrop.remove() is still being called which results in an exception as this.$backdrop is null.</p> <code class="notranslate"> hideModal: function () { var that = this this.$element.hide() this.backdrop(function () { that.removeBackdrop() that.$element.trigger('hidden') }) } <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="removeBackdrop: function () { this.$backdrop.remove() this.$backdrop = null }"><pre class="notranslate"><code class="notranslate">removeBackdrop: function () { this.$backdrop.remove() this.$backdrop = null } </code></pre></div> </code>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> feature</p> <p dir="auto"><strong>What is the current behavior?</strong><br> The style prop must always be an object.</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> The style prop could optionally accept a CSS string which would be set under the hood via <code class="notranslate">element.style.cssText = styleStr</code></p>
<p dir="auto">Based on the discussion in: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="109359892" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/5030" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/5030/hovercard?comment_id=153803552&amp;comment_type=issue_comment" href="https://github.com/facebook/react/issues/5030#issuecomment-153803552">#5030 (comment)</a></p> <p dir="auto">Currently, we diff css properties and imperatively set individual properties for each value that differs from the previous render. We've long claimed that "performance" was the reason, but the benchmarks don't seem to support this claim. For instance, consider Ben's perf test (<a href="http://jsperf.com/style-vs-csstext-vs-setattribute/8" rel="nofollow">http://jsperf.com/style-vs-csstext-vs-setattribute/8</a> (from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25838120" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/929" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/929/hovercard" href="https://github.com/facebook/react/issues/929">#929</a>). Realistically, there are cases where one technique is faster than the other, and vice versa. It's probably a wash.</p> <p dir="auto">But using <code class="notranslate">cssText</code> has several advantages over our current approach. Most notably, it solves correctness issues related to the various css shorthand properties (as noted in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="109359892" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/5030" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/5030/hovercard" href="https://github.com/facebook/react/issues/5030">#5030</a>). It also cleanly solves vendor prefixing, and a variety of other edge cases. Plus, as an added bonus, it means that the React core is doing less work and is therefore simpler/cleaner/moreMaintainable.</p>
1
<pre class="notranslate">What steps will reproduce the problem? Create a file with these contents and run `go test -race`: package main import _ "testing" What is the expected output? PASS What do you see instead? # testmain /var/folders/gs/mznx8_ps7299rqztvxhggq7c0000gn/T/go-build422539209/_/Users/titanous/projects/go-tests/regexp-import/_test/_testmain.go:5: can't find import: "regexp" FAIL Which version are you using? go version devel +9c91baff43a1 Wed Sep 25 18:15:29 2013 +1000 darwin/amd64 Please provide any additional information below. This is a regression since go1.1.2. `hg bisect` indicates that this issue is caused by: changeset: 17191:70a7a4257467 user: Russ Cox &lt;[email protected]&gt; date: Thu Jun 27 17:04:39 2013 -0400 summary: cmd/go: add -coverpkg <a href="https://code.google.com/p/go/source/detail?r=70a7a4257467dffb3ec7aa0ec6c1838e9143366a" rel="nofollow">https://code.google.com/p/go/source/detail?r=70a7a4257467dffb3ec7aa0ec6c1838e9143366a</a></pre>
<p dir="auto">by <strong>kevin.dankwardt</strong>:</p> <pre class="notranslate">1. What is a short input program that triggers the error? A short program doesn't seem to trigger the error. The program, called crazylib1.go, that does trigger the error starts with: package crazylib1 func Crazy1() int { s = "bbbbbbbbbbbb"+ "aaaaaaaaaaaaaaaaaaaaaaaaa"+ "aaaaaaaaaaaaaaaaaaaaaaaaa"+ and then has about 10,000 subsequent lines that makes the string longer and longer. All duplicating that "aaaaaaaaaaaaaaaaaaaa"+ line. and then is followed by: "aaaaaaaaaaaaaaaaaaaaaaaaa"+ "aaaaaaaaaaaaaaaaaaaaaaaaa" return len(s); } func Crazy2() int { return 2; } 2. What is the full compiler output? go build crazylib1: signal: segmentation fault (core dumped) 3. What version of the compiler are you using? (Run it with the -V flag.) The command "go version" prints: go version go1.3.3 linux/amd64</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/9035/0/crazylib1.go" rel="nofollow">crazylib1.go</a> (290171 bytes)</li> </ol>
0
<h3 dir="auto">Reproducing code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np integer_list = [18446744073709551615] arr = np.array(integer_list) arr.dtype # Returns: dtype('uint64') # So far, so good... But: # Same list as above, with with a smaller number at the first index integer_list = [ 9223372036854775807, 18446744073709551615 ] arr = np.array(integer_list) arr.dtype # Returns: dtype('float64')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">integer_list</span> <span class="pl-c1">=</span> [<span class="pl-c1">18446744073709551615</span>] <span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">integer_list</span>) <span class="pl-s1">arr</span>.<span class="pl-s1">dtype</span> <span class="pl-c"># Returns: dtype('uint64')</span> <span class="pl-c"># So far, so good... But:</span> <span class="pl-c"># Same list as above, with with a smaller number at the first index</span> <span class="pl-s1">integer_list</span> <span class="pl-c1">=</span> [ <span class="pl-c1">9223372036854775807</span>, <span class="pl-c1">18446744073709551615</span> ] <span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">integer_list</span>) <span class="pl-s1">arr</span>.<span class="pl-s1">dtype</span> <span class="pl-c"># Returns: dtype('float64')</span></pre></div> <p dir="auto">It looks like Numpy only looks at the first element in the object when deciding what dtype the array should have. I think (although I'm not sure) that this behaviour causes unpredictable behaviour in Pandas down the line.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd integer_list = [ 9223372036854775807, 18446744073709551615 ] df = pd.DataFrame(integer_list) df[0].dtype # Returns: dtype('uint64') df[0].to_numpy(int) # Returns (on Windows*): array([-1, -1]) # Returns (on Debian): array([9223372036854775807, -1])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">integer_list</span> <span class="pl-c1">=</span> [ <span class="pl-c1">9223372036854775807</span>, <span class="pl-c1">18446744073709551615</span> ] <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">integer_list</span>) <span class="pl-s1">df</span>[<span class="pl-c1">0</span>].<span class="pl-s1">dtype</span> <span class="pl-c"># Returns: dtype('uint64')</span> <span class="pl-s1">df</span>[<span class="pl-c1">0</span>].<span class="pl-en">to_numpy</span>(<span class="pl-s1">int</span>) <span class="pl-c"># Returns (on Windows*): array([-1, -1])</span> <span class="pl-c"># Returns (on Debian): array([9223372036854775807, -1])</span></pre></div> <p dir="auto">When using <code class="notranslate">to_numpy()</code>, Pandas calls <code class="notranslate">np.asarray()</code> under the hood and passes the values of the Series. So I don't think anything is wrong on the Pandas side. Numpy seems to get confused and makes some wrong decisions about the appropriate length and signedness of the integer it should use.</p> <h3 dir="auto">NumPy/Python version information:</h3> <p dir="auto"><strong>Windows</strong><br> Numpy version: 1.19.2<br> Python version: 3.8.8 (default, Feb 24 2021, 15:54:32) [MSC v.1928 64 bit (AMD64)]</p> <p dir="auto"><strong>Debian</strong><br> Numpy version: 1.20.2 3.7.3<br> Python version: Python 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]</p> <p dir="auto">And, to maybe save someone some time:</p> <p dir="auto">On Windows, a c_long object is always 32 bit, regardless of the OS being 64 bit (as opposed to Unix). See: <a href="https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types" rel="nofollow">https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types</a></p>
<p dir="auto">When <code class="notranslate">np.array()</code> or <code class="notranslate">.asarray()</code> is used to go from a list of integers, without specifying a dtype explicitly, it can pick default dtypes including int64 &amp; uint64. But there's a strange corner case where it defaults to float64 and loses precision, even though all the values could be uint64. Specfically, this occurs when some but not all values can be int64:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [11]: max_int64 = np.iinfo(np.int64).max In [12]: np.array([max_int64]).dtype Out[12]: dtype('int64') In [13]: np.array([max_int64 + 1]).dtype Out[13]: dtype('uint64') In [14]: np.array([max_int64 + 1, max_int64]).dtype Out[14]: dtype('float64')"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">11</span>]: <span class="pl-s1">max_int64</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">iinfo</span>(<span class="pl-s1">np</span>.<span class="pl-s1">int64</span>).<span class="pl-s1">max</span> <span class="pl-v">In</span> [<span class="pl-c1">12</span>]: <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s1">max_int64</span>]).<span class="pl-s1">dtype</span> <span class="pl-v">Out</span>[<span class="pl-c1">12</span>]: <span class="pl-en">dtype</span>(<span class="pl-s">'int64'</span>) <span class="pl-v">In</span> [<span class="pl-c1">13</span>]: <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s1">max_int64</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>]).<span class="pl-s1">dtype</span> <span class="pl-v">Out</span>[<span class="pl-c1">13</span>]: <span class="pl-en">dtype</span>(<span class="pl-s">'uint64'</span>) <span class="pl-v">In</span> [<span class="pl-c1">14</span>]: <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s1">max_int64</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>, <span class="pl-s1">max_int64</span>]).<span class="pl-s1">dtype</span> <span class="pl-v">Out</span>[<span class="pl-c1">14</span>]: <span class="pl-en">dtype</span>(<span class="pl-s">'float64'</span>)</pre></div> <p dir="auto">It doesn't depend on the order they're in, and it's not a general consequence of having two values rather than one - two values above this threshold get <code class="notranslate">uint64</code> as I'd expect.</p> <p dir="auto">Tested on Numpy 1.18.4, Python 3.8.2.</p> <p dir="auto">Sorry if this has already been discussed; it's a tricky thing to search for. This relates to an issue reported on h5py: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="619100596" data-permission-text="Title is private" data-url="https://github.com/h5py/h5py/issues/1547" data-hovercard-type="issue" data-hovercard-url="/h5py/h5py/issues/1547/hovercard" href="https://github.com/h5py/h5py/issues/1547">h5py/h5py#1547</a> .</p>
1
<p dir="auto">Here my work for webpack4 (i just did tested on browser only )</p> <p dir="auto">A little boilerplate using no babelified code of source nextJs inside with feature like hot-reload completely working with css,css and js</p> <p dir="auto">I changed a bit the core of nextjs to make all works .. i wait for any questions</p> <p dir="auto"><a href="https://github.com/simonjoom/NextJs4Reloaded">https://github.com/simonjoom/NextJs4Reloaded</a></p> <p dir="auto">Please read<br> <a href="https://github.com/simonjoom/NextJs4Reloaded#feature-tested">https://github.com/simonjoom/NextJs4Reloaded#feature-tested</a></p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Context</h2> <p dir="auto">We <g-emoji class="g-emoji" alias="heart" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2764.png">❤️</g-emoji>next.js! I made the (possibly) poor decision of migrating our (nteract's) monorepo to Webpack 4 only to notice that next.js is on webpack 3. How far off is a migration to webpack 4? My primary reason for asking is to know if I should switch us <em>back</em> to webpack 3 or just wait on the next next version. <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p> <p dir="auto">We have a few non-next.js apps (some loaded by a python server, one by electron) and we want to make the webpack similar using the universal webpack configurator plugins crafted for next 4. I don't want to break our next apps, so I kept those a bit separate.</p>
1
<p dir="auto"><strong>Elasticsearch version</strong>: 2.2.0</p> <p dir="auto"><strong>JVM version</strong>: 1.8.0_74</p> <p dir="auto"><strong>OS version</strong>: 3.13.0-74-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="165835" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/118" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/118/hovercard" href="https://github.com/elastic/elasticsearch/issues/118">#118</a>-Ubuntu SMP (Ubuntu Server 14.04 LTS)</p> <p dir="auto"><strong>Elasticsearch Client</strong>: <a href="https://github.com/elastic/elasticsearch-py">elasticsearch-py</a></p> <p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br> I am trying to add aliases with filters to some indexes. Basically I have write and read aliases on an index, with filter and routing specified. Based on some criteria, I need to modify the aliases to point to a new index, at which time, I remove the write alias from the existing index, move it to the newly created index and at the same add the same read alias to the newly created index. I am using update_aliases api in the python client to perform all three operations atomically.</p> <p dir="auto"><em>Expected behaviour</em>: The write alias should be removed from the old index and start pointing to the new index, while containing the filter and routing specified.</p> <p dir="auto"><em>Observed behaviour</em>: The write alias is removed from the old index, added to the new index but doesnt contain the specified filter. Attaching code snippets in steps to reproduce.</p> <p dir="auto"><strong>Steps to reproduce</strong>:</p> <ul dir="auto"> <li>Apply alias actions:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="actions = {} actions['actions'] = [{'remove': {'index': u'goibibo_201612', 'alias': u'w_goibibo-serviceresponsesuccess_201612'}}, {'add': {'filter': {'term': {'primaryName': u'goibibo-serviceresponsesuccess'}}, 'index': u'goibibo-serviceresponsesuccess_201612', 'alias': u'w_goibibo-serviceresponsesuccess_201612'}}, {'add': {'filter': {'term': {'primaryName': u'goibibo-serviceresponsesuccess'}}, 'index': u'goibibo-serviceresponsesuccess_201612', 'alias': u'r_goibibo-serviceresponsesuccess_201612'}}] es.indices.update_aliases(body=actions)"><pre class="notranslate"><code class="notranslate">actions = {} actions['actions'] = [{'remove': {'index': u'goibibo_201612', 'alias': u'w_goibibo-serviceresponsesuccess_201612'}}, {'add': {'filter': {'term': {'primaryName': u'goibibo-serviceresponsesuccess'}}, 'index': u'goibibo-serviceresponsesuccess_201612', 'alias': u'w_goibibo-serviceresponsesuccess_201612'}}, {'add': {'filter': {'term': {'primaryName': u'goibibo-serviceresponsesuccess'}}, 'index': u'goibibo-serviceresponsesuccess_201612', 'alias': u'r_goibibo-serviceresponsesuccess_201612'}}] es.indices.update_aliases(body=actions) </code></pre></div> <ul dir="auto"> <li>Fetch alias (should contain the filter, but doesnt)</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="es.indices.get_alias(name='w_goibibo-serviceresponsesuccess_201612') {u'goibibo-serviceresponsesuccess_201612': {u'aliases': {u'w_goibibo-serviceresponsesuccess_201612': {}}}}"><pre class="notranslate"><code class="notranslate">es.indices.get_alias(name='w_goibibo-serviceresponsesuccess_201612') {u'goibibo-serviceresponsesuccess_201612': {u'aliases': {u'w_goibibo-serviceresponsesuccess_201612': {}}}} </code></pre></div> <p dir="auto"><strong>Provide logs (if relevant)</strong>:<br> Didn't see any error logs in master node</p>
<p dir="auto">This started to occur in ES v2.2.0. Easy steps to repro:</p> <ol dir="auto"> <li>Crete and index</li> <li>Put an alias</li> <li>Display the alias</li> <li>Check that the filter is not presented</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" PUT test_index { &quot;mappings&quot;: { &quot;document_type&quot;: { &quot;properties&quot;: { &quot;tags&quot;: { &quot;type&quot;: &quot;string&quot;, &quot;index&quot;: &quot;not_analyzed&quot;, &quot;fields&quot;: { &quot;analyzed&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;ignore_above&quot;: 256 } } } } } POST /_aliases { &quot;actions&quot;: [ { &quot;add&quot;: { &quot;index&quot;: &quot;test_in*&quot;, &lt;----- with wildcards &quot;alias&quot;: &quot;test_index_filter&quot;, &quot;filter&quot;: { &quot;term&quot;: { &quot;tags&quot;: &quot;customerconsent&quot; } } } } ] } OR POST /_aliases { &quot;actions&quot;: [ { &quot;add&quot;: { &quot;index&quot;: &quot;test_index&quot;, &lt;------ without wildcards &quot;alias&quot;: &quot;test_index_filter&quot;, &quot;filter&quot;: { &quot;term&quot;: { &quot;tags&quot;: &quot;customerconsent&quot; } } } } ] } GET _aliases"><pre class="notranslate"><code class="notranslate"> PUT test_index { "mappings": { "document_type": { "properties": { "tags": { "type": "string", "index": "not_analyzed", "fields": { "analyzed": { "type": "string" } }, "ignore_above": 256 } } } } } POST /_aliases { "actions": [ { "add": { "index": "test_in*", &lt;----- with wildcards "alias": "test_index_filter", "filter": { "term": { "tags": "customerconsent" } } } } ] } OR POST /_aliases { "actions": [ { "add": { "index": "test_index", &lt;------ without wildcards "alias": "test_index_filter", "filter": { "term": { "tags": "customerconsent" } } } } ] } GET _aliases </code></pre></div> <p dir="auto">Result</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;test_index&quot;: { &quot;aliases&quot;: { &quot;test_index_filter&quot;: {} } } }"><pre class="notranslate"><code class="notranslate">{ "test_index": { "aliases": { "test_index_filter": {} } } } </code></pre></div>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ X] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ X] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">In a component I have this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@ViewChild(AccountFormComponent) form: AccountFormComponent;"><pre class="notranslate"><code class="notranslate">@ViewChild(AccountFormComponent) form: AccountFormComponent; </code></pre></div> <p dir="auto">In the template I have this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;button md-button (click)='save()' [disabled]='!form?.valid'&gt;Save&lt;/button&gt;"><pre class="notranslate"><code class="notranslate">&lt;button md-button (click)='save()' [disabled]='!form?.valid'&gt;Save&lt;/button&gt; </code></pre></div> <p dir="auto">After the component was rendered, change detection stoped completely.<br> I tracked it down to the <a href="https://github.com/angular/angular/blob/master/packages/core/src/application_ref.ts#L438">apprefs zone subscription</a> having stopped:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="this._zone.onMicrotaskEmpty.subscribe( {next: () =&gt; { this._zone.run(() =&gt; { this.tick(); }); }});"><pre class="notranslate"><code class="notranslate">this._zone.onMicrotaskEmpty.subscribe( {next: () =&gt; { this._zone.run(() =&gt; { this.tick(); }); }}); </code></pre></div> <p dir="auto">Reason was, that <code class="notranslate">this.tick()</code> threw the error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'true'. Current value: 'false'. at viewDebugError (core.es5.js:8625) [angular] at expressionChangedAfterItHasBeenCheckedError (core.es5.js:8603) [angular] at checkBindingNoChanges (core.es5.js:8767) [angular] at checkNoChangesNodeInline (core.es5.js:12195) [angular] at checkNoChangesNode (core.es5.js:12169) [angular] at debugCheckNoChangesNode (core.es5.js:12743) [angular] at debugCheckDirectivesFn (core.es5.js:12645) [angular] at Object.eval [as updateDirectives] (AccountFormPage.html:4) [angular] at Object.debugUpdateDirectives [as updateDirectives] (core.es5.js:12627) [angular] at checkNoChangesView (core.es5.js:12027) [angular] at callViewAction (core.es5.js:12348) [angular] at execComponentViewsAction (core.es5.js:12300) [angular] at checkNoChangesView (core.es5.js:12030) [angular] at callViewAction (core.es5.js:12348) [angular]"><pre class="notranslate"><code class="notranslate">Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'true'. Current value: 'false'. at viewDebugError (core.es5.js:8625) [angular] at expressionChangedAfterItHasBeenCheckedError (core.es5.js:8603) [angular] at checkBindingNoChanges (core.es5.js:8767) [angular] at checkNoChangesNodeInline (core.es5.js:12195) [angular] at checkNoChangesNode (core.es5.js:12169) [angular] at debugCheckNoChangesNode (core.es5.js:12743) [angular] at debugCheckDirectivesFn (core.es5.js:12645) [angular] at Object.eval [as updateDirectives] (AccountFormPage.html:4) [angular] at Object.debugUpdateDirectives [as updateDirectives] (core.es5.js:12627) [angular] at checkNoChangesView (core.es5.js:12027) [angular] at callViewAction (core.es5.js:12348) [angular] at execComponentViewsAction (core.es5.js:12300) [angular] at checkNoChangesView (core.es5.js:12030) [angular] at callViewAction (core.es5.js:12348) [angular] </code></pre></div> <p dir="auto">The error is catched by <code class="notranslate">SafeSubscriber.prototype.__tryOrUnsub</code> and propagated up to zone.js.<br> However, the error was being catched and swallowed by zone.js hasTask function:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ZoneDelegate.prototype.hasTask = function (targetZone, isEmpty) { // hasTask should not throw error so other ZoneDelegate // can still trigger hasTask callback try { return this._hasTaskZS &amp;&amp; this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, targetZone, isEmpty); } catch (err) { } };"><pre class="notranslate"><code class="notranslate"> ZoneDelegate.prototype.hasTask = function (targetZone, isEmpty) { // hasTask should not throw error so other ZoneDelegate // can still trigger hasTask callback try { return this._hasTaskZS &amp;&amp; this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, targetZone, isEmpty); } catch (err) { } }; </code></pre></div> <p dir="auto">This made this really hard to debug since change detection just stops working.<br> I am not really sure why the error occurs, since I have seen this error printed out with change detection continuing to work in other cases.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Errror printed out, app-ref resubscription to <code class="notranslate">zone.onMicrotaskEmpty</code>, which actually did not stop, only the appref got unsubscribed.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">Not sure if the combination above (injecting viewchild and using it in the view in an expression) is already enough.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">I would at least print some information to the console so developers are not clueless what caused change detection to stop.<br> However, this might be an issue for zone.js.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">OS X, [email protected], [email protected], chrome 57</p>
<p dir="auto"><strong>I'm submitting a ...</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report [ ] feature request"><pre class="notranslate"><code class="notranslate">[X] bug report [ ] feature request </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">In prod mode, change detection stops working after uncaught exception occurs during the binding evaluation.</p> <p dir="auto">Details:<br> the subscription to zone.onMicrotaskEmpty event, which is established in angular/core/application_ref is being unsubscribed automatically by RxJS (at SafeSubscriber.__tryOrUnsub), when uncaught exception occurs during the binding evaluation, and currently there s no way to recover from uncaught exception during the binding evaluation in prod mode.</p> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">In prod mode, change detection should continue to function properly after uncaught exception during the binding evaluation.</p> <p dir="auto"><strong>Reproduction of the problem</strong></p> <p dir="auto"><a href="http://plnkr.co/edit/2fe6GC6NkuFkffpEoDPZ?p=preview" rel="nofollow">http://plnkr.co/edit/2fe6GC6NkuFkffpEoDPZ?p=preview</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">In our project, which previously used angular beta 9, we've built custom error handling (by subsclassing ExceptionHandler).<br> When in prod mode, the error was displayed in a popup on the current page, with 'Report' button, and other stuff.<br> After upgrading the project to RC1, we're unable to display the popup on the current page after the uncaught error has occurred.</p> <p dir="auto">There should be some ability to recover from an uncaught exception.</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.1 - 2.0.0-rc.3</li> <li><strong>Browser:</strong> all</li> <li><strong>Language:</strong> all</li> </ul>
1
<h1 dir="auto">Environment</h1> <p dir="auto">Windows 10 - PowerToys 0.18.2</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Select a few files in explorer, and launch PoweerRenamer</p> <p dir="auto">enter (.*) in the "Search for:" field<br> enter "$1.txt" in the "Replace with:" field.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The new file names should be the original filename plus ".txt"</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The new filename is "$1.txt" If I click on "Rename", the file is renamed $1.txt</p> <p dir="auto">I've also tried with "\1.txt" instead of "$1.txt"</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8438590/83965223-f0bbcb80-a8a9-11ea-9af9-d9b6a9d8098c.png"><img src="https://user-images.githubusercontent.com/8438590/83965223-f0bbcb80-a8a9-11ea-9af9-d9b6a9d8098c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">due to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="540249146" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/980" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/980/hovercard" href="https://github.com/microsoft/PowerToys/issues/980">#980</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="534045104" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/881" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/881/hovercard" href="https://github.com/microsoft/PowerToys/issues/881">#881</a>, it may be helpful to inform user that they may need to enable 'match all' if we detect pattern matching like $1, $2 in the replace text box</p>
1
<h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">5.0.0-RC1-SNAPSHOT</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">shardingsphere-jdbc</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="765482219" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/8605" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/8605/hovercard?comment_id=759364099&amp;comment_type=issue_comment" href="https://github.com/apache/shardingsphere/issues/8605#issuecomment-759364099">#8605 (comment)</a></p> <p dir="auto">I think bug maybe at<br> -&gt;org.apache.shardingsphere.infra.metadata.schema.builder.SchemaBuilder#appendRemainTables line 70<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/34728144/104995275-fba22580-5a60-11eb-96fe-d7f5c8226d9a.png"><img src="https://user-images.githubusercontent.com/34728144/104995275-fba22580-5a60-11eb-96fe-d7f5c8226d9a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">shardingsphere must be load remain table MetaData when System start.</p>
<p dir="auto">refer to: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1050776186" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/13554" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/13554/hovercard" href="https://github.com/apache/shardingsphere/issues/13554">#13554</a></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">ShardingSphere-JDBC</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">start up success.</p> <h3 dir="auto">Actual behavior</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Caused by: java.lang.IllegalArgumentException: aes-key-value can not be null. at com.google.common.base.Preconditions.checkArgument(Preconditions.java:217) ~[guava-29.0-jre.jar:na] at org.apache.shardingsphere.encrypt.algorithm.AESEncryptAlgorithm.createSecretKey(AESEncryptAlgorithm.java:57) ~[shardingsphere-encrypt-core-5.0.0-RC1-SNAPSHOT.jar:5.0.0-RC1-SNAPSHOT] at org.apache.shardingsphere.encrypt.algorithm.AESEncryptAlgorithm.init(AESEncryptAlgorithm.java:53) ~[shardingsphere-encrypt-core-5.0.0-RC1-SNAPSHOT.jar:5.0.0-RC1-SNAPSHOT] at org.apache.shardingsphere.spring.boot.registry.AbstractAlgorithmProvidedBeanRegistry.postProcessAfterInitialization(AbstractAlgorithmProvidedBeanRegistry.java:98) ~[shardingsphere-jdbc-spring-boot-starter-infra-5.0.0-RC1-SNAPSHOT.jar:5.0.0-RC1-SNAPSHOT] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:437) ~[spring-beans-5.3.7.jar:5.3.7] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790) ~[spring-beans-5.3.7.jar:5.3.7] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans-5.3.7.jar:5.3.7] ... 123 common frames omitted"><pre class="notranslate"><code class="notranslate">Caused by: java.lang.IllegalArgumentException: aes-key-value can not be null. at com.google.common.base.Preconditions.checkArgument(Preconditions.java:217) ~[guava-29.0-jre.jar:na] at org.apache.shardingsphere.encrypt.algorithm.AESEncryptAlgorithm.createSecretKey(AESEncryptAlgorithm.java:57) ~[shardingsphere-encrypt-core-5.0.0-RC1-SNAPSHOT.jar:5.0.0-RC1-SNAPSHOT] at org.apache.shardingsphere.encrypt.algorithm.AESEncryptAlgorithm.init(AESEncryptAlgorithm.java:53) ~[shardingsphere-encrypt-core-5.0.0-RC1-SNAPSHOT.jar:5.0.0-RC1-SNAPSHOT] at org.apache.shardingsphere.spring.boot.registry.AbstractAlgorithmProvidedBeanRegistry.postProcessAfterInitialization(AbstractAlgorithmProvidedBeanRegistry.java:98) ~[shardingsphere-jdbc-spring-boot-starter-infra-5.0.0-RC1-SNAPSHOT.jar:5.0.0-RC1-SNAPSHOT] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:437) ~[spring-beans-5.3.7.jar:5.3.7] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790) ~[spring-beans-5.3.7.jar:5.3.7] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans-5.3.7.jar:5.3.7] ... 123 common frames omitted </code></pre></div> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto"><code class="notranslate">spring.shardingsphere.rules.encrypt.tables.t_address.columns.address_name.encryptor-name</code> value not contain _<br> such as : <code class="notranslate">encryptor_aes</code></p>
0
<p dir="auto">NOTE: this seems to be fixed in 7.x either intentionally or from refactorings. I don't know the maintenance status of 6.x, so I'm opening this anyhow.</p> <p dir="auto">Choose one: is this a bug report or feature request? <strong>Bug</strong></p> <h3 dir="auto">Input Code</h3> <p dir="auto">Repro repo: <a href="https://github.com/FLGMwt/babel-cjs-bug">https://github.com/FLGMwt/babel-cjs-bug</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const withExport = () =&gt; null; const withoutExport = () =&gt; null; console.log({ withExport: withExport.name, // should be 'withExport', is '' withoutExport: withoutExport.name, // should be 'withoutExport', *is* 'withoutExport' }); "><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-en">withExport</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-en">withoutExport</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">null</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-kos">{</span> <span class="pl-c1">withExport</span>: <span class="pl-en">withExport</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">,</span> <span class="pl-c">// should be 'withExport', is ''</span> <span class="pl-c1">withoutExport</span>: <span class="pl-en">withoutExport</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">,</span> <span class="pl-c">// should be 'withoutExport', *is* 'withoutExport'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Babel/Babylon Configuration (.babelrc, package.json, cli command)</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;plugins&quot;: [&quot;transform-es2015-modules-commonjs&quot;] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span><span class="pl-s">"transform-es2015-modules-commonjs"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;babel-export-bug&quot;, &quot;version&quot;: &quot;1.0.0&quot;, &quot;main&quot;: &quot;index.js&quot;, &quot;license&quot;: &quot;MIT&quot;, &quot;dependencies&quot;: { &quot;babel-core&quot;: &quot;^6.26.0&quot;, &quot;babel-plugin-transform-es2015-modules-commonjs&quot;: &quot;^6.26.0&quot; } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"name"</span>: <span class="pl-s">"babel-export-bug"</span><span class="pl-kos">,</span> <span class="pl-s">"version"</span>: <span class="pl-s">"1.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"main"</span>: <span class="pl-s">"index.js"</span><span class="pl-kos">,</span> <span class="pl-s">"license"</span>: <span class="pl-s">"MIT"</span><span class="pl-kos">,</span> <span class="pl-s">"dependencies"</span>: <span class="pl-kos">{</span> <span class="pl-s">"babel-core"</span>: <span class="pl-s">"^6.26.0"</span><span class="pl-kos">,</span> <span class="pl-s">"babel-plugin-transform-es2015-modules-commonjs"</span>: <span class="pl-s">"^6.26.0"</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="babel test.js | node"><pre class="notranslate">babel test.js <span class="pl-k">|</span> node</pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Output of <code class="notranslate">babel test.js | node</code> should be</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ withExport: 'withExport', withoutExport: 'withoutExport' }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">withExport</span>: <span class="pl-s">'withExport'</span><span class="pl-kos">,</span> <span class="pl-c1">withoutExport</span>: <span class="pl-s">'withoutExport'</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Arrow functions should have their <code class="notranslate">.name</code> property defined by declarations, as demonstrated with the <code class="notranslate">withoutExport</code> function name.</p> <h3 dir="auto">Current Behavior</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ withExport: '', withoutExport: 'withoutExport' }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">withExport</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">withoutExport</span>: <span class="pl-s">'withoutExport'</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The arrow function that is <em>also</em> exported at the time of declaration is <em>not</em> given its name.</p> <p dir="auto">This seems to be because the output of the transform disassociates the arrow function from the variable declaration by injecting a cascading assignment to the module-wrapping code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Object.defineProperty(exports, &quot;__esModule&quot;, { value: true }); const withExport = exports.withExport = () =&gt; null; const withoutExport = () =&gt; null;"><pre class="notranslate"><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">value</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">withExport</span> <span class="pl-c1">=</span> <span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-en">withExport</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-en">withoutExport</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">null</span><span class="pl-kos">;</span></pre></div> <p dir="auto">and I guess this turns the arrow function into an anonymous one.</p> <h3 dir="auto">Possible Solution</h3> <p dir="auto">Possible solutions:</p> <ol dir="auto"> <li>Separate variable declaration from the <code class="notranslate">exports.withExport</code> assignment</li> <li>Explicitly assign the <code class="notranslate">.name</code> property to the function in a separate statement</li> <li>Don't fix and wait for babel 7.x</li> </ol> <p dir="auto">If we're capable of fixing this in 6.x, I'm happy to give it a shot : )</p> <h3 dir="auto">Context</h3> <p dir="auto">I was writing a tutorial for testing React apps using Enzyme. Building on create-react-app, I made some simple, stateless functional components and immediately exported them <a href="https://github.com/FLGMwt/enzyme-intro/blob/reproduce-nameless-arrow-function/src/App.js#L3">link</a>. Enzyme uses a jQuery-like selector syntax for traversing a DOM-like structure which accepts string keys for components. React derives these keys/component names from function names, which in this case was missing. When I try to find these components in the test <a href="https://github.com/FLGMwt/enzyme-intro/blob/reproduce-nameless-arrow-function/src/App.test.js#L11">like this</a>, I can't. (shows up as <code class="notranslate">&lt;Component /&gt;</code> instead of <code class="notranslate">&lt;SpyListItem /&gt;</code>)</p> <p dir="auto">It's worth pointing out that this is only a problem for node-based unit tests. Dev tools use the same names to identify components, but those work in the browser usually since the <code class="notranslate">env</code> preset transforms arrow functions into <em>named</em> functions. The create-react-app config uses <code class="notranslate">node: 'current'</code>, which, unless current is &lt;=5.12, leaves arrows alone. After opening this, I'm gonna poke around <em>that</em> repo to see about pinning down the node env target.</p> <p dir="auto">I can work around this by explicitly naming the component, naming the function, querying by object reference, or exporting differently, but since I'm trying to reach a beginner audience, I don't want to <em>have</em> to do anything exceptional.</p> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>^6.26.0</td> </tr> <tr> <td>node</td> <td>9.3.0</td> </tr> <tr> <td>npm</td> <td>5.6.0</td> </tr> <tr> <td>Operating System</td> <td>OSX</td> </tr> </tbody> </table>
<p dir="auto">Choose one: is this a bug report or feature request?</p> <p dir="auto">Bug</p> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const f1 = function () {}; export const f2 = () =&gt; {};"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-en">f1</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-en">f2</span> <span class="pl-c1">=</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-kos">}</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--plugins transform-es2015-modules-commonjs"><pre class="notranslate"><code class="notranslate">--plugins transform-es2015-modules-commonjs </code></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">To preserve inferred names of anonymous functions, I would expect:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// ... const f1 = function () {}; exports.f1 = f1; const f2 = () =&gt; {}; exports.f2 = f2; // f1.name === 'f1' // f2.name === 'f2'"><pre class="notranslate"><span class="pl-c">// ...</span> <span class="pl-k">const</span> <span class="pl-en">f1</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">f1</span> <span class="pl-c1">=</span> <span class="pl-en">f1</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-en">f2</span> <span class="pl-c1">=</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-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">f2</span> <span class="pl-c1">=</span> <span class="pl-en">f2</span><span class="pl-kos">;</span> <span class="pl-c">// f1.name === 'f1'</span> <span class="pl-c">// f2.name === 'f2'</span></pre></div> <h3 dir="auto">Current Behavior</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// ... const f1 = exports.f1 = function () {}; const f2 = exports.f2 = () =&gt; {}; // f1.name === '' // f2.name === ''"><pre class="notranslate"><span class="pl-c">// ...</span> <span class="pl-k">const</span> <span class="pl-s1">f1</span> <span class="pl-c1">=</span> <span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-en">f1</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">f2</span> <span class="pl-c1">=</span> <span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-en">f2</span> <span class="pl-c1">=</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-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// f1.name === ''</span> <span class="pl-c">// f2.name === ''</span></pre></div> <h3 dir="auto">Context</h3> <p dir="auto">Especially for arrow functions (since there is no explicitly named alternative), it would be very helpful to preserve the inferred function name.</p> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>6.24.1</td> </tr> <tr> <td>node</td> <td>7.3.0</td> </tr> <tr> <td>npm</td> <td>3.8.9</td> </tr> <tr> <td>Operating System</td> <td>Windows</td> </tr> </tbody> </table>
1
<h1 dir="auto">I have a component the has the following in the template:</h1> <p dir="auto">Last bid: {{newBid?.amount | number:'1.1-2'}}<br> Bid time: {{newBid?.bidTime | date: 'medium'}}</p> <p dir="auto">This code works fine in Chrome and Firefox. But in Safari 9 I got an error "Can't find variable: Intl" and then my date pipe. Removed the date pipe and got the same error for my number pipe. Removed both pipes and the code started working fine.</p> <p dir="auto">I believe this error has the same cause as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="122998853" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/6009" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/6009/hovercard" href="https://github.com/angular/angular/issues/6009">#6009</a></p> <p dir="auto">I use Angular 2.0.0-beta.1 on MAC OS.</p>
<p dir="auto">Hello,</p> <p dir="auto">Found an issue in AsyncRoutes. It looks like RouteData is not preserved unlike with SyncRoutes.<br> Please check the following plunker: <a href="http://plnkr.co/edit/uc26p2QEMHZgiEYwqeK6?p=preview" rel="nofollow">http://plnkr.co/edit/uc26p2QEMHZgiEYwqeK6?p=preview</a></p> <p dir="auto">Line 21 works, while 22 does not work.<br> Btw, I also have a question, how can we retrieve the name of the current route? For instance when routerOnActivate is called, I'm able to get the url path but what about the name? I need it to inject in a RouterLink.</p>
0
<p dir="auto">Bootstrap 2 featured various layouts for tabs (e.g they could be placed sideways).<br> Is tha coming to BS3 ?</p>
<p dir="auto">Hi, guys!</p> <p dir="auto">Left-sided and right-sided tabs are missing.</p> <p dir="auto">Thank you!</p>
1
<p dir="auto">This is another one that needs <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="444150563" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/796" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/796/hovercard" href="https://github.com/microsoft/terminal/issues/796">#796</a> before it can be changed and may or may not be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="444151587" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/797" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/797/hovercard" href="https://github.com/microsoft/terminal/issues/797">#797</a>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18221333/57736706-d3441000-765d-11e9-9cbd-8348321f7751.png"><img src="https://user-images.githubusercontent.com/18221333/57736706-d3441000-765d-11e9-9cbd-8348321f7751.png" alt="image" style="max-width: 100%;"></a></p> <blockquote> <p dir="auto">See the line with "OpenConsoleFullPDB.pdb" on it.</p> <ol dir="auto"> <li>execute <code class="notranslate">dir</code>.</li> <li>pick a line you like. Resize the window so that the line completely fills the width of the buffer, with no spaces on the right.</li> <li>execute the same <code class="notranslate">dir</code> command. That line you picked should exactly fill one line.</li> <li>Increase the width of the window. See that the line below the line you picked has now wrapped up to the previous line.</li> </ol> <p dir="auto">Repros with both <code class="notranslate">dir</code> and <code class="notranslate">ls -lA</code>, so it's not WSL/VT specific.</p> </blockquote>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.418] Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.5.2762.0 Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.418] Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.5.2762.0 Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Connect SSH session to application server. use '-l' switch</li> <li>Type in password, accept EULA, and accept session SSH host Key.</li> <li>Enter in 'CRS' at terminal to load custom application.<br> (On a Putty Terminal Emulator, the custom application would load without issue)</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Customer Application should load, presenting user with splash screen. From here, user can navigate Linux based application.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">&lt;--</p> <p dir="auto">-bash-4.2$ crs<br> Can't find termcap entry for this terminal<br> Can't Run crs</p> <p dir="auto">--!&gt;</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<p dir="auto">现在的dubbo与当当的dubbox兼容吗?一直用dubbox,想升级一下。<br> (虽然知道兼容的可能性几乎没有,碰碰运气问一下。)</p> <p dir="auto">dubbox修改了dubbo的序列化协议。<br> \dubbo\rpc\protocol\dubbo\DubboCodec.java 对比:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5990337/53237923-dbca2180-36d2-11e9-9fb4-3a7c260e9c7e.png"><img src="https://user-images.githubusercontent.com/5990337/53237923-dbca2180-36d2-11e9-9fb4-3a7c260e9c7e.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">Hi. Today, I tried to work on making test codes for my plugin and I can't make the call to plugin methods in test code. Is there any guideline make test code for plugins?</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_sound/flutter_sound.dart'; import 'package:flutter_sound_example/main.dart'; void main() { test('startRecorder', () async { FlutterSound flutterSound = new FlutterSound(); String path = await flutterSound.startRecorder(null); print('path: $path'); }); } "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:flutter_test/flutter_test.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:flutter_sound/flutter_sound.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:flutter_sound_example/main.dart'</span>; <span class="pl-k">void</span> <span class="pl-en">main</span>() { <span class="pl-en">test</span>(<span class="pl-s">'startRecorder'</span>, () <span class="pl-k">async</span> { <span class="pl-c1">FlutterSound</span> flutterSound <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">FlutterSound</span>(); <span class="pl-c1">String</span> path <span class="pl-k">=</span> <span class="pl-k">await</span> flutterSound.<span class="pl-en">startRecorder</span>(<span class="pl-c1">null</span>); <span class="pl-en">print</span>(<span class="pl-s">'path: $<span class="pl-v">path</span>'</span>); }); } </pre></div> <p dir="auto">Error code below.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception: MissingPluginException(No implementation found for method startRecorder on channel flutter_sound) package:flutter_sound/flutter_sound.dart 100:7 FlutterSound.startRecorder ===== asynchronous gap =========================== dart:async _AsyncAwaitCompleter.completeError package:flutter_sound/flutter_sound.dart FlutterSound.startRecorder ===== asynchronous gap =========================== dart:async _asyncErrorWrapperHelper package:flutter_sound/flutter_sound.dart FlutterSound.startRecorder test/widget_test.dart 28:38 main.&lt;fn&gt;"><pre class="notranslate"><code class="notranslate">Exception: MissingPluginException(No implementation found for method startRecorder on channel flutter_sound) package:flutter_sound/flutter_sound.dart 100:7 FlutterSound.startRecorder ===== asynchronous gap =========================== dart:async _AsyncAwaitCompleter.completeError package:flutter_sound/flutter_sound.dart FlutterSound.startRecorder ===== asynchronous gap =========================== dart:async _asyncErrorWrapperHelper package:flutter_sound/flutter_sound.dart FlutterSound.startRecorder test/widget_test.dart 28:38 main.&lt;fn&gt; </code></pre></div> <p dir="auto">flutter doctor.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel dev, v0.5.7, on Mac OS X 10.13.6 17G65, locale en-KR) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1) [✓] Android Studio (version 3.1) [!] VS Code (version 1.26.1) [✓] Connected devices (1 available) ! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel dev, v0.5.7, on Mac OS X 10.13.6 17G65, locale en-KR) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1) [✓] Android Studio (version 3.1) [!] VS Code (version 1.26.1) [✓] Connected devices (1 available) ! Doctor found issues in 1 category. </code></pre></div>
<p dir="auto">Currently our plugin template and plugin docs have no recommendation for how to test a plugin. We should probably figure out what to do here.</p>
1
<h3 dir="auto">TL;DR: provide a syntax which kills this compiler error:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Class 'D' incorrectly implements interface 'C'. Property '_a' is protected but type 'D' is not a class derived from 'C'."><pre class="notranslate"><code class="notranslate">Class 'D' incorrectly implements interface 'C'. Property '_a' is protected but type 'D' is not a class derived from 'C'. </code></pre></div> <p dir="auto">If the implementer wants to take responsibility for making sure the private members behave correctly they should be able to do so.</p> <p dir="auto">This would allow mixins to have protected members and solve a few issues with other multiple inheritance use-cases.</p> <h3 dir="auto">Proposal: Allow implementation of protected and private members in derived and implementing classes</h3> <p dir="auto">Allow interface implementers to implement protected and private methods. This makes it possible for types with private and protected members to be implemented as interfaces (provided the inheritor correctly manages the private state).</p> <p dir="auto">Suggested syntax:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" class P {private _p;} class Q implements P { private _p implements P; }"><pre class="notranslate"> <span class="pl-k">class</span> <span class="pl-smi">P</span> <span class="pl-kos">{</span><span class="pl-k">private</span> <span class="pl-c1">_p</span><span class="pl-kos">;</span><span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Q</span> <span class="pl-k">implements</span> <span class="pl-smi">P</span> <span class="pl-kos">{</span> <span class="pl-k">private</span> <span class="pl-c1">_p</span> <span class="pl-s1">implements</span> <span class="pl-smi">P</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Since name mangling is not used we can't alias the private members, so if implementing more than one interface with private members, the private members must either have different names, or the underlying uses of the members must be compatible, or be made compatible.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" class P{private _p;} class P2{private _p;} class Q implements P, P2{ private _p implements P, P2;}"><pre class="notranslate"> <span class="pl-k">class</span> <span class="pl-smi">P</span><span class="pl-kos">{</span><span class="pl-k">private</span> <span class="pl-c1">_p</span><span class="pl-kos">;</span><span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">P2</span><span class="pl-kos">{</span><span class="pl-k">private</span> <span class="pl-c1">_p</span><span class="pl-kos">;</span><span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Q</span> <span class="pl-k">implements</span> <span class="pl-smi">P</span><span class="pl-kos">,</span> <span class="pl-smi">P2</span><span class="pl-kos">{</span> <span class="pl-k">private</span> <span class="pl-c1">_p</span> <span class="pl-s1">implements</span> <span class="pl-smi">P</span><span class="pl-kos">,</span> <span class="pl-c1">P2</span><span class="pl-kos">;</span><span class="pl-kos">}</span></pre></div> <p dir="auto">Of course interfaces can have protected and private members, though they can't declare them directly and you can't implement them directly:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" class P { protected _p = &quot;p&quot;; } interface Q extends P { q; }; // Q can't be implemented except by a class derived from P class PX extends P implements Q { q = &quot;q&quot;; } class R { protected _r = &quot;r&quot;; } interface S extends Q, R { s; } // S cannot be implemented by anyone // However you could gin up the correct members, and cast to S function SFactory(): S { var px = new PX(); px[&quot;s&quot;] = &quot;s&quot;; px[&quot;_r&quot;] = &quot;r&quot;; return &lt;S&gt;px; } // you can even make it constructable: class _S extends PX { s = &quot;s&quot;; protected _r = &quot;r&quot;; } var S: new (...args) =&gt; S = &lt;new (...args) =&gt; S&gt;&lt;new()=&gt; any&gt;_S; var myS = new S();"><pre class="notranslate"> <span class="pl-k">class</span> <span class="pl-smi">P</span> <span class="pl-kos">{</span> <span class="pl-k">protected</span> <span class="pl-c1">_p</span> <span class="pl-c1">=</span> <span class="pl-s">"p"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">Q</span> <span class="pl-k">extends</span> <span class="pl-smi">P</span> <span class="pl-kos">{</span> <span class="pl-c1">q</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// Q can't be implemented except by a class derived from P</span> <span class="pl-k">class</span> <span class="pl-smi">PX</span> <span class="pl-k">extends</span> <span class="pl-smi">P</span> <span class="pl-k">implements</span> <span class="pl-smi">Q</span> <span class="pl-kos">{</span> <span class="pl-c1">q</span> <span class="pl-c1">=</span> <span class="pl-s">"q"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">R</span> <span class="pl-kos">{</span> <span class="pl-k">protected</span> <span class="pl-c1">_r</span> <span class="pl-c1">=</span> <span class="pl-s">"r"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">S</span> <span class="pl-k">extends</span> <span class="pl-smi">Q</span><span class="pl-kos">,</span> <span class="pl-smi">R</span> <span class="pl-kos">{</span> <span class="pl-c1">s</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// S cannot be implemented by anyone</span> <span class="pl-c">// However you could gin up the correct members, and cast to S</span> <span class="pl-k">function</span> <span class="pl-smi">SFactory</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">S</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">px</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">PX</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">px</span><span class="pl-kos">[</span><span class="pl-s">"s"</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s">"s"</span><span class="pl-kos">;</span> <span class="pl-s1">px</span><span class="pl-kos">[</span><span class="pl-s">"_r"</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s">"r"</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">&lt;</span><span class="pl-smi">S</span><span class="pl-kos">&gt;</span><span class="pl-s1">px</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// you can even make it constructable:</span> <span class="pl-k">class</span> <span class="pl-smi">_S</span> <span class="pl-k">extends</span> <span class="pl-smi">PX</span> <span class="pl-kos">{</span> <span class="pl-c1">s</span> <span class="pl-c1">=</span> <span class="pl-s">"s"</span><span class="pl-kos">;</span> <span class="pl-k">protected</span> <span class="pl-c1">_r</span> <span class="pl-c1">=</span> <span class="pl-s">"r"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-smi">S</span>: <span class="pl-k">new</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">S</span> <span class="pl-c1">=</span> <span class="pl-kos">&lt;</span><span class="pl-k">new</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">S</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-k">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span> <span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-c1">_S</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">myS</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">S</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I understand the explanation given in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40483812" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/471" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/471/hovercard" href="https://github.com/microsoft/TypeScript/issues/471">#471</a>, that we cannot simply ignore the private members, as e.g. other instances of B need to be able to access B's private members on C. However protected members are part of the API contract too, for inheritors, and we should be able to implement them.</p> <p dir="auto">What's more, nothing is truly private in JavaScript. This can be achieved in typescript using the <code class="notranslate">["_p"]</code> escape hatch and an intermediate class as above.</p> <h3 dir="auto">Motivation</h3> <p dir="auto">Several uses for this. One is that it seems to be the only way to allow mixins to have private or protected members.</p> <p dir="auto">I'm working with a large library, and have come across the following situation, where I need a type which implements two classes/interfaces which derive from a common base.</p> <p dir="auto">Given these classes:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" interface A { a; } class B implements A { protected _a; get a() { return this._a; } BFunc() { }; } class C implements A { protected _a; get a() { return this._a; } CFunc() { }; }"><pre class="notranslate"> <span class="pl-k">interface</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-k">implements</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-k">protected</span> <span class="pl-c1">_a</span><span class="pl-kos">;</span> <span class="pl-k">get</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">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">BFunc</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">C</span> <span class="pl-k">implements</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-k">protected</span> <span class="pl-c1">_a</span><span class="pl-kos">;</span> <span class="pl-k">get</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">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">CFunc</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">I need then to create a class implementing both <code class="notranslate">B</code> and <code class="notranslate">C</code>. Note that both <code class="notranslate">B</code> and <code class="notranslate">C</code> have chosen to implement <code class="notranslate">a</code> using a protected backing member <code class="notranslate">_a</code>, and that these are compatible implementations with exactly the same meaning. There is now no way to achieve this.</p> <p dir="auto">Allowing interfaces to declare protected members would make them part of the API contract for inheritors and would solve this problem.</p> <p dir="auto">This does not work:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // Class 'D' incorrectly implements interface 'C'. // Property '_a' is protected but type 'B' is not a class derived from 'C'. class D extends B implements C { CFunc() { }; }"><pre class="notranslate"> <span class="pl-c">// Class 'D' incorrectly implements interface 'C'.</span> <span class="pl-c">// Property '_a' is protected but type 'B' is not a class derived from 'C'.</span> <span class="pl-k">class</span> <span class="pl-smi">D</span> <span class="pl-k">extends</span> <span class="pl-smi">B</span> <span class="pl-k">implements</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span> <span class="pl-en">CFunc</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">Neither does this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // Class 'E' incorrectly implements interface 'B'. // Property '_a' is protected but type 'E' is not a class derived from 'B'. // Class 'E' incorrectly implements interface 'C'. // Property '_a' is protected but type 'E' is not a class derived from 'C'. class E implements B, C { _a; get a() { return this._a; } BFunc() { }; CFunc() { }; }"><pre class="notranslate"> <span class="pl-c">// Class 'E' incorrectly implements interface 'B'.</span> <span class="pl-c">// Property '_a' is protected but type 'E' is not a class derived from 'B'.</span> <span class="pl-c">// Class 'E' incorrectly implements interface 'C'.</span> <span class="pl-c">// Property '_a' is protected but type 'E' is not a class derived from 'C'. </span> <span class="pl-k">class</span> <span class="pl-smi">E</span> <span class="pl-k">implements</span> <span class="pl-smi">B</span><span class="pl-kos">,</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span> <span class="pl-c1">_a</span><span class="pl-kos">;</span> <span class="pl-k">get</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">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">BFunc</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">CFunc</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">For example if I could reopen the interface like so:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" interface A { protected _a;}"><pre class="notranslate"> <span class="pl-k">interface</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-k">protected</span> <span class="pl-c1">_a</span><span class="pl-kos">;</span><span class="pl-kos">}</span></pre></div> <p dir="auto">That would solve the issue. By declaring it part of the API contract, albeit one only accessible to inheritors, we solve the problem.</p> <p dir="auto">Currently the only way to work around involves making the backing member public in the interface, or public in the derived classes. (There has to be a backing member in this case). Even making the <code class="notranslate">A</code> a class, and declaring the protected member won't allow you to do it.</p>
<p dir="auto">It seems like the rules for <strong>a)</strong> implementing multiple interfaces and <strong>b)</strong> intersection types should be consistent.</p> <p dir="auto">Example 1: Optional members</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" interface A { m1: string;} interface B { m1?: string;} // allowed, m1 is required. type CT = A&amp;B; var a : CT = {m1:undefined};// allowed, string can be undefined // error, m1 is required, //TS2322: Type '{}' is not assignable to type 'A &amp; B', Property 'm1' is missing in type '{}'. var b : CT = {}; // not allowed, TS2320, Named property 'm1' of types 'A' and 'B' are not identical. interface C extends A, B {}"><pre class="notranslate"> <span class="pl-k">interface</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-c1">m1</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span><span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span> <span class="pl-c1">m1</span>?: <span class="pl-smi">string</span><span class="pl-kos">;</span><span class="pl-kos">}</span> <span class="pl-c">// allowed, m1 is required.</span> <span class="pl-k">type</span> <span class="pl-smi">CT</span> <span class="pl-c1">=</span> <span class="pl-smi">A</span><span class="pl-c1">&amp;</span><span class="pl-smi">B</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">a</span> : <span class="pl-smi">CT</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-c1">m1</span>:<span class="pl-c1">undefined</span><span class="pl-kos">}</span><span class="pl-kos">;</span><span class="pl-c">// allowed, string can be undefined</span> <span class="pl-c">// error, m1 is required, </span> <span class="pl-c">//TS2322: Type '{}' is not assignable to type 'A &amp; B', Property 'm1' is missing in type '{}'.</span> <span class="pl-k">var</span> <span class="pl-s1">b</span> : <span class="pl-smi">CT</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// not allowed, TS2320, Named property 'm1' of types 'A' and 'B' are not identical.</span> <span class="pl-k">interface</span> <span class="pl-smi">C</span> <span class="pl-k">extends</span> <span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <p dir="auto">Example 2: Protected members</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" class P { protected m1: number; } class Q { m1: number; } // allowed, m1 is public type PQT = P&amp;Q; var p : PQT = &lt;PQT&gt;{m1:undefined}; p.m1; // allowed, m1 is public in PQT // not allowed // TS2420: Class 'PQ' incorrectly implements interface 'Q' // Property 'm1' is protected in type 'PQ' but public in type 'Q'. class PQ extends P implements Q {} // TS2420: Class 'QP' incorrectly implements interface 'P'. // Property 'm1' is protected but type 'Q' is not a class derived from 'P'. class QP extends Q implements P {} // Allowed to relax protection explicitly in a derived class class PQX extends P implements Q { m1: number;} // Not allowed - again, seems a bug. class QPX extends Q implements P { m1: number;} // Workaround is to use an intermediate class to relax the protection class PX extends P {m1: number;} class QPX2 extends Q implements PX { m1: number;}"><pre class="notranslate"> <span class="pl-k">class</span> <span class="pl-smi">P</span> <span class="pl-kos">{</span> <span class="pl-k">protected</span> <span class="pl-c1">m1</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Q</span> <span class="pl-kos">{</span> <span class="pl-c1">m1</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// allowed, m1 is public</span> <span class="pl-k">type</span> <span class="pl-smi">PQT</span> <span class="pl-c1">=</span> <span class="pl-smi">P</span><span class="pl-c1">&amp;</span><span class="pl-smi">Q</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">p</span> : <span class="pl-smi">PQT</span> <span class="pl-c1">=</span> <span class="pl-kos">&lt;</span><span class="pl-smi">PQT</span><span class="pl-kos">&gt;</span><span class="pl-kos">{</span><span class="pl-c1">m1</span>:<span class="pl-c1">undefined</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">p</span><span class="pl-kos">.</span><span class="pl-c1">m1</span><span class="pl-kos">;</span> <span class="pl-c">// allowed, m1 is public in PQT</span> <span class="pl-c">// not allowed</span> <span class="pl-c">// TS2420: Class 'PQ' incorrectly implements interface 'Q'</span> <span class="pl-c">// Property 'm1' is protected in type 'PQ' but public in type 'Q'.</span> <span class="pl-k">class</span> <span class="pl-smi">PQ</span> <span class="pl-k">extends</span> <span class="pl-smi">P</span> <span class="pl-k">implements</span> <span class="pl-smi">Q</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-c">// TS2420: Class 'QP' incorrectly implements interface 'P'.</span> <span class="pl-c">// Property 'm1' is protected but type 'Q' is not a class derived from 'P'.</span> <span class="pl-k">class</span> <span class="pl-smi">QP</span> <span class="pl-k">extends</span> <span class="pl-smi">Q</span> <span class="pl-k">implements</span> <span class="pl-smi">P</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-c">// Allowed to relax protection explicitly in a derived class</span> <span class="pl-k">class</span> <span class="pl-smi">PQX</span> <span class="pl-k">extends</span> <span class="pl-smi">P</span> <span class="pl-k">implements</span> <span class="pl-smi">Q</span> <span class="pl-kos">{</span> <span class="pl-c1">m1</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span><span class="pl-kos">}</span> <span class="pl-c">// Not allowed - again, seems a bug.</span> <span class="pl-k">class</span> <span class="pl-smi">QPX</span> <span class="pl-k">extends</span> <span class="pl-smi">Q</span> <span class="pl-k">implements</span> <span class="pl-smi">P</span> <span class="pl-kos">{</span> <span class="pl-c1">m1</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span><span class="pl-kos">}</span> <span class="pl-c">// Workaround is to use an intermediate class to relax the protection</span> <span class="pl-k">class</span> <span class="pl-smi">PX</span> <span class="pl-k">extends</span> <span class="pl-smi">P</span> <span class="pl-kos">{</span><span class="pl-c1">m1</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span><span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">QPX2</span> <span class="pl-k">extends</span> <span class="pl-smi">Q</span> <span class="pl-k">implements</span> <span class="pl-smi">PX</span> <span class="pl-kos">{</span> <span class="pl-c1">m1</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span><span class="pl-kos">}</span></pre></div> <ol dir="auto"> <li>Implementing multiple interfaces should create a type which is the intersection of the types of the interfaces (but with any new members added).</li> <li>It should not be an error to make an optional member non-optional in a derived class. Non-optional members can be undefined, so nothing should break. This is consistent with intersection types. (Arguably also vice versa.)</li> <li>It should not be an error to relax the protected or private status of a member in a derived or implementing class, consistent with intersection types. (in 1.6 you can do it in a derived class but not an implementing class). Or at any rate it should be possible to do so if you need to. See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94986425" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3854" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3854/hovercard" href="https://github.com/microsoft/TypeScript/issues/3854">#3854</a><br> (Surely from a strict point of view Q above is a subtype of P, because it can be used wherever P is used. All members visible externally on P are visible externally on Q, and all members visible internally on P are visible internally on Q. So I think that makes Q a subtype of P.)</li> </ol> <p dir="auto">Implementing two or more interfaces should create the same type as the intersection of the types. That they don't seems like a bug.</p> <p dir="auto">In pseudocode, this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" interface C extends A, B {}"><pre class="notranslate"> <span class="pl-k">interface</span> <span class="pl-smi">C</span> <span class="pl-k">extends</span> <span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <p dir="auto">Should be identical in effect to this (if it was a thing):</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" type C1 = A &amp; B; interface C extends C1 {}"><pre class="notranslate"> <span class="pl-k">type</span> <span class="pl-smi">C1</span> <span class="pl-c1">=</span> <span class="pl-smi">A</span> <span class="pl-c1">&amp;</span> <span class="pl-smi">B</span><span class="pl-kos">;</span> <span class="pl-k">interface</span> <span class="pl-smi">C</span> <span class="pl-k">extends</span> <span class="pl-smi">C1</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
1
<p dir="auto">I have executed the following code with Electron v6.0.0-beta.3.<br> And when I clicked the button on the form it crashed.</p> <p dir="auto">Apparently, there is a problem with the execution of .</p> <p dir="auto">Do you have any one who knows the solution?</p> <p dir="auto">Regards.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;html&gt; &lt;body&gt; &lt;form action=&quot;cgi-bin/abc.cgi&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt; &lt;p&gt; &lt;input type=&quot;file&quot; name=&quot;datafile&quot;&gt; &lt;/p&gt; &lt;p&gt; &lt;input type=&quot;submit&quot; value=&quot;send&quot;&gt; &lt;/p&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><code class="notranslate">&lt;html&gt; &lt;body&gt; &lt;form action="cgi-bin/abc.cgi" method="post" enctype="multipart/form-data"&gt; &lt;p&gt; &lt;input type="file" name="datafile"&gt; &lt;/p&gt; &lt;p&gt; &lt;input type="submit" value="send"&gt; &lt;/p&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre></div> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>v6.0.0-beta.3</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>Windows 10 Enterprise (1803)</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong>: <ul dir="auto"> <li>v5.0.1</li> </ul> </li> </ul>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>(output of <code class="notranslate">node_modules/.bin/electron --version</code>) e.g. 11.0.3</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>(Platform and Version) e.g. macOS / Windows 10</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li> </li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Render PDF in BrowserWindow and webview for all partition</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Renders PDF in <code class="notranslate">default partition</code> and partition with <code class="notranslate">persist:</code><br> but does not work for partitions without <code class="notranslate">persist:</code><br> eg:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{partition: 'somepartition'}"><pre class="notranslate"><span class="pl-kos">{</span><span class="pl-c1">partition</span>: <span class="pl-s">'somepartition'</span><span class="pl-kos">}</span></pre></div> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Please use this modified template to verify<br> <a href="https://github.com/AbyAbyss/electron-quick-start.git">https://github.com/AbyAbyss/electron-quick-start.git</a></p> <p dir="auto">If you provide a URL, please list the commands required to clone/setup/run your repo e.g.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/AbyAbyss/electron-quick-start.git $ npm install $ npm start"><pre class="notranslate">$ git clone https://github.com/AbyAbyss/electron-quick-start.git $ npm install $ npm start</pre></div> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24456144/100207552-b7494c00-2f2d-11eb-91d6-48ea63ef87ca.png"><img src="https://user-images.githubusercontent.com/24456144/100207552-b7494c00-2f2d-11eb-91d6-48ea63ef87ca.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional Information</h3>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows NT 10.0.18362.0 Windows Terminal version (if applicable): 0.5.2762.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows NT 10.0.18362.0 Windows Terminal version (if applicable): 0.5.2762.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# open Terminal with powershell # open git repo with more than 100 commits git log -100 # to fill in the entire screen with text Clear-Host # scroll up"><pre class="notranslate"><code class="notranslate"># open Terminal with powershell # open git repo with more than 100 commits git log -100 # to fill in the entire screen with text Clear-Host # scroll up </code></pre></div> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Cannot scroll up, <code class="notranslate">Clear-Host</code> cleared the terminal, all previous output is gone.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Scrolling up shows previous output. This repros with both Powershel 6.2.3 and 5.2.1.<br> This does not happen with the powershell terminal, which correctly removes all previous output.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.19013.0 Windows Terminal version: 0.6.2951.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.19013.0 Windows Terminal version: 0.6.2951.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>SSH to a linux. I tired centos7.</li> <li>Maximize the windows terminal window.</li> <li>Enter a command which print something to the terminal. for example "ls".</li> <li>Restore down the window.</li> <li>keep pressing enter to create new lines.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Nothing happens.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Previous message is shown again.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/36209665/69176554-d54fc580-0afd-11ea-9f72-e0643d87b989.jpg"><img src="https://user-images.githubusercontent.com/36209665/69176554-d54fc580-0afd-11ea-9f72-e0643d87b989.jpg" alt="bugreportjpg" style="max-width: 100%;"></a></p>
0
<p dir="auto">On Material UI Next, the Select component behaves different from Material UI 0.19.<br> On the old version, you could open the select box, and type to select an option, then press enter to select the option.</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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Opening the select box and typing one of the valid options should highlight said option and pressing enter should select it.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Typing / pressing enter doesn't select anything, but it used to work under Material UI 0.19</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li><a href="https://material-ui.com/demos/selects/" rel="nofollow">https://material-ui.com/demos/selects/</a></li> <li>Click on Age</li> <li>Type "Twenty" and press enter</li> <li>Try the same thing on the Native Select component below.</li> <li>Do the same steps on <a href="http://www.material-ui.com/#/components/select-field" rel="nofollow">http://www.material-ui.com/#/components/select-field</a> (It works here)</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">This small feature help users with navigation / selecting. It's expected behaviour in that component.</p> <h2 dir="auto">Your Environment</h2> <p dir="auto">It doesn't really matter, you can replicate on the Material UI Next website.</p>
<p dir="auto">I open the same popover in a small browser window on PC and on mobile. On PC the popover fits page width (if I stretch the window it becomes bigger), has padding etc. On mobile it goes over the edge of the screen.</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">Same as on PC:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10218892/32267779-77508530-befd-11e7-9ed1-c70d279d4e84.png"><img src="https://user-images.githubusercontent.com/10218892/32267779-77508530-befd-11e7-9ed1-c70d279d4e84.png" width="300" style="max-width: 100%;"></a></p> <h2 dir="auto">Current Behavior</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10218892/32267790-7ed8437e-befd-11e7-844e-a0daa455d25a.png"><img src="https://user-images.githubusercontent.com/10218892/32267790-7ed8437e-befd-11e7-844e-a0daa455d25a.png" width="300" style="max-width: 100%;"></a></p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.19</td> </tr> <tr> <td>React</td> <td>16.0.0</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
0
<p dir="auto">Recently introduced batch renormalization could be very useful, but without support for a fused batch norm, it has limited use (XLA JIT still has too many problems to be used instead of a fused version)</p>
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):<br> Yes</li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):<br> MacOSX 10.13.6</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:<br> No</li> <li>TensorFlow installed from (source or binary):<br> Binary</li> <li>TensorFlow version (use command below):<br> tf.version.VERSION=2.0.0-dev20190404<br> tf.version.GIT_VERSION=v1.12.0-11729-g98c3cfbf74</li> <li>Python version:<br> 3.6.8</li> <li>Bazel version (if compiling from source):<br> N/A</li> <li>GCC/Compiler version (if compiling from source):<br> N/A</li> <li>CUDA/cuDNN version:<br> N/A</li> <li>GPU model and memory:<br> N/A</li> </ul> <p dir="auto"><strong>Describe the current behavior</strong><br> When using <code class="notranslate">a + b</code> then <code class="notranslate">keras.layers.Add</code> in the same Keras model, I get an exception saying the name <code class="notranslate">"add"</code> was used twice. The problem goes away if I use <code class="notranslate">keras.layers.Add</code> first, or if I use twice the same operation (either <code class="notranslate">+</code> twice, or <code class="notranslate">keras.layers.Add</code> twice).</p> <p dir="auto"><strong>Describe the expected behavior</strong><br> I don't expect any name conflicts.</p> <p dir="auto"><strong>Code to reproduce the issue</strong><br> The following code raises a <code class="notranslate">ValueError</code> exception (full stacktrace below).</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from tensorflow import keras inputs = keras.layers.Input(shape=[2]) add1 = inputs + inputs add2 = keras.layers.Add()([inputs, inputs]) model = keras.models.Model(inputs=[inputs], outputs=[add1, add2])"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">import</span> <span class="pl-s1">keras</span> <span class="pl-s1">inputs</span> <span class="pl-c1">=</span> <span class="pl-s1">keras</span>.<span class="pl-s1">layers</span>.<span class="pl-v">Input</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span>[<span class="pl-c1">2</span>]) <span class="pl-s1">add1</span> <span class="pl-c1">=</span> <span class="pl-s1">inputs</span> <span class="pl-c1">+</span> <span class="pl-s1">inputs</span> <span class="pl-s1">add2</span> <span class="pl-c1">=</span> <span class="pl-s1">keras</span>.<span class="pl-s1">layers</span>.<span class="pl-v">Add</span>()([<span class="pl-s1">inputs</span>, <span class="pl-s1">inputs</span>]) <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">keras</span>.<span class="pl-s1">models</span>.<span class="pl-v">Model</span>(<span class="pl-s1">inputs</span><span class="pl-c1">=</span>[<span class="pl-s1">inputs</span>], <span class="pl-s1">outputs</span><span class="pl-c1">=</span>[<span class="pl-s1">add1</span>, <span class="pl-s1">add2</span>])</pre></div> <p dir="auto"><strong>Other info / logs</strong><br> Here is the full stacktrace:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ValueError Traceback (most recent call last) &lt;ipython-input-1-07b5faf0201d&gt; in &lt;module&gt; 4 add1 = inputs + inputs 5 add2 = keras.layers.Add()([inputs, inputs]) ----&gt; 6 model = keras.models.Model(inputs=[inputs], outputs=[add1, add2]) .../tensorflow/python/keras/engine/training.py in __init__(self, *args, **kwargs) 121 122 def __init__(self, *args, **kwargs): --&gt; 123 super(Model, self).__init__(*args, **kwargs) 124 # initializing _distribution_strategy here since it is possible to call 125 # predict on a model without compiling it. .../tensorflow/python/keras/engine/network.py in __init__(self, *args, **kwargs) 137 'inputs' in kwargs and 'outputs' in kwargs): 138 # Graph network --&gt; 139 self._init_graph_network(*args, **kwargs) 140 else: 141 # Subclassed network .../tensorflow/python/training/tracking/base.py in _method_wrapper(self, *args, **kwargs) 456 self._setattr_tracking = False # pylint: disable=protected-access 457 try: --&gt; 458 result = method(self, *args, **kwargs) 459 finally: 460 self._setattr_tracking = previous_value # pylint: disable=protected-access .../tensorflow/python/keras/engine/network.py in _init_graph_network(self, inputs, outputs, name) 284 # Keep track of the network's nodes and layers. 285 nodes, nodes_by_depth, layers, layers_by_depth = _map_graph_network( --&gt; 286 self.inputs, self.outputs) 287 self._network_nodes = nodes 288 self._nodes_by_depth = nodes_by_depth .../tensorflow/python/keras/engine/network.py in _map_graph_network(inputs, outputs) 1916 if all_names.count(name) != 1: 1917 raise ValueError('The name &quot;' + name + '&quot; is used ' + -&gt; 1918 str(all_names.count(name)) + ' times in the model. ' 1919 'All layer names should be unique.') 1920 return network_nodes, nodes_by_depth, layers, layers_by_depth ValueError: The name &quot;add&quot; is used 2 times in the model. All layer names should be unique."><pre class="notranslate"><span class="pl-v">ValueError</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">1</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-s1">b5faf0201d</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">4</span> <span class="pl-s1">add1</span> <span class="pl-c1">=</span> <span class="pl-s1">inputs</span> <span class="pl-c1">+</span> <span class="pl-s1">inputs</span> <span class="pl-c1">5</span> <span class="pl-s1">add2</span> <span class="pl-c1">=</span> <span class="pl-s1">keras</span>.<span class="pl-s1">layers</span>.<span class="pl-v">Add</span>()([<span class="pl-s1">inputs</span>, <span class="pl-s1">inputs</span>]) <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">6</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">keras</span>.<span class="pl-s1">models</span>.<span class="pl-v">Model</span>(<span class="pl-s1">inputs</span><span class="pl-c1">=</span>[<span class="pl-s1">inputs</span>], <span class="pl-s1">outputs</span><span class="pl-c1">=</span>[<span class="pl-s1">add1</span>, <span class="pl-s1">add2</span>]) ...<span class="pl-c1">/</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">python</span><span class="pl-c1">/</span><span class="pl-s1">keras</span><span class="pl-c1">/</span><span class="pl-s1">engine</span><span class="pl-c1">/</span><span class="pl-s1">training</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</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">121</span> <span class="pl-c1">122</span> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</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">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">123</span> <span class="pl-en">super</span>(<span class="pl-v">Model</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</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">124</span> <span class="pl-c"># initializing _distribution_strategy here since it is possible to call</span> <span class="pl-c1">125</span> <span class="pl-c"># predict on a model without compiling it.</span> ...<span class="pl-c1">/</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">python</span><span class="pl-c1">/</span><span class="pl-s1">keras</span><span class="pl-c1">/</span><span class="pl-s1">engine</span><span class="pl-c1">/</span><span class="pl-s1">network</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</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">137</span> <span class="pl-s">'inputs'</span> <span class="pl-c1">in</span> <span class="pl-s1">kwargs</span> <span class="pl-c1">and</span> <span class="pl-s">'outputs'</span> <span class="pl-c1">in</span> <span class="pl-s1">kwargs</span>): <span class="pl-c1">138</span> <span class="pl-c"># Graph network</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">139</span> <span class="pl-s1">self</span>.<span class="pl-en">_init_graph_network</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">140</span> <span class="pl-s1">else</span>: <span class="pl-c1">141</span> <span class="pl-c"># Subclassed network</span> ...<span class="pl-c1">/</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">python</span><span class="pl-c1">/</span><span class="pl-s1">training</span><span class="pl-c1">/</span><span class="pl-s1">tracking</span><span class="pl-c1">/</span><span class="pl-s1">base</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_method_wrapper</span>(<span class="pl-s1">self</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">456</span> <span class="pl-s1">self</span>.<span class="pl-s1">_setattr_tracking</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span> <span class="pl-c"># pylint: disable=protected-access</span> <span class="pl-c1">457</span> <span class="pl-k">try</span>: <span class="pl-c1">-</span><span class="pl-c1">-&gt;</span> <span class="pl-c1">458</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-en">method</span>(<span class="pl-s1">self</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">459</span> <span class="pl-k">finally</span>: <span class="pl-c1">460</span> <span class="pl-s1">self</span>.<span class="pl-s1">_setattr_tracking</span> <span class="pl-c1">=</span> <span class="pl-s1">previous_value</span> <span class="pl-c"># pylint: disable=protected-access</span> ...<span class="pl-c1">/</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">python</span><span class="pl-c1">/</span><span class="pl-s1">keras</span><span class="pl-c1">/</span><span class="pl-s1">engine</span><span class="pl-c1">/</span><span class="pl-s1">network</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_init_graph_network</span>(<span class="pl-s1">self</span>, <span class="pl-s1">inputs</span>, <span class="pl-s1">outputs</span>, <span class="pl-s1">name</span>) <span class="pl-c1">284</span> <span class="pl-c"># Keep track of the network's nodes and layers.</span> <span class="pl-c1">285</span> <span class="pl-s1">nodes</span>, <span class="pl-s1">nodes_by_depth</span>, <span class="pl-s1">layers</span>, <span class="pl-s1">layers_by_depth</span> <span class="pl-c1">=</span> <span class="pl-en">_map_graph_network</span>( <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">286</span> <span class="pl-s1">self</span>.<span class="pl-s1">inputs</span>, <span class="pl-s1">self</span>.<span class="pl-s1">outputs</span>) <span class="pl-c1">287</span> <span class="pl-s1">self</span>.<span class="pl-s1">_network_nodes</span> <span class="pl-c1">=</span> <span class="pl-s1">nodes</span> <span class="pl-c1">288</span> <span class="pl-s1">self</span>.<span class="pl-s1">_nodes_by_depth</span> <span class="pl-c1">=</span> <span class="pl-s1">nodes_by_depth</span> ...<span class="pl-c1">/</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">python</span><span class="pl-c1">/</span><span class="pl-s1">keras</span><span class="pl-c1">/</span><span class="pl-s1">engine</span><span class="pl-c1">/</span><span class="pl-s1">network</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_map_graph_network</span>(<span class="pl-s1">inputs</span>, <span class="pl-s1">outputs</span>) <span class="pl-c1">1916</span> <span class="pl-k">if</span> <span class="pl-s1">all_names</span>.<span class="pl-en">count</span>(<span class="pl-s1">name</span>) <span class="pl-c1">!=</span> <span class="pl-c1">1</span>: <span class="pl-c1">1917</span> <span class="pl-s1">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The name "'</span> <span class="pl-c1">+</span> <span class="pl-s1">name</span> <span class="pl-c1">+</span> <span class="pl-s">'" is used '</span> <span class="pl-c1">+</span> <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1918</span> <span class="pl-en">str</span>(<span class="pl-s1">all_names</span>.<span class="pl-en">count</span>(<span class="pl-s1">name</span>)) <span class="pl-c1">+</span> <span class="pl-s">' times in the model. '</span> <span class="pl-c1">1919</span> <span class="pl-s">'All layer names should be unique.'</span>) <span class="pl-c1">1920</span> <span class="pl-k">return</span> <span class="pl-s1">network_nodes</span>, <span class="pl-s1">nodes_by_depth</span>, <span class="pl-s1">layers</span>, <span class="pl-s1">layers_by_depth</span> <span class="pl-v">ValueError</span>: <span class="pl-v">The</span> <span class="pl-s1">name</span> <span class="pl-s">"add"</span> <span class="pl-c1">is</span> <span class="pl-s1">used</span> <span class="pl-c1">2</span> <span class="pl-s1">times</span> <span class="pl-c1">in</span> <span class="pl-s1">the</span> <span class="pl-s1">model</span>. <span class="pl-v">All</span> <span class="pl-s1">layer</span> <span class="pl-s1">names</span> <span class="pl-s1">should</span> <span class="pl-s1">be</span> <span class="pl-s1">unique</span>.</pre></div>
0
<p dir="auto">Hello everyone,</p> <p dir="auto">Would it be useful to have something like <em>numpy.stats</em> on the grounds of <em>scipy.stats.describe</em> ?<br> Though a simple implementation, I believe it would be very handy for Numpy users. More information on <em>scipy.stats.describe</em> here : <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.describe.html" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.describe.html</a> .</p> <p dir="auto">Thanks</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1172" rel="nofollow">http://projects.scipy.org/numpy/ticket/1172</a> on 2009-07-15 by trac user etu, assigned to unknown.</em></p> <blockquote> <blockquote> <blockquote> <p dir="auto">a = array([-128], int8)<br> a<br> array([-128], dtype=int8)<br> abs(a)<br> array([-128], dtype=int8)</p> </blockquote> </blockquote> </blockquote>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">vars_plugins</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ dpkg -l ansible Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= ii ansible 2.2.0.0-1ppa all A radically simple IT automation $ ansible --version ansible 2.2.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">$ dpkg -l ansible Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= ii ansible 2.2.0.0-1ppa all A radically simple IT automation $ ansible --version ansible 2.2.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Working on creating a vars plugin and discovered that in 2.2.0.0, the plugin is not getting any group vars. Downgrading to <strong>2.1.0.0</strong>, and the plugin can get data via <code class="notranslate">host.get_group_vars()</code>. I think this is potentially related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="149709510" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/15493" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/15493/hovercard" href="https://github.com/ansible/ansible/issues/15493">#15493</a></p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Simple single host inventory with the following <code class="notranslate">group_vars/all</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test: - a"><pre class="notranslate"><code class="notranslate">test: - a </code></pre></div> <p dir="auto">Create the following simple vars_plugin at <code class="notranslate">vars_plugins</code> in the root of my working directory:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from __future__ import (absolute_import, division, print_function) __metaclass__ = type class VarsModule(object): &quot;&quot;&quot; Loads variables for groups and / or hosts &quot;&quot;&quot; def __init__(self, inventory): self.inventory = inventory self.inventory_basedir = inventory.basedir() def append_test(self, groupvars): results = {} if 'test' in groupvars: results.update({'test_plugin': 'yes'}) return results def get_host_vars(self, host, vault_password=None): &quot;&quot;&quot; Get host specific variables. &quot;&quot;&quot; return self.append_test(host.get_group_vars())"><pre class="notranslate"><span class="pl-k">from</span> __future__ <span class="pl-k">import</span> (<span class="pl-s1">absolute_import</span>, <span class="pl-s1">division</span>, <span class="pl-s1">print_function</span>) <span class="pl-s1">__metaclass__</span> <span class="pl-c1">=</span> <span class="pl-s1">type</span> <span class="pl-k">class</span> <span class="pl-v">VarsModule</span>(<span class="pl-s1">object</span>): <span class="pl-s">"""</span> <span class="pl-s"> Loads variables for groups and / or hosts</span> <span class="pl-s"></span> <span class="pl-s"> """</span> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">inventory</span>): <span class="pl-s1">self</span>.<span class="pl-s1">inventory</span> <span class="pl-c1">=</span> <span class="pl-s1">inventory</span> <span class="pl-s1">self</span>.<span class="pl-s1">inventory_basedir</span> <span class="pl-c1">=</span> <span class="pl-s1">inventory</span>.<span class="pl-en">basedir</span>() <span class="pl-k">def</span> <span class="pl-en">append_test</span>(<span class="pl-s1">self</span>, <span class="pl-s1">groupvars</span>): <span class="pl-s1">results</span> <span class="pl-c1">=</span> {} <span class="pl-k">if</span> <span class="pl-s">'test'</span> <span class="pl-c1">in</span> <span class="pl-s1">groupvars</span>: <span class="pl-s1">results</span>.<span class="pl-en">update</span>({<span class="pl-s">'test_plugin'</span>: <span class="pl-s">'yes'</span>}) <span class="pl-k">return</span> <span class="pl-s1">results</span> <span class="pl-k">def</span> <span class="pl-en">get_host_vars</span>(<span class="pl-s1">self</span>, <span class="pl-s1">host</span>, <span class="pl-s1">vault_password</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): <span class="pl-s">""" Get host specific variables. """</span> <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">append_test</span>(<span class="pl-s1">host</span>.<span class="pl-en">get_group_vars</span>())</pre></div> <p dir="auto">And update <code class="notranslate">ansible.cfg</code> with</p> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[defaults] ... vars_plugins = vars_plugins"><pre class="notranslate"><span class="pl-en">[defaults]</span> ... <span class="pl-k">vars_plugins</span> = vars_plugins</pre></div> <p dir="auto">Then I test with the following command:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ansible -m debug -a &quot;var=hostvars[inventory_hostname]&quot; all"><pre class="notranslate">ansible -m debug -a <span class="pl-s"><span class="pl-pds">"</span>var=hostvars[inventory_hostname]<span class="pl-pds">"</span></span> all</pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I expect the vars_plugin to add what I wanted like so:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ ansible -m debug -a &quot;var=hostvars[inventory_hostname]&quot; all -vvvv Using /vagrant/test/ansible.cfg as config file Loaded callback minimal of type stdout, v2.0 test1.vagrant | SUCCESS =&gt; { &quot;hostvars[inventory_hostname]&quot;: { &quot;ansible_check_mode&quot;: false, &quot;ansible_version&quot;: { &quot;full&quot;: &quot;2.1.0.0&quot;, &quot;major&quot;: 2, &quot;minor&quot;: 1, &quot;revision&quot;: 0, &quot;string&quot;: &quot;2.1.0.0&quot; }, &quot;group_names&quot;: [ &quot;ungrouped&quot; ], &quot;groups&quot;: { &quot;all&quot;: [ &quot;test1.vagrant&quot; ], &quot;ungrouped&quot;: [ &quot;test1.vagrant&quot; ] }, &quot;inventory_dir&quot;: &quot;/vagrant/test/inventory/vagrant&quot;, &quot;inventory_file&quot;: null, &quot;inventory_hostname&quot;: &quot;test1.vagrant&quot;, &quot;inventory_hostname_short&quot;: &quot;test1&quot;, &quot;omit&quot;: &quot;__omit_place_holder__c1b35db14631b948fefe0c3827f517cea304164c&quot;, &quot;playbook_dir&quot;: &quot;.&quot;, &quot;test&quot;: [ &quot;a&quot; ], &quot;test_plugin&quot;: &quot;yes&quot; } }"><pre class="notranslate">$ ansible -m debug -a <span class="pl-s"><span class="pl-pds">"</span>var=hostvars[inventory_hostname]<span class="pl-pds">"</span></span> all -vvvv Using /vagrant/test/ansible.cfg as config file Loaded callback minimal of <span class="pl-c1">type</span> stdout, v2.0 test1.vagrant <span class="pl-k">|</span> SUCCESS =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>hostvars[inventory_hostname]<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>ansible_check_mode<span class="pl-pds">"</span></span>: false, <span class="pl-s"><span class="pl-pds">"</span>ansible_version<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>full<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>2.1.0.0<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>major<span class="pl-pds">"</span></span>: 2, <span class="pl-s"><span class="pl-pds">"</span>minor<span class="pl-pds">"</span></span>: 1, <span class="pl-s"><span class="pl-pds">"</span>revision<span class="pl-pds">"</span></span>: 0, <span class="pl-s"><span class="pl-pds">"</span>string<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>2.1.0.0<span class="pl-pds">"</span></span> }, <span class="pl-s"><span class="pl-pds">"</span>group_names<span class="pl-pds">"</span></span>: [ <span class="pl-s"><span class="pl-pds">"</span>ungrouped<span class="pl-pds">"</span></span> ], <span class="pl-s"><span class="pl-pds">"</span>groups<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>all<span class="pl-pds">"</span></span>: [ <span class="pl-s"><span class="pl-pds">"</span>test1.vagrant<span class="pl-pds">"</span></span> ], <span class="pl-s"><span class="pl-pds">"</span>ungrouped<span class="pl-pds">"</span></span>: [ <span class="pl-s"><span class="pl-pds">"</span>test1.vagrant<span class="pl-pds">"</span></span> ] }, <span class="pl-s"><span class="pl-pds">"</span>inventory_dir<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>/vagrant/test/inventory/vagrant<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>inventory_file<span class="pl-pds">"</span></span>: null, <span class="pl-s"><span class="pl-pds">"</span>inventory_hostname<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>test1.vagrant<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>inventory_hostname_short<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>test1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>omit<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>__omit_place_holder__c1b35db14631b948fefe0c3827f517cea304164c<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>playbook_dir<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>.<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>: [ <span class="pl-s"><span class="pl-pds">"</span>a<span class="pl-pds">"</span></span> ], <span class="pl-s"><span class="pl-pds">"</span>test_plugin<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>yes<span class="pl-pds">"</span></span> } }</pre></div> <p dir="auto">I downgraded from 2.2 step by step down to 2.1 and found all versions after <strong>2.1.0.0</strong> have this issue.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ ansible -m debug -a &quot;var=hostvars[inventory_hostname]&quot; all -vvvv Using /vagrant/test/ansible.cfg as config file Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc test1.vagrant | SUCCESS =&gt; { &quot;hostvars[inventory_hostname]&quot;: { &quot;ansible_check_mode&quot;: false, &quot;ansible_version&quot;: { &quot;full&quot;: &quot;2.2.0.0&quot;, &quot;major&quot;: 2, &quot;minor&quot;: 2, &quot;revision&quot;: 0, &quot;string&quot;: &quot;2.2.0.0&quot; }, &quot;group_names&quot;: [ &quot;ungrouped&quot; ], &quot;groups&quot;: { &quot;all&quot;: [ &quot;test1.vagrant&quot; ], &quot;ungrouped&quot;: [ &quot;test1.vagrant&quot; ] }, &quot;inventory_dir&quot;: &quot;/vagrant/test/inventory/vagrant&quot;, &quot;inventory_file&quot;: null, &quot;inventory_hostname&quot;: &quot;test1.vagrant&quot;, &quot;inventory_hostname_short&quot;: &quot;test1&quot;, &quot;omit&quot;: &quot;__omit_place_holder__857b85a3093a239f7cbe078c9c82877e33561bcd&quot;, &quot;playbook_dir&quot;: &quot;.&quot;, &quot;test&quot;: [ &quot;a&quot; ] } }"><pre class="notranslate">$ ansible -m debug -a <span class="pl-s"><span class="pl-pds">"</span>var=hostvars[inventory_hostname]<span class="pl-pds">"</span></span> all -vvvv Using /vagrant/test/ansible.cfg as config file Loading callback plugin minimal of <span class="pl-c1">type</span> stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc test1.vagrant <span class="pl-k">|</span> SUCCESS =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>hostvars[inventory_hostname]<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>ansible_check_mode<span class="pl-pds">"</span></span>: false, <span class="pl-s"><span class="pl-pds">"</span>ansible_version<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>full<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>2.2.0.0<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>major<span class="pl-pds">"</span></span>: 2, <span class="pl-s"><span class="pl-pds">"</span>minor<span class="pl-pds">"</span></span>: 2, <span class="pl-s"><span class="pl-pds">"</span>revision<span class="pl-pds">"</span></span>: 0, <span class="pl-s"><span class="pl-pds">"</span>string<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>2.2.0.0<span class="pl-pds">"</span></span> }, <span class="pl-s"><span class="pl-pds">"</span>group_names<span class="pl-pds">"</span></span>: [ <span class="pl-s"><span class="pl-pds">"</span>ungrouped<span class="pl-pds">"</span></span> ], <span class="pl-s"><span class="pl-pds">"</span>groups<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>all<span class="pl-pds">"</span></span>: [ <span class="pl-s"><span class="pl-pds">"</span>test1.vagrant<span class="pl-pds">"</span></span> ], <span class="pl-s"><span class="pl-pds">"</span>ungrouped<span class="pl-pds">"</span></span>: [ <span class="pl-s"><span class="pl-pds">"</span>test1.vagrant<span class="pl-pds">"</span></span> ] }, <span class="pl-s"><span class="pl-pds">"</span>inventory_dir<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>/vagrant/test/inventory/vagrant<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>inventory_file<span class="pl-pds">"</span></span>: null, <span class="pl-s"><span class="pl-pds">"</span>inventory_hostname<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>test1.vagrant<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>inventory_hostname_short<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>test1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>omit<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>__omit_place_holder__857b85a3093a239f7cbe078c9c82877e33561bcd<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>playbook_dir<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>.<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>: [ <span class="pl-s"><span class="pl-pds">"</span>a<span class="pl-pds">"</span></span> ] } }</pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.5.0 config file = /home/conductor/playbooks/ansible.cfg configured module search path = ['/home/conductor/playbooks/plugins/modules'] ansible python module location = /home/conductor/env/lib/python3.5/site-packages/ansible executable location = /home/conductor/env/bin/ansible python version = 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">ansible 2.5.0 config file = /home/conductor/playbooks/ansible.cfg configured module search path = ['/home/conductor/playbooks/plugins/modules'] ansible python module location = /home/conductor/env/lib/python3.5/site-packages/ansible executable location = /home/conductor/env/bin/ansible python version = 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CACHE_PLUGIN(/home/conductor/playbooks/ansible.cfg) = jsonfile CACHE_PLUGIN_CONNECTION(/home/conductor/playbooks/ansible.cfg) = ~/.ansible/facts CACHE_PLUGIN_TIMEOUT(/home/conductor/playbooks/ansible.cfg) = 86400 DEFAULT_DEBUG(/home/conductor/playbooks/ansible.cfg) = False DEFAULT_GATHERING(/home/conductor/playbooks/ansible.cfg) = smart DEFAULT_JINJA2_EXTENSIONS(/home/conductor/playbooks/ansible.cfg) = jinja2.ext.do,jinja2.ext.i18n INJECT_FACTS_AS_VARS(/home/conductor/playbooks/ansible.cfg) = False MERGE_MULTIPLE_CLI_TAGS(/home/conductor/playbooks/ansible.cfg) = True RETRY_FILES_ENABLED(/home/conductor/playbooks/ansible.cfg) = False"><pre class="notranslate"><code class="notranslate">CACHE_PLUGIN(/home/conductor/playbooks/ansible.cfg) = jsonfile CACHE_PLUGIN_CONNECTION(/home/conductor/playbooks/ansible.cfg) = ~/.ansible/facts CACHE_PLUGIN_TIMEOUT(/home/conductor/playbooks/ansible.cfg) = 86400 DEFAULT_DEBUG(/home/conductor/playbooks/ansible.cfg) = False DEFAULT_GATHERING(/home/conductor/playbooks/ansible.cfg) = smart DEFAULT_JINJA2_EXTENSIONS(/home/conductor/playbooks/ansible.cfg) = jinja2.ext.do,jinja2.ext.i18n INJECT_FACTS_AS_VARS(/home/conductor/playbooks/ansible.cfg) = False MERGE_MULTIPLE_CLI_TAGS(/home/conductor/playbooks/ansible.cfg) = True RETRY_FILES_ENABLED(/home/conductor/playbooks/ansible.cfg) = False </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">I'm trying to use the modern role include syntax to mix tasks and roles import in a playbook but switching to "classic manner" to the "import_include" syntax cause undefined variables issues.</p> <p dir="auto">When using the classic syntax, the role's defaults are visible inside the playbook file and other roles. When using import_roles, the role's defaults are visible only inside the role that declare them.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: localhost tasks: - import_role: { name: myrole } - debug: msg: &quot;myrole default: {{ myrole_default }}&quot;"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">import_role</span>: <span class="pl-s">{ name: myrole }</span> - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>myrole default: {{ myrole_default }}<span class="pl-pds">"</span></span></pre></div> <p dir="auto">file: roles/myrole/defaults/main.yaml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="myrole_default: &quot;hello&quot;"><pre class="notranslate"><span class="pl-ent">myrole_default</span>: <span class="pl-s"><span class="pl-pds">"</span>hello<span class="pl-pds">"</span></span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [debug] ***************************************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;myrole default: hello&quot; }"><pre class="notranslate"><code class="notranslate">TASK [debug] ***************************************************************************************** ok: [localhost] =&gt; { "msg": "myrole default: hello" } </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [debug] ***************************************************************************************** task path: /Users/jddupas/Projects/python/playbooks/playbook.yaml:4 fatal: [localhost]: FAILED! =&gt; { &quot;msg&quot;: &quot;The task includes an option with an undefined variable. The error was: 'myrole_default' is undefined\n\nThe error appears to have been in '/Users/jddupas/Projects/python/playbooks/playbook.yaml': line 4, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n - import_role: { name: myrole }\n - debug:\n ^ here\n&quot; }"><pre class="notranslate"><code class="notranslate">TASK [debug] ***************************************************************************************** task path: /Users/jddupas/Projects/python/playbooks/playbook.yaml:4 fatal: [localhost]: FAILED! =&gt; { "msg": "The task includes an option with an undefined variable. The error was: 'myrole_default' is undefined\n\nThe error appears to have been in '/Users/jddupas/Projects/python/playbooks/playbook.yaml': line 4, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n - import_role: { name: myrole }\n - debug:\n ^ here\n" } </code></pre></div> <p dir="auto">Note: When using the classic syntax, it works fine (but I can't mix tasks and roles as I need):</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: localhost roles: - myrole tasks: - debug: msg: &quot;myrole default: {{ myrole_default }}&quot;"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">roles</span>: - <span class="pl-s">myrole</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>myrole default: {{ myrole_default }}<span class="pl-pds">"</span></span></pre></div>
0
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Not sure if this is the same bug or two different.</p> <ol dir="auto"> <li> <p dir="auto">Whenever SkinnedMesh origin is out of camera frustum, the mesh gets culled even if its actual transformed geometry must be visible on the screen.<br> Seems like the bounding box used for clipping is not updated with animation.</p> </li> <li> <p dir="auto">Same happens for shadows.<br> When the SkinnedMesh moves away from its origin in light space, its shadow gets clipped/partially clipped by pointlight's perspectivecamera (I guess).</p> </li> </ol> <p dir="auto">Here's an example in jsfiddle:<br> <a href="https://jsfiddle.net/vtb6z50j/" rel="nofollow">https://jsfiddle.net/vtb6z50j/</a><br> Sorry for inline json. The example was dependent of viewport dimensions. Fixed.</p> <p dir="auto">And its not light.shadow.camera.far, light.shadow.radius bug.<br> Actually the use case for this was to make a complete animation in any 3d editor (blender in my case) just to play it as is in three.js. So the character isn't moved by mesh.position, there is no need to sync movement/animation and hardcode movement positions.<br> It just plays baked animation!</p> <p dir="auto">Update: yes, making frustumCulled = false does fix both problems (which is enough for me to continue),<br> but most engines update object bbox with root motion/transforms.<br> Update2: actual temporary fix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="251487574" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/11991" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/11991/hovercard?comment_id=323610001&amp;comment_type=issue_comment" href="https://github.com/mrdoob/three.js/issues/11991#issuecomment-323610001">#11991 (comment)</a></p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r87</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r85</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Firefox</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Hi,</p> <p dir="auto">I've been playing around with a model for a while, and noticed that if I load it in three.js and zoom closely to the head, it disappears, along with the helmet.</p> <p dir="auto">I'm sure it's not the clipping field, because they disappear suddenly, from one frame to another.</p> <p dir="auto">I'm also sure this bug is not limited to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/donmccurdy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/donmccurdy">@donmccurdy</a> 's gltf viewer ( <a href="https://gltf-viewer.donmccurdy.com/" rel="nofollow">https://gltf-viewer.donmccurdy.com/</a> ), as I tested it in a project made from scratch recently, and the bug appears there, too.</p> <p dir="auto">It works flawlessly in the babylon sandbox: <a href="http://sandbox.babylonjs.com/" rel="nofollow">http://sandbox.babylonjs.com/</a>, so I believe this has something to do with three.js.</p> <p dir="auto">Also, I think it has something to do with the fact that the mesh is skinned. If I apply the armature pose in blender before exporting, then the model appears correctly in three.js as well.</p> <p dir="auto">I attach a zip with 2 model files, one with skin, the other one with the applied pose:<br> <a href="https://github.com/mrdoob/three.js/files/2205971/player.zip">player.zip</a></p> <p dir="auto">Three.js:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10392261/42885336-02355ef4-8aa1-11e8-897b-531b6a133272.PNG"><img src="https://user-images.githubusercontent.com/10392261/42885336-02355ef4-8aa1-11e8-897b-531b6a133272.PNG" alt="capture2" style="max-width: 100%;"></a></p> <p dir="auto">Babylon.js:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10392261/42885318-f717b404-8aa0-11e8-8611-1cd9f75d7a1c.PNG"><img src="https://user-images.githubusercontent.com/10392261/42885318-f717b404-8aa0-11e8-8611-1cd9f75d7a1c.PNG" alt="capture" style="max-width: 100%;"></a></p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r94</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="All Icons of the bottom navigation should be in one row."><pre class="notranslate"><code class="notranslate">All Icons of the bottom navigation should be in one row. </code></pre></div> <h2 dir="auto">Current Behavior</h2> <p dir="auto">On Firefox on iOS the last icon of the bottom navigation escapes the row of icons. See picture attached. This behavior is only seen in Firefox on iOS</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">goto: demo.cliniserve.de -&gt; start -&gt; 541661-&gt; next</p> <h2 dir="auto">Context</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4281978/35094291-206a336c-fc45-11e7-8355-2572a5fee239.png"><img width="366" alt="image-1" src="https://user-images.githubusercontent.com/4281978/35094291-206a336c-fc45-11e7-8355-2572a5fee239.png" style="max-width: 100%;"></a></p> <h2 dir="auto">Your Environment</h2> <p dir="auto">This error only occures on Firefox on an iOS device (iPhone 6)</p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>0.20.0</td> </tr> <tr> <td>React</td> <td>15.6.2</td> </tr> <tr> <td>browser</td> <td>Firefox on iOS</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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">In <strong>Chrome</strong> it works as expected. <g-emoji class="g-emoji" alias="ok_hand" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44c.png">👌</g-emoji><br> The text on an input field is not stripped.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1302282/33133827-4859783e-cf9e-11e7-91ef-e667fe985a39.png"><img src="https://user-images.githubusercontent.com/1302282/33133827-4859783e-cf9e-11e7-91ef-e667fe985a39.png" alt="screenshot from 2017-11-22 16-00-19" style="max-width: 100%;"></a></p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">In <strong>Firefox</strong>, the text on an input field is bottom stripped for some letters. 'g/y/j/p/q' for instance.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1302282/33133899-826a9972-cf9e-11e7-9b5e-177b579dafa9.png"><img src="https://user-images.githubusercontent.com/1302282/33133899-826a9972-cf9e-11e7-9b5e-177b579dafa9.png" alt="screenshot from 2017-11-22 15-59-39" style="max-width: 100%;"></a></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Go to the <a href="https://material-ui-next.com/demos/text-fields/" rel="nofollow">MaterialUI Next website</a></li> <li>On the first field, type some: "The letters gyjpq in Firefox".</li> <li>You'll see the bottom of the "gyjpq" are stripped.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">As an extra, one thing I noticed is:</p> <p dir="auto">The letters are bottom stripped.<br> <strong>But</strong> if you select the text, then the issue is "solved" the text is perfectly aligned. (unless you append some more text).</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1302282/33134007-dd0a238e-cf9e-11e7-9fde-3b425002f033.png"><img src="https://user-images.githubusercontent.com/1302282/33134007-dd0a238e-cf9e-11e7-9fde-3b425002f033.png" alt="screenshot from 2017-11-22 15-59-53" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1302282/33134009-df105bda-cf9e-11e7-836b-eccfb9649374.png"><img src="https://user-images.githubusercontent.com/1302282/33134009-df105bda-cf9e-11e7-836b-eccfb9649374.png" alt="screenshot from 2017-11-22 16-00-03" style="max-width: 100%;"></a></p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.21</td> </tr> <tr> <td>React</td> <td>15.4.2</td> </tr> <tr> <td>browser</td> <td>Firefox Quantum 57.0 (64-bit)</td> </tr> </tbody> </table>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.4.1</li> <li>Operating System version: CentOS 7.6</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>kill the process</li> <li>see the following exception in the logs</li> </ol> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-11-11 10:12:30.809 ERROR 5810 --- [NettyServerWorker-9-2] i.n.u.c.D.rejectedExecution : Failed to submit a listener notification task. Event loop shut down? java.lang.NoClassDefFoundError: io/netty/util/concurrent/GlobalEventExecutor$2 at io.netty.util.concurrent.GlobalEventExecutor.startThread(GlobalEventExecutor.java:227) ~[netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.GlobalEventExecutor.execute(GlobalEventExecutor.java:215) ~[netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.java:841) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:498) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:615) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:604) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:96) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1089) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_201] Caused by: java.lang.ClassNotFoundException: io.netty.util.concurrent.GlobalEventExecutor$2 at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_201] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_201] at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93) ~[data-service.jar:0.0.1] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_201] ... 11 common frames omitted 2019-11-11 10:12:30.810 WARN 5810 --- [Thread-6] o.apache.dubbo.config.DubboShutdownHook : [DUBBO] Invalid value for MonthOfYear (valid values 1 - 12): 0, dubbo version: 2.7.4.1, current host: 10.31.120.92 java.time.DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0 at java.time.temporal.ValueRange.checkValidValue(ValueRange.java:311) ~[na:1.8.0_201] at java.time.temporal.ChronoField.checkValidValue(ChronoField.java:703) ~[na:1.8.0_201] at java.time.LocalDate.of(LocalDate.java:267) ~[na:1.8.0_201] at java.time.LocalDateTime.of(LocalDateTime.java:336) ~[na:1.8.0_201] at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.decodeMsDosFormatDateTime(CentralDirectoryFileHeader.java:127) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.getTime(CentralDirectoryFileHeader.java:116) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarEntry.&lt;init&gt;(JarEntry.java:58) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:316) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:300) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFileEntries.doGetEntry(JarFileEntries.java:288) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:243) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:203) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFile.getEntry(JarFile.java:225) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.LaunchedURLClassLoader.lambda$definePackage$0(LaunchedURLClassLoader.java:138) ~[data-service.jar:0.0.1] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_201] at org.springframework.boot.loader.LaunchedURLClassLoader.definePackage(LaunchedURLClassLoader.java:130) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.LaunchedURLClassLoader.definePackageIfNecessary(LaunchedURLClassLoader.java:112) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:81) ~[data-service.jar:0.0.1] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_201] at org.apache.dubbo.qos.protocol.QosProtocolWrapper.stopServer(QosProtocolWrapper.java:112) ~[dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.qos.protocol.QosProtocolWrapper.destroy(QosProtocolWrapper.java:79) ~[dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.destroy(ProtocolFilterWrapper.java:135) ~[dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.destroy(ProtocolListenerWrapper.java:79) ~[dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.config.DubboShutdownHook.destroyProtocols(DubboShutdownHook.java:103) [dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.config.DubboShutdownHook.doDestroy(DubboShutdownHook.java:91) [dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.config.spring.extension.SpringExtensionFactory$ShutdownHookListener.onApplicationEvent(SpringExtensionFactory.java:114) [dubbo-2.7.4.1.jar!/:2.7.4.1] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1009) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:945) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]"><pre class="notranslate"><code class="notranslate">2019-11-11 10:12:30.809 ERROR 5810 --- [NettyServerWorker-9-2] i.n.u.c.D.rejectedExecution : Failed to submit a listener notification task. Event loop shut down? java.lang.NoClassDefFoundError: io/netty/util/concurrent/GlobalEventExecutor$2 at io.netty.util.concurrent.GlobalEventExecutor.startThread(GlobalEventExecutor.java:227) ~[netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.GlobalEventExecutor.execute(GlobalEventExecutor.java:215) ~[netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.java:841) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:498) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:615) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:604) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:96) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1089) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-all-4.1.42.Final.jar!/:4.1.42.Final] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_201] Caused by: java.lang.ClassNotFoundException: io.netty.util.concurrent.GlobalEventExecutor$2 at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_201] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_201] at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93) ~[data-service.jar:0.0.1] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_201] ... 11 common frames omitted 2019-11-11 10:12:30.810 WARN 5810 --- [Thread-6] o.apache.dubbo.config.DubboShutdownHook : [DUBBO] Invalid value for MonthOfYear (valid values 1 - 12): 0, dubbo version: 2.7.4.1, current host: 10.31.120.92 java.time.DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0 at java.time.temporal.ValueRange.checkValidValue(ValueRange.java:311) ~[na:1.8.0_201] at java.time.temporal.ChronoField.checkValidValue(ChronoField.java:703) ~[na:1.8.0_201] at java.time.LocalDate.of(LocalDate.java:267) ~[na:1.8.0_201] at java.time.LocalDateTime.of(LocalDateTime.java:336) ~[na:1.8.0_201] at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.decodeMsDosFormatDateTime(CentralDirectoryFileHeader.java:127) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.getTime(CentralDirectoryFileHeader.java:116) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarEntry.&lt;init&gt;(JarEntry.java:58) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:316) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:300) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFileEntries.doGetEntry(JarFileEntries.java:288) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:243) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:203) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.jar.JarFile.getEntry(JarFile.java:225) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.LaunchedURLClassLoader.lambda$definePackage$0(LaunchedURLClassLoader.java:138) ~[data-service.jar:0.0.1] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_201] at org.springframework.boot.loader.LaunchedURLClassLoader.definePackage(LaunchedURLClassLoader.java:130) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.LaunchedURLClassLoader.definePackageIfNecessary(LaunchedURLClassLoader.java:112) ~[data-service.jar:0.0.1] at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:81) ~[data-service.jar:0.0.1] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_201] at org.apache.dubbo.qos.protocol.QosProtocolWrapper.stopServer(QosProtocolWrapper.java:112) ~[dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.qos.protocol.QosProtocolWrapper.destroy(QosProtocolWrapper.java:79) ~[dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.destroy(ProtocolFilterWrapper.java:135) ~[dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.destroy(ProtocolListenerWrapper.java:79) ~[dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.config.DubboShutdownHook.destroyProtocols(DubboShutdownHook.java:103) [dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.config.DubboShutdownHook.doDestroy(DubboShutdownHook.java:91) [dubbo-2.7.4.1.jar!/:2.7.4.1] at org.apache.dubbo.config.spring.extension.SpringExtensionFactory$ShutdownHookListener.onApplicationEvent(SpringExtensionFactory.java:114) [dubbo-2.7.4.1.jar!/:2.7.4.1] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1009) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:945) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE] </code></pre></div>
<ul dir="auto"> <li>[X ] 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>[X ] I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.7 &amp; master</li> <li>Operating System version: linux</li> <li>Java version: JDK8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>update <a href="https://github.com/apache/dubbo/blob/master/dubbo-config/dubbo-config-spring/src/test/resources/org/apache/dubbo/config/spring/demo-provider.xml">https://github.com/apache/dubbo/blob/master/dubbo-config/dubbo-config-spring/src/test/resources/org/apache/dubbo/config/spring/demo-provider.xml</a><br> from<br> &lt;dubbo:protocol name="${dubbo.protocol.name}" port="${dubbo.protocol.port}"/&gt;<br> to<br> &lt;dubbo:protocol name="${dubbo.protocol.name}" port="${dubbo.protocol.port:8080}"/&gt;</li> <li>run testProviderXml() in <a href="https://github.com/apache/dubbo/blob/master/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/DubboNamespaceHandlerTest.java">https://github.com/apache/dubbo/blob/master/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/DubboNamespaceHandlerTest.java</a></li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">UT should pass</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">UT fail as flow:<br> java.lang.AssertionError:<br> Expected: is &lt;20813&gt;<br> but: was &lt;8080&gt;<br> Expected :is &lt;20813&gt;<br> Actual :&lt;8080&gt;</p> <p dir="auto">This issue may related with previous issue or change:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="603814574" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/6035" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/6035/hovercard" href="https://github.com/apache/dubbo/issues/6035">#6035</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="608102933" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/6079" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/6079/hovercard" href="https://github.com/apache/dubbo/pull/6079">#6079</a></p>
0
<p dir="auto">I think it would be possible for Deno to support ARM as rust can be compiled for ARM architecture devices</p>
<p dir="auto">I was originally excited about the security-consciousness of deno, but I am now struggling to see the benefit.</p> <p dir="auto">It strikes me that the security is too broad-grained in two ways:</p> <ol dir="auto"> <li>It tries to make do with <a href="https://deno.land/manual.html#flags" rel="nofollow">± five flags</a> something that other approaches need a much more elaborate vocabulary to pull off (e.g. <a href="https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html#//apple_ref/doc/uid/TP40011195-CH4-SW1" rel="nofollow">Apple's sandboxing</a> or <a href="http://web.mit.edu/rhel-doc/5/RHEL-5-manual/Deployment_Guide-en-US/ch-selinux.html" rel="nofollow">SELinux</a>). And with the current flags it seems there has already been discovered some uncomfortable overlap between e.g. "file" access vs. all other access under many OSes.</li> <li>It is process-level. I guess it's handy to not trust someone else's executable as much, but honestly how much "other people's code" we use these days <em>doesn't</em> semi-legitimately need <code class="notranslate">--allow-write</code> and <code class="notranslate">--allow-net</code> access? That's usually been the point of most tools we have to use, <code class="notranslate">git</code> and <code class="notranslate">heroku</code> and <code class="notranslate">kubectl</code> and <code class="notranslate">certbot</code> not to mention <code class="notranslate">webpack</code> with <code class="notranslate">@babel/preset-env</code>…</li> </ol> <p dir="auto">Putting the two together… isn't it the operating system's job to privilege processes? With some googling and platform-specific shell-fu, couldn't I already prevent pretty much anything I launch from gaining net access if I cared to?</p> <p dir="auto">What would seem a lot more useful problem to solve, if deno could, is per-import privileges. My process as a whole needs a lot of access. But the helper libraries it imports often don't. (<code class="notranslate">left-pad</code>, <code class="notranslate">event-stream</code>… the current --allow flags actually seem more appropriate at that level… my server needs everything but some parser it uses needs nothing.)</p>
0