text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">When building libtorch with cmake/make directly, the generated <code class="notranslate">TorchConfigVersion.cmake</code> will always show 1.0.0 as the version number</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>Clone Pytorch</li> <li>Checkout v1.0.0</li> <li>Build libtorch with cmake/make</li> <li>Look at <code class="notranslate">TorchConfigVersion.cmake</code></li> </ol> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="git clone https://github.com/pytorch/pytorch.git cd pytorch git checkout v1.1.0 git submodule update --init --recursive mkdir build cd build cmake \ -DBUILDING_WITH_TORCH_LIBS=ON \ -DBUILD_BINARY=False \ -DBUILD_CAFFE2_OPS=True \ -DBUILD_PYTHON=False \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TEST=True \ -DBUILD_TORCH=ON \ -DCAFFE2_STATIC_LINK_CUDA=False \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS= \ -DCMAKE_C_FLAGS= \ -DCMAKE_EXE_LINKER_FLAGS= \ -DCMAKE_SHARED_LINKER_FLAGS= \ -DINSTALL_TEST=True \ -DNCCL_EXTERNAL=True \ -DONNX_ML=False \ -DONNX_NAMESPACE=onnx_torch \ -DTHD_SO_VERSION=1 \ -DUSE_CUDA=True \ -DUSE_DISTRIBUTED=True \ -DUSE_FBGEMM=True \ -DUSE_FFMPEG=False \ -DUSE_LEVELDB=False \ -DUSE_LMDB=False \ -DUSE_MKLDNN=False \ -DUSE_NCCL=False \ -DUSE_NNPACK=True \ -DUSE_NUMPY=True \ -DUSE_OPENCV=False \ -DUSE_QNNPACK=True \ -DUSE_ROCM=False \ -DUSE_SYSTEM_EIGEN_INSTALL=OFF \ -DUSE_SYSTEM_NCCL=False \ -DUSE_TENSORRT=False \ -DCMAKE_PREFIX_PATH=/usr/local \ .. make -j8 cat ./TorchConfigVersion.cmake "><pre class="notranslate">git clone https://github.com/pytorch/pytorch.git <span class="pl-c1">cd</span> pytorch git checkout v1.1.0 git submodule update --init --recursive mkdir build <span class="pl-c1">cd</span> build cmake \ -DBUILDING_WITH_TORCH_LIBS=ON \ -DBUILD_BINARY=False \ -DBUILD_CAFFE2_OPS=True \ -DBUILD_PYTHON=False \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TEST=True \ -DBUILD_TORCH=ON \ -DCAFFE2_STATIC_LINK_CUDA=False \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS= \ -DCMAKE_C_FLAGS= \ -DCMAKE_EXE_LINKER_FLAGS= \ -DCMAKE_SHARED_LINKER_FLAGS= \ -DINSTALL_TEST=True \ -DNCCL_EXTERNAL=True \ -DONNX_ML=False \ -DONNX_NAMESPACE=onnx_torch \ -DTHD_SO_VERSION=1 \ -DUSE_CUDA=True \ -DUSE_DISTRIBUTED=True \ -DUSE_FBGEMM=True \ -DUSE_FFMPEG=False \ -DUSE_LEVELDB=False \ -DUSE_LMDB=False \ -DUSE_MKLDNN=False \ -DUSE_NCCL=False \ -DUSE_NNPACK=True \ -DUSE_NUMPY=True \ -DUSE_OPENCV=False \ -DUSE_QNNPACK=True \ -DUSE_ROCM=False \ -DUSE_SYSTEM_EIGEN_INSTALL=OFF \ -DUSE_SYSTEM_NCCL=False \ -DUSE_TENSORRT=False \ -DCMAKE_PREFIX_PATH=/usr/local \ .. make -j8 cat ./TorchConfigVersion.cmake </pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">The first line in <code class="notranslate">TorchConfigVersion.cmake</code> should be:<br> <code class="notranslate">set(PACKAGE_VERSION "1.1.0")</code></p> <h2 dir="auto">Environment</h2> <p dir="auto">PyTorch version: 1.1.0<br> Is debug build: No<br> CUDA used to build PyTorch: 10.0.130</p> <p dir="auto">OS: Ubuntu 16.04.6 LTS<br> GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609<br> CMake version: version 3.5.1</p> <p dir="auto">Python version: 2.7<br> Is CUDA available: Yes<br> CUDA runtime version: 10.0.130<br> GPU models and configuration:<br> GPU 0: GeForce GTX 1080 Ti</p> <p dir="auto">Nvidia driver version: 410.104<br> cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.0</p> <p dir="auto">Versions of relevant libraries:<br> [pip] numpy==1.16.4<br> [pip] torch==1.1.0<br> [conda] Could not collect</p> <h2 dir="auto">Additional context</h2> <p dir="auto">This was also tested on an ARM/Linux system with the same spurious results.</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">CMake version (in <code class="notranslate">TorchConfigVersion.cmake</code>) seems stuck to 1.0.0 in the latest libtorch C++ windows packages (CUDA or not).<br> This problem may also have affected the previous 1.0.1 packages.</p> <p dir="auto">Another big problem for me is that I can't find any more link to download libtorch C++ 1.0.1 packages,<br> upon which I based all my current developments.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Download the latest package here:<br> <a href="https://download.pytorch.org/libtorch/cu90/libtorch-win-shared-with-deps-latest.zip" rel="nofollow">https://download.pytorch.org/libtorch/cu90/libtorch-win-shared-with-deps-latest.zip</a></p> <h2 dir="auto">Expected behavior</h2> <p dir="auto"><code class="notranslate">TorchConfigVersion.cmake</code> with correct version.</p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version: 1.1</li> <li>OS: Windows</li> <li>How you installed PyTorch: binary package</li> <li>CUDA/cuDNN version: 9</li> </ul> <p dir="auto">Thanks for your help,</p> <p dir="auto">Albert</p>
1
<p dir="auto">I haven't tried it yet, but does webpack reduce dependencies according to the package version? So if a module with the same version number is included from two different directories, e.g. <code class="notranslate">A/node_modules/underscore@1.x</code> and <code class="notranslate">B/node_modules/underscore@1.x</code>, webpack should include it only once into the bundle.</p> <p dir="auto">It would be even better if webpack includes only one version as long as the major version of those two dependencies don't differ. So if <code class="notranslate">myLib1</code> depends on <code class="notranslate">underscore@1.1.3</code> and <code class="notranslate">myLib2</code> depends on <code class="notranslate">underscore@1.0.2</code>, webpack should include only <code class="notranslate">underscore@1.1.3</code> because - according to <a href="http://semver.org/" rel="nofollow">semver</a> - it won't break <code class="notranslate">myLib2</code>. Maybe this should be opt-in as it is potential risky.</p> <p dir="auto">In any case webpack should log a warning if two versions of the same module are included.</p>
<p dir="auto">Hi <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sokra/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sokra">@sokra</a></p> <p dir="auto">When I try to require('jquery'), which is a jam module installed under web_modules, I always get the following message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- Serving static content. - dev-server on port 8081. &gt; Open http://localhost:8081/ in your browser. Error: watch ENOENT at errnoException (fs.js:806:11) at FSWatcher.start (fs.js:837:11) at Object.fs.watch (fs.js:861:11) at module.exports (/Users/karlvanrompaey/Documents/apps/experiments/webpack/jam-app/node_modules/webpack/lib/webpack.js:223:23) at Array.forEach (native) at EventEmitter.&lt;anonymous&gt; (/Users/karlvanrompaey/Documents/apps/experiments/webpack/jam-app/node_modules/webpack/lib/webpack.js:222:19) at EventEmitter.emit (events.js:123:20) at writingFinished (/Users/karlvanrompaey/Documents/apps/experiments/webpack/jam-app/node_modules/webpack/lib/webpack.js:522:19) at /Users/karlvanrompaey/Documents/apps/experiments/webpack/jam-app/node_modules/webpack/lib/webpack.js:379:30 at buildTree (/Users/karlvanrompaey/Documents/apps/experiments/webpack/jam-app/node_modules/webpack/lib/buildDeps.js:103:3) Hash: 4732db73d220259503822d5a079cf898 Compile Time: 677ms Chunks: 1 Modules: 6 Modules including duplicates: 6 Modules first chunk: 6 &lt;id&gt; &lt;size&gt; &lt;filename&gt; dev.bundle.js 0 11 ./_template/entry.js [caching] 1 45 ./app/app.js [caching] 2 259828 ./app/web_modules/jquery/jquery.js [caching] 3 533 (webpack)/buildin/__webpack_amd_define.js [caching] 4 428 (webpack)/buildin/__webpack_amd_require.js [caching] 5 24 (webpack)/buildin/__webpack_options_amd.loader.js!(webpack)/buildin/__webpack_options_amd.loader.js [caching] webpack: bundle is now VALID. "><pre class="notranslate"><code class="notranslate">- Serving static content. - dev-server on port 8081. &gt; Open http://localhost:8081/ in your browser. Error: watch ENOENT at errnoException (fs.js:806:11) at FSWatcher.start (fs.js:837:11) at Object.fs.watch (fs.js:861:11) at module.exports (/Users/karlvanrompaey/Documents/apps/experiments/webpack/jam-app/node_modules/webpack/lib/webpack.js:223:23) at Array.forEach (native) at EventEmitter.&lt;anonymous&gt; (/Users/karlvanrompaey/Documents/apps/experiments/webpack/jam-app/node_modules/webpack/lib/webpack.js:222:19) at EventEmitter.emit (events.js:123:20) at writingFinished (/Users/karlvanrompaey/Documents/apps/experiments/webpack/jam-app/node_modules/webpack/lib/webpack.js:522:19) at /Users/karlvanrompaey/Documents/apps/experiments/webpack/jam-app/node_modules/webpack/lib/webpack.js:379:30 at buildTree (/Users/karlvanrompaey/Documents/apps/experiments/webpack/jam-app/node_modules/webpack/lib/buildDeps.js:103:3) Hash: 4732db73d220259503822d5a079cf898 Compile Time: 677ms Chunks: 1 Modules: 6 Modules including duplicates: 6 Modules first chunk: 6 &lt;id&gt; &lt;size&gt; &lt;filename&gt; dev.bundle.js 0 11 ./_template/entry.js [caching] 1 45 ./app/app.js [caching] 2 259828 ./app/web_modules/jquery/jquery.js [caching] 3 533 (webpack)/buildin/__webpack_amd_define.js [caching] 4 428 (webpack)/buildin/__webpack_amd_require.js [caching] 5 24 (webpack)/buildin/__webpack_options_amd.loader.js!(webpack)/buildin/__webpack_options_amd.loader.js [caching] webpack: bundle is now VALID. </code></pre></div> <p dir="auto">Jquery seems to be correctly bundled in the app and the server also works, but, I always get an error message related to watch and I am not sure whether it is save to ignore this message !!! For sure the message should not be there :-)</p> <p dir="auto">My setup as as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wpt create jam-app cd jam-app npm install"><pre class="notranslate"><code class="notranslate">wpt create jam-app cd jam-app npm install </code></pre></div> <p dir="auto">Now add jam-dependencies to package.json</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;jam&quot;: { &quot;packageDir&quot;: &quot;app/web_modules&quot;, &quot;baseUrl&quot;: &quot;app&quot;, &quot;dependencies&quot;: { &quot;jquery&quot;: &quot;1.8.0&quot;, &quot;bootstrap&quot;: &quot;2.1.1-jam.1&quot; } }, "><pre class="notranslate"><code class="notranslate"> "jam": { "packageDir": "app/web_modules", "baseUrl": "app", "dependencies": { "jquery": "1.8.0", "bootstrap": "2.1.1-jam.1" } }, </code></pre></div> <p dir="auto">Then run:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="jam install dev-server.sh"><pre class="notranslate"><code class="notranslate">jam install dev-server.sh </code></pre></div> <p dir="auto">And now the error messages start to appear</p>
0
<p dir="auto">Now that flask 2.0.0 has a <code class="notranslate">py.typed</code> file, the flask types are preferred over the typeshed hints. When running mypy on my code, I now see errors like the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" app.py:6: error: Module 'flask' does not explicitly export attribute 'Flask'; implicit reexport disabled app.py:6: error: Module 'flask' does not explicitly export attribute 'render_template'; implicit reexport disabled app.py:6: error: Module 'flask' does not explicitly export attribute 'request'; implicit reexport disabled app.py:6: error: Module 'flask' does not explicitly export attribute 'flash'; implicit reexport disabled app.py:6: error: Module 'flask' does not explicitly export attribute 'send_file'; implicit reexport disabled"><pre class="notranslate"><code class="notranslate"> app.py:6: error: Module 'flask' does not explicitly export attribute 'Flask'; implicit reexport disabled app.py:6: error: Module 'flask' does not explicitly export attribute 'render_template'; implicit reexport disabled app.py:6: error: Module 'flask' does not explicitly export attribute 'request'; implicit reexport disabled app.py:6: error: Module 'flask' does not explicitly export attribute 'flash'; implicit reexport disabled app.py:6: error: Module 'flask' does not explicitly export attribute 'send_file'; implicit reexport disabled </code></pre></div> <p dir="auto">In <code class="notranslate">flask/__init__.py</code> there are lines like this:</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/pallets/flask/blob/d575de5159a6e40944275763c9ada2801214058b/src/flask/__init__.py#L7">flask/src/flask/__init__.py</a> </p> <p class="mb-0 color-fg-muted"> Line 7 in <a data-pjax="true" class="commit-tease-sha" href="/pallets/flask/commit/d575de5159a6e40944275763c9ada2801214058b">d575de5</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="L7" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="7"></td> <td id="LC7" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">from</span> .<span class="pl-s1">app</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">However, mypy expects that these reexports should either have an <code class="notranslate">__all__</code> to explicitly say which variables are being reexported, or to change the import to <code class="notranslate">from .app import Flask as Flask</code></p> <p dir="auto">In typeshed there is an example of how this was done before flask including typing: <a href="https://github.com/python/typeshed/blob/6bb1d885c696914e5900329c3d0b6bf2bfefee81/stubs/Flask/flask/__init__.pyi">https://github.com/python/typeshed/blob/6bb1d885c696914e5900329c3d0b6bf2bfefee81/stubs/Flask/flask/__init__.pyi</a></p> <p dir="auto">Environment:</p> <ul dir="auto"> <li>Python version: 3.9</li> <li>Flask version: 2.0.0</li> </ul>
<p dir="auto">Python 3.9.5 + mypy 0.812</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# magic.py from jinja2 import Environment"><pre class="notranslate"><span class="pl-c"># magic.py</span> <span class="pl-k">from</span> <span class="pl-s1">jinja2</span> <span class="pl-k">import</span> <span class="pl-v">Environment</span></pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mypy ./magic.py Success: no issues found in 1 source file"><pre class="notranslate">mypy ./magic.py Success: no issues found <span class="pl-k">in</span> 1 <span class="pl-c1">source</span> file</pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mypy ./magic.py --strict magic.py:1: error: Module 'jinja2' does not explicitly export attribute 'Environment'; implicit reexport disabled Found 1 error in 1 file (checked 1 source file)"><pre class="notranslate">mypy ./magic.py --strict magic.py:1: error: Module <span class="pl-s"><span class="pl-pds">'</span>jinja2<span class="pl-pds">'</span></span> does not explicitly <span class="pl-k">export</span> attribute <span class="pl-s"><span class="pl-pds">'</span>Environment<span class="pl-pds">'</span></span><span class="pl-k">;</span> implicit reexport disabled Found 1 error <span class="pl-k">in</span> 1 file (checked 1 <span class="pl-c1">source</span> file)</pre></div> <p dir="auto">Thanks <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji></p>
1
<p dir="auto">Dialogs look great at big screen, but while browsing with phone - it's almost unusable. Contents collapses to small box with scrollbar if params set right. That was very very bad UX for my case. Here it's w/o modifications:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2733862/12972247/43ad758a-d0ac-11e5-84d9-405ace21104f.png"><img src="https://cloud.githubusercontent.com/assets/2733862/12972247/43ad758a-d0ac-11e5-84d9-405ace21104f.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I've modified dialog.js to keep scrolling available while dialog is on and do not collapse contents, just leave it as it is when screen is too small for all dialog. Now it's scrollable and UX is a lot better. I also changed position from fixed to absolute and when showing dialog scroll to top of the screen to see actual dialog, not gray matter if clicked somewhere scrolled down. So now it looks like this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2733862/12972297/96431386-d0ac-11e5-9527-6cd348bc1fbc.png"><img src="https://cloud.githubusercontent.com/assets/2733862/12972297/96431386-d0ac-11e5-9527-6cd348bc1fbc.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I can scroll and read all the contents easily. Even on such a small viewport height.</p> <p dir="auto">I've cloned material-ui v0.13.4 and updating for my needs, so use this code with this info in your mind.</p> <p dir="auto">Hope some of this will go to main lib for better UX at least add option for such behaviour.</p> <p dir="auto">dialog.js:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) &gt;= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var React = require('react'); var ReactDOM = require('react-dom'); var WindowListenable = require('./mixins/window-listenable'); var CssEvent = require('./utils/css-event'); var KeyCode = require('./utils/key-code'); var Transitions = require('./styles/transitions'); var StylePropable = require('./mixins/style-propable'); var FlatButton = require('./flat-button'); var Overlay = require('./overlay'); var Paper = require('./paper'); var DefaultRawTheme = require('./styles/raw-themes/light-raw-theme'); var ThemeManager = require('./styles/theme-manager'); var warning = require('warning'); var ReactTransitionGroup = require('react-addons-transition-group'); var TransitionItem = React.createClass({ displayName: 'TransitionItem', mixins: [StylePropable], contextTypes: { muiTheme: React.PropTypes.object }, //for passing default theme context to children childContextTypes: { muiTheme: React.PropTypes.object }, getChildContext: function getChildContext() { return { muiTheme: this.state.muiTheme }; }, getInitialState: function getInitialState() { return { style: {}, muiTheme: this.context.muiTheme ? this.context.muiTheme : ThemeManager.getMuiTheme(DefaultRawTheme) }; }, //to update theme inside state whenever a new theme is passed down //from the parent / owner using context componentWillReceiveProps: function componentWillReceiveProps(nextProps, nextContext) { var newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme; this.setState({ muiTheme: newMuiTheme }); }, componentWillEnter: function componentWillEnter(callback) { var spacing = this.state.muiTheme.rawTheme.spacing; this.setState({ style: { opacity: 1, transform: 'translate3d(0, ' + spacing.desktopKeylineIncrement + 'px, 0)' } }); setTimeout(callback, 450); // matches transition duration }, componentWillLeave: function componentWillLeave(callback) { var _this = this; this.setState({ style: { opacity: 0, transform: 'translate3d(0, 0, 0)' } }); setTimeout(function () { if (_this.isMounted()) callback(); }, 450); // matches transition duration }, render: function render() { var _props = this.props; var style = _props.style; var other = _objectWithoutProperties(_props, ['style']); return React.createElement( 'div', _extends({}, other, { style: this.prepareStyles(this.state.style, style) }), this.props.children ); } }); var Dialog = React.createClass({ displayName: 'Dialog', mixins: [WindowListenable, StylePropable], contextTypes: { muiTheme: React.PropTypes.object }, //for passing default theme context to children childContextTypes: { muiTheme: React.PropTypes.object }, getChildContext: function getChildContext() { return { muiTheme: this.state.muiTheme }; }, propTypes: { actions: React.PropTypes.array, autoDetectWindowHeight: React.PropTypes.bool, autoScrollBodyContent: React.PropTypes.bool, bodyStyle: React.PropTypes.object, contentClassName: React.PropTypes.string, contentStyle: React.PropTypes.object, openImmediately: React.PropTypes.bool, repositionOnUpdate: React.PropTypes.bool, style: React.PropTypes.object, title: React.PropTypes.node, defaultOpen: React.PropTypes.bool, open: React.PropTypes.bool, modal: React.PropTypes.bool, onDismiss: React.PropTypes.func, onShow: React.PropTypes.func, onRequestClose: React.PropTypes.func, actionFocus: React.PropTypes.string, titleStyle: React.PropTypes.object }, windowListeners: { keyup: '_handleWindowKeyUp', resize: '_handleResize' }, getDefaultProps: function getDefaultProps() { return { autoDetectWindowHeight: false, autoScrollBodyContent: false, actions: [], repositionOnUpdate: false, defaultOpen: false, open: null }; }, getInitialState: function getInitialState() { if (process.env.NODE_ENV !== 'production') { this._testDeprecations(); } var open = this.props.open; if (open === null) { open = this.props.openImmediately || this.props.defaultOpen; } return { open: open, muiTheme: this.context.muiTheme ? this.context.muiTheme : ThemeManager.getMuiTheme(DefaultRawTheme) }; }, //to update theme inside state whenever a new theme is passed down //from the parent / owner using context componentWillReceiveProps: function componentWillReceiveProps(nextProps, nextContext) { var newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme; this.setState({ muiTheme: newMuiTheme }); if (process.env.NODE_ENV !== 'production') { this._testDeprecations(); } if (nextProps.open !== this.props.open) { if (nextProps.open &amp;&amp; !this.state.open) { this._show(); } else if (!nextProps.open &amp;&amp; this.state.open) { this._dismiss(); } } }, componentDidMount: function componentDidMount() { this._positionDialog(); if (this.state.open) { this.refs.dialogOverlay.preventScrolling(); } }, componentDidUpdate: function componentDidUpdate() { this._positionDialog(); }, getStyles: function getStyles() { var spacing = this.state.muiTheme.rawTheme.spacing; var main = { position: 'absolute', boxSizing: 'border-box', WebkitTapHighlightColor: 'rgba(0,0,0,0)', zIndex: 10, top: 0, left: -10000, width: '100%', height: '100%', transition: Transitions.easeOut('0ms', 'left', '450ms') }; var content = { boxSizing: 'border-box', WebkitTapHighlightColor: 'rgba(0,0,0,0)', transition: Transitions.easeOut(), position: 'relative', width: '75%', maxWidth: spacing.desktopKeylineIncrement * 12, margin: '0 auto', zIndex: 10 }; var body = { padding: spacing.desktopGutter, overflowY: this.props.autoScrollBodyContent ? 'auto' : 'hidden', overflowX: 'hidden' }; var gutter = spacing.desktopGutter + 'px '; var title = { margin: 0, padding: gutter + gutter + '0 ' + gutter, color: this.state.muiTheme.rawTheme.palette.textColor, fontSize: 24, lineHeight: '32px', fontWeight: '400' }; if (this.state.open) { main = this.mergeStyles(main, { left: 0, transition: Transitions.easeOut('0ms', 'left', '0ms') }); } return { main: this.mergeStyles(main, this.props.style), content: this.mergeStyles(content, this.props.contentStyle), paper: { background: this.state.muiTheme.rawTheme.palette.canvasColor }, body: this.mergeStyles(body, this.props.bodyStyle), title: this.mergeStyles(title, this.props.titleStyle) }; }, render: function render() { var styles = this.getStyles(); var actions = this._getActionsContainer(this.props.actions); var title = undefined; if (this.props.title) { // If the title is a string, wrap in an h3 tag. // If not, just use it as a node. title = Object.prototype.toString.call(this.props.title) === '[object String]' ? React.createElement( 'h3', { style: this.prepareStyles(styles.title) }, this.props.title ) : this.props.title; } return React.createElement( 'div', { ref: 'container', style: this.prepareStyles(styles.main) }, React.createElement( ReactTransitionGroup, { component: 'div', ref: 'dialogWindow' }, this.state.open &amp;&amp; React.createElement( TransitionItem, { className: this.props.contentClassName, style: styles.content }, React.createElement( Paper, { style: styles.paper, zDepth: 4 }, title, React.createElement( 'div', { ref: 'dialogContent', style: this.prepareStyles(styles.body) }, this.props.children ), actions ) ) ), React.createElement(Overlay, { ref: 'dialogOverlay', show: this.state.open, autoLockScrolling: false, onTouchTap: this._handleOverlayTouchTap }) ); }, isOpen: function isOpen() { return this.state.open; }, _testDeprecations: function _testDeprecations() { process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('openImmediately'), 'openImmediately has been deprecated in favor of defaultOpen') : undefined; process.env.NODE_ENV !== 'production' ? warning(!(typeof this.props.onShow === 'function'), 'onShow will be removed in favor of explicitly setting open') : undefined; process.env.NODE_ENV !== 'production' ? warning(!(typeof this.props.onDismiss === 'function'), 'onDismiss will be removed in favor of explicitly setting open and can be replaced by onRequestClose') : undefined; process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('modal'), 'modal will be removed in favor of explicitly setting open and onRequestClose') : undefined; }, _getAction: function _getAction(actionJSON, key) { var _this2 = this; var props = { key: key, secondary: true, onClick: actionJSON.onClick, onTouchTap: function onTouchTap() { if (actionJSON.onTouchTap) { actionJSON.onTouchTap.call(undefined); } if (!(actionJSON.onClick || actionJSON.onTouchTap)) { _this2._requestClose(true); } }, label: actionJSON.text, style: { marginRight: 8 } }; if (actionJSON.ref) { props.ref = actionJSON.ref; props.keyboardFocused = actionJSON.ref === this.props.actionFocus; } if (actionJSON.id) { props.id = actionJSON.id; } return React.createElement(FlatButton, props); }, _getActionsContainer: function _getActionsContainer(actions) { var actionContainer = undefined; var actionObjects = []; var actionStyle = { boxSizing: 'border-box', WebkitTapHighlightColor: 'rgba(0,0,0,0)', padding: 8, marginBottom: 8, width: '100%', textAlign: 'right' }; if (actions.length) { for (var i = 0; i &lt; actions.length; i++) { var currentAction = actions[i]; //if the current action isn't a react object, create one if (!React.isValidElement(currentAction)) { currentAction = this._getAction(currentAction, i); } actionObjects.push(currentAction); } actionContainer = React.createElement( 'div', { style: this.prepareStyles(actionStyle) }, actionObjects ); } return actionContainer; }, _positionDialog: function _positionDialog() { if (this.state.open) { var clientHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; var container = ReactDOM.findDOMNode(this); var dialogWindow = ReactDOM.findDOMNode(this.refs.dialogWindow); var dialogContent = ReactDOM.findDOMNode(this.refs.dialogContent); var minPaddingTop = 16; //Reset the height in case the window was resized. dialogWindow.style.height = ''; dialogContent.style.height = ''; var dialogWindowHeight = dialogWindow.offsetHeight; var paddingTop = (clientHeight - dialogWindowHeight) / 2 - 64; if (paddingTop &lt; minPaddingTop) paddingTop = minPaddingTop; //Vertically center the dialog window, but make sure it doesn't //transition to that position. if (this.props.repositionOnUpdate || !container.style.paddingTop) { container.style.paddingTop = paddingTop + 'px'; } // Force a height if the dialog is taller than clientHeight if (this.props.autoDetectWindowHeight || this.props.autoScrollBodyContent) { var styles = this.getStyles(); var maxDialogContentHeight = clientHeight - 2 * (styles.body.padding + 64); if (this.props.title) maxDialogContentHeight -= dialogContent.previousSibling.offsetHeight; if (this.props.actions.length) maxDialogContentHeight -= dialogContent.nextSibling.offsetHeight; dialogContent.style.maxHeight = maxDialogContentHeight + 'px'; } } }, show: function show() { process.env.NODE_ENV !== 'production' ? warning(false, 'show has been deprecated in favor of explicitly setting the open property.') : undefined; this._show(); }, _onShow: function _onShow() { if (this.props.onShow) { this.props.onShow(); } }, _show: function _show() { //this.refs.dialogOverlay.preventScrolling(); window.scroll(0, 0); this.setState({ open: true }, this._onShow); }, dismiss: function dismiss() { process.env.NODE_ENV !== 'production' ? warning(false, 'dismiss has been deprecated in favor of explicitly setting the open property.') : undefined; this._dismiss(); }, _onDismiss: function _onDismiss() { if (this.props.onDismiss) { this.props.onDismiss(); } }, _dismiss: function _dismiss() { var _this3 = this; window.scroll(0, 0); // bf if one dialog is open and it opens another CssEvent.onTransitionEnd(ReactDOM.findDOMNode(this), function () { _this3.refs.dialogOverlay.allowScrolling(); }); this.setState({ open: false }, this._onDismiss); }, _requestClose: function _requestClose(buttonClicked) { process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('modal'), 'modal will be removed in favor of explicitly setting open and onRequestClose') : undefined; if (!buttonClicked &amp;&amp; this.props.modal) { return; } // Close the dialog if the open state is not explicitly set. if (this.props.open === null) { this._dismiss(); } if (this.props.onRequestClose) { this.props.onRequestClose(!!buttonClicked); } }, _handleOverlayTouchTap: function _handleOverlayTouchTap() { this._requestClose(false); }, _handleWindowKeyUp: function _handleWindowKeyUp(event) { if (event.keyCode === KeyCode.ESC) { this._requestClose(false); } }, _handleResize: function _handleResize() { if (this.state.open) { //this.refs.dialogOverlay.preventScrolling(); window.scroll(0, 0); this._positionDialog(); } } }); module.exports = Dialog;"><pre class="notranslate"><code class="notranslate">'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) &gt;= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var React = require('react'); var ReactDOM = require('react-dom'); var WindowListenable = require('./mixins/window-listenable'); var CssEvent = require('./utils/css-event'); var KeyCode = require('./utils/key-code'); var Transitions = require('./styles/transitions'); var StylePropable = require('./mixins/style-propable'); var FlatButton = require('./flat-button'); var Overlay = require('./overlay'); var Paper = require('./paper'); var DefaultRawTheme = require('./styles/raw-themes/light-raw-theme'); var ThemeManager = require('./styles/theme-manager'); var warning = require('warning'); var ReactTransitionGroup = require('react-addons-transition-group'); var TransitionItem = React.createClass({ displayName: 'TransitionItem', mixins: [StylePropable], contextTypes: { muiTheme: React.PropTypes.object }, //for passing default theme context to children childContextTypes: { muiTheme: React.PropTypes.object }, getChildContext: function getChildContext() { return { muiTheme: this.state.muiTheme }; }, getInitialState: function getInitialState() { return { style: {}, muiTheme: this.context.muiTheme ? this.context.muiTheme : ThemeManager.getMuiTheme(DefaultRawTheme) }; }, //to update theme inside state whenever a new theme is passed down //from the parent / owner using context componentWillReceiveProps: function componentWillReceiveProps(nextProps, nextContext) { var newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme; this.setState({ muiTheme: newMuiTheme }); }, componentWillEnter: function componentWillEnter(callback) { var spacing = this.state.muiTheme.rawTheme.spacing; this.setState({ style: { opacity: 1, transform: 'translate3d(0, ' + spacing.desktopKeylineIncrement + 'px, 0)' } }); setTimeout(callback, 450); // matches transition duration }, componentWillLeave: function componentWillLeave(callback) { var _this = this; this.setState({ style: { opacity: 0, transform: 'translate3d(0, 0, 0)' } }); setTimeout(function () { if (_this.isMounted()) callback(); }, 450); // matches transition duration }, render: function render() { var _props = this.props; var style = _props.style; var other = _objectWithoutProperties(_props, ['style']); return React.createElement( 'div', _extends({}, other, { style: this.prepareStyles(this.state.style, style) }), this.props.children ); } }); var Dialog = React.createClass({ displayName: 'Dialog', mixins: [WindowListenable, StylePropable], contextTypes: { muiTheme: React.PropTypes.object }, //for passing default theme context to children childContextTypes: { muiTheme: React.PropTypes.object }, getChildContext: function getChildContext() { return { muiTheme: this.state.muiTheme }; }, propTypes: { actions: React.PropTypes.array, autoDetectWindowHeight: React.PropTypes.bool, autoScrollBodyContent: React.PropTypes.bool, bodyStyle: React.PropTypes.object, contentClassName: React.PropTypes.string, contentStyle: React.PropTypes.object, openImmediately: React.PropTypes.bool, repositionOnUpdate: React.PropTypes.bool, style: React.PropTypes.object, title: React.PropTypes.node, defaultOpen: React.PropTypes.bool, open: React.PropTypes.bool, modal: React.PropTypes.bool, onDismiss: React.PropTypes.func, onShow: React.PropTypes.func, onRequestClose: React.PropTypes.func, actionFocus: React.PropTypes.string, titleStyle: React.PropTypes.object }, windowListeners: { keyup: '_handleWindowKeyUp', resize: '_handleResize' }, getDefaultProps: function getDefaultProps() { return { autoDetectWindowHeight: false, autoScrollBodyContent: false, actions: [], repositionOnUpdate: false, defaultOpen: false, open: null }; }, getInitialState: function getInitialState() { if (process.env.NODE_ENV !== 'production') { this._testDeprecations(); } var open = this.props.open; if (open === null) { open = this.props.openImmediately || this.props.defaultOpen; } return { open: open, muiTheme: this.context.muiTheme ? this.context.muiTheme : ThemeManager.getMuiTheme(DefaultRawTheme) }; }, //to update theme inside state whenever a new theme is passed down //from the parent / owner using context componentWillReceiveProps: function componentWillReceiveProps(nextProps, nextContext) { var newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme; this.setState({ muiTheme: newMuiTheme }); if (process.env.NODE_ENV !== 'production') { this._testDeprecations(); } if (nextProps.open !== this.props.open) { if (nextProps.open &amp;&amp; !this.state.open) { this._show(); } else if (!nextProps.open &amp;&amp; this.state.open) { this._dismiss(); } } }, componentDidMount: function componentDidMount() { this._positionDialog(); if (this.state.open) { this.refs.dialogOverlay.preventScrolling(); } }, componentDidUpdate: function componentDidUpdate() { this._positionDialog(); }, getStyles: function getStyles() { var spacing = this.state.muiTheme.rawTheme.spacing; var main = { position: 'absolute', boxSizing: 'border-box', WebkitTapHighlightColor: 'rgba(0,0,0,0)', zIndex: 10, top: 0, left: -10000, width: '100%', height: '100%', transition: Transitions.easeOut('0ms', 'left', '450ms') }; var content = { boxSizing: 'border-box', WebkitTapHighlightColor: 'rgba(0,0,0,0)', transition: Transitions.easeOut(), position: 'relative', width: '75%', maxWidth: spacing.desktopKeylineIncrement * 12, margin: '0 auto', zIndex: 10 }; var body = { padding: spacing.desktopGutter, overflowY: this.props.autoScrollBodyContent ? 'auto' : 'hidden', overflowX: 'hidden' }; var gutter = spacing.desktopGutter + 'px '; var title = { margin: 0, padding: gutter + gutter + '0 ' + gutter, color: this.state.muiTheme.rawTheme.palette.textColor, fontSize: 24, lineHeight: '32px', fontWeight: '400' }; if (this.state.open) { main = this.mergeStyles(main, { left: 0, transition: Transitions.easeOut('0ms', 'left', '0ms') }); } return { main: this.mergeStyles(main, this.props.style), content: this.mergeStyles(content, this.props.contentStyle), paper: { background: this.state.muiTheme.rawTheme.palette.canvasColor }, body: this.mergeStyles(body, this.props.bodyStyle), title: this.mergeStyles(title, this.props.titleStyle) }; }, render: function render() { var styles = this.getStyles(); var actions = this._getActionsContainer(this.props.actions); var title = undefined; if (this.props.title) { // If the title is a string, wrap in an h3 tag. // If not, just use it as a node. title = Object.prototype.toString.call(this.props.title) === '[object String]' ? React.createElement( 'h3', { style: this.prepareStyles(styles.title) }, this.props.title ) : this.props.title; } return React.createElement( 'div', { ref: 'container', style: this.prepareStyles(styles.main) }, React.createElement( ReactTransitionGroup, { component: 'div', ref: 'dialogWindow' }, this.state.open &amp;&amp; React.createElement( TransitionItem, { className: this.props.contentClassName, style: styles.content }, React.createElement( Paper, { style: styles.paper, zDepth: 4 }, title, React.createElement( 'div', { ref: 'dialogContent', style: this.prepareStyles(styles.body) }, this.props.children ), actions ) ) ), React.createElement(Overlay, { ref: 'dialogOverlay', show: this.state.open, autoLockScrolling: false, onTouchTap: this._handleOverlayTouchTap }) ); }, isOpen: function isOpen() { return this.state.open; }, _testDeprecations: function _testDeprecations() { process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('openImmediately'), 'openImmediately has been deprecated in favor of defaultOpen') : undefined; process.env.NODE_ENV !== 'production' ? warning(!(typeof this.props.onShow === 'function'), 'onShow will be removed in favor of explicitly setting open') : undefined; process.env.NODE_ENV !== 'production' ? warning(!(typeof this.props.onDismiss === 'function'), 'onDismiss will be removed in favor of explicitly setting open and can be replaced by onRequestClose') : undefined; process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('modal'), 'modal will be removed in favor of explicitly setting open and onRequestClose') : undefined; }, _getAction: function _getAction(actionJSON, key) { var _this2 = this; var props = { key: key, secondary: true, onClick: actionJSON.onClick, onTouchTap: function onTouchTap() { if (actionJSON.onTouchTap) { actionJSON.onTouchTap.call(undefined); } if (!(actionJSON.onClick || actionJSON.onTouchTap)) { _this2._requestClose(true); } }, label: actionJSON.text, style: { marginRight: 8 } }; if (actionJSON.ref) { props.ref = actionJSON.ref; props.keyboardFocused = actionJSON.ref === this.props.actionFocus; } if (actionJSON.id) { props.id = actionJSON.id; } return React.createElement(FlatButton, props); }, _getActionsContainer: function _getActionsContainer(actions) { var actionContainer = undefined; var actionObjects = []; var actionStyle = { boxSizing: 'border-box', WebkitTapHighlightColor: 'rgba(0,0,0,0)', padding: 8, marginBottom: 8, width: '100%', textAlign: 'right' }; if (actions.length) { for (var i = 0; i &lt; actions.length; i++) { var currentAction = actions[i]; //if the current action isn't a react object, create one if (!React.isValidElement(currentAction)) { currentAction = this._getAction(currentAction, i); } actionObjects.push(currentAction); } actionContainer = React.createElement( 'div', { style: this.prepareStyles(actionStyle) }, actionObjects ); } return actionContainer; }, _positionDialog: function _positionDialog() { if (this.state.open) { var clientHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; var container = ReactDOM.findDOMNode(this); var dialogWindow = ReactDOM.findDOMNode(this.refs.dialogWindow); var dialogContent = ReactDOM.findDOMNode(this.refs.dialogContent); var minPaddingTop = 16; //Reset the height in case the window was resized. dialogWindow.style.height = ''; dialogContent.style.height = ''; var dialogWindowHeight = dialogWindow.offsetHeight; var paddingTop = (clientHeight - dialogWindowHeight) / 2 - 64; if (paddingTop &lt; minPaddingTop) paddingTop = minPaddingTop; //Vertically center the dialog window, but make sure it doesn't //transition to that position. if (this.props.repositionOnUpdate || !container.style.paddingTop) { container.style.paddingTop = paddingTop + 'px'; } // Force a height if the dialog is taller than clientHeight if (this.props.autoDetectWindowHeight || this.props.autoScrollBodyContent) { var styles = this.getStyles(); var maxDialogContentHeight = clientHeight - 2 * (styles.body.padding + 64); if (this.props.title) maxDialogContentHeight -= dialogContent.previousSibling.offsetHeight; if (this.props.actions.length) maxDialogContentHeight -= dialogContent.nextSibling.offsetHeight; dialogContent.style.maxHeight = maxDialogContentHeight + 'px'; } } }, show: function show() { process.env.NODE_ENV !== 'production' ? warning(false, 'show has been deprecated in favor of explicitly setting the open property.') : undefined; this._show(); }, _onShow: function _onShow() { if (this.props.onShow) { this.props.onShow(); } }, _show: function _show() { //this.refs.dialogOverlay.preventScrolling(); window.scroll(0, 0); this.setState({ open: true }, this._onShow); }, dismiss: function dismiss() { process.env.NODE_ENV !== 'production' ? warning(false, 'dismiss has been deprecated in favor of explicitly setting the open property.') : undefined; this._dismiss(); }, _onDismiss: function _onDismiss() { if (this.props.onDismiss) { this.props.onDismiss(); } }, _dismiss: function _dismiss() { var _this3 = this; window.scroll(0, 0); // bf if one dialog is open and it opens another CssEvent.onTransitionEnd(ReactDOM.findDOMNode(this), function () { _this3.refs.dialogOverlay.allowScrolling(); }); this.setState({ open: false }, this._onDismiss); }, _requestClose: function _requestClose(buttonClicked) { process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('modal'), 'modal will be removed in favor of explicitly setting open and onRequestClose') : undefined; if (!buttonClicked &amp;&amp; this.props.modal) { return; } // Close the dialog if the open state is not explicitly set. if (this.props.open === null) { this._dismiss(); } if (this.props.onRequestClose) { this.props.onRequestClose(!!buttonClicked); } }, _handleOverlayTouchTap: function _handleOverlayTouchTap() { this._requestClose(false); }, _handleWindowKeyUp: function _handleWindowKeyUp(event) { if (event.keyCode === KeyCode.ESC) { this._requestClose(false); } }, _handleResize: function _handleResize() { if (this.state.open) { //this.refs.dialogOverlay.preventScrolling(); window.scroll(0, 0); this._positionDialog(); } } }); module.exports = Dialog; </code></pre></div>
<h3 dir="auto">Problem description</h3> <p dir="auto">How can I make the Dialog scrollable in v1. I have a modal with a list in it, and the list goes off the page. I would like the ability to scroll down. I would like the scrollbar to be on the main browser window, rather than on the modal itself.</p> <h3 dir="auto">Link to minimal working code that reproduces the issue</h3> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 1</li> <li>React:</li> <li>Browser:</li> </ul>
1
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" # This is a DOCbug simply to document what pd.DataFrame(dtype) currently does. # It is non-obvious to new users, gives non-obvious error messages, and also behaves differently to read_csv(dtype) # a) Leaving dtype=None in constructor will infer a wider type than necessary df_cols = {'year':np.int32, 'month':np.int8} df = pd.DataFrame(columns=df_cols.keys(), dtype=None, index=range(10), data=-1) &gt;&gt;&gt; df.dtypes month int64 year int64 # b) The doc doesn't explicitly say a list/dict/Series/array-like is not allowed (and if you # pass in one the error is not very friendly). Also behaves differently to read_csv(dtype) df = pd.DataFrame(columns=df_cols.keys(), dtype=np.int32, index=range(10), data=-1) # df.dtypes shows they're all np.int32 # Fix up dtypes after declaration for col,coltype in df_cols.items(): df[col] = df[col].astype(coltype) "><pre class="notranslate"><span class="pl-c"># This is a DOCbug simply to document what pd.DataFrame(dtype) currently does.</span> <span class="pl-c"># It is non-obvious to new users, gives non-obvious error messages, and also behaves differently to read_csv(dtype)</span> <span class="pl-c"># a) Leaving dtype=None in constructor will infer a wider type than necessary</span> <span class="pl-s1">df_cols</span> <span class="pl-c1">=</span> {<span class="pl-s">'year'</span>:<span class="pl-s1">np</span>.<span class="pl-s1">int32</span>, <span class="pl-s">'month'</span>:<span class="pl-s1">np</span>.<span class="pl-s1">int8</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">columns</span><span class="pl-c1">=</span><span class="pl-s1">df_cols</span>.<span class="pl-en">keys</span>(), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-en">range</span>(<span class="pl-c1">10</span>), <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">1</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>.<span class="pl-s1">dtypes</span> <span class="pl-s1">month</span> <span class="pl-s1">int64</span> <span class="pl-s1">year</span> <span class="pl-s1">int64</span> <span class="pl-c"># b) The doc doesn't explicitly say a list/dict/Series/array-like is not allowed (and if you</span> <span class="pl-c"># pass in one the error is not very friendly). Also behaves differently to read_csv(dtype)</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">columns</span><span class="pl-c1">=</span><span class="pl-s1">df_cols</span>.<span class="pl-en">keys</span>(), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">int32</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-en">range</span>(<span class="pl-c1">10</span>), <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">1</span>) <span class="pl-c"># df.dtypes shows they're all np.int32</span> <span class="pl-c"># Fix up dtypes after declaration</span> <span class="pl-k">for</span> <span class="pl-s1">col</span>,<span class="pl-s1">coltype</span> <span class="pl-c1">in</span> <span class="pl-s1">df_cols</span>.<span class="pl-en">items</span>(): <span class="pl-s1">df</span>[<span class="pl-s1">col</span>] <span class="pl-c1">=</span> <span class="pl-s1">df</span>[<span class="pl-s1">col</span>].<span class="pl-en">astype</span>(<span class="pl-s1">coltype</span>) </pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">The DataFrame() doc doesn't explicitly say a list/dict/Series/array-like is not allowed (and if you pass in one the error is not very friendly). Also behaves differently to read_csv(dtype).<br> Leaving dtype=None in constructor will infer a wider type than necessary.<br> So in general you either set dtype=widest_necessary_type, or dtype=None and then manually fix them up after declaration, by casting with <code class="notranslate">astype()</code></p> <h4 dir="auto">Expected Output</h4> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> python: 2.7.10.final.0 python-bits: 64 machine: x86_64 processor: i386 byteorder: little pandas: 0.19.1 numpy: 1.11.2 scipy: 0.18.1 </details>
<p dir="auto">I have a dataframe called delivery and when I print(delivery.columns) I get the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Index(['Complemento_endereço', 'cnpj', 'Data_fundação', 'Número', 'Razão_social', 'CEP', 'situacao_cadastral', 'situacao_especial', 'Rua', 'Nome_Fantasia', 'last_revenue_normalized', 'last_revenue_year', 'Telefone', 'email', 'Capital_Social', 'Cidade', 'Estado', 'Razão_social', 'name_bairro', 'Natureza_Jurídica', 'CNAE', '#CNAE', 'CNAEs_secundários', 'Pessoas', 'percent'], dtype='object')"><pre class="notranslate"><code class="notranslate">Index(['Complemento_endereço', 'cnpj', 'Data_fundação', 'Número', 'Razão_social', 'CEP', 'situacao_cadastral', 'situacao_especial', 'Rua', 'Nome_Fantasia', 'last_revenue_normalized', 'last_revenue_year', 'Telefone', 'email', 'Capital_Social', 'Cidade', 'Estado', 'Razão_social', 'name_bairro', 'Natureza_Jurídica', 'CNAE', '#CNAE', 'CNAEs_secundários', 'Pessoas', 'percent'], dtype='object') </code></pre></div> <p dir="auto">Well, we can clearly see that there is a column 'Rua'.</p> <p dir="auto">Also, if I print(delivery.Rua) I get a proper result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="82671 R JUDITE MELO DOS SANTOS 817797 R DOS GUAJAJARAS 180081 AV MARCOS PENTEADO DE ULHOA RODRIGUES 149373 AL MARIA TEREZA 455511 AV RANGEL PESTANA ..."><pre class="notranslate"><code class="notranslate">82671 R JUDITE MELO DOS SANTOS 817797 R DOS GUAJAJARAS 180081 AV MARCOS PENTEADO DE ULHOA RODRIGUES 149373 AL MARIA TEREZA 455511 AV RANGEL PESTANA ... </code></pre></div> <p dir="auto">Even if I write "if 'Rua' in delivery.columns: print('here I am')" it does print the 'here I am'. So 'Rua' is in fact there.</p> <p dir="auto">Well, in the immediate line after I have this code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="delivery=delivery.set_index('cnpj')[['Razão_social','Nome_Fantasia','Data_fundação','CEP','Estado','Cidade','Bairro','Rua','Número','Complemento_endereço','Telefone','email','Capital_Social', 'CNAE', '#CNAE', 'Natureza_Jurídica','Pessoas' ]]"><pre class="notranslate"><code class="notranslate">delivery=delivery.set_index('cnpj')[['Razão_social','Nome_Fantasia','Data_fundação','CEP','Estado','Cidade','Bairro','Rua','Número','Complemento_endereço','Telefone','email','Capital_Social', 'CNAE', '#CNAE', 'Natureza_Jurídica','Pessoas' ]] </code></pre></div> <p dir="auto">And voilá, I get this weird error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/file.py&quot;, line 45, in &lt;module&gt; 'Telefone', 'email', 'Capital_Social', 'Cidade', 'Estado', 'Razão_social', 'name_bairro', 'Natureza_Jurídica', 'CNAE', '#CNAE', 'Telefone','email','Capital_Social', 'CNAE', '#CNAE', 'Natureza_Jurídica','Pessoas' ]] 'CNAEs_secundários', 'Pessoas', 'percent'], File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/frame.py&quot;, line 1991, in __getitem__ dtype='object') return self._getitem_array(key) File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/frame.py&quot;, line 2035, in _getitem_array indexer = self.ix._convert_to_indexer(key, axis=1) File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/indexing.py&quot;, line 1214, in _convert_to_indexer raise KeyError('%s not in index' % objarr[mask]) KeyError: &quot;['Rua'] not in index&quot;"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/file.py", line 45, in &lt;module&gt; 'Telefone', 'email', 'Capital_Social', 'Cidade', 'Estado', 'Razão_social', 'name_bairro', 'Natureza_Jurídica', 'CNAE', '#CNAE', 'Telefone','email','Capital_Social', 'CNAE', '#CNAE', 'Natureza_Jurídica','Pessoas' ]] 'CNAEs_secundários', 'Pessoas', 'percent'], File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/frame.py", line 1991, in __getitem__ dtype='object') return self._getitem_array(key) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/frame.py", line 2035, in _getitem_array indexer = self.ix._convert_to_indexer(key, axis=1) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/indexing.py", line 1214, in _convert_to_indexer raise KeyError('%s not in index' % objarr[mask]) KeyError: "['Rua'] not in index" </code></pre></div> <p dir="auto">Can someone help? I tried stackoverflow but no one could help. I'm starting to think I'm crazy and 'Rua' is an illusion of my troubled mind.</p> <p dir="auto"><strong>ADDITIONAL INFO</strong></p> <p dir="auto">I'm using this code right before the error line:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="delivery=pd.DataFrame() for i in selection.index: sample=groups.get_group(selection['#CNAE'].loc[i]).sample(selection['samples'].loc[i]) delivery=pd.concat((delivery,sample)).sort_values('Capital_Social',ascending=False) print(delivery.columns) print(delivery.Rua) print(delivery.set_index('cnpj').columns) delivery=delivery.set_index('cnpj')[['Razão_social','Nome_Fantasia','Data_fundação','CEP','Estado','Cidade','Bairro','Rua','Número','Complemento_endereço', 'Telefone','email','Capital_Social', 'CNAE', '#CNAE', 'Natureza_Jurídica','Pessoas' ]]"><pre class="notranslate"><code class="notranslate">delivery=pd.DataFrame() for i in selection.index: sample=groups.get_group(selection['#CNAE'].loc[i]).sample(selection['samples'].loc[i]) delivery=pd.concat((delivery,sample)).sort_values('Capital_Social',ascending=False) print(delivery.columns) print(delivery.Rua) print(delivery.set_index('cnpj').columns) delivery=delivery.set_index('cnpj')[['Razão_social','Nome_Fantasia','Data_fundação','CEP','Estado','Cidade','Bairro','Rua','Número','Complemento_endereço', 'Telefone','email','Capital_Social', 'CNAE', '#CNAE', 'Natureza_Jurídica','Pessoas' ]] </code></pre></div> <p dir="auto"><strong>EDIT</strong></p> <p dir="auto">New weird stuff:<br> I gave up and deleted 'Rua' from that last piece of code, wishing that it would work. For my surprise, I had the same problem but now with the column 'Número'.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="delivery=delivery.set_index('cnpj')[['Razão_social','Nome_Fantasia','Data_fundação','CEP','Estado','Cidade','Bairro','Número','Complemento_endereço', 'Telefone','email','Capital_Social', 'CNAE', '#CNAE', 'Natureza_Jurídica' ]] KeyError: &quot;['Número'] not in index&quot;"><pre class="notranslate"><code class="notranslate">delivery=delivery.set_index('cnpj')[['Razão_social','Nome_Fantasia','Data_fundação','CEP','Estado','Cidade','Bairro','Número','Complemento_endereço', 'Telefone','email','Capital_Social', 'CNAE', '#CNAE', 'Natureza_Jurídica' ]] KeyError: "['Número'] not in index" </code></pre></div> <p dir="auto"><strong>EDIT 2</strong></p> <p dir="auto">And then I gave up on 'Número' and took it out. Then the same problem happened with 'Complemento_endereço'. Then I deleted 'Complemento_endereço'. And it happend to 'Telefone' and so on.</p> <p dir="auto">** EDIT 3 **</p> <p dir="auto">If I do a pd.show_versions(), that's the output:</p> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.5.0.final.0<br> python-bits: 64<br> OS: Darwin<br> OS-release: 16.5.0<br> machine: x86_64<br> processor: i386<br> byteorder: little<br> LC_ALL: None<br> LANG: None</p> <p dir="auto">pandas: 0.18.1<br> nose: None<br> pip: 8.1.2<br> setuptools: 18.2<br> Cython: None<br> numpy: 1.11.0<br> scipy: 0.17.1<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: None<br> sphinx: None<br> patsy: 0.4.1<br> dateutil: 2.5.3<br> pytz: 2016.4<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.5.1<br> openpyxl: None<br> xlrd: 1.0.0<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: 4.5.1<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.1.3<br> pymysql: 0.7.11.None<br> psycopg2: None<br> jinja2: None<br> boto: None<br> pandas_datareader: None<br> None</p>
0
<h3 dir="auto">System Info</h3> <ul dir="auto"> <li><code class="notranslate">transformers</code> version: 4.30.0.dev0</li> <li>Platform: Linux-5.15.107+-x86_64-with-glibc2.31</li> <li>Python version: 3.10.11</li> <li>Huggingface_hub version: 0.14.1</li> <li>Safetensors version: 0.3.1</li> <li>PyTorch version (GPU?): 2.0.1+cu118 (True)</li> <li>Tensorflow version (GPU?): 2.12.0 (True)</li> <li>Flax version (CPU?/GPU?/TPU?): 0.6.9 (gpu)</li> <li>Jax version: 0.4.10</li> <li>JaxLib version: 0.4.10</li> <li>Using GPU in script?: </li> <li>Using distributed or parallel set-up in script?: </li> </ul> <h3 dir="auto">Who can help?</h3> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ArthurZucker/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ArthurZucker">@ArthurZucker</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/younesbelkada/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/younesbelkada">@younesbelkada</a></p> <h3 dir="auto">Information</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The official example scripts</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own modified scripts</li> </ul> <h3 dir="auto">Tasks</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own task or dataset (give details below)</li> </ul> <h3 dir="auto">Reproduction</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch from transformers import AutoModelForCausalLM, AutoConfig from transformers import BitsAndBytesConfig model_name = 'mosaicml/mpt-7b-instruct' nf4_config = BitsAndBytesConfig( load_in_4bit=True, bnb_4bit_quant_type=&quot;nf4&quot;, bnb_4bit_use_double_quant=True, bnb_4bit_compute_dtype=torch.bfloat16 ) model_nf4 = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, offload_folder=&quot;offload&quot;, offload_state_dict = True, quantization_config=nf4_config)"><pre class="notranslate"><code class="notranslate">import torch from transformers import AutoModelForCausalLM, AutoConfig from transformers import BitsAndBytesConfig model_name = 'mosaicml/mpt-7b-instruct' nf4_config = BitsAndBytesConfig( load_in_4bit=True, bnb_4bit_quant_type="nf4", bnb_4bit_use_double_quant=True, bnb_4bit_compute_dtype=torch.bfloat16 ) model_nf4 = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, offload_folder="offload", offload_state_dict = True, quantization_config=nf4_config) </code></pre></div> <p dir="auto">Error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError: MPTForCausalLM does not support `device_map='auto'` yet."><pre class="notranslate"><code class="notranslate">ValueError: MPTForCausalLM does not support `device_map='auto'` yet. </code></pre></div> <p dir="auto">I saw a similar issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1625966407" data-permission-text="Title is private" data-url="https://github.com/huggingface/transformers/issues/22188" data-hovercard-type="issue" data-hovercard-url="/huggingface/transformers/issues/22188/hovercard" href="https://github.com/huggingface/transformers/issues/22188">#22188</a> for <code class="notranslate">XGLMForCausalLM</code>. I couldn't find <code class="notranslate">MPTForCausalLM </code> in the repository if the MPT model is not supported currently, is there any hack that I can use to get <code class="notranslate">acclerate</code> support ? Than</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Model gets loaded without any errors</p>
<h3 dir="auto">System Info</h3> <p dir="auto">Copy-and-paste the text below in your GitHub issue and FILL OUT the two last points.</p> <ul dir="auto"> <li><code class="notranslate">transformers</code> version: 4.24.0</li> <li>Platform: Linux-5.15.0-69-generic-x86_64-with-glibc2.31</li> <li>Python version: 3.10.9</li> <li>Huggingface_hub version: 0.10.1</li> <li>PyTorch version (GPU?): 1.12.1 (False)</li> <li>Tensorflow version (GPU?): not installed (NA)</li> <li>Flax version (CPU?/GPU?/TPU?): not installed (NA)</li> <li>Jax version: not installed</li> <li>JaxLib version: not installed</li> <li>Using GPU in script?: yes</li> <li>Using distributed or parallel set-up in script?: yes</li> </ul> <h3 dir="auto">Who can help?</h3> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ArthurZucker/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ArthurZucker">@ArthurZucker</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/younesbelkada/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/younesbelkada">@younesbelkada</a></p> <h3 dir="auto">Information</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> The official example scripts</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own modified scripts</li> </ul> <h3 dir="auto">Tasks</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own task or dataset (give details below)</li> </ul> <h3 dir="auto">Reproduction</h3> <ol dir="auto"> <li>Loaded the InstructCodeT5+ model as per <a href="https://huggingface.co/Salesforce/instructcodet5p-16b" rel="nofollow">https://huggingface.co/Salesforce/instructcodet5p-16b</a></li> <li>Tried to use LoRA to fine-tune InstructCodeT5+ on NL to code translation task. Code and Traceback given below:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from transformers import AutoTokenizer, AutoModelForSeq2SeqLM import torch token_id=&quot;Salesforce/instructcodet5p-16b&quot; tokenizer = AutoTokenizer.from_pretrained(token_id) model = AutoModelForSeq2SeqLM.from_pretrained(token_id, torch_dtype=torch.float16, low_cpu_mem_usage=True, trust_remote_code=True, decoder_start_token_id=1, pad_token_id=-100, load_in_8bit=True, device_map='auto').to(device)"><pre class="notranslate"><code class="notranslate">from transformers import AutoTokenizer, AutoModelForSeq2SeqLM import torch token_id="Salesforce/instructcodet5p-16b" tokenizer = AutoTokenizer.from_pretrained(token_id) model = AutoModelForSeq2SeqLM.from_pretrained(token_id, torch_dtype=torch.float16, low_cpu_mem_usage=True, trust_remote_code=True, decoder_start_token_id=1, pad_token_id=-100, load_in_8bit=True, device_map='auto').to(device) </code></pre></div> <p dir="auto">Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-12-1436d2a64ffb&gt; in &lt;module&gt; 10 11 # load model from the hub ---&gt; 12 model = AutoModelForSeq2SeqLM.from_pretrained(model_id, 13 torch_dtype=torch.float16, 14 low_cpu_mem_usage=True, ~/.local/lib/python3.8/site-packages/transformers/models/auto/auto_factory.py in from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs) 460 class_ref, pretrained_model_name_or_path, **hub_kwargs, **kwargs 461 ) --&gt; 462 return model_class.from_pretrained( 463 pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs 464 ) ~/.cache/huggingface/modules/transformers_modules/instructcodet5p-16b/modeling_codet5p.py in from_pretrained(cls, *args, **kwargs) 855 ) 856 kwargs[&quot;_fast_init&quot;] = False --&gt; 857 return super().from_pretrained(*args, **kwargs) 858 859 def forward( ~/.local/lib/python3.8/site-packages/transformers/modeling_utils.py in from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs) 2683 2684 if model._no_split_modules is None: -&gt; 2685 raise ValueError(f&quot;{model.__class__.__name__} does not support `device_map='{device_map}'` yet.&quot;) 2686 no_split_modules = model._no_split_modules 2687 if device_map not in [&quot;auto&quot;, &quot;balanced&quot;, &quot;balanced_low_0&quot;, &quot;sequential&quot;]: ValueError: CodeT5pEncoderDecoderModel does not support `device_map='auto'` yet."><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-12-1436d2a64ffb&gt; in &lt;module&gt; 10 11 # load model from the hub ---&gt; 12 model = AutoModelForSeq2SeqLM.from_pretrained(model_id, 13 torch_dtype=torch.float16, 14 low_cpu_mem_usage=True, ~/.local/lib/python3.8/site-packages/transformers/models/auto/auto_factory.py in from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs) 460 class_ref, pretrained_model_name_or_path, **hub_kwargs, **kwargs 461 ) --&gt; 462 return model_class.from_pretrained( 463 pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs 464 ) ~/.cache/huggingface/modules/transformers_modules/instructcodet5p-16b/modeling_codet5p.py in from_pretrained(cls, *args, **kwargs) 855 ) 856 kwargs["_fast_init"] = False --&gt; 857 return super().from_pretrained(*args, **kwargs) 858 859 def forward( ~/.local/lib/python3.8/site-packages/transformers/modeling_utils.py in from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs) 2683 2684 if model._no_split_modules is None: -&gt; 2685 raise ValueError(f"{model.__class__.__name__} does not support `device_map='{device_map}'` yet.") 2686 no_split_modules = model._no_split_modules 2687 if device_map not in ["auto", "balanced", "balanced_low_0", "sequential"]: ValueError: CodeT5pEncoderDecoderModel does not support `device_map='auto'` yet. </code></pre></div> <p dir="auto">Seems Like this functionality is not included yet. When to expect it to be added? Thanks in advance!</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Expect the model to get loaded without any error</p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.4.3 (cliffs) kombu:4.6.9 py:3.7.6 billiard:3.6.3.0 py-amqp:2.6.0 platform -&gt; system:Linux arch:64bit, ELF kernel version:4.15.0-101-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:cassandra Queue: &lt;class 'kombu.entity.Queue'&gt; RoundRobinPolicy: &lt;class 'cassandra.policies.RoundRobinPolicy'&gt; broker_url: 'amqp://guest:********@localhost:5672//' cassandra_auth_kwargs: { 'password': '********', 'username': 'cassandra'} cassandra_auth_provider: 'PlainTextAuthProvider' cassandra_entry_ttl: 86400 cassandra_keyspace: '********' cassandra_options: { 'load_balancing_policy': &lt;cassandra.policies.RoundRobinPolicy object at 0x7f09de9a34d0&gt;} cassandra_servers: ['127.0.0.1'] cassandra_table: 'celery_jobs_result' ignore_result: False result_backend: 'cassandra' worker_concurrency: 4"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.4.3 (cliffs) kombu:4.6.9 py:3.7.6 billiard:3.6.3.0 py-amqp:2.6.0 platform -&gt; system:Linux arch:64bit, ELF kernel version:4.15.0-101-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:cassandra Queue: &lt;class 'kombu.entity.Queue'&gt; RoundRobinPolicy: &lt;class 'cassandra.policies.RoundRobinPolicy'&gt; broker_url: 'amqp://guest:********@localhost:5672//' cassandra_auth_kwargs: { 'password': '********', 'username': 'cassandra'} cassandra_auth_provider: 'PlainTextAuthProvider' cassandra_entry_ttl: 86400 cassandra_keyspace: '********' cassandra_options: { 'load_balancing_policy': &lt;cassandra.policies.RoundRobinPolicy object at 0x7f09de9a34d0&gt;} cassandra_servers: ['127.0.0.1'] cassandra_table: 'celery_jobs_result' ignore_result: False result_backend: 'cassandra' worker_concurrency: 4 </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==2.6.0 attrs==19.3.0 billiard==3.6.3.0 case==1.5.3 cassandra-driver==3.20.2 future==0.18.2 gevent==20.5.2 greenlet==0.4.15 importlib-metadata==1.6.0 kombu==4.6.9 linecache2==1.0.0 mock==4.0.2 more-itertools==8.3.0 nose==1.3.7 packaging==20.4 pluggy==0.13.1 py==1.8.1 pyparsing==2.4.7 pytest==5.4.2 pytz==2020.1 redis==3.5.2 six==1.15.0 traceback2==1.4.0 unittest2==1.1.0 vine==1.3.0 wcwidth==0.1.9 zipp==3.1.0 zope.event==4.4 zope.interface==5.1.0"><pre class="notranslate"><code class="notranslate">amqp==2.6.0 attrs==19.3.0 billiard==3.6.3.0 case==1.5.3 cassandra-driver==3.20.2 future==0.18.2 gevent==20.5.2 greenlet==0.4.15 importlib-metadata==1.6.0 kombu==4.6.9 linecache2==1.0.0 mock==4.0.2 more-itertools==8.3.0 nose==1.3.7 packaging==20.4 pluggy==0.13.1 py==1.8.1 pyparsing==2.4.7 pytest==5.4.2 pytz==2020.1 redis==3.5.2 six==1.15.0 traceback2==1.4.0 unittest2==1.1.0 vine==1.3.0 wcwidth==0.1.9 zipp==3.1.0 zope.event==4.4 zope.interface==5.1.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">CassandraBackend work fine</p> <h1 dir="auto">Actual Behavior</h1> <h2 dir="auto">in prefork pool or solo:</h2> <p dir="auto">it can work, just not good, i think</p> <h2 dir="auto">in threads or gevent pool:</h2> <p dir="auto">get these error frequently</p> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2020-06-02 21:52:19,592: ERROR/MainProcess] Task add[4bd528a0-c1ba-456c-b74e-7dee054616bb] raised unexpected: AttributeError(&quot;'NoneType' object has no attribute 'execute'&quot;) Traceback (most recent call last): File &quot;/home/bx/project/celery/celery/app/trace.py&quot;, line 480, in trace_task uuid, retval, task_request, publish_result, File &quot;/home/bx/project/celery/celery/backends/base.py&quot;, line 158, in mark_as_done self.store_result(task_id, result, state, request=request) File &quot;/home/bx/project/celery/celery/backends/base.py&quot;, line 443, in store_result request=request, **kwargs) File &quot;/home/bx/project/celery/celery/backends/cassandra.py&quot;, line 201, in _store_result self._session.execute(self._write_stmt, ( AttributeError: 'NoneType' object has no attribute 'execute'"><pre class="notranslate"><code class="notranslate">[2020-06-02 21:52:19,592: ERROR/MainProcess] Task add[4bd528a0-c1ba-456c-b74e-7dee054616bb] raised unexpected: AttributeError("'NoneType' object has no attribute 'execute'") Traceback (most recent call last): File "/home/bx/project/celery/celery/app/trace.py", line 480, in trace_task uuid, retval, task_request, publish_result, File "/home/bx/project/celery/celery/backends/base.py", line 158, in mark_as_done self.store_result(task_id, result, state, request=request) File "/home/bx/project/celery/celery/backends/base.py", line 443, in store_result request=request, **kwargs) File "/home/bx/project/celery/celery/backends/cassandra.py", line 201, in _store_result self._session.execute(self._write_stmt, ( AttributeError: 'NoneType' object has no attribute 'execute' </code></pre></div> <p dir="auto"> </p><p dir="auto">and</p> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2020-06-02 21:52:29,773: ERROR/MainProcess] Task add[27c980d3-126a-430d-a8e0-92d749ceb735] raised unexpected: OperationTimedOut(&quot;errors=errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042, last_host=None&quot;) Traceback (most recent call last): File &quot;/home/bx/project/celery/celery/app/trace.py&quot;, line 480, in trace_task uuid, retval, task_request, publish_result, File &quot;/home/bx/project/celery/celery/backends/base.py&quot;, line 158, in mark_as_done self.store_result(task_id, result, state, request=request) File &quot;/home/bx/project/celery/celery/backends/base.py&quot;, line 443, in store_result request=request, **kwargs) File &quot;/home/bx/project/celery/celery/backends/cassandra.py&quot;, line 207, in _store_result buf_t(self.encode(self.current_task_children(request))) File &quot;cassandra/cluster.py&quot;, line 2345, in cassandra.cluster.Session.execute File &quot;cassandra/cluster.py&quot;, line 4304, in cassandra.cluster.ResponseFuture.result cassandra.OperationTimedOut: errors=errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042, last_host=None"><pre class="notranslate"><code class="notranslate">[2020-06-02 21:52:29,773: ERROR/MainProcess] Task add[27c980d3-126a-430d-a8e0-92d749ceb735] raised unexpected: OperationTimedOut("errors=errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042, last_host=None") Traceback (most recent call last): File "/home/bx/project/celery/celery/app/trace.py", line 480, in trace_task uuid, retval, task_request, publish_result, File "/home/bx/project/celery/celery/backends/base.py", line 158, in mark_as_done self.store_result(task_id, result, state, request=request) File "/home/bx/project/celery/celery/backends/base.py", line 443, in store_result request=request, **kwargs) File "/home/bx/project/celery/celery/backends/cassandra.py", line 207, in _store_result buf_t(self.encode(self.current_task_children(request))) File "cassandra/cluster.py", line 2345, in cassandra.cluster.Session.execute File "cassandra/cluster.py", line 4304, in cassandra.cluster.ResponseFuture.result cassandra.OperationTimedOut: errors=errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042, last_host=None </code></pre></div> <p dir="auto"></p> <h1 dir="auto">Fix it</h1> <p dir="auto">remove method(CassandraBackend.process_cleanup), it works fine.</p> <p dir="auto">because.</p> <p dir="auto">all tasks should share one instance of cassandra.cluster.Cluster and session, not create one ervery time. that is the correct way to use cassandra-driver</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 verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="778808199" data-permission-text="Title is private" data-url="https://github.com/DefectDojo/django-DefectDojo/issues/3582" data-hovercard-type="pull_request" data-hovercard-url="/DefectDojo/django-DefectDojo/pull/3582/hovercard" href="https://github.com/DefectDojo/django-DefectDojo/pull/3582">DefectDojo/django-DefectDojo#3582</a></p> <h4 dir="auto">Possible Duplicates</h4> <h2 dir="auto">Environment &amp; Settings</h2> <h1 dir="auto">Steps to Reproduce</h1> <p dir="auto">I have come across this when running using OpenShift restricted SCC</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="oc logs defect-dojo-defectdojo-celery-worker-78dbb86b48-2rxn2 uid=1000640000(1000640000) gid=0(root) groups=0(root),1000640000 Waiting for database to be reachable [06/Jan/2021 13:40:58] INFO [dojo.models:3474] enabling audit logging [06/Jan/2021 13:41:00] INFO [dojo.models:3474] enabling audit logging Running a worker with superuser privileges when the worker accepts messages serialized with pickle is a very bad idea! If you really want to continue then you have to set the C_FORCE_ROOT environment variable (but please think about this before you do). User information: uid=1000640000 euid=1000640000 gid=0 egid=0"><pre class="notranslate"><code class="notranslate">oc logs defect-dojo-defectdojo-celery-worker-78dbb86b48-2rxn2 uid=1000640000(1000640000) gid=0(root) groups=0(root),1000640000 Waiting for database to be reachable [06/Jan/2021 13:40:58] INFO [dojo.models:3474] enabling audit logging [06/Jan/2021 13:41:00] INFO [dojo.models:3474] enabling audit logging Running a worker with superuser privileges when the worker accepts messages serialized with pickle is a very bad idea! If you really want to continue then you have to set the C_FORCE_ROOT environment variable (but please think about this before you do). User information: uid=1000640000 euid=1000640000 gid=0 egid=0 </code></pre></div> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A</li> <li><strong>Minimal Celery Version</strong>: 4.1.1</li> <li><strong>Minimal Kombu Version</strong>: 4.1</li> <li><strong>Minimal Broker Version</strong>: N/A</li> <li><strong>Minimal Result Backend Version</strong>: N/A</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A</li> <li><strong>Minimal Broker Client Version</strong>: N/A</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A</li> </ul> <h3 dir="auto">Python Packages</h3> <h3 dir="auto">Other Dependencies</h3> <h2 dir="auto">Minimally Reproducible Test Case</h2> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">I believe that GID=0 doesn't give superuser privileges, so am not sure why the celery checks are implemented in this manner.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">The gid (and egid) being 0 does not give superuser prvilieges<br> as stated - <a href="https://unix.stackexchange.com/questions/44077/what-does-it-mean-to-be-in-group-0" rel="nofollow">https://unix.stackexchange.com/questions/44077/what-does-it-mean-to-be-in-group-0</a> and <a href="https://docs.celeryproject.org/en/stable/userguide/daemonizing.html#running-the-worker-with-superuser-privileges-root" rel="nofollow">https://docs.celeryproject.org/en/stable/userguide/daemonizing.html#running-the-worker-with-superuser-privileges-root</a></p>
0
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.1.5</p> <p dir="auto"><strong>Description</strong></p> <p dir="auto">Adding <code class="notranslate">&lt;env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" /&gt;</code> to <code class="notranslate">phpunit.xml.dist</code> has no affect.</p> <p dir="auto"><strong>How to reproduce</strong></p> <p dir="auto">Install the symfony skeleteon</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="composer create-project symfony/skeleton:4.1.* bug_app cd bug_app composer require --dev &quot;symfony/phpunit-bridge:*&quot; php bin/phpunit"><pre class="notranslate"><code class="notranslate">composer create-project symfony/skeleton:4.1.* bug_app cd bug_app composer require --dev "symfony/phpunit-bridge:*" php bin/phpunit </code></pre></div> <p dir="auto">Add <code class="notranslate">&lt;env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" /&gt;</code> to <a href="https://github.com/leevigraham/symonfy-phpunit-bridge/blob/master/phpunit.xml.dist#L18">phpunit.xml.dist</a> as per the <a href="https://symfony.com/doc/current/components/phpunit_bridge.html#configuration" rel="nofollow">configuration docs</a>.</p> <p dir="auto">Create a new DeprecatedTest: <a href="https://github.com/leevigraham/symonfy-phpunit-bridge/blob/master/tests/DeprecatedTest.php">https://github.com/leevigraham/symonfy-phpunit-bridge/blob/master/tests/DeprecatedTest.php</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;?php namespace App\Tests; use PHPUnit\Framework\TestCase; class DeprecatedTest extends TestCase { public function testDeprecatedCode() { @trigger_error('This &quot;Foo&quot; method is deprecated.', E_USER_DEPRECATED); @trigger_error('The second argument of the &quot;Bar&quot; method is deprecated.', E_USER_DEPRECATED); } }"><pre class="notranslate"><code class="notranslate">&lt;?php namespace App\Tests; use PHPUnit\Framework\TestCase; class DeprecatedTest extends TestCase { public function testDeprecatedCode() { @trigger_error('This "Foo" method is deprecated.', E_USER_DEPRECATED); @trigger_error('The second argument of the "Bar" method is deprecated.', E_USER_DEPRECATED); } } </code></pre></div> <p dir="auto">Run <code class="notranslate">php bin/phpunit</code> again. Deprecation notices are shown.</p> <p dir="auto">Example Repo: <a href="https://github.com/leevigraham/symonfy-phpunit-bridge">https://github.com/leevigraham/symonfy-phpunit-bridge</a></p> <p dir="auto"><strong>Additional context</strong></p> <p dir="auto">Screenshot of issue:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25124/46473665-3fd37280-c824-11e8-8bff-ec6daa220da0.png"><img src="https://user-images.githubusercontent.com/25124/46473665-3fd37280-c824-11e8-8bff-ec6daa220da0.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Running <code class="notranslate">SYMFONY_DEPRECATIONS_HELPER=disabled php bin/phpunit</code> produces expected output:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25124/46473893-de5fd380-c824-11e8-9b58-d33b297e430a.png"><img src="https://user-images.githubusercontent.com/25124/46473893-de5fd380-c824-11e8-9b58-d33b297e430a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">// <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nicolas-grekas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nicolas-grekas">@nicolas-grekas</a></p>
<p dir="auto"><strong>Symfony version(s) affected</strong>: all ?</p> <p dir="auto"><strong>Description</strong><br> phpunit-bridge ignores the value "disabled" for the environment variable SYMFONY_DEPRECATIONS_HELPER when set in phpunit.xml. The value "weak" works as expected.<br> Also, setting this environment variable in the shell works as expected.</p> <p dir="auto">Tested with phpunit-bridge-4.1.4</p> <p dir="auto"><strong>How to reproduce</strong><br> set in phpunit.xml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;php&gt; &lt;env name=&quot;SYMFONY_DEPRECATIONS_HELPER&quot; value=&quot;disabled&quot; /&gt; &lt;/php&gt;"><pre class="notranslate"><code class="notranslate">&lt;php&gt; &lt;env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" /&gt; &lt;/php&gt; </code></pre></div> <p dir="auto">and run a test which will cause a deprecation warning.</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>.):</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br> 1.4</p> <p dir="auto"><strong>Environment</strong>:<br> Ubuntu Wily (15)</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>:<br> local pc</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):<br> 4.2.0-30-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35265901" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/35" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/35/hovercard" href="https://github.com/kubernetes/kubernetes/issues/35">#35</a>-Ubuntu SMP</li> <li><strong>Install tools</strong>:<br> <a href="http://kubernetes.io/docs/getting-started-guides/kubeadm/" rel="nofollow">http://kubernetes.io/docs/getting-started-guides/kubeadm/</a></li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> at the step<br> <code class="notranslate">kubeadm init</code><br> Blocks at "waiting for the control plane to become ready" forever</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto"><strong>Anything else do we need to know</strong>:<br> I am following the instruction of <a href="http://kubernetes.io/docs/getting-started-guides/kubeadm/" rel="nofollow">http://kubernetes.io/docs/getting-started-guides/kubeadm/</a>. Block for at least one day.</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p> <p dir="auto"><a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/volumemanager/reconciler/reconciler.go#L486">reconstructVolume</a> calls plugin's <code class="notranslate">ConstructVolumeSpec</code> to create a volume spec and use this volume spec in plugin's <code class="notranslate">NewMounter</code> to mount the volume.</p> <p dir="auto">Problem is none of the plugins set fs type in <code class="notranslate">ConstructVolumeSpec</code>. As a result:</p> <ul dir="auto"> <li>for plugins that has fsType as a string pointer (e.g. azure_dd), kubelet will crash</li> <li>for other volumes, if the volume is formatted as xfs, it cannot be mounted.</li> </ul> <p dir="auto">@kubernetes/sig-storage <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jingxu97/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jingxu97">@jingxu97</a></p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>:</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
0
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">When I try update production project with 100+ pages and 10+ languages to Next.js 9.0.4 and move all my routes from <code class="notranslate">next-routes</code> to built-in dynamic routes found some issue on client side routing.</p> <p dir="auto">In multi language sites in most cases we need to show locale code in the start of paths but with dynamic routes it cant be done right now, this will lead to an warning in console:<a href="https://github.com/zeit/next.js/blob/f41f630d19a1f87265fd77ae884b003d85915847/packages/next-server/lib/router/router.ts#L317">https://github.com/zeit/next.js/blob/f41f630d19a1f87265fd77ae884b003d85915847/packages/next-server/lib/router/router.ts#L317</a></p> <p dir="auto">So if we have dynamic route like <code class="notranslate">/post/[id]</code> and try to build link component with <code class="notranslate">href="/post/[id]?locale=de"</code> and <code class="notranslate">as="/de/post/${id}"</code> we have warning in console after click on that link.</p> <p dir="auto">As I understand this issue was appears because route created from href does not match regex created from <code class="notranslate">as</code>, but I dont quite understand how to fix it for dynamic routes.</p> <p dir="auto">Need clear way to build multi language sites without using <code class="notranslate">next-routes</code>.</p> <h2 dir="auto">To Reproduce</h2> <ol dir="auto"> <li>Create dynamic route <code class="notranslate">/post/[id]</code>.</li> <li>Create <code class="notranslate">&lt;Link /&gt;</code> component with <code class="notranslate">href="/post/[id]?locale=de"</code> and <code class="notranslate">as="/de/post/${id}"</code>.</li> <li>Click on it and you will see warning in the console.</li> </ol> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>Next.js 9.0.4</li> </ul>
<p dir="auto"><em>Previously <a href="https://spectrum.chat/next-js/general/dynamic-routing-with-optional-parameters-how-to-avoid-two-bundles~27679250-3f59-4fa4-916d-3ff77a88fed1" rel="nofollow">a thread on Spectrum</a>.</em></p> <p dir="auto">I need to support these routes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/posts /posts/1 /posts/2"><pre class="notranslate"><code class="notranslate">/posts /posts/1 /posts/2 </code></pre></div> <p dir="auto">As mentioned in the <a href="https://github.com/zeit/next.js/issues/7607" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/7607/hovercard">dynamic routing RFC</a>, a workaround can be implemented like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// pages/posts/[id].js export default () =&gt; &lt;h1&gt;Post no. {router.query.id}&lt;/h1&gt; // pages/posts.js export { default } from './posts/[id]'"><pre class="notranslate"><span class="pl-c">// pages/posts/[id].js</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span>Post no. <span class="pl-kos">{</span><span class="pl-s1">router</span><span class="pl-kos">.</span><span class="pl-c1">query</span><span class="pl-kos">.</span><span class="pl-c1">id</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span> <span class="pl-c">// pages/posts.js</span> <span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./posts/[id]'</span></pre></div> <p dir="auto">However, as these are two entrypoints, it creates two bundles, so when I navigate to <code class="notranslate">/posts</code> and then to <code class="notranslate">/posts/1</code>, I am waiting for a new bundle to load.</p> <p dir="auto">Ideally, there would be a way to tell Next.js that all the post-related routes should be handled by a single page component. We might need to wait for non-filesystem-based routing: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="476703219" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/8241" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/8241/hovercard" href="https://github.com/vercel/next.js/issues/8241">#8241</a>.</p>
1
<p dir="auto">PyTorch checks if tensors have been modified in-place to ensure correctness of the backward operation, with <code class="notranslate">ctx.save_for_backward</code> and <code class="notranslate">ctx.saved_tensors</code> in the <code class="notranslate">forward</code> and <code class="notranslate">backward</code> methods of subclasses of <code class="notranslate">torch.autograd.Function</code>. This check does not appear to function when the saved tensor is not the 'owner' of its storage, e.g. when it is the result of a <code class="notranslate">view</code> or <code class="notranslate">transpose</code> operation.</p> <p dir="auto">To reproduce:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch class f(torch.autograd.Function): @staticmethod def forward(ctx, tensor1): # make sure we don't share storage with our input # (just to be clear that that's not what's going wrong) tensor2 = tensor1.clone() # tensor3 shares storage with tensor2 # tensor3 = tensor2.view(-1) etc. would also demonstrate the problem tensor3 = tensor2.t() ctx.save_for_backward(tensor3) return tensor3 @staticmethod def backward(ctx, grad): # trigger correctness check _ = ctx.saved_tensors return grad.t().clone() x = torch.rand(2, 3, requires_grad=True) y = f.apply(x) y += 1 # Does not raise an error; this is the bug. y.backward(torch.rand_like(y)) # In constrast, the following code correctly raises an error. class ff(torch.autograd.Function): @staticmethod def forward(ctx, tensor1): tensor2 = tensor1.clone() ctx.save_for_backward(tensor2) return tensor2 @staticmethod def backward(ctx, grad): _ = ctx.saved_tensors return grad.clone() xx = torch.rand(2, 3, requires_grad=True) yy = ff.apply(xx) yy += 1 yy.backward(torch.rand_like(yy))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">class</span> <span class="pl-s1">f</span>(<span class="pl-s1">torch</span>.<span class="pl-s1">autograd</span>.<span class="pl-v">Function</span>): <span class="pl-en">@<span class="pl-s1">staticmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">ctx</span>, <span class="pl-s1">tensor1</span>): <span class="pl-c"># make sure we don't share storage with our input</span> <span class="pl-c"># (just to be clear that that's not what's going wrong)</span> <span class="pl-s1">tensor2</span> <span class="pl-c1">=</span> <span class="pl-s1">tensor1</span>.<span class="pl-en">clone</span>() <span class="pl-c"># tensor3 shares storage with tensor2</span> <span class="pl-c"># tensor3 = tensor2.view(-1) etc. would also demonstrate the problem</span> <span class="pl-s1">tensor3</span> <span class="pl-c1">=</span> <span class="pl-s1">tensor2</span>.<span class="pl-en">t</span>() <span class="pl-s1">ctx</span>.<span class="pl-en">save_for_backward</span>(<span class="pl-s1">tensor3</span>) <span class="pl-k">return</span> <span class="pl-s1">tensor3</span> <span class="pl-en">@<span class="pl-s1">staticmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">backward</span>(<span class="pl-s1">ctx</span>, <span class="pl-s1">grad</span>): <span class="pl-c"># trigger correctness check</span> <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">ctx</span>.<span class="pl-s1">saved_tensors</span> <span class="pl-k">return</span> <span class="pl-s1">grad</span>.<span class="pl-en">t</span>().<span class="pl-en">clone</span>() <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>(<span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-s1">requires_grad</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">f</span>.<span class="pl-en">apply</span>(<span class="pl-s1">x</span>) <span class="pl-s1">y</span> <span class="pl-c1">+=</span> <span class="pl-c1">1</span> <span class="pl-c"># Does not raise an error; this is the bug.</span> <span class="pl-s1">y</span>.<span class="pl-en">backward</span>(<span class="pl-s1">torch</span>.<span class="pl-en">rand_like</span>(<span class="pl-s1">y</span>)) <span class="pl-c"># In constrast, the following code correctly raises an error.</span> <span class="pl-k">class</span> <span class="pl-s1">ff</span>(<span class="pl-s1">torch</span>.<span class="pl-s1">autograd</span>.<span class="pl-v">Function</span>): <span class="pl-en">@<span class="pl-s1">staticmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">ctx</span>, <span class="pl-s1">tensor1</span>): <span class="pl-s1">tensor2</span> <span class="pl-c1">=</span> <span class="pl-s1">tensor1</span>.<span class="pl-en">clone</span>() <span class="pl-s1">ctx</span>.<span class="pl-en">save_for_backward</span>(<span class="pl-s1">tensor2</span>) <span class="pl-k">return</span> <span class="pl-s1">tensor2</span> <span class="pl-en">@<span class="pl-s1">staticmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">backward</span>(<span class="pl-s1">ctx</span>, <span class="pl-s1">grad</span>): <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">ctx</span>.<span class="pl-s1">saved_tensors</span> <span class="pl-k">return</span> <span class="pl-s1">grad</span>.<span class="pl-en">clone</span>() <span class="pl-s1">xx</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>(<span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-s1">requires_grad</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">yy</span> <span class="pl-c1">=</span> <span class="pl-s1">ff</span>.<span class="pl-en">apply</span>(<span class="pl-s1">xx</span>) <span class="pl-s1">yy</span> <span class="pl-c1">+=</span> <span class="pl-c1">1</span> <span class="pl-s1">yy</span>.<span class="pl-en">backward</span>(<span class="pl-s1">torch</span>.<span class="pl-en">rand_like</span>(<span class="pl-s1">yy</span>))</pre></div> <p dir="auto">Expected behaviour is for an exception to be raised on the line <code class="notranslate">y.backward(torch.rand_like(y))</code>, in the same manner as an exception is raised on the line <code class="notranslate">yy.backward(torch.rand_like(yy))</code>.</p> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): 1.2</li> <li>OS (e.g., Linux): Linux</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): conda</li> <li>Python version: 3.7.4</li> </ul> <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/ssnl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ssnl">@ssnl</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">Gradients aren't backpropagated when all three conditions are met:</p> <ol dir="auto"> <li>Use <code class="notranslate">torch.utils.checkpoint</code>.</li> <li>Place <code class="notranslate">nn.InstanceNorm?d</code> right before any in-place module such as <code class="notranslate">nn.ReLU(inplace=True)</code>.</li> <li>The checkpoint returns the result of the in-place module.</li> </ol> <h2 dir="auto">To Reproduce</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch from torch import nn from torch.utils.checkpoint import checkpoint x = torch.ones(3, 2, 1, requires_grad=True) model = nn.Sequential( nn.InstanceNorm1d(2), nn.ReLU(inplace=True), ) y = checkpoint(model, x) y.norm().backward() print(x.grad) # Output: None # Expected: tensor([[[0.],[0.]], ...])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span> <span class="pl-k">import</span> <span class="pl-s1">nn</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">checkpoint</span> <span class="pl-k">import</span> <span class="pl-s1">checkpoint</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">3</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-s1">requires_grad</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Sequential</span>( <span class="pl-s1">nn</span>.<span class="pl-v">InstanceNorm1d</span>(<span class="pl-c1">2</span>), <span class="pl-s1">nn</span>.<span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), ) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">checkpoint</span>(<span class="pl-s1">model</span>, <span class="pl-s1">x</span>) <span class="pl-s1">y</span>.<span class="pl-en">norm</span>().<span class="pl-en">backward</span>() <span class="pl-en">print</span>(<span class="pl-s1">x</span>.<span class="pl-s1">grad</span>) <span class="pl-c"># Output: None</span> <span class="pl-c"># Expected: tensor([[[0.],[0.]], ...])</span></pre></div> <p dir="auto"><code class="notranslate">x</code> the input tensor doesn't receive gradients. <code class="notranslate">x.grad</code> is still <code class="notranslate">None</code>, which is not expected.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto"><code class="notranslate">x.grad</code> should be <code class="notranslate">torch.zeros(3, 2, 1)</code>. If we remove any of the conditions, the gradients are backpropagated correctly:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# No in-place operation model = nn.Sequential( nn.InstanceNorm1d(2), nn.ReLU(inplace=False), ) y = checkpoint(model, x) # No checkpoint model = nn.Sequential( nn.InstanceNorm1d(2), nn.ReLU(inplace=True), ) y = model(x) # Not at the end of checkpoint model = nn.Sequential( nn.InstanceNorm1d(2), nn.ReLU(inplace=True), nn.Conv1d(2, 2, 1), ) y = checkpoint(model, x) # Other norm model = nn.Sequential( nn.BatchNorm1d(2), nn.ReLU(inplace=True), ) y = checkpoint(model, x)"><pre class="notranslate"><span class="pl-c"># No in-place operation</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Sequential</span>( <span class="pl-s1">nn</span>.<span class="pl-v">InstanceNorm1d</span>(<span class="pl-c1">2</span>), <span class="pl-s1">nn</span>.<span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">False</span>), ) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">checkpoint</span>(<span class="pl-s1">model</span>, <span class="pl-s1">x</span>) <span class="pl-c"># No checkpoint</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Sequential</span>( <span class="pl-s1">nn</span>.<span class="pl-v">InstanceNorm1d</span>(<span class="pl-c1">2</span>), <span class="pl-s1">nn</span>.<span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), ) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">model</span>(<span class="pl-s1">x</span>) <span class="pl-c"># Not at the end of checkpoint</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Sequential</span>( <span class="pl-s1">nn</span>.<span class="pl-v">InstanceNorm1d</span>(<span class="pl-c1">2</span>), <span class="pl-s1">nn</span>.<span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), <span class="pl-s1">nn</span>.<span class="pl-v">Conv1d</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>), ) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">checkpoint</span>(<span class="pl-s1">model</span>, <span class="pl-s1">x</span>) <span class="pl-c"># Other norm</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Sequential</span>( <span class="pl-s1">nn</span>.<span class="pl-v">BatchNorm1d</span>(<span class="pl-c1">2</span>), <span class="pl-s1">nn</span>.<span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), ) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">checkpoint</span>(<span class="pl-s1">model</span>, <span class="pl-s1">x</span>)</pre></div> <h2 dir="auto">Environment</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information... PyTorch version: 1.2.0 Is debug build: No CUDA used to build PyTorch: 10.0.130 OS: Ubuntu 18.04.2 LTS GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 CMake version: version 3.10.2 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 10.0.130 GPU models and configuration: GPU 0: Tesla P40 GPU 1: Tesla P40 GPU 2: Tesla P40 GPU 3: Tesla P40 GPU 4: Tesla P40 GPU 5: Tesla P40 GPU 6: Tesla P40 GPU 7: Tesla P40 Nvidia driver version: 410.104 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.2 Versions of relevant libraries: [pip3] numpy==1.16.4 [pip3] torch==1.2.0 [pip3] torchgpipe==0.0.3 [pip3] torchvision==0.4.0 [conda] blas 1.0 mkl [conda] mkl 2019.4 243 [conda] mkl-include 2019.4 243 [conda] mkl-service 2.0.2 py36h7b6447c_0 [conda] mkl_fft 1.0.12 py36ha843d7b_0 [conda] mkl_random 1.0.2 py36hd81dba3_0 [conda] torch 1.2.0 pypi_0 pypi [conda] torchgpipe 0.0.3 dev_0 &lt;develop&gt; [conda] torchvision 0.4.0 pypi_0 pypi"><pre class="notranslate"><code class="notranslate">Collecting environment information... PyTorch version: 1.2.0 Is debug build: No CUDA used to build PyTorch: 10.0.130 OS: Ubuntu 18.04.2 LTS GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 CMake version: version 3.10.2 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 10.0.130 GPU models and configuration: GPU 0: Tesla P40 GPU 1: Tesla P40 GPU 2: Tesla P40 GPU 3: Tesla P40 GPU 4: Tesla P40 GPU 5: Tesla P40 GPU 6: Tesla P40 GPU 7: Tesla P40 Nvidia driver version: 410.104 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.2 Versions of relevant libraries: [pip3] numpy==1.16.4 [pip3] torch==1.2.0 [pip3] torchgpipe==0.0.3 [pip3] torchvision==0.4.0 [conda] blas 1.0 mkl [conda] mkl 2019.4 243 [conda] mkl-include 2019.4 243 [conda] mkl-service 2.0.2 py36h7b6447c_0 [conda] mkl_fft 1.0.12 py36ha843d7b_0 [conda] mkl_random 1.0.2 py36hd81dba3_0 [conda] torch 1.2.0 pypi_0 pypi [conda] torchgpipe 0.0.3 dev_0 &lt;develop&gt; [conda] torchvision 0.4.0 pypi_0 pypi </code></pre></div> <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/ssnl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ssnl">@ssnl</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</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/gqchen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gqchen">@gqchen</a></p>
1
<p dir="auto">To reproduce:</p> <ol dir="auto"> <li>Go to Available Updates.</li> <li>Make sure you have packages that need updates.</li> <li>Hit "Update All".</li> </ol> <p dir="auto">The Update button within the package cards will change to "☁️ Updating..." with the stripes running right to left. Leave this page open and come back 5 minutes later. It will still say updating. But if you reload Atom, the packages will be updated.</p> <p dir="auto">This is in the latest version. (0.208.0)</p>
<p dir="auto">Just noticed this as of Atom 0.208.0-c06d62e:</p> <ol dir="auto"> <li>Click the <code class="notranslate">Update</code> button in an available update package card in the Updates panel</li> <li>Wait a sufficiently long time so you know it should've been installed (~5 mins with an SSD, for example)</li> <li>Package card will still say "Updating..."</li> <li>Click another panel in Settings View</li> <li>Close Settings View</li> <li>Reopen Settings View</li> <li>Click the Updates panel</li> <li>Assuming there was only 1 update, it will report that all packages are up-to-date.</li> </ol> <p dir="auto">Can anyone in @atom/feedback reproduce with the same version?</p>
1
<p dir="auto">Electron Info</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;electron-devtools-installer&quot;: &quot;^1.1.2&quot;, &quot;electron-packager&quot;: &quot;^7.0.2&quot;, &quot;electron-prebuilt&quot;: &quot;^1.2.3&quot;, &quot;electron-rebuild&quot;: &quot;^1.1.4&quot;,"><pre class="notranslate"><code class="notranslate">"electron-devtools-installer": "^1.1.2", "electron-packager": "^7.0.2", "electron-prebuilt": "^1.2.3", "electron-rebuild": "^1.1.4", </code></pre></div> <ul dir="auto"> <li>Operating system: Mac 10.11.2</li> </ul> <p dir="auto">Problem:<br> The following code snipped runs fine in development but does not execute when packaged.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const exec = require('child_process').exec; exec('echo $NODEPATH', (function(error, stdout, stderr){ this.log_info(&quot;hehe&quot;) if (error) { console.error(`exec error: ${error}`); return; } console.log(`stdout: ${stdout}`); console.log(`stderr: ${stderr}`); }).bind(this)); "><pre class="notranslate"><code class="notranslate">const exec = require('child_process').exec; exec('echo $NODEPATH', (function(error, stdout, stderr){ this.log_info("hehe") if (error) { console.error(`exec error: ${error}`); return; } console.log(`stdout: ${stdout}`); console.log(`stderr: ${stderr}`); }).bind(this)); </code></pre></div> <p dir="auto">Any ideas why I can't execute system commands in Electron when the app is packaged?</p>
<ul dir="auto"> <li>Electron version: 0.30 - 1.0.1</li> <li>Operating system: OSX Yosemite</li> </ul> <p dir="auto">I having a problem PATH using Electron in production. The problem I have is with "pdfinfo" (poppler). Poppler was installed with homebrew and it is in the PATH (I can execute "pdfinfo" from any folder in my terminal).</p> <p dir="auto">When starting my Electron app from the command line, I have no problem at all with the PATH. This will work fine, and "pdfinfo" will be found and work correctly:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron ./"><pre class="notranslate"><code class="notranslate">./node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron ./ </code></pre></div> <p dir="auto">It's only when I start my app in production (opening the Electron.app app icon like any normal app). When spawning "pdfinfo" in this scenario, i get this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stderr stdout: /bin/sh: pfdinfo: command not found"><pre class="notranslate"><code class="notranslate">stderr stdout: /bin/sh: pfdinfo: command not found </code></pre></div> <p dir="auto">Notice the "/bin/sh" path.</p> <p dir="auto">While looking for an explanation for this problem I stumbled upon this thread: <a href="https://discuss.atom.io/t/every-spawn-task-throws-enoent-when-electron-app-packaged-for-distribution/18692" rel="nofollow">https://discuss.atom.io/t/every-spawn-task-throws-enoent-when-electron-app-packaged-for-distribution/18692</a></p> <p dir="auto">Read where "erikmellum" states:</p> <blockquote> <p dir="auto">When in production, spawn does not use your regular PATH variable to locate executables. It will basically use a PATH that includes OS bin folders (such as /usr/bin).</p> </blockquote> <p dir="auto">Which kinda seems to be related to my problem. Is this true? How can I get around this? Is there a way to tell production Electron to use the normal system PATH in production?</p>
1
<p dir="auto"><strong>Migrated issue, originally created by Praveen Arimbrathodiyil (<a href="https://github.com/pravi">@pravi</a>)</strong></p> <p dir="auto">File "/usr/lib/python2.7/dist-packages/gnukhataserver/rpc_reports.py", line 134, in xmlrpc_getLedger<br> grandTotal =float(balanceRow["total_CrBal"]) + float(balanceRow["curbal"])<br> File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/result.py", line 332, in _key_fallback<br> expression._string_or_unprintable(key))<br> sqlalchemy.exc.NoSuchColumnError: "Could not locate column in row for column 'total_CrBal'"<br> org.apache.xmlrpc.XmlRpcException: error</p> <p dir="auto">I'm packaging gnukhata (gnukhata.org) for debian and hit this error. Krishnakant Mane (core developer of gnukhata) said everything is working fine with sqlalchemy 0.7.x. Debian sid has sqlalchemy 0.9.6. He also mentioned you have promised this would be fixed in the next release. Hopefully we can get a patch sooner so it debian and ubuntu packages can be updated. Currently we are forced to create a different repository and ship 0.7.x version of sqlalchemy.</p>
<p dir="auto"><strong>Migrated issue, originally created by Ronny Pfannschmidt (<a href="https://github.com/RonnyPfannschmidt">@RonnyPfannschmidt</a>)</strong></p> <p dir="auto">oracle stored procedures cant be invoked by a select, instead one must call them in a anonymous block</p> <p dir="auto">a way to either access those via the dbapi.callproc method or generating the fit sql would be nice</p> <p dir="auto">currently i work around by compiling to a block on oracle and a select on postgresql<br> i didnt examine other databases</p>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">App is accessible outside of the Windows Store to Download as an .exe File<br> Because of company policies i can never use this app will working. An Environment where i will definetly need to have this app.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">The app can be installed as an .exe setup which auto updates.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29495914/68815814-716d6d00-06b7-11ea-8d42-cf1443b7a825.png"><img src="https://user-images.githubusercontent.com/29495914/68815814-716d6d00-06b7-11ea-8d42-cf1443b7a825.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Allow the default pofile parameter to open multiple tabs when starting the application</p>
0
<p dir="auto">I'm trying to combine the <a href="https://github.com/webpack/webpack/tree/master/examples/two-explicit-vendor-chunks">two-explicit-vendor-trunk</a> example with code splitting. But cannot make it to work.</p> <p dir="auto">I have two pages (NOT real pages, it's an SPA using react and react-router):</p> <ul dir="auto"> <li>/ : needs only <code class="notranslate">vendor.js</code></li> <li>/d3 : needs both <code class="notranslate">vendor.js</code> and <code class="notranslate">d3.js</code></li> </ul> <p dir="auto">The goal is: when visiting /, only <code class="notranslate">app.js</code> and <code class="notranslate">vendor.js</code> are loaded. When the user navigates to /d3, <code class="notranslate">d3.js</code> is loaded as needed. Here is how I try:</p> <p dir="auto"><a href="https://github.com/kawing-chiu/flask-react-redux-example/blob/bc6b52b8eb4978a98561a83f3cf623b041c80a65/client/webpack_config/webpack.dev.config.js">webpack</a> <a href="https://github.com/kawing-chiu/flask-react-redux-example/blob/bc6b52b8eb4978a98561a83f3cf623b041c80a65/client/webpack_config/common.config.js">config</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="entry: { vendor: [ 'react', 'react-dom', 'react-router', ... ], d3: [ 'd3', ], app: [ './src/js/index', ], }, plugins: [ new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', minChunks: Infinity, }), new webpack.optimize.CommonsChunkPlugin({ name: 'd3', minChunks: Infinity, // not sure about the async option here, but without it error occurs async: true, }), ... ],"><pre class="notranslate"><code class="notranslate">entry: { vendor: [ 'react', 'react-dom', 'react-router', ... ], d3: [ 'd3', ], app: [ './src/js/index', ], }, plugins: [ new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', minChunks: Infinity, }), new webpack.optimize.CommonsChunkPlugin({ name: 'd3', minChunks: Infinity, // not sure about the async option here, but without it error occurs async: true, }), ... ], </code></pre></div> <p dir="auto"><a href="https://github.com/kawing-chiu/flask-react-redux-example/blob/bc6b52b8eb4978a98561a83f3cf623b041c80a65/client/src/js/Router.jsx">Router.jsx</a> (I'm using react-router):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default ( &lt;Router history={createBrowserHistory()}&gt; ... &lt;Route path=&quot;d3&quot; getComponent={(location, callback) =&gt; { require.ensure([], (require) =&gt; { callback(null, require('./pages/D3')); }); }} /&gt; ... &lt;/Router&gt; );"><pre class="notranslate"><code class="notranslate">export default ( &lt;Router history={createBrowserHistory()}&gt; ... &lt;Route path="d3" getComponent={(location, callback) =&gt; { require.ensure([], (require) =&gt; { callback(null, require('./pages/D3')); }); }} /&gt; ... &lt;/Router&gt; ); </code></pre></div> <p dir="auto">This config doesn't work as expected since the <code class="notranslate">d3.js</code> bundle is generated but completely ignored by other bundles. And <code class="notranslate">d3.js</code> is also duplicated in chunk <code class="notranslate">1.1.js</code>. So how can I make this to work? I need this configuration because d3 is too large and slows down initial loading on home page a lot. Furthermore I need to do long-term caching on both <code class="notranslate">vendor.js</code> and <code class="notranslate">d3.js</code> so both must be split out as vendor chunks.</p>
<p dir="auto"><strong>I'm submitting a bug report</strong></p> <p dir="auto"><strong>Webpack version:</strong><br> 1.13.2</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> OSX</p> <p dir="auto"><strong>Current behavior:</strong></p> <p dir="auto">Errors in the browser console appear duplicated, regardless of the loader:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/810438/18614527/ad7c0eb0-7d98-11e6-991e-bc63c04ff8d3.png"><img width="584" alt="screen shot 2016-09-18 at 12 04 43" src="https://cloud.githubusercontent.com/assets/810438/18614527/ad7c0eb0-7d98-11e6-991e-bc63c04ff8d3.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/810438/18614536/c7d36bf0-7d98-11e6-8b67-8037429b3876.png"><img width="543" alt="screen shot 2016-09-18 at 12 09 33" src="https://cloud.githubusercontent.com/assets/810438/18614536/c7d36bf0-7d98-11e6-8b67-8037429b3876.png" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected/desired behavior:</strong></p> <p dir="auto">The error message should not be printed twice.</p> <ul dir="auto"> <li><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.</strong></li> </ul> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm i -g create-react-app create-react-app mystuff --scripts-version 0.5.1 cd mystuff npm start"><pre class="notranslate">npm i -g create-react-app create-react-app mystuff --scripts-version 0.5.1 <span class="pl-c1">cd</span> mystuff npm start</pre></div> <p dir="auto">Then make a syntax error in <code class="notranslate">src/App.js</code> or <code class="notranslate">src/App.css</code> and inspect browser output.<br> You can find the config <a href="https://github.com/facebookincubator/create-react-app/blob/bf12c41675cd278a9910e734f82d03e7fe0faf2f/config/webpack.config.dev.js">here</a>.</p> <ul dir="auto"> <li><strong>What is the expected behavior?</strong></li> </ul> <p dir="auto">The error message should not be printed twice.</p> <ul dir="auto"> <li><strong>What is the motivation / use case for changing the behavior?</strong></li> </ul> <p dir="auto">Seeing it printed twice is confusing and annoying.</p> <ul dir="auto"> <li><strong>Browser:</strong> all</li> <li><strong>Language:</strong> all</li> </ul> <hr> <p dir="auto">(I file this in Webpack repo because the error string is passed to WDS already in this form.)</p>
0
<p dir="auto">Decide what to do with each of these</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> deprecate <code class="notranslate">from_csv</code> <del>/ change to be exactly like <code class="notranslate">read_csv</code></del> -&gt; <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="263627789" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/17812" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/17812/hovercard" href="https://github.com/pandas-dev/pandas/pull/17812">#17812</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> from_dict</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> from_records (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="41725189" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/8161" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/8161/hovercard" href="https://github.com/pandas-dev/pandas/issues/8161">#8161</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> from_items (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="277166004" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18529" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/18529/hovercard" href="https://github.com/pandas-dev/pandas/pull/18529">#18529</a>)</li> </ul> <p dir="auto">This is just a suggestion: <code class="notranslate">DataFrame</code> constructor already supports the things that <code class="notranslate">from_dict</code> and <code class="notranslate">from_records</code> do (<code class="notranslate">from_items</code> is not supported by the constructor, but maybe it should be?). Also <code class="notranslate">from_csv</code> does the same thing as <code class="notranslate">pd.read_csv</code>.</p> <p dir="auto">Since <code class="notranslate">There should be one-- and preferably only one --obvious way to do it.</code> maybe these methods should be removed/deprecated?</p> <p dir="auto">I know that this would cause backward incompatibility, so maybe just a deprecation warning could be displayed until a future major release that could remove them.</p>
<h4 dir="auto">Problem description</h4> <p dir="auto">I was looking into how to convert dataframes to numpy arrays so that both column dtypes and names would be retained, preferably in an efficient way so that memory is not duplicated while doing this. In some way, I would like to have a view on internal data already stored by dataframes as a numpy array. I am good with all datatypes already used in dataframe, and names there.</p> <p dir="auto">The issue is that both <code class="notranslate">as_matrix</code> and <code class="notranslate">values</code> convert dtypes of all values. And <code class="notranslate">to_records</code> does not create a simple numpy array.</p> <p dir="auto">I have found two potential StackOverflow answers:</p> <ul dir="auto"> <li><a href="https://stackoverflow.com/questions/40554179/how-to-keep-column-names-when-converting-from-pandas-to-numpy" rel="nofollow">https://stackoverflow.com/questions/40554179/how-to-keep-column-names-when-converting-from-pandas-to-numpy</a></li> <li><a href="https://stackoverflow.com/questions/13187778/convert-pandas-dataframe-to-numpy-array-preserving-index" rel="nofollow">https://stackoverflow.com/questions/13187778/convert-pandas-dataframe-to-numpy-array-preserving-index</a></li> </ul> <p dir="auto">But it seems to me that all those solutions copy data around through intermediate data structures, and then just store them into a new numpy array.</p> <p dir="auto">So I would ask for a way to get data as it is, without any conversions of dtypes, as a numpy array.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.9.27-moby machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: None LOCALE: None.None <p dir="auto">pandas: 0.20.1<br> pytest: None<br> pip: 9.0.1<br> setuptools: 20.7.0<br> Cython: 0.25.2<br> numpy: 1.12.1<br> scipy: 0.19.0<br> xarray: None<br> IPython: None<br> sphinx: None<br> patsy: None<br> dateutil: 2.6.0<br> pytz: 2017.2<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> feather: None<br> matplotlib: None<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: None<br> s3fs: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report and regression, this works fine in 2.1.0</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.1.0"><pre class="notranslate"><code class="notranslate">ansible 2.1.1.0 </code></pre></div> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Create a directory layout like this:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" ├── ansible.cfg ├── host_vars │   └── localhost ├── inventory │   └── hosts └── playbooks └── playbook.yml "><pre class="notranslate"><span class="pl-s">├── ansible.cfg</span> <span class="pl-s">├── host_vars</span> <span class="pl-s">│   └── localhost</span> <span class="pl-s">├── inventory</span> <span class="pl-s">│   └── hosts</span> <span class="pl-s">└── playbooks</span> <span class="pl-s">└── playbook.yml</span> </pre></div> <p dir="auto">Execute <code class="notranslate">ansible-playbook playbooks/playbook.yml</code> from top level directory and try to use a variable that is defined in <code class="notranslate">host_vars/localhost</code></p> <p dir="auto">A testcase can be found here: <a href="https://github.com/alvaroaleman/ansible-testcase-group_vars">https://github.com/alvaroaleman/ansible-testcase-group_vars</a></p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible --version ansible 2.1.1.0 config file = /stuff/ansible.cfg configured module search path = ['./library']"><pre class="notranslate"><code class="notranslate">ansible --version ansible 2.1.1.0 config file = /stuff/ansible.cfg configured module search path = ['./library'] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Just upgraded to ansible 2.1.1 and noticed I could not ssh to any of my nodes anymore. Realized the ssh command that is being used to connect is not including the <code class="notranslate">-o 'IdentityFile=</code> or the <code class="notranslate">-o User=</code> flags. We set the <code class="notranslate">ansible_user</code> and <code class="notranslate">ansible_ssh_private_key_file</code> variables in group_vars for the various environments that each group of hosts is from (typically each environment has a different private_key).</p> <p dir="auto">Was able to get around this by setting the options on the command line.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Move ansible_ssh_private_key_file and ansible_user variables to a group_var for a host (mine are not in all.yml, not sure if that matters) and try to run a playbook without specifying the values on the command line.</p> <p dir="auto">ansible-playbook some_play -vvvv</p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">This is the result when I add <code class="notranslate">-e ansible_user=ubuntu -e ansible_ssh_private_key_file=~/.ssh/dev.pem</code> to the <code class="notranslate">ansible-playbook</code> command</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;10.64.0.218&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=360s -o StrictHostKeyChecking=no -o 'IdentityFile=&quot;/home/tkinz/.ssh/dev.pem&quot;' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 10.64.0.218 '/bin/sh -c '&quot;'&quot;'sudo -H -S -n -u root /bin/sh -c '&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'echo BECOME-SUCCESS-cjlqfgwiukyslnxpcwrfediwgqapkuwh; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;' &amp;&amp; sleep 0'&quot;'&quot;''"><pre class="notranslate"><code class="notranslate">&lt;10.64.0.218&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=360s -o StrictHostKeyChecking=no -o 'IdentityFile="/home/tkinz/.ssh/dev.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 10.64.0.218 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-cjlqfgwiukyslnxpcwrfediwgqapkuwh; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python'"'"'"'"'"'"'"'"' &amp;&amp; sleep 0'"'"'' </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;10.64.0.218&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=360s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 10.64.0.218 '/bin/sh -c '&quot;'&quot;'sudo -H -S -n -u root /bin/sh -c '&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'echo BECOME-SUCCESS-aefstgpfveqloqbmzzweiirdnbxrrtda; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;' &amp;&amp; sleep 0'&quot;'&quot;''"><pre class="notranslate"><code class="notranslate">&lt;10.64.0.218&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=360s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 10.64.0.218 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-aefstgpfveqloqbmzzweiirdnbxrrtda; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python'"'"'"'"'"'"'"'"' &amp;&amp; sleep 0'"'"'' </code></pre></div>
1
<p dir="auto">Sorry, since I don't know what causes this, can't be more specific, and don't know if the other bug reports (currently 4 others) are related or have distinct causes.</p> <p dir="auto">Other issues with the same error:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="13487011" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/6000" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/6000/hovercard" href="https://github.com/rust-lang/rust/issues/6000">#6000</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="13408175" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/5959" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/5959/hovercard" href="https://github.com/rust-lang/rust/issues/5959">#5959</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="13743841" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/6102" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/6102/hovercard" href="https://github.com/rust-lang/rust/issues/6102">#6102</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14241444" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/6440" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/6440/hovercard" href="https://github.com/rust-lang/rust/issues/6440">#6440</a></li> </ul> <p dir="auto">This is as small as I can get the code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="use core::num::Zero; pub trait MyTrait { pub fn method(&amp;mut self); } pub struct MyStruct&lt;U&gt; { pub attr: U, } pub impl&lt;U: Num&gt; MyStruct&lt;U&gt; { pub fn other_method(&amp;mut self) { self.attr += Zero::zero(); } } impl MyTrait for MyStruct&lt;f64&gt; { pub fn method(&amp;mut self) { self.other_method(); } } fn main() { let x = MyStruct {attr: 0.0f64}; let _ = ~x as ~MyTrait; }"><pre class="notranslate"><code class="notranslate">use core::num::Zero; pub trait MyTrait { pub fn method(&amp;mut self); } pub struct MyStruct&lt;U&gt; { pub attr: U, } pub impl&lt;U: Num&gt; MyStruct&lt;U&gt; { pub fn other_method(&amp;mut self) { self.attr += Zero::zero(); } } impl MyTrait for MyStruct&lt;f64&gt; { pub fn method(&amp;mut self) { self.other_method(); } } fn main() { let x = MyStruct {attr: 0.0f64}; let _ = ~x as ~MyTrait; } </code></pre></div>
<p dir="auto">To reproduce:<br> <a href="https://github.com/zwizwa/lars">https://github.com/zwizwa/lars</a><br> d0a9cae2d174c181f80a3e2716118dd59945be78 bug compiling la.elf<br> ( make la.elf )</p> <p dir="auto">This is on Debian wheezy/jessie/sid cocktail.</p> <p dir="auto">rustc 1.0.0-nightly (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7/hovercard" href="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7"><tt>1d00c54</tt></a> 2015-01-30 19:56:34 +0000)<br> binary: rustc<br> commit-hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7/hovercard" href="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7"><tt>1d00c54</tt></a><br> commit-date: 2015-01-30 19:56:34 +0000<br> host: x86_64-unknown-linux-gnu<br> release: 1.0.0-nightly</p> <p dir="auto">[master] tom@zoo:~/lars$ make la.elf<br> RUST_BACKTRACE=1 rustc la.rs -o la.elf<br> ERROR:rbml::reader: failed to find block with tag 7<br> error: internal compiler error: unexpected panic<br> note: the compiler unexpectedly panicked. this is a bug.<br> note: we would appreciate a bug report: <a href="http://doc.rust-lang.org/complement-bugreport.html" rel="nofollow">http://doc.rust-lang.org/complement-bugreport.html</a><br> note: run with <code class="notranslate">RUST_BACKTRACE=1</code> for a backtrace<br> thread 'rustc' panicked at 'explicit panic', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librbml/lib.rs:266</p> <p dir="auto">stack backtrace:<br> 1: 0x2b9353530870 - sys::backtrace::write::h26b40214a7757117H8t<br> 2: 0x2b9353553be0 - failure::on_fail::h7a79bf921b6662fbzkB<br> 3: 0x2b93534c01f0 - rt::unwind::begin_unwind_inner::hfe1c0e12f5e834cfAZA<br> 4: 0x2b935a46b550 - rt::unwind::begin_unwind::h13771489483523584678<br> 5: 0x2b935a46a2e0 - reader::get_doc::hca9c74691b431218nLa<br> 6: 0x2b93553feac0 - metadata::decoder::item_type::h11e3fdce04437c2aTqh<br> 7: 0x2b935540fa40 - metadata::decoder::get_type::h81f5136878596756uDh<br> 8: 0x2b93553be9b0 - metadata::csearch::get_type::h9b0725336787e95fjuk<br> 9: 0x2b9353fb38d0 - collect::CollectCtxt&lt;'a, 'tcx&gt;.AstConv&lt;'tcx&gt;::get_item_type_scheme::ha84927afd1cd11a416u<br> 10: 0x2b9353fa2550 - astconv::ast_path_to_ty::h5eef35501e32996d3It<br> 11: 0x2b9353fa3a40 - astconv::ast_ty_to_ty::closure.32670<br> 12: 0x2b9353f3d7f0 - astconv::ast_ty_to_ty::hdfd5055274123a4bN9t<br> 13: 0x2b9353f9c060 - vec::Vec.FromIterator::from_iter::h13503769950079175686<br> 14: 0x2b9353f99cc0 - astconv::convert_angle_bracketed_parameters::h9025012b833df2f4Vit<br> 15: 0x2b9353f3d260 - astconv::ast_path_substs_for_ty::hb223d380e0653eb777s<br> 16: 0x2b9353fa2550 - astconv::ast_path_to_ty::h5eef35501e32996d3It<br> 17: 0x2b9353fa3a40 - astconv::ast_ty_to_ty::closure.32670<br> 18: 0x2b9353f3d7f0 - astconv::ast_ty_to_ty::hdfd5055274123a4bN9t<br> 19: 0x2b9353f9cb70 - astconv::convert_ty_with_lifetime_elision::h6aef1296b36bbcec2mt<br> 20: 0x2b9353fa78d0 - astconv::ty_of_method_or_bare_fn::hfbbddbe9dd8fd2d8Dtu<br> 21: 0x2b9353fa7750 - astconv::ty_of_method::h90bdcfba9a641a98Zru<br> 22: 0x2b9353fcba40 - collect::convert_methods::ty_of_method::h37cc71cdb4ced048svv<br> 23: 0x2b9353fb94e0 - collect::convert::hbd254ededfa34065yyv<br> 24: 0x2b9353ff3670 - check_crate::closure.33797<br> 25: 0x2b9353ff15b0 - check_crate::hd5b0ce5ac42bd86cIEz<br> 26: 0x2b935311bf50 - driver::phase_3_run_analysis_passes::h3a3da09b2eae9713NFa<br> 27: 0x2b9353103330 - driver::compile_input::h802d2a6759ac022fBba<br> 28: 0x2b93531c9230 - run_compiler::h4517938d3296cfc5l9b<br> 29: 0x2b93531c78c0 - thunk::F.Invoke&lt;A, R&gt;::invoke::h5452441173088021345<br> 30: 0x2b93531c67f0 - rt::unwind::try::try_fn::h8490101008730471441<br> 31: 0x2b93535bef60 - rust_try_inner<br> 32: 0x2b93535bef50 - rust_try<br> 33: 0x2b93531c6aa0 - thunk::F.Invoke&lt;A, R&gt;::invoke::h13338196279056651375<br> 34: 0x2b93535403b0 - sys:🧵:thread_start::h395b8c6815673c5cN3w<br> 35: 0x2b935950bfe0 - start_thread<br> 36: 0x2b9353b73c99 - __clone<br> 37: 0x0 - </p> <p dir="auto">make: *** [la.elf] Error 101</p> <p dir="auto"><a href="http://doc.rust-lang.org/complement-bugreport.html" rel="nofollow">http://doc.rust-lang.org/complement-bugreport.html</a></p>
0
<h2 dir="auto">Feature Request</h2> <p dir="auto">In the <a href="https://babeljs.io/docs/en/babel-plugin-transform-typescript" rel="nofollow">docs</a>, it says that:</p> <blockquote> <p dir="auto">Does not support <code class="notranslate">const enum</code>s because those require type information to compile.</p> </blockquote> <p dir="auto">I don't believe that this is true. Babel should be able to transpile <code class="notranslate">const enum</code>s into objects, which will achieve the same functionality as typescript, through different transpiled output.</p> <p dir="auto">Given this code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const enum Direction { Left, Right, Down, Up } console.log(Direction.Down)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-k">enum</span> <span class="pl-smi">Direction</span> <span class="pl-kos">{</span> <span class="pl-c1">Left</span><span class="pl-kos">,</span> <span class="pl-c1">Right</span><span class="pl-kos">,</span> <span class="pl-c1">Down</span><span class="pl-kos">,</span> <span class="pl-c1">Up</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-smi">Direction</span><span class="pl-kos">.</span><span class="pl-c1">Down</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><code class="notranslate">tsc</code> would compile this to:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log(2)"><pre class="notranslate"><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-c1">2</span><span class="pl-kos">)</span></pre></div> <p dir="auto">I propose that Babel compiles the enum to:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const Direction = { Left: 0, Right: 1, Down: 2, Up: 3 } console.log(Direction.Down)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">Direction</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">Left</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">Right</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">Down</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">Up</span>: <span class="pl-c1">3</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-v">Direction</span><span class="pl-kos">.</span><span class="pl-c1">Down</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Which functions the same as the <code class="notranslate">tsc</code> output.</p> <p dir="auto">A minifier like <code class="notranslate">terser</code>/<code class="notranslate">uglify</code> is able to transpile that output <g-emoji class="g-emoji" alias="point_up" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/261d.png">☝️</g-emoji> to the same as the <code class="notranslate">tsc</code> output.</p>
<p dir="auto">I'm currently targeting IE9+ in my project. I have to use <code class="notranslate">spec.protoToAssign</code> to get classes working. The <code class="notranslate">babelHelpers.inherits</code> helper uses <code class="notranslate">__proto__</code>, which requires the helpers to be transformed. So this forces me to either use inline helpers (a lot of duplication) or to use <code class="notranslate">babel.buildExternalHelpers</code>, which requires me to do a transform with a different set of options.</p> <p dir="auto">In the case of <code class="notranslate">babelHelpers.inherits</code>, and possibly even <code class="notranslate">spec.protoToAssign</code>, would it make sense to use Object.setPrototypeOf instead of <code class="notranslate">__proto__</code> and defer the functionality to a pollyfill?</p>
0
<p dir="auto">I have run into a strange problem using DistributedDataParallel. I have solved it - but this looks like a bug to me.</p> <p dir="auto">The error I am getting is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... in spawnv_passfds False, False, None) ValueError: bad value(s) in fds_to_keep"><pre class="notranslate"><code class="notranslate">... in spawnv_passfds False, False, None) ValueError: bad value(s) in fds_to_keep </code></pre></div> <p dir="auto">This occurs during the spawn() call from pytorch-lightning. The model I am using works in all other modes, and an identical model, trainer setup works in ddp, too.</p> <p dir="auto">After some hair pulling, I found the problem. During the construction of the new model, and before creating trainer, etc, I store the .data property of a Parameter:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="self.class_p = nn.Parameter(torch.Tensor(np.ones(self.data.num_classes) * np.log(1.0)), requires_grad=True) self.class_p_t = self.class_p.data # this is the offending line"><pre class="notranslate"><code class="notranslate">self.class_p = nn.Parameter(torch.Tensor(np.ones(self.data.num_classes) * np.log(1.0)), requires_grad=True) self.class_p_t = self.class_p.data # this is the offending line </code></pre></div> <p dir="auto">I do NOT actually do anything with self.class_p_t - I assigned it in anticipation of logging these values to monitor progress of self learning curriculum learning class weights.</p> <p dir="auto">If the assignment above is present, I get the above failure. Without it, things work fine.</p> <p dir="auto">If this is something you expect, I'd appreciate knowing why - if it's a bug, thought you'd like to know.</p> <p dir="auto">For the record:Ubuntu 19.10, python 3.7.5, pytorch 1.4, venv, pytorch-lightning 0.7.1<br> Note that this is a fully up to date ubuntu ...</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pietern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pietern">@pietern</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrshenli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrshenli">@mrshenli</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pritamdamania87/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pritamdamania87">@pritamdamania87</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zhaojuanmao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zhaojuanmao">@zhaojuanmao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satgera/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satgera">@satgera</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rohan-varma/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rohan-varma">@rohan-varma</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gqchen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gqchen">@gqchen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aazzolini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aazzolini">@aazzolini</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xush6528/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xush6528">@xush6528</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/osalpekar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/osalpekar">@osalpekar</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import torch fig = plt.figure() plt.plot([1,2]) fig.savefig('test.pdf')"><pre class="notranslate"><code class="notranslate">import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import torch fig = plt.figure() plt.plot([1,2]) fig.savefig('test.pdf') </code></pre></div> <p dir="auto">Running this simple python code will have error <code class="notranslate">*** Error in 'python': free(): invalid pointer: 0x00007f5ba8129ac0 ***</code> (omit the backtrace output). It breaks at <code class="notranslate">fig.savefig('test.pdf')</code>.</p> <p dir="auto">OS Ubuntu 16.04.2 LTS, Python version 2.7.12, PyTorch version 0.1.12_2, Matplotlib version 2.0.2</p>
0
<p dir="auto">I'm trying to run <code class="notranslate">rollup</code> with <code class="notranslate">--compat</code> flag, however I'm getting following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="❯ deno run --compat --unstable dist/es/rollup.js Check file:///Users/biwanczuk/dev/rollup/dist/es/rollup.js error: TS2502 [ERROR]: 'thisArg' is referenced directly or indirectly in its own type annotation. bind&lt;T&gt;(this: T, thisArg: ThisParameterType&lt;T&gt;): OmitThisParameter&lt;T&gt;; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at asset:///lib.es5.d.ts:350:22 "><pre class="notranslate"><code class="notranslate">❯ deno run --compat --unstable dist/es/rollup.js Check file:///Users/biwanczuk/dev/rollup/dist/es/rollup.js error: TS2502 [ERROR]: 'thisArg' is referenced directly or indirectly in its own type annotation. bind&lt;T&gt;(this: T, thisArg: ThisParameterType&lt;T&gt;): OmitThisParameter&lt;T&gt;; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at asset:///lib.es5.d.ts:350:22 </code></pre></div> <p dir="auto">I'm not entirely sure what's the problem here, are our declarations out of date?</p> <p dir="auto">CC <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kitsonk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kitsonk">@kitsonk</a></p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ deno --version deno 1.6.3 (release, x86_64-apple-darwin) v8 8.8.294 typescript 4.1.3"><pre class="notranslate">$ <span class="pl-s1">deno --version</span> <span class="pl-c1">deno 1.6.3 (release, x86_64-apple-darwin)</span> <span class="pl-c1">v8 8.8.294</span> <span class="pl-c1">typescript 4.1.3</span></pre></div> <p dir="auto">I was attempting to import <code class="notranslate">rollup</code> in Deno and getting the following error:</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ deno run rollup.ts Check file:///Users/craigmorten/git/cmorten/rollup/rollup.ts error: TS2502 [ERROR]: 'thisArg' is referenced directly or indirectly in its own type annotation. bind&lt;T&gt;(this: T, thisArg: ThisParameterType&lt;T&gt;): OmitThisParameter&lt;T&gt;; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at asset:///lib.es5.d.ts:350:22"><pre class="notranslate">$ <span class="pl-s1">deno run rollup.ts</span> <span class="pl-c1">Check file:///Users/craigmorten/git/cmorten/rollup/rollup.ts</span> <span class="pl-c1">error: TS2502</span> <span class="pl-c1"> [ERROR]: 'thisArg' is referenced directly or indirectly in its own type annotation.</span> <span class="pl-c1"> bind&lt;T&gt;(this: T, thisArg: ThisParameterType&lt;T&gt;): OmitThisParameter&lt;T&gt;;</span> <span class="pl-c1"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span> <span class="pl-c1"> at asset:///lib.es5.d.ts:350:22</span></pre></div> <p dir="auto">Which appears to be a type definitions issue with the <code class="notranslate">CallableFunction</code> <code class="notranslate">bind</code> method definition.</p> <p dir="auto">REF: <a href="https://github.com/denoland/deno/blob/master/cli/dts/lib.es5.d.ts#L350">https://github.com/denoland/deno/blob/master/cli/dts/lib.es5.d.ts#L350</a></p> <p dir="auto">Reproduce with:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// mod.ts import &quot;https://unpkg.com/rollup@2.36.1/dist/rollup.browser.js&quot;;"><pre class="notranslate"><span class="pl-c">// mod.ts</span> <span class="pl-k">import</span> <span class="pl-s">"https://unpkg.com/rollup@2.36.1/dist/rollup.browser.js"</span><span class="pl-kos">;</span></pre></div> <p dir="auto">And running <code class="notranslate">deno run mod.ts</code>.</p> <p dir="auto">Please advise! I'm unclear if the issue is the use of <code class="notranslate">.bind(...)</code> somewhere in the rollup code, or whether the <code class="notranslate">ThisParameterType&lt;T&gt;</code> type needs a fix?</p>
1
<p dir="auto">I have several fixtures files for different testcases, after upgrade the playwright version to 1.32.3, all test files not work,always show error message 'Error: test file "browser_ui/xxx/xxx_management.test.ts" should not import test file "src\fixture\myFixture.ts"'</p> <h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.32.3]</li> <li>Operating System: [macOS 13.2]</li> <li>Browser: [All, Chromium, Firefox, WebKit]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.<br> myFixture.ts</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// my-test.ts import { test as base } from '@playwright/test'; import { TodoPage } from './todo-page'; import { SettingsPage } from './settings-page'; // Declare the types of your fixtures. type MyFixtures = { todoPage: TodoPage; settingsPage: SettingsPage; }; // Extend base test by providing &quot;todoPage&quot; and &quot;settingsPage&quot;. // This new &quot;test&quot; can be used in multiple test files, and each of them will get the fixtures. export const myFixture = base.extend&lt;MyFixtures&gt;({ todoPage: async ({ page }, use) =&gt; { // Set up the fixture. const todoPage = new TodoPage(page); await todoPage.goto(); await todoPage.addToDo('item1'); await todoPage.addToDo('item2'); // Use the fixture value in the test. await use(todoPage); // Clean up the fixture. await todoPage.removeAll(); }, settingsPage: async ({ page }, use) =&gt; { await use(new SettingsPage(page)); }, }); export { expect } from '@playwright/test';"><pre class="notranslate"><code class="notranslate">// my-test.ts import { test as base } from '@playwright/test'; import { TodoPage } from './todo-page'; import { SettingsPage } from './settings-page'; // Declare the types of your fixtures. type MyFixtures = { todoPage: TodoPage; settingsPage: SettingsPage; }; // Extend base test by providing "todoPage" and "settingsPage". // This new "test" can be used in multiple test files, and each of them will get the fixtures. export const myFixture = base.extend&lt;MyFixtures&gt;({ todoPage: async ({ page }, use) =&gt; { // Set up the fixture. const todoPage = new TodoPage(page); await todoPage.goto(); await todoPage.addToDo('item1'); await todoPage.addToDo('item2'); // Use the fixture value in the test. await use(todoPage); // Clean up the fixture. await todoPage.removeAll(); }, settingsPage: async ({ page }, use) =&gt; { await use(new SettingsPage(page)); }, }); export { expect } from '@playwright/test'; </code></pre></div> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p> <p dir="auto">or</p> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import {PlaywrightTestConfig, devices} from &quot;@playwright/test&quot;; const config: PlaywrightTestConfig = { workers: 4, timeout: 1000 * 60 * 10, reporter: [ [&quot;allure-playwright&quot;, {outputFolder: &quot;./allure-results/&quot;}], [&quot;line&quot;], ], use: { trace: &quot;retain-on-failure&quot;, headless: false, screenshot: { mode: &quot;only-on-failure&quot;, fullPage: true, } }, projects: [ { name: &quot;XXXXX&quot;, use: { channel: &quot;chrome&quot;, ...devices[&quot;Desktop Chrome&quot;], acceptDownloads:true, viewport: {width: 1920, height: 937} }, } ] }; export default config;"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-v">PlaywrightTestConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">config</span>: <span class="pl-v">PlaywrightTestConfig</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">workers</span>: <span class="pl-c1">4</span><span class="pl-kos">,</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">1000</span> <span class="pl-c1">*</span> <span class="pl-c1">60</span> <span class="pl-c1">*</span> <span class="pl-c1">10</span><span class="pl-kos">,</span> <span class="pl-c1">reporter</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span><span class="pl-s">"allure-playwright"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">outputFolder</span>: <span class="pl-s">"./allure-results/"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"line"</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">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">trace</span>: <span class="pl-s">"retain-on-failure"</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-c1">screenshot</span>: <span class="pl-kos">{</span> <span class="pl-c1">mode</span>: <span class="pl-s">"only-on-failure"</span><span class="pl-kos">,</span> <span class="pl-c1">fullPage</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-kos">,</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"XXXXX"</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">channel</span>: <span class="pl-s">"chrome"</span><span class="pl-kos">,</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">"Desktop Chrome"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">acceptDownloads</span>:<span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">viewport</span>: <span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">1920</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">937</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-k">export</span> <span class="pl-k">default</span> <span class="pl-s1">config</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="myFixture('should check the box using setChecked', async ({ page,settingsPage }) =&gt; { await settingsPage.setContent(`&lt;input id='checkbox' type='checkbox'&gt;&lt;/input&gt;`); });"><pre class="notranslate"><span class="pl-en">myFixture</span><span class="pl-kos">(</span><span class="pl-s">'should check the box using setChecked'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page<span class="pl-kos">,</span>settingsPage <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">settingsPage</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s">`&lt;input id='checkbox' type='checkbox'&gt;&lt;/input&gt;`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>[Run the test]</li> <li>[...]</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">[Describe expected behavior]</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">[Describe actual behavior]</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.33]</li> <li>Operating System: [Windows 11, Ubuntu 22]</li> <li>Browser: [WebKit]</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test(&quot;doc + xhr&quot;, async ({ page }) =&gt; { await page.route(&quot;**/*&quot;, (route, req) =&gt; { if (req.isNavigationRequest() &amp;&amp; req.resourceType() === &quot;document&quot;) { return route.fulfill({ body: ` &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Hi&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;/body&gt; &lt;/html&gt; `, contentType: &quot;text/html&quot; }); } route.fulfill(); }); await page.goto(&quot;http://test.local/page.html&quot;); expect(await page.title()).toBe(&quot;Hi&quot;); await page.evaluate(() =&gt; { const x = new XMLHttpRequest(); x.open(&quot;GET&quot;, location.href, false); x.send(); }); await page.waitForTimeout(1000); });"><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"doc + xhr"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">route</span><span class="pl-kos">(</span><span class="pl-s">"**/*"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">route</span><span class="pl-kos">,</span> <span class="pl-s1">req</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-en">isNavigationRequest</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-en">resourceType</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-s">"document"</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">fulfill</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">body</span>: <span class="pl-s">`</span> <span class="pl-s"> &lt;!DOCTYPE html&gt;</span> <span class="pl-s"> &lt;html&gt;</span> <span class="pl-s"> &lt;head&gt;</span> <span class="pl-s"> &lt;title&gt;Hi&lt;/title&gt;</span> <span class="pl-s"> &lt;/head&gt;</span> <span class="pl-s"> &lt;body&gt;</span> <span class="pl-s"> &lt;/body&gt;</span> <span class="pl-s"> &lt;/html&gt;</span> <span class="pl-s"> `</span><span class="pl-kos">,</span> <span class="pl-c1">contentType</span>: <span class="pl-s">"text/html"</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">route</span><span class="pl-kos">.</span><span class="pl-en">fulfill</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">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://test.local/page.html"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">expect</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">title</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">toBe</span><span class="pl-kos">(</span><span class="pl-s">"Hi"</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">evaluate</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">XMLHttpRequest</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-en">open</span><span class="pl-kos">(</span><span class="pl-s">"GET"</span><span class="pl-kos">,</span> <span class="pl-s1">location</span><span class="pl-kos">.</span><span class="pl-c1">href</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-en">send</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">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForTimeout</span><span class="pl-kos">(</span><span class="pl-c1">1000</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 test] Passes on chromium and firefox</li> <li>Fails on webkit</li> </ul> <p dir="auto"><strong>Expected</strong><br> Should also pass on webkit<br> <strong>Actual</strong><br> Fails only on webkit</p> <p dir="auto">[Describe actual behavior]<br> Test does the following:<br> Loads an html page, and then dispatches an xhr to the same url as the page is on.<br> When that xhr is intercepted, it is treated as navigation and document request, instead of an xhr.<br> On chrome and firefox this doesn't happen.</p>
0
<p dir="auto">Some of of cuDNN's algorithms are non-deterministic, even with the seed set to X, for example</p> <div class="highlight highlight-source-c notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="typedef enum { CUDNN_CONVOLUTION_BWD_FILTER_ALGO_0 = 0, // non-deterministic CUDNN_CONVOLUTION_BWD_FILTER_ALGO_3 = 3, // non-deterministic, algo0 with workspace"><pre class="notranslate"><span class="pl-k">typedef</span> <span class="pl-k">enum</span> { <span class="pl-c1">CUDNN_CONVOLUTION_BWD_FILTER_ALGO_0</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>, <span class="pl-c">// non-deterministic</span> <span class="pl-c1">CUDNN_CONVOLUTION_BWD_FILTER_ALGO_3</span> <span class="pl-c1">=</span> <span class="pl-c1">3</span>, <span class="pl-c">// non-deterministic, algo0 with workspace</span></pre></div> <div class="highlight highlight-source-c notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="typedef enum { CUDNN_CONVOLUTION_BWD_DATA_ALGO_0 = 0, // non-deterministic"><pre class="notranslate"><span class="pl-k">typedef</span> <span class="pl-k">enum</span> { <span class="pl-c1">CUDNN_CONVOLUTION_BWD_DATA_ALGO_0</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>, <span class="pl-c">// non-deterministic</span></pre></div> <p dir="auto">(This list is probably non-exhaustive)</p> <p dir="auto">PyTorch currently provides no way for the user to select which specific algorithms to use in cuDNN. However, this is fine, since PyTorch was designed to be more high-level and abstract than some of the other frameworks.</p> <p dir="auto">Perhaps instead of exposing the entire cuDNN algorithm choices, a boolean variable specifying non-determinism vs determinism should be added? This would be along the lines of the current <code class="notranslate">torch.backends.cudnn.enabled</code> option.</p> <p dir="auto">Currently, users have to resort to CPU or disabling cuDNN for reproducibility. Some optimizers do work deterministically (at least for us) on the GPU (e.g. SGD, Adam), but Adadelta and RMSprop do not.</p>
<p dir="auto">It is totally possible to implement deterministic training with lua torch avoiding some cunn modules and cudnn algos. cutorch has atomicAdd in THIndexTensor which shouldn't pose a problem.<br> PyTorch should implement:</p> <ul dir="auto"> <li>ordered parallel data loading similar to torchnet <a href="https://github.com/torchnet/torchnet/blob/master/dataset/paralleldatasetiterator.lua#L53">https://github.com/torchnet/torchnet/blob/master/dataset/paralleldatasetiterator.lua#L53</a></li> <li>cudnn should allow user set deterministic mode somehow</li> </ul>
1
<p dir="auto">See <a href="https://storage.googleapis.com/go-build-log/a29b1dce/plan9-386-gcepartial_808d3016.log" rel="nofollow">https://storage.googleapis.com/go-build-log/a29b1dce/plan9-386-gcepartial_808d3016.log</a>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok mime/quotedprintable 0.164s --- FAIL: TestFileListener (0.00s) file_test.go:168: file file+net /net/tcp/22/ctl: file does not represent a listener FAIL"><pre class="notranslate"><code class="notranslate">ok mime/quotedprintable 0.164s --- FAIL: TestFileListener (0.00s) file_test.go:168: file file+net /net/tcp/22/ctl: file does not represent a listener FAIL </code></pre></div>
<pre class="notranslate">What does 'go version' print? Current tip, 1.4 beta. go version devel +91fa3e159e2f Sun Nov 16 14:25:33 2014 -0500 linux/amd64 also triggers on 1.3. What steps reproduce the problem? If possible, include a link to a program on play.golang.org. curl <a href="http://play.golang.org/p/_P-QfTpoCX.go" rel="nofollow">http://play.golang.org/p/_P-QfTpoCX.go</a> &gt;main.go &amp;&amp; go build main.go <a href="http://play.golang.org/p/_P-QfTpoCX" rel="nofollow">http://play.golang.org/p/_P-QfTpoCX</a> (not runnable on playground due to size) Created with curl <a href="http://play.golang.org/p/xz3WgOaZvA.go" rel="nofollow">http://play.golang.org/p/xz3WgOaZvA.go</a> | perl -pe 'if (/xxx/) { for ($1; $i&lt;6000; $i++) {print} }' &gt;output.go adjusting 6000 downwards makes the segfault not happen. Originally triggered while embedding assets. What happened? go build command-line-arguments: /home/tv/src/go/pkg/tool/linux_amd64/6g: signal: segmentation fault (core dumped)</pre>
0
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce-reboot-release-1.4/1369/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce-reboot-release-1.4/1369/</a></p> <p dir="auto">Failed: [k8s.io] Reboot [Disruptive] [Feature:Reboot] each node by triggering kernel panic and ensure they function upon restart {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:104 Oct 23 18:08:41.752: Test failed; at least one node failed to reboot in the time given. /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:158"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:104 Oct 23 18:08:41.752: Test failed; at least one node failed to reboot in the time given. /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:158 </code></pre></div>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce-reboot/340/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce-reboot/340/</a></p> <p dir="auto">Failed: [k8s.io] Reboot [Disruptive] [Feature:Reboot] each node by triggering kernel panic and ensure they function upon restart {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:104 Oct 5 06:57:41.583: Test failed; at least one node failed to reboot in the time given. /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:158"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:104 Oct 5 06:57:41.583: Test failed; at least one node failed to reboot in the time given. /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:158 </code></pre></div>
1
<p dir="auto">Hello<br> I am having trouble in checking existing data in scrapy. i have used elasticsearch as my database below code i am trying to execute ??</p>
<p dir="auto">Hello<br> I am having trouble in checking existing data in scrapy. i have used elasticsearch as my database below code i am trying to execute ??</p> <p dir="auto">`</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def checkIfURLExistsInCrawler(single_url): elastic_query = json.dumps({ &quot;query&quot;: { &quot;match_phrase&quot;: { &quot;url&quot;: single_url } } }) result = es.search(index='test', doc_type='test', body=elastic_query)['hits']['hits'] return result def start_requests(self): urls = [ here i have some url there might be chance that some urls are duplicate so i have to put validation but in for loop it doesn't working ] for request_url in urls: checkExists = self.checkIfURLExistsInCrawler(request_url) if not checkExists : beingCrawledUrl = {} beingCrawledUrl['url'] = single_url beingCrawledUrl['added_on'] = now.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;) json_data = json.dumps(beingCrawledUrl) InsertData = es.index(index='test', doc_type='test', body=json.loads(json_data)) yield scrapy.Request();"><pre class="notranslate"><code class="notranslate"> def checkIfURLExistsInCrawler(single_url): elastic_query = json.dumps({ "query": { "match_phrase": { "url": single_url } } }) result = es.search(index='test', doc_type='test', body=elastic_query)['hits']['hits'] return result def start_requests(self): urls = [ here i have some url there might be chance that some urls are duplicate so i have to put validation but in for loop it doesn't working ] for request_url in urls: checkExists = self.checkIfURLExistsInCrawler(request_url) if not checkExists : beingCrawledUrl = {} beingCrawledUrl['url'] = single_url beingCrawledUrl['added_on'] = now.strftime("%Y-%m-%d %H:%M:%S") json_data = json.dumps(beingCrawledUrl) InsertData = es.index(index='test', doc_type='test', body=json.loads(json_data)) yield scrapy.Request(); </code></pre></div> <p dir="auto">`</p> <p dir="auto">if i execute this code all record inside urls = [ ] are inserted into "test" index even if its duplicated because of validation i put above is not working .</p> <p dir="auto">but if i run this again with same data validation works .so please can any one help this out.</p>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.34.3]</li> <li>Operating System: [Windows 10, Debian 11]</li> <li>Browser: [All]</li> <li>Other info: I use remote.ssh extension on my Debian 11. X Server send Display information to my Windows via VcXsrv or X410</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="default"><pre class="notranslate"><code class="notranslate">default </code></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="default"><pre class="notranslate"><code class="notranslate">default </code></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Run in UI mode via remote ssh connection</li> <li>Click Open in VS Code icon on any test</li> </ul> <p dir="auto"><strong>Actual/Expected</strong></p> <p dir="auto">The UI send a link to xdg-open and receive my Windows the following link format:<br> <code class="notranslate">vscode-remote://ssh-remote+connectionName/path/to/example.spec.ts/vscode:/file//path/to/example.spec.ts:7:17</code><br> It's wrong, Windows cannot recognize vscode-remote url shema.</p> <p dir="auto">The correct url format is the following:<br> <code class="notranslate">vscode://vscode-remote/ssh-remote+connectionName/path/to/example.spec.ts:7:17</code></p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.32.1</li> <li>Operating System: macOS-latest (GA)</li> <li>Browser: WebKit</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">MRE: <a href="https://github.com/johny-ss/actions">https://github.com/johny-ss/actions</a></p> <p dir="auto">or</p> <p dir="auto"><strong>Github action file</strong></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="name: Tests on: push: branches: [main] pull_request: branches: [main] # Cancel current job when pushing new commit into the PR concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: e2e: # timeout-minutes: 60 runs-on: ${{ matrix.os }} strategy: fail-fast: false # keep running other jobs if one fails matrix: os: [macos-latest, windows-latest, ubuntu-latest] browser: [chromium, firefox] include: - os: macos-latest browser: webkit env: # Playwright uses different paths on different OS's. # To make it work cross-platform, we need to set the path manually. # Alternatively, `PLAYWRIGHT_BROWSERS_PATH=0` install binaries in node_modules PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/ms-playwright steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: 16 # installing dependencies with cache - name: Cache dependencies id: cache-deps uses: actions/cache@v3 with: path: ./node_modules key: modules-${{ hashFiles('package-lock.json') }} - name: Install dependencies if: steps.cache-deps.outputs.cache-hit != 'true' run: npm ci --ignore-scripts # installing browsers with cache - name: Store Playwright's Version shell: bash #necessary for it to work on Windows, which uses powershell by default run: echo &quot;PLAYWRIGHT_VERSION=$(node -p 'require(&quot;@playwright/test/package.json&quot;).version')&quot; &gt;&gt; $GITHUB_OUTPUT id: playwright-version - name: Cache browsers id: cache-browsers uses: actions/cache@v3 with: key: ${{ runner.os }}-${{ matrix.browser }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }} path: ${{ env.PLAYWRIGHT_BROWSERS_PATH }} - name: Download browsers if: steps.cache-browsers.outputs.cache-hit != 'true' run: npx playwright install --with-deps ${{ matrix.browser }} # running tests - run: npx playwright test --project=${{ matrix.browser }} - name: Upload Artifacts if: failure() uses: actions/upload-artifact@v3 with: name: ${{ matrix.browser }}-${{ matrix.os }}-test-results path: test-results/ retention-days: 7"><pre class="notranslate"><span class="pl-ent">name</span>: <span class="pl-s">Tests</span> <span class="pl-ent">on</span>: <span class="pl-ent">push</span>: <span class="pl-ent">branches</span>: <span class="pl-s">[main]</span> <span class="pl-ent">pull_request</span>: <span class="pl-ent">branches</span>: <span class="pl-s">[main]</span> <span class="pl-c"><span class="pl-c">#</span> Cancel current job when pushing new commit into the PR</span> <span class="pl-ent">concurrency</span>: <span class="pl-ent">group</span>: <span class="pl-s">${{ github.workflow }}-${{ github.ref }}</span> <span class="pl-ent">cancel-in-progress</span>: <span class="pl-c1">true</span> <span class="pl-ent">jobs</span>: <span class="pl-ent">e2e</span>: <span class="pl-c"><span class="pl-c">#</span> timeout-minutes: 60</span> <span class="pl-ent">runs-on</span>: <span class="pl-s">${{ matrix.os }}</span> <span class="pl-ent">strategy</span>: <span class="pl-ent">fail-fast</span>: <span class="pl-s">false </span><span class="pl-c"><span class="pl-c">#</span> keep running other jobs if one fails</span> <span class="pl-ent">matrix</span>: <span class="pl-ent">os</span>: <span class="pl-s">[macos-latest, windows-latest, ubuntu-latest]</span> <span class="pl-ent">browser</span>: <span class="pl-s">[chromium, firefox]</span> <span class="pl-ent">include</span>: - <span class="pl-ent">os</span>: <span class="pl-s">macos-latest</span> <span class="pl-ent">browser</span>: <span class="pl-s">webkit</span> <span class="pl-ent">env</span>: <span class="pl-c"><span class="pl-c">#</span> Playwright uses different paths on different OS's. </span> <span class="pl-c"><span class="pl-c">#</span> To make it work cross-platform, we need to set the path manually.</span> <span class="pl-c"><span class="pl-c">#</span> Alternatively, `PLAYWRIGHT_BROWSERS_PATH=0` install binaries in node_modules</span> <span class="pl-ent">PLAYWRIGHT_BROWSERS_PATH</span>: <span class="pl-s">${{ github.workspace }}/ms-playwright</span> <span class="pl-ent">steps</span>: - <span class="pl-ent">uses</span>: <span class="pl-s">actions/checkout@v3</span> - <span class="pl-ent">uses</span>: <span class="pl-s">actions/setup-node@v3</span> <span class="pl-ent">with</span>: <span class="pl-ent">node-version</span>: <span class="pl-c1">16</span> <span class="pl-c"><span class="pl-c">#</span> installing dependencies with cache</span> - <span class="pl-ent">name</span>: <span class="pl-s">Cache dependencies</span> <span class="pl-ent">id</span>: <span class="pl-s">cache-deps</span> <span class="pl-ent">uses</span>: <span class="pl-s">actions/cache@v3</span> <span class="pl-ent">with</span>: <span class="pl-ent">path</span>: <span class="pl-s">./node_modules</span> <span class="pl-ent">key</span>: <span class="pl-s">modules-${{ hashFiles('package-lock.json') }}</span> - <span class="pl-ent">name</span>: <span class="pl-s">Install dependencies</span> <span class="pl-ent">if</span>: <span class="pl-s">steps.cache-deps.outputs.cache-hit != 'true'</span> <span class="pl-ent">run</span>: <span class="pl-s">npm ci --ignore-scripts</span> <span class="pl-c"><span class="pl-c">#</span> installing browsers with cache</span> - <span class="pl-ent">name</span>: <span class="pl-s">Store Playwright's Version</span> <span class="pl-ent">shell</span>: <span class="pl-s">bash </span><span class="pl-c"><span class="pl-c">#</span>necessary for it to work on Windows, which uses powershell by default</span> <span class="pl-ent">run</span>: <span class="pl-s">echo "PLAYWRIGHT_VERSION=$(node -p 'require("@playwright/test/package.json").version')" &gt;&gt; $GITHUB_OUTPUT</span> <span class="pl-ent">id</span>: <span class="pl-s">playwright-version</span> - <span class="pl-ent">name</span>: <span class="pl-s">Cache browsers</span> <span class="pl-ent">id</span>: <span class="pl-s">cache-browsers</span> <span class="pl-ent">uses</span>: <span class="pl-s">actions/cache@v3</span> <span class="pl-ent">with</span>: <span class="pl-ent">key</span>: <span class="pl-s">${{ runner.os }}-${{ matrix.browser }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}</span> <span class="pl-ent">path</span>: <span class="pl-s">${{ env.PLAYWRIGHT_BROWSERS_PATH }}</span> - <span class="pl-ent">name</span>: <span class="pl-s">Download browsers</span> <span class="pl-ent">if</span>: <span class="pl-s">steps.cache-browsers.outputs.cache-hit != 'true'</span> <span class="pl-ent">run</span>: <span class="pl-s">npx playwright install --with-deps ${{ matrix.browser }}</span> <span class="pl-c"><span class="pl-c">#</span> running tests</span> - <span class="pl-ent">run</span>: <span class="pl-s">npx playwright test --project=${{ matrix.browser }}</span> - <span class="pl-ent">name</span>: <span class="pl-s">Upload Artifacts</span> <span class="pl-ent">if</span>: <span class="pl-s">failure()</span> <span class="pl-ent">uses</span>: <span class="pl-s">actions/upload-artifact@v3</span> <span class="pl-ent">with</span>: <span class="pl-ent">name</span>: <span class="pl-s">${{ matrix.browser }}-${{ matrix.os }}-test-results</span> <span class="pl-ent">path</span>: <span class="pl-s">test-results/</span> <span class="pl-ent">retention-days</span>: <span class="pl-c1">7</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong>: It can be any test, it doesn't matter</p> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Run the github actions of my repository. macOS-webkit throws error, and if you run again ubunto-webkit (now with cache), also throw error.</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">The test on webkit should succeed even when the browser and its dependencies are cached.</p> <p dir="auto"><strong>Actual</strong></p> <ul dir="auto"> <li>In ubuntu-webkit, if the browser IS NOT cached, the execution of the tests gives this error:</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43938777/229361516-ef5298fe-0c71-447c-80ba-34b64b4f5ed3.png"><img src="https://user-images.githubusercontent.com/43938777/229361516-ef5298fe-0c71-447c-80ba-34b64b4f5ed3.png" alt="image" style="max-width: 100%;"></a></p> <ul dir="auto"> <li>in macOS webkit, the execution of the tests gives the following error:</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43938777/229360380-d758f33b-6083-452d-b6b4-d81ce2281b40.png"><img src="https://user-images.githubusercontent.com/43938777/229360380-d758f33b-6083-452d-b6b4-d81ce2281b40.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">My guess is that the PLAYWRIGHT_BROWSERS_PATH environment variable doesn't work well with webkit, because if I remove it and don't cache at all, the tests work fine.</p> <p dir="auto">note: If you want to reproduce in another repo, you can change the --project flag to --browser to avoid plawright.config.ts.</p>
0
<p dir="auto">When I'm using datetime picker component, there is a problem that when I chose the value, I cannot change it back to not choose a date state.</p> <p dir="auto">Version: material-ui@0.19.1<br> React: 15.6.1</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> <p dir="auto">There is similar issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="261836498" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/8478" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/8478/hovercard" href="https://github.com/mui/material-ui/issues/8478">#8478</a>, but it's closed and marked as invalid due to lack of example.</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Drawer sticks to the side, provided in <code class="notranslate">anchor</code> property (in this case, it's 'bottom').</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Drawer ignores <code class="notranslate">anchor</code> property and sticks to the left side.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Open <a href="https://codesandbox.io/s/myn22zoy39" rel="nofollow">https://codesandbox.io/s/myn22zoy39</a></li> <li>Observe Drawer on the left side</li> <li></li> <li></li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">Drawer wrapper has following css classes:<br> <code class="notranslate">MuiPaper-root-19 MuiPaper-shadow0-21 MuiDrawer-paper-90 MiniDrawer-drawerPaper-310 MiniDrawer-drawerPaperClose-311 undefined</code>.<br> I think bug is <a href="https://github.com/callemall/material-ui/blob/v1-beta/src/Drawer/Drawer.js#L202">here</a>, there should not be <code class="notranslate">type !== 'permanent'</code> check</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>beta.17</td> </tr> <tr> <td>React</td> <td>15.5.3</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">Can't achieve to have a Floating action button with tooltip.</p> <p dir="auto">I saw the component has not tooltip prop, so try to insert an IconButton inside but didn't work for me..<br> so tried to use an IconButton but it has no onClick event so..</p> <p dir="auto">Anyway to have an circled button with hover and onClick?</p>
<p dir="auto">It would be awesome if it's possible to add tooltip for FAB, like: <a href="https://material.angularjs.org/latest/#/demo/material.components.tooltip" rel="nofollow">https://material.angularjs.org/latest/#/demo/material.components.tooltip</a></p>
1
<p dir="auto">by <strong>phmmnd</strong>:</p> <pre class="notranslate">What steps will reproduce the problem? 1. Start a fake syslog server using openbsd netcat: nc -kl 1234 2. Run the program at <a href="http://play.golang.org/p/ADb0RmfVYI" rel="nofollow">http://play.golang.org/p/ADb0RmfVYI</a>, which attempts to log a message over syslog every second, and reports the returned error. 3. Kill the netcat session. 4. Note that the test program continues to send messages without reconnecting or reporting any errors. What is the expected output? According to the docs the connection should be retried once for each log message. In any case an error should be returned to the calling code. What do you see instead? No errors or reconnections. Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? Darwin (Mac OS X 10.7.5) Which version are you using? (run 'go version') go version go1.1.1 darwin/amd64 Please provide any additional information below. The "(w *Writer) write" method in log/syslog always returns a nil error, which means all of the error handling and retry code in "(w *Writer) writeAndRetry" can never be called.</pre>
<pre class="notranslate">Append this code to go/types/api_test.go and run it. LookupFieldOrMethod, contra its spec, returns pointer-receiver methods even when invoked with a non-pointer named type. (This is something like the "implicit &amp;" rule, but this is not the right place for that logic since that rule only applies to addressable values of type T.) func TestLookupFieldOrMethod(t *testing.T) { const src = `package P; type T int; func (*T) f() {}` pkg, err := pkgFor("test", src, nil) if err != nil { t.Fatal(err) } T := pkg.Scope().Lookup("T").Type() obj, index, indirect := LookupFieldOrMethod(T, pkg, "f") fmt.Println(T, obj, index, indirect) // P.T func (*P.T).f() [0] false t.Fail() }</pre>
0
<p dir="auto">after a clean install of atom (using the windows installer on my windows 8.1 machine) i cannot install the atom-beautify package. here's the output from the installation try:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm http GET https://registry.npmjs.org/analytics-node npm http GET https://registry.npmjs.org/atom-message-panel npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/editorconfig npm http GET https://registry.npmjs.org/coffee-formatter npm http GET https://registry.npmjs.org/loophole npm http GET https://registry.npmjs.org/extend npm http GET https://registry.npmjs.org/js-beautify npm http GET https://registry.npmjs.org/emissary npm http GET https://registry.npmjs.org/strip-json-comments npm http GET https://registry.npmjs.org/node-dir npm http GET https://registry.npmjs.org/lodash/2.4.1 npm http GET https://registry.npmjs.org/temp npm http GET https://registry.npmjs.org/prettydiff npm http GET https://registry.npmjs.org/node-uuid npm http GET https://registry.npmjs.org/space-pen npm http GET https://registry.npmjs.org/typescript-formatter npm http GET https://registry.npmjs.org/yaml-front-matter npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/editorconfig npm http 304 https://registry.npmjs.org/analytics-node npm http 304 https://registry.npmjs.org/atom-message-panel npm http 304 https://registry.npmjs.org/js-beautify npm http 304 https://registry.npmjs.org/loophole npm http 304 https://registry.npmjs.org/extend npm http 304 https://registry.npmjs.org/strip-json-comments npm http 304 https://registry.npmjs.org/coffee-formatter npm http 304 https://registry.npmjs.org/temp npm http 304 https://registry.npmjs.org/node-dir npm http 304 https://registry.npmjs.org/node-uuid npm http 304 https://registry.npmjs.org/lodash/2.4.1 npm http 304 https://registry.npmjs.org/emissary npm http 304 https://registry.npmjs.org/space-pen npm http 304 https://registry.npmjs.org/yaml-front-matter npm http 304 https://registry.npmjs.org/prettydiff npm http 304 https://registry.npmjs.org/typescript-formatter npm http GET https://registry.npmjs.org/component-type npm http GET https://registry.npmjs.org/superagent npm http GET https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/superagent-proxy npm http GET https://registry.npmjs.org/uid/0.0.2 npm http GET https://registry.npmjs.org/join-component npm http GET https://registry.npmjs.org/clone npm http GET https://registry.npmjs.org/rimraf npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/underscore-plus npm http GET https://registry.npmjs.org/mixto npm http GET https://registry.npmjs.org/property-accessors npm http GET https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/commander/1.0.0 npm http GET https://reghttps://github.com/atom/atom/issues/newistry.npmjs.org/js-yaml npm http GET https://registry.npmjs.org/is-browser npm http 304 https://registry.npmjs.org/component-type npm http 304 https://registry.npmjs.org/superagent npm http 304 https://registry.npmjs.org/clone npm http 304 https://registry.npmjs.org/rimraf npm ERR! Error: ENOENT, chmod 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\lodash\LICENSE.txt' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;--globalconfig&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc&quot; &quot;--userconfig&quot; &quot;c:\\Users\\foo\\.atom\\.apmrc&quot; &quot;install&quot; &quot;c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz&quot; &quot;--target=0.20.0&quot; &quot;--arch=ia32&quot; &quot;--msvs_version=2013&quot; npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\lodash\LICENSE.txt npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\lodash\LICENSE.txt npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! fstream_finish_call chmod npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:305:19 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm http 304 https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/lru-cache npm http 304 https://registry.npmjs.org/uid/0.0.2 npm http 304 https://registry.npmjs.org/superagent-proxy npm http 304 https://registry.npmjs.org/join-component npm http 304 https://registry.npmjs.org/underscore-plus npm http 304 https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/mixto npm http 304 https://registry.npmjs.org/property-accessors npm http 304 https://registry.npmjs.org/js-yaml npm ERR! Error: ENOENT, lstat 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\js-beautify\js\lib\unpackers\p_a_c_k_e_r_unpacker.js' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;--globalconfig&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc&quot; &quot;--userconfig&quot; &quot;c:\\Users\\foo\\.atom\\.apmrc&quot; &quot;install&quot; &quot;c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz&quot; &quot;--target=0.20.0&quot; &quot;--arch=ia32&quot; &quot;--msvs_version=2013&quot; npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\js-beautify\js\lib\unpackers\p_a_c_k_e_r_unpacker.js npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\js-beautify\js\lib\unpackers\p_a_c_k_e_r_unpacker.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm ERR! error rolling back Error: EPERM, unlink 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\prettydiff\prettydiff.js' npm ERR! error rolling back atom-beautify@0.21.2 { [Error: EPERM, unlink 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\prettydiff\prettydiff.js'] npm ERR! error rolling back errno: 50, npm ERR! error rolling back code: 'EPERM', npm ERR! error rolling back path: 'C:\\Users\\foo\\AppData\\Local\\Temp\\apm-install-dir-115015-8932-9slqk5\\node_modules\\atom-beautify\\node_modules\\prettydiff\\prettydiff.js' } npm ERR! not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a problem with npm itself. npm ERR! Please check if you have git installed and in your PATH. npm ERR! System Windows_NT 6.2.9200 npm ERR! command &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;--globalconfig&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc&quot; &quot;--userconfig&quot; &quot;c:\\Users\\foo\\.atom\\.apmrc&quot; &quot;install&quot; &quot;c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz&quot; &quot;--target=0.20.0&quot; &quot;--arch=ia32&quot; &quot;--msvs_version=2013&quot; npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! code ENOGIT npm http 304 https://registry.npmjs.org/commander/1.0.0 npm http 304 https://registry.npmjs.org/is-browser npm ERR! Error: ENOENT, lstat 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\typescript-formatter\tests\expected\default\main.ts' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;--globalconfig&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc&quot; &quot;--userconfig&quot; &quot;c:\\Users\\foo\\.atom\\.apmrc&quot; &quot;install&quot; &quot;c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz&quot; &quot;--target=0.20.0&quot; &quot;--arch=ia32&quot; &quot;--msvs_version=2013&quot; npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\typescript-formatter\tests\expected\default\main.ts npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\typescript-formatter\tests\expected\default\main.ts npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm ERR! Error: ENOENT, lstat 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\space-pen\vendor\jquery.js' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;--globalconfig&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc&quot; &quot;--userconfig&quot; &quot;c:\\Users\\foo\\.atom\\.apmrc&quot; &quot;install&quot; &quot;c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz&quot; &quot;--target=0.20.0&quot; &quot;--arch=ia32&quot; &quot;--msvs_version=2013&quot; npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\space-pen\vendor\jquery.js npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\space-pen\vendor\jquery.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm ERR! Error: ENOENT, lstat 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\coffee-formatter\docs\public\fonts\aller-light.woff' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;--globalconfig&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc&quot; &quot;--userconfig&quot; &quot;c:\\Users\\foo\\.atom\\.apmrc&quot; &quot;install&quot; &quot;c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz&quot; &quot;--target=0.20.0&quot; &quot;--arch=ia32&quot; &quot;--msvs_version=2013&quot; npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\coffee-formatter\docs\public\fonts\aller-light.woff npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\coffee-formatter\docs\public\fonts\aller-light.woff npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm http GET https://registry.npmjs.org/proxy-agent npm http GET https://registry.npmjs.org/keypress npm http GET https://registry.npmjs.org/ms/0.6.2 npm ERR! Error: ENOENT, lstat 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\prettydiff\prettydiff.js' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;--globalconfig&quot; &quot;c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc&quot; &quot;--userconfig&quot; &quot;c:\\Users\\foo\\.atom\\.apmrc&quot; &quot;install&quot; &quot;c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz&quot; &quot;--target=0.20.0&quot; &quot;--arch=ia32&quot; &quot;--msvs_version=2013&quot; npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\prettydiff\prettydiff.js npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\prettydiff\prettydiff.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm http 304 https://registry.npmjs.org/proxy-agent npm http GET https://registry.npmjs.org/qs/0.6.5 npm http GET https://registry.npmjs.org/formidable/1.0.14 npm http GET https://registry.npmjs.org/mime/1.2.5 npm http GET https://registry.npmjs.org/emitter-component/1.0.0 npm http GET https://registry.npmjs.org/methods/0.0.1 npm http GET https://registry.npmjs.org/cookiejar/1.3.0 npm http GET https://registry.npmjs.org/reduce-component/1.0.1 npm http 304 https://registry.npmjs.org/keypress npm http 304 https://registry.npmjs.org/ms/0.6.2 npm http 304 https://registry.npmjs.org/emitter-component/1.0.0 npm http 304 https://registry.npmjs.org/cookiejar/1.3.0 npm http 304 https://registry.npmjs.org/methods/0.0.1 npm http GET https://registry.npmjs.org/https-proxy-agent npm http GET https://registry.npmjs.org/pac-proxy-agent npm http GET https://registry.npmjs.org/http-proxy-agent npm http GET https://registry.npmjs.org/socks-proxy-agent npm http 304 https://registry.npmjs.org/qs/0.6.5 npm http GET https://registry.npmjs.org/argparse npm http GET https://registry.npmjs.org/esprima npm http 304 https://registry.npmjs.org/reduce-component/1.0.1 npm http 304 https://registry.npmjs.org/mime/1.2.5 npm http 304 https://registry.npmjs.org/formidable/1.0.14 npm http 304 https://registry.npmjs.org/pac-proxy-agent npm http 304 https://registry.npmjs.org/argparse npm http 304 https://registry.npmjs.org/esprima npm http 304 https://registry.npmjs.org/http-proxy-agent npm http 304 https://registry.npmjs.org/socks-proxy-agent npm http 304 https://registry.npmjs.org/https-proxy-agent npm http GET https://registry.npmjs.org/rainbowsocks npm http GET https://registry.npmjs.org/agent-base npm http GET https://registry.npmjs.org/get-uri npm http GET https://registry.npmjs.org/pac-resolver npm http GET https://registry.npmjs.org/stream-to-array npm http 304 https://registry.npmjs.org/get-uri npm http 304 https://registry.npmjs.org/stream-to-array npm http 304 https://registry.npmjs.org/agent-base npm http 304 https://registry.npmjs.org/pac-resolver npm http 304 https://registry.npmjs.org/rainbowsocks npm http GET https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/underscore.string npm http 304 https://registry.npmjs.org/underscore.string npm http 304 https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/file-uri-to-path npm http GET https://registry.npmjs.org/ftp npm http GET https://registry.npmjs.org/data-uri-to-buffer npm http GET https://registry.npmjs.org/readable-stream npm http GET https://registry.npmjs.org/co npm http GET https://registry.npmjs.org/regenerator npm http GET https://registry.npmjs.org/degenerator npm http GET https://registry.npmjs.org/netmask npm http GET https://registry.npmjs.org/thunkify npm http 304 https://registry.npmjs.org/readable-stream npm http 304 https://registry.npmjs.org/file-uri-to-path npm http 304 https://registry.npmjs.org/ftp npm http 304 https://registry.npmjs.org/data-uri-to-buffer npm http 304 https://registry.npmjs.org/co npm http 304 https://registry.npmjs.org/degenerator npm http 304 https://registry.npmjs.org/regenerator npm http 304 https://registry.npmjs.org/netmask npm http 304 https://registry.npmjs.org/thunkify npm http GET https://registry.npmjs.org/xregexp/2.0.0 npm http GET https://registry.npmjs.org/escodegen npm http GET https://registry.npmjs.org/ast-types npm http GET https://registry.npmjs.org/string_decoder npm http GET https://registry.npmjs.org/isarray/0.0.1 npm http GET https://registry.npmjs.org/core-util-is npm http GET https://registry.npmjs.org/inherits npm http GET https://registry.npmjs.org/private npm http GET https://registry.npmjs.org/defs npm http GET https://registry.npmjs.org/recast npm http 304 https://registry.npmjs.org/ast-types npm http 304 https://registry.npmjs.org/string_decoder npm http 304 https://registry.npmjs.org/isarray/0.0.1 npm http 304 https://registry.npmjs.org/xregexp/2.0.0 npm http 304 https://registry.npmjs.org/core-util-is npm http 304 https://registry.npmjs.org/inherits npm http 304 https://registry.npmjs.org/defs npm http 304 https://registry.npmjs.org/private npm http 304 https://registry.npmjs.org/recast npm http 304 https://registry.npmjs.org/escodegen npm"><pre class="notranslate"><code class="notranslate">npm http GET https://registry.npmjs.org/analytics-node npm http GET https://registry.npmjs.org/atom-message-panel npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/editorconfig npm http GET https://registry.npmjs.org/coffee-formatter npm http GET https://registry.npmjs.org/loophole npm http GET https://registry.npmjs.org/extend npm http GET https://registry.npmjs.org/js-beautify npm http GET https://registry.npmjs.org/emissary npm http GET https://registry.npmjs.org/strip-json-comments npm http GET https://registry.npmjs.org/node-dir npm http GET https://registry.npmjs.org/lodash/2.4.1 npm http GET https://registry.npmjs.org/temp npm http GET https://registry.npmjs.org/prettydiff npm http GET https://registry.npmjs.org/node-uuid npm http GET https://registry.npmjs.org/space-pen npm http GET https://registry.npmjs.org/typescript-formatter npm http GET https://registry.npmjs.org/yaml-front-matter npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/editorconfig npm http 304 https://registry.npmjs.org/analytics-node npm http 304 https://registry.npmjs.org/atom-message-panel npm http 304 https://registry.npmjs.org/js-beautify npm http 304 https://registry.npmjs.org/loophole npm http 304 https://registry.npmjs.org/extend npm http 304 https://registry.npmjs.org/strip-json-comments npm http 304 https://registry.npmjs.org/coffee-formatter npm http 304 https://registry.npmjs.org/temp npm http 304 https://registry.npmjs.org/node-dir npm http 304 https://registry.npmjs.org/node-uuid npm http 304 https://registry.npmjs.org/lodash/2.4.1 npm http 304 https://registry.npmjs.org/emissary npm http 304 https://registry.npmjs.org/space-pen npm http 304 https://registry.npmjs.org/yaml-front-matter npm http 304 https://registry.npmjs.org/prettydiff npm http 304 https://registry.npmjs.org/typescript-formatter npm http GET https://registry.npmjs.org/component-type npm http GET https://registry.npmjs.org/superagent npm http GET https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/superagent-proxy npm http GET https://registry.npmjs.org/uid/0.0.2 npm http GET https://registry.npmjs.org/join-component npm http GET https://registry.npmjs.org/clone npm http GET https://registry.npmjs.org/rimraf npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/underscore-plus npm http GET https://registry.npmjs.org/mixto npm http GET https://registry.npmjs.org/property-accessors npm http GET https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/commander/1.0.0 npm http GET https://reghttps://github.com/atom/atom/issues/newistry.npmjs.org/js-yaml npm http GET https://registry.npmjs.org/is-browser npm http 304 https://registry.npmjs.org/component-type npm http 304 https://registry.npmjs.org/superagent npm http 304 https://registry.npmjs.org/clone npm http 304 https://registry.npmjs.org/rimraf npm ERR! Error: ENOENT, chmod 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\lodash\LICENSE.txt' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "c:\\Users\\foo\\.atom\\.apmrc" "install" "c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013" npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\lodash\LICENSE.txt npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\lodash\LICENSE.txt npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! fstream_finish_call chmod npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:305:19 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm http 304 https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/lru-cache npm http 304 https://registry.npmjs.org/uid/0.0.2 npm http 304 https://registry.npmjs.org/superagent-proxy npm http 304 https://registry.npmjs.org/join-component npm http 304 https://registry.npmjs.org/underscore-plus npm http 304 https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/mixto npm http 304 https://registry.npmjs.org/property-accessors npm http 304 https://registry.npmjs.org/js-yaml npm ERR! Error: ENOENT, lstat 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\js-beautify\js\lib\unpackers\p_a_c_k_e_r_unpacker.js' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "c:\\Users\\foo\\.atom\\.apmrc" "install" "c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013" npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\js-beautify\js\lib\unpackers\p_a_c_k_e_r_unpacker.js npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\js-beautify\js\lib\unpackers\p_a_c_k_e_r_unpacker.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm ERR! error rolling back Error: EPERM, unlink 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\prettydiff\prettydiff.js' npm ERR! error rolling back atom-beautify@0.21.2 { [Error: EPERM, unlink 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\prettydiff\prettydiff.js'] npm ERR! error rolling back errno: 50, npm ERR! error rolling back code: 'EPERM', npm ERR! error rolling back path: 'C:\\Users\\foo\\AppData\\Local\\Temp\\apm-install-dir-115015-8932-9slqk5\\node_modules\\atom-beautify\\node_modules\\prettydiff\\prettydiff.js' } npm ERR! not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a problem with npm itself. npm ERR! Please check if you have git installed and in your PATH. npm ERR! System Windows_NT 6.2.9200 npm ERR! command "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "c:\\Users\\foo\\.atom\\.apmrc" "install" "c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013" npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! code ENOGIT npm http 304 https://registry.npmjs.org/commander/1.0.0 npm http 304 https://registry.npmjs.org/is-browser npm ERR! Error: ENOENT, lstat 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\typescript-formatter\tests\expected\default\main.ts' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "c:\\Users\\foo\\.atom\\.apmrc" "install" "c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013" npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\typescript-formatter\tests\expected\default\main.ts npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\typescript-formatter\tests\expected\default\main.ts npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm ERR! Error: ENOENT, lstat 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\space-pen\vendor\jquery.js' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "c:\\Users\\foo\\.atom\\.apmrc" "install" "c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013" npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\space-pen\vendor\jquery.js npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\space-pen\vendor\jquery.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm ERR! Error: ENOENT, lstat 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\coffee-formatter\docs\public\fonts\aller-light.woff' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "c:\\Users\\foo\\.atom\\.apmrc" "install" "c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013" npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\coffee-formatter\docs\public\fonts\aller-light.woff npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\coffee-formatter\docs\public\fonts\aller-light.woff npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm http GET https://registry.npmjs.org/proxy-agent npm http GET https://registry.npmjs.org/keypress npm http GET https://registry.npmjs.org/ms/0.6.2 npm ERR! Error: ENOENT, lstat 'C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\prettydiff\prettydiff.js' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; npm ERR! System Windows_NT 6.2.9200 npm ERR! command "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\foo\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "c:\\Users\\foo\\.atom\\.apmrc" "install" "c:\\Users\\foo\\.atom\\.node-gyp\\.atom\\.apm\\atom-beautify\\0.21.2\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013" npm ERR! cwd C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5 npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\prettydiff\prettydiff.js npm ERR! fstream_path C:\Users\foo\AppData\Local\Temp\apm-install-dir-115015-8932-9slqk5\node_modules\atom-beautify\node_modules\prettydiff\prettydiff.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack c:\Users\foo\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:108:15) npm http 304 https://registry.npmjs.org/proxy-agent npm http GET https://registry.npmjs.org/qs/0.6.5 npm http GET https://registry.npmjs.org/formidable/1.0.14 npm http GET https://registry.npmjs.org/mime/1.2.5 npm http GET https://registry.npmjs.org/emitter-component/1.0.0 npm http GET https://registry.npmjs.org/methods/0.0.1 npm http GET https://registry.npmjs.org/cookiejar/1.3.0 npm http GET https://registry.npmjs.org/reduce-component/1.0.1 npm http 304 https://registry.npmjs.org/keypress npm http 304 https://registry.npmjs.org/ms/0.6.2 npm http 304 https://registry.npmjs.org/emitter-component/1.0.0 npm http 304 https://registry.npmjs.org/cookiejar/1.3.0 npm http 304 https://registry.npmjs.org/methods/0.0.1 npm http GET https://registry.npmjs.org/https-proxy-agent npm http GET https://registry.npmjs.org/pac-proxy-agent npm http GET https://registry.npmjs.org/http-proxy-agent npm http GET https://registry.npmjs.org/socks-proxy-agent npm http 304 https://registry.npmjs.org/qs/0.6.5 npm http GET https://registry.npmjs.org/argparse npm http GET https://registry.npmjs.org/esprima npm http 304 https://registry.npmjs.org/reduce-component/1.0.1 npm http 304 https://registry.npmjs.org/mime/1.2.5 npm http 304 https://registry.npmjs.org/formidable/1.0.14 npm http 304 https://registry.npmjs.org/pac-proxy-agent npm http 304 https://registry.npmjs.org/argparse npm http 304 https://registry.npmjs.org/esprima npm http 304 https://registry.npmjs.org/http-proxy-agent npm http 304 https://registry.npmjs.org/socks-proxy-agent npm http 304 https://registry.npmjs.org/https-proxy-agent npm http GET https://registry.npmjs.org/rainbowsocks npm http GET https://registry.npmjs.org/agent-base npm http GET https://registry.npmjs.org/get-uri npm http GET https://registry.npmjs.org/pac-resolver npm http GET https://registry.npmjs.org/stream-to-array npm http 304 https://registry.npmjs.org/get-uri npm http 304 https://registry.npmjs.org/stream-to-array npm http 304 https://registry.npmjs.org/agent-base npm http 304 https://registry.npmjs.org/pac-resolver npm http 304 https://registry.npmjs.org/rainbowsocks npm http GET https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/underscore.string npm http 304 https://registry.npmjs.org/underscore.string npm http 304 https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/file-uri-to-path npm http GET https://registry.npmjs.org/ftp npm http GET https://registry.npmjs.org/data-uri-to-buffer npm http GET https://registry.npmjs.org/readable-stream npm http GET https://registry.npmjs.org/co npm http GET https://registry.npmjs.org/regenerator npm http GET https://registry.npmjs.org/degenerator npm http GET https://registry.npmjs.org/netmask npm http GET https://registry.npmjs.org/thunkify npm http 304 https://registry.npmjs.org/readable-stream npm http 304 https://registry.npmjs.org/file-uri-to-path npm http 304 https://registry.npmjs.org/ftp npm http 304 https://registry.npmjs.org/data-uri-to-buffer npm http 304 https://registry.npmjs.org/co npm http 304 https://registry.npmjs.org/degenerator npm http 304 https://registry.npmjs.org/regenerator npm http 304 https://registry.npmjs.org/netmask npm http 304 https://registry.npmjs.org/thunkify npm http GET https://registry.npmjs.org/xregexp/2.0.0 npm http GET https://registry.npmjs.org/escodegen npm http GET https://registry.npmjs.org/ast-types npm http GET https://registry.npmjs.org/string_decoder npm http GET https://registry.npmjs.org/isarray/0.0.1 npm http GET https://registry.npmjs.org/core-util-is npm http GET https://registry.npmjs.org/inherits npm http GET https://registry.npmjs.org/private npm http GET https://registry.npmjs.org/defs npm http GET https://registry.npmjs.org/recast npm http 304 https://registry.npmjs.org/ast-types npm http 304 https://registry.npmjs.org/string_decoder npm http 304 https://registry.npmjs.org/isarray/0.0.1 npm http 304 https://registry.npmjs.org/xregexp/2.0.0 npm http 304 https://registry.npmjs.org/core-util-is npm http 304 https://registry.npmjs.org/inherits npm http 304 https://registry.npmjs.org/defs npm http 304 https://registry.npmjs.org/private npm http 304 https://registry.npmjs.org/recast npm http 304 https://registry.npmjs.org/escodegen npm </code></pre></div>
<p dir="auto">I am attempting to install an Atom package and the install keeps failing with the same error (see below). After investigating, it seems that there is a mismatch between the way that the GitHub installer installs Git on Windows (Windows 7 in this case) and the way that Atom expects to find Git.</p> <p dir="auto">GitHub is installing Git as a "ClickOnce Application Reference". It does not get it's own place on the system path, and the deeply nested directory where it is located has a hellishly long name that is not conducive to being added to the path. See below for a partial image of that directory. Notice the path information displayed at the top is only partial!</p> <p dir="auto">All of the advice that I found for solving issues of this sort involve adding the Git directory to the system's path, but that is not practical with the way GitHub currently installs itself. Is there another solution?</p> <p dir="auto">Thanks for your help.</p> <p dir="auto">George</p> <hr> <p dir="auto">Installing “Sublime-Style-Column-Selection@1.1.3” failed.Hide output…</p> <p dir="auto">npm http GET <a href="https://registry.npmjs.org/emissary" rel="nofollow">https://registry.npmjs.org/emissary</a><br> npm http 304 <a href="https://registry.npmjs.org/emissary" rel="nofollow">https://registry.npmjs.org/emissary</a><br> npm http GET <a href="https://registry.npmjs.org/mixto" rel="nofollow">https://registry.npmjs.org/mixto</a><br> npm http GET <a href="https://registry.npmjs.org/property-accessors" rel="nofollow">https://registry.npmjs.org/property-accessors</a><br> npm http GET <a href="https://registry.npmjs.org/underscore-plus" rel="nofollow">https://registry.npmjs.org/underscore-plus</a><br> npm ERR! not found: git<br> npm ERR!<br> npm ERR! Failed using git.<br> npm ERR! This is most likely not a problem with npm itself.<br> npm ERR! Please check if you have git installed and in your PATH.</p> <p dir="auto">npm ERR! System Windows_NT 6.1.7601<br> npm ERR! command "c:\Users\George\AppData\Local\atom\app-0.165.0\resources\app\apm\node_modules\atom-package-manager\bin\node.exe" "c:\Users\George\AppData\Local\atom\app-0.165.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\bin\npm-cli.js" "--globalconfig" "c:\Users\George\AppData\Local\atom\app-0.165.0\resources\app\apm\node_modules\atom-package-manager.apmrc" "--userconfig" "C:\Users\George.atom.apmrc" "install" "C:\Users\George\AppData\Local\Temp\d-11507-7104-mfvqtr\package.tgz" "--target=0.18.0" "--arch=ia32" "--msvs_version=2013"<br> npm ERR! cwd C:\Users\George\AppData\Local\Temp\apm-install-dir-11507-7104-1s0c3gy<br> npm ERR! node -v v0.10.33<br> npm ERR! npm -v 1.4.4<br> npm ERR! code ENOGIT<br> npm http 304 <a href="https://registry.npmjs.org/property-accessors" rel="nofollow">https://registry.npmjs.org/property-accessors</a><br> npm http 304 <a href="https://registry.npmjs.org/underscore-plus" rel="nofollow">https://registry.npmjs.org/underscore-plus</a><br> npm http 304 <a href="https://registry.npmjs.org/mixto" rel="nofollow">https://registry.npmjs.org/mixto</a><br> npm</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9140259/5654842/85a33e92-9684-11e4-8208-567226fdb1b6.jpg"><img src="https://cloud.githubusercontent.com/assets/9140259/5654842/85a33e92-9684-11e4-8208-567226fdb1b6.jpg" alt="gith tion_317444273a93ac29_0002 0006_159c473f7cb71f94_2015-01-07_15-47-03" style="max-width: 100%;"></a></p>
1
<p dir="auto">Certain icons do not display correctly in Safari. It seems to be an encoding issue perhaps? <a href="http://d.pr/i/QL0L" rel="nofollow">http://d.pr/i/QL0L</a>. The lock, bell, and paperclip among others show up like this in the css <a href="http://d.pr/i/ypKw" rel="nofollow">http://d.pr/i/ypKw</a>. This is straight from the getbootstrap site. I've downloaded from the main page, the compiler, and the source on GitHub and the same icons always fail. It's the last icons in the css.</p> <p dir="auto">.glyphicon-briefcase:before{content:"\1f4bc";}<br> .glyphicon-calendar:before{content:"\1f4c5";}<br> .glyphicon-pushpin:before{content:"\1f4cc";}<br> .glyphicon-paperclip:before{content:"\1f4ce";}<br> .glyphicon-camera:before{content:"\1f4f7";}<br> .glyphicon-lock:before{content:"\1f512";}<br> .glyphicon-bell:before{content:"\1f514";}<br> .glyphicon-bookmark:before{content:"\1f516";}<br> .glyphicon-fire:before{content:"\1f525";}<br> .glyphicon-wrench:before{content:"\1f527";}</p> <p dir="auto">Broken:<br> Windows 8, Safari 5.1.7.<br> OSX Lion 10.7.5 Safari 5.1.7</p> <p dir="auto">These work fine in Firefox 24, IE 11 (and 10-7 emulation in both quirks and normal), Chrome 30.0.1599.69 m. Opera 12.16 fails to load the fonts (which is expected) but it still continues to load the characters correctly as a fallback.</p>
<p dir="auto">The glyph font icons are somehow broken on some devices. For example on my android phone (android 2.1) some of the icons are broken, but others look OK. See attached screenshot.</p> <p dir="auto">I'm not sure what is cause of that, yet if it is possible to show some of the icons properly on my device, it should be possible to fix it to show all of them properly. If you need more information, let me know. Thank you.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/7597d6a883dce697d3c8fc2a421f96ae18facf8a56a70c22bdfa47ecf0f15847/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323235393337302f313032303735392f62326533313437652d306363322d313165332d396535392d3038353862633933356336302e706e67"><img src="https://camo.githubusercontent.com/7597d6a883dce697d3c8fc2a421f96ae18facf8a56a70c22bdfa47ecf0f15847/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323235393337302f313032303735392f62326533313437652d306363322d313165332d396535392d3038353862633933356336302e706e67" alt="screenshot_2013-08-24_1536" data-canonical-src="https://f.cloud.github.com/assets/2259370/1020759/b2e3147e-0cc2-11e3-9e59-0858bc935c60.png" style="max-width: 100%;"></a></p>
1
<p dir="auto">by <strong>sebastien.paolacci</strong>:</p> <pre class="notranslate">Before filing a bug, please check whether it has been fixed since the latest release: run "hg pull", "hg update default", rebuild, and retry what you did to reproduce the problem. Thanks. What steps will reproduce the problem? 1. Ask for an os.File representation of a timeout-protected connection 2. Issue a timeout-able framework call (e.g con.{accept, read, write}) 3. Wait. What is the expected output? Effective timeout: "resource temporarily unavailable". What do you see instead? Call will block forever. Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? linux/amd64 Which revision are you using? (hg identify) r60.3, tip. Please provide any additional information below. Discussed on golang-nuts (<a href="http://groups.google.com/group/golang-nuts/browse_thread/thread/c88f08fa652497da#)" rel="nofollow">http://groups.google.com/group/golang-nuts/browse_thread/thread/c88f08fa652497da#)</a>, issue filled for the record. package main import ( "flag" "net" "fmt" "syscall" ) const TIMEOUT = 1e8 func main() { unblock := flag.Bool("unblock", false, "revert socket blocking mode") flag.Parse() addr, _ := net.ResolveTCPAddr("tcp", "12345") l, err := net.ListenTCP("tcp", addr) if err != nil { panic(err) } if err := l.SetTimeout(TIMEOUT); err != nil { panic(err) } f, _ := l.File() fmt.Printf("observing '%v'\n", f) if *unblock { syscall.SetNonblock(f.Fd(), true) } fmt.Printf("should timeout in %v seconds...\n", float64(TIMEOUT)/1e9) con, err := l.Accept() // Will hang forever if the '-unblock' flag is not set. fmt.Println(con, err) }</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/2458/0/timeout.patch" rel="nofollow">timeout.patch</a> (4183 bytes)</li> </ol>
<pre class="notranslate">Go has a RFC 6265 compliant cookie parser in net/http that is used for the builtin http server. Which means commas aren't allowed in cookie values (what the rfc specified in the BNF as "cookie-octet"). Despite not being RFC compliant, all browsers that I'm aware of allow commas. When replatforming an existing system to Golang, I'm unable to read in cookies set by the another server (nginx) or set cookies in a way that mimics the legacy app. I'd like to see net/http/cookie.go do less validation on cookie values so that it matches the behavior of firefox and chrome, because this will make it easier to replace legacy systems with Go. I can produce a patch. The relevant lines of code in the go parser are: <a href="http://golang.org/src/pkg/net/http/cookie.go#L308" rel="nofollow">http://golang.org/src/pkg/net/http/cookie.go#L308</a> <a href="http://golang.org/src/pkg/net/http/cookie.go#L350" rel="nofollow">http://golang.org/src/pkg/net/http/cookie.go#L350</a> Existing browser implementations: <a href="http://mxr.mozilla.org/mozilla-central/source/netwerk/cookie/nsCookieService.cpp#3095" rel="nofollow">http://mxr.mozilla.org/mozilla-central/source/netwerk/cookie/nsCookieService.cpp#3095</a> <a href="http://src.chromium.org/viewvc/chrome/trunk/src/net/cookies/parsed_cookie.cc#l143" rel="nofollow">http://src.chromium.org/viewvc/chrome/trunk/src/net/cookies/parsed_cookie.cc#l143</a> Which compiler are you using (5g, 6g, 8g, gccgo)? Affects all compilers Which operating system are you using? Affects all OS's Which version are you using? (run 'go version') go 1.2</pre>
0
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-autoscaling/411/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-autoscaling/411/</a></p> <p dir="auto">Multiple broken tests:</p> <p dir="auto">Failed: DumpClusterLogs {e2e.go}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error running dump cluster logs: exit status 1"><pre class="notranslate"><code class="notranslate">error running dump cluster logs: exit status 1 </code></pre></div> <p dir="auto">Failed: [k8s.io] Cluster size autoscaling [Slow] should add node to the particular mig [Feature:ClusterSizeAutoscalingScaleUp] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:145 Expected error: &lt;*errors.StatusError | 0xc420e3e300&gt;: { ErrStatus: { TypeMeta: {Kind: &quot;&quot;, APIVersion: &quot;&quot;}, ListMeta: {SelfLink: &quot;&quot;, ResourceVersion: &quot;&quot;}, Status: &quot;Failure&quot;, Message: &quot;an error on the server (\&quot;Internal Server Error: \\\&quot;/api/v1/watch/namespaces/e2e-tests-autoscaling-uqpuq/serviceaccounts?fieldSelector=metadata.name%3Ddefault\\\&quot;\&quot;) has prevented the request from succeeding (get serviceAccounts)&quot;, Reason: &quot;InternalError&quot;, Details: { Name: &quot;&quot;, Group: &quot;&quot;, Kind: &quot;serviceAccounts&quot;, Causes: [ { Type: &quot;UnexpectedServerResponse&quot;, Message: &quot;Internal Server Error: \&quot;/api/v1/watch/namespaces/e2e-tests-autoscaling-uqpuq/serviceaccounts?fieldSelector=metadata.name%3Ddefault\&quot;&quot;, Field: &quot;&quot;, }, ], RetryAfterSeconds: 0, }, Code: 500, }, } an error on the server (&quot;Internal Server Error: \&quot;/api/v1/watch/namespaces/e2e-tests-autoscaling-uqpuq/serviceaccounts?fieldSelector=metadata.name%3Ddefault\&quot;&quot;) has prevented the request from succeeding (get serviceAccounts) not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:236"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:145 Expected error: &lt;*errors.StatusError | 0xc420e3e300&gt;: { ErrStatus: { TypeMeta: {Kind: "", APIVersion: ""}, ListMeta: {SelfLink: "", ResourceVersion: ""}, Status: "Failure", Message: "an error on the server (\"Internal Server Error: \\\"/api/v1/watch/namespaces/e2e-tests-autoscaling-uqpuq/serviceaccounts?fieldSelector=metadata.name%3Ddefault\\\"\") has prevented the request from succeeding (get serviceAccounts)", Reason: "InternalError", Details: { Name: "", Group: "", Kind: "serviceAccounts", Causes: [ { Type: "UnexpectedServerResponse", Message: "Internal Server Error: \"/api/v1/watch/namespaces/e2e-tests-autoscaling-uqpuq/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"", Field: "", }, ], RetryAfterSeconds: 0, }, Code: 500, }, } an error on the server ("Internal Server Error: \"/api/v1/watch/namespaces/e2e-tests-autoscaling-uqpuq/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"") has prevented the request from succeeding (get serviceAccounts) not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:236 </code></pre></div> <p dir="auto">Failed: [k8s.io] Cluster size autoscaling [Slow] should increase cluster size if pods are pending due to host port conflict [Feature:ClusterSizeAutoscalingScaleUp] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:90 Expected &lt;int&gt;: 6 to equal &lt;int&gt;: 3 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:80"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:90 Expected &lt;int&gt;: 6 to equal &lt;int&gt;: 3 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:80 </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180175960" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33793" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33793/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33793">#33793</a></p> <p dir="auto">Failed: [k8s.io] Cluster size autoscaling [Slow] should increase cluster size if pending pods are small [Feature:ClusterSizeAutoscalingScaleUp] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:90 Expected &lt;int&gt;: 6 to equal &lt;int&gt;: 3 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:80"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:90 Expected &lt;int&gt;: 6 to equal &lt;int&gt;: 3 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:80 </code></pre></div> <p dir="auto">Failed: [k8s.io] Cluster size autoscaling [Slow] should disable node pool autoscaling [Feature:ClusterSizeAutoscalingScaleUp] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:90 Expected &lt;int&gt;: 6 to equal &lt;int&gt;: 3 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:80"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:90 Expected &lt;int&gt;: 6 to equal &lt;int&gt;: 3 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:80 </code></pre></div> <p dir="auto">Failed: [k8s.io] Cluster size autoscaling [Slow] should correctly scale down after a node is not needed when there is non autoscaled pool[Feature:ClusterSizeAutoscalingScaleDown] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:146 Oct 21 08:46:11.349: All nodes should be ready after test, the server cannot complete the requested operation at this time, try again later (get nodes) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:445"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:146 Oct 21 08:46:11.349: All nodes should be ready after test, the server cannot complete the requested operation at this time, try again later (get nodes) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:445 </code></pre></div> <p dir="auto">Failed: [k8s.io] Cluster size autoscaling [Slow] should increase cluster size if pending pods are small and there is another node pool that is not autoscaled [Feature:ClusterSizeAutoscalingScaleUp] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:145 Expected error: &lt;*errors.errorString | 0xc4203ced10&gt;: { s: &quot;timed out waiting for the condition&quot;, } timed out waiting for the condition not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:236"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:145 Expected error: &lt;*errors.errorString | 0xc4203ced10&gt;: { s: "timed out waiting for the condition", } timed out waiting for the condition not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:236 </code></pre></div> <p dir="auto">Failed: [k8s.io] Cluster size autoscaling [Slow] should scale up correct target pool [Feature:ClusterSizeAutoscalingScaleUp] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:90 Expected &lt;int&gt;: 6 to equal &lt;int&gt;: 3 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:80"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:90 Expected &lt;int&gt;: 6 to equal &lt;int&gt;: 3 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:80 </code></pre></div> <p dir="auto">Previous issues for this suite: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="179110943" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33456" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33456/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33456">#33456</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181029490" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34061" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34061/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34061">#34061</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="182932930" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34781" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34781/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34781">#34781</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-autoscaling/304/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-autoscaling/304/</a></p> <p dir="auto">Multiple broken tests:</p> <p dir="auto">Failed: [k8s.io] Cluster size autoscaling [Slow] shouldn't increase cluster size if pending pod is too large [Feature:ClusterSizeAutoscalingScaleUp] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:124 Expected &lt;bool&gt;: false to equal &lt;bool&gt;: true /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:120"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:124 Expected &lt;bool&gt;: false to equal &lt;bool&gt;: true /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:120 </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="182412183" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34581" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34581/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34581">#34581</a></p> <p dir="auto">Failed: [k8s.io] Cluster size autoscaling [Slow] should correctly scale down after a node is not needed [Feature:ClusterSizeAutoscalingScaleDown] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:260 Expected error: &lt;*errors.errorString | 0xc821419bf0&gt;: { s: &quot;timeout waiting 15m0s for appropriate cluster size&quot;, } timeout waiting 15m0s for appropriate cluster size not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:259"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:260 Expected error: &lt;*errors.errorString | 0xc821419bf0&gt;: { s: "timeout waiting 15m0s for appropriate cluster size", } timeout waiting 15m0s for appropriate cluster size not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:259 </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180510686" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33891" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33891/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33891">#33891</a></p> <p dir="auto">Failed: [k8s.io] Cluster size autoscaling [Slow] should scale up correct target pool [Feature:ClusterSizeAutoscalingScaleUp] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:243 Expected error: &lt;*errors.errorString | 0xc820dae440&gt;: { s: &quot;autoscaler not enabled&quot;, } autoscaler not enabled not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:232"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:243 Expected error: &lt;*errors.errorString | 0xc820dae440&gt;: { s: "autoscaler not enabled", } autoscaler not enabled not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:232 </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180539318" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33897" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33897/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33897">#33897</a></p> <p dir="auto">Failed: [k8s.io] Cluster size autoscaling [Slow] should increase cluster size if pending pods are small [Feature:ClusterSizeAutoscalingScaleUp] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:134 Expected error: &lt;*errors.errorString | 0xc820936040&gt;: { s: &quot;timeout waiting 5m0s for appropriate cluster size&quot;, } timeout waiting 5m0s for appropriate cluster size not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:132"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:134 Expected error: &lt;*errors.errorString | 0xc820936040&gt;: { s: "timeout waiting 5m0s for appropriate cluster size", } timeout waiting 5m0s for appropriate cluster size not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_size_autoscaling.go:132 </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181334990" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34211" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34211/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34211">#34211</a></p> <p dir="auto">Previous issues for this suite: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="179110943" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33456" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33456/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33456">#33456</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181029490" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34061" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34061/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34061">#34061</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="182932930" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34781" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34781/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34781">#34781</a></p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>4.3.0 (rhubarb)</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><p dir="auto">software -&gt; celery:4.3.0 (rhubarb) kombu:4.5.0 py:3.7.2<br> billiard:3.6.0.0 py-amqp:2.4.2<br> platform -&gt; system:Linux arch:64bit<br> kernel version:4.15.0-46-generic imp:CPython<br> loader -&gt; celery.loaders.app.AppLoader<br> settings -&gt; transport:amqp results:disabled</p> <p dir="auto">ABSOLUTE_URL_OVERRIDES: {<br> }<br> ADMINS:<br> ()<br> ALLOWED_HOSTS: []<br> APPEND_SLASH: True<br> AUTHENTICATION_BACKENDS: ['django.contrib.auth.backends.ModelBackend']<br> AUTH_PASSWORD_VALIDATORS: '<strong>'<br> AUTH_USER_MODEL: 'auth.User'<br> CACHES: {<br> 'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}<br> CACHE_MIDDLEWARE_ALIAS: 'default'<br> CACHE_MIDDLEWARE_KEY_PREFIX: '</strong>'<br> CACHE_MIDDLEWARE_SECONDS: 600<br> CELERY_BROKER_URL: 'amqp://guest:<strong><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/localhost/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/localhost">@localhost</a>:5672//'<br> CSRF_COOKIE_AGE: 31449600<br> CSRF_COOKIE_DOMAIN: None<br> CSRF_COOKIE_HTTPONLY: False<br> CSRF_COOKIE_NAME: 'csrftoken'<br> CSRF_COOKIE_PATH: '/'<br> CSRF_COOKIE_SAMESITE: 'Lax'<br> CSRF_COOKIE_SECURE: False<br> CSRF_FAILURE_VIEW: 'django.views.csrf.csrf_failure'<br> CSRF_HEADER_NAME: 'HTTP_X_CSRFTOKEN'<br> CSRF_TRUSTED_ORIGINS: []<br> CSRF_USE_SESSIONS: False<br> DATABASES: {<br> 'default': { 'ATOMIC_REQUESTS': False,<br> 'AUTOCOMMIT': True,<br> 'CONN_MAX_AGE': 0,<br> 'ENGINE': 'django.db.backends.sqlite3',<br> 'HOST': '',<br> 'NAME': 'test.db',<br> 'OPTIONS': {},<br> 'PASSWORD': '</strong>',<br> 'PORT': '',<br> 'TEST': { 'CHARSET': None,<br> 'COLLATION': None,<br> 'MIRROR': None,<br> 'NAME': None},<br> 'TIME_ZONE': None,<br> 'USER': ''}}<br> DATABASE_ROUTERS: '<strong>'<br> DATA_UPLOAD_MAX_MEMORY_SIZE: 2621440<br> DATA_UPLOAD_MAX_NUMBER_FIELDS: 1000<br> DATETIME_FORMAT: 'N j, Y, P'<br> DATETIME_INPUT_FORMATS: ['%Y-%m-%d %H:%M:%S',<br> '%Y-%m-%d %H:%M:%S.%f',<br> '%Y-%m-%d %H:%M',<br> '%Y-%m-%d',<br> '%m/%d/%Y %H:%M:%S',<br> '%m/%d/%Y %H:%M:%S.%f',<br> '%m/%d/%Y %H:%M',<br> '%m/%d/%Y',<br> '%m/%d/%y %H:%M:%S',<br> '%m/%d/%y %H:%M:%S.%f',<br> '%m/%d/%y %H:%M',<br> '%m/%d/%y']<br> DATE_FORMAT: 'N j, Y'<br> DATE_INPUT_FORMATS: ['%Y-%m-%d',<br> '%m/%d/%Y',<br> '%m/%d/%y',<br> '%b %d %Y',<br> '%b %d, %Y',<br> '%d %b %Y',<br> '%d %b, %Y',<br> '%B %d %Y',<br> '%B %d, %Y',<br> '%d %B %Y',<br> '%d %B, %Y']<br> DEBUG: True<br> DEBUG_PROPAGATE_EXCEPTIONS: False<br> DECIMAL_SEPARATOR: '.'<br> DEFAULT_CHARSET: 'utf-8'<br> DEFAULT_CONTENT_TYPE: 'text/html'<br> DEFAULT_EXCEPTION_REPORTER_FILTER: 'django.views.debug.SafeExceptionReporterFilter'<br> DEFAULT_FILE_STORAGE: 'django.core.files.storage.FileSystemStorage'<br> DEFAULT_FROM_EMAIL: 'webmaster@localhost'<br> DEFAULT_INDEX_TABLESPACE: ''<br> DEFAULT_TABLESPACE: ''<br> DISALLOWED_USER_AGENTS: []<br> EMAIL_BACKEND: 'django.core.mail.backends.smtp.EmailBackend'<br> EMAIL_HOST: 'localhost'<br> EMAIL_HOST_PASSWORD: '</strong>'<br> EMAIL_HOST_USER: ''<br> EMAIL_PORT: 25<br> EMAIL_SSL_CERTFILE: None<br> EMAIL_SSL_KEYFILE: '<strong>'<br> EMAIL_SUBJECT_PREFIX: '[Django] '<br> EMAIL_TIMEOUT: None<br> EMAIL_USE_LOCALTIME: False<br> EMAIL_USE_SSL: False<br> EMAIL_USE_TLS: False<br> FILE_CHARSET: 'utf-8'<br> FILE_UPLOAD_DIRECTORY_PERMISSIONS: None<br> FILE_UPLOAD_HANDLERS: ['django.core.files.uploadhandler.MemoryFileUploadHandler',<br> 'django.core.files.uploadhandler.TemporaryFileUploadHandler']<br> FILE_UPLOAD_MAX_MEMORY_SIZE: 2621440<br> FILE_UPLOAD_PERMISSIONS: None<br> FILE_UPLOAD_TEMP_DIR: None<br> FIRST_DAY_OF_WEEK: 0<br> FIXTURE_DIRS: []<br> FORCE_SCRIPT_NAME: None<br> FORMAT_MODULE_PATH: None<br> FORM_RENDERER: 'django.forms.renderers.DjangoTemplates'<br> IGNORABLE_404_URLS: []<br> INSTALLED_APPS:<br> ('django.contrib.auth',<br> 'django.contrib.contenttypes',<br> 'django.contrib.sessions',<br> 'django.contrib.sites',<br> 'django.contrib.messages',<br> 'django.contrib.staticfiles',<br> 'django.contrib.admin',<br> 'demoapp')<br> INTERNAL_IPS: []<br> LANGUAGES: [('af', 'Afrikaans'),<br> ('ar', 'Arabic'),<br> ('ast', 'Asturian'),<br> ('az', 'Azerbaijani'),<br> ('bg', 'Bulgarian'),<br> ('be', 'Belarusian'),<br> ('bn', 'Bengali'),<br> ('br', 'Breton'),<br> ('bs', 'Bosnian'),<br> ('ca', 'Catalan'),<br> ('cs', 'Czech'),<br> ('cy', 'Welsh'),<br> ('da', 'Danish'),<br> ('de', 'German'),<br> ('dsb', 'Lower Sorbian'),<br> ('el', 'Greek'),<br> ('en', 'English'),<br> ('en-au', 'Australian English'),<br> ('en-gb', 'British English'),<br> ('eo', 'Esperanto'),<br> ('es', 'Spanish'),<br> ('es-ar', 'Argentinian Spanish'),<br> ('es-co', 'Colombian Spanish'),<br> ('es-mx', 'Mexican Spanish'),<br> ('es-ni', 'Nicaraguan Spanish'),<br> ('es-ve', 'Venezuelan Spanish'),<br> ('et', 'Estonian'),<br> ('eu', 'Basque'),<br> ('fa', 'Persian'),<br> ('fi', 'Finnish'),<br> ('fr', 'French'),<br> ('fy', 'Frisian'),<br> ('ga', 'Irish'),<br> ('gd', 'Scottish Gaelic'),<br> ('gl', 'Galician'),<br> ('he', 'Hebrew'),<br> ('hi', 'Hindi'),<br> ('hr', 'Croatian'),<br> ('hsb', 'Upper Sorbian'),<br> ('hu', 'Hungarian'),<br> ('ia', 'Interlingua'),<br> ('id', 'Indonesian'),<br> ('io', 'Ido'),<br> ('is', 'Icelandic'),<br> ('it', 'Italian'),<br> ('ja', 'Japanese'),<br> ('ka', 'Georgian'),<br> ('kab', 'Kabyle'),<br> ('kk', 'Kazakh'),<br> ('km', 'Khmer'),<br> ('kn', 'Kannada'),<br> ('ko', 'Korean'),<br> ('lb', 'Luxembourgish'),<br> ('lt', 'Lithuanian'),<br> ('lv', 'Latvian'),<br> ('mk', 'Macedonian'),<br> ('ml', 'Malayalam'),<br> ('mn', 'Mongolian'),<br> ('mr', 'Marathi'),<br> ('my', 'Burmese'),<br> ('nb', 'Norwegian Bokmål'),<br> ('ne', 'Nepali'),<br> ('nl', 'Dutch'),<br> ('nn', 'Norwegian Nynorsk'),<br> ('os', 'Ossetic'),<br> ('pa', 'Punjabi'),<br> ('pl', 'Polish'),<br> ('pt', 'Portuguese'),<br> ('pt-br', 'Brazilian Portuguese'),<br> ('ro', 'Romanian'),<br> ('ru', 'Russian'),<br> ('sk', 'Slovak'),<br> ('sl', 'Slovenian'),<br> ('sq', 'Albanian'),<br> ('sr', 'Serbian'),<br> ('sr-latn', 'Serbian Latin'),<br> ('sv', 'Swedish'),<br> ('sw', 'Swahili'),<br> ('ta', 'Tamil'),<br> ('te', 'Telugu'),<br> ('th', 'Thai'),<br> ('tr', 'Turkish'),<br> ('tt', 'Tatar'),<br> ('udm', 'Udmurt'),<br> ('uk', 'Ukrainian'),<br> ('ur', 'Urdu'),<br> ('vi', 'Vietnamese'),<br> ('zh-hans', 'Simplified Chinese'),<br> ('zh-hant', 'Traditional Chinese')]<br> LANGUAGES_BIDI: ['he', 'ar', 'fa', 'ur']<br> LANGUAGE_CODE: 'en-us'<br> LANGUAGE_COOKIE_AGE: None<br> LANGUAGE_COOKIE_DOMAIN: None<br> LANGUAGE_COOKIE_NAME: 'django_language'<br> LANGUAGE_COOKIE_PATH: '/'<br> LOCALE_PATHS: []<br> LOGGING: {<br> 'disable_existing_loggers': False,<br> 'filters': { 'require_debug_false': { '()': 'django.utils.log.RequireDebugFalse'}},<br> 'handlers': { 'mail_admins': { 'class': 'django.utils.log.AdminEmailHandler',<br> 'filters': ['require_debug_false'],<br> 'level': 'ERROR'}},<br> 'loggers': { 'django.request': { 'handlers': ['mail_admins'],<br> 'level': 'ERROR',<br> 'propagate': True}},<br> 'version': 1}<br> LOGGING_CONFIG: 'logging.config.dictConfig'<br> LOGIN_REDIRECT_URL: '/accounts/profile/'<br> LOGIN_URL: '/accounts/login/'<br> LOGOUT_REDIRECT_URL: None<br> MANAGERS:<br> ()<br> MEDIA_ROOT: ''<br> MEDIA_URL: ''<br> MESSAGE_STORAGE: 'django.contrib.messages.storage.fallback.FallbackStorage'<br> MIDDLEWARE: []<br> MIDDLEWARE_CLASSES:<br> ('django.middleware.common.CommonMiddleware',<br> 'django.contrib.sessions.middleware.SessionMiddleware',<br> 'django.middleware.csrf.CsrfViewMiddleware',<br> 'django.contrib.auth.middleware.AuthenticationMiddleware',<br> 'django.contrib.messages.middleware.MessageMiddleware')<br> MIGRATION_MODULES: {<br> }<br> MONTH_DAY_FORMAT: 'F j'<br> NUMBER_GROUPING: 0<br> PASSWORD_HASHERS: '</strong>'<br> PASSWORD_RESET_TIMEOUT_DAYS: '<strong>'<br> PREPEND_WWW: False<br> ROOT_URLCONF: 'proj.urls'<br> SECRET_KEY: '</strong>'<br> SECURE_BROWSER_XSS_FILTER: False<br> SECURE_CONTENT_TYPE_NOSNIFF: False<br> SECURE_HSTS_INCLUDE_SUBDOMAINS: False<br> SECURE_HSTS_PRELOAD: False<br> SECURE_HSTS_SECONDS: 0<br> SECURE_PROXY_SSL_HEADER: None<br> SECURE_REDIRECT_EXEMPT: []<br> SECURE_SSL_HOST: None<br> SECURE_SSL_REDIRECT: False<br> SERVER_EMAIL: 'root@localhost'<br> SESSION_CACHE_ALIAS: 'default'<br> SESSION_COOKIE_AGE: 1209600<br> SESSION_COOKIE_DOMAIN: None<br> SESSION_COOKIE_HTTPONLY: True<br> SESSION_COOKIE_NAME: 'sessionid'<br> SESSION_COOKIE_PATH: '/'<br> SESSION_COOKIE_SAMESITE: 'Lax'<br> SESSION_COOKIE_SECURE: False<br> SESSION_ENGINE: 'django.contrib.sessions.backends.db'<br> SESSION_EXPIRE_AT_BROWSER_CLOSE: False<br> SESSION_FILE_PATH: None<br> SESSION_SAVE_EVERY_REQUEST: False<br> SESSION_SERIALIZER: 'django.contrib.sessions.serializers.JSONSerializer'<br> SETTINGS_MODULE: 'proj.settings'<br> SHORT_DATETIME_FORMAT: 'm/d/Y P'<br> SHORT_DATE_FORMAT: 'm/d/Y'<br> SIGNING_BACKEND: 'django.core.signing.TimestampSigner'<br> SILENCED_SYSTEM_CHECKS: []<br> SITE_ID: 1<br> STATICFILES_DIRS:<br> ()<br> STATICFILES_FINDERS:<br> ('django.contrib.staticfiles.finders.FileSystemFinder',<br> 'django.contrib.staticfiles.finders.AppDirectoriesFinder')<br> STATICFILES_STORAGE: 'django.contrib.staticfiles.storage.StaticFilesStorage'<br> STATIC_ROOT: ''<br> STATIC_URL: '/static/'<br> TEMPLATES: []<br> TEMPLATE_DEBUG: True<br> TEMPLATE_DIRS:<br> ()<br> TEMPLATE_LOADERS:<br> ('django.template.loaders.filesystem.Loader',<br> 'django.template.loaders.app_directories.Loader')<br> TEST_NON_SERIALIZED_APPS: []<br> TEST_RUNNER: 'django.test.runner.DiscoverRunner'<br> THOUSAND_SEPARATOR: ','<br> TIME_FORMAT: 'P'<br> TIME_INPUT_FORMATS: ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']<br> TIME_ZONE: 'America/Chicago'<br> USE_I18N: True<br> USE_L10N: True<br> USE_THOUSAND_SEPARATOR: False<br> USE_TZ: True<br> USE_X_FORWARDED_HOST: False<br> USE_X_FORWARDED_PORT: False<br> WSGI_APPLICATION: 'proj.wsgi.application'<br> X_FRAME_OPTIONS: 'SAMEORIGIN'<br> YEAR_MONTH_FORMAT: 'F Y'<br> is_overridden: &lt;bound method Settings.is_overridden of &lt;Settings "proj.settings"&gt;&gt;</p> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <p dir="auto">I reproduced this on my on project and on the django - celery example <a href="https://github.com/celery/celery/tree/master/examples/django">https://github.com/celery/celery/tree/master/examples/django</a></p> <ul dir="auto"> <li>Go to tasks.py on the default django - celery example and include "import requests"</li> <li>Start celery worker <code class="notranslate">celery -A proj worker -B -l info</code></li> <li>Celery will not list the tasks inside that file</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> amqp==2.4.2 billiard==3.6.0.0 celery==4.3.0 certifi==2019.3.9 Django==2.1.7 django-pandas==0.6.0 huey==1.11.0 kombu==4.5.0 numpy==1.16.2 pandas==0.24.2 psycopg2==2.7.7 psycopg2-binary==2.7.7 python-dateutil==2.8.0 pytz==2018.9 redis==3.2.0 six==1.12.0 vine==1.3.0 </p> </details>
<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?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Issue+Type%3A+Feature+Request%22+">issues list</a><br> for similar or identical feature requests.</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?utf8=%E2%9C%93&amp;q=is%3Apr+label%3A%22PR+Type%3A+Feature%22+">pull requests list</a><br> for existing proposed implementations of this 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/commits/master">commit log</a><br> to find out if the if the same feature 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<br> in this issue (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">How should I maintain a connection to broker in worker so that when I do the task, I can publish messages to broker?</p> <h1 dir="auto">Design</h1> <h2 dir="auto">Architectural Considerations</h2> <p dir="auto">None</p> <h2 dir="auto">Proposed Behavior</h2> <h2 dir="auto">Proposed UI/UX</h2> <h2 dir="auto">Diagrams</h2> <p dir="auto">N/A</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">None</p>
0
<p dir="auto">Mysql version : 5.7.18-cynos-log<br> Shardingsphere Proxy version : 5.1.2<br> Description:<br> When select [page_put_path] , result hava [page_put_path]。<br> But when select * , not result [page_put_path] .</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/35477514/241102083-6e4cf8fa-9079-4d4b-b440-25b1a589491f.png"><img src="https://user-images.githubusercontent.com/35477514/241102083-6e4cf8fa-9079-4d4b-b440-25b1a589491f.png" alt="1685066785722_99A1EF72-CF3A-4ca5-A487-4E46261AB7BE" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/35477514/241102096-3b76f8b8-b658-4c7c-a356-5fce942c0f6d.png"><img src="https://user-images.githubusercontent.com/35477514/241102096-3b76f8b8-b658-4c7c-a356-5fce942c0f6d.png" alt="1685066866948_8539D39E-B544-4447-97E6-19F9D3847539" style="max-width: 100%;"></a></p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">4.1.1</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">sql:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="insert ignore into leader_lock (lock_id, owner_id, expire_ts) values (:lockId, :ownerId, UNIX_TIMESTAMP() + :ttlSeconds)"><pre class="notranslate"><code class="notranslate">insert ignore into leader_lock (lock_id, owner_id, expire_ts) values (:lockId, :ownerId, UNIX_TIMESTAMP() + :ttlSeconds) </code></pre></div> <p dir="auto">execute with Spring JdbcTemplate:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="NamedParameterJdbcTemplate jdbcTemplate = new NamedParameterJdbcTemplate(dataSource); jdbcTemplate.update(&quot;insert ignore into leader_lock (lock_id, owner_id, expire_ts) values (:lockId, :ownerId, UNIX_TIMESTAMP() + :ttlSeconds)&quot;, new MapSqlParameterSource(&quot;lockId&quot;, lockId) .addValue(&quot;ownerId&quot;, ownerId) .addValue(&quot;ttlSeconds&quot;, ttlSeconds));"><pre class="notranslate"><code class="notranslate">NamedParameterJdbcTemplate jdbcTemplate = new NamedParameterJdbcTemplate(dataSource); jdbcTemplate.update("insert ignore into leader_lock (lock_id, owner_id, expire_ts) values (:lockId, :ownerId, UNIX_TIMESTAMP() + :ttlSeconds)", new MapSqlParameterSource("lockId", lockId) .addValue("ownerId", ownerId) .addValue("ttlSeconds", ttlSeconds)); </code></pre></div> <p dir="auto">expect no exception.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">exception throws</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Caused by: java.sql.SQLException: No value specified for parameter 3 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861) at com.mysql.jdbc.PreparedStatement.checkAllParametersSet(PreparedStatement.java:2211) at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2191) at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2058) at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2013) at com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5104) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1998) at com.kuaishou.framework.datasource.profiler.connection.ManagedPrepareStatement.executeUpdateWithPerf(ManagedPrepareStatement.java:719) at com.kuaishou.framework.datasource.profiler.connection.ManagedPrepareStatement.executeUpdate(ManagedPrepareStatement.java:255) at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java) at org.apache.shardingsphere.shardingjdbc.executor.SQLExecuteCallbackFactory$1.executeSQL(SQLExecuteCallbackFactory.java:45) at org.apache.shardingsphere.shardingjdbc.executor.SQLExecuteCallbackFactory$1.executeSQL(SQLExecuteCallbackFactory.java:41) at org.apache.shardingsphere.sharding.execute.sql.execute.SQLExecuteCallback.execute0(SQLExecuteCallback.java:82) at org.apache.shardingsphere.sharding.execute.sql.execute.SQLExecuteCallback.execute(SQLExecuteCallback.java:58) at org.apache.shardingsphere.underlying.executor.engine.ExecutorEngine.syncExecute(ExecutorEngine.java:97) at org.apache.shardingsphere.underlying.executor.engine.ExecutorEngine.parallelExecute(ExecutorEngine.java:93) at org.apache.shardingsphere.underlying.executor.engine.ExecutorEngine.execute(ExecutorEngine.java:76) at org.apache.shardingsphere.sharding.execute.sql.execute.SQLExecuteTemplate.execute(SQLExecuteTemplate.java:68) at org.apache.shardingsphere.sharding.execute.sql.execute.SQLExecuteTemplate.execute(SQLExecuteTemplate.java:51) at org.apache.shardingsphere.shardingjdbc.executor.AbstractStatementExecutor.executeCallback(AbstractStatementExecutor.java:129) at org.apache.shardingsphere.shardingjdbc.executor.PreparedStatementExecutor.executeUpdate(PreparedStatementExecutor.java:123) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.executeUpdate(ShardingPreparedStatement.java:133) at org.springframework.jdbc.core.JdbcTemplate.lambda$update$0(JdbcTemplate.java:867) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:617) ... 20 common frames omitted"><pre class="notranslate"><code class="notranslate">Caused by: java.sql.SQLException: No value specified for parameter 3 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861) at com.mysql.jdbc.PreparedStatement.checkAllParametersSet(PreparedStatement.java:2211) at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2191) at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2058) at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2013) at com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5104) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1998) at com.kuaishou.framework.datasource.profiler.connection.ManagedPrepareStatement.executeUpdateWithPerf(ManagedPrepareStatement.java:719) at com.kuaishou.framework.datasource.profiler.connection.ManagedPrepareStatement.executeUpdate(ManagedPrepareStatement.java:255) at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java) at org.apache.shardingsphere.shardingjdbc.executor.SQLExecuteCallbackFactory$1.executeSQL(SQLExecuteCallbackFactory.java:45) at org.apache.shardingsphere.shardingjdbc.executor.SQLExecuteCallbackFactory$1.executeSQL(SQLExecuteCallbackFactory.java:41) at org.apache.shardingsphere.sharding.execute.sql.execute.SQLExecuteCallback.execute0(SQLExecuteCallback.java:82) at org.apache.shardingsphere.sharding.execute.sql.execute.SQLExecuteCallback.execute(SQLExecuteCallback.java:58) at org.apache.shardingsphere.underlying.executor.engine.ExecutorEngine.syncExecute(ExecutorEngine.java:97) at org.apache.shardingsphere.underlying.executor.engine.ExecutorEngine.parallelExecute(ExecutorEngine.java:93) at org.apache.shardingsphere.underlying.executor.engine.ExecutorEngine.execute(ExecutorEngine.java:76) at org.apache.shardingsphere.sharding.execute.sql.execute.SQLExecuteTemplate.execute(SQLExecuteTemplate.java:68) at org.apache.shardingsphere.sharding.execute.sql.execute.SQLExecuteTemplate.execute(SQLExecuteTemplate.java:51) at org.apache.shardingsphere.shardingjdbc.executor.AbstractStatementExecutor.executeCallback(AbstractStatementExecutor.java:129) at org.apache.shardingsphere.shardingjdbc.executor.PreparedStatementExecutor.executeUpdate(PreparedStatementExecutor.java:123) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.executeUpdate(ShardingPreparedStatement.java:133) at org.springframework.jdbc.core.JdbcTemplate.lambda$update$0(JdbcTemplate.java:867) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:617) ... 20 common frames omitted </code></pre></div> <h3 dir="auto">Reason analyze (If you can)</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.apache.shardingsphere.underlying.pluggble.prepare.BasePrepareEngine#executeRewrite"><pre class="notranslate"><code class="notranslate">org.apache.shardingsphere.underlying.pluggble.prepare.BasePrepareEngine#executeRewrite </code></pre></div> <p dir="auto">method parameters has 3 items, but return ExecutionUnit.sqlUnit.parameters has only 2 items. Must be something wrong with in this method.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.apache.shardingsphere.underlying.pluggble.prepare.BasePrepareEngine#rewrite(org.apache.shardingsphere.underlying.route.context.RouteContext, org.apache.shardingsphere.underlying.rewrite.context.SQLRewriteContext)"><pre class="notranslate"><code class="notranslate">org.apache.shardingsphere.underlying.pluggble.prepare.BasePrepareEngine#rewrite(org.apache.shardingsphere.underlying.route.context.RouteContext, org.apache.shardingsphere.underlying.rewrite.context.SQLRewriteContext) </code></pre></div> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
0
<p dir="auto">I have a dataframe that has some column names as integers (e.g., 1, 2, 3, 4, etc.) indicating a number of features used in a machine learning problem. However, as of seaborn version 0.11.0, a TypeError is raised because seaborn never checks for vectors/columns in <code class="notranslate">data</code> if <code class="notranslate">x</code> or <code class="notranslate">y</code> are integers.</p> <h2 dir="auto">Example</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import seaborn as sns import numpy as np import pandas as pd data = np.random.randint(5,30,size=(10,2)) df = pd.DataFrame(data, columns=['x', 1]) ax = sns.scatterplot(x='x', y=1, data=df)"><pre class="notranslate"><code class="notranslate">import seaborn as sns import numpy as np import pandas as pd data = np.random.randint(5,30,size=(10,2)) df = pd.DataFrame(data, columns=['x', 1]) ax = sns.scatterplot(x='x', y=1, data=df) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;&lt;ipython-input-91-7086dc4312d0&gt;&quot;, line 1, in &lt;module&gt; ax = sns.scatterplot(x='x', y=1, data=df) File &quot;C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\_decorators.py&quot;, line 46, in inner_f return f(**kwargs) File &quot;C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\relational.py&quot;, line 794, in scatterplot p = _ScatterPlotter( File &quot;C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\relational.py&quot;, line 580, in __init__ super().__init__(data=data, variables=variables) File &quot;C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\_core.py&quot;, line 604, in __init__ self.assign_variables(data, variables) File &quot;C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\_core.py&quot;, line 667, in assign_variables plot_data, variables = self._assign_variables_longform( File &quot;C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\_core.py&quot;, line 895, in _assign_variables_longform if val is not None and len(data) != len(val): TypeError: object of type 'int' has no len()"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "&lt;ipython-input-91-7086dc4312d0&gt;", line 1, in &lt;module&gt; ax = sns.scatterplot(x='x', y=1, data=df) File "C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\_decorators.py", line 46, in inner_f return f(**kwargs) File "C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\relational.py", line 794, in scatterplot p = _ScatterPlotter( File "C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\relational.py", line 580, in __init__ super().__init__(data=data, variables=variables) File "C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\_core.py", line 604, in __init__ self.assign_variables(data, variables) File "C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\_core.py", line 667, in assign_variables plot_data, variables = self._assign_variables_longform( File "C:\Users\nigo0024\Anaconda3\envs\sip_run_2\lib\site-packages\seaborn\_core.py", line 895, in _assign_variables_longform if val is not None and len(data) != len(val): TypeError: object of type 'int' has no len() </code></pre></div> <h2 dir="auto">Version info:</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sns.__version__ import matplotlib matplotlib.__version__"><pre class="notranslate"><code class="notranslate">sns.__version__ import matplotlib matplotlib.__version__ </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'0.11.0' '3.3.3'"><pre class="notranslate"><code class="notranslate">'0.11.0' '3.3.3' </code></pre></div>
<p dir="auto">Apologies if this is a naive request or I've missed something in the existing functionality, but I have a situation where I have data for two samples and I'd like to view a quantile-quantile plot to compare the distributions of the two samples. Both scipy and statsmodels have functions to make qq plots, but they both require comparison of data with a distribution, they don't support comparison of data with data.</p> <p dir="auto">I was wondering if it would make sense to add a "qq" kind to the jointplot() function, which would use the central plot component for the qq plot but still also plot marginal histograms.</p>
0
<p dir="auto">Right now createPalette and createMuiTheme accept a Partial, but actually they should accept a DeepPartial since they do a deepmerge instead of a shallow merge</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type DeepPartial&lt;T&gt; = { [ P in keyof T ]?: DeepPartial&lt;T[ P ]&gt;; };"><pre class="notranslate"><span class="pl-s1">type</span> <span class="pl-v">DeepPartial</span><span class="pl-c1">&lt;</span><span class="pl-v">T</span><span class="pl-c1">&gt;</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span> <span class="pl-v">P</span> <span class="pl-k">in</span> <span class="pl-s1">keyof</span> <span class="pl-v">T</span> <span class="pl-kos">]</span>?: <span class="pl-v">DeepPartial</span><span class="pl-c1">&lt;</span><span class="pl-v">T</span><span class="pl-kos">[</span> <span class="pl-v">P</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> <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">Using a palette like this should not give type errors:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="createPalette({ shades: { dark: { text: { primary: 'green', } } } });"><pre class="notranslate"><span class="pl-en">createPalette</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">shades</span>: <span class="pl-kos">{</span> <span class="pl-c1">dark</span>: <span class="pl-kos">{</span> <span class="pl-c1">text</span>: <span class="pl-kos">{</span> <span class="pl-c1">primary</span>: <span class="pl-s">'green'</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> <h2 dir="auto">Current Behavior</h2> <p dir="auto">It gives a compilation error, forcing you to cast it to any or to fill in the complete sub-types.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">See code above.</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>latest beta</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>Chrome 62</td> </tr> <tr> <td>TS</td> <td>2.6.2</td> </tr> </tbody> </table>
<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/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> <h2 dir="auto">Current Behavior</h2> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li></li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export const domRender = (Component) =&gt; { const div = document.createElement('div'); document.body.appendChild(div); function destory() { const unmountResult = ReactDOM.findDOMNode(div); if (unmountResult &amp;&amp; div.parentNode) { console.log(div); div.parentNode.removeChild(div); } } ReactDOM.render(&lt;Component destory={() =&gt; destory()} /&gt;, div); };"><pre class="notranslate"><code class="notranslate">export const domRender = (Component) =&gt; { const div = document.createElement('div'); document.body.appendChild(div); function destory() { const unmountResult = ReactDOM.findDOMNode(div); if (unmountResult &amp;&amp; div.parentNode) { console.log(div); div.parentNode.removeChild(div); } } ReactDOM.render(&lt;Component destory={() =&gt; destory()} /&gt;, div); }; </code></pre></div> <ol start="2" dir="auto"> <li></li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Test extends PureComponent { state = { open: true, } render() { const { destory } = this.props; const { open } = this.state; return ( &lt;div&gt; &lt;Dialog open={open} onExited={() =&gt; { if (destory) destory(); }} // transition={props =&gt; &lt;Slide direction=&quot;up&quot; {...props} /&gt;} keepMounted onClose={() =&gt; this.setState({ open: false, }); }} &gt; &lt;Login /&gt; &lt;/Dialog&gt; &lt;/div&gt; ); } } domRender(&lt;Test /&gt;)"><pre class="notranslate"><code class="notranslate">class Test extends PureComponent { state = { open: true, } render() { const { destory } = this.props; const { open } = this.state; return ( &lt;div&gt; &lt;Dialog open={open} onExited={() =&gt; { if (destory) destory(); }} // transition={props =&gt; &lt;Slide direction="up" {...props} /&gt;} keepMounted onClose={() =&gt; this.setState({ open: false, }); }} &gt; &lt;Login /&gt; &lt;/Dialog&gt; &lt;/div&gt; ); } } domRender(&lt;Test /&gt;) </code></pre></div> <ol start="3" dir="auto"> <li></li> </ol> <p dir="auto">the dialog can't close<br> 4.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12379461/34609847-4ea2a048-f259-11e7-8aad-9e8e264979ea.png"><img src="https://user-images.githubusercontent.com/12379461/34609847-4ea2a048-f259-11e7-8aad-9e8e264979ea.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.26</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>chrome 63.0.3239.84</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">I've been trying to find out the process of creating DataFrames in order to try to solve <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8521212" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2305" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2305/hovercard" href="https://github.com/pandas-dev/pandas/issues/2305">#2305</a> with minimal memory use. I've made some tests that put in a IPython notebook: <a href="http://nbviewer.ipython.org/gist/tinproject/7d0e0de9475b16910fcf" rel="nofollow">http://nbviewer.ipython.org/gist/tinproject/7d0e0de9475b16910fcf</a></p> <p dir="auto">Currently when reads from a generator pandas internally allocate the whole generator in memory within a list, using at least twice the memory needed. I suspect sometimes could be even more if there is a later type conversion needed.</p> <p dir="auto">Also, as it can be viewed in the notebook, the input data collection it's completely readed many times before data it's loaded in the final data structure.</p> <p dir="auto">To read from an iterator, without put the whole it in memory, it's needed to process the values that yield one by one, or at least in a one pass form.</p> <p dir="auto">One it could read data from a iterator in one pass, it could read from every iterable collection only needing the count of elements to read. It includes collections with implicit lenght: sequences(list, tuple, str), sets, mappings, etc. and collections with unknown length: generators, iterators, etc. which size must be explicitly given.</p> <p dir="auto">I think this could end in a great improve on performance and enhance the input data types accepted (In my tests I saw that the tuple collection it's not a valid type for DataFrame!)</p> <p dir="auto">Relates to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8521212" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2305" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2305/hovercard" href="https://github.com/pandas-dev/pandas/issues/2305">#2305</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8188284" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2193" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2193/hovercard" href="https://github.com/pandas-dev/pandas/issues/2193">#2193</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25370910" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/5898" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/5898/hovercard" href="https://github.com/pandas-dev/pandas/pull/5898">#5898</a></p> <p dir="auto">I want to help to solve this, but it's a bis task, and I'm lost when comes to the Blocks part. Is there anywhere documented what structure have and how Blocks works?</p>
<p dir="auto">Hi,</p> <p dir="auto"><code class="notranslate">Series.irow(i)</code> (and also <code class="notranslate">Series.iget(i)</code>), with <code class="notranslate">i</code> being an integer, returns more than one value on Series with non-unique indexes if the index at location <code class="notranslate">i</code> has duplicates. This is not the behavior I expected and it is also different from the behavior shown by <code class="notranslate">DataFrame.irow(i)</code>, since it only returns the row located at position <code class="notranslate">i</code> regardless of any existing index duplicates. Also the documentation for <code class="notranslate">Series.irow</code>/<code class="notranslate">Series.iget</code> specifies that an "int" parameter should return a "scalar" value, so I guess this might be a bug.</p> <p dir="auto">Here is some sample code I've run using pandas '0.8.2.dev-f5a74d4':</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [52]: s = Series([0, 1, 2], index=[0, 1, 0]) In [53]: s.irow(0) # here I was expecting 0 Out[53]: 0 0 0 2 In [54]: s.irow(1) Out[54]: 1 In [55]: s.irow(2) # here I was expecting 2 Out[55]: 0 0 0 2 "><pre class="notranslate"><code class="notranslate">In [52]: s = Series([0, 1, 2], index=[0, 1, 0]) In [53]: s.irow(0) # here I was expecting 0 Out[53]: 0 0 0 2 In [54]: s.irow(1) Out[54]: 1 In [55]: s.irow(2) # here I was expecting 2 Out[55]: 0 0 0 2 </code></pre></div> <p dir="auto">and its DataFrame counterpart:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [56]: df = DataFrame([[0], [1], [2]], index=[0, 1, 0]) In [57]: df.irow(0) Out[57]: 0 0 Name: 0 In [58]: df.irow(1) Out[58]: 0 1 Name: 1 In [59]: df.irow(2) Out[59]: 0 2 Name: 0"><pre class="notranslate"><code class="notranslate">In [56]: df = DataFrame([[0], [1], [2]], index=[0, 1, 0]) In [57]: df.irow(0) Out[57]: 0 0 Name: 0 In [58]: df.irow(1) Out[58]: 0 1 Name: 1 In [59]: df.irow(2) Out[59]: 0 2 Name: 0 </code></pre></div> <p dir="auto">Thanks and regards.</p>
0
<p dir="auto">I'm running Archlinx where the default system Python is 3.5. This cases the following code to fail:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible -i 127.0.0.1,localhost all -m ping localhost | FAILED! =&gt; { &quot;changed&quot;: false, &quot;failed&quot;: true, &quot;module_stderr&quot;: &quot;&quot;, &quot;module_stdout&quot;: &quot;Traceback (most recent call last):\r\n File \&quot;/home/miki/.ansible/tmp/ansible-tmp-1454335202.76-249950301753567/ping\&quot;, line 44, in &lt;module&gt;\r\n import exceptions\r\nImportError: No module named 'exceptions'\r\n&quot;, &quot;msg&quot;: &quot;MODULE FAILURE&quot;, &quot;parsed&quot;: false } 127.0.0.1 | FAILED! =&gt; { &quot;changed&quot;: false, &quot;failed&quot;: true, &quot;module_stderr&quot;: &quot;&quot;, &quot;module_stdout&quot;: &quot;Traceback (most recent call last):\r\n File \&quot;/home/miki/.ansible/tmp/ansible-tmp-1454335202.76-43713622814893/ping\&quot;, line 44, in &lt;module&gt;\r\n import exceptions\r\nImportError: No module named 'exceptions'\r\n&quot;, &quot;msg&quot;: &quot;MODULE FAILURE&quot;, &quot;parsed&quot;: false }"><pre class="notranslate"><code class="notranslate">$ ansible -i 127.0.0.1,localhost all -m ping localhost | FAILED! =&gt; { "changed": false, "failed": true, "module_stderr": "", "module_stdout": "Traceback (most recent call last):\r\n File \"/home/miki/.ansible/tmp/ansible-tmp-1454335202.76-249950301753567/ping\", line 44, in &lt;module&gt;\r\n import exceptions\r\nImportError: No module named 'exceptions'\r\n", "msg": "MODULE FAILURE", "parsed": false } 127.0.0.1 | FAILED! =&gt; { "changed": false, "failed": true, "module_stderr": "", "module_stdout": "Traceback (most recent call last):\r\n File \"/home/miki/.ansible/tmp/ansible-tmp-1454335202.76-43713622814893/ping\", line 44, in &lt;module&gt;\r\n import exceptions\r\nImportError: No module named 'exceptions'\r\n", "msg": "MODULE FAILURE", "parsed": false } </code></pre></div> <p dir="auto">Changing the #! line in ping.py to <code class="notranslate">#!/usr/bin/python2</code> fixes the problem.</p>
<p dir="auto">This matter is related to ansible's dependancy to python2 and the <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e9f0cc1d7db90b45f035e22ed0b1c3c9167674014934fc3ae9365b820575668a/687474703a2f2f646f63732e616e7369626c652e636f6d2f616e7369626c652f6661712e68746d6c23686f772d646f2d692d68616e646c652d707974686f6e2d70617468696e672d6e6f742d686176696e672d612d707974686f6e2d322d782d696e2d7573722d62696e2d707974686f6e2d6f6e2d612d72656d6f74652d6d616368696e65"><img src="https://camo.githubusercontent.com/e9f0cc1d7db90b45f035e22ed0b1c3c9167674014934fc3ae9365b820575668a/687474703a2f2f646f63732e616e7369626c652e636f6d2f616e7369626c652f6661712e68746d6c23686f772d646f2d692d68616e646c652d707974686f6e2d70617468696e672d6e6f742d686176696e672d612d707974686f6e2d322d782d696e2d7573722d62696e2d707974686f6e2d6f6e2d612d72656d6f74652d6d616368696e65" alt="FAQ" data-canonical-src="http://docs.ansible.com/ansible/faq.html#how-do-i-handle-python-pathing-not-having-a-python-2-x-in-usr-bin-python-on-a-remote-machine" style="max-width: 100%;"></a>.</p> <p dir="auto">How is requiring people to have python point to python2 in /usr/bin/ any better than just requiring python2 in the shebang? Especially, if it's already established that ansible DOES NOT work with python3 which is a preferred candidate for the symlink.</p> <p dir="auto">Explicitly discouraging users to fix shebangs is even worse (encouraging bad design imho).</p> <p dir="auto">At some point in the future ansible-scripts will be ported from python2<br> to python3 - that's also the right time to change the shebang from<br> python2 to python3 and the dependency for ansible in general.<br> Then, other maintainers will also have to change their shebangs and port their<br> modules to python3 in order to support the new version of ansible.</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">This bug report is created as instructed by the fail message below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;qat_residual.py&quot;, line 60, in &lt;module&gt; TRAINING_DEVICE, print_freq=500) File &quot;/home/lijun/repo/quant/utils.py&quot;, line 73, in train_one_epoch output = model(image) File &quot;/home/lijun/conda/lib/python3.7/site-packages/torch/nn/modules/module.py&quot;, line 550, in __call__ result = self.forward(*input, **kwargs) File &quot;/home/lijun/repo/quant/residual_model.py&quot;, line 312, in forward return self._forward_impl(x) File &quot;/home/lijun/repo/quant/residual_model.py&quot;, line 295, in _forward_impl x = self.conv1(x) File &quot;/home/lijun/conda/lib/python3.7/site-packages/torch/nn/modules/module.py&quot;, line 550, in __call__ result = self.forward(*input, **kwargs) File &quot;/home/lijun/conda/lib/python3.7/site-packages/torch/nn/qat/modules/conv.py&quot;, line 36, in forward self._conv_forward(input, self.weight_fake_quant(self.weight))) File &quot;/home/lijun/conda/lib/python3.7/site-packages/torch/nn/modules/module.py&quot;, line 550, in __call__ result = self.forward(*input, **kwargs) File &quot;/home/lijun/conda/lib/python3.7/site-packages/torch/quantization/fake_quantize.py&quot;, line 86, in forward self.ch_axis, self.quant_min, self.quant_max) RuntimeError: iter.device(arg).is_cuda() INTERNAL ASSERT FAILED at /opt/conda/conda-bld/pytorch_1587428398394/work/aten/src/ATen/native/cuda/Loops.cuh:56, please report a bug to PyTorch."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "qat_residual.py", line 60, in &lt;module&gt; TRAINING_DEVICE, print_freq=500) File "/home/lijun/repo/quant/utils.py", line 73, in train_one_epoch output = model(image) File "/home/lijun/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__ result = self.forward(*input, **kwargs) File "/home/lijun/repo/quant/residual_model.py", line 312, in forward return self._forward_impl(x) File "/home/lijun/repo/quant/residual_model.py", line 295, in _forward_impl x = self.conv1(x) File "/home/lijun/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__ result = self.forward(*input, **kwargs) File "/home/lijun/conda/lib/python3.7/site-packages/torch/nn/qat/modules/conv.py", line 36, in forward self._conv_forward(input, self.weight_fake_quant(self.weight))) File "/home/lijun/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__ result = self.forward(*input, **kwargs) File "/home/lijun/conda/lib/python3.7/site-packages/torch/quantization/fake_quantize.py", line 86, in forward self.ch_axis, self.quant_min, self.quant_max) RuntimeError: iter.device(arg).is_cuda() INTERNAL ASSERT FAILED at /opt/conda/conda-bld/pytorch_1587428398394/work/aten/src/ATen/native/cuda/Loops.cuh:56, please report a bug to PyTorch. </code></pre></div> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>A float-point number ResNet was trained</li> <li>The pre-trained ResNet was prepared for QAT</li> <li>When QAT ran on the first epoch, it raised the message above.</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">The model should be able to move from system memory to GPU memory.</p> <h2 dir="auto">Environment</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> (or fill out the checklist below manually).</p> <p dir="auto">You can get the script and run it with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py </code></pre></div> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0):</li> <li>OS (e.g., Linux):</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source):</li> <li>Build command you used (if compiling from source):</li> <li>Python version:</li> <li>CUDA/cuDNN version:</li> <li>GPU models and configuration:</li> <li>Any other relevant information:</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jerryzh168/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jerryzh168">@jerryzh168</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jianyuh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jianyuh">@jianyuh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dzhulgakov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dzhulgakov">@dzhulgakov</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raghuramank100/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raghuramank100">@raghuramank100</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jamesr66a/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jamesr66a">@jamesr66a</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">I'm following this tutorial : <a href="https://pytorch.org/tutorials/advanced/static_quantization_tutorial.html" rel="nofollow">https://pytorch.org/tutorials/advanced/static_quantization_tutorial.html</a><br> This tutorial uses a CPU, it works fine with a CPU, but to speed it up I want to move it to the GPU and I get an error. It works with Pytorch version 1.4 but not with Pytorch nightly (1.5.0.dev20200413).</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <p dir="auto">1.Follow the following tutorial:<br> <a href="https://pytorch.org/tutorials/advanced/static_quantization_tutorial.html" rel="nofollow">https://pytorch.org/tutorials/advanced/static_quantization_tutorial.html</a></p> <ol start="2" dir="auto"> <li>In the "5. Quantization-aware training" section</li> </ol> <p dir="auto">Instead of doing</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for nepoch in range(8): train_one_epoch(qat_model, criterion, optimizer, data_loader, torch.device('cpu'), num_train_batches)"><pre class="notranslate"><code class="notranslate">for nepoch in range(8): train_one_epoch(qat_model, criterion, optimizer, data_loader, torch.device('cpu'), num_train_batches) </code></pre></div> <p dir="auto">do :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="device = torch.device(&quot;cuda:0&quot;) for nepoch in range(8): device = torch.device(&quot;cuda:0&quot;) train_one_epoch(qat_model, criterion, optimizer, train_loader, torch.device(device), num_train_batches)"><pre class="notranslate"><code class="notranslate">device = torch.device("cuda:0") for nepoch in range(8): device = torch.device("cuda:0") train_one_epoch(qat_model, criterion, optimizer, train_loader, torch.device(device), num_train_batches) </code></pre></div> <p dir="auto">also changed in the section "2. Helper functions":</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def load_model(model_file): model = MobileNetV2() state_dict = torch.load(model_file) model.load_state_dict(state_dict) model.to(device) #device instead of 'cpu' return model"><pre class="notranslate"><code class="notranslate">def load_model(model_file): model = MobileNetV2() state_dict = torch.load(model_file) model.load_state_dict(state_dict) model.to(device) #device instead of 'cpu' return model </code></pre></div> <p dir="auto">3.Get the error</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="F:\Anaconda3\envs\pytorch-nightly\lib\site-packages\torch\quantization\fake_quantize.py in forward(self, X) 84 if self.qscheme == torch.per_channel_symmetric or self.qscheme == torch.per_channel_affine: 85 X = torch.fake_quantize_per_channel_affine(X, self.scale, self.zero_point, ---&gt; 86 self.ch_axis, self.quant_min, self.quant_max) 87 else: 88 X = torch.fake_quantize_per_tensor_affine(X, float(self.scale), RuntimeError: iter.device(arg).is_cuda() INTERNAL ASSERT FAILED at C:/cb/pytorch_1000000000000/work/aten/src\ATen/native/cuda/Loops.cuh:60, please report a bug to PyTorch. "><pre class="notranslate"><span class="pl-c1">F:\Anaconda3\envs\pytorch-nightly\lib\site-packages\torch\quantization\fake_quantize.py in forward(self, X)</span> <span class="pl-c1"> 84 if self.qscheme == torch.per_channel_symmetric or self.qscheme == torch.per_channel_affine:</span> <span class="pl-c1"> 85 X = torch.fake_quantize_per_channel_affine(X, self.scale, self.zero_point,</span> <span class="pl-c1">---&gt; 86 self.ch_axis, self.quant_min, self.quant_max)</span> <span class="pl-c1"> 87 else:</span> <span class="pl-c1"> 88 X = torch.fake_quantize_per_tensor_affine(X, float(self.scale),</span> <span class="pl-c1">RuntimeError: iter.device(arg).is_cuda() INTERNAL ASSERT FAILED at C:/cb/pytorch_1000000000000/work/aten/src\ATen/native/cuda/Loops.cuh:60, please report a bug to PyTorch. </span></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">No error, run smoothly. QAT is supposed to support CUDA.<br> Quote from the documentation<br> "Quantization-aware training (through FakeQuantize) supports both CPU and CUDA."</p> <p dir="auto">However, it works with PyTorch Version : 1.4.0.</p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version : 1.5.0.dev20200413 (pytorch nightly)</li> <li>OS :Windows 10</li> <li>How you installed PyTorch :conda (version 4.7.12)</li> <li>Build command you used (if compiling from source):<br> conda install pytorch torchvision cudatoolkit=10.1 -c pytorch-nightly -c defaults -c conda-forge</li> <li>Python version: 3.7.7</li> <li>CUDA/cuDNN version: 10.1</li> <li>GPU models and configuration: GPU: Nvidia Geforce RTX 2060 Super (8Go GDDR6)</li> </ul> <p dir="auto">Versions of relevant libraries:<br> [pip] numpy==1.18.1<br> [pip] torch==1.5.0.dev20200413<br> [pip] torchvision==0.7.0.dev20200415<br> [conda] blas 1.0 mkl<br> [conda] cudatoolkit 10.1.243 h74a9793_0<br> [conda] mkl 2020.0 166<br> [conda] mkl-service 2.3.0 py37hb782905_0<br> [conda] mkl_fft 1.0.15 py37h14836fe_0<br> [conda] mkl_random 1.1.0 py37h675688f_0<br> [conda] numpy 1.18.1 py37h93ca92e_0<br> [conda] numpy-base 1.18.1 py37hc3f5095_1<br> [conda] pytorch 1.5.0.dev20200413 py3.7_cuda101_cudnn7_0 pytorch-nightly<br> [conda] torchvision 0.7.0.dev20200415 py37_cu101 pytorch-nightly</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jerryzh168/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jerryzh168">@jerryzh168</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jianyuh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jianyuh">@jianyuh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dzhulgakov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dzhulgakov">@dzhulgakov</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raghuramank100/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raghuramank100">@raghuramank100</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jamesr66a/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jamesr66a">@jamesr66a</a></p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="The resource 'projects/kubernetes-jenkins-pull/zones/us-central1-f/instances/tmp-node-e2e-7b8dd770-e2e-node-ubuntu-trusty-docker8-image'"><pre class="notranslate"><code class="notranslate">The resource 'projects/kubernetes-jenkins-pull/zones/us-central1-f/instances/tmp-node-e2e-7b8dd770-e2e-node-ubuntu-trusty-docker8-image' </code></pre></div> <p dir="auto">Logs: <a href="https://00e9e64bac531cb5cad75310c608414ef335529b22eebfe480-apidata.googleusercontent.com/download/storage/v1/b/kubernetes-jenkins/o/pr-logs%2Fpull%2F25374%2Fnode-pull-build-e2e-test%2F5146%2Fbuild-log.txt?qk=AD5uMEvI2Cm9eUqjLo34zreXYXJjVr09EnnPBIU2fWkgH1PegbVBe_Dos97WIggPEqpexQMaaIUn3X2BbDrNCPg78RTANb1VsFsvB3DecSJDHjGp7Z6S5qjiPkCXL7BRCeLWFbJTaPfbHyOj-_jt3lipVBjOwWBk58pOw56IhUR7v2nUr2UzriwxKqBlglsVanlOEnHxTaOnQdywB5kb0zXeRo-2Ax4adAnvFv6WSxDxMUN6sCvbtcSW2Yc9Fr1ZBqojbgXCVFMtvFZTvcHWAvVl3UrcgaC1Yu9gQrAfIDjeo8HNhLHfmri3Z6f_XQIJ4DW1ZJLLyqQk76QOAriE8C7q6rPB8dpTW22Gk0VJmtVT8WHMMVEnIJi5BPpKHLrpcK3VVHIr-8DIG0lq6gvU1f68hvx28PMKhbQM6S_KwkyS3SnmFQdJmA2xi81uaxuxoQ7rDQQ2W0l-PVAxQqE8trD6yXBeKZIvX6ZI_gfruLcR1dA09txuP3T1lwDF-hJVjFOONfhsvLXusc_HaWNl4qyEFxSAbG7X3cf6Ifi2frz7yUOdg6EX1MSnOnKNn0fe0Uhstaz3cDU6J8SPmqlxPHXY-yttZiNd9ZMM6kj668oziMAxPhxtd5JjKXWfWdgvKIszjUNrZJVn1amPfW4IQYLNqR8Gc75FRUvEm3-decTNE9M24cRLBn_48uIA1C-BOgDjGh2bP03-JfC22NGhehyZ1Sng7AdQq-QlfxVnqvSFq3T4LX9Lyn05WEjZYV60uK-WVqF5k9Zv6HzOaM6jxGbZN81R6S22qO4qJXtsp02xXpIunz2GJRw3zkuS2s_zH9ijHC-qPbmrgKxKmi6ll0p6MHyW3FKQpw" rel="nofollow">https://00e9e64bac531cb5cad75310c608414ef335529b22eebfe480-apidata.googleusercontent.com/download/storage/v1/b/kubernetes-jenkins/o/pr-logs%2Fpull%2F25374%2Fnode-pull-build-e2e-test%2F5146%2Fbuild-log.txt?qk=AD5uMEvI2Cm9eUqjLo34zreXYXJjVr09EnnPBIU2fWkgH1PegbVBe_Dos97WIggPEqpexQMaaIUn3X2BbDrNCPg78RTANb1VsFsvB3DecSJDHjGp7Z6S5qjiPkCXL7BRCeLWFbJTaPfbHyOj-_jt3lipVBjOwWBk58pOw56IhUR7v2nUr2UzriwxKqBlglsVanlOEnHxTaOnQdywB5kb0zXeRo-2Ax4adAnvFv6WSxDxMUN6sCvbtcSW2Yc9Fr1ZBqojbgXCVFMtvFZTvcHWAvVl3UrcgaC1Yu9gQrAfIDjeo8HNhLHfmri3Z6f_XQIJ4DW1ZJLLyqQk76QOAriE8C7q6rPB8dpTW22Gk0VJmtVT8WHMMVEnIJi5BPpKHLrpcK3VVHIr-8DIG0lq6gvU1f68hvx28PMKhbQM6S_KwkyS3SnmFQdJmA2xi81uaxuxoQ7rDQQ2W0l-PVAxQqE8trD6yXBeKZIvX6ZI_gfruLcR1dA09txuP3T1lwDF-hJVjFOONfhsvLXusc_HaWNl4qyEFxSAbG7X3cf6Ifi2frz7yUOdg6EX1MSnOnKNn0fe0Uhstaz3cDU6J8SPmqlxPHXY-yttZiNd9ZMM6kj668oziMAxPhxtd5JjKXWfWdgvKIszjUNrZJVn1amPfW4IQYLNqR8Gc75FRUvEm3-decTNE9M24cRLBn_48uIA1C-BOgDjGh2bP03-JfC22NGhehyZ1Sng7AdQq-QlfxVnqvSFq3T4LX9Lyn05WEjZYV60uK-WVqF5k9Zv6HzOaM6jxGbZN81R6S22qO4qJXtsp02xXpIunz2GJRw3zkuS2s_zH9ijHC-qPbmrgKxKmi6ll0p6MHyW3FKQpw</a></p>
<p dir="auto"><a href="https://00e9e64bacdc179f68b2acf0d56ea51eebab0458687ca75cb4-apidata.googleusercontent.com/download/storage/v1/b/kubernetes-jenkins/o/pr-logs%2Fpull%2F24452%2Fnode-pull-build-e2e-test%2F2101%2Fbuild-log.txt?qk=AD5uMEsWKO99oTjyywaIqC256Mpr1TVKBp0Ywpw6et4lB7p650YNlzbGmVDZ5qx0Y-V_6_Ec698mlBHxrCIAZQ1ezBSSyxiYzIIHUdZ3UIfEIQv6nmodI9v9J1VeR2s1ABMmixDkLiFvJnsV9MV_h7jZX1CkaQdqwMH4c_8UZDP8Z6mdJZOqIJECmMK5Gj44rUZMtR-Ax0qV_vPDvSm907ha73sa6Yn-gLEvbers0b07YQUXwPmLCMzFDwutBkAo9H_7lopmzg82pX7oN9bXRhB08c2I9KlhXDKwYRYA7vabYr23iiX4BopiLRdMslDERRY1IcQlJaTSmkn5y8JfzjXDCkFoLYOXQBHFY_XLlZ4QszrCREcjcBprX2jdOZ5BF7yQpcAjEZRJHIiUqaCKt3IIcntokpaTgl9ASJ5mr-bhfD4Rv4CE4amxpxxM0SXoaxzeRMm1R_EaHBiiepnVMUJS2m9Kbl_8yU4bW6T-rGIu_pYcF4asp6-CwJ4pIaWW2j0VXrYxC4UL8e_72kEKiXohHaTE0fFCOHbbSc6B2u3Kiu_rKLxvWjXZlRRzHlSfM3jNf3UvN3PVA_s9qTc46rpmoagiWhq4qqW0pt3rMWNPWWtHHh-8g9X8aJ7QaSJtnbmKHMYsN6L-i4zTqCIP6KB7adkiHHkkbowP9ITr-sU6DJvy68D74wajmOy1fZ7snDdpuR2QsXI0da94UHAojHh-4xkppBEtC-9eyyrbrAv7-ADHYi50LoxLTXpoPatsMFlfePHmtUVoCNN0d-904ORmKMrF3TG2zcZDjiBB_FL7Xwe1dJj2BaA5G4mi4vL2HDUNPv8LB32oeoHvLw2-GF4x62qO_IkK9Q" rel="nofollow">Build log</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I0419 09:06:53.327003 21861 run_e2e.go:243] Error deleting instance tmp-node-e2e-d5af7478-e2e-node-ubuntu-trusty-docker9-image"><pre class="notranslate"><code class="notranslate">I0419 09:06:53.327003 21861 run_e2e.go:243] Error deleting instance tmp-node-e2e-d5af7478-e2e-node-ubuntu-trusty-docker9-image </code></pre></div> <p dir="auto">Was immediately followed by</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Failure Finished Host Test Suite Unable to create gce instance with running docker daemon for image e2e-node-ubuntu-trusty-docker9-image. googleapi: got HTTP response code 502 with body: &lt;!DOCTYPE html&gt; &lt;html lang=en&gt; &lt;meta charset=utf-8&gt; &lt;meta name=viewport content=&quot;initial-scale=1, minimum-scale=1, width=device-width&quot;&gt; &lt;title&gt;Error 502 (Server Error)!!1&lt;/title&gt; &lt;style&gt; *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* &gt; body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px} &lt;/style&gt; &lt;a href=//www.google.com/&gt;&lt;span id=logo aria-label=Google&gt;&lt;/span&gt;&lt;/a&gt; &lt;p&gt;&lt;b&gt;502.&lt;/b&gt; &lt;ins&gt;That’s an error.&lt;/ins&gt; &lt;p&gt;The server encountered a temporary error and could not complete your request.&lt;p&gt;Please try again in 30 seconds. &lt;ins&gt;That’s all we know.&lt;/ins&gt;"><pre class="notranslate"><code class="notranslate">Failure Finished Host Test Suite Unable to create gce instance with running docker daemon for image e2e-node-ubuntu-trusty-docker9-image. googleapi: got HTTP response code 502 with body: &lt;!DOCTYPE html&gt; &lt;html lang=en&gt; &lt;meta charset=utf-8&gt; &lt;meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width"&gt; &lt;title&gt;Error 502 (Server Error)!!1&lt;/title&gt; &lt;style&gt; *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* &gt; body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px} &lt;/style&gt; &lt;a href=//www.google.com/&gt;&lt;span id=logo aria-label=Google&gt;&lt;/span&gt;&lt;/a&gt; &lt;p&gt;&lt;b&gt;502.&lt;/b&gt; &lt;ins&gt;That’s an error.&lt;/ins&gt; &lt;p&gt;The server encountered a temporary error and could not complete your request.&lt;p&gt;Please try again in 30 seconds. &lt;ins&gt;That’s all we know.&lt;/ins&gt; </code></pre></div>
1
<p dir="auto">Here is a reduced test case: <a href="https://github.com/denoland/deno/files/9333788/workercoverage.zip">workercoverage.zip</a><br> Run <code class="notranslate">./runTest.sh</code> and observe the result in <code class="notranslate">html/index.html</code> folder.<br> You need to have genhtml installed, but otherwise you can also check the result of <code class="notranslate">lcov.info</code> to see that it only contains coverage of the <code class="notranslate">startWorker.js</code> file.</p>
<p dir="auto">Currently "deno info <a href="https://deno.land/std/http/file_server.ts" rel="nofollow">https://deno.land/std/http/file_server.ts</a>" will display a dependency graph of the specified module. It would be nice to be able to access this information in a programmatic way.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let depTree = await Deno.deps(&quot;https://deno.land/std/http/file_server.ts&quot;)"><pre class="notranslate"><code class="notranslate">let depTree = await Deno.deps("https://deno.land/std/http/file_server.ts") </code></pre></div> <p dir="auto">Where depTree would be some JSON encodable object similar to the current output.</p> <p dir="auto">The first step to exposing this would be pure rust functionality of turning a <code class="notranslate">Deps</code> structure into a JSON string: </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/denoland/deno/blob/960ee5257a7b38c6b3b59a3dca670c7c1771996f/cli/modules.rs#L188">deno/cli/modules.rs</a> </p> <p class="mb-0 color-fg-muted"> Line 188 in <a data-pjax="true" class="commit-tease-sha" href="/denoland/deno/commit/960ee5257a7b38c6b3b59a3dca670c7c1771996f">960ee52</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="L188" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="188"></td> <td id="LC188" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">Deps</span> <span class="pl-kos">{</span> </td> </tr> </tbody></table> </div> </div> <p></p>
0
<p dir="auto">Dan Abramov mentioned that Devtools v4 will be making <code class="notranslate">react-hot-loader</code> obsolete: <a href="https://twitter.com/dan_abramov/status/1144715740983046144?s=20" rel="nofollow">https://twitter.com/dan_abramov/status/1144715740983046144?s=20</a></p> <blockquote> <p dir="auto"><strong>Me:</strong><br> I have this hook:<br> <code class="notranslate">require("react-reconciler")(hostConfig).injectIntoDevTools(opts);</code><br> But HMR has always worked completely without it. Is this now a new requirement?</p> </blockquote> <blockquote> <p dir="auto"><strong>Dan:</strong><br> Yes, that's what the new mechanism uses. The new mechanism doesn't need "react-hot-loader" so by the time you update, you'd want to remove that package. (It's pretty invasive)</p> </blockquote> <p dir="auto">I can't see any mention of HMR in the Devtools documentation, however; now that <code class="notranslate">react-hot-loader</code> has become obsolete (and with it, the <code class="notranslate">require("react-hot-loader/root").hot</code> method), how should we set up apps for HMR in:</p> <ul dir="auto"> <li>React DOM apps</li> <li>React Native apps</li> <li>React custom renderer apps</li> </ul> <p dir="auto">I'd be particularly interested in a migration guide specifically for anyone who's already set up HMR via <code class="notranslate">react-hot-loader</code>.</p> <p dir="auto">Also, for HMR, does it matter whether we're using the standalone Devtools or the browser-extension Devtools?</p>
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Was profiling component performance.</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.2.0-a8b8ffb89</p> <p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:156567<br> at Map.forEach ()<br> at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:156513)<br> at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157036)<br> at gl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314363)<br> at fi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59263)<br> at lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:103717)<br> at kc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89467)<br> at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89392)<br> at pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:86341)</p> <p dir="auto">Component stack: in gl<br> in div<br> in div<br> in div<br> in _o<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in zi<br> in Ge<br> in un<br> in ba<br> in Rc</p>
0
<p dir="auto">At now Electron application store cache files near to config files in folders <code class="notranslate">~/.config/APP/Cache</code> and <code class="notranslate">~/.config/APP/GPUCache</code>, so config folder contains many useless files with large size (more than 200 mb).</p> <p dir="auto">Linux systems use separate <code class="notranslate">~/.cache</code> folder for store cache files, so Google Chrome store configs in <code class="notranslate">~/.config/google-chrome</code> but all cache files in <code class="notranslate">~/.cache/google-chrome</code>.</p> <p dir="auto">We can find <a href="https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html" rel="nofollow">right location of cache folder</a> via <code class="notranslate">$XDG_CACHE_HOME</code> environment variable.</p> <p dir="auto">Please move all Electron cache files from <code class="notranslate">~/.config/APP</code> to <code class="notranslate">~/$XDG_CACHE_HOME/APP</code> folder, like other apps do.</p>
<ul dir="auto"> <li>Electron version: 1.6</li> <li>Operating system: 10.11</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/184170/22736528/35f96038-ee07-11e6-8a72-eecd29f114db.png"><img src="https://cloud.githubusercontent.com/assets/184170/22736528/35f96038-ee07-11e6-8a72-eecd29f114db.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Actual behavior</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/184170/22736530/3b42f734-ee07-11e6-9794-fc381f07e801.png"><img src="https://cloud.githubusercontent.com/assets/184170/22736530/3b42f734-ee07-11e6-9794-fc381f07e801.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">This is very simple react component run from 'pages/index.js' (sorry, but I don't know why the code is not formatted properly in this example).</p> <p dir="auto">If I change input value to, say, 'click Me' then the page is HMR'ed and changes are immediately reflected in the browser. However, if I change <code class="notranslate">console.log</code> in the <code class="notranslate">handler()</code> to, say, 'some other message' then changes are not reflected in the browser and I have to do a hard refresh to pick up the changes. I would think that this change should be picked up but I could be wrong and it's normal.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default class Test extends React.Component { handler = () =&gt; { console.log('some message')} render () { return ( &lt;input type=&quot;button&quot; value=&quot;click&quot; onClick={this.handler} /&gt;) } }"><pre class="notranslate"><code class="notranslate">export default class Test extends React.Component { handler = () =&gt; { console.log('some message')} render () { return ( &lt;input type="button" value="click" onClick={this.handler} /&gt;) } } </code></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">If I change <code class="notranslate">console.log('message')</code> to <code class="notranslate">console.log('some message')</code> and save the file and click the button then I would expect this changes to be picked up by HMR and see 'some message' in the browser's console output</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I don't see these changes and I have to do a hard refresh in order to see them in the browser.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Just run the sample code provided and change variables as described.</li> <li></li> <li></li> <li></li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">It's not affecting me in any meaningful way. I can do a hard refresh if that's by design.</p> <h2 dir="auto">Your Environment</h2> <ul dir="auto"> <li>Next.js version: 3.0.1-beta.8</li> <li>Environment name and version (e.g. Chrome 39, Node.js 5.4): Node 8.x, NPM 5</li> <li>Operating System (Linux, maxOS, Windows): OSX Sierra</li> </ul>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?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">I want to expect styles from my modules to be compiled into the same stylesheet as my global styles. Please see demo setup below to understand where styles are being pulled from.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="├── pages │ ├── index.js ├── components │ ├── Button │ │ ├── index.js │ │ ├── index.sass ├── styles │ ├── index.sass (Global stylesheet with @imports)"><pre class="notranslate"><code class="notranslate">├── pages │ ├── index.js ├── components │ ├── Button │ │ ├── index.js │ │ ├── index.sass ├── styles │ ├── index.sass (Global stylesheet with @imports) </code></pre></div> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Can't get both modules and global styles to work together in parallel. Only one of them can be used while the other cannot. Please see my comments in <a href="https://github.com/numieco/tortuga/tree/demo">this demo repo</a> in the files, <code class="notranslate">_document.js</code> and <code class="notranslate">styles/index.sass</code></p> <h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Clone <a href="https://github.com/numieco/tortuga/tree/demo">this repo</a></li> <li><code class="notranslate">yarn &amp;&amp; yarn dev</code></li> <li>View comments in <code class="notranslate">_document.js</code> and <code class="notranslate">styles/index.sass</code> to turn on and off behaviors.</li> <li>If you inspect the styles you'll see that the global styles are only being applied.</li> <li>Comment out line 5 in <code class="notranslate">_document.js</code>, save, and you'll notice that module styles will be applied but not the global styles.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">As stated in the above, I want the ability to use SASS modules within my <code class="notranslate">components</code> folder AND global styles in my <code class="notranslate">styles</code> folder together. As of right now I can either have styles from modules and NOT from my global stylesheet OR have styles from global stylesheet and not my modules.</p> <p dir="auto">The only work around I've found is including the path of a component's style inside my <code class="notranslate">styles/index.sass</code> file, like so:</p> <p dir="auto"><code class="notranslate">@import '../components/Button/index'</code></p> <p dir="auto">The only issue with this is that the global stylesheet is imported into the <code class="notranslate">_document.js</code> and therefore reloads the page on save for those styles intstead of injecting those changes. That's not the biggest deal in the world, but not ideal.</p> <p dir="auto">I'm not sure if the issue is due to the way modules and <code class="notranslate">_document.js</code> work together, or if there needs to be a specific way to allow this within the <code class="notranslate">next.config.js</code> setup.</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>6.0.0-canary.4</td> </tr> </tbody> </table> <p dir="auto">Issue is persistant for stable releases too.</p>
0
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>yes</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.2.0</td> </tr> </tbody> </table> <p dir="auto">Hello,</p> <p dir="auto">The <code class="notranslate">CurrencyType</code> isn't working the same way like in symfony 3.1.</p> <p dir="auto">In 3.1 <code class="notranslate">CurrencyType</code> choises weren't lazy loaded but now it is. There is a problem:</p> <p dir="auto"><a href="https://github.com/symfony/symfony/blob/3.1/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoiceToValueTransformer.php#L46"><code class="notranslate">Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer</code></a>:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public function reverseTransform($value) { if (null !== $value &amp;&amp; !is_string($value)) { throw new TransformationFailedException('Expected a string or null.'); } $choices = $this-&gt;choiceList-&gt;getChoicesForValues(array((string) $value)); if (1 !== count($choices)) { if (null === $value || '' === $value) { return; } throw new TransformationFailedException(sprintf('The choice &quot;%s&quot; does not exist or is not unique', $value)); } return current($choices); }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">reverseTransform</span>(<span class="pl-s1"><span class="pl-c1">$</span>value</span>) { <span class="pl-k">if</span> (<span class="pl-c1">null</span> !== <span class="pl-s1"><span class="pl-c1">$</span>value</span> &amp;&amp; !is_string(<span class="pl-s1"><span class="pl-c1">$</span>value</span>)) { <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">TransformationFailedException</span>(<span class="pl-s">'Expected a string or null.'</span>); } <span class="pl-s1"><span class="pl-c1">$</span>choices</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">choiceList</span>-&gt;<span class="pl-en">getChoicesForValues</span>(<span class="pl-en">array</span>((<span class="pl-smi">string</span>) <span class="pl-s1"><span class="pl-c1">$</span>value</span>)); <span class="pl-k">if</span> (<span class="pl-c1">1</span> !== count(<span class="pl-s1"><span class="pl-c1">$</span>choices</span>)) { <span class="pl-k">if</span> (<span class="pl-c1">null</span> === <span class="pl-s1"><span class="pl-c1">$</span>value</span> || <span class="pl-s">''</span> === <span class="pl-s1"><span class="pl-c1">$</span>value</span>) { <span class="pl-k">return</span>; } <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">TransformationFailedException</span>(sprintf(<span class="pl-s">'The choice "%s" does not exist or is not unique'</span>, <span class="pl-s1"><span class="pl-c1">$</span>value</span>)); } <span class="pl-k">return</span> current(<span class="pl-s1"><span class="pl-c1">$</span>choices</span>); }</pre></div> <p dir="auto"><code class="notranslate">$choices = $this-&gt;choiceList-&gt;getChoicesForValues(array((string) $value));</code></p> <p dir="auto">In <code class="notranslate">3.1</code> the value of <code class="notranslate">$choices</code> equals to <code class="notranslate">[]</code> is <code class="notranslate">$value</code> isn't present in the list of choices. For example if we use <code class="notranslate">CurrencyType</code> and we'll pass 'blablabla' as <code class="notranslate">$value</code>, it will return <code class="notranslate">[]</code>.</p> <p dir="auto">In <code class="notranslate">3.1</code> <code class="notranslate">$this-&gt;choiceList</code> is <a href="https://github.com/symfony/symfony/blob/3.1/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php#L138"><code class="notranslate">Symfony\Component\Form\ChoiceList\ArrayChoiceList</code></a>:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public function getChoicesForValues(array $values) { $choices = array(); foreach ($values as $i =&gt; $givenValue) { if (array_key_exists($givenValue, $this-&gt;choices)) { $choices[$i] = $this-&gt;choices[$givenValue]; } } return $choices; }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">getChoicesForValues</span>(<span class="pl-smi">array</span> <span class="pl-s1"><span class="pl-c1">$</span>values</span>) { <span class="pl-s1"><span class="pl-c1">$</span>choices</span> = <span class="pl-en">array</span>(); <span class="pl-k">foreach</span> (<span class="pl-s1"><span class="pl-c1">$</span>values</span> <span class="pl-k">as</span> <span class="pl-s1"><span class="pl-c1">$</span>i</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>givenValue</span>) { <span class="pl-k">if</span> (array_key_exists(<span class="pl-s1"><span class="pl-c1">$</span>givenValue</span>, <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">choices</span>)) { <span class="pl-s1"><span class="pl-c1">$</span>choices</span>[<span class="pl-s1"><span class="pl-c1">$</span>i</span>] = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">choices</span>[<span class="pl-s1"><span class="pl-c1">$</span>givenValue</span>]; } } <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span>choices</span>; }</pre></div> <p dir="auto"><code class="notranslate">if (array_key_exists($givenValue, $this-&gt;choices)) {</code> checks whether the 'blablabla' is present in the list of currencies.</p> <p dir="auto">So the behaviour in <code class="notranslate">3.1</code> is fine. But.. Let's take a look on <code class="notranslate">3.2.0</code>:</p> <p dir="auto"><code class="notranslate">$this-&gt;choiceList</code> in <a href="https://github.com/symfony/symfony/blob/3.2/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoiceToValueTransformer.php#L46"><code class="notranslate">Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer</code></a> is <a href="https://github.com/symfony/symfony/blob/3.2/src/Symfony/Component/Form/ChoiceList/LazyChoiceList.php"><code class="notranslate">Symfony\Component\Form\ChoiceList\LazyChoiceList</code></a> that calls the following function in <a href="https://github.com/symfony/symfony/blob/3.2/src/Symfony/Component/Form/Extension/Core/Type/CurrencyType.php#L78-L92"><code class="notranslate">Symfony\Component\Form\Extension\Core\Type\CurrencyType</code></a> in this case:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public function loadChoicesForValues(array $values, $value = null) { // Optimize if (empty($values)) { return array(); } // If no callable is set, values are the same as choices if (null === $value) { return $values; } return $this-&gt;loadChoiceList($value)-&gt;getChoicesForValues($values); }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">loadChoicesForValues</span>(<span class="pl-smi">array</span> <span class="pl-s1"><span class="pl-c1">$</span>values</span>, <span class="pl-s1"><span class="pl-c1">$</span>value</span> = <span class="pl-c1">null</span>) { <span class="pl-c">// Optimize</span> <span class="pl-k">if</span> (empty(<span class="pl-s1"><span class="pl-c1">$</span>values</span>)) { <span class="pl-k">return</span> <span class="pl-en">array</span>(); } <span class="pl-c">// If no callable is set, values are the same as choices</span> <span class="pl-k">if</span> (<span class="pl-c1">null</span> === <span class="pl-s1"><span class="pl-c1">$</span>value</span>) { <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span>values</span>; } <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">loadChoiceList</span>(<span class="pl-s1"><span class="pl-c1">$</span>value</span>)-&gt;<span class="pl-en">getChoicesForValues</span>(<span class="pl-s1"><span class="pl-c1">$</span>values</span>); }</pre></div> <p dir="auto">But <code class="notranslate">if (null === $value) {</code> happens because <a href="https://github.com/symfony/symfony/blob/3.2/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoiceToValueTransformer.php#L46"><code class="notranslate">Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer</code></a> did his best to prevent this (there is no a second parameter):</p> <p dir="auto">remember <code class="notranslate">$choices = $this-&gt;choiceList-&gt;getChoicesForValues(array((string) $value));</code>.</p> <p dir="auto">That's all. Is it a normal behaviour? How to deal with it with minimal loses?</p> <p dir="auto">Thank you.</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>2.8.11</td> </tr> </tbody> </table> <p dir="auto">Hello.</p> <p dir="auto">Is it ok, when incorrect data submitted to ChoiceType and <code class="notranslate">isValid</code> returns <code class="notranslate">true</code>?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $form = $this-&gt;factory-&gt;create('Symfony\Component\Form\Extension\Core\Type\ChoiceType', null, array( 'expanded' =&gt; true 'choices' =&gt; [ 'a' =&gt; 'a', 'b' =&gt; 'b' ], )); $form-&gt;submit('c'); $form-&gt;isValid(); // returns true $form-&gt;isSynchronized(); // returns false $form-&gt;getData(); // returns null"><pre class="notranslate"><code class="notranslate"> $form = $this-&gt;factory-&gt;create('Symfony\Component\Form\Extension\Core\Type\ChoiceType', null, array( 'expanded' =&gt; true 'choices' =&gt; [ 'a' =&gt; 'a', 'b' =&gt; 'b' ], )); $form-&gt;submit('c'); $form-&gt;isValid(); // returns true $form-&gt;isSynchronized(); // returns false $form-&gt;getData(); // returns null </code></pre></div> <p dir="auto">It actually strange that this submission is valid.<br> It happens because ChoiceType throws <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php#L136-L139">TransformationFailedException</a> on PRE_SUBMIT event.</p> <p dir="auto">I think in this case <code class="notranslate">isValid</code> should return <code class="notranslate">false</code>.<br> What do you think?</p>
1
<p dir="auto">given the following json code on editor (the pipeline <kbd>|</kbd> represents cursors position)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="collections : {&quot;profile&quot;: 'data.json', &quot;users&quot;:[ | ]}"><pre class="notranslate"><code class="notranslate">collections : {"profile": 'data.json', "users":[ | ]} </code></pre></div> <p dir="auto">if I press <kbd>ctrl</kbd> + <kbd>delete</kbd> I would expect the code to look like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="collections : {&quot;profile&quot;: 'data.json', &quot;users&quot;:[ | ]}"><pre class="notranslate"><code class="notranslate">collections : {"profile": 'data.json', "users":[ | ]} </code></pre></div> <p dir="auto"><em>NOT</em> like this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="collections : {&quot;profile&quot;: 'data.json', &quot;users&quot;:[ |"><pre class="notranslate"><code class="notranslate">collections : {"profile": 'data.json', "users":[ | </code></pre></div> <p dir="auto"><em>Conclusion</em></p> <p dir="auto">the shortcut should only delete the white space not any other characters IMO, I may be wrong though and this may be down to preference, but I know most editors have this behaviour.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/440132/4870418/ed6416ca-6167-11e4-99e6-4166a63ff9c4.gif"><img src="https://cloud.githubusercontent.com/assets/440132/4870418/ed6416ca-6167-11e4-99e6-4166a63ff9c4.gif" alt="rev-del-bug" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">Atom 0.141.0, Mac OS 10.9.5. When using <code class="notranslate">alt-delete</code> to delete to end of word, I feel like the natural thing should be to erase all the whitespace in one stop, without removing any visible characters. As you can see above, if I wanted to eliminate a bunch of whitespace by hitting <code class="notranslate">alt-delete</code>, it eats up some of the code in the process.</p>
1
<p dir="auto">Hello.</p> <p dir="auto">I can't open an xml file, this size 1,9 Mo.</p> <p dir="auto">"Editor is not responding"</p>
<p dir="auto">So, I use my text editor for all kinds of things (writing code, reading readmes, editing dotfiles, etc). One of the things I do most often during any given day is open up large log files to troubleshoot Enterprise problems. These files can sometimes get as large as 500-800MB.</p> <p dir="auto">I just tried viewing a 350MB log file and Atom locked up immediately -- the file selector didn't change and the entire window went completely white 4 seconds after I tried viewing the file. I could still close the top level window, but we should still have better handling for this kind of thing.</p> <p dir="auto">Sublime Text 2 took about 55 seconds to open the file, but gave a nice progress indicator while it was loading:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/402a77c9e676b55fa95c38e26e4345d76be5e51f1cb9b2e2790d94de0ce90c00/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3234342f3139303337392f63306162633237652d376565352d313165322d386563342d3432303563646565306164302e706e67"><img src="https://camo.githubusercontent.com/402a77c9e676b55fa95c38e26e4345d76be5e51f1cb9b2e2790d94de0ce90c00/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3234342f3139303337392f63306162633237652d376565352d313165322d386563342d3432303563646565306164302e706e67" alt="Screen Shot 2013-02-24 at 4 50 56 PM" data-canonical-src="https://f.cloud.github.com/assets/244/190379/c0abc27e-7ee5-11e2-8ec4-4205cdee0ad0.png" style="max-width: 100%;"></a></p> <p dir="auto">Once it loaded it was as responsive as any other file I load (scrolled fast, normal text highlight performance, etc). It would be nice if we set this as a baseline for expected behavior (progress bar + responsive after loading).</p>
1
<h4 dir="auto">Challenge Name</h4> <p dir="auto">Inventory Update</p> <h4 dir="auto">Issue Description</h4> <p dir="auto">I think i've found a solution for the challenge and when i test it, it always returns the correct answer, but there is any problem which doesn't let me continue. I've checked all the test guidelines and it works for all of them.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Vivaldi 1.2:</li> <li>Operating System: Windows 7</li> <li>Mobile, Desktop, or Tablet: Laptop SONY Vaio VGN-Z5</li> </ul> <h4 dir="auto">Your Code</h4> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// If relevant, paste all of your challenge code in here var myInventory = {}; function updateInventory(arr1, arr2) { // All inventory must be accounted for or you're fired! arr1.reduce(function(anterior, actual){ //inventory += actual[1] + '////'; if(myInventory.hasOwnProperty(actual[1])){ myInventory[actual[1]] += actual[0]; } else { myInventory[actual[1]] = actual[0]; } }, []); arr2.reduce(function(anterior, actual){ //inventory += actual[1] + '////'; if(myInventory.hasOwnProperty(actual[1])){ myInventory[actual[1]] += actual[0]; } else { myInventory[actual[1]] = actual[0]; } }, []); var newInventory = []; for(var propiedad in myInventory){ newInventory.push([myInventory[propiedad], propiedad]); } newInventory.sort(function (a, b) { if (a[1] &gt; b[1]) { return 1; } if (a[1] &lt; b[1]) { return -1; } return 0; }); arr1 = newInventory; return arr1; } updateInventory([[21, &quot;Bowling Ball&quot;], [2, &quot;Dirty Sock&quot;], [1, &quot;Hair Pin&quot;], [5, &quot;Microphone&quot;]], [[2, &quot;Hair Pin&quot;], [3, &quot;Half-Eaten Apple&quot;], [67, &quot;Bowling Ball&quot;], [7, &quot;Toothpaste&quot;]]); /* // Example inventory lists var curInv = [ [21, &quot;Bowling Ball&quot;], [2, &quot;Dirty Sock&quot;], [1, &quot;Hair Pin&quot;], [5, &quot;Microphone&quot;] ]; var newInv = [ [2, &quot;Hair Pin&quot;], [3, &quot;Half-Eaten Apple&quot;], [67, &quot;Bowling Ball&quot;], [7, &quot;Toothpaste&quot;] ]; //updateInventory(curInv, newInv); */"><pre class="notranslate"><span class="pl-c">// If relevant, paste all of your challenge code in here</span> <span class="pl-k">var</span> <span class="pl-s1">myInventory</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">updateInventory</span><span class="pl-kos">(</span><span class="pl-s1">arr1</span><span class="pl-kos">,</span> <span class="pl-s1">arr2</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// All inventory must be accounted for or you're fired!</span> <span class="pl-s1">arr1</span><span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">anterior</span><span class="pl-kos">,</span> <span class="pl-s1">actual</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-c">//inventory += actual[1] + '////';</span> <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">myInventory</span><span class="pl-kos">.</span><span class="pl-en">hasOwnProperty</span><span class="pl-kos">(</span><span class="pl-s1">actual</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-kos">{</span> <span class="pl-s1">myInventory</span><span class="pl-kos">[</span><span class="pl-s1">actual</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-c1">+=</span> <span class="pl-s1">actual</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-k">else</span> <span class="pl-kos">{</span> <span class="pl-s1">myInventory</span><span class="pl-kos">[</span><span class="pl-s1">actual</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-c1">=</span> <span class="pl-s1">actual</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-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">arr2</span><span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">anterior</span><span class="pl-kos">,</span> <span class="pl-s1">actual</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-c">//inventory += actual[1] + '////';</span> <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">myInventory</span><span class="pl-kos">.</span><span class="pl-en">hasOwnProperty</span><span class="pl-kos">(</span><span class="pl-s1">actual</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-kos">{</span> <span class="pl-s1">myInventory</span><span class="pl-kos">[</span><span class="pl-s1">actual</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-c1">+=</span> <span class="pl-s1">actual</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-k">else</span> <span class="pl-kos">{</span> <span class="pl-s1">myInventory</span><span class="pl-kos">[</span><span class="pl-s1">actual</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-c1">=</span> <span class="pl-s1">actual</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-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">var</span> <span class="pl-s1">newInventory</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">for</span><span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">propiedad</span> <span class="pl-k">in</span> <span class="pl-s1">myInventory</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-s1">newInventory</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s1">myInventory</span><span class="pl-kos">[</span><span class="pl-s1">propiedad</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">propiedad</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">newInventory</span><span class="pl-kos">.</span><span class="pl-en">sort</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span> <span class="pl-c1">&gt;</span> <span class="pl-s1">b</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">return</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">b</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">return</span> <span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</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">arr1</span> <span class="pl-c1">=</span> <span class="pl-s1">newInventory</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">arr1</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">updateInventory</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-c1">21</span><span class="pl-kos">,</span> <span class="pl-s">"Bowling Ball"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-s">"Dirty Sock"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">"Hair Pin"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-s">"Microphone"</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-s">"Hair Pin"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">3</span><span class="pl-kos">,</span> <span class="pl-s">"Half-Eaten Apple"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">67</span><span class="pl-kos">,</span> <span class="pl-s">"Bowling Ball"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">7</span><span class="pl-kos">,</span> <span class="pl-s">"Toothpaste"</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">/*</span> <span class="pl-c">// Example inventory lists</span> <span class="pl-c">var curInv = [</span> <span class="pl-c"> [21, "Bowling Ball"],</span> <span class="pl-c"> [2, "Dirty Sock"],</span> <span class="pl-c"> [1, "Hair Pin"],</span> <span class="pl-c"> [5, "Microphone"]</span> <span class="pl-c">];</span> <span class="pl-c"></span> <span class="pl-c">var newInv = [</span> <span class="pl-c"> [2, "Hair Pin"],</span> <span class="pl-c"> [3, "Half-Eaten Apple"],</span> <span class="pl-c"> [67, "Bowling Ball"],</span> <span class="pl-c"> [7, "Toothpaste"]</span> <span class="pl-c">];</span> <span class="pl-c"></span> <span class="pl-c">//updateInventory(curInv, newInv);</span> <span class="pl-c">*/</span></pre></div> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6950370/16335034/bd20f2cc-3a04-11e6-962c-320355545794.png"><img src="https://cloud.githubusercontent.com/assets/6950370/16335034/bd20f2cc-3a04-11e6-962c-320355545794.png" alt="pruebaerror" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/use-a-css-class-to-style-an-element#?solution=%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%C2%A0%20%20color%3A%20red%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%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" rel="nofollow">Use a CSS Class to Style an Element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Linux; Android 5.0; P001 Build/LRX21M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.91 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;style&gt; .red-text {   color: red; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&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; "><pre class="notranslate"><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> {   col<span class="pl-c1">or</span><span class="pl-kos">:</span> <span class="pl-c1">red</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>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></pre></div>
0
<p dir="auto">Is there a way to include static assets alongside a module that can be installed using deno install?</p>
<h2 dir="auto">Problem</h2> <p dir="auto">I often find myself needing to load non-JavaScript non-TypeScript assets, and various problems arise:</p> <ul dir="auto"> <li>Local module (in git repo) has to use <code class="notranslate">fs</code> but remote module has to use <code class="notranslate">fetch</code>.</li> <li>The assets cannot be cached.</li> <li>The assets cannot be bundled.</li> </ul> <h2 dir="auto">Suggestion</h2> <p dir="auto">Add some way to annotate assets using comments, and <code class="notranslate">fetch</code> should support those assets. For example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// @deno-asset './assets/foo.wasm' // @deno-asset './assets/bar.png' await fetch(new URL('./assets/foo.wasm', import.meta.url)) await fetch(new URL('./assets/bar.png', import.meta.url)) // --allow-net is not required since it reads from cache"><pre class="notranslate"><span class="pl-c">// <span class="pl-k">@deno</span>-asset './assets/foo.wasm'</span> <span class="pl-c">// <span class="pl-k">@deno</span>-asset './assets/bar.png'</span> <span class="pl-k">await</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">URL</span><span class="pl-kos">(</span><span class="pl-s">'./assets/foo.wasm'</span><span class="pl-kos">,</span> <span class="pl-k">import</span><span class="pl-kos">.</span><span class="pl-c1">meta</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-k">await</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">URL</span><span class="pl-kos">(</span><span class="pl-s">'./assets/bar.png'</span><span class="pl-kos">,</span> <span class="pl-k">import</span><span class="pl-kos">.</span><span class="pl-c1">meta</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c">// --allow-net is not required since it reads from cache</span></pre></div> <h2 dir="auto">Alternatives</h2> <p dir="auto"><del>There is <a href="https://github.com/tc39/proposal-asset-references">asset reference proposal</a> that is likely not going to get to stage 3 anytime soon.</del></p> <p dir="auto"><a href="https://github.com/tc39/proposal-import-assertions">import assertion proposal</a> had reached stage 3.</p>
1
<h4 dir="auto">Challenge Name</h4> <p dir="auto"><a href="http://beta.freecodecamp.com/en/challenges/es6/an-immutable-object-a-const-does-not-make" rel="nofollow">ES6: An Immutable Object a const does not make</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">Tried random code if that works. It does give me tons of errors but did let me pass the challenge.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Chrome Version 52.0.2743.116 (64-bit)</li> <li>Operating System: OS X 10.10</li> <li>Mobile, Desktop, or Tablet: MacBook</li> </ul> <h4 dir="auto">Your Code</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" const s = [ 5, 7, 2 ]; s[0,1,2] = [2, 5, 7] "><pre class="notranslate"><code class="notranslate"> const s = [ 5, 7, 2 ]; s[0,1,2] = [2, 5, 7] </code></pre></div> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8721312/22444545/0f1b6338-e74c-11e6-81a1-97e25b099a02.png"><img src="https://cloud.githubusercontent.com/assets/8721312/22444545/0f1b6338-e74c-11e6-81a1-97e25b099a02.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/es6/arrow-functions" rel="nofollow">arrow-functions</a> passes tests with any or no input.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36</code>.</p> <p dir="auto">It seems that the tests will pass without changing any code (as pictured). All tests passed with a blank code editor and when gibberish was entered into the code editor as well. I've tried a hard refresh and incognito and the problem persists.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3643243/22361549/1813f8a6-e418-11e6-9905-49a8c261c2cb.jpg"><img src="https://cloud.githubusercontent.com/assets/3643243/22361549/1813f8a6-e418-11e6-9905-49a8c261c2cb.jpg" alt="arrow-functions" style="max-width: 100%;"></a></p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues in this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with retries, ETA/Countdown &amp; rate limits disabled.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:4.2.1</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>:2.7</li> <li><strong>Minimal Broker Version</strong>: redis 5.0.3</li> <li><strong>Minimal Result Backend Version</strong>:redis 5.0.3</li> <li><strong>Minimal OS and/or Kernel Version</strong>: ubuntu 16.04</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> main.python: </p><p dir="auto">import celery_app_tmp.task0<br> import celery_app_tmp.task1<br> import celery_app_tmp.task_download</p> <p dir="auto">list_task = [celery_app_tmp.task0,<br> celery_app_tmp.task1]<br> addImageInput = {'imageMD5': 'default',<br> 'imageUrl': imageUrl}<br> result_exc = chain(celery_app_tmp.task_download.download.s(addImageInput),<br> random.choice(list_task).featureExtract.s())()<br> while True:<br> if result_exc.ready():<br> dict_exc = result_exc.get()<br> break</p> <p dir="auto">task0.py:</p> <p dir="auto">from celery import Celery</p> <p dir="auto">app = Celery()<br> app.config_from_object("celery_app_tmp.celeryconfig_gpu")<br> gpu_id = 0<br> @app.task<br> def faceRec(addImageInput, faceSetId):<br> do somthing()<br> return result_dict</p> <p dir="auto">task1.py is same as task0.py,just gpu_id is different.</p> <p dir="auto">task_download.py:<br> app = Celery()<br> app.config_from_object("celery_app_tmp.celeryconfig_download")</p> <p dir="auto">@app.task<br> def download(addImageInput):<br> do somthing()<br> return addImageInput</p> <p dir="auto">celery_config.py:<br> from kombu import Queue<br> from kombu import Exchange</p> <p dir="auto">result_serializer = 'msgpack'<br> task_serializer = 'msgpack'<br> accept_content = ['json', 'msgpack']</p> <p dir="auto">broker_url = "redis://:redis@172.16.3.22:7369/1"<br> result_backend = "redis://:redis@172.16.3.22:7369/1"</p> <p dir="auto">worker_concurrency = 8<br> result_exchange_type = 'direct'<br> result_expires = 5</p> <p dir="auto">task_queues = (<br> Queue('gpu_0', exchange=Exchange('gpu_0'), routing_key='gpu_0'),<br> Queue('gpu_1', exchange=Exchange('gpu_1'), routing_key='gpu_1'),<br> Queue('download', exchange=Exchange('download'), routing_key='download'),<br> )</p> <p dir="auto">task_routes = {<br> 'celery_app_tmp.task0.faceRec': {'queue': 'gpu_0', 'routing_key': 'gpu_0'},<br> 'celery_app_tmp.task1.faceRec': {'queue': 'gpu_1', 'routing_key': 'gpu_1'},<br> 'celery_app_tmp.task_download.download': {'queue': 'download', 'routing_key': 'download'},</p> <p dir="auto">}</p> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">when jmeter stress this program, the redis connected_clients and client_recent_max_output_buffer dont continue to increase</p> <h1 dir="auto">Actual Behavior</h1>
<p dir="auto">I have a situation where I have a Topic Exchange with two queues bound to the exchange. Given the nature of Topic Exchanges, it's possible for a single messager to be routed to multiple queues (this is desirable for my usage). If I have a worker processing messages on one of the queue and have to stop that worker, it will restore any unacknowledged messages. However, instead of putting the message back into the queue that it retrieved the message from, it puts the message back into the exchange. This is a problem in that it means duplicate messages in other queues.</p> <p dir="auto">For example, say Exchange Foo has Queue A and Queue B accepting all messages off of the exchange (<code class="notranslate">routing_key='#'</code>). If we submit Message 123 to the exchange, it will be routed to both queues. If a worker is reading off of Queue A and has to restore the unacknowledged Message 123 (for whatever reason), it will place that message back into Exchange Foo. This will place the Messager 123 back into Queue A (good!) and Queue B (bad!). Queue B now has two instances of Mesage 123.</p> <p dir="auto">I believe the correct behaviour should be to simply place the message back into the queue that it came from. Is there a technical limitation that requires us to do this? If not, I'd be happy to make a PR to resolve this.</p>
0
<p dir="auto">Hi,<br> When I run Pkg.update(), it starts the update but when it reaches Compat, it does not move forward anymore. Then I interrupt and it "rolls bacl ColorType" (see below; In Compat's link, it mentions only v 0.07.12. While the attempted update is trying to fetch 0.07.13. ). This happened under v 4.3. I upgraded the julia core to 4.5 and still face the same issue. Any idea how to fix this or bypass this Compat issue?<br> Thank</p> <p dir="auto">julia&gt; Pkg.update()<br> INFO: Updating METADATA...<br> INFO: Computing changes...<br> INFO: Upgrading ColorTypes: v0.2.1 =&gt; v0.2.2<br> INFO: Upgrading ColorVectorSpace: v0.1.1 =&gt; v0.1.2<br> INFO: Upgrading Compat: v0.7.12 =&gt; v0.7.13<br> ^CINFO: Rolling back ColorVectorSpace from v0.1.2 to v0.1.1<br> INFO: Rolling back ColorTypes from v0.2.2 to v0.2.1</p>
<p dir="auto">I was surprised that this threw an error. I'm not 100% sure this is a bug, I can see how this might be intended behavior, but it would sure be nice if it would work.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; f(x)=any(true for y=1:x-1 for z=1:1);f(1) ERROR: ArgumentError: argument to Flatten must contain at least one iterator Stacktrace: [1] start(::Base.Iterators.Flatten{Base.Generator{UnitRange{Int64},##37#39}}) at ./iterators.jl:696 [2] any(::Base.#identity, ::Base.Iterators.Flatten{Base.Generator{UnitRange{Int64},##37#39}}) at ./reduce.jl:573 [3] f(::Int64) at ./REPL[16]:1"><pre class="notranslate"><code class="notranslate">julia&gt; f(x)=any(true for y=1:x-1 for z=1:1);f(1) ERROR: ArgumentError: argument to Flatten must contain at least one iterator Stacktrace: [1] start(::Base.Iterators.Flatten{Base.Generator{UnitRange{Int64},##37#39}}) at ./iterators.jl:696 [2] any(::Base.#identity, ::Base.Iterators.Flatten{Base.Generator{UnitRange{Int64},##37#39}}) at ./reduce.jl:573 [3] f(::Int64) at ./REPL[16]:1 </code></pre></div>
0
<p dir="auto">Currently cuDNN-based RNNs in TF are limited to GradientDescentOptimizer (<a href="https://github.com/tensorflow/tensorflow/issues/6620" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/6620/hovercard">#6620</a>). This is a serious limitation given the widespread use of other optimizers. The claim that this cannot be supported in TF because cuDNN RNN don't have known shapes at static time seems overly pessimistic. Just like RNNParamsSaver provides a mechanism to convert between canonical shaped variables and the parameter buffer, a simple wrapper can be provided that does this automatically for cuDNN RNNs, so that the size of the parameter buffer is statically calculated and then used to define the variable, especially since the shape of the parameter buffer is just a 1D vector anyway.</p>
<p dir="auto">I am testing how to use CudnnLSTM, there is not a lot of documentation on this. In my own experiment, I found when use AdamOptimizer with CudnnLSTM, it always raises the following Exception.</p> <p dir="auto">I also found another repository using CudnnLSTM, and uploaded it here: <a href="https://github.com/boche/LM-PTB-CUDNNLSTM">https://github.com/boche/LM-PTB-CUDNNLSTM</a>. It also raises the same exception.</p> <blockquote> <p dir="auto">File "ptb_word_lm.py", line 465, in main<br> m = PTBModel(is_training=True, config=config, debug=FLAGS.debug)<br> File "ptb_word_lm.py", line 254, in <strong>init</strong><br> self._train_op = optimizer.apply_gradients(zip(allgrads, allvars))<br> File "/data/ASR1/ramons/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/training/optimizer.py", line 409, in apply_gradients<br> self._create_slots(var_list)<br> File "/data/ASR1/ramons/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/training/adam.py", line 119, in _create_slots<br> self._zeros_slot(v, "m", self._name)<br> File "/data/ASR1/ramons/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/training/optimizer.py", line 609, in _zeros_slot<br> named_slots[var] = slot_creator.create_zeros_slot(var, op_name)<br> File "/data/ASR1/ramons/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/training/slot_creator.py", line 121, in create_zeros_slot<br> val = array_ops.zeros(primary.get_shape().as_list(), dtype=dtype)<br> File "/data/ASR1/ramons/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/framework/tensor_shape.py", line 782, in as_list<br> raise ValueError("as_list() is not defined on an unknown TensorShape.")<br> ValueError: as_list() is not defined on an unknown TensorShape.</p> </blockquote> <p dir="auto">For now, using GradientDescentOptimizer is okay, but it seems all other fancy optimizers all have similar problems. I have looked up this problem on stackoverflow, and found a related thread: <a href="http://stackoverflow.com/questions/40698821/tensorflow-adamoptimizer-throws-error-when-variable-has-validate-shape-false" rel="nofollow">http://stackoverflow.com/questions/40698821/tensorflow-adamoptimizer-throws-error-when-variable-has-validate-shape-false</a> .</p> <p dir="auto">It seems the problem is that parameter buffer used in CudnnLSTM doesn't have fixed shape (validate_shape=False, defined in line 145 of <a href="https://github.com/boche/LM-PTB-CUDNNLSTM/blob/master/ptb_word_lm.py">https://github.com/boche/LM-PTB-CUDNNLSTM/blob/master/ptb_word_lm.py</a> ) , which is required by AdamOptimizer.</p> <p dir="auto">Cudnn seems to be faster (less time per epoch), but if we can't use better learning algorithms with it (meaning more epochs), then the total running time may not be improved so much.</p>
1
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">Other Airflow 2 version (please specify below)</p> <h3 dir="auto">What happened</h3> <p dir="auto">Version Airflow: 2.5.1</p> <p dir="auto">I have a file in python that generate dynamic DAG, and all time when have a new code in that file, is necessary to execute <code class="notranslate">./airflow.sh dags reserialize</code>, but sometimes this command return with an error like below, but :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2023-04-13 19:46:54,669] {dag.py:2690} INFO - Sync 35 DAGs Traceback (most recent call last): File &quot;/home/airflow/.local/bin/airflow&quot;, line 8, in &lt;module&gt; sys.exit(main()) File &quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/__main__.py&quot;, line 39, in main args.func(args) File &quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/cli_parser.py&quot;, line 52, in command return func(*args, **kwargs) File &quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 75, in wrapper return func(*args, session=session, **kwargs) File &quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/cli.py&quot;, line 108, in wrapper return f(*args, **kwargs) File &quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/commands/dag_command.py&quot;, line 492, in dag_reserialize dagbag.sync_to_db(session=session) File &quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 72, in wrapper return func(*args, **kwargs) File &quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/models/dagbag.py&quot;, line 645, in sync_to_db for attempt in run_with_db_retries(logger=self.log): File &quot;/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py&quot;, line 384, in __iter__ do = self.iter(retry_state=retry_state) File &quot;/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py&quot;, line 351, in iter return fut.result() File &quot;/usr/local/lib/python3.7/concurrent/futures/_base.py&quot;, line 428, in result return self.__get_result() File &quot;/usr/local/lib/python3.7/concurrent/futures/_base.py&quot;, line 384, in __get_result raise self._exception File &quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/models/dagbag.py&quot;, line 660, in sync_to_db self.dags.values(), processor_subdir=processor_subdir, session=session File &quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 72, in wrapper return func(*args, **kwargs) File &quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/models/dag.py&quot;, line 2701, in bulk_write_to_db orm_dags: list[DagModel] = with_row_locks(query, of=DagModel, session=session).all() File &quot;/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/query.py&quot;, line 2773, in all return self._iter().all() File &quot;/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/query.py&quot;, line 2919, in _iter execution_options={&quot;_sa_orm_load_options&quot;: self.load_options}, File &quot;/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/session.py&quot;, line 1713, in execute conn = self._connection_for_bind(bind) File &quot;/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/session.py&quot;, line 1553, in _connection_for_bind 2-tetris-linkedin-hourly-days', 'fileloc': '/opt/airflow/dags/register_dynamic_dag.py', 'fileloc_hash': 51105027638417678, 'data': '{&quot;__version&quot;: 1, &quot;dag&quot;: {&quot;_dag_id&quot;: &quot;96ddcc3b-900a-44a7-bda9-81b9eeserialized DAG: /opt/airflow/dags/register_alerts_resport_dag.py engine, execution_options python3.7/site-packages/airflow/models/dagbag.py&quot;, line 631, in _serialize_dag_capturing_errors File &quot;/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/session.py&quot;, line 721, in _connection_for_bind self._assert_active() File &quot;/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/session.py&quot;, line 608, in _assert_active code=&quot;7s2a&quot;, sqlalchemy.exc.PendingRollbackError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint &quot;serialized_dag_pkey&quot; DETAIL: Key (dag_id)=(96ddcc3b-900a-44a7-bda9-81b9eefde4d2-dynamic-dag-hourly-days) already exists."><pre class="notranslate"><code class="notranslate">[2023-04-13 19:46:54,669] {dag.py:2690} INFO - Sync 35 DAGs Traceback (most recent call last): File "/home/airflow/.local/bin/airflow", line 8, in &lt;module&gt; sys.exit(main()) File "/home/airflow/.local/lib/python3.7/site-packages/airflow/__main__.py", line 39, in main args.func(args) File "/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/cli_parser.py", line 52, in command return func(*args, **kwargs) File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py", line 75, in wrapper return func(*args, session=session, **kwargs) File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/cli.py", line 108, in wrapper return f(*args, **kwargs) File "/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/commands/dag_command.py", line 492, in dag_reserialize dagbag.sync_to_db(session=session) File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py", line 72, in wrapper return func(*args, **kwargs) File "/home/airflow/.local/lib/python3.7/site-packages/airflow/models/dagbag.py", line 645, in sync_to_db for attempt in run_with_db_retries(logger=self.log): File "/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py", line 384, in __iter__ do = self.iter(retry_state=retry_state) File "/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py", line 351, in iter return fut.result() File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 428, in result return self.__get_result() File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result raise self._exception File "/home/airflow/.local/lib/python3.7/site-packages/airflow/models/dagbag.py", line 660, in sync_to_db self.dags.values(), processor_subdir=processor_subdir, session=session File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py", line 72, in wrapper return func(*args, **kwargs) File "/home/airflow/.local/lib/python3.7/site-packages/airflow/models/dag.py", line 2701, in bulk_write_to_db orm_dags: list[DagModel] = with_row_locks(query, of=DagModel, session=session).all() File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 2773, in all return self._iter().all() File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 2919, in _iter execution_options={"_sa_orm_load_options": self.load_options}, File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 1713, in execute conn = self._connection_for_bind(bind) File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 1553, in _connection_for_bind 2-tetris-linkedin-hourly-days', 'fileloc': '/opt/airflow/dags/register_dynamic_dag.py', 'fileloc_hash': 51105027638417678, 'data': '{"__version": 1, "dag": {"_dag_id": "96ddcc3b-900a-44a7-bda9-81b9eeserialized DAG: /opt/airflow/dags/register_alerts_resport_dag.py engine, execution_options python3.7/site-packages/airflow/models/dagbag.py", line 631, in _serialize_dag_capturing_errors File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 721, in _connection_for_bind self._assert_active() File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 608, in _assert_active code="7s2a", sqlalchemy.exc.PendingRollbackError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "serialized_dag_pkey" DETAIL: Key (dag_id)=(96ddcc3b-900a-44a7-bda9-81b9eefde4d2-dynamic-dag-hourly-days) already exists. </code></pre></div> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">I think that airflow should only reserialize without problem with duplicate key.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">The python's file that register dynamic dag (I shortened code to focus on the problem):</p> <p dir="auto">Here, the data is fixed as dict on python, but in real scene is a json file, that update sometime for other DAG.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pytz from datetime import datetime, timedelta from airflow.decorators import dag, task data = { 'companies': [{ 'id': '1233', 'slug': 'company-1', 'timezone': { 'id': 'America/Sao_Paulo' }, 'connections': [{ 'id': 'facebook', }, { 'id': 'instagram', }] }, { 'id': '1234', 'slug': 'company-2', 'timezone': { 'id': 'America/Sao_Paulo' }, 'connections': [{ 'id': 'facebook', }, { 'id': 'instagram', }, { 'id': 'twitter', }] }] } def create_dynamic_dag(dag_id, company): schedule_interval = &quot;* 5 * * * *&quot; local_tz = pytz.timezone(company['timezone']['id']) start_date = datetime.now(local_tz) - timedelta(days=7, hours=0) @dag( dag_id=dag_id, schedule=schedule_interval, start_date=start_date, catchup=False, max_active_runs=1, ) def dynamic_dag(): @task.branch def ping(): # ...code to ping # return 'done' or 'notify_error' pass @task def notify_error(): # ...code to notify error pass @task def done(): # ... code to done pass ping_instance = ping() notify_error_instance = notify_error() done_instance = done() ping_instance &gt;&gt; [done_instance, notify_error_instance] dagD = dynamic_dag() globals()[dag_id] = dagD return dagD for company in data['companies']: for connection in company['connections']: dag_id = f&quot;{company['id']}-{company['slug']}-{connection['id']}&quot; dagD = create_dynamic_dag(dag_id, company)"><pre class="notranslate"><code class="notranslate">import pytz from datetime import datetime, timedelta from airflow.decorators import dag, task data = { 'companies': [{ 'id': '1233', 'slug': 'company-1', 'timezone': { 'id': 'America/Sao_Paulo' }, 'connections': [{ 'id': 'facebook', }, { 'id': 'instagram', }] }, { 'id': '1234', 'slug': 'company-2', 'timezone': { 'id': 'America/Sao_Paulo' }, 'connections': [{ 'id': 'facebook', }, { 'id': 'instagram', }, { 'id': 'twitter', }] }] } def create_dynamic_dag(dag_id, company): schedule_interval = "* 5 * * * *" local_tz = pytz.timezone(company['timezone']['id']) start_date = datetime.now(local_tz) - timedelta(days=7, hours=0) @dag( dag_id=dag_id, schedule=schedule_interval, start_date=start_date, catchup=False, max_active_runs=1, ) def dynamic_dag(): @task.branch def ping(): # ...code to ping # return 'done' or 'notify_error' pass @task def notify_error(): # ...code to notify error pass @task def done(): # ... code to done pass ping_instance = ping() notify_error_instance = notify_error() done_instance = done() ping_instance &gt;&gt; [done_instance, notify_error_instance] dagD = dynamic_dag() globals()[dag_id] = dagD return dagD for company in data['companies']: for connection in company['connections']: dag_id = f"{company['id']}-{company['slug']}-{connection['id']}" dagD = create_dynamic_dag(dag_id, company) </code></pre></div> <h3 dir="auto">Operating System</h3> <p dir="auto">Mac, but I'm using docker from airflow</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">Docker-Compose</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">I only follow the documentation of <a href="https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html" rel="nofollow">Airflow in docker</a>.</p> <h3 dir="auto">Anything else</h3> <p dir="auto">Sometime this errors doesn't happen, but it's happens with more frequency.</p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.3.3 (latest released)</p> <h3 dir="auto">What happened</h3> <p dir="auto">When manually triggering a dag run using "Trigger DAG w/ config" and setting the logical date and time, the UI of the dag run triggered will show a data interval that is two schedule intervals off. For example, for a daily run, setting the logical date to 2022-07-24 00:00:00 UTC would show the data interval with a start date of 2022-07-22 and end of 2022-07-23. Rendering {{ ds_nodash }} on this run will show "2022-07-24" which is correct, but since the grid view orders the runs on the incorrect start date, things can get confusing.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/46539900/181820332-0eedab1d-f163-46f0-8fa7-9f6c1d24d8b8.png"><img width="648" alt="image" src="https://user-images.githubusercontent.com/46539900/181820332-0eedab1d-f163-46f0-8fa7-9f6c1d24d8b8.png" style="max-width: 100%;"></a></p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">Either the data interval behaves the same as with the scheduled run and show start date as the logical date and the end date as the logical date + schedule interval, or, per the documentation <a href="https://airflow.apache.org/docs/apache-airflow/stable/faq.html#why-next-ds-or-prev-ds-might-not-contain-expected-values" rel="nofollow">here</a> the prev_ds == next_ds == ds and so the data interval should all be 2022-07-24 for the above example.</p> <h3 dir="auto">How to reproduce</h3> <ol dir="auto"> <li>Create a simple DAG with a schedule interval, as such:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import json from datetime import datetime from airflow.decorators import dag, task @dag( schedule_interval=&quot;@daily&quot;, start_date=datetime(2021, 1, 1), catchup=False, ) def example_dag_basic(): @task() def example(): print(&quot;this is an example task&quot;) example() example_dag_basic = example_dag_basic()"><pre class="notranslate"><code class="notranslate">import json from datetime import datetime from airflow.decorators import dag, task @dag( schedule_interval="@daily", start_date=datetime(2021, 1, 1), catchup=False, ) def example_dag_basic(): @task() def example(): print("this is an example task") example() example_dag_basic = example_dag_basic() </code></pre></div> <ol start="2" dir="auto"> <li>Trigger a run using "Trigger DAG w/ config" and manually create a run for some date</li> <li>Observe the start date as 2 schedules off.</li> </ol> <h3 dir="auto">Operating System</h3> <p dir="auto">Debian Bullseye</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">Astronomer</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">Local was tested on docker compose (from astro-cli)</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
<ul dir="auto"> <li>Electron Version: 2.0.0</li> <li>Operating System (Platform and Version): Windows 10</li> <li>Last known working Electron version:</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> I have a <code class="notranslate">&lt;webview&gt;</code> that points to a page with an <code class="notranslate">&lt;input&gt;</code> field. When I tab from that input field, I expect focus to wrap around back to the input field.</p> <p dir="auto"><strong>Actual behavior</strong><br> Focus goes off screen and is lost forever (I can't Tab or Shift+Tab back to the input field like I can in a browser). I added a handler on the <code class="notranslate">document</code> to see what we're focused on and verified that we're not focused on anything:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="document.addEventListener(&quot;keydown&quot;, function(e) { console.log(document.activeElement); });"><pre class="notranslate"><code class="notranslate">document.addEventListener("keydown", function(e) { console.log(document.activeElement); }); </code></pre></div> <p dir="auto">After tabbing away from the input field (twice - the first tab gets me the input field itself), that line doesn't log an element.</p> <p dir="auto"><strong>To Reproduce</strong><br> Create a test page:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;body&gt; &lt;input type=&quot;text&quot; width=&quot;200&quot; /&gt; &lt;/body&gt;"><pre class="notranslate"><code class="notranslate">&lt;body&gt; &lt;input type="text" width="200" /&gt; &lt;/body&gt; </code></pre></div> <p dir="auto">In the electron-quick-start app, replace the contents of the <code class="notranslate">body</code> tag in index.html with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;webview src=&quot;http://localhost:1234/testpage.html&quot;/&gt;"><pre class="notranslate"><code class="notranslate">&lt;webview src="http://localhost:1234/testpage.html"/&gt; </code></pre></div> <p dir="auto">Focus on the <code class="notranslate">&lt;input&gt;</code> and tab a couple times. Focus never wraps around to the <code class="notranslate">&lt;input&gt;</code> like it would in Chrome.</p>
<ul dir="auto"> <li>Electron Version: 2.0.0</li> <li>Operating System (Platform and Version): Windows 10</li> <li>Last known working Electron version: N/A</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> If the last focusable HTML element is focused and I press 'tab', then the next thing that is focused should either be the first focusable HTML element, or if not, then whatever is focused should have a visible focus.</p> <p dir="auto"><strong>Actual behavior</strong><br> Something is being focused (I think it is the entire HTML document?) and there is no visual indication as to what it is. It is fine that this other thing is being focused, what is not fine is that I/a user does not know where the keyboard focus has gone.</p> <p dir="auto"><strong>To Reproduce</strong></p> <ul dir="auto"> <li>Checkout the <a href="https://github.com/electron/electron-quick-start">electron-quick-start</a>- Put an <code class="notranslate">&lt;input type="text"/&gt;</code> before the <code class="notranslate">renderer.js</code> script</li> <li>Launch quick start</li> <li>Set focus in the input</li> <li>Press 'tab'</li> </ul>
1
<p dir="auto">On Mac OS X, many applications allow users to close tabs and windows with the same hotkey, <code class="notranslate">Command + w</code>. Could Atom respect this convention as well?</p>
<p dir="auto">When I have multiple buffers open in tabs and a tree view, my past editors (TextMate, Sublime) have conditioned me to expect that a repeated ⌘+w close each buffer's tab, then close the frame and its tree list after the last buffer has been closed. Atom does not behave this way, and I'm curious if this is by design.</p> <p dir="auto">It is worth noting that Brackets does also hold the frame open after repeated ⌘+w presses. Is this similarly by design in Atom? Must I switch fingers to ⌘+⇧+w to close the frame?</p>
1
<ul dir="auto"> <li>Electron version: 1.4.3</li> <li>Operating system: Windows 10 1607</li> </ul> <p dir="auto">On Electron 1.4.3, tweetdeck.twitter.com has a very weird typing lag. This has been present since 1.0.x, but I wasn't able to find any help regarding this issue. The latest version of Google Chrome and Chromium works fine on tweetdeck.twitter.com, but the lag only seems to be affecting Electron 1.4.3.</p> <p dir="auto">I built a sample app using Electron Quick Start, and it is lagging there as well:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10274434/19408485/3b150cae-92b6-11e6-947e-b5148aa33bde.gif"><img src="https://cloud.githubusercontent.com/assets/10274434/19408485/3b150cae-92b6-11e6-947e-b5148aa33bde.gif" alt="2016-10-15_09-03-14" data-animated-image="" style="max-width: 100%;"></a></p>
<ul dir="auto"> <li>Electron version: 1.3.2</li> <li>Operating system: Windows 10 Version 1607, x64</li> </ul> <p dir="auto">Hi guys, I built an app that uses the tag. It was using Electron 0.36 for a while now, but after upgrading to 1.3.2, the app starts to lag when the user tries to type something in the webview. It doesn't happen for everyone tho, only for some users.</p> <p dir="auto">Any ideas?</p>
1
<p dir="auto">When a list of hashes are used as variables, ansible-playbook output is very verbose, printing out the full hash contents. My working playbooks have longer variable files, so the terminal is constantly filled with useless information.</p> <p dir="auto">Also, when used with debug, the output is full item results are printed to stdout. I'd like to have very short output of tasks using 'debug: var=' for administrators to easily see output of tasks (ie process_status=running/stopped, deployed software versions).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - hosts: localhost vars: myapp: - name: app1 somesetting: nope othersetting: yep dontyouhatepants: yep - name: app2 somesetting: yep othersetting: yep dontyouhatepants: nope tasks: - name: just an echo shell: /bin/echo &quot;{{ item.name }}&quot; with_items: myapp register: echo - debug: var=item.stdout with_items: echo.results $ ansible-playbook -i inv/TEST test.yml PLAY [localhost] ************************************************************** GATHERING FACTS *************************************************************** ok: [localhost] TASK: [just an echo] ********************************************************** changed: [localhost] =&gt; (item={'dontyouhatepants': 'yep', 'name': 'app1', 'othersetting': 'yep', 'somesetting': 'nope'}) changed: [localhost] =&gt; (item={'dontyouhatepants': 'nope', 'name': 'app2', 'othersetting': 'yep', 'somesetting': 'yep'}) TASK: [debug var=item.stdout] ************************************************* ok: [localhost] =&gt; (item={'item': {'dontyouhatepants': 'yep', 'name': 'app1', 'othersetting': 'yep', 'somesetting': 'nope'}, u'delta': u'0:00:00.002124', u'cmd': u'/bin/echo &quot;app1&quot; ', u'end': u'2014-01-09 16:41:02.251091', u'stderr': u'', u'stdout': u'app1', 'invocation': {'module_name': 'shell', 'module_args': u'/bin/echo &quot;app1&quot;'}, u'changed': True, u'rc': 0, u'start': u'2014-01-09 16:41:02.248967'}) =&gt; { &quot;item&quot;: { &quot;changed&quot;: true, &quot;cmd&quot;: &quot;/bin/echo \&quot;app1\&quot; &quot;, &quot;delta&quot;: &quot;0:00:00.002124&quot;, &quot;end&quot;: &quot;2014-01-09 16:41:02.251091&quot;, &quot;invocation&quot;: { &quot;module_args&quot;: &quot;/bin/echo \&quot;app1\&quot;&quot;, &quot;module_name&quot;: &quot;shell&quot; }, &quot;item&quot;: { &quot;dontyouhatepants&quot;: &quot;yep&quot;, &quot;name&quot;: &quot;app1&quot;, &quot;othersetting&quot;: &quot;yep&quot;, &quot;somesetting&quot;: &quot;nope&quot; }, &quot;rc&quot;: 0, &quot;start&quot;: &quot;2014-01-09 16:41:02.248967&quot;, &quot;stderr&quot;: &quot;&quot;, &quot;stdout&quot;: &quot;app1&quot; }, &quot;item.stdout&quot;: &quot;app1&quot; } ok: [localhost] =&gt; (item={'item': {'dontyouhatepants': 'nope', 'name': 'app2', 'othersetting': 'yep', 'somesetting': 'yep'}, u'delta': u'0:00:00.002419', u'cmd': u'/bin/echo &quot;app2&quot; ', u'end': u'2014-01-09 16:41:02.308687', u'stderr': u'', u'stdout': u'app2', 'invocation': {'module_name': 'shell', 'module_args': u'/bin/echo &quot;app2&quot;'}, u'changed': True, u'rc': 0, u'start': u'2014-01-09 16:41:02.306268'}) =&gt; { &quot;item&quot;: { &quot;changed&quot;: true, &quot;cmd&quot;: &quot;/bin/echo \&quot;app2\&quot; &quot;, &quot;delta&quot;: &quot;0:00:00.002419&quot;, &quot;end&quot;: &quot;2014-01-09 16:41:02.308687&quot;, &quot;invocation&quot;: { &quot;module_args&quot;: &quot;/bin/echo \&quot;app2\&quot;&quot;, &quot;module_name&quot;: &quot;shell&quot; }, &quot;item&quot;: { &quot;dontyouhatepants&quot;: &quot;nope&quot;, &quot;name&quot;: &quot;app2&quot;, &quot;othersetting&quot;: &quot;yep&quot;, &quot;somesetting&quot;: &quot;yep&quot; }, &quot;rc&quot;: 0, &quot;start&quot;: &quot;2014-01-09 16:41:02.306268&quot;, &quot;stderr&quot;: &quot;&quot;, &quot;stdout&quot;: &quot;app2&quot; }, &quot;item.stdout&quot;: &quot;app2&quot; } PLAY RECAP ******************************************************************** localhost : ok=3 changed=1 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate"> --- - hosts: localhost vars: myapp: - name: app1 somesetting: nope othersetting: yep dontyouhatepants: yep - name: app2 somesetting: yep othersetting: yep dontyouhatepants: nope tasks: - name: just an echo shell: /bin/echo "{{ item.name }}" with_items: myapp register: echo - debug: var=item.stdout with_items: echo.results $ ansible-playbook -i inv/TEST test.yml PLAY [localhost] ************************************************************** GATHERING FACTS *************************************************************** ok: [localhost] TASK: [just an echo] ********************************************************** changed: [localhost] =&gt; (item={'dontyouhatepants': 'yep', 'name': 'app1', 'othersetting': 'yep', 'somesetting': 'nope'}) changed: [localhost] =&gt; (item={'dontyouhatepants': 'nope', 'name': 'app2', 'othersetting': 'yep', 'somesetting': 'yep'}) TASK: [debug var=item.stdout] ************************************************* ok: [localhost] =&gt; (item={'item': {'dontyouhatepants': 'yep', 'name': 'app1', 'othersetting': 'yep', 'somesetting': 'nope'}, u'delta': u'0:00:00.002124', u'cmd': u'/bin/echo "app1" ', u'end': u'2014-01-09 16:41:02.251091', u'stderr': u'', u'stdout': u'app1', 'invocation': {'module_name': 'shell', 'module_args': u'/bin/echo "app1"'}, u'changed': True, u'rc': 0, u'start': u'2014-01-09 16:41:02.248967'}) =&gt; { "item": { "changed": true, "cmd": "/bin/echo \"app1\" ", "delta": "0:00:00.002124", "end": "2014-01-09 16:41:02.251091", "invocation": { "module_args": "/bin/echo \"app1\"", "module_name": "shell" }, "item": { "dontyouhatepants": "yep", "name": "app1", "othersetting": "yep", "somesetting": "nope" }, "rc": 0, "start": "2014-01-09 16:41:02.248967", "stderr": "", "stdout": "app1" }, "item.stdout": "app1" } ok: [localhost] =&gt; (item={'item': {'dontyouhatepants': 'nope', 'name': 'app2', 'othersetting': 'yep', 'somesetting': 'yep'}, u'delta': u'0:00:00.002419', u'cmd': u'/bin/echo "app2" ', u'end': u'2014-01-09 16:41:02.308687', u'stderr': u'', u'stdout': u'app2', 'invocation': {'module_name': 'shell', 'module_args': u'/bin/echo "app2"'}, u'changed': True, u'rc': 0, u'start': u'2014-01-09 16:41:02.306268'}) =&gt; { "item": { "changed": true, "cmd": "/bin/echo \"app2\" ", "delta": "0:00:00.002419", "end": "2014-01-09 16:41:02.308687", "invocation": { "module_args": "/bin/echo \"app2\"", "module_name": "shell" }, "item": { "dontyouhatepants": "nope", "name": "app2", "othersetting": "yep", "somesetting": "yep" }, "rc": 0, "start": "2014-01-09 16:41:02.306268", "stderr": "", "stdout": "app2" }, "item.stdout": "app2" } PLAY RECAP ******************************************************************** localhost : ok=3 changed=1 unreachable=0 failed=0 </code></pre></div>
<p dir="auto">I currently have a single dynamic inventory for EC2 which lists hosts across several VPCs, inside those VPCs the hosts are assigned different roles which are mapped to ansible groups.<br> However the <code class="notranslate">group_vars</code> folder support only one level, so if I have the same role present in 2 VPCs, I cannot assign different variables to hosts with the same role in different VPCs.</p> <p dir="auto">I would like to have a structure like that:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=". |-- ec2.py `-- group_vars |-- management | |-- all | |-- bastion | |-- elasticsearch | `-- logstash |-- production | |-- all | |-- elasticsearch | `-- web `-- staging |-- all |-- elasticsearch `-- web"><pre class="notranslate"><code class="notranslate">. |-- ec2.py `-- group_vars |-- management | |-- all | |-- bastion | |-- elasticsearch | `-- logstash |-- production | |-- all | |-- elasticsearch | `-- web `-- staging |-- all |-- elasticsearch `-- web </code></pre></div> <p dir="auto">Where I would have:</p> <ul dir="auto"> <li>3 groups for the VPCs. i.e. <code class="notranslate">management</code>, <code class="notranslate">production</code>, <code class="notranslate">staging</code>.</li> <li>each of the VPC groups would have several groups. i.e. <code class="notranslate">elasticsearch</code>, <code class="notranslate">web</code>.</li> </ul> <p dir="auto">To allow several roles with the same names in different VPCs, they could be prefixed by their parent name in the inventory.<br> <code class="notranslate">production</code> would have the following children <code class="notranslate">production-elasticsearch</code>, <code class="notranslate">production-web</code>.</p> <p dir="auto">This subject has already be discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="103851011" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/12156" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/12156/hovercard" href="https://github.com/ansible/ansible/issues/12156">#12156</a>, but the ticket was closed saying it's possible to do it using <code class="notranslate">a combination of inventory scripts and/or group_vars and host_vars</code> or by <code class="notranslate">implementing something like this as a plugin</code>.</p> <p dir="auto">It's not possible to implement it with <code class="notranslate">a combination of inventory scripts and/or group_vars and host_vars</code> in the current state.<br> And while a vars plugin seems the most adapted way if you need a workaround, it involves copying most of the code already present in ansible.</p> <p dir="auto">Should I re-implement <a href="https://github.com/ansible/ansible/blob/63fbc1a76401ff8a74bcab3d1a8792f27a679185/lib/ansible/inventory/__init__.py#L800-L850"><code class="notranslate">_get_hostgroup_vars</code></a> in a plugin, or is there a better solution?</p>
0
<p dir="auto">I've been noticing lately that matplotlib's SVG output appears with incorrect clipping in a lot of SVG viewers (rsvg-view, Ristretto, gpicview), even though it does appear correctly in good SVG viewers like inkscape, firefox, chrome. The data curves peek outside of the axes. Luckily there is an fix in matplotlib that should be easy enough to implement:</p> <p dir="auto">Currently, the SVG structure looks more or less like this, with the clipPath defined at the end:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;svg ..&gt; &lt;g id=&quot;figure_1&quot;&gt; &lt;g id=&quot;axes_1&quot;&gt; .... curves drawn in here, referencing clip-path p7ff5b81e1d &lt;/g&gt; &lt;/g&gt; &lt;defs&gt; &lt;clipPath id=&quot;p7ff5b81e1d&quot;&gt; &lt;rect height=&quot;345.6&quot; width=&quot;446.4&quot; x=&quot;72.0&quot; y=&quot;43.2&quot;/&gt; &lt;/clipPath&gt; &lt;/defs&gt; &lt;/svg&gt;"><pre class="notranslate">&lt;<span class="pl-ent">svg</span> ..&gt; &lt;<span class="pl-ent">g</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>figure_1<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">g</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>axes_1<span class="pl-pds">"</span></span>&gt; .... curves drawn in here, referencing clip-path p7ff5b81e1d &lt;/<span class="pl-ent">g</span>&gt; &lt;/<span class="pl-ent">g</span>&gt; &lt;<span class="pl-ent">defs</span>&gt; &lt;<span class="pl-ent">clipPath</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>p7ff5b81e1d<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">rect</span> <span class="pl-e">height</span>=<span class="pl-s"><span class="pl-pds">"</span>345.6<span class="pl-pds">"</span></span> <span class="pl-e">width</span>=<span class="pl-s"><span class="pl-pds">"</span>446.4<span class="pl-pds">"</span></span> <span class="pl-e">x</span>=<span class="pl-s"><span class="pl-pds">"</span>72.0<span class="pl-pds">"</span></span> <span class="pl-e">y</span>=<span class="pl-s"><span class="pl-pds">"</span>43.2<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">clipPath</span>&gt; &lt;/<span class="pl-ent">defs</span>&gt; &lt;/<span class="pl-ent">svg</span>&gt;</pre></div> <p dir="auto">I found that if I simply moved the section containing that clipPath earlier in the file, then the SVG views just fine in any viewer that I can find. I guess that these basic SVG viewers don't like forward references.</p> <p dir="auto">For examples, this works:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;svg ..&gt; &lt;g id=&quot;figure_1&quot;&gt; &lt;defs&gt; &lt;clipPath id=&quot;p7ff5b81e1d&quot;&gt; &lt;rect height=&quot;345.6&quot; width=&quot;446.4&quot; x=&quot;72.0&quot; y=&quot;43.2&quot;/&gt; &lt;/clipPath&gt; &lt;/defs&gt; &lt;g id=&quot;axes_1&quot;&gt; .... curves drawn in here, referencing clip-path p7ff5b81e1d &lt;/g&gt; &lt;/g&gt; &lt;/svg&gt;"><pre class="notranslate">&lt;<span class="pl-ent">svg</span> ..&gt; &lt;<span class="pl-ent">g</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>figure_1<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">defs</span>&gt; &lt;<span class="pl-ent">clipPath</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>p7ff5b81e1d<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">rect</span> <span class="pl-e">height</span>=<span class="pl-s"><span class="pl-pds">"</span>345.6<span class="pl-pds">"</span></span> <span class="pl-e">width</span>=<span class="pl-s"><span class="pl-pds">"</span>446.4<span class="pl-pds">"</span></span> <span class="pl-e">x</span>=<span class="pl-s"><span class="pl-pds">"</span>72.0<span class="pl-pds">"</span></span> <span class="pl-e">y</span>=<span class="pl-s"><span class="pl-pds">"</span>43.2<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">clipPath</span>&gt; &lt;/<span class="pl-ent">defs</span>&gt; &lt;<span class="pl-ent">g</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>axes_1<span class="pl-pds">"</span></span>&gt; .... curves drawn in here, referencing clip-path p7ff5b81e1d &lt;/<span class="pl-ent">g</span>&gt; &lt;/<span class="pl-ent">g</span>&gt; &lt;/<span class="pl-ent">svg</span>&gt;</pre></div> <p dir="auto">I would attach an example SVG but github doesn't seem to support that...</p>
<p dir="auto">See my stackoverflow post: <a href="http://stackoverflow.com/questions/29616764/matplotlib-savefig-produces-incorrect-svg-image-for-bar-chart-with-log-scaled-y" rel="nofollow">http://stackoverflow.com/questions/29616764/matplotlib-savefig-produces-incorrect-svg-image-for-bar-chart-with-log-scaled-y</a></p> <p dir="auto">A potential solution to the issue is described here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="64073935" data-permission-text="Title is private" data-url="https://github.com/ipython/ipython/issues/8133" data-hovercard-type="issue" data-hovercard-url="/ipython/ipython/issues/8133/hovercard?comment_id=93051239&amp;comment_type=issue_comment" href="https://github.com/ipython/ipython/issues/8133#issuecomment-93051239">ipython/ipython#8133 (comment)</a></p>
1
<p dir="auto">I do not know how to fix a buggy Accelerate backend..</p> <p dir="auto">Input:<br> <code class="notranslate">import numpy as np </code><br> or<br> <code class="notranslate">import pandas as pd</code></p> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="init_dgelsd failed init Traceback (most recent call last): File &quot;&lt;input&gt;&quot;, line 1, in &lt;module&gt; File &quot;/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py&quot;, line 21, in do_import module = self._system_import(name, *args, **kwargs) File &quot;/Users/hannahwood/PycharmProjects/pythonProject/venv/lib/python3.9/site-packages/pandas/__init__.py&quot;, line 11, in &lt;module&gt; __import__(dependency) File &quot;/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py&quot;, line 21, in do_import module = self._system_import(name, *args, **kwargs) File &quot;/Users/hannahwood/PycharmProjects/pythonProject/venv/lib/python3.9/site-packages/numpy/__init__.py&quot;, line 286, in &lt;module&gt; raise RuntimeError(msg) RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy. RankWarning: Polyfit may be poorly conditioned "><pre class="notranslate"><code class="notranslate">init_dgelsd failed init Traceback (most recent call last): File "&lt;input&gt;", line 1, in &lt;module&gt; File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/hannahwood/PycharmProjects/pythonProject/venv/lib/python3.9/site-packages/pandas/__init__.py", line 11, in &lt;module&gt; __import__(dependency) File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/hannahwood/PycharmProjects/pythonProject/venv/lib/python3.9/site-packages/numpy/__init__.py", line 286, in &lt;module&gt; raise RuntimeError(msg) RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy. RankWarning: Polyfit may be poorly conditioned </code></pre></div>
<p dir="auto">Hello. Could you please release CPython 3.9 manylinux wheels on PyPI?</p> <p dir="auto">Python 3.9.0 final was released this week: <a href="https://www.python.org/downloads/release/python-390/" rel="nofollow">https://www.python.org/downloads/release/python-390/</a></p> <p dir="auto">Thank You.</p>
1
<p dir="auto">Though we can specify query granularity and intervals in search query spec.,<br> search query runner ignore those and scans whole the interval of the given segment and works with <code class="notranslate">QueryGranularity.ALL</code>.</p> <p dir="auto">For example, in <code class="notranslate">testSearchWithCardinality()</code> of <code class="notranslate">SearchQueryRunnerTest</code>,<br> it requests search for interval [2011-01-12, 2011-02-28) and [2011-03-01, 2011-04-15) within a segment of interval [2011-01-12, 2011-04-15] and unions the results.<br> But, it actually scans whole the segment for each interval and results in duplicated counting of matching entries.</p> <p dir="auto">As a result, you can see that the result count from <code class="notranslate">testSearch()</code> is much smaller than that of <code class="notranslate">testSearchWithCardinality()</code> even though <code class="notranslate">testSearch()</code> has larger query interval.</p>
<p dir="auto">This issue tracks all the "related" efforts targeted towards making realtime ingestion better in one way or the other.<br> Here is a wishlist of items we should try to solve for. I understand that some of this is already solved by tranquility (probably not in kafka based ingestion), but we should ensure that those are not broken as we make changes and are supported by kafka based ingestion as well.</p> <ol dir="auto"> <li>Exactly once semantics: There should be no duplication introduced and no dropping of events (except when input event is malformed/unparseable). This directly relates to both "No window period" and "FirehoseV2 proposal"</li> <li>We should be able to scale realtime ingestion by adding more nodes.</li> <li>Realtime Ingestion and Querying on that data should continue to happen successfully in the event of some process/node failures. It only happens for standalone realtime nodes today. With ingestion done via "tasks", there is possibility of node dying leading to data loss (replication of ingestion tasks should potentially solve this).</li> <li>Query result consistency: Given query should get exactly same result independent of which realtime nodes/replicants served the query.</li> <li>No downtime upgrade: Realtime ingestion and Queries should continue to make progress while upgrade.</li> <li>Operational simplicity: For example kafka ingestion should be able to automatically handle kafka partition addition/removal</li> </ol> <p dir="auto">(Realtime Delta Ingestion: ability to ingest late events as they come would probably happen as a side effect of 1st)</p> <p dir="auto"><strong>Related Refs:</strong><br> <a href="https://groups.google.com/forum/#!msg/druid-development/kHgHTgqKFlQ/fXvtsNxWzlMJ" rel="nofollow">https://groups.google.com/forum/#!msg/druid-development/kHgHTgqKFlQ/fXvtsNxWzlMJ</a> (No window period proposal)<br> <a href="https://groups.google.com/forum/#!msg/druid-development/9HB9hCcqvuI/L59RgsloZfoJ" rel="nofollow">https://groups.google.com/forum/#!msg/druid-development/9HB9hCcqvuI/L59RgsloZfoJ</a> (FirehoseV2 proposal)<br> <a href="https://docs.google.com/document/d/1PUG3crI2jiPa_u926R0KrkZVM7t706rXp1IuUxVXB5E/edit?usp=sharing" rel="nofollow">https://docs.google.com/document/d/1PUG3crI2jiPa_u926R0KrkZVM7t706rXp1IuUxVXB5E/edit?usp=sharing</a> (doc covering design details for both above)<br> <a href="https://groups.google.com/forum/#!searchin/druid-development/tier/druid-development/1I3CmxlOipM/e3-SpWqG170J" rel="nofollow">https://groups.google.com/forum/#!searchin/druid-development/tier/druid-development/1I3CmxlOipM/e3-SpWqG170J</a> (Task Tiering proposal)</p> <p dir="auto"><strong>Related PRs:</strong><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="99725073" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/1609" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/1609/hovercard" href="https://github.com/apache/druid/pull/1609">#1609</a> (kafka simple consumer based firehose and initial FirehoseV2 updates)<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="101709878" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/1639" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/1639/hovercard" href="https://github.com/apache/druid/pull/1639">#1639</a> (new plumber)</p> <p dir="auto"><strong>Related Issues:</strong><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="27918978" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/401" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/401/hovercard" href="https://github.com/apache/druid/issues/401">#401</a> (log management for long-running tasks)<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94845926" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/1513" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/1513/hovercard" href="https://github.com/apache/druid/issues/1513">#1513</a> (preemption for indexing service locks)<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94845936" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/1514" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/1514/hovercard" href="https://github.com/apache/druid/issues/1514">#1514</a> (aggregatorFactories in segment metadata)<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94845941" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/1515" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/1515/hovercard" href="https://github.com/apache/druid/issues/1515">#1515</a> (AllocateSegmentAction)<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94845943" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/1516" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/1516/hovercard" href="https://github.com/apache/druid/issues/1516">#1516</a> (ElasticShardSpec)<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94845965" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/1517" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/1517/hovercard" href="https://github.com/apache/druid/issues/1517">#1517</a> (user-friendly Hadoop-based re-indexing/compaction)</p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df1 = pd.DataFrame([[1, 1]], columns=['x','x']) df2 = pd.DataFrame([[1, 1]], columns=['x','y']) pd.merge(df1, df2, on='x')"><pre class="notranslate"><code class="notranslate">df1 = pd.DataFrame([[1, 1]], columns=['x','x']) df2 = pd.DataFrame([[1, 1]], columns=['x','y']) pd.merge(df1, df2, on='x') </code></pre></div> <p dir="auto">Results in:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;test.py&quot;, line 5, in &lt;module&gt; m = pd.merge(df1, df2, on='x') File &quot;/usr/lib/python3/dist-packages/pandas/tools/merge.py&quot;, line 35, in merge return op.get_result() File &quot;/usr/lib/python3/dist-packages/pandas/tools/merge.py&quot;, line 196, in get_result join_index, left_indexer, right_indexer = self._get_join_info() File &quot;/usr/lib/python3/dist-packages/pandas/tools/merge.py&quot;, line 324, in _get_join_info sort=self.sort, how=self.how) File &quot;/usr/lib/python3/dist-packages/pandas/tools/merge.py&quot;, line 516, in _get_join_indexers llab, rlab, shape = map(list, zip( * map(fkeys, left_keys, right_keys))) File &quot;/usr/lib/python3/dist-packages/pandas/tools/merge.py&quot;, line 681, in _factorize_keys llab = rizer.factorize(lk) File &quot;pandas/hashtable.pyx&quot;, line 850, in pandas.hashtable.Int64Factorizer.factorize (pandas/hashtable.c:15601) ValueError: Buffer has wrong number of dimensions (expected 1, got 2)"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "test.py", line 5, in &lt;module&gt; m = pd.merge(df1, df2, on='x') File "/usr/lib/python3/dist-packages/pandas/tools/merge.py", line 35, in merge return op.get_result() File "/usr/lib/python3/dist-packages/pandas/tools/merge.py", line 196, in get_result join_index, left_indexer, right_indexer = self._get_join_info() File "/usr/lib/python3/dist-packages/pandas/tools/merge.py", line 324, in _get_join_info sort=self.sort, how=self.how) File "/usr/lib/python3/dist-packages/pandas/tools/merge.py", line 516, in _get_join_indexers llab, rlab, shape = map(list, zip( * map(fkeys, left_keys, right_keys))) File "/usr/lib/python3/dist-packages/pandas/tools/merge.py", line 681, in _factorize_keys llab = rizer.factorize(lk) File "pandas/hashtable.pyx", line 850, in pandas.hashtable.Int64Factorizer.factorize (pandas/hashtable.c:15601) ValueError: Buffer has wrong number of dimensions (expected 1, got 2) </code></pre></div> <p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="120236046" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/11754" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/11754/hovercard" href="https://github.com/pandas-dev/pandas/issues/11754">#11754</a></p>
<p dir="auto"><a href="https://stackoverflow.com/questions/50979873/linear-fit-to-pandas-datetime64-values" rel="nofollow">Fitting a linear model to Timestamps currently does not work out of the box.</a><br> and pandas does not support the ols function any further. When using e.g. seaborn to make a fit it throws an error.</p> <blockquote> <p dir="auto">TypeError: reduction operation 'mean' not allowed for this dtype</p> </blockquote> <p dir="auto">I wonder whether the dtype can be change so that mean is supported? And whether this would make it compatible with other packages, such as scikit-learn, seaborn, etc. Also, the mean of some dates could be useful for other use cases. It does make sense to calculate the mean of some dates doesn't it?</p>
0
<p dir="auto">There is an asymmetry to EnterLeave event plugin. Since <code class="notranslate">mouseenter</code> is created from the relativeTarget of the <code class="notranslate">mouseout</code> event it fires even though the target is disabled. Since the <code class="notranslate">mouseleave</code> is the inverse, i.e requires that the disabled element fire a mouseout, it doesn't fire a <code class="notranslate">mouseleave</code> for the disabled element.</p> <p dir="auto">I am pretty sure the correct behavior here is that neither event should fire if its target is disabled, since this mirrors <code class="notranslate">mouseout</code>. No idea if none-chrome browsers have the same behavior for which mouse events fire on disabled elements.</p> <p dir="auto">Additional caveat I just realized, React is probably also not firing <code class="notranslate">mousenter</code> events in the case where the mouse leaves a disabled element into a non disabled element</p>
<p dir="auto">I'm experiencing an unexpected error related to "native" DOM events created in an "owner" component and triggered by DOM elements rendered by "owned" components. There's been a number of seemingly related issues, the closest being <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="72111434" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/3790" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/3790/hovercard" href="https://github.com/facebook/react/issues/3790">#3790</a> - but this might be a different edge case so I thought I'd create a new issue for it.</p> <h3 dir="auto">Reproduction</h3> <p dir="auto">I've tried to whittle this down as much as possible:<br> (The JSFiddle is using 0.13.3, but I get the same error using 0.14.0-beta1)<br> <a href="https://jsfiddle.net/dmininger/8rdqhnox/" rel="nofollow">https://jsfiddle.net/dmininger/8rdqhnox/</a></p> <h4 dir="auto">Steps</h4> <ol dir="auto"> <li>Click "Go to Two"</li> <li>Click "Go to One"</li> <li>Click "Go to Two"</li> </ol> <p dir="auto">The second time component <code class="notranslate">Two</code> is rendered React throws <code class="notranslate">Invariant Violation: ReactMount: Two valid but unequal nodes with the same </code>data-reactid``</p> <h4 dir="auto">Notes</h4> <p dir="auto">As I was trying to narrow down the cause, I found that under the following scenarios <strong>no</strong> error will be thrown:</p> <ol dir="auto"> <li>An onClick prop with an empty function (<code class="notranslate">onClick: function(){}</code>) is added to the "a" element in component <code class="notranslate">One</code>. See <a href="https://jsfiddle.net/dmininger/kx98qfd2/" rel="nofollow">https://jsfiddle.net/dmininger/kx98qfd2/</a></li> <li>The "input" element in component <code class="notranslate">Two</code> is removed (leaving the "form" element). See <a href="https://jsfiddle.net/dmininger/snjb8ysq/" rel="nofollow">https://jsfiddle.net/dmininger/snjb8ysq/</a></li> <li>The return value of the render methods of components <code class="notranslate">One</code> and <code class="notranslate">Two</code> are inlined in the render method of the <code class="notranslate">Main</code> component (i.e. everything is rendered by a single component). See <a href="https://jsfiddle.net/dmininger/3majxxL0/" rel="nofollow">https://jsfiddle.net/dmininger/3majxxL0/</a></li> <li>ONLY WHEN USING 0.14.0-beta1: The "form" element in component <code class="notranslate">Two</code> is removed (leaving the "input" element). (Sorry, no fiddle, is 0.14.0-beta1 on a CDN?) This still throws in 0.13.3.</li> </ol> <p dir="auto">Thanks!</p>
0
<p dir="auto">There are several cases where one property is only required depending on some other properties. It's not possible to use the expression validator in such cases.</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" public function validate($value, Constraint $constraint) { if (null === $value || '' === $value) { return; } // .... }"><pre class="notranslate"> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">validate</span>(<span class="pl-s1"><span class="pl-c1">$</span>value</span>, <span class="pl-smi"><span class="pl-smi">Constraint</span></span> <span class="pl-s1"><span class="pl-c1">$</span>constraint</span>) { <span class="pl-k">if</span> (<span class="pl-c1">null</span> === <span class="pl-s1"><span class="pl-c1">$</span>value</span> || <span class="pl-s">''</span> === <span class="pl-s1"><span class="pl-c1">$</span>value</span>) { <span class="pl-k">return</span>; } <span class="pl-c">// ....</span> }</pre></div> <p dir="auto">Example: I have a state property which is only required if my country property has states.</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;property name=&quot;state&quot;&gt; &lt;constraint name=&quot;Expression&quot;&gt; &lt;option name=&quot;expression&quot;&gt; !this.getCountry().hasStates() or null !== value &lt;/option&gt; &lt;option name=&quot;message&quot;&gt; Please select a state &lt;/option&gt; &lt;/constraint&gt; &lt;/property&gt; "><pre class="notranslate"> &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">constraint</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>Expression<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">option</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>expression<span class="pl-pds">"</span></span>&gt; !this.getCountry().hasStates() or null !== value &lt;/<span class="pl-ent">option</span>&gt; &lt;<span class="pl-ent">option</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>message<span class="pl-pds">"</span></span>&gt; Please select a state &lt;/<span class="pl-ent">option</span>&gt; &lt;/<span class="pl-ent">constraint</span>&gt; &lt;/<span class="pl-ent">property</span>&gt; </pre></div> <p dir="auto">If the state is null, it should raise an error but this will never happen due to the first condition of the validate method.</p>
<p dir="auto">Empty properties are not validated by default:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class ExpressionValidator extends ConstraintValidator public function validate($value, Constraint $constraint) if (null === $value || '' === $value) { return; }"><pre class="notranslate"><code class="notranslate">class ExpressionValidator extends ConstraintValidator public function validate($value, Constraint $constraint) if (null === $value || '' === $value) { return; } </code></pre></div> <p dir="auto">it has sense for serveral validators (Issn, Data, etc), but in case of Expression validator it makes it impossible to use for following case "if other value is provided then this one cannot be empty".<br> Dummy example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Dog { /** * @Assert\NotBlank() */ private $age; /** * @Assert\Expression(&quot;this.getAge() &gt; 10 ? true : this.getName() != '' &quot;, message=&quot;Dog name is required when dog is older then 10 years&quot;) */ private $name; "><pre class="notranslate"><code class="notranslate">class Dog { /** * @Assert\NotBlank() */ private $age; /** * @Assert\Expression("this.getAge() &gt; 10 ? true : this.getName() != '' ", message="Dog name is required when dog is older then 10 years") */ private $name; </code></pre></div> <p dir="auto">So is it bug or feature ;) ?</p>
1
<pre class="notranslate">expvar$ go test -cpu=1,2 2012/06/08 23:38:31 Reuse of exported var name: requests panic: Reuse of exported var name: requests [recovered] panic: Reuse of exported var name: requests parser$ go test -cpu=1,2 panic: testdata/commas.src used multiple times [recovered] panic: testdata/commas.src used multiple times exp/locale/collate/build$ go test -cpu=1,2 --- FAIL: TestConvertLarge-2 (0.00 seconds) builder_test.go:83: 1: unexpected error: found primary weight 4F4F2; should be &lt;= 0xFFFF builder_test.go:86: 1: conversion was [[4f4f2 20 2 2f9b2] [f9b2 0 0 2f9b2]]; want [[4f4f2 20 2 2f9b2]] builder_test.go:83: 4: unexpected error: found primary weight 15FB3F; should be &lt;= 0xFFFF builder_test.go:83: 5: unexpected error: found primary weight 15FB40; should be &lt;= 0xFFFF flag$ go test -cpu=1,2 --- FAIL: TestEverything-2 (0.00 seconds) flag_test.go:58: VisitAll misses some flags flag_test.go:83: Visit fails after set net/http$ go test -cpu=1,2 --- FAIL: TestResponseWrite-2 (0.00 seconds) responsewrite_test.go:100: error writing #0: http: Request.ContentLength=6 with Body length 0 responsewrite_test.go:105: Test 1, expecting: "HTTP/1.0 200 OK\r\n\r\nabcdef" Got: "HTTP/1.0 200 OK\r\n\r\n" responsewrite_test.go:105: Test 2, expecting: "HTTP/1.1 200 OK\r\nConnection: close\r\nTransfer-Encoding: chunked\r\n\r\n6\r\nabcdef\r\n0\r\n\r\n" Got: "HTTP/1.1 200 OK\r\nConnection: close\r\nTransfer-Encoding: chunked\r\n\r\n0\r\n\r\n" panic: http: multiple registrations for / [recovered] panic: http: multiple registrations for / net/smtp$ go test -cpu=1,2 --- FAIL: TestBasic-2 (0.00 seconds) smtp_test.go:92: Expected AUTH supported</pre>
<p dir="auto">Unlink Linux, BSD variants may change their kernel ABIs between major releases as reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51287300" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/7849" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/7849/hovercard" href="https://github.com/golang/go/issues/7849">#7849</a>. To follow the circumstances with minimal maintenance cost, I'd like to propose having an internal package that provides routing message/socket parsers.</p> <p dir="auto">Exposed APIs:</p> <ul dir="auto"> <li>ABI agnostic routing message/socket types</li> <li>Routing message/socket parsers</li> <li>Destination address prefix lookup for helping address selection in net.Dialer</li> </ul> <p dir="auto">It's also fine vendoring "internal/x/golang.org/x/net/internal/route " if possible.</p>
0
<p dir="auto">Usage of the withStyles()-function enforces setting the classes property.</p> <p dir="auto">TS doesn't seem to split <code class="notranslate">WithStyles&lt;ClassKey&gt;</code> from <code class="notranslate">P</code>. This could be seen as a typescript-fault, but I think it can easily be fixed within the type definition.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default function withStyles&lt;ClassKey extends string&gt;( style: StyleRules&lt;ClassKey&gt; | StyleRulesCallback&lt;ClassKey&gt;, options?: WithStylesOptions, ): &lt;P&gt;( component: React.ComponentType&lt;P &amp; WithStyles&lt;ClassKey&gt;&gt;, ) =&gt; React.ComponentType&lt;P &amp; StyledComponentProps&lt;ClassKey&gt;&gt;;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">function</span> <span class="pl-s1">withStyles</span><span class="pl-c1">&lt;</span><span class="pl-smi">ClassKey</span> <span class="pl-k">extends</span> <span class="pl-smi">string</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span> <span class="pl-s1">style</span>: <span class="pl-smi">StyleRules</span><span class="pl-kos">&lt;</span><span class="pl-smi">ClassKey</span><span class="pl-kos">&gt;</span> <span class="pl-c1">|</span> <span class="pl-smi">StyleRulesCallback</span><span class="pl-kos">&lt;</span><span class="pl-smi">ClassKey</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-s1">options</span>?: <span class="pl-smi">WithStylesOptions</span><span class="pl-kos">,</span> <span class="pl-kos">)</span>: <span class="pl-c1">&lt;</span><span class="pl-smi">P</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span> <span class="pl-s1">component</span>: <span class="pl-smi">React</span><span class="pl-kos">.</span><span class="pl-smi">ComponentType</span><span class="pl-kos">&lt;</span><span class="pl-smi">P</span> <span class="pl-c1">&amp;</span> <span class="pl-smi">WithStyles</span><span class="pl-kos">&lt;</span><span class="pl-smi">ClassKey</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">React</span><span class="pl-kos">.</span><span class="pl-smi">ComponentType</span><span class="pl-kos">&lt;</span><span class="pl-smi">P</span> <span class="pl-c1">&amp;</span> <span class="pl-smi">StyledComponentProps</span><span class="pl-kos">&lt;</span><span class="pl-smi">ClassKey</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span></pre></div> <p dir="auto">One could replace</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;P&gt;( component: React.ComponentType&lt;P &amp; WithStyles&lt;ClassKey&gt;&gt;, ) =&gt; React.ComponentType&lt;P &amp; StyledComponentProps&lt;ClassKey&gt;&gt;;"><pre class="notranslate"><code class="notranslate">&lt;P&gt;( component: React.ComponentType&lt;P &amp; WithStyles&lt;ClassKey&gt;&gt;, ) =&gt; React.ComponentType&lt;P &amp; StyledComponentProps&lt;ClassKey&gt;&gt;; </code></pre></div> <p dir="auto">with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { Omit } from 'material-ui/index'; &lt;P extends WithStyles&lt;ClassKey&gt;&gt;( component: React.ComponentType&lt;P&gt; ) =&gt; React.ComponentType&lt;Omit&lt;P, keyof WithStyles&gt;&gt; &amp; StyledComponentProps&lt;ClassKey&gt;;"><pre class="notranslate"><code class="notranslate">import { Omit } from 'material-ui/index'; &lt;P extends WithStyles&lt;ClassKey&gt;&gt;( component: React.ComponentType&lt;P&gt; ) =&gt; React.ComponentType&lt;Omit&lt;P, keyof WithStyles&gt;&gt; &amp; StyledComponentProps&lt;ClassKey&gt;; </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/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> <ul dir="auto"> <li>Compile without error</li> </ul> <h2 dir="auto">Current Behavior</h2> <p dir="auto">(55,17): error TS2322: Type '{}' is not assignable to type '(IntrinsicAttributes &amp; IntrinsicClassAttributes&lt;Component&lt;{ classes: any; } &amp; StyledComponentProp...'.<br> Type '{}' is not assignable to type 'IntrinsicAttributes &amp; { classes: any; } &amp; StyledComponentProps &amp; { children?: ReactNode; }'.<br> Type '{}' is not assignable to type '{ classes: any; }'.<br> Property 'classes' is missing in type '{}'.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const Test = withStyles({})((props: { classes: any }) =&gt; &lt;div/&gt;); const App = () =&gt; &lt;Test /&gt;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-smi">Test</span> <span class="pl-c1">=</span> <span class="pl-en">withStyles</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">props</span>: <span class="pl-kos">{</span> <span class="pl-c1">classes</span>: <span class="pl-smi">any</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-smi">div</span><span class="pl-kos"></span><span class="pl-c1">/</span>&gt;<span class="pl-kos">)</span>; <span class="pl-s1">const</span> <span class="pl-smi">App</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">&lt;</span><span class="pl-smi">Test</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span></pre></div> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.30</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>none / compile-error</td> </tr> <tr> <td>typescript</td> <td>2.6.2</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> <p dir="auto">I did find this: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="220013423" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/6520" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/6520/hovercard" href="https://github.com/mui/material-ui/issues/6520">#6520</a> which made me believe this should partly be solved.</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Current versions of material ui should install in current versions of react without warnings</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Run <code class="notranslate">npm i</code> and see:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm WARN recompose@0.24.0 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself. npm WARN react-event-listener@0.4.5 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself. npm WARN react-transition-group@1.2.0 requires a peer of react@^15.0.0 but none is installed. You must install peer dependencies yourself. npm WARN react-transition-group@1.2.0 requires a peer of react-dom@^15.0.0 but none is installed. You must install peer dependencies yourself."><pre class="notranslate"><code class="notranslate">npm WARN recompose@0.24.0 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself. npm WARN react-event-listener@0.4.5 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself. npm WARN react-transition-group@1.2.0 requires a peer of react@^15.0.0 but none is installed. You must install peer dependencies yourself. npm WARN react-transition-group@1.2.0 requires a peer of react-dom@^15.0.0 but none is installed. You must install peer dependencies yourself. </code></pre></div> <p dir="auto">Check where this comes from:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS C:\Users\alex\apf2&gt; npm list react-event-listener apf2@0.1.0 C:\Users\alex\apf2 `-- material-ui@0.19.3 `-- react-event-listener@0.4.5 PS C:\Users\alex\apf2&gt; npm list recompose apf2@0.1.0 C:\Users\alex\apf2 `-- material-ui@0.19.3 `-- recompose@0.24.0 PS C:\Users\alex\apf2&gt; npm list react-transition-group apf2@0.1.0 C:\Users\alex\apf2 `-- material-ui@0.19.3 `-- react-transition-group@1.2.0"><pre class="notranslate"><code class="notranslate">PS C:\Users\alex\apf2&gt; npm list react-event-listener apf2@0.1.0 C:\Users\alex\apf2 `-- material-ui@0.19.3 `-- react-event-listener@0.4.5 PS C:\Users\alex\apf2&gt; npm list recompose apf2@0.1.0 C:\Users\alex\apf2 `-- material-ui@0.19.3 `-- recompose@0.24.0 PS C:\Users\alex\apf2&gt; npm list react-transition-group apf2@0.1.0 C:\Users\alex\apf2 `-- material-ui@0.19.3 `-- react-transition-group@1.2.0 </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ul dir="auto"> <li>install react and react-dom v16.0.0</li> <li>install material-ui v0.19.3</li> <li>run npm i</li> </ul>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <p dir="auto">1.clone the source pytorch and success build from source<br> 1.load libtorch<br> 1.compile failed</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">When load torch lib with QTCreator in Window 10,compile failed:<br> error LNK2019: unresolved external symbol "public: long * __cdecl at::Tensor::data(void)const " (??$data@J@Tensor@at@@QEBAPEAJXZ) referenced in function "public: class at::TensorAccessor&lt;long,1,struct at::DefaultPtrTraits,__int64&gt; __cdecl at::Tensor::accessor&lt;long,1&gt;(void)const &amp; " (??$accessor@J$00@Tensor@at@@QEGBA?AV?$TensorAccessor@J$00UDefaultPtrTraits@at@@_J@1@XZ)</p> <p dir="auto">my .pro:<br> INCLUDEPATH += D:/app/conda/envs/pytorch/Lib/site-packages/torch/include <br> INCLUDEPATH += D:/app/conda/envs/pytorch/Lib/site-packages/torch/include/torch <br> INCLUDEPATH += D:/app/conda/envs/pytorch/Lib/site-packages/torch/include/torch/csrc/api/include <br> INCLUDEPATH += D:/app/conda/envs/pytorch/Lib/site-packages/torch/include/ATen</p> <p dir="auto">LIBS += -LD:/app/conda/envs/pytorch/Lib/site-packages/torch/lib <br> -lc10 -lc10_cuda -ltorch -ltorch_python -l_C <br> -lcaffe2_detectron_ops_gpu -lcaffe2_module_test_dynamic <br> -lfoxi_dummy -lonnxifi_dummy -lonnxifi_loader -lfoxi_loader -lonnx -lonnx_proto <br> -lshm -lcaffe2_observers -lcaffe2_detectron_ops_gpu -lcaffe2_nvrtc <br> -lcaffe2 -lcaffe2_gpu -lclog -lcpuinfo <br> -lcaffe2_module_test_dynamic -lthnvrtc -llibprotoc -llibprotobuf -llibprotobuf-lite</p> <h2 dir="auto">Environment</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> (or fill out the checklist below manually).</p> <p dir="auto">You can get the script and run it with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py </code></pre></div> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): PyTorch 1.2.0a0+b1bf16e</li> <li>OS (e.g., Linux): Window10</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): source</li> <li>Build command you used (if compiling from source): python setup.py install</li> <li>Python version: Python 3.6.8</li> <li>CUDA/cuDNN version: CUDA 9.0/cuDnn 7.5</li> <li>GPU models and configuration:</li> <li>Any other relevant information:</li> </ul> <h2 dir="auto">Additional context</h2>
<p dir="auto">I AM trying to execute buid_and_install.sh from github <a href="https://github.com/sshaoshuai/PointRCNN">https://github.com/sshaoshuai/PointRCNN</a> on windows10, pytorch 1.1, gcc 8.1.0, VS2017<br> the second task, iou3d.<br> I met problem of unresolved external symbol, "public: long * __cdecl at::Tensor::data(void)const "<br> ALL THESE libs have been found, cudart.lib c10.lib c10_cuda.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib, but I think I DO miss one lib, according to the problem.<br> is it possible that the author use pytorch 1.0?<br> and I have read quite a lot issue with error LNK2001, BUT no idea how to solve mine<br> plz, help...</p>
1
<h2 dir="auto">allow to assign shortcut or key to a string</h2> <p dir="auto">It would be nice to improve keyboard manager to allow us to assign a shortcut/key to a string.</p> <p dir="auto">An exemple of problem it can solve : for markdown stuff, we have to use often tree backticks. It's not a problem on english qwerty keyboard, but for french azerty keyboard (and probably other non english keyboards), it's a real pain.</p> <ul dir="auto"> <li>We have to use [ALT GR] + [7] + then [space] ton generate a single backtick.</li> <li>We have to use [ALT GR] + [7] +[ALTR GR] + [7] +[ALTR GR] + [7] + then [space] to generate three backticks.</li> </ul> <p dir="auto">So we could for example use [CTRL] + [7] to generate 3 backticks. And if I always write "Regards," at the end of my email, I could assign [CTRL]+[SHIFT]+[R] to the string "Regards," and save time.</p> <p dir="auto">I think that it's a simple way of working and can help in various situations and not only help frenchies developers with the three backticks markdown stuffs :-)</p> <hr> <p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p>
<p dir="auto">I would like to use Keyboard Manager to map some shortcuts to keys that currently are accessible only from the "Windows Character Map" application. Specifically I would like to map <code class="notranslate">AltGr + '</code> to <code class="notranslate">`</code> and <code class="notranslate">AltGr + ì</code> to <code class="notranslate">~</code>.<br> I know that the Keyboard Manager enables only to map to keyboard keys, but allowing also custom characters would be such a great feature for a programmer.</p>
1
<h3 dir="auto">Website or app</h3> <p dir="auto">Please checkout the linked branch not <code class="notranslate">main</code><br> <a href="https://github.com/eps1lon/react-devtools-repro-no-matching-node/tree/repro/elements-leaking">https://github.com/eps1lon/react-devtools-repro-no-matching-node/tree/repro/elements-leaking</a><br> Repro steps and screen recording included in the repro</p> <h3 dir="auto">Repro steps</h3> <ol dir="auto"> <li>Clone repro</li> <li>yarn</li> <li>yarn start</li> <li>Open app page</li> <li>open devtools</li> <li>Uncomment the <code class="notranslate">useEffect</code> block i.e. add an effect</li> <li>inspect <code class="notranslate">Component</code> element</li> <li>comment <code class="notranslate">useEffect</code> block i.e. remove the effect</li> <li>Repeat comment/uncomment to see that children grow indefinitely</li> </ol> <h3 dir="auto">How often does this bug happen?</h3> <p dir="auto">Every time</p> <h3 dir="auto">DevTools package (automated)</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">DevTools version (automated)</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Error message (automated)</h3> <p dir="auto">Could not inspect element with id 4</p> <h3 dir="auto">Error call stack (automated)</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Error component stack (automated)</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">GitHub query string (automated)</h3> <p dir="auto"><em>No response</em></p> <p dir="auto">Might be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="876702858" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/21436" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/21436/hovercard?comment_id=835406075&amp;comment_type=issue_comment" href="https://github.com/facebook/react/issues/21436#issuecomment-835406075">#21436 (comment)</a> since the repro steps are the same. But depending on what the effect is doing, the behavior is different.</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> how about an answer....</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">40,0000 foot high level of frustration not relieved by reading over 100 different articles, doc articles, 4 pluralsight courses, stack overflow answers and many other useless leads.</p> <p dir="auto">**code provided</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class firstComponent extends Component{ render(){ return( &lt;div&gt; &lt;h1&gt;my first component&lt;/h1&gt; &lt;Button /&gt; &lt;/div&gt; ) } } export default firstComponent; class Button extends Component{ constructor(props){ super(props); console.log('handleClick'); this.state = {counter: 25}; } handleClick(e){ e.preventDefault(); console.log('Button:handleClick'); this.state = {counter: 10}; THIS DOESN'T WORK ' } render(){ // console.log(this.state.counter); var counter = 15; return ( &lt;div&gt; &lt;h1&gt;Button: component&lt;/h1&gt; &lt;h1&gt;{this.props.counter}&lt;/h1&gt; &lt;button onClick={this.handleClick}&gt;{this.state.counter}&lt;/button&gt; this crap doesn't work either.' &lt;h1&gt;{this.props.counter}&lt;/h1&gt; &lt;/div&gt; ) } } export default Button;"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-s1">firstComponent</span> <span class="pl-k">extends</span> <span class="pl-v">Component</span><span class="pl-kos">{</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-k">return</span><span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span>my first component<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Button</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</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-k">export</span> <span class="pl-k">default</span> <span class="pl-s1">firstComponent</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-v">Button</span> <span class="pl-k">extends</span> <span class="pl-v">Component</span><span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">props</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-s">'handleClick'</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">state</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-c1">counter</span>: <span class="pl-c1">25</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">handleClick</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">e</span><span class="pl-kos">.</span><span class="pl-en">preventDefault</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Button:handleClick'</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">state</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-c1">counter</span>: <span class="pl-c1">10</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c1">THIS</span> <span class="pl-c1">DOESN</span><span class="pl-s">'T WORK '</span> <span class="pl-kos">}</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-c">// console.log(this.state.counter);</span> <span class="pl-k">var</span> <span class="pl-s1">counter</span> <span class="pl-c1">=</span> <span class="pl-c1">15</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span>Button: component<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">counter</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleClick</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">counter</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> this crap doesn't work either.' <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">counter</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</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-k">export</span> <span class="pl-k">default</span> <span class="pl-v">Button</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong><br> Something that works as good a plain HTML (maybe that's what I should be using.<br> **React v15, chrome browser, edge, FF / Windows 10</p> <p dir="auto">This works in previous versions of React using the var foo = React.createClass({})** but have not been able to get to work with the new class version and I can't find ANY examples that work and have been trying for well over a week. I need to start migrating some react modules from v0.13 to v15 but this is telling me I should give up and move on...</p> <p dir="auto">React may be fast but it's a PITA to start with and to update your knowledge and the glorified DOCS don't help</p>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.1.2</li> <li>Operating System / Platform =&gt; Linux armv7l</li> <li>Compiler =&gt; GCC 8.3.0</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Upon trying to create a VideoCapture or VideoWriter object using the GStreamer backend, the Python interpreter freezes indefinitely.</p> <h5 dir="auto">Steps to reproduce</h5> <ol dir="auto"> <li>Compile OpenCV with GStreamer support. May also need to be on an ARM platform.</li> <li>Open the python3 interpreter.</li> <li>import cv2 and create a new VideoCapture or VideoWriter object using the GStreamer backend.</li> <li>Press Ctrl+C.</li> <li>Errors will appear. After this point, only a <code class="notranslate">kill -9</code> will stop the process.</li> </ol> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pi@opensight:~ $ python3 Python 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.2.0] on linux Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import cv2 &gt;&gt;&gt; x = cv2.VideoCapture(1) ^C (python3:1013): GStreamer-CRITICAL **: 03:20:46.243: Trying to dispose element pipeline0, but it is in PAUSED instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element. [ WARN:0] global /home/pi/opencv/opencv-4.1.2/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline (python3:1013): GStreamer-CRITICAL **: 03:20:46.244: Trying to dispose element videoconvert0, but it is in PLAYING instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element. [ WARN:0] global /home/pi/opencv/opencv-4.1.2/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created (python3:1013): GStreamer-CRITICAL **: 03:20:46.244: Trying to dispose element appsink0, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element."><pre class="notranslate"><code class="notranslate">pi@opensight:~ $ python3 Python 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import cv2 &gt;&gt;&gt; x = cv2.VideoCapture(1) ^C (python3:1013): GStreamer-CRITICAL **: 03:20:46.243: Trying to dispose element pipeline0, but it is in PAUSED instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element. [ WARN:0] global /home/pi/opencv/opencv-4.1.2/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline (python3:1013): GStreamer-CRITICAL **: 03:20:46.244: Trying to dispose element videoconvert0, but it is in PLAYING instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element. [ WARN:0] global /home/pi/opencv/opencv-4.1.2/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created (python3:1013): GStreamer-CRITICAL **: 03:20:46.244: Trying to dispose element appsink0, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element. </code></pre></div>
<p dir="auto">Basically, this is a GSoC project which has not been applied this year:</p> <p dir="auto">We want to see some kind of higher level API which can manage DL networks. There are several criterias for now:</p> <ul dir="auto"> <li>Hide asynchronous inference management internally. User just choose the number of requests (what about heterogenous scenario? In example, use both GPU and VPU with specific number of requestst for each other).</li> <li>Models from <a href="https://github.com/opencv/opencv/blob/master/samples/dnn/models.yml">https://github.com/opencv/opencv/blob/master/samples/dnn/models.yml</a> should be downloaded automatically in samples. Can we also introduce some kind of new automatically generated classes definitions for them? I.e.:</li> </ul> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CV_EXPORTS_W YOLOv3 : public Model { YOLOv3(const std::string&amp; model = &quot;yolov3.weights&quot;, const std::string&amp; config= &quot;yolov3.cfg&quot;, int weight = 416, int height = 416, Scalar mean = Scalar(), float scale = 0.00392); };"><pre class="notranslate">CV_EXPORTS_W YOLOv3 : public Model { <span class="pl-c1">YOLOv3</span>(<span class="pl-k">const</span> std::string&amp; model = <span class="pl-s"><span class="pl-pds">"</span>yolov3.weights<span class="pl-pds">"</span></span>, <span class="pl-k">const</span> std::string&amp; config= <span class="pl-s"><span class="pl-pds">"</span>yolov3.cfg<span class="pl-pds">"</span></span>, <span class="pl-k">int</span> weight = <span class="pl-c1">416</span>, <span class="pl-k">int</span> height = <span class="pl-c1">416</span>, Scalar mean = <span class="pl-c1">Scalar</span>(), <span class="pl-k">float</span> scale = <span class="pl-c1">0.00392</span>); };</pre></div> <p dir="auto">User do not need to care about input's preprocessing. We can do it automatically. The base class can find the files (already implemented) or download if there are no (need to do).</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Model : public Net { Model(const std::string&amp; model, const std::string&amp; config = &quot;&quot;, int weight = -1, int height = -1, Scalar mean = Scalar(), float scale = 1.0); // Overridden version which accepts frame and can make blob. void setInput(); };"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-en">Model</span> : <span class="pl-k">public</span> <span class="pl-en">Net</span> { <span class="pl-en">Model</span>(<span class="pl-k">const</span> std::string&amp; model, <span class="pl-k">const</span> std::string&amp; config = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>, <span class="pl-k">int</span> weight = -<span class="pl-c1">1</span>, <span class="pl-k">int</span> height = -<span class="pl-c1">1</span>, Scalar mean = Scalar(), <span class="pl-k">float</span> scale = <span class="pl-c1">1.0</span>); <span class="pl-c"><span class="pl-c">//</span> Overridden version which accepts frame and can make blob.</span> <span class="pl-k">void</span> <span class="pl-en">setInput</span>(); };</pre></div> <ul dir="auto"> <li>We can add some methods to simplify postprocessing (i.e. detect type of output layer for detection network as we do in object detection samples):</li> </ul> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="void detect(std::vector&lt;float&gt;&amp; confidences, std::vector&lt;Rect&gt;&amp; boxes, float confThreshold, float nmsThreshold);"><pre class="notranslate"><span class="pl-k">void</span> <span class="pl-en">detect</span>(std::vector&lt;<span class="pl-k">float</span>&gt;&amp; confidences, std::vector&lt;<span class="pl-c1">Rect</span>&gt;&amp; boxes, <span class="pl-k">float</span> confThreshold, <span class="pl-k">float</span> nmsThreshold);</pre></div> <p dir="auto">So instead doing <code class="notranslate">forward</code> with postprocessing and can just call <code class="notranslate">detect</code> and then manage the predictions (i.e. draw it on the frame).</p> <ul dir="auto"> <li></li> </ul>
0
<p dir="auto">It follows <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44694367" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/12099" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/12099/hovercard" href="https://github.com/symfony/symfony/issues/12099">#12099</a>.</p> <p dir="auto">This matcher is IMO really dirty.</p> <p dir="auto">It searches for routes with a whole bunch of methods, hosts and all, and even if each route is different in its requirements, we know that there are a "fix" amount of requirement types which can all have their own "priority", each with a wildcard <code class="notranslate">*</code> to allow non-required elements.</p> <p dir="auto">Here is an example of a priority usage (all beginning with wilcard check, and after that, specific check):</p> <ul dir="auto"> <li>host <ul dir="auto"> <li>prefix <ul dir="auto"> <li>methods <ul dir="auto"> <li>requirements</li> </ul> </li> </ul> </li> </ul> </li> </ul> <p dir="auto">This may creates a few duplicates for multiple methods, but it may get rid of these old and dirty <code class="notranslate">goto</code> inside the matcher for example. The best point IMO is that it would really more "flatten" the matcher.</p> <p dir="auto">I don't know if this issue is relevant enough for Symfony, but feel free to close it if it really does not suit :)</p>
<p dir="auto">Currently, decorating event listeners (<code class="notranslate">kernel.event_listener</code>) makes the decorated service private:<br> <a href="https://github.com/symfony/dependency-injection/blob/5d4f4ff02a3a5b24a7c81bb7e22f2e57c7526ee2/Compiler/DecoratorServicePass.php#L47-L58">https://github.com/symfony/dependency-injection/blob/5d4f4ff02a3a5b24a7c81bb7e22f2e57c7526ee2/Compiler/DecoratorServicePass.php#L47-L58</a><br> resulting in an exception being thrown here:<br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/symfony/symfony/blob/94078a09aceeb5b890288a4ae088c5aeee0b1724/src/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php#L61-L63">symfony/src/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php</a> </p> <p class="mb-0 color-fg-muted"> Lines 61 to 63 in <a data-pjax="true" class="commit-tease-sha" href="/symfony/symfony/commit/94078a09aceeb5b890288a4ae088c5aeee0b1724">94078a0</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="L61" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="61"></td> <td id="LC61" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (!<span class="pl-s1"><span class="pl-c1">$</span>def</span>-&gt;<span class="pl-en">isPublic</span>()) { </td> </tr> <tr class="border-0"> <td id="L62" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="62"></td> <td id="LC62" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">throw</span> <span class="pl-k">new</span> \<span class="pl-v">InvalidArgumentException</span>(sprintf(<span class="pl-s">'The service "%s" must be public as event listeners are lazy-loaded.'</span>, <span class="pl-s1"><span class="pl-c1">$</span>id</span>)); </td> </tr> <tr class="border-0"> <td id="L63" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="63"></td> <td id="LC63" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">This makes it impossible to decorate event listeners. (Also, I can't find any tests of decorating event listeners. Are there any?)</p>
0
<p dir="auto">When I update, I'd expect my tab state to be saved so that when it restarted, the tabs that were open are reopened.</p> <p dir="auto">When that failed, I'd expect to be able to open the last item. The menu item was available, but when I tried, it simply opened a blank editor window.</p>
<p dir="auto">A feature I love about ST2 and iA Writer, which I'm missing in Atom, is when you quit the app with open windows (including unsaved documents), they all appear again when you reopen.</p> <p dir="auto">This has saved me countless times in my workflow to handle having to do a system restart for software update, etc and not have to take time to save all my unsaved docs, etc.</p> <p dir="auto">It's also nice because I generally have five or six open projects that I just keep minimized in the editor for ease of access. It would be great to have such a feature in Atom.</p>
1
<p dir="auto"><strong>Describe the bug</strong><br> applying a query string parameter ("onlyApproved=true" in this instance), is throwing <code class="notranslate">URL contains XSS injection attempt</code>.</p> <p dir="auto"><strong>To Reproduce</strong><br> perform an <code class="notranslate">axios.get</code> request (not tried any other methods) with any query string parameter beginning with <code class="notranslate">on</code>.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="https://randomdomain.com/api/endpoint?onlyRandomThings=true"><pre class="notranslate">https:<span class="pl-c">//randomdomain.com/api/endpoint?onlyRandomThings=true</span><span class="pl-kos"></span></pre></div> <p dir="auto"><strong>Expected behavior</strong><br> This should not be caught as valid XSS.</p> <p dir="auto"><strong>Environment:</strong></p> <ul dir="auto"> <li>Axios Version [0.19.1]</li> <li>OS: [Windows 10 Professional]</li> <li>Browser [all]</li> <li>Browser Version [all]</li> <li>Additional Library Versions [React 16.12]</li> </ul>
<p dir="auto">It seems that axios v0.19.1 introduced a new bug.</p> <p dir="auto">The bug comes from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="506498428" data-permission-text="Title is private" data-url="https://github.com/axios/axios/issues/2464" data-hovercard-type="pull_request" data-hovercard-url="/axios/axios/pull/2464/hovercard" href="https://github.com/axios/axios/pull/2464">#2464</a></p> <p dir="auto">All urls containing <code class="notranslate">javascript</code>keyword is throwing XSS error. So, all following urls cannot be used in axios any more:</p> <ul dir="auto"> <li><a href="https://www.javascript.com" rel="nofollow">https://www.javascript.com</a></li> <li><a href="https://stackoverflow.com/questions/tagged/javascript" rel="nofollow">https://stackoverflow.com/questions/tagged/javascript</a></li> <li><a href="https://www.google.com/search?q=javascript" rel="nofollow">https://www.google.com/search?q=javascript</a></li> </ul> <p dir="auto">Here is a link to regexp: <a href="https://regexr.com/4rsst" rel="nofollow">https://regexr.com/4rsst</a></p> <p dir="auto">Expected behavior: axios should accept <code class="notranslate">javascript</code> in urls</p>
1
<p dir="auto">I have strange results from <code class="notranslate">.equals</code> appearing when DataFrame is written to HDF Store and then read back:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd df = pd.DataFrame({'B':[1,2], 'A':[str('x'), str('y')]}) # str() - just to be sure this is not linked to unicode print 'df:' print df df.to_hdf('hdf_file', 'key', format='t', mode='w') df_out = pd.read_hdf('hdf_file', 'key') print '\ndf_out:' print df_out print '\ndf equals df_out:', df.equals(df_out) print '\ndf_out equals df:', df_out.equals(df) print '\ndf.shape == df_out.shape:', df.shape == df_out.shape print '\narray_equivalent(df.values, df_out.values):', pd.core.common.array_equivalent(df.values, df_out.values) print '\ndf.index equals df_out.index:', df.index.equals(df_out.index) print '\ndf.columns equals df_out.columns:', df.columns.equals(df_out.columns) for col in df.columns: print '\ndf.{0} equals df_out.{0}: {1}'.format(col, df[col].equals(df_out[col]))"><pre class="notranslate"><code class="notranslate">import pandas as pd df = pd.DataFrame({'B':[1,2], 'A':[str('x'), str('y')]}) # str() - just to be sure this is not linked to unicode print 'df:' print df df.to_hdf('hdf_file', 'key', format='t', mode='w') df_out = pd.read_hdf('hdf_file', 'key') print '\ndf_out:' print df_out print '\ndf equals df_out:', df.equals(df_out) print '\ndf_out equals df:', df_out.equals(df) print '\ndf.shape == df_out.shape:', df.shape == df_out.shape print '\narray_equivalent(df.values, df_out.values):', pd.core.common.array_equivalent(df.values, df_out.values) print '\ndf.index equals df_out.index:', df.index.equals(df_out.index) print '\ndf.columns equals df_out.columns:', df.columns.equals(df_out.columns) for col in df.columns: print '\ndf.{0} equals df_out.{0}: {1}'.format(col, df[col].equals(df_out[col])) </code></pre></div> <p dir="auto">output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df: A B 0 x 1 1 y 2 df_out: A B 0 x 1 1 y 2 df equals df_out: False df_out equals df: False df.shape == df_out.shape: True array_equivalent(df.values, df_out.values): True df.index equals df_out.index: True df.columns equals df_out.columns: True df.A equals df_out.A: True df.B equals df_out.B: True"><pre class="notranslate"><code class="notranslate">df: A B 0 x 1 1 y 2 df_out: A B 0 x 1 1 y 2 df equals df_out: False df_out equals df: False df.shape == df_out.shape: True array_equivalent(df.values, df_out.values): True df.index equals df_out.index: True df.columns equals df_out.columns: True df.A equals df_out.A: True df.B equals df_out.B: True </code></pre></div> <p dir="auto">The interesting thing is that if DataFrame is initialized with different columns "order" in the dictionary the results are ALL True (i.e. correct):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df = pd.DataFrame({'A':[1,2], 'B':[str('x'),str('y')]}) # in the code above"><pre class="notranslate"><code class="notranslate">df = pd.DataFrame({'A':[1,2], 'B':[str('x'),str('y')]}) # in the code above </code></pre></div> <p dir="auto">will give:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df equals df_out: True df_out equals df: True"><pre class="notranslate"><code class="notranslate">df equals df_out: True df_out equals df: True </code></pre></div> <p dir="auto">I have seen similar issues (<a href="https://github.com/pydata/pandas/issues/8437" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/8437/hovercard">#8437</a> and <a href="https://github.com/pydata/pandas/issues/7605" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/7605/hovercard">#7605</a>), which are marked as closed, but seeing this strange results... might be something different?</p> <p dir="auto">python 2.7.9, pandas 0.15.2</p> <p dir="auto">My apologies in advance for potential duplicate.</p>
<p dir="auto">Installed latest version of pandas 0.9.0 in case this was an error<br> Trying to read Excel file. That part seems ok.<br> Originally, I was trying iteritems() for each row of the pandas dataframe, as the id_company had to be verified against a mysql database (code not included). Same/similar error message to putting it into a tuple (code is below). Error message follows.</p> <p dir="auto">Note there is a .reindex() but it didn't work before, either. The reindex() was kind of a hail-mary.</p> <p dir="auto">As a work-around, I'm probably going to simply import from my target sql and do a join. I'm concerned because of the size of the datasets.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd def runNow(): #identify sheet source = 'C:\Users\jlalonde\Desktop\startup_geno\startupgenome_w_id_xl_20121109.xlsx' xls_file = pd.ExcelFile(source) sd = xls_file.parse('Sheet1') source_u = sd.drop_duplicates(cols = 'id_company', take_last=False) source_r = source_u[['id_company','id_good','description', 'website','keyword', 'company_name','founded_month', 'founded_year', 'description']] source_i = source_r.reindex() #hail mary tup_r = [tuple(x) for x in source_i.values] Traceback (most recent call last): File &quot;&lt;pyshell#10&gt;&quot;, line 1, in &lt;module&gt; sg_sql_2.runNow() File &quot;sg_sql_2.py&quot;, line 31, in runNow tup_r = [tuple(x) for x in source_r.values] File &quot;C:\Python27\lib\site-packages\pandas\core\frame.py&quot;, line 1443, in as_matrix return self._data.as_matrix(columns).T File &quot;C:\Python27\lib\site-packages\pandas\core\internals.py&quot;, line 723, in as_matrix mat = self._interleave(self.items) File &quot;C:\Python27\lib\site-packages\pandas\core\internals.py&quot;, line 743, in _interleave indexer = items.get_indexer(block.items) File &quot;C:\Python27\lib\site-packages\pandas\core\index.py&quot;, line 748, in get_indexer raise Exception('Reindexing only valid with uniquely valued Index ' Exception: Reindexing only valid with uniquely valued Index objects"><pre class="notranslate"><code class="notranslate">import pandas as pd def runNow(): #identify sheet source = 'C:\Users\jlalonde\Desktop\startup_geno\startupgenome_w_id_xl_20121109.xlsx' xls_file = pd.ExcelFile(source) sd = xls_file.parse('Sheet1') source_u = sd.drop_duplicates(cols = 'id_company', take_last=False) source_r = source_u[['id_company','id_good','description', 'website','keyword', 'company_name','founded_month', 'founded_year', 'description']] source_i = source_r.reindex() #hail mary tup_r = [tuple(x) for x in source_i.values] Traceback (most recent call last): File "&lt;pyshell#10&gt;", line 1, in &lt;module&gt; sg_sql_2.runNow() File "sg_sql_2.py", line 31, in runNow tup_r = [tuple(x) for x in source_r.values] File "C:\Python27\lib\site-packages\pandas\core\frame.py", line 1443, in as_matrix return self._data.as_matrix(columns).T File "C:\Python27\lib\site-packages\pandas\core\internals.py", line 723, in as_matrix mat = self._interleave(self.items) File "C:\Python27\lib\site-packages\pandas\core\internals.py", line 743, in _interleave indexer = items.get_indexer(block.items) File "C:\Python27\lib\site-packages\pandas\core\index.py", line 748, in get_indexer raise Exception('Reindexing only valid with uniquely valued Index ' Exception: Reindexing only valid with uniquely valued Index objects </code></pre></div>
0
<p dir="auto">In Bootstrap 3.2.0 it is at the moment possible to have more accordion items at once open. But normally only entry should be open.</p> <p dir="auto">How i made this:</p> <ol dir="auto"> <li>Normal Click on accordion item "<code class="notranslate">Collapsible Group Item #3</code>"</li> <li>Fast Click on accordion item "<code class="notranslate">Collapsible Group Item #2</code>"</li> <li>Fast Click on accordion item "<code class="notranslate">Collapsible Group Item #1</code>" (as soon as possible after step 2))</li> </ol> <p dir="auto">Result (Image below -&gt; two open accordion items):<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5426291/4476585/50a8b87a-4977-11e4-95f5-0427e3048db5.jpg"><img src="https://cloud.githubusercontent.com/assets/5426291/4476585/50a8b87a-4977-11e4-95f5-0427e3048db5.jpg" alt="accordion" style="max-width: 100%;"></a></p>
<p dir="auto">Step 1. Navigate to this page: <a href="http://getbootstrap.com/javascript/#collapse" rel="nofollow">http://getbootstrap.com/javascript/#collapse</a><br> Step 2. Click on one of the links that trigger opening of the accordion sections (ie. Collapsible Group Item <code class="notranslate">#1</code>)<br> Step 3. Before the section's opening animation has a chance to complete (the one from 'Step 2' above) click on a different link to trigger opening a second panel (ie. Collapsible Group Item <code class="notranslate">#2</code>)</p> <p dir="auto">At this point you should see that you have two accordion panels open at the same time.</p>
1
<ul dir="auto"> <li>Electron version: 1.1.0</li> <li>Operating system: Windows</li> </ul> <p dir="auto">This release contains the Visual C++ 2013 runtimes instead of Visual C++ 2015 runtimes.</p>
<ul dir="auto"> <li>Electron version: 1.8.4</li> <li>Operating system: Windows 10 version 1803</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Frameless applications without a titlebar should have the context menu (accessible with Shift+Right Click) on the taskbar:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10274434/38420464-b38aa49a-399b-11e8-97b5-83cd10e3de40.png"><img src="https://user-images.githubusercontent.com/10274434/38420464-b38aa49a-399b-11e8-97b5-83cd10e3de40.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Due to the lack of the titlebar on frameless applications, this menu does not appear. There also doesn't seem to be any API that would let devs add the context menu while keeping the app frameless.</p> <p dir="auto">Shift + right clicking on frameless apps doesn't show anything and prevents the end user from restoring the window or move the app around when it is off screen (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="244924404" data-permission-text="Title is private" data-url="https://github.com/desktop/desktop/issues/2311" data-hovercard-type="issue" data-hovercard-url="/desktop/desktop/issues/2311/hovercard" href="https://github.com/desktop/desktop/issues/2311">desktop/desktop#2311</a>)</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Shift + Right Click on a frameless app on the taskbar</p>
0
<p dir="auto">Every node on GCE by default has cAdvisor, fluentd-es running as pod. We are going to put etcd server into a pod soon, and other master components into pods later. Those pods are pre-provisioned, and not through apiserver, and scheduler, I called them "static" pods.</p> <p dir="auto">Today, kubelet does generate events related to those static pods, and push them to etcd. But there is no way to query those pods config from clients, and static pods in crashloop cannot be detected easily because apiserver doesn't aware of them.</p> <p dir="auto">Also those pods do consume resources, and without awareness of static pods on a node, scheduler might overcommit a node easily.</p> <p dir="auto">We should have a mechanism defined for kubelet to sync back to master with those static Pods.</p> <p dir="auto">cc/ <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bgrant0607/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bgrant0607">@bgrant0607</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thockin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thockin">@thockin</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/brendandburns/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/brendandburns">@brendandburns</a></p>
<p dir="auto"><a href="https://storage.cloud.google.com/kubernetes-jenkins/pr-logs/pull/25701/node-pull-build-e2e-test/7060/build-log.txt" rel="nofollow">https://storage.cloud.google.com/kubernetes-jenkins/pr-logs/pull/25701/node-pull-build-e2e-test/7060/build-log.txt</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="------------------------------ • Failure [20.010 seconds] Container runtime Conformance Test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:314 container runtime conformance blackbox test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:313 when running a container with invalid image /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:306 it should run with the expected status [Conformance] [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:305 Expected error: &lt;*errors.errorString | 0xc82039fb20&gt;: { s: &quot;Failed to get container status&quot;, } Failed to get container status not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:287 ------------------------------ STEP: Creating a host exec pod • Failure [120.071 seconds] PrivilegedPod /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/privileged_test.go:83 should test privileged pod [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/privileged_test.go:82 Failed waiting for pod &quot;privileged-pods/hostexec&quot; to become running: Time out while waiting for pod privileged-pods/hostexec to become running; current status: {Phase:Pending Conditions:[] Message: Reason: HostIP: PodIP: StartTime:&lt;nil&gt; InitContainerStatuses:[] ContainerStatuses:[]} Expected error: &lt;*errors.errorString | 0xc8204dd330&gt;: { s: &quot;Time out while waiting for pod privileged-pods/hostexec to become running; current status: {Phase:Pending Conditions:[] Message: Reason: HostIP: PodIP: StartTime:&lt;nil&gt; InitContainerStatuses:[] ContainerStatuses:[]}&quot;, } Time out while waiting for pod privileged-pods/hostexec to become running; current status: {Phase:Pending Conditions:[] Message: Reason: HostIP: PodIP: StartTime:&lt;nil&gt; InitContainerStatuses:[] ContainerStatuses:[]} not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/privileged_test.go:210 ------------------------------ W0520 22:12:02.102156 932 request.go:347] Field selector: v1 - pods - metadata.name - busybox-scheduling-b70d3785-1ed6-11e6-bc67-42010af00031: need to check if this is versioned correctly. STEP: Building a namespace api object May 20 22:12:02.088: INFO: Skipping waiting for service account May 20 22:17:02.103: INFO: Unexpected error occurred: timed out waiting for the condition STEP: Collecting resource usage data May 20 22:17:02.111: INFO: Closed stop channel. Waiting for 1 workers May 20 22:17:02.111: INFO: Closing worker for tmp-node-e2e-9a70fd3b-e2e-node-coreos-stable20160218-image May 20 22:17:02.111: INFO: Waitgroup finished. May 20 22:17:02.111: INFO: Unknown output type: . Skipping. May 20 22:17:02.111: INFO: Waiting up to 1m0s for all nodes to be ready May 20 22:17:02.114: INFO: Found DeleteNamespace=false, skipping namespace deletion! • Failure [300.029 seconds] [k8s.io] Kubelet /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:508 when scheduling a busybox command in a pod /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:81 it should print the output to logs [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:80 Expected error: &lt;*errors.errorString | 0xc82000fea0&gt;: { s: &quot;timed out waiting for the condition&quot;, } timed out waiting for the condition not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:68 ------------------------------ STEP: Building a namespace api object May 20 22:17:02.117: INFO: Skipping waiting for service account STEP: Collecting resource usage data May 20 22:18:02.128: INFO: Closed stop channel. Waiting for 1 workers May 20 22:18:02.128: INFO: Closing worker for tmp-node-e2e-9a70fd3b-e2e-node-coreos-stable20160218-image May 20 22:18:02.128: INFO: Waitgroup finished. May 20 22:18:02.128: INFO: Unknown output type: . Skipping. May 20 22:18:02.128: INFO: Waiting up to 1m0s for all nodes to be ready May 20 22:18:02.132: INFO: Found DeleteNamespace=false, skipping namespace deletion! • Failure [60.018 seconds] [k8s.io] Kubelet /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:508 when scheduling a read only busybox container /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:124 it should not write to root filesystem [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:123 Timed out after 60.000s. Expected &lt;string&gt;: to equal &lt;string&gt;: sh: can't create /file: Read-only file system /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:122 ------------------------------ W0520 22:18:02.140060 932 request.go:347] Field selector: v1 - pods - metadata.name - stats-busybox-b77a134c-1ed8-11e6-bc67-42010af000310: need to check if this is versioned correctly. STEP: Building a namespace api object May 20 22:18:02.134: INFO: Skipping waiting for service account May 20 22:23:02.140: INFO: Unexpected error occurred: timed out waiting for the condition STEP: Collecting resource usage data May 20 22:23:02.141: INFO: Closed stop channel. Waiting for 1 workers May 20 22:23:02.141: INFO: Closing worker for tmp-node-e2e-9a70fd3b-e2e-node-coreos-stable20160218-image May 20 22:23:02.141: INFO: Waitgroup finished. May 20 22:23:02.141: INFO: Unknown output type: . Skipping. May 20 22:23:02.141: INFO: Waiting up to 1m0s for all nodes to be ready May 20 22:23:02.143: INFO: Found DeleteNamespace=false, skipping namespace deletion! • Failure [300.011 seconds] [k8s.io] Kubelet /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:508 metrics api /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:165 when querying /stats/summary /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:164 it should report resource usage through the stats api [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:163 Expected error: &lt;*errors.errorString | 0xc82000fea0&gt;: { s: &quot;timed out waiting for the condition&quot;, } timed out waiting for the condition not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:216 ------------------------------ E0520 22:25:02.144225 932 manager.go:226] Failed to execute Info() call to the Docker client: operation timeout: context deadline exceeded W0520 22:25:02.144281 932 manager.go:227] Using fallback default of /var/lib/docker for location of Docker runtime I0520 22:25:02.144414 932 provider.go:115] Refreshing cache for provider: *credentialprovider.defaultDockerConfigProvider I0520 22:25:02.144545 932 docker.go:184] Pulling image gcr.io/google_containers/busybox:1.24 without credentials • Failure in Spec Setup (BeforeEach) [240.002 seconds] Image Container Conformance Test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:138 image conformance blackbox test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:137 when testing images that exist /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:84 It should present successfully [Conformance] [BeforeEach] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:66 Timed out after 120.001s. Expected error: &lt;*errors.errorString | 0xc8202de490&gt;: { s: &quot;image pull failed for gcr.io/google_containers/busybox:1.24, this may be because there are no credentials on this request. details: (operation timeout: context deadline exceeded)&quot;, } image pull failed for gcr.io/google_containers/busybox:1.24, this may be because there are no credentials on this request. details: (operation timeout: context deadline exceeded) not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:55 ------------------------------ E0520 22:29:02.146143 932 manager.go:226] Failed to execute Info() call to the Docker client: operation timeout: context deadline exceeded W0520 22:29:02.146170 932 manager.go:227] Using fallback default of /var/lib/docker for location of Docker runtime I0520 22:29:02.146236 932 docker.go:184] Pulling image gcr.io/google_containers/busybox:1.24 without credentials • Failure in Spec Setup (BeforeEach) [240.002 seconds] Image Container Conformance Test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:138 image conformance blackbox test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:137 when testing images that exist /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:84 should list pulled images [Conformance] [BeforeEach] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:75 Timed out after 120.000s. Expected error: &lt;*errors.errorString | 0xc8202de4b0&gt;: { s: &quot;image pull failed for gcr.io/google_containers/busybox:1.24, this may be because there are no credentials on this request. details: (operation timeout: context deadline exceeded)&quot;, } image pull failed for gcr.io/google_containers/busybox:1.24, this may be because there are no credentials on this request. details: (operation timeout: context deadline exceeded) not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:55 ------------------------------ E0520 22:33:02.147760 932 manager.go:226] Failed to execute Info() call to the Docker client: operation timeout: context deadline exceeded W0520 22:33:02.147787 932 manager.go:227] Using fallback default of /var/lib/docker for location of Docker runtime I0520 22:33:02.147874 932 provider.go:115] Refreshing cache for provider: *credentialprovider.defaultDockerConfigProvider I0520 22:33:02.147973 932 docker.go:184] Pulling image foo.com/foo/fooimage:latest without credentials E0520 22:37:02.148580 932 manager.go:226] Failed to execute Info() call to the Docker client: operation timeout: context deadline exceeded W0520 22:37:02.148619 932 manager.go:227] Using fallback default of /var/lib/docker for location of Docker runtime I0520 22:37:02.148949 932 docker.go:184] Pulling image gcr.io/google_containers/not_exist:latest without credentials • Failure [840.004 seconds] Image Container Conformance Test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:138 image conformance blackbox test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:137 when testing image that does not exist /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:136 it should not present images [Conformance] [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:111 Expected error: &lt;dockertools.operationTimeout&gt;: { err: { s: &quot;context deadline exceeded&quot;, }, } operation timeout: context deadline exceeded not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:108 ------------------------------ E0520 22:47:01.562282 932 manager.go:226] Failed to execute Info() call to the Docker client: operation timeout: context deadline exceeded W0520 22:47:01.562307 932 manager.go:227] Using fallback default of /var/lib/docker for location of Docker runtime I0520 22:47:01.562377 932 provider.go:115] Refreshing cache for provider: *credentialprovider.defaultDockerConfigProvider I0520 22:47:01.562486 932 docker.go:184] Pulling image foo.com/foo/fooimage:latest without credentials Summarizing 8 Failures: [Fail] Container runtime Conformance Test container runtime conformance blackbox test when running a container with invalid image [It] it should run with the expected status [Conformance] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:287 [Fail] PrivilegedPod [It] should test privileged pod /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/privileged_test.go:210 [Fail] --------------------------------------------------------- Received interrupt. Running AfterSuite... ^C again to terminate immediately I0520 22:48:41.805703 932 e2e_node_suite_test.go:84] Tests Finished [k8s.io] Kubelet when scheduling a busybox command in a pod [It] it should print the output to logs /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:68 [Fail] [k8s.io] Kubelet when scheduling a read only busybox container [It] it should not write to root filesystem /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:122 [Fail] [k8s.io] Kubelet metrics api when querying /stats/summary [It] it should report resource usage through the stats api /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:216 [Fail] Image Container Conformance Test image conformance blackbox test when testing images that exist [BeforeEach] It should present successfully [Conformance] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:55 [Fail] Image Container Conformance Test image conformance blackbox test when testing images that exist [BeforeEach] should list pulled images [Conformance] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:55 [Fail] Image Container Conformance Test image conformance blackbox test when testing image that does not exist [It] it should not present images [Conformance] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:108 Ran 18 of 18 Specs in 2699.365 seconds FAIL! -- 4 Passed | 8 Failed | 0 Pending | 0 Skipped I0520 22:48:41.809756 932 e2e_node_suite_test.go:118] Process Log For Failed Suite On tmp-node-e2e-9a70fd3b-e2e-node-coreos-stable20160218-image -------------------------------------------------------------"><pre class="notranslate"><code class="notranslate">------------------------------ • Failure [20.010 seconds] Container runtime Conformance Test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:314 container runtime conformance blackbox test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:313 when running a container with invalid image /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:306 it should run with the expected status [Conformance] [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:305 Expected error: &lt;*errors.errorString | 0xc82039fb20&gt;: { s: "Failed to get container status", } Failed to get container status not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:287 ------------------------------ STEP: Creating a host exec pod • Failure [120.071 seconds] PrivilegedPod /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/privileged_test.go:83 should test privileged pod [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/privileged_test.go:82 Failed waiting for pod "privileged-pods/hostexec" to become running: Time out while waiting for pod privileged-pods/hostexec to become running; current status: {Phase:Pending Conditions:[] Message: Reason: HostIP: PodIP: StartTime:&lt;nil&gt; InitContainerStatuses:[] ContainerStatuses:[]} Expected error: &lt;*errors.errorString | 0xc8204dd330&gt;: { s: "Time out while waiting for pod privileged-pods/hostexec to become running; current status: {Phase:Pending Conditions:[] Message: Reason: HostIP: PodIP: StartTime:&lt;nil&gt; InitContainerStatuses:[] ContainerStatuses:[]}", } Time out while waiting for pod privileged-pods/hostexec to become running; current status: {Phase:Pending Conditions:[] Message: Reason: HostIP: PodIP: StartTime:&lt;nil&gt; InitContainerStatuses:[] ContainerStatuses:[]} not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/privileged_test.go:210 ------------------------------ W0520 22:12:02.102156 932 request.go:347] Field selector: v1 - pods - metadata.name - busybox-scheduling-b70d3785-1ed6-11e6-bc67-42010af00031: need to check if this is versioned correctly. STEP: Building a namespace api object May 20 22:12:02.088: INFO: Skipping waiting for service account May 20 22:17:02.103: INFO: Unexpected error occurred: timed out waiting for the condition STEP: Collecting resource usage data May 20 22:17:02.111: INFO: Closed stop channel. Waiting for 1 workers May 20 22:17:02.111: INFO: Closing worker for tmp-node-e2e-9a70fd3b-e2e-node-coreos-stable20160218-image May 20 22:17:02.111: INFO: Waitgroup finished. May 20 22:17:02.111: INFO: Unknown output type: . Skipping. May 20 22:17:02.111: INFO: Waiting up to 1m0s for all nodes to be ready May 20 22:17:02.114: INFO: Found DeleteNamespace=false, skipping namespace deletion! • Failure [300.029 seconds] [k8s.io] Kubelet /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:508 when scheduling a busybox command in a pod /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:81 it should print the output to logs [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:80 Expected error: &lt;*errors.errorString | 0xc82000fea0&gt;: { s: "timed out waiting for the condition", } timed out waiting for the condition not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:68 ------------------------------ STEP: Building a namespace api object May 20 22:17:02.117: INFO: Skipping waiting for service account STEP: Collecting resource usage data May 20 22:18:02.128: INFO: Closed stop channel. Waiting for 1 workers May 20 22:18:02.128: INFO: Closing worker for tmp-node-e2e-9a70fd3b-e2e-node-coreos-stable20160218-image May 20 22:18:02.128: INFO: Waitgroup finished. May 20 22:18:02.128: INFO: Unknown output type: . Skipping. May 20 22:18:02.128: INFO: Waiting up to 1m0s for all nodes to be ready May 20 22:18:02.132: INFO: Found DeleteNamespace=false, skipping namespace deletion! • Failure [60.018 seconds] [k8s.io] Kubelet /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:508 when scheduling a read only busybox container /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:124 it should not write to root filesystem [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:123 Timed out after 60.000s. Expected &lt;string&gt;: to equal &lt;string&gt;: sh: can't create /file: Read-only file system /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:122 ------------------------------ W0520 22:18:02.140060 932 request.go:347] Field selector: v1 - pods - metadata.name - stats-busybox-b77a134c-1ed8-11e6-bc67-42010af000310: need to check if this is versioned correctly. STEP: Building a namespace api object May 20 22:18:02.134: INFO: Skipping waiting for service account May 20 22:23:02.140: INFO: Unexpected error occurred: timed out waiting for the condition STEP: Collecting resource usage data May 20 22:23:02.141: INFO: Closed stop channel. Waiting for 1 workers May 20 22:23:02.141: INFO: Closing worker for tmp-node-e2e-9a70fd3b-e2e-node-coreos-stable20160218-image May 20 22:23:02.141: INFO: Waitgroup finished. May 20 22:23:02.141: INFO: Unknown output type: . Skipping. May 20 22:23:02.141: INFO: Waiting up to 1m0s for all nodes to be ready May 20 22:23:02.143: INFO: Found DeleteNamespace=false, skipping namespace deletion! • Failure [300.011 seconds] [k8s.io] Kubelet /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:508 metrics api /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:165 when querying /stats/summary /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:164 it should report resource usage through the stats api [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:163 Expected error: &lt;*errors.errorString | 0xc82000fea0&gt;: { s: "timed out waiting for the condition", } timed out waiting for the condition not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:216 ------------------------------ E0520 22:25:02.144225 932 manager.go:226] Failed to execute Info() call to the Docker client: operation timeout: context deadline exceeded W0520 22:25:02.144281 932 manager.go:227] Using fallback default of /var/lib/docker for location of Docker runtime I0520 22:25:02.144414 932 provider.go:115] Refreshing cache for provider: *credentialprovider.defaultDockerConfigProvider I0520 22:25:02.144545 932 docker.go:184] Pulling image gcr.io/google_containers/busybox:1.24 without credentials • Failure in Spec Setup (BeforeEach) [240.002 seconds] Image Container Conformance Test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:138 image conformance blackbox test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:137 when testing images that exist /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:84 It should present successfully [Conformance] [BeforeEach] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:66 Timed out after 120.001s. Expected error: &lt;*errors.errorString | 0xc8202de490&gt;: { s: "image pull failed for gcr.io/google_containers/busybox:1.24, this may be because there are no credentials on this request. details: (operation timeout: context deadline exceeded)", } image pull failed for gcr.io/google_containers/busybox:1.24, this may be because there are no credentials on this request. details: (operation timeout: context deadline exceeded) not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:55 ------------------------------ E0520 22:29:02.146143 932 manager.go:226] Failed to execute Info() call to the Docker client: operation timeout: context deadline exceeded W0520 22:29:02.146170 932 manager.go:227] Using fallback default of /var/lib/docker for location of Docker runtime I0520 22:29:02.146236 932 docker.go:184] Pulling image gcr.io/google_containers/busybox:1.24 without credentials • Failure in Spec Setup (BeforeEach) [240.002 seconds] Image Container Conformance Test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:138 image conformance blackbox test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:137 when testing images that exist /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:84 should list pulled images [Conformance] [BeforeEach] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:75 Timed out after 120.000s. Expected error: &lt;*errors.errorString | 0xc8202de4b0&gt;: { s: "image pull failed for gcr.io/google_containers/busybox:1.24, this may be because there are no credentials on this request. details: (operation timeout: context deadline exceeded)", } image pull failed for gcr.io/google_containers/busybox:1.24, this may be because there are no credentials on this request. details: (operation timeout: context deadline exceeded) not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:55 ------------------------------ E0520 22:33:02.147760 932 manager.go:226] Failed to execute Info() call to the Docker client: operation timeout: context deadline exceeded W0520 22:33:02.147787 932 manager.go:227] Using fallback default of /var/lib/docker for location of Docker runtime I0520 22:33:02.147874 932 provider.go:115] Refreshing cache for provider: *credentialprovider.defaultDockerConfigProvider I0520 22:33:02.147973 932 docker.go:184] Pulling image foo.com/foo/fooimage:latest without credentials E0520 22:37:02.148580 932 manager.go:226] Failed to execute Info() call to the Docker client: operation timeout: context deadline exceeded W0520 22:37:02.148619 932 manager.go:227] Using fallback default of /var/lib/docker for location of Docker runtime I0520 22:37:02.148949 932 docker.go:184] Pulling image gcr.io/google_containers/not_exist:latest without credentials • Failure [840.004 seconds] Image Container Conformance Test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:138 image conformance blackbox test /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:137 when testing image that does not exist /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:136 it should not present images [Conformance] [It] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:111 Expected error: &lt;dockertools.operationTimeout&gt;: { err: { s: "context deadline exceeded", }, } operation timeout: context deadline exceeded not to have occurred /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:108 ------------------------------ E0520 22:47:01.562282 932 manager.go:226] Failed to execute Info() call to the Docker client: operation timeout: context deadline exceeded W0520 22:47:01.562307 932 manager.go:227] Using fallback default of /var/lib/docker for location of Docker runtime I0520 22:47:01.562377 932 provider.go:115] Refreshing cache for provider: *credentialprovider.defaultDockerConfigProvider I0520 22:47:01.562486 932 docker.go:184] Pulling image foo.com/foo/fooimage:latest without credentials Summarizing 8 Failures: [Fail] Container runtime Conformance Test container runtime conformance blackbox test when running a container with invalid image [It] it should run with the expected status [Conformance] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:287 [Fail] PrivilegedPod [It] should test privileged pod /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/privileged_test.go:210 [Fail] --------------------------------------------------------- Received interrupt. Running AfterSuite... ^C again to terminate immediately I0520 22:48:41.805703 932 e2e_node_suite_test.go:84] Tests Finished [k8s.io] Kubelet when scheduling a busybox command in a pod [It] it should print the output to logs /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:68 [Fail] [k8s.io] Kubelet when scheduling a read only busybox container [It] it should not write to root filesystem /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:122 [Fail] [k8s.io] Kubelet metrics api when querying /stats/summary [It] it should report resource usage through the stats api /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:216 [Fail] Image Container Conformance Test image conformance blackbox test when testing images that exist [BeforeEach] It should present successfully [Conformance] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:55 [Fail] Image Container Conformance Test image conformance blackbox test when testing images that exist [BeforeEach] should list pulled images [Conformance] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:55 [Fail] Image Container Conformance Test image conformance blackbox test when testing image that does not exist [It] it should not present images [Conformance] /var/lib/jenkins/workspace/node-pull-build-e2e-test/go/src/k8s.io/kubernetes/test/e2e_node/image_conformance_test.go:108 Ran 18 of 18 Specs in 2699.365 seconds FAIL! -- 4 Passed | 8 Failed | 0 Pending | 0 Skipped I0520 22:48:41.809756 932 e2e_node_suite_test.go:118] Process Log For Failed Suite On tmp-node-e2e-9a70fd3b-e2e-node-coreos-stable20160218-image ------------------------------------------------------------- </code></pre></div>
0
<p dir="auto">Tabs colors aren't prominent in Windows Terminal. It could bring errors/ambiguity while working in multiple tabs.</p>
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/srv-code/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/srv-code">@srv-code</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="515261544" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/3386" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/3386/hovercard" href="https://github.com/microsoft/terminal/issues/3386">#3386</a>:</p> <blockquote> <p dir="auto">Text font looks little bold (a difference noticed in comparison to cmd font even after keeping the same font properties).</p> </blockquote> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/srv-code/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/srv-code">@srv-code</a> Could you maybe see some screenshots of the difference you're seeing? I'm sure there are going to be slight differences between GDI (the conhost renderer) and DX (the Terminal renderer), but they shouldn't be that significant.</p> <p dir="auto">Maybe this has to do with how we're antialiasing? <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="456941974" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/1298" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/1298/hovercard" href="https://github.com/microsoft/terminal/issues/1298">#1298</a> has some discussion there.</p>
0
<p dir="auto">It seems like using glob on <code class="notranslate">use</code> statements ends up generating twice the documentation for <code class="notranslate">Impl</code> and <code class="notranslate">Traits</code> of this <code class="notranslate">Struct</code>.</p> <p dir="auto">If I use:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub use foo::bar::*;"><pre class="notranslate"><code class="notranslate">pub use foo::bar::*; </code></pre></div> <p dir="auto">All <code class="notranslate">Impl</code> and <code class="notranslate">Traits</code> of each <code class="notranslate">Struct</code> in <code class="notranslate">foo::bar::*</code> will be duplicated in the doc.<br> If symbols are listed one by one it works well:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub use foo::bar::baz; pub use foo::bar::boz;"><pre class="notranslate"><code class="notranslate">pub use foo::bar::baz; pub use foo::bar::boz; </code></pre></div> <p dir="auto">Issue can be seen when generating the doc from <a href="https://github.com/NewbiZ/rgb/tree/2d3d077120d51bdef42f2e6a83595d2b26a6e04c">https://github.com/NewbiZ/rgb/tree/2d3d077120d51bdef42f2e6a83595d2b26a6e04c</a></p> <p dir="auto">If you change in <code class="notranslate">src/lib.rs</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub use self::cpu::*;"><pre class="notranslate"><code class="notranslate">pub use self::cpu::*; </code></pre></div> <p dir="auto">by</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub use self::cpu::Cpu; pub use self::cpu::Flag;"><pre class="notranslate"><code class="notranslate">pub use self::cpu::Cpu; pub use self::cpu::Flag; </code></pre></div> <p dir="auto">it will work.</p>
<p dir="auto">small snippet called arg0.rs:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main () { let args : ~[~str] = ::std::os::args(); ::std::io::println(args[0]); }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> args <span class="pl-kos">:</span> ~<span class="pl-kos">[</span>~<span class="pl-smi">str</span><span class="pl-kos">]</span> = <span class="pl-kos">::</span>std<span class="pl-kos">::</span>os<span class="pl-kos">::</span><span class="pl-en">args</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">::</span>std<span class="pl-kos">::</span>io<span class="pl-kos">::</span><span class="pl-en">println</span><span class="pl-kos">(</span>args<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></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc -Z debug-info arg0.rs $ gdb arg0 GNU gdb (GDB) 7.6.1 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt; This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type &quot;show copying&quot; and &quot;show warranty&quot; for details. This GDB was configured as &quot;x86_64-unknown-linux-gnu&quot;. For bug reporting instructions, please see: &lt;http://www.gnu.org/software/gdb/bugs/&gt;... Reading symbols from /home/asamoilov/work/projects/rust-sandbox/my-rust/arg0...done. (gdb) l 1 arg0.rc: No such file or directory. (gdb) quit"><pre class="notranslate"><code class="notranslate">$ rustc -Z debug-info arg0.rs $ gdb arg0 GNU gdb (GDB) 7.6.1 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt; This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: &lt;http://www.gnu.org/software/gdb/bugs/&gt;... Reading symbols from /home/asamoilov/work/projects/rust-sandbox/my-rust/arg0...done. (gdb) l 1 arg0.rc: No such file or directory. (gdb) quit </code></pre></div> <p dir="auto">i.e. expects arg0.rc instead of arg0.rs</p> <p dir="auto">Thanks</p>
0
<p dir="auto">When I run this code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="N, C = 1, 1 criterion = nn.NLLLoss() model = nn.Conv2d(C, 3, (3, 3)).cuda() inp = Variable(torch.randn(N, 1, 3, 3)).cuda() pred = model(inp) target = Variable(torch.from_numpy(np.array([3]))).view(1, 1, 1).cuda() criterion(pred, target)"><pre class="notranslate"><code class="notranslate">N, C = 1, 1 criterion = nn.NLLLoss() model = nn.Conv2d(C, 3, (3, 3)).cuda() inp = Variable(torch.randn(N, 1, 3, 3)).cuda() pred = model(inp) target = Variable(torch.from_numpy(np.array([3]))).view(1, 1, 1).cuda() criterion(pred, target) </code></pre></div> <p dir="auto">I get this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cuda runtime error (59) : device-side assert triggered at /opt/conda/conda-bld/pytorch_1518244421288/work/torch/lib/THC/generic/THCTensorCopy.c:70"><pre class="notranslate"><code class="notranslate">cuda runtime error (59) : device-side assert triggered at /opt/conda/conda-bld/pytorch_1518244421288/work/torch/lib/THC/generic/THCTensorCopy.c:70 </code></pre></div> <p dir="auto">Due to the value of <code class="notranslate">target</code> being <code class="notranslate">3</code>, and not in the set of <code class="notranslate">{0, 1, 2}</code>. It took me a while to figure out and I was wondering this is an easy to fix issue, and if it is I was wondering how I would get started as I'm quite eager to contribute to Pytorch</p>
<p dir="auto">Hi<br> I have written the following code to train my model, after a few iterations it stops throwing a similar error as shown in the image. Note that error is similar but not same, it changes everytime. I have read all the answers here and pytorch forum for the similar errors, none of them works. Please help ...</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18963158/37559304-9b509616-2a49-11e8-81e8-30335762ffe2.png"><img src="https://user-images.githubusercontent.com/18963158/37559304-9b509616-2a49-11e8-81e8-30335762ffe2.png" alt="w1" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18963158/37559306-a1f21738-2a49-11e8-8fb1-5dabf0b5bbdf.png"><img src="https://user-images.githubusercontent.com/18963158/37559306-a1f21738-2a49-11e8-8fb1-5dabf0b5bbdf.png" alt="w2" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Note that it is running for few iterations hence the starting few outputs</strong><br> Thank you.</p>
1
<p dir="auto">Building <a href="https://github.com/ogham/exa">exa</a> fails at link stage if LTO is used and system package for libssh2-dev is not installed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Compiling exa v0.3.0 (file:///home/butler/packs/exa) error: linking with `cc` failed: exit code: 1 note: &quot;cc&quot; &quot;-Wl,--as-needed&quot; &quot;-m64&quot; &quot;-L&quot; &quot;/home/butler/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;/home/butler/packs/exa/target/release/exa.0.o&quot; &quot;-o&quot; &quot;/home/butler/packs/exa/target/release/exa&quot; &quot;-Wl,--gc-sections&quot; &quot;-pie&quot; &quot;-Wl,-O1&quot; &quot;-nodefaultlibs&quot; &quot;-Wl,--whole-archive&quot; &quot;/tmp/rustc.0qWCH5Q46Uym/liblibgit2_sys-92cc88eed912bce1.rlib&quot; &quot;-Wl,--no-whole-archive&quot; &quot;-Wl,--whole-archive&quot; &quot;/tmp/rustc.0qWCH5Q46Uym/liblibssh2_sys-63d236645b9d2140.rlib&quot; &quot;-Wl,--no-whole-archive&quot; &quot;-Wl,--whole-archive&quot; &quot;/tmp/rustc.0qWCH5Q46Uym/libopenssl_sys-e0bd245bf09b1a3f.rlib&quot; &quot;-Wl,--no-whole-archive&quot; &quot;-Wl,--whole-archive&quot; &quot;/tmp/rustc.0qWCH5Q46Uym/libstd-35017696.rlib&quot; &quot;-Wl,--no-whole-archive&quot; &quot;-Wl,--whole-archive&quot; &quot;/tmp/rustc.0qWCH5Q46Uym/liballoc_jemalloc-35017696.rlib&quot; &quot;-Wl,--no-whole-archive&quot; &quot;-L&quot; &quot;/home/butler/packs/exa/target/release&quot; &quot;-L&quot; &quot;/home/butler/packs/exa/target/release/deps&quot; &quot;-L&quot; &quot;/home/butler/packs/exa/target/release/build/libgit2-sys-92cc88eed912bce1/out/lib&quot; &quot;-L&quot; &quot;/home/butler/packs/exa/target/release/build/libssh2-sys-63d236645b9d2140/out/lib&quot; &quot;-L&quot; &quot;/usr/lib/x86_64-linux-gnu&quot; &quot;-L&quot; &quot;/home/butler/packs/exa/target/release/build/libssh2-sys-63d236645b9d2140/out/lib&quot; &quot;-L&quot; &quot;/usr/lib/x86_64-linux-gnu&quot; &quot;-L&quot; &quot;/usr/lib/x86_64-linux-gnu&quot; &quot;-L&quot; &quot;/home/butler/packs/exa/target/release/build/openssl-sys-e0bd245bf09b1a3f/out&quot; &quot;-L&quot; &quot;/home/butler/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;-L&quot; &quot;/home/butler/packs/exa/.rust/lib/x86_64-unknown-linux-gnu&quot; &quot;-L&quot; &quot;/home/butler/packs/exa/lib/x86_64-unknown-linux-gnu&quot; &quot;-Wl,-Bstatic&quot; &quot;-Wl,-Bdynamic&quot; &quot;-l&quot; &quot;rt&quot; &quot;-l&quot; &quot;ssl&quot; &quot;-l&quot; &quot;crypto&quot; &quot;-l&quot; &quot;dl&quot; &quot;-l&quot; &quot;z&quot; &quot;-l&quot; &quot;ssl&quot; &quot;-l&quot; &quot;crypto&quot; &quot;-l&quot; &quot;z&quot; &quot;-l&quot; &quot;c&quot; &quot;-l&quot; &quot;m&quot; &quot;-l&quot; &quot;dl&quot; &quot;-l&quot; &quot;pthread&quot; &quot;-l&quot; &quot;rt&quot; &quot;-l&quot; &quot;gcc_s&quot; &quot;-l&quot; &quot;pthread&quot; &quot;-l&quot; &quot;c&quot; &quot;-l&quot; &quot;m&quot; &quot;-Wl,-rpath,$ORIGIN/../../../../.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;-Wl,-rpath,/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;-l&quot; &quot;compiler-rt&quot; note: /tmp/rustc.0qWCH5Q46Uym/liblibssh2_sys-63d236645b9d2140.rlib(openssl.c.o): In function `_libssh2_rsa_new': openssl.c:(.text._libssh2_rsa_new+0x0): multiple definition of `_libssh2_rsa_new' /tmp/rustc.0qWCH5Q46Uym/liblibgit2_sys-92cc88eed912bce1.rlib(openssl.c.o):openssl.c:(.text._libssh2_rsa_new+0x0): first defined here /tmp/rustc.0qWCH5Q46Uym/liblibssh2_sys-63d236645b9d2140.rlib(openssl.c.o): In function `_libssh2_dsa_new': openssl.c:(.text._libssh2_dsa_new+0x0): multiple definition of `_libssh2_dsa_new' /tmp/rustc.0qWCH5Q46Uym/liblibgit2_sys-92cc88eed912bce1.rlib(openssl.c.o):openssl.c:(.text._libssh2_dsa_new+0x0): first defined here /tmp/rustc.0qWCH5Q46Uym/liblibssh2_sys-63d236645b9d2140.rlib(openssl.c.o): In function `_libssh2_cipher_init': openssl.c:(.text._libssh2_cipher_init+0x0): multiple definition of `_libssh2_cipher_init' ..... more lines"><pre class="notranslate"><code class="notranslate">Compiling exa v0.3.0 (file:///home/butler/packs/exa) error: linking with `cc` failed: exit code: 1 note: "cc" "-Wl,--as-needed" "-m64" "-L" "/home/butler/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/butler/packs/exa/target/release/exa.0.o" "-o" "/home/butler/packs/exa/target/release/exa" "-Wl,--gc-sections" "-pie" "-Wl,-O1" "-nodefaultlibs" "-Wl,--whole-archive" "/tmp/rustc.0qWCH5Q46Uym/liblibgit2_sys-92cc88eed912bce1.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.0qWCH5Q46Uym/liblibssh2_sys-63d236645b9d2140.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.0qWCH5Q46Uym/libopenssl_sys-e0bd245bf09b1a3f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.0qWCH5Q46Uym/libstd-35017696.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.0qWCH5Q46Uym/liballoc_jemalloc-35017696.rlib" "-Wl,--no-whole-archive" "-L" "/home/butler/packs/exa/target/release" "-L" "/home/butler/packs/exa/target/release/deps" "-L" "/home/butler/packs/exa/target/release/build/libgit2-sys-92cc88eed912bce1/out/lib" "-L" "/home/butler/packs/exa/target/release/build/libssh2-sys-63d236645b9d2140/out/lib" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/home/butler/packs/exa/target/release/build/libssh2-sys-63d236645b9d2140/out/lib" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/home/butler/packs/exa/target/release/build/openssl-sys-e0bd245bf09b1a3f/out" "-L" "/home/butler/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/home/butler/packs/exa/.rust/lib/x86_64-unknown-linux-gnu" "-L" "/home/butler/packs/exa/lib/x86_64-unknown-linux-gnu" "-Wl,-Bstatic" "-Wl,-Bdynamic" "-l" "rt" "-l" "ssl" "-l" "crypto" "-l" "dl" "-l" "z" "-l" "ssl" "-l" "crypto" "-l" "z" "-l" "c" "-l" "m" "-l" "dl" "-l" "pthread" "-l" "rt" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-Wl,-rpath,$ORIGIN/../../../../.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-rpath,/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "compiler-rt" note: /tmp/rustc.0qWCH5Q46Uym/liblibssh2_sys-63d236645b9d2140.rlib(openssl.c.o): In function `_libssh2_rsa_new': openssl.c:(.text._libssh2_rsa_new+0x0): multiple definition of `_libssh2_rsa_new' /tmp/rustc.0qWCH5Q46Uym/liblibgit2_sys-92cc88eed912bce1.rlib(openssl.c.o):openssl.c:(.text._libssh2_rsa_new+0x0): first defined here /tmp/rustc.0qWCH5Q46Uym/liblibssh2_sys-63d236645b9d2140.rlib(openssl.c.o): In function `_libssh2_dsa_new': openssl.c:(.text._libssh2_dsa_new+0x0): multiple definition of `_libssh2_dsa_new' /tmp/rustc.0qWCH5Q46Uym/liblibgit2_sys-92cc88eed912bce1.rlib(openssl.c.o):openssl.c:(.text._libssh2_dsa_new+0x0): first defined here /tmp/rustc.0qWCH5Q46Uym/liblibssh2_sys-63d236645b9d2140.rlib(openssl.c.o): In function `_libssh2_cipher_init': openssl.c:(.text._libssh2_cipher_init+0x0): multiple definition of `_libssh2_cipher_init' ..... more lines </code></pre></div> <p dir="auto">Exa depends on libssh2-sys and libgit2-sys. If pkg-config cannot find libssh2, it's compiled locally by build.rs while building libssh2-sys and is embedded into resulting rlib as expected. For some reason, it's also present in libgit2-sys that doesn't depend on libssh2 directly. So we get second copy and linkage breaks.</p> <p dir="auto">This bug appeared after this commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/9bc8e6d1472a57441afe3592078838d2bc767996/hovercard" href="https://github.com/rust-lang/rust/commit/9bc8e6d1472a57441afe3592078838d2bc767996"><tt>9bc8e6d</tt></a></p> <p dir="auto">Here is original bug report for reference: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94257913" data-permission-text="Title is private" data-url="https://github.com/ogham/exa/issues/72" data-hovercard-type="issue" data-hovercard-url="/ogham/exa/issues/72/hovercard" href="https://github.com/ogham/exa/issues/72">ogham/exa#72</a></p>
<p dir="auto"><code class="notranslate">cargo new mycrate</code></p> <p dir="auto">Add to <code class="notranslate">Cargo.toml</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[dependencies] num = &quot;*&quot;"><pre class="notranslate"><code class="notranslate">[dependencies] num = "*" </code></pre></div> <p dir="auto">Make empty <code class="notranslate">x.rs</code> file: <code class="notranslate">touch mycrate/src/x.rs</code></p> <p dir="auto">Contents of <code class="notranslate">mycrate/src/lib.rs</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="extern crate num; use num as num_export; use self::x::*;"><pre class="notranslate"><code class="notranslate">extern crate num; use num as num_export; use self::x::*; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cargo build Compiling issue v0.1.0 (file:///home/stephen/Desktop/rust/issue) src/lib.rs:2:5: 2:22 error: unresolved import (maybe you meant `num as num_export::*`?) src/lib.rs:2 use num as num_export; ^~~~~~~~~~~~~~~~~ error: aborting due to previous error Could not compile `issue`. To learn more, run the command again with --verbose."><pre class="notranslate"><code class="notranslate">$ cargo build Compiling issue v0.1.0 (file:///home/stephen/Desktop/rust/issue) src/lib.rs:2:5: 2:22 error: unresolved import (maybe you meant `num as num_export::*`?) src/lib.rs:2 use num as num_export; ^~~~~~~~~~~~~~~~~ error: aborting due to previous error Could not compile `issue`. To learn more, run the command again with --verbose. </code></pre></div> <p dir="auto">Try removing the <code class="notranslate">use self::x::*;</code> line and everything will work just fine.</p> <ul dir="auto"> <li>OS: Ubuntu 15.04 (beta)</li> <li><code class="notranslate">rustc --version</code>: <code class="notranslate">rustc 1.1.0 (35ceea399 2015-06-19)</code></li> </ul>
0
<p dir="auto">There is another bug by the same name, but that one was fixed. After searching about 10 minutes, I couldn't find any duplicates.</p> <p dir="auto">The code</p> <pre class="notranslate">fn main () { let arr: ~[u8] = ~[ 1, 2, 3 ]; let iter = &amp;arr.iter() as &amp;Iterator&lt;&amp;u8&gt; } </pre> <p dir="auto">Fails to compile with the following error</p> <pre class="notranslate">task 'rustc' failed at 'index out of bounds: the len is 1 but the index is 1', /home/username/dload/code/rust/src/librustc/middle/ty.rs:1432 error: internal compiler error: unexpected failure This message reflects a bug in the Rust compiler. We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report note: the compiler hit an unexpected failure path. this is a bug note: try running with RUST_LOG=rustc=1 to get further details and report the results to github.com/mozilla/rust/issues task '' failed at 'explicit failure', /home/username/dload/code/rust/src/librustc/lib.rs:398 </pre> <p dir="auto">I am running rustc 0.9-pre (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/e5f4904fab93e33c4cbf71f478dcf8f24bc7c667/hovercard" href="https://github.com/rust-lang/rust/commit/e5f4904fab93e33c4cbf71f478dcf8f24bc7c667"><tt>e5f4904</tt></a> 2013-12-13 07:51:42 -0800) on Fedora 19 (Linux 3.11.6-200.fc19.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="227519" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/1" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/1/hovercard" href="https://github.com/rust-lang/rust/issues/1">#1</a> SMP). This is latest git HEAD as of about an hour ago.</p>
<p dir="auto">I get a huge performance regression since <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17672890" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/8328" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/8328/hovercard" href="https://github.com/rust-lang/rust/pull/8328">#8328</a> landed (revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/a8c3fe45c6138cd1f4d143fdb0e843ee2d4759b2/hovercard" href="https://github.com/rust-lang/rust/commit/a8c3fe45c6138cd1f4d143fdb0e843ee2d4759b2"><tt>a8c3fe4</tt></a>) on all my projects. Things are 50 to 75% slower. I’m pretty sure <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17672890" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/8328" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/8328/hovercard" href="https://github.com/rust-lang/rust/pull/8328">#8328</a> is in cause since when I revert the compiler to the version right before (revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/67c954e365970e4c2cd06f0c50724656d7010f45/hovercard" href="https://github.com/rust-lang/rust/commit/67c954e365970e4c2cd06f0c50724656d7010f45"><tt>67c954e</tt></a>) performances go back to normal.</p> <p dir="auto">For what it’s worth, the <a href="https://github.com/sebcrozet/nphysics">concerned projects</a> are 100% generic, and rely a lot on cross-crate inlining. They do a lot of numeric computations and array indexing. Sorry if I am a bit vague but I cannot valgrind my projects because my valgrind started to segfault a few days ago (perhaps since the re-enabling of jemalloc)…</p> <p dir="auto">I tried to come up with a small bench exhibiting the problem. It is not <em>that</em> significative, but the following shows some noticeable performances regression already:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="extern mod extra; use std::hashmap; use extra::test::BenchHarness; #[bench] fn bench_insert_std(bh: &amp;mut BenchHarness) { let mut m = hashmap::HashMap::with_capacity(32); do bh.iter { for i in range(0u, 500) { m.insert((i, i), i); } } } #[bench] fn bench_insert_find_remove_std(bh: &amp;mut BenchHarness) { let mut m = hashmap::HashMap::with_capacity(32); do bh.iter { for i in range(0u, 200) { m.insert((i, i), i); } for i in range(0u, 200) { assert!(*m.find(&amp;(i, i)).unwrap() == i) } for i in range(100u, 200) { m.remove(&amp;(i, i)); } for i in range(100u, 200) { assert!(m.find(&amp;(i, i)).is_none()) } for i in range(0u, 100) { m.insert((i, i), i * 2); } for i in range(0u, 100) { assert!(*m.find(&amp;(i, i)).unwrap() == i * 2) } for i in range(0u, 100) { m.remove(&amp;(i, i)); } for i in range(0u, 100) { assert!(m.find(&amp;(i, i)).is_none()) } } } fn main() { } "><pre class="notranslate"><span class="pl-k">extern</span> <span class="pl-k">mod</span> extra<span class="pl-kos">;</span> <span class="pl-k">use</span> std<span class="pl-kos">::</span>hashmap<span class="pl-kos">;</span> <span class="pl-k">use</span> extra<span class="pl-kos">::</span>test<span class="pl-kos">::</span><span class="pl-v">BenchHarness</span><span class="pl-kos">;</span> <span class="pl-c1">#<span class="pl-kos">[</span>bench<span class="pl-kos">]</span></span> <span class="pl-k">fn</span> <span class="pl-en">bench_insert_std</span><span class="pl-kos">(</span><span class="pl-s1">bh</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">BenchHarness</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> m = hashmap<span class="pl-kos">::</span><span class="pl-smi">HashMap</span><span class="pl-kos">::</span><span class="pl-en">with_capacity</span><span class="pl-kos">(</span><span class="pl-c1">32</span><span class="pl-kos">)</span><span class="pl-kos">;</span> do bh<span class="pl-kos">.</span><span class="pl-c1">iter</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">0</span>u<span class="pl-kos">,</span> <span class="pl-c1">500</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> m<span class="pl-kos">.</span><span class="pl-en">insert</span><span class="pl-kos">(</span><span class="pl-kos">(</span>i<span class="pl-kos">,</span> i<span class="pl-kos">)</span><span class="pl-kos">,</span> i<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c1">#<span class="pl-kos">[</span>bench<span class="pl-kos">]</span></span> <span class="pl-k">fn</span> <span class="pl-en">bench_insert_find_remove_std</span><span class="pl-kos">(</span><span class="pl-s1">bh</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">BenchHarness</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> m = hashmap<span class="pl-kos">::</span><span class="pl-smi">HashMap</span><span class="pl-kos">::</span><span class="pl-en">with_capacity</span><span class="pl-kos">(</span><span class="pl-c1">32</span><span class="pl-kos">)</span><span class="pl-kos">;</span> do bh<span class="pl-kos">.</span><span class="pl-c1">iter</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">0</span>u<span class="pl-kos">,</span> <span class="pl-c1">200</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> m<span class="pl-kos">.</span><span class="pl-en">insert</span><span class="pl-kos">(</span><span class="pl-kos">(</span>i<span class="pl-kos">,</span> i<span class="pl-kos">)</span><span class="pl-kos">,</span> i<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">0</span>u<span class="pl-kos">,</span> <span class="pl-c1">200</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">assert</span><span class="pl-en">!</span><span class="pl-kos">(</span>*m.find<span class="pl-kos">(</span>&amp;<span class="pl-kos">(</span>i, i<span class="pl-kos">)</span><span class="pl-kos">)</span>.unwrap<span class="pl-kos">(</span><span class="pl-kos">)</span> == i<span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">100</span>u<span class="pl-kos">,</span> <span class="pl-c1">200</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> m<span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-kos">(</span>i<span class="pl-kos">,</span> i<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">100</span>u<span class="pl-kos">,</span> <span class="pl-c1">200</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">assert</span><span class="pl-en">!</span><span class="pl-kos">(</span>m.find<span class="pl-kos">(</span>&amp;<span class="pl-kos">(</span>i, i<span class="pl-kos">)</span><span class="pl-kos">)</span>.is_none<span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">0</span>u<span class="pl-kos">,</span> <span class="pl-c1">100</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> m<span class="pl-kos">.</span><span class="pl-en">insert</span><span class="pl-kos">(</span><span class="pl-kos">(</span>i<span class="pl-kos">,</span> i<span class="pl-kos">)</span><span class="pl-kos">,</span> i <span class="pl-c1">*</span> <span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">0</span>u<span class="pl-kos">,</span> <span class="pl-c1">100</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">assert</span><span class="pl-en">!</span><span class="pl-kos">(</span>*m.find<span class="pl-kos">(</span>&amp;<span class="pl-kos">(</span>i, i<span class="pl-kos">)</span><span class="pl-kos">)</span>.unwrap<span class="pl-kos">(</span><span class="pl-kos">)</span> == i * <span class="pl-c1">2</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">0</span>u<span class="pl-kos">,</span> <span class="pl-c1">100</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> m<span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-kos">(</span>i<span class="pl-kos">,</span> i<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">0</span>u<span class="pl-kos">,</span> <span class="pl-c1">100</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">assert</span><span class="pl-en">!</span><span class="pl-kos">(</span>m.find<span class="pl-kos">(</span>&amp;<span class="pl-kos">(</span>i, i<span class="pl-kos">)</span><span class="pl-kos">)</span>.is_none<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">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> </pre></div> <p dir="auto">Compiled with <code class="notranslate">--opt-level=3</code>.<br> With the (new) compiler <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/a8c3fe45c6138cd1f4d143fdb0e843ee2d4759b2/hovercard" href="https://github.com/rust-lang/rust/commit/a8c3fe45c6138cd1f4d143fdb0e843ee2d4759b2"><tt>a8c3fe4</tt></a>, I get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test bench_insert_find_remove_std ... bench: 89242 ns/iter (+/- 3605) test bench_insert_std ... bench: 46177 ns/iter (+/- 1555)"><pre class="notranslate"><code class="notranslate">test bench_insert_find_remove_std ... bench: 89242 ns/iter (+/- 3605) test bench_insert_std ... bench: 46177 ns/iter (+/- 1555) </code></pre></div> <p dir="auto">With the (old) compiler <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/67c954e365970e4c2cd06f0c50724656d7010f45/hovercard" href="https://github.com/rust-lang/rust/commit/67c954e365970e4c2cd06f0c50724656d7010f45"><tt>67c954e</tt></a>, I get something more than 10% faster. The asm dump is smaller too:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test bench_insert_find_remove_std ... bench: 73939 ns/iter (+/- 2872) test bench_insert_std ... bench: 38482 ns/iter (+/- 1005)"><pre class="notranslate"><code class="notranslate">test bench_insert_find_remove_std ... bench: 73939 ns/iter (+/- 2872) test bench_insert_std ... bench: 38482 ns/iter (+/- 1005) </code></pre></div>
0
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">I found difference in client|server cursors behaviour:[<a href="%5BBR">BR</a>]<br> client - side cursor fills cursor.description after execute(), and server-side cursor leave description 'None' after execute() until call of fetch...().[<a href="%5BBR">BR</a>]<br> I found it both on windows and linux, with postgres 8.1.2 and psycopg 2-2.0.51 (last stable version).[<a href="%5BBR">BR</a>]<br> SA looks in cursor description <strong>before</strong> calling fetch - see base.py line 562.</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/431/test_pg.py">test_pg.py</a></p>
<p dir="auto"><strong>Migrated issue, originally created by Markus Meskanen (<a href="https://github.com/Mahi">@Mahi</a>)</strong></p> <p dir="auto">Django has a <code class="notranslate">get_or_create()</code> method for times when you don't know if data for an entity already exists. There are multiple implementations available for SQLAlchemy at <a href="http://stackoverflow.com/questions/2546207/does-sqlalchemy-have-an-equivalent-of-djangos-get-or-create/" rel="nofollow">http://stackoverflow.com/questions/2546207/does-sqlalchemy-have-an-equivalent-of-djangos-get-or-create/</a>, but I thought it would be nice to have a native support for such widely used feature.</p> <p dir="auto">I'm not sure of the ideal implementation, but one that pleases my eye is to add a keyword arugment for <code class="notranslate">one()</code> etc:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="session.query(Player).filter_by(id=my_player_id).one(create=True)"><pre class="notranslate"><code class="notranslate">session.query(Player).filter_by(id=my_player_id).one(create=True) </code></pre></div> <p dir="auto">Or simply add a new method:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="session.query(Player).filter_by(id=my_player_id).get_or_create()"><pre class="notranslate"><code class="notranslate">session.query(Player).filter_by(id=my_player_id).get_or_create() </code></pre></div>
0
<p dir="auto">As of commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/43f48a2e021f12cfe3547904ce0a97c7dfdbf893/hovercard" href="https://github.com/ansible/ansible/commit/43f48a2e021f12cfe3547904ce0a97c7dfdbf893"><tt>43f48a2</tt></a> the authorized_keys module isn't behaving the same as previously...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [authorized_key user=root key=&quot;{{lookup('file', '~/.ssh/id_rsa.pub')}}&quot;] *** fatal: [192.168.251.101] =&gt; failed to parse: Traceback (most recent call last): File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key&quot;, line 1306, in &lt;module&gt; main() File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key&quot;, line 367, in main results = enforce_state(module, module.params) File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key&quot;, line 338, in enforce_state existing_keys[parsed_new_key[0]] = parsed_new_key TypeError: list indices must be integers, not str fatal: [192.168.251.102] =&gt; failed to parse: Traceback (most recent call last): File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key&quot;, line 1306, in &lt;module&gt; main() File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key&quot;, line 367, in main results = enforce_state(module, module.params) File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key&quot;, line 338, in enforce_state existing_keys[parsed_new_key[0]] = parsed_new_key TypeError: list indices must be integers, not str fatal: [192.168.251.103] =&gt; failed to parse: Traceback (most recent call last): File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key&quot;, line 1306, in &lt;module&gt; main() File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key&quot;, line 367, in main results = enforce_state(module, module.params) File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key&quot;, line 338, in enforce_state existing_keys[parsed_new_key[0]] = parsed_new_key TypeError: list indices must be integers, not str fatal: [192.168.251.100] =&gt; failed to parse: Traceback (most recent call last): File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key&quot;, line 1306, in &lt;module&gt; main() File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key&quot;, line 367, in main results = enforce_state(module, module.params) File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key&quot;, line 338, in enforce_state existing_keys[parsed_new_key[0]] = parsed_new_key TypeError: list indices must be integers, not str FATAL: all hosts have already failed -- aborting"><pre class="notranslate"><code class="notranslate">TASK: [authorized_key user=root key="{{lookup('file', '~/.ssh/id_rsa.pub')}}"] *** fatal: [192.168.251.101] =&gt; failed to parse: Traceback (most recent call last): File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key", line 1306, in &lt;module&gt; main() File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key", line 367, in main results = enforce_state(module, module.params) File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key", line 338, in enforce_state existing_keys[parsed_new_key[0]] = parsed_new_key TypeError: list indices must be integers, not str fatal: [192.168.251.102] =&gt; failed to parse: Traceback (most recent call last): File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key", line 1306, in &lt;module&gt; main() File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key", line 367, in main results = enforce_state(module, module.params) File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key", line 338, in enforce_state existing_keys[parsed_new_key[0]] = parsed_new_key TypeError: list indices must be integers, not str fatal: [192.168.251.103] =&gt; failed to parse: Traceback (most recent call last): File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key", line 1306, in &lt;module&gt; main() File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key", line 367, in main results = enforce_state(module, module.params) File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key", line 338, in enforce_state existing_keys[parsed_new_key[0]] = parsed_new_key TypeError: list indices must be integers, not str fatal: [192.168.251.100] =&gt; failed to parse: Traceback (most recent call last): File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key", line 1306, in &lt;module&gt; main() File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key", line 367, in main results = enforce_state(module, module.params) File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key", line 338, in enforce_state existing_keys[parsed_new_key[0]] = parsed_new_key TypeError: list indices must be integers, not str FATAL: all hosts have already failed -- aborting </code></pre></div>
<pre class="notranslate">ok: [shd9.quantifind.com] =&gt; (item={'comment': 'Ruoke Yang, Intern', 'shell': '/bin/bash', 'name': 'ruoke', 'home': '/home/ruoke', 'password': u'$6$qFindR0x$KHFkjjDgTaSbTCDROJ1cmPiPP9/heZaNtfPy8ROYF CIrjqUezDTZYS9ic2u89R6Cl6AgCNb4ETkasZwbI2t7C.', 'id': 2035}) fatal: [shd6.quantifind.com] =&gt; failed to parse: Traceback (most recent call last): File "/root/.ansible/tmp/ansible-1382148491.98-47941295244299/authorized_key", line 1303, in main() File "/root/.ansible/tmp/ansible-1382148491.98-47941295244299/authorized_key", line 364, in main results = enforce_state(module, module.params) File "/root/.ansible/tmp/ansible-1382148491.98-47941295244299/authorized_key", line 335, in enfor ce_state existing_keys[parsed_new_key[0]] = parsed_new_key TypeError: list indices must be integers, not str fatal: [shd7.quantifind.com] =&gt; failed to parse: Traceback (most recent call last): File "/root/.ansible/tmp/ansible-1382148491.98-84956261098277/authorized_key", line 1303, in main() File "/root/.ansible/tmp/ansible-1382148491.98-84956261098277/authorized_key", line 364, in main results = enforce_state(module, module.params) File "/root/.ansible/tmp/ansible-1382148491.98-84956261098277/authorized_key", line 335, in enfor ce_state existing_keys[parsed_new_key[0]] = parsed_new_key TypeError: list indices must be integers, not str changed: [shm0.quantifind.com] =&gt; (item={'comment': 'ItOps - Primary Operations Shared User', 'shel l': '/bin/zsh', 'name': 'itops', 'home': '/home/itops', 'password': u'$6$jwVKWtNiBrQs$6bYNYuC5Qmrdv SKGIRqSx/9C8.yOucK1qt.cktZlCPQEAzzvL8sTCkWj0Y2EU0nsxHkLBmngQPlR7VfmhG6MI/', 'id': 1500}) ok: [shd9.quantifind.com] =&gt; (item={'comment': 'Jason Sobel, VP Engineering', 'shell': '/bin/bash', 'name': 'jason', 'home': '/home/jason', 'password': u'$6$mUG.17HloQ0AsJO$nP6fpdiH.CwBqpZQ5/6CNAseM vVQ6kptG74bxkSWtqrsesomkQT88YvtDxBzqA/HDlNiq4Nj1kCLZLrGwI6.o1', 'id': 2036}) </pre>
1
<p dir="auto">The recent changes in variables.less comment styling has led to Visual Studio 2013 (and maybe others) to mess up the interpretation, as you can see in the screenshot below.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/2e0cf09324b21c9ceb599f74717c05137c71fc2ce41aa799c176677c33d4ecd0/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f353435373736392f323436313532352f62383261336535612d616637372d313165332d393531662d6135663532316234353662652e706e67"><img src="https://camo.githubusercontent.com/2e0cf09324b21c9ceb599f74717c05137c71fc2ce41aa799c176677c33d4ecd0/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f353435373736392f323436313532352f62383261336535612d616637372d313165332d393531662d6135663532316234353662652e706e67" alt="variables" data-canonical-src="https://f.cloud.github.com/assets/5457769/2461525/b82a3e5a-af77-11e3-951f-a5f521b456be.png" style="max-width: 100%;"></a></p> <p dir="auto">The problem lies in the comment style (which has changed for some unknown reason, correct me if I'm wrong). Would be great if someone could fill me in on that.</p> <div class="highlight highlight-source-css-less notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//** Comment"><pre class="notranslate"><span class="pl-c"><span class="pl-c">//</span>** Comment</span></pre></div> <p dir="auto">Simple fix would be adding a space:</p> <div class="highlight highlight-source-css-less notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// ** Comment"><pre class="notranslate"><span class="pl-c"><span class="pl-c">//</span> ** Comment</span></pre></div>
<p dir="auto">I'm not sure why the comments in the <code class="notranslate">variables.less</code> got changed to this style <code class="notranslate">//**</code>, but it my opinion it was a brave move.</p> <p dir="auto">For me at least it prevents compilation when using the nodejs compiler <code class="notranslate">lessc</code>.</p> <p dir="auto">At also breaks the syntax highlighting in my IDE, Visual Studio 2013</p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Microsoft Windows 10 Pro Technical Preview<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\weitochearyeah\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -5:30.7.0 beautify:beautify-editor (atom-text-editor.editor) -5:26.5.0 core:save (atom-text-editor.editor) -5:12.2.0 beautify:beautify-editor (atom-text-editor.editor) -4:50.9.0 core:backspace (atom-text-editor.editor) -4:48.4.0 core:delete (atom-text-editor.editor) -4:47.8.0 core:backspace (atom-text-editor.editor) 2x -4:27 beautify:beautify-editor (atom-text-editor.editor) -3:54.9.0 core:delete (atom-text-editor.editor) -3:54.2.0 core:backspace (atom-text-editor.editor) -3:53.4.0 core:delete (atom-text-editor.editor) -0:09.2.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -5:30.7.0 beautify:beautify-editor (atom-text-editor.editor) -5:26.5.0 core:save (atom-text-editor.editor) -5:12.2.0 beautify:beautify-editor (atom-text-editor.editor) -4:50.9.0 core:backspace (atom-text-editor.editor) -4:48.4.0 core:delete (atom-text-editor.editor) -4:47.8.0 core:backspace (atom-text-editor.editor) 2x -4:27 beautify:beautify-editor (atom-text-editor.editor) -3:54.9.0 core:delete (atom-text-editor.editor) -3:54.2.0 core:backspace (atom-text-editor.editor) -3:53.4.0 core:delete (atom-text-editor.editor) -0:09.2.0 core:backspace (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: {}, &quot;editor&quot;: { &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: {}, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {} } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User atom-beautify, v0.24.1 autocomplete-plus, v2.12.0 color-picker, v1.7.0 emmet, v2.3.8 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> atom<span class="pl-k">-</span>beautify, v0.<span class="pl-ii">24</span>.<span class="pl-ii">1</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">7</span>.<span class="pl-ii">0</span> emmet, v2.<span class="pl-ii">3</span>.<span class="pl-ii">8</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:351:15) at Function.Module._load (module.js:293:25) at Module.require (module.js:380:17) at require (module.js:399:17) at BrowserWindow. (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\src\browser\atom-window.js:127:27) at BrowserWindow.emit (events.js:116:17) at callFunction (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\lib\rpc-server.js:116:18) at EventEmitter. (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\lib\rpc-server.js:208:14) at EventEmitter.emit (events.js:127:17) at EventEmitter. (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\api\lib\web-contents.js:99:23)"><pre class="notranslate"><code class="notranslate">Uncaught Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:351:15) at Function.Module._load (module.js:293:25) at Module.require (module.js:380:17) at require (module.js:399:17) at BrowserWindow. (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\src\browser\atom-window.js:127:27) at BrowserWindow.emit (events.js:116:17) at callFunction (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\lib\rpc-server.js:116:18) at EventEmitter. (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\lib\rpc-server.js:208:14) at EventEmitter.emit (events.js:127:17) at EventEmitter. (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\api\lib\web-contents.js:99:23) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:351:15) at Function.Module._load (module.js:293:25) at Module.require (module.js:380:17) at require (module.js:399:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\src\browser\atom-window.js:127:27) at BrowserWindow.emit (events.js:116:17) at callFunction (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\lib\rpc-server.js:208:14) at EventEmitter.emit (events.js:127:17) at EventEmitter.&lt;anonymous&gt; (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\api\lib\web-contents.js:99:23) at metaToValue (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\src\context-menu-manager.js:169:33) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\src\window-event-handler.js:143:33) at HTMLDocument.handler (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\node_modules\space-pen\vendor\jquery.js:4359:46)"><pre class="notranslate"><code class="notranslate">C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:351:15) at Function.Module._load (module.js:293:25) at Module.require (module.js:380:17) at require (module.js:399:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\src\browser\atom-window.js:127:27) at BrowserWindow.emit (events.js:116:17) at callFunction (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\lib\rpc-server.js:208:14) at EventEmitter.emit (events.js:127:17) at EventEmitter.&lt;anonymous&gt; (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\browser\api\lib\web-contents.js:99:23) at metaToValue (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\atom\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\src\context-menu-manager.js:169:33) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\src\window-event-handler.js:143:33) at HTMLDocument.handler (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Karai\AppData\Local\atom\app-0.179.0\resources\app\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div>
1
<p dir="auto">Consider following form:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;form action=&quot;/&quot;&gt; &lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;default&quot;&gt; &lt;input type=&quot;radio&quot; name=&quot;option&quot; value=&quot;A&quot;&gt; &lt;input type=&quot;radio&quot; name=&quot;option&quot; value=&quot;B&quot;&gt; &lt;input type=&quot;hidden&quot; name=&quot;settings[1]&quot; value=&quot;0&quot;&gt; &lt;input type=&quot;checkbox&quot; name=&quot;settings[1]&quot; value=&quot;1&quot; id=&quot;setting-1&quot;&gt; &lt;button&gt;klickme&lt;/button&gt; &lt;/form&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/</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">hidden</span>" <span class="pl-c1">name</span>="<span class="pl-s">option</span>" <span class="pl-c1">value</span>="<span class="pl-s">default</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">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">option</span>" <span class="pl-c1">value</span>="<span class="pl-s">A</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">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">option</span>" <span class="pl-c1">value</span>="<span class="pl-s">B</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">hidden</span>" <span class="pl-c1">name</span>="<span class="pl-s">settings[1]</span>" <span class="pl-c1">value</span>="<span class="pl-s">0</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">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">settings[1]</span>" <span class="pl-c1">value</span>="<span class="pl-s">1</span>" <span class="pl-c1">id</span>="<span class="pl-s">setting-1</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span>klickme<span class="pl-kos">&lt;/</span><span class="pl-ent">button</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">Form generated by CakePHP and Laravel automatically. This works the way that when no radio button was selected or checkbox was checked a value from hidden field with same <code class="notranslate">name</code> attribute used in POST and <code class="notranslate">getValue</code> method of corresponding <code class="notranslate">FormField</code> in DomCrawler.</p> <p dir="auto">Right now this results in Fatal Error with radio button (because hidden field which is discovered first in considered as radio button, when a radio button with same name is found), see Behat/Mink#349:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Fatal error: Call to undefined method Symfony\Component\DomCrawler\Field\InputFormField::addChoice() in ./vendor/symfony/dom-crawler/Symfony/Component/DomCrawler/Form.php on line 412"><pre class="notranslate"><code class="notranslate">Fatal error: Call to undefined method Symfony\Component\DomCrawler\Field\InputFormField::addChoice() in ./vendor/symfony/dom-crawler/Symfony/Component/DomCrawler/Form.php on line 412 </code></pre></div> <p dir="auto">and has no effect (default value from hidden field isn't used), when we're dealing with checkbox, see Behat/Mink#595 .</p> <p dir="auto">Related issues:</p> <ul dir="auto"> <li>Behat/Mink#349</li> <li>Behat/Mink#595</li> </ul>
<p dir="auto">This is actually a duplicate ticket from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17934736" data-permission-text="Title is private" data-url="https://github.com/silexphp/Silex-WebProfiler/issues/22" data-hovercard-type="issue" data-hovercard-url="/silexphp/Silex-WebProfiler/issues/22/hovercard" href="https://github.com/silexphp/Silex-WebProfiler/issues/22">silexphp/Silex-WebProfiler#22</a> but thought I best put it here as well incase it gets missed in the Silex-WebProfiler repo.</p> <p dir="auto">The Web Profiler seems to trigger this error since this method was added 4 days ago.</p>
0
<p dir="auto">I am using the modal dialog on a Grails based application. The first time I click a link (using the &lt;a&gt; tag) my action is fired as I can see in my debugger and I'm able to operate on data. Any link clicked afterwards is no longer 'loading' the URL specified by data-remote so the same dialog from the first attempt is displayed over and over.</p> <p dir="auto">I am assuming that this would work correctly in the javascript version. Is there no way for this to work with the data api version?</p>
<p dir="auto">After closing and opening same modal it will not request content. Adding <code class="notranslate">$.ajaxSetup({ cache: false });</code></p> <p dir="auto">not helped. Is it but or there is some trick to avoid it?</p>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> Bug</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto"><code class="notranslate">webpack2</code> causes <a href="https://github.com/erikras/redux-form/issues/2269#issuecomment-290887297" data-hovercard-type="issue" data-hovercard-url="/redux-form/redux-form/issues/2269/hovercard">this bug</a> in <code class="notranslate">redux-form</code>. I think the reason is two copies of <code class="notranslate">SubmissionError</code> classes are created and can be referenced separately, causing <code class="notranslate">instanceof</code> confusions.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">Please see the error demonstration here:</p> <p dir="auto"><a href="https://github.com/aq1018/webpack2-redux-form-submission-error-weirdness">https://github.com/aq1018/webpack2-redux-form-submission-error-weirdness</a></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto"><code class="notranslate">instanceof</code> should return true from instance of classes imported from either import methods.</p> <p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></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">I asked this question <a href="http://stackoverflow.com/questions/31412009/webpack-creating-duplicate-entries-for-dependencies" rel="nofollow">over on StackOverflow</a> but I figured I might get a better response here.</p> <p dir="auto">I am trying to switch from using browserify to webpack. One thing browserify handled nicely was dependency management inside dependencies. Let me give an example:</p> <p dir="auto">Main app project:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var util1 = require('shared-components/util1'); var util2 = require('shared-components/util2');"><pre class="notranslate"><code class="notranslate">var util1 = require('shared-components/util1'); var util2 = require('shared-components/util2'); </code></pre></div> <p dir="auto">Inside <code class="notranslate">shared-components/util1.js</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var util2 = require('../util2');"><pre class="notranslate"><code class="notranslate">var util2 = require('../util2'); </code></pre></div> <p dir="auto">Browserify would realize that the reference to util2 in both scenarios was the same but it appears that Webpack does not which creates duplicate entries for util2.</p> <p dir="auto">Is there a configuration setting or plugin I can use to resolve this?</p>
0
<p dir="auto">This program is currently accepted:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use A::B; mod A { pub struct B { n: int } fn B() { } } fn main() { }"><pre class="notranslate"><span class="pl-k">use</span> <span class="pl-smi">A</span><span class="pl-kos">::</span><span class="pl-v">B</span><span class="pl-kos">;</span> <span class="pl-k">mod</span> <span class="pl-v">A</span> <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span> <span class="pl-c1">n</span><span class="pl-kos">:</span> <span class="pl-smi">int</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-v">B</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">but this program, which adds a use of <code class="notranslate">B()</code>, is not:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use A::B; mod A { pub struct B { n: int } fn B() { } } fn main() { let _ = B(); }"><pre class="notranslate"><span class="pl-k">use</span> <span class="pl-smi">A</span><span class="pl-kos">::</span><span class="pl-v">B</span><span class="pl-kos">;</span> <span class="pl-k">mod</span> <span class="pl-v">A</span> <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span> <span class="pl-c1">n</span><span class="pl-kos">:</span> <span class="pl-smi">int</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-v">B</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> _ = <span class="pl-v">B</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">When there is a single import statement that imports multiple idents, and one of them is not found, then the resulting error points to the use site, not the import site.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import http_parser::{http_parser, http_parser_settings, http_parser_execute}; // http_parser_execute is not in the http_parser module .... http_parser_execute(addr_of(self.parser));"><pre class="notranslate"><code class="notranslate">import http_parser::{http_parser, http_parser_settings, http_parser_execute}; // http_parser_execute is not in the http_parser module .... http_parser_execute(addr_of(self.parser)); </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./parser.rs:68:12: 68:31 error: unresolved name: http_parser_execute ./parser.rs:68 http_parser_execute(addr_of(self.parser),"><pre class="notranslate"><code class="notranslate">./parser.rs:68:12: 68:31 error: unresolved name: http_parser_execute ./parser.rs:68 http_parser_execute(addr_of(self.parser), </code></pre></div>
0
<p dir="auto">BottomNavigation throws an error if one child is null.</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">Since inline if with logical &amp;&amp; operator (<a href="https://reactjs.org/docs/conditional-rendering.html#inline-if-with-logical--operator" rel="nofollow">https://reactjs.org/docs/conditional-rendering.html#inline-if-with-logical--operator</a>) is a popular technique to achieve conditional rendering, I think that BottomNavigation should support this, instead of throwing an error.</p> <p dir="auto">I think this could be achieved by filtering out children that are null at <a href="https://github.com/callemall/material-ui/blob/v1-beta/src/BottomNavigation/BottomNavigation.js#L66">https://github.com/callemall/material-ui/blob/v1-beta/src/BottomNavigation/BottomNavigation.js#L66</a> before mapping them.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">BottomNavigation throws an error if one child is null, such as is the case with inline if with logical &amp;&amp; operator for conditional rendering.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;BottomNavigation selectedIndex={0}&gt; &lt;BottomNavigationItem label=&quot;One: OK&quot; /&gt; &lt;BottomNavigationItem label=&quot;Two: OK&quot; /&gt; { condition &amp;&amp; &lt;BottomNavigationItem label=&quot;Three: Will throw error when condition is false&quot; /&gt; } &lt;/BottomNavigation&gt;"><pre class="notranslate"><code class="notranslate">&lt;BottomNavigation selectedIndex={0}&gt; &lt;BottomNavigationItem label="One: OK" /&gt; &lt;BottomNavigationItem label="Two: OK" /&gt; { condition &amp;&amp; &lt;BottomNavigationItem label="Three: Will throw error when condition is false" /&gt; } &lt;/BottomNavigation&gt; </code></pre></div> <ol dir="auto"> <li></li> <li></li> <li></li> <li></li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I'm using conditional rendering to show select options in the bottom navigation.</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>0.19.4</td> </tr> <tr> <td>React</td> <td>15.4.2</td> </tr> <tr> <td>browser</td> <td>Firefox 52.2.0 (64-bit), Version 60.0.3112.113 (Official Build) (64-bit)</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">Following the guide about server side rendering, I tried to use the <code class="notranslate">jss-default-preset</code> (as <code class="notranslate">jss-compose</code> and <code class="notranslate">jss-extend</code> are really awesome <g-emoji class="g-emoji" alias="1st_place_medal" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f947.png">🥇</g-emoji> )<br> My server code is the following:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { create } from &quot;jss&quot;; import jssPreset from &quot;jss-preset-default&quot;; const jss = create(jssPreset());"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">create</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"jss"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">jssPreset</span> <span class="pl-k">from</span> <span class="pl-s">"jss-preset-default"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">jss</span> <span class="pl-c1">=</span> <span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-en">jssPreset</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">When my server render the css, everything is fine. But for the client part, it does not execute the extra plugins (jss-extend and jss-compose).<br> In the guide, the <a href="https://material-ui-next.com/guides/server-rendering/#the-client-side" rel="nofollow">client part</a> doesn't wrap the app with a <code class="notranslate">JssProvider</code>.<br> So I don't know how to configure the client side to also use the <code class="notranslate">jss-preset-default</code>.</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>
0
<p dir="auto">React version: 16.13.1</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>Create a component using a conditional hook</li> <li>Wrap the component with a HOC, e.g. mobx <a href="https://mobx.js.org/react-integration.html" rel="nofollow">observer</a></li> </ol> <h2 dir="auto">Example</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function HOC&lt;T&gt;(c: T): T { return c; } const ConditionalHookComp = HOC( ({ flag }): JSX.Element =&gt; { if (flag) { useEffect(() =&gt; console.log(&quot;something&quot;)); } return &lt;&gt;&lt;/&gt;; });"><pre class="notranslate"><code class="notranslate">function HOC&lt;T&gt;(c: T): T { return c; } const ConditionalHookComp = HOC( ({ flag }): JSX.Element =&gt; { if (flag) { useEffect(() =&gt; console.log("something")); } return &lt;&gt;&lt;/&gt;; }); </code></pre></div> <h2 dir="auto">The current behavior</h2> <p dir="auto">The linter does not issue a warning/error for the conditional use of hooks, unless you remove the HOC.</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">The linter issues a warning/error for the conditional use of hooks regardless whether the component is wrapped by an HOC or not.</p>
<p dir="auto">React version: 17.0.1</p> <p dir="auto">my component file is like:</p> <p dir="auto">`export default function(props) {</p> <p dir="auto">if (props.data &gt; 1) {<br> useEffect(function() {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="})"><pre class="notranslate"><code class="notranslate">}) </code></pre></div> <p dir="auto">}<br> return (<br> </p><div dir="auto"> data</div><br> )<br> }`<p dir="auto"></p> <p dir="auto">my .eslintrc.json file like this:<br> <code class="notranslate">{ "extends": [], "plugins": [ "react-hooks" ], "rules": { "react-hooks/rules-of-hooks": "error", "react-hooks/exhaustive-deps": "error" }, "parser": "babel-eslint" }</code></p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.x</li> <li>Operating System version: all</li> <li>Java version: 1.6+</li> </ul> <h3 dir="auto">Step to reproduce this issue</h3> <p dir="auto"><code class="notranslate">mvn clean package</code></p> <h3 dir="auto">Expected Result</h3> <p dir="auto">BUILD SUCCESS</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">BUILD FAILED</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/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.6.x</li> <li>Operating System version: centos</li> <li>Java version: 1.8</li> </ul> <p dir="auto">原因:<br> 1.数据包大小不确定<br> 2.经常出现网络耗时比较长的原因</p> <p dir="auto">如何 监控dubbo的传输数据包的大小,有那个地方能看到吗</p>
0
<p dir="auto">In ES6 spec in section in <a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-let-and-const-declarations" rel="nofollow">Let and Const Declaration</a></p> <blockquote> <p dir="auto">LexicalDeclaration : LetOrConst BindingList ;</p> <ul dir="auto"> <li>It is a Syntax Error if the BoundNames of BindingList contains "let".</li> <li>It is a Syntax Error if the BoundNames of BindingList contains any duplicate entries.</li> </ul> </blockquote> <p dir="auto">currently we allow</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let let = 10; const let = 30;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">let</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">let</span> <span class="pl-c1">=</span> <span class="pl-c1">30</span><span class="pl-kos">;</span></pre></div> <p dir="auto">which should be syntax error regardless of strict-mode.<br> Note: below shouldn't be a syntax error unless it is in strict-mode</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let = 10 var let = 20;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span> <span class="pl-k">var</span> <span class="pl-s1">let</span> <span class="pl-c1">=</span> <span class="pl-c1">20</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The following examples should trigger an early error in JS:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let let = 10;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">let</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</span></pre></div> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const let = 10;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">let</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><sub>Note: a similar test exists in <code class="notranslate">tests/cases/conformance/es6/for-ofStatements/for-of56.ts</code>) for the following 3 examples</sub></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for (var let of [1,2,3]) { }"><pre class="notranslate"><span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">let</span> <span class="pl-k">of</span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for (let let of [1,2,3]) { }"><pre class="notranslate"><span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">let</span> <span class="pl-k">of</span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for (const let of [1,2,3]) { }"><pre class="notranslate"><span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">let</span> <span class="pl-k">of</span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I'm not sure if the following should trigger an error:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var let = 10; for (let of [1,2,3]) { }"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">let</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">of</span><span class="pl-kos"></span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos"></span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <hr> <hr> <blockquote> <h3 dir="auto"><span id="user-content-sec-13.2.1.1"><a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-let-and-const-declarations-static-semantics-early-errors" rel="nofollow">13.2.1.1</a></span> Static Semantics: Early Errors</h3> <p dir="auto"><em>LexicalDeclaration</em> <span>:</span> <em>LetOrConst</em> <em>BindingList</em> <code class="notranslate">;</code></p> <ul dir="auto"> <li>It is a Syntax Error if the BoundNames of <em>BindingList</em> contains <code class="notranslate">"let"</code>.</li> </ul> </blockquote> <hr> <blockquote> <h3 dir="auto"><span id="user-content-sec-13.6.4.1"><a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-for-in-and-for-of-statements-static-semantics-early-errors" rel="nofollow">13.6.4.1</a></span> Static Semantics: Early Errors</h3> <p dir="auto"><em>IterationStatement</em> <span>:</span></p> <p dir="auto"><code class="notranslate">for</code> <code class="notranslate">(</code> <em>ForDeclaration</em> <code class="notranslate">in</code> <em>Expression</em> <code class="notranslate">)</code> <em>Statement</em></p> <p dir="auto"><code class="notranslate">for</code> <code class="notranslate">(</code> <em>ForDeclaration</em> <code class="notranslate">of</code> <em>AssignmentExpression</em> <code class="notranslate">)</code> <em>Statement</em></p> <ul dir="auto"> <li>It is a Syntax Error if the BoundNames of <em>ForDeclaration</em> contains <code class="notranslate">"let"</code>.</li> </ul> </blockquote>
1
<p dir="auto">after restoring from minimize the size expands about 10 pixel .<br> I set min width and min height and use getCurrentWindow().minimize(); function .<br> I have frame less windows and run app in windows 10<br> if windows was set to min width and min height after recovering from minimize state it expands the size about 10 pixel<br> same issue while maximizing and restoring window</p> <p dir="auto">applications like what's app which is written by electron has same problem</p> <p dir="auto">I use electron 9.1.0</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/main/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/main/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">15.3.1</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">Windows11 version 22000.346</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">x64</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto">13.0.0</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Normal start</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">gpu-process-crashed</p> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional Information</h3> <p dir="auto"><a href="https://github.com/electron/electron/files/7569258/Crashpad.zip">Crashpad.zip</a></p>
0
<p dir="auto">Updated from Next@2.2.0 to Next@latest and when I run the app I get this error:<br> Error: _document.js is not exporting a React element 3 times in the terminal.</p> <p dir="auto">Latest updated from testing is that the issue arises when I try and use redux in the _document.js - if I don't init redux in document.js it works.</p> <p dir="auto">Any help is greatly appreciated!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <h2 dir="auto">Current Behavior</h2> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Here is my repo with next@2.2.0 - you can just download and change it to next@latest in package.json: <a href="https://github.com/spencersmb/Font-Popper-Client">https://github.com/spencersmb/Font-Popper-Client</a></li> <li>npm install</li> <li>npm run watch</li> <li></li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">Trying to upgrade my version of next to the latest.</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>3.0.6</td> </tr> <tr> <td>node</td> <td>v8.2.1</td> </tr> <tr> <td>OS</td> <td>Sierra 10.12.5</td> </tr> <tr> <td>browser</td> <td>chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">The route <code class="notranslate">/posts/</code> renders on the server but then the store on the client subscribe is undefined. In the chrome dev tools, it shows an error on the import for <code class="notranslate">isPlainObject</code> from lodash. I've done this before and I have no idea whats wrong. I'm sure its something I am doing, but I can't put my finger on it.</p> <p dir="auto">Basically I create in my <code class="notranslate">hoc</code> folder in <code class="notranslate">src/</code> a <code class="notranslate">pageWrapper</code> that just partially applies the store and is waiting for the component. I then have my <code class="notranslate">Posts</code> component in <code class="notranslate">features/</code> <code class="notranslate">connect</code>ed. I can't seem to figure out whats wrong with the store and why its broken on the client.</p> <p dir="auto">Initially I see the basic text appear before the error pops up which leads me to believe the store is working on the server but not the client.</p> <p dir="auto">Code here, <a href="https://github.com/ryanbas21/blog">https://github.com/ryanbas21/blog</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">Expected Behavior</h2> <h2 dir="auto">Current Behavior</h2> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li></li> <li></li> <li></li> <li></li> </ol> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td></td> </tr> <tr> <td>node</td> <td></td> </tr> <tr> <td>OS</td> <td></td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">Given the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="restoreState() { var iLastState = this.stateStack[ stateStack.length - 1 ]; this.restoreState( iLastState ); } restoreState( aState: TransformerState ) { this.state = aState }"><pre class="notranslate"><code class="notranslate">restoreState() { var iLastState = this.stateStack[ stateStack.length - 1 ]; this.restoreState( iLastState ); } restoreState( aState: TransformerState ) { this.state = aState } </code></pre></div> <p dir="auto">And the following call:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="popState() { var iState = this.stateStack.pop(); this.restoreState( iState ); // Error on this line }"><pre class="notranslate"><code class="notranslate">popState() { var iState = this.stateStack.pop(); this.restoreState( iState ); // Error on this line } </code></pre></div> <p dir="auto">The compiler complains:</p> <p dir="auto"><code class="notranslate">error TS2346: Supplied parameters do not match any signature of call target.</code></p> <p dir="auto">Language like C++ or JAVA support no argument function overloads; typescript seems not to.</p>
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.10</p> <p dir="auto">Hi.</p> <p dir="auto">I still have the error code TS1127 when I try to compile a file.<br> I use the code from the quick tutorial.</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // A self-contained demonstration of the problem follows... function greeter(person: string){ return &quot;Hello, &quot; + person; } var user = [0, 1, 2]; document.body.innerHTML = greeter(user);"><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span> <span class="pl-k">function</span> <span class="pl-en">greeter</span><span class="pl-kos">(</span><span class="pl-s1">person</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s">"Hello, "</span> <span class="pl-c1">+</span> <span class="pl-s1">person</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">user</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span> <span class="pl-c1">=</span> <span class="pl-en">greeter</span><span class="pl-kos">(</span><span class="pl-s1">user</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">_greeter.ts(7,26):<em>Supplied parameters do not match any signature of call target</em></p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto"><em>greeter.ts(1,1): error TS1127: Invalid character.<br> greeter.ts(1,2): error TS1127: Invalid character.<br> greeter.ts(1,3): error TS1127: Invalid character.<br> greeter.ts(1,4): error TS1127: Invalid character.</em></p>
0