text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">We should have documented as an example how to use the new <a href="https://github.com/zeit/next-plugins/tree/master/packages/next-sass">next-sass</a> plugin</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">We have a few examples to import <code class="notranslate">.sass</code> files which are mostly hacks to make it work.</p> <h2 dir="auto">Context</h2> <p dir="auto">With the release of Next.js v5 the current examples of importing SASS/SCSS are outdated and can be simplified with the new <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-css">next-css</a> plugin.</p>
<ul dir="auto"> <li>[x ] I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Both URLs /foo and /foo/ should render the contents of /pages/foo/index.js.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">/foo works fine, but /foo/ causes a 404 error on SSR and only reconciles later at client side rendering.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>create minimal next.js project</li> <li>create /pages/foo/index.js including e.g. <code class="notranslate">export default () =&gt; &lt;div&gt;hello world&lt;/div&gt;</code></li> <li>test url /foo/, should throw 404 on SSR</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>5.0.0</td> </tr> <tr> <td>node</td> <td>8.9.0</td> </tr> </tbody> </table>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1700" rel="nofollow">http://projects.scipy.org/numpy/ticket/1700</a> on 2010-12-24 by trac user johnmark54, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgommers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgommers">@rgommers</a>.</em></p> <p dir="auto">After installing python binary<br> <strong>python-2.7.1.amd64.msi</strong> from python.org<br> the install of<br> <strong>numpy-1.5.0-win32-superpack-python2.7.exe</strong><br> fails with error:''<br> Python 2.7 required, which was not found in the registry.''</p> <p dir="auto">Reinstalling python, using different versions of python etc. does not help.<br> Python runs fine.<br> (Is this the right place to report this?)</p> <p dir="auto"><a href="mailto:[email protected]">[email protected]</a></p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1621" rel="nofollow">http://projects.scipy.org/numpy/ticket/1621</a> on 2010-09-26 by trac user alxx, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgommers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgommers">@rgommers</a>.</em></p> <p dir="auto">When installing numpy-1.5.0-win32-superpack-python2.7 on windows7 64 bit, the installer can not find python2.7 in the registry.</p> <p dir="auto">Its a know problem with the distutils installer.<br> see <a href="http://bugs.python.org/issue6792" rel="nofollow">http://bugs.python.org/issue6792</a><br> and<br> <a href="http://stackoverflow.com/questions/3652625/installing-setuptools-on-64-bit-windows" rel="nofollow">http://stackoverflow.com/questions/3652625/installing-setuptools-on-64-bit-windows</a></p> <p dir="auto">Need to have a separate 64 bit windows installer or look for the additional registry entries to find the install location or have a fall through that allows a user to still install even if it doesn't find python 2.7.</p> <p dir="auto">PyQt v4.7.7 uses the fall through option.<br> wxpython has a separate installer</p> <p dir="auto">Someone provides unofficial numpy (and scipy) binaries here <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/" rel="nofollow">http://www.lfd.uci.edu/~gohlke/pythonlibs/</a><br> but I'd much prefer using an official package (if possible)</p>
1
<p dir="auto">On Android, open Gallery, tap into Shrine. Then, tap an item. Notice how the initial animation up misses frames. Then, tap back. Notice more missed frames. Then, tap on the same item. The animation up is smooth.</p> <p dir="auto">Seems like something is happening on the first animation for hero'ing an item up. Not sure what, but it's causing us to miss frames.</p> <p dir="auto">After the first animation, things are smooth, so we can get to great animations with the items.</p>
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Create a new flutter application (I used <code class="notranslate">flutter create -i swift -a kotlin coverage</code>). The problem occurs in every project.</li> <li>Run tests with coverage in the newly created application (<code class="notranslate">cd coverage &amp;&amp; flutter test --coverage</code>)</li> </ol> <hr> <ul dir="auto"> <li>I'm on the master channel, I also tried it with the dev channel, same problem there</li> <li>I also removed my whole flutter directory and ~/.pub-cache and re-downloaded it.. I once had some caching issues, wanted to rule them out</li> </ul> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; flutter test --coverage --verbose flutter test --coverage --verbose [ +32 ms] executing: [/machine-path/Dev/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +40 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master [ ] executing: [/machine-path/Dev/flutter/] git rev-parse --abbrev-ref HEAD [ +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ ] executing: [/machine-path/Dev/flutter/] git ls-remote --get-url origin [ +10 ms] Exit code 0 from: git ls-remote --get-url origin [ ] [email protected]:flutter/flutter.git [ ] executing: [/machine-path/Dev/flutter/] git log -n 1 --pretty=format:%H [ +11 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 2a8e35cc9c42e6957b069439eaa56207afed5ea2 [ ] executing: [/machine-path/Dev/flutter/] git log -n 1 --pretty=format:%ar [ +10 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 2 days ago [ +1 ms] executing: [/machine-path/Dev/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +14 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.9.5-35-g2a8e35cc9 [ +398 ms] switching to directory LocalDirectory: 'test' to run tests [ ] running test package with arguments: [-r, compact, --concurrency=6, --, /machine-path/Dev/coverage/coverage/test/widget_test.dart] 00:00 +0: ... /machine-path/Dev/coverage/coverage/test/widget_test.dart [ +139 ms] test 0: starting test /machine-path/Dev/coverage/coverage/test/widget_test.dart [ +21 ms] test 0: starting shell process [ +2 ms] Stopping scan for flutter_test_config.dart; found project root at /machine-path/Dev/coverage/coverage [ +1 ms] Compiler will use the following file as its incremental dill file: /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_compiler.aqT4Cm/output.dill [ ] Listening to compiler controller... [ +3 ms] Compiling /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_listener.uyr0XQ/listener.dart [ +7 ms] /machine-path/Dev/flutter/bin/cache/dart-sdk/bin/dart /machine-path/Dev/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /machine-path/Dev/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_compiler.aqT4Cm/output.dill --packages /machine-path/Dev/coverage/coverage/.packages --initialize-from-dill /machine-path/Dev/coverage/coverage/build/testfile.dill 00:01 +0: ... /machine-path/Dev/coverage/coverage/test/widget_test.dart [+1533 ms] Compiling /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_listener.uyr0XQ/listener.dart took 1540ms [ +1 ms] Copying platform_strong.dill file from /machine-path/Dev/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/platform_strong.dill [ +8 ms] /machine-path/Dev/flutter/bin/cache/artifacts/engine/darwin-x64/flutter_tester --flutter-assets-dir=/var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_bundle.SpkNWV --enable-checked-mode --enable-software-rendering --skia-deterministic-rendering --enable-dart-profiling --non-interactive --use-test-fonts --packages=/machine-path/Dev/coverage/coverage/.packages /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_listener.uyr0XQ/listener.dart.dill [ +1 ms] Using this directory for fonts configuration: /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_fonts.Kq4qKh [ +11 ms] test 0: awaiting initial result for pid 49094 [ +96 ms] Shell: Observatory listening on http://127.0.0.1:57385/ [ ] test 0: using observatory uri http://127.0.0.1:57385/ from pid 49094 [ +228 ms] test 0: process with pid 49094 connected to test harness [ +1 ms] test 0: awaiting test result for pid 49094 00:02 +1: Counter increments smoke test [ +712 ms] test 0: process with pid 49094 no longer needed by test harness [ ] test 0: collecting coverage [ +1 ms] pid 49094: collecting coverage data from http://127.0.0.1:57385/... 00:10 +1: Counter increments smoke test [+7400 ms] test 0: error caught during test; reporting to console [ ] unhandled error during test: /machine-path/Dev/coverage/coverage/test/widget_test.dart Bad state: Couldn't find line and column for token 2529 in file:///b/build/slave/Linux_Engine/build/src/third_party/dart/sdk/lib/collection/list.dart. #0 VMScript._lineAndColumn (package:vm_service_client/src/script.dart:243:5) #1 _ScriptLocation._ensureLineAndColumn (package:vm_service_client/src/script.dart:314:26) #2 _ScriptLocation.line (package:vm_service_client/src/script.dart:295:5) #3 _getCoverageJson (package:coverage/src/collect.dart:103:46) &lt;asynchronous suspension&gt; #4 _getAllCoverage (package:coverage/src/collect.dart:51:26) &lt;asynchronous suspension&gt; #5 collect (package:coverage/src/collect.dart:35:18) &lt;asynchronous suspension&gt; #6 CoverageCollector.collectCoverage (package:flutter_tools/src/test/coverage_collector.dart:55:45) &lt;asynchronous suspension&gt; #7 CoverageCollector.handleFinishedTest (package:flutter_tools/src/test/coverage_collector.dart:27:11) &lt;asynchronous suspension&gt; #8 _FlutterPlatform._startTest (package:flutter_tools/src/test/flutter_platform.dart:649:30) &lt;asynchronous suspension&gt; #9 _FlutterPlatform.loadChannel (package:flutter_tools/src/test/flutter_platform.dart:407:36) #10 PlatformPlugin.load (package:test/src/runner/plugin/platform.dart:65:19) &lt;asynchronous suspension&gt; #11 Loader.loadFile.&lt;anonymous closure&gt; (package:test/src/runner/loader.dart:248:36) &lt;asynchronous suspension&gt; #12 new LoadSuite.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (package:test/src/runner/load_suite.dart:89:31) &lt;asynchronous suspension&gt; #13 invoke (package:test/src/utils.dart:242:5) #14 new LoadSuite.&lt;anonymous closure&gt; (package:test/src/runner/load_suite.dart:88:7) #15 Invoker._onRun.&lt;anonymous closure&gt;.&lt;anonymous closure&gt;.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (package:test/src/backend/invoker.dart:403:25) &lt;asynchronous suspension&gt; #16 new Future.&lt;anonymous closure&gt; (dart:async/future.dart:176:37) #17 StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15) #18 StackZoneSpecification._registerCallback.&lt;anonymous closure&gt; (package:stack_trace/src/stack_zone_specification.dart:119:48) #19 _rootRun (dart:async/zone.dart:1120:38) #20 _CustomZone.run (dart:async/zone.dart:1021:19) #21 _CustomZone.runGuarded (dart:async/zone.dart:923:7) #22 _CustomZone.bindCallbackGuarded.&lt;anonymous closure&gt; (dart:async/zone.dart:963:23) #23 StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15) #24 StackZoneSpecification._registerCallback.&lt;anonymous closure&gt; (package:stack_trace/src/stack_zone_specification.dart:119:48) #25 _rootRun (dart:async/zone.dart:1124:13) #26 _CustomZone.run (dart:async/zone.dart:1021:19) #27 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:947:23) #28 Timer._createTimer.&lt;anonymous closure&gt; (dart:async/runtime/libtimer_patch.dart:21:15) #29 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) #30 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) #31 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) [ +10 ms] test 0: cleaning up... [ ] test 0: ensuring end-of-process for shell [ +25 ms] test 0: deleting temporary bundle directory [ +1 ms] test 0: deleting temporary directory [ +2 ms] test 0: shutting down test harness socket server [ +1 ms] test 0: finished with out-of-band failure 00:10 +1 -1: loading /machine-path/Dev/coverage/coverage/test/widget_test.dart [E] Bad state: Couldn't find line and column for token 2529 in file:///b/build/slave/Linux_Engine/build/src/third_party/dart/sdk/lib/collection/list.dart. package:vm_service_client/src/script.dart 243:5 VMScript._lineAndColumn package:vm_service_client/src/script.dart 314:26 _ScriptLocation._ensureLineAndColumn package:vm_service_client/src/script.dart 295:5 _ScriptLocation.line package:coverage/src/collect.dart 103:46 _getCoverageJson ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/libasync_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:coverage/src/collect.dart _getCoverageJson ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:coverage/src/collect.dart _getCoverageJson package:coverage/src/collect.dart 51:26 _getAllCoverage ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:coverage/src/collect.dart _getAllCoverage package:coverage/src/collect.dart 35:18 collect ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:coverage/src/collect.dart collect package:flutter_tools/src/test/coverage_collector.dart 55:45 CoverageCollector.collectCoverage ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:flutter_tools/src/test/flutter_platform.dart _FlutterPlatform._startTest package:flutter_tools/src/test/flutter_platform.dart 407:36 _FlutterPlatform.loadChannel package:test/src/runner/plugin/platform.dart 65:19 PlatformPlugin.load ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:test/src/runner/loader.dart Loader.loadFile.&lt;fn&gt; package:test/src/runner/load_suite.dart 89:31 new LoadSuite.&lt;fn&gt;.&lt;fn&gt; ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test/src/backend/invoker.dart 402:15 Invoker._onRun.&lt;fn&gt;.&lt;fn&gt;.&lt;fn&gt;"><pre class="notranslate"><code class="notranslate">&gt; flutter test --coverage --verbose flutter test --coverage --verbose [ +32 ms] executing: [/machine-path/Dev/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +40 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master [ ] executing: [/machine-path/Dev/flutter/] git rev-parse --abbrev-ref HEAD [ +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ ] executing: [/machine-path/Dev/flutter/] git ls-remote --get-url origin [ +10 ms] Exit code 0 from: git ls-remote --get-url origin [ ] [email protected]:flutter/flutter.git [ ] executing: [/machine-path/Dev/flutter/] git log -n 1 --pretty=format:%H [ +11 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 2a8e35cc9c42e6957b069439eaa56207afed5ea2 [ ] executing: [/machine-path/Dev/flutter/] git log -n 1 --pretty=format:%ar [ +10 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 2 days ago [ +1 ms] executing: [/machine-path/Dev/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +14 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.9.5-35-g2a8e35cc9 [ +398 ms] switching to directory LocalDirectory: 'test' to run tests [ ] running test package with arguments: [-r, compact, --concurrency=6, --, /machine-path/Dev/coverage/coverage/test/widget_test.dart] 00:00 +0: ... /machine-path/Dev/coverage/coverage/test/widget_test.dart [ +139 ms] test 0: starting test /machine-path/Dev/coverage/coverage/test/widget_test.dart [ +21 ms] test 0: starting shell process [ +2 ms] Stopping scan for flutter_test_config.dart; found project root at /machine-path/Dev/coverage/coverage [ +1 ms] Compiler will use the following file as its incremental dill file: /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_compiler.aqT4Cm/output.dill [ ] Listening to compiler controller... [ +3 ms] Compiling /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_listener.uyr0XQ/listener.dart [ +7 ms] /machine-path/Dev/flutter/bin/cache/dart-sdk/bin/dart /machine-path/Dev/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /machine-path/Dev/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_compiler.aqT4Cm/output.dill --packages /machine-path/Dev/coverage/coverage/.packages --initialize-from-dill /machine-path/Dev/coverage/coverage/build/testfile.dill 00:01 +0: ... /machine-path/Dev/coverage/coverage/test/widget_test.dart [+1533 ms] Compiling /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_listener.uyr0XQ/listener.dart took 1540ms [ +1 ms] Copying platform_strong.dill file from /machine-path/Dev/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/platform_strong.dill [ +8 ms] /machine-path/Dev/flutter/bin/cache/artifacts/engine/darwin-x64/flutter_tester --flutter-assets-dir=/var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_bundle.SpkNWV --enable-checked-mode --enable-software-rendering --skia-deterministic-rendering --enable-dart-profiling --non-interactive --use-test-fonts --packages=/machine-path/Dev/coverage/coverage/.packages /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_listener.uyr0XQ/listener.dart.dill [ +1 ms] Using this directory for fonts configuration: /var/folders/mm/wbdn_k8n5rjfvqdtq53t8ttc0000gn/T/flutter_test_fonts.Kq4qKh [ +11 ms] test 0: awaiting initial result for pid 49094 [ +96 ms] Shell: Observatory listening on http://127.0.0.1:57385/ [ ] test 0: using observatory uri http://127.0.0.1:57385/ from pid 49094 [ +228 ms] test 0: process with pid 49094 connected to test harness [ +1 ms] test 0: awaiting test result for pid 49094 00:02 +1: Counter increments smoke test [ +712 ms] test 0: process with pid 49094 no longer needed by test harness [ ] test 0: collecting coverage [ +1 ms] pid 49094: collecting coverage data from http://127.0.0.1:57385/... 00:10 +1: Counter increments smoke test [+7400 ms] test 0: error caught during test; reporting to console [ ] unhandled error during test: /machine-path/Dev/coverage/coverage/test/widget_test.dart Bad state: Couldn't find line and column for token 2529 in file:///b/build/slave/Linux_Engine/build/src/third_party/dart/sdk/lib/collection/list.dart. #0 VMScript._lineAndColumn (package:vm_service_client/src/script.dart:243:5) #1 _ScriptLocation._ensureLineAndColumn (package:vm_service_client/src/script.dart:314:26) #2 _ScriptLocation.line (package:vm_service_client/src/script.dart:295:5) #3 _getCoverageJson (package:coverage/src/collect.dart:103:46) &lt;asynchronous suspension&gt; #4 _getAllCoverage (package:coverage/src/collect.dart:51:26) &lt;asynchronous suspension&gt; #5 collect (package:coverage/src/collect.dart:35:18) &lt;asynchronous suspension&gt; #6 CoverageCollector.collectCoverage (package:flutter_tools/src/test/coverage_collector.dart:55:45) &lt;asynchronous suspension&gt; #7 CoverageCollector.handleFinishedTest (package:flutter_tools/src/test/coverage_collector.dart:27:11) &lt;asynchronous suspension&gt; #8 _FlutterPlatform._startTest (package:flutter_tools/src/test/flutter_platform.dart:649:30) &lt;asynchronous suspension&gt; #9 _FlutterPlatform.loadChannel (package:flutter_tools/src/test/flutter_platform.dart:407:36) #10 PlatformPlugin.load (package:test/src/runner/plugin/platform.dart:65:19) &lt;asynchronous suspension&gt; #11 Loader.loadFile.&lt;anonymous closure&gt; (package:test/src/runner/loader.dart:248:36) &lt;asynchronous suspension&gt; #12 new LoadSuite.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (package:test/src/runner/load_suite.dart:89:31) &lt;asynchronous suspension&gt; #13 invoke (package:test/src/utils.dart:242:5) #14 new LoadSuite.&lt;anonymous closure&gt; (package:test/src/runner/load_suite.dart:88:7) #15 Invoker._onRun.&lt;anonymous closure&gt;.&lt;anonymous closure&gt;.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (package:test/src/backend/invoker.dart:403:25) &lt;asynchronous suspension&gt; #16 new Future.&lt;anonymous closure&gt; (dart:async/future.dart:176:37) #17 StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15) #18 StackZoneSpecification._registerCallback.&lt;anonymous closure&gt; (package:stack_trace/src/stack_zone_specification.dart:119:48) #19 _rootRun (dart:async/zone.dart:1120:38) #20 _CustomZone.run (dart:async/zone.dart:1021:19) #21 _CustomZone.runGuarded (dart:async/zone.dart:923:7) #22 _CustomZone.bindCallbackGuarded.&lt;anonymous closure&gt; (dart:async/zone.dart:963:23) #23 StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15) #24 StackZoneSpecification._registerCallback.&lt;anonymous closure&gt; (package:stack_trace/src/stack_zone_specification.dart:119:48) #25 _rootRun (dart:async/zone.dart:1124:13) #26 _CustomZone.run (dart:async/zone.dart:1021:19) #27 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:947:23) #28 Timer._createTimer.&lt;anonymous closure&gt; (dart:async/runtime/libtimer_patch.dart:21:15) #29 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) #30 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) #31 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) [ +10 ms] test 0: cleaning up... [ ] test 0: ensuring end-of-process for shell [ +25 ms] test 0: deleting temporary bundle directory [ +1 ms] test 0: deleting temporary directory [ +2 ms] test 0: shutting down test harness socket server [ +1 ms] test 0: finished with out-of-band failure 00:10 +1 -1: loading /machine-path/Dev/coverage/coverage/test/widget_test.dart [E] Bad state: Couldn't find line and column for token 2529 in file:///b/build/slave/Linux_Engine/build/src/third_party/dart/sdk/lib/collection/list.dart. package:vm_service_client/src/script.dart 243:5 VMScript._lineAndColumn package:vm_service_client/src/script.dart 314:26 _ScriptLocation._ensureLineAndColumn package:vm_service_client/src/script.dart 295:5 _ScriptLocation.line package:coverage/src/collect.dart 103:46 _getCoverageJson ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/libasync_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:coverage/src/collect.dart _getCoverageJson ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:coverage/src/collect.dart _getCoverageJson package:coverage/src/collect.dart 51:26 _getAllCoverage ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:coverage/src/collect.dart _getAllCoverage package:coverage/src/collect.dart 35:18 collect ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:coverage/src/collect.dart collect package:flutter_tools/src/test/coverage_collector.dart 55:45 CoverageCollector.collectCoverage ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:flutter_tools/src/test/flutter_platform.dart _FlutterPlatform._startTest package:flutter_tools/src/test/flutter_platform.dart 407:36 _FlutterPlatform.loadChannel package:test/src/runner/plugin/platform.dart 65:19 PlatformPlugin.load ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:test/src/runner/loader.dart Loader.loadFile.&lt;fn&gt; package:test/src/runner/load_suite.dart 89:31 new LoadSuite.&lt;fn&gt;.&lt;fn&gt; ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test/src/backend/invoker.dart 402:15 Invoker._onRun.&lt;fn&gt;.&lt;fn&gt;.&lt;fn&gt; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; flutter analyze Analyzing coverage... No issues found! (ran in 2.9s)"><pre class="notranslate"><code class="notranslate">&gt; flutter analyze Analyzing coverage... No issues found! (ran in 2.9s) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; flutter doctor -v [✓] Flutter (Channel master, v0.9.6-pre.35, on Mac OS X 10.13.6 17G65, locale en-US) • Flutter version 0.9.6-pre.35 at /machine-path/Dev/flutter • Framework revision 2a8e35cc9c (2 days ago), 2018-09-29 08:29:28 +0700 • Engine revision 0c2b6dc6e3 • Dart version 2.1.0-dev.6.0.flutter-2aac05fe10 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /machine-path/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) • All Android licenses accepted. [!] iOS toolchain - develop for iOS devices (Xcode 9.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.4.1, Build version 9F2000 ✗ ideviceinstaller is not installed; this is used to discover connected iOS devices. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller • ios-deploy 1.9.2 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.0) • Android Studio at /Applications/Android Studio.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] IntelliJ IDEA Community Edition (version 2018.1.6) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 26.0.2 • Dart plugin version 181.4892.1 [✓] VS Code (version 1.27.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.18.0 [!] Connected device ! No devices available ! Doctor found issues in 2 categories."><pre class="notranslate"><code class="notranslate">&gt; flutter doctor -v [✓] Flutter (Channel master, v0.9.6-pre.35, on Mac OS X 10.13.6 17G65, locale en-US) • Flutter version 0.9.6-pre.35 at /machine-path/Dev/flutter • Framework revision 2a8e35cc9c (2 days ago), 2018-09-29 08:29:28 +0700 • Engine revision 0c2b6dc6e3 • Dart version 2.1.0-dev.6.0.flutter-2aac05fe10 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /machine-path/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) • All Android licenses accepted. [!] iOS toolchain - develop for iOS devices (Xcode 9.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.4.1, Build version 9F2000 ✗ ideviceinstaller is not installed; this is used to discover connected iOS devices. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller • ios-deploy 1.9.2 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.0) • Android Studio at /Applications/Android Studio.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] IntelliJ IDEA Community Edition (version 2018.1.6) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 26.0.2 • Dart plugin version 181.4892.1 [✓] VS Code (version 1.27.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.18.0 [!] Connected device ! No devices available ! Doctor found issues in 2 categories. </code></pre></div>
0
<p dir="auto">It's a little sad that this isn't defined. For instance, in <a href="https://github.com/ChrisRackauckas/VectorizedRoutines.jl">VectorizedRoutines.jl</a>, the implementation of <a href="https://github.com/ChrisRackauckas/VectorizedRoutines.jl/blob/master/src/r.jl"><code class="notranslate">rep</code></a> taking a number as the first argument has to either create a temporary array, or duplicate code, or create an immutable <code class="notranslate">AbstractArray</code> subtype that wraps a number. Neither are very attractive.</p> <p dir="auto">Is there any reason why the definition</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="eachindex(::Number) = 1"><pre class="notranslate"><span class="pl-en">eachindex</span>(<span class="pl-k">::</span><span class="pl-c1">Number</span>) <span class="pl-k">=</span> <span class="pl-c1">1</span></pre></div> <p dir="auto">does not exist? I realize <code class="notranslate">Number</code>s are not <code class="notranslate">AbstractArray</code>s, but neither are <code class="notranslate">Tuple</code>s or <code class="notranslate">Associative</code>s. If this definition seems acceptable to most, I'll make a PR.</p>
<p dir="auto">On master, I get</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; FloatRange(10.0,1.0,11.0,10.0) WARNING: FloatRange{T}(start::T, step, len, den) is deprecated, use Base.floatrange(T, start, step, len, den) instead. Stacktrace: [1] depwarn(::String, ::Symbol) at ./deprecated.jl:62 [2] FloatRange(::Float64, ::Float64, ::Float64, ::Float64) at ./deprecated.jl:50 [3] eval(::Module, ::Any) at ./boot.jl:236 [4] eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:66 [5] macro expansion at ./REPL.jl:97 [inlined] [6] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73 while loading no file, in expression starting on line 0 ERROR: MethodError: no method matching floatrange(::Type{Float64}, ::Float64, ::Float64, ::Float64, ::Float64) Closest candidates are: floatrange(::AbstractFloat, ::AbstractFloat, ::Real, ::AbstractFloat) at twiceprecision.jl:108 floatrange{T}(::Type{T}, ::Integer, ::Integer, ::Integer, ::Integer) at twiceprecision.jl:94 Stacktrace: [1] FloatRange(::Float64, ::Float64, ::Float64, ::Float64) at ./deprecated.jl:52"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">FloatRange</span>(<span class="pl-c1">10.0</span>,<span class="pl-c1">1.0</span>,<span class="pl-c1">11.0</span>,<span class="pl-c1">10.0</span>) WARNING<span class="pl-k">:</span> <span class="pl-c1">FloatRange</span><span class="pl-c1">{T}</span>(start<span class="pl-k">::</span><span class="pl-c1">T</span>, step, len, den) is deprecated, use Base<span class="pl-k">.</span><span class="pl-c1">floatrange</span>(T, start, step, len, den) instead. Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] <span class="pl-c1">depwarn</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">Symbol</span>) at <span class="pl-k">./</span>deprecated<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">62</span> [<span class="pl-c1">2</span>] <span class="pl-c1">FloatRange</span>(<span class="pl-k">::</span><span class="pl-c1">Float64</span>, <span class="pl-k">::</span><span class="pl-c1">Float64</span>, <span class="pl-k">::</span><span class="pl-c1">Float64</span>, <span class="pl-k">::</span><span class="pl-c1">Float64</span>) at <span class="pl-k">./</span>deprecated<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">50</span> [<span class="pl-c1">3</span>] <span class="pl-c1">eval</span>(<span class="pl-k">::</span><span class="pl-c1">Module</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">./</span>boot<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">236</span> [<span class="pl-c1">4</span>] <span class="pl-c1">eval_user_input</span>(<span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Base.REPL.REPLBackend</span>) at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">66</span> [<span class="pl-c1">5</span>] <span class="pl-k">macro</span> expansion at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">97</span> [inlined] [<span class="pl-c1">6</span>] (<span class="pl-k">::</span><span class="pl-c1">Base.REPL.</span><span class="pl-c"><span class="pl-c">#</span>#1#2{Base.REPL.REPLBackend})() at ./event.jl:73</span> <span class="pl-k">while</span> loading no file, <span class="pl-k">in</span> expression starting on line <span class="pl-c1">0</span> ERROR<span class="pl-k">:</span> MethodError<span class="pl-k">:</span> no method matching <span class="pl-c1">floatrange</span>(<span class="pl-k">::</span><span class="pl-c1">Type{Float64}</span>, <span class="pl-k">::</span><span class="pl-c1">Float64</span>, <span class="pl-k">::</span><span class="pl-c1">Float64</span>, <span class="pl-k">::</span><span class="pl-c1">Float64</span>, <span class="pl-k">::</span><span class="pl-c1">Float64</span>) Closest candidates are<span class="pl-k">:</span> <span class="pl-c1">floatrange</span>(<span class="pl-k">::</span><span class="pl-c1">AbstractFloat</span>, <span class="pl-k">::</span><span class="pl-c1">AbstractFloat</span>, <span class="pl-k">::</span><span class="pl-c1">Real</span>, <span class="pl-k">::</span><span class="pl-c1">AbstractFloat</span>) at twiceprecision<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">108</span> <span class="pl-c1">floatrange</span><span class="pl-c1">{T}</span>(<span class="pl-k">::</span><span class="pl-c1">Type{T}</span>, <span class="pl-k">::</span><span class="pl-c1">Integer</span>, <span class="pl-k">::</span><span class="pl-c1">Integer</span>, <span class="pl-k">::</span><span class="pl-c1">Integer</span>, <span class="pl-k">::</span><span class="pl-c1">Integer</span>) at twiceprecision<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">94</span> Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] <span class="pl-c1">FloatRange</span>(<span class="pl-k">::</span><span class="pl-c1">Float64</span>, <span class="pl-k">::</span><span class="pl-c1">Float64</span>, <span class="pl-k">::</span><span class="pl-c1">Float64</span>, <span class="pl-k">::</span><span class="pl-c1">Float64</span>) at <span class="pl-k">./</span>deprecated<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">52</span></pre></div> <p dir="auto">This broke <code class="notranslate">StatsBase</code>.</p> <p dir="auto">cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/timholy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/timholy">@timholy</a></p>
0
<p dir="auto">Both are providing support for static linking and link-time optimization. A 300% increase in size with no increase in scope of the libraries is quite bad. The standard library itself went from 39M to 42M but this can be explained by the added features and some cases of temporarily duplicated code like <code class="notranslate">Vec&lt;T&gt;</code> and <code class="notranslate">~[T]</code>. I have not yet investigated the exact cause of the enormous increase in size.</p>
<p dir="auto">play.rust-lang.org: <a href="http://is.gd/AnPaWL" rel="nofollow">http://is.gd/AnPaWL</a></p> <p dir="auto">When the same trait is used more than one time but for different concrete types, it triggers the error for duplicate constraints without being sound.</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub trait Get&lt;T&gt; { fn get(&amp;self) -&gt; T; } pub struct Foo { one: uint, two: uint } pub struct One(pub uint); pub struct Two(pub uint); impl Get&lt;One&gt; for Foo { fn get(&amp;self) -&gt; One { One(self.one) } } impl Get&lt;Two&gt; for Foo { fn get(&amp;self) -&gt; Two { Two(self.two) } } // error: trait `Get&lt;Two&gt;` already appears in the list of bounds [E0127] fn bar&lt;T: Get&lt;One&gt; + Get&lt;Two&gt;&gt;(bar: &amp;T) { let One(one) = bar.get(); println!(&quot;{}&quot;, one); let Two(two) = bar.get(); println!(&quot;{}&quot;, two); } fn main() { let foo = Foo { one: 1, two: 2 }; // Works: let One(one) = foo.get(); println!(&quot;{}&quot;, one); let Two(two) = foo.get(); println!(&quot;{}&quot;, two); // Does not work: bar(&amp;foo); }"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">trait</span> <span class="pl-smi">Get</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">one</span><span class="pl-kos">:</span> <span class="pl-smi">uint</span><span class="pl-kos">,</span> <span class="pl-c1">two</span><span class="pl-kos">:</span> <span class="pl-smi">uint</span> <span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">One</span><span class="pl-kos">(</span><span class="pl-k">pub</span> <span class="pl-smi">uint</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">Two</span><span class="pl-kos">(</span><span class="pl-k">pub</span> <span class="pl-smi">uint</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">impl</span> <span class="pl-smi">Get</span><span class="pl-kos">&lt;</span><span class="pl-smi">One</span><span class="pl-kos">&gt;</span> <span class="pl-k">for</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">One</span> <span class="pl-kos">{</span> <span class="pl-v">One</span><span class="pl-kos">(</span><span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">one</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span> <span class="pl-smi">Get</span><span class="pl-kos">&lt;</span><span class="pl-smi">Two</span><span class="pl-kos">&gt;</span> <span class="pl-k">for</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Two</span> <span class="pl-kos">{</span> <span class="pl-v">Two</span><span class="pl-kos">(</span><span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">two</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c">// error: trait `Get&lt;Two&gt;` already appears in the list of bounds [E0127]</span> <span class="pl-k">fn</span> <span class="pl-en">bar</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">Get</span><span class="pl-kos">&lt;</span><span class="pl-smi">One</span><span class="pl-kos">&gt;</span> + <span class="pl-smi">Get</span><span class="pl-kos">&lt;</span><span class="pl-smi">Two</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">bar</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">T</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-v">One</span><span class="pl-kos">(</span>one<span class="pl-kos">)</span> = bar<span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, one<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-v">Two</span><span class="pl-kos">(</span>two<span class="pl-kos">)</span> = bar<span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, two<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> foo = <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">one</span><span class="pl-kos">:</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">two</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-c">// Works:</span> <span class="pl-k">let</span> <span class="pl-v">One</span><span class="pl-kos">(</span>one<span class="pl-kos">)</span> = foo<span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, one<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-v">Two</span><span class="pl-kos">(</span>two<span class="pl-kos">)</span> = foo<span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, two<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Does not work:</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span>foo<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
0
<p dir="auto">The List of extensions is displayed, but when I click on one iE <code class="notranslate">Elm</code> it shows</p> <p dir="auto"><code class="notranslate">Error</code> <code class="notranslate">getaddrinfo ENOTFOUND marketplace.visualstudio.com marketplace.visualstudio.com:443</code></p> <p dir="auto">Vscode was started from the commandline with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;set | grep proxy https_proxy=http://user:pw@ip:port http_proxy=http://user:pw@ip:port"><pre class="notranslate"><code class="notranslate">&gt;set | grep proxy https_proxy=http://user:pw@ip:port http_proxy=http://user:pw@ip:port </code></pre></div> <p dir="auto">System proxy is defined though an <code class="notranslate">Automatic configuration script</code> via th url of a *.pac file.<br> When I start <code class="notranslate">vscode</code> from start, without those environment variables, the above error shows already when loading the list of extensions.</p> <p dir="auto">PS. Thanks for the great work.</p>
<p dir="auto">Whenever I try to install any extension, using <em>ext install</em>, I get a <strong>connect ETIMEDOUT 191.238.172.191:443</strong> error.</p> <p dir="auto">Trying to navigate to <strong><a href="https://191.238.172.191" rel="nofollow">https://191.238.172.191</a></strong> in the browser produces a warning regarding the certificate being valid only for *<strong>.market.visualstudio.com</strong>, but I'm allowed to proceed.</p> <p dir="auto">Shouldn't VSCode try to connect to the name instead of the IP?</p> <p dir="auto">I'm behind a proxy, VSCode updates just fine behind it, and also lists the available extensions. The firewall here logs the invalid certificate but allows the connection to proceed. Doesn't look like a problem in my end...</p> <p dir="auto"><strong>OS:</strong> Windows 7<br> <strong>VSCode:</strong> 0.10.1</p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-target-elements-by-id-using-jquery?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%20%20%20%20%24%28%22button%22%29.addClass%28%22animated%20bounce%22%29%3B%0A%20%20%20%20%24%28%22.well%22%29.addClass%28%22animated%20shake%22%29%3B%0A%20%20%20%20%24%28%22%23target3%22%29.addClass%28%22animated%20fadeOut%22%29%3B%0A%20%20%7D%29%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Waypoint: Target Elements by ID Using jQuery</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; rv:42.0) Gecko/20100101 Firefox/42.0</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;script&gt; $(document).ready(function() { $(&quot;button&quot;).addClass(&quot;animated bounce&quot;); $(&quot;.well&quot;).addClass(&quot;animated shake&quot;); $(&quot;#target3&quot;).addClass(&quot;animated fadeOut&quot;); }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"button"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addClass</span><span class="pl-kos">(</span><span class="pl-s">"animated bounce"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">".well"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addClass</span><span class="pl-kos">(</span><span class="pl-s">"animated shake"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target3"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addClass</span><span class="pl-kos">(</span><span class="pl-s">"animated fadeOut"</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">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Only change code above this line. --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">&gt;</span>jQuery Playground<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#left-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">&gt;</span>#target1<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">&gt;</span>#target2<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">&gt;</span>#target3<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">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#right-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">&gt;</span>#target4<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">&gt;</span>#target5<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">&gt;</span>#target6<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">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15092868/11520604/03cc4dea-9873-11e5-88c2-726c466fc8c1.png"><img src="https://cloud.githubusercontent.com/assets/15092868/11520604/03cc4dea-9873-11e5-88c2-726c466fc8c1.png" alt="fccbug" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-hex-code-for-specific-colors?solution=%3Cstyle%3E%0A%20%20body%20%7B%0A%20%20%20%20background-color%3A%20%23000000%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A" rel="nofollow">Waypoint: Use Hex Code for Specific Colors</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My answer is correct but wrongly flagged as erroneous.<br> 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; body { background-color: #000000; } &lt;/style&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-ent">body</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>000000</span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div>
1
<p dir="auto">I just noticed today that it is nearly impossible to give a RaisedButton a gradient. So I'm asking that BoxDecoration, or a Gradient property, be added to all material components.</p>
<p dir="auto">Internal: b/141787699</p> <p dir="auto">Flutter doesn't have a good way of decorating a button with something that isn't a flat color. This is because the underlying Material widget doesn't allow for it.</p> <p dir="auto">Right now we just stack a DecoratedBox behind a MaterialButton with a transparent background. This works for our larger buttons, but fails for our smaller buttons, since the MaterialButton pads the height up to 48dp. This makes the button look like a regular sized button and there's no reasonable way to workaround it.</p> <p dir="auto">A proper fix would be to allow a BoxDecoration to be specified in ButtonThemeData. Then we can remove the Stack + DecoratedBox workaround.</p> <p dir="auto">Related to or same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="354852199" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/21125" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/21125/hovercard" href="https://github.com/flutter/flutter/issues/21125">#21125</a></p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=garpinc" rel="nofollow">Keith Garry Boyce</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1076?redirect=false" rel="nofollow">SPR-1076</a></strong> and commented</p> <p dir="auto">The call to getBean(factoryProcessorNames[i]) is flawed because it then must go out to get dependencies just to do ordering.. Below is an example where I had a problem. And below is a work around.. I think rather than implement order perhaps you might want to add an attribute to bean definition i.e: order= and use that instead.</p> <p dir="auto">What was happening is that to find the order of ConfigurationPlaceholderProcessor it had to satisfy dependency jconfigBean. The placeholder in that bean was supposed to be replaced first by propertyPlaceholderConfigurer so even though it gets the order for ConfigurationPlaceholderProcessor it's then to late to instantiate jconfigBean with appropriate placeholder from the propertyPlaceholderConfigurer since it had already been instantiated.</p> <p dir="auto">--------- flawed code -------</p> <p dir="auto">for (int i = 0; i &lt; factoryProcessorNames.length; i++) {<br> if (Ordered.class.isAssignableFrom(getType(factoryProcessorNames[i]))) {<br> orderedFactoryProcessors.add(getBean(factoryProcessorNames[i]));<br> }<br> else {<br> nonOrderedFactoryProcessorNames.add(factoryProcessorNames[i]);<br> }<br> }</p> <p dir="auto">------------- Here is where I had problem ------------</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;bean id=&quot;jmxExporter&quot; class=&quot;org.springframework.jmx.export.MBeanExporter&quot;&gt; &lt;property name=&quot;beans&quot;&gt; &lt;map&gt; &lt;entry key=&quot;Configuration:name=jmxConfig&quot;&gt; &lt;ref local=&quot;jconfigBean&quot; /&gt; &lt;/entry&gt; &lt;/map&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean id=&quot;jconfigBean&quot; class=&quot;org.jconfig.jmx.ConfigHandler&quot;&gt; &lt;property name=&quot;resourceName&quot;&gt; &lt;value&gt;${config.filename}&lt;/value&gt; &lt;/property&gt; &lt;property name=&quot;configurationName&quot;&gt; &lt;value&gt;jmxConfig&lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean id=&quot;configurationFactory&quot; class=&quot;org.reactive.configuration.JConfigConfigurationFactory&quot; singleton=&quot;true&quot;&gt; &lt;property name=&quot;fileName&quot;&gt;&lt;value&gt;jmxConfig&lt;/value&gt;&lt;/property&gt; &lt;/bean&gt; &lt;bean id=&quot;configuration&quot; factory-bean=&quot;configurationFactory&quot; factory-method=&quot;getConfiguration&quot; depends-on=&quot;jmxExporter&quot; /&gt; &lt;bean id=&quot;configurationPlaceholderProcessor&quot; class=&quot;org.reactive.beans.factory.config.ConfigurationPlaceholderProcessor&quot;&gt; &lt;property name=&quot;placeholderEvaluator&quot;&gt; &lt;bean class=&quot;org.reactive.beans.factory.config.jconfig.JConfigPlaceholderEvaluator&quot;&gt; &lt;property name=&quot;configuration&quot;&gt; &lt;ref bean=&quot;configuration&quot;/&gt; &lt;/property&gt; &lt;/bean&gt; &lt;/property&gt; &lt;property name=&quot;order&quot;&gt; &lt;value&gt;2&lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean id=&quot;propertyPlaceholderConfigurer&quot; class=&quot;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&quot;&gt; &lt;property name=&quot;properties&quot;&gt; &lt;props&gt; &lt;prop key=&quot;config.filename&quot;&gt;dev_config.xml&lt;/prop&gt; &lt;/props&gt; &lt;/property&gt; &lt;property name=&quot;systemPropertiesModeName&quot;&gt; &lt;value&gt;SYSTEM_PROPERTIES_MODE_OVERRIDE&lt;/value&gt; &lt;/property&gt; &lt;property name=&quot;order&quot;&gt; &lt;value&gt;1&lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; "><pre class="notranslate"><code class="notranslate">&lt;bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter"&gt; &lt;property name="beans"&gt; &lt;map&gt; &lt;entry key="Configuration:name=jmxConfig"&gt; &lt;ref local="jconfigBean" /&gt; &lt;/entry&gt; &lt;/map&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean id="jconfigBean" class="org.jconfig.jmx.ConfigHandler"&gt; &lt;property name="resourceName"&gt; &lt;value&gt;${config.filename}&lt;/value&gt; &lt;/property&gt; &lt;property name="configurationName"&gt; &lt;value&gt;jmxConfig&lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean id="configurationFactory" class="org.reactive.configuration.JConfigConfigurationFactory" singleton="true"&gt; &lt;property name="fileName"&gt;&lt;value&gt;jmxConfig&lt;/value&gt;&lt;/property&gt; &lt;/bean&gt; &lt;bean id="configuration" factory-bean="configurationFactory" factory-method="getConfiguration" depends-on="jmxExporter" /&gt; &lt;bean id="configurationPlaceholderProcessor" class="org.reactive.beans.factory.config.ConfigurationPlaceholderProcessor"&gt; &lt;property name="placeholderEvaluator"&gt; &lt;bean class="org.reactive.beans.factory.config.jconfig.JConfigPlaceholderEvaluator"&gt; &lt;property name="configuration"&gt; &lt;ref bean="configuration"/&gt; &lt;/property&gt; &lt;/bean&gt; &lt;/property&gt; &lt;property name="order"&gt; &lt;value&gt;2&lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt; &lt;property name="properties"&gt; &lt;props&gt; &lt;prop key="config.filename"&gt;dev_config.xml&lt;/prop&gt; &lt;/props&gt; &lt;/property&gt; &lt;property name="systemPropertiesModeName"&gt; &lt;value&gt;SYSTEM_PROPERTIES_MODE_OVERRIDE&lt;/value&gt; &lt;/property&gt; &lt;property name="order"&gt; &lt;value&gt;1&lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; </code></pre></div> <p dir="auto">------------- Here is possible (not ultimate) fix -----------<br> for (int i = 0; i &lt; factoryProcessorNames.length; i++) {<br> if (Ordered.class.isAssignableFrom(getType(factoryProcessorNames[i]))) {<br> MutablePropertyValues values = getBeanFactory().getBeanDefinition(factoryProcessorNames[i]).getPropertyValues();<br> int order = Integer.MAX_VALUE;<br> if (values != null) {<br> PropertyValue orderValue = values.getPropertyValue("order");<br> if (orderValue != null) {<br> String orderInt = (String) orderValue.getValue();<br> if (orderInt != null) {<br> order = new Integer(orderInt).intValue();<br> }<br> }<br> }<br> OrderedFactoryHolder factoryProcessorHolder = new OrderedFactoryHolder(factoryProcessorNames[i],order);<br> orderedFactoryProcessorHolders.add(factoryProcessorHolder);<br> }<br> else {<br> nonOrderedFactoryProcessorNames.add(factoryProcessorNames[i]);<br> }<br> }</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private class OrderedFactoryHolder implements Ordered { /** * @param factoryName * @param order */ public OrderedFactoryHolder(String factoryProcessorName, int order) { this.factoryProcessorName = factoryProcessorName; this.order = order; } private String factoryProcessorName; private int order; /** * @return Returns the factoryProcessorName. */ public String getFactoryProcessorName() { return factoryProcessorName; } /* (non-Javadoc) * @see org.springframework.core.Ordered#getOrder() */ public int getOrder() { return order; } }"><pre class="notranslate"><code class="notranslate">private class OrderedFactoryHolder implements Ordered { /** * @param factoryName * @param order */ public OrderedFactoryHolder(String factoryProcessorName, int order) { this.factoryProcessorName = factoryProcessorName; this.order = order; } private String factoryProcessorName; private int order; /** * @return Returns the factoryProcessorName. */ public String getFactoryProcessorName() { return factoryProcessorName; } /* (non-Javadoc) * @see org.springframework.core.Ordered#getOrder() */ public int getOrder() { return order; } } </code></pre></div> <hr> <p dir="auto"><strong>Affects:</strong> 1.2.1</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/10840/AbstractApplicationContext.java" rel="nofollow">AbstractApplicationContext.java</a> (<em>29.74 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/11845/EagerPropertyPlaceholderConfigurer.java" rel="nofollow">EagerPropertyPlaceholderConfigurer.java</a> (<em>3.85 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/11887/PlaceHolderOrderTest.zip" rel="nofollow">PlaceHolderOrderTest.zip</a> (<em>1.72 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398060141" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6019" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6019/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6019">#6019</a> One BeanFactoryPostProcessor can't modify definition of a 2nd that has yet to run (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">1 votes, 4 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=desmethans" rel="nofollow">Hans Desmet</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6735?redirect=false" rel="nofollow">SPR-6735</a></strong> and commented</p> <p dir="auto">When you use JDBC in the DAO layer a duplicate key violation that occurs when you insert a record or update a record<br> is translated to a DuplicateKeyException, which is fine !</p> <p dir="auto">When you use Hibernate in the DAO layer, a duplicate key violation is translated to the more general DataIntegrityViolationException,</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 GA</p>
0
<p dir="auto">When <code class="notranslate">useAcrylic</code> is turned off, ctrl+shift+scroll doesn't enable it. This stops people from adjusting their transparencies.</p> <h3 dir="auto">original text</h3> <blockquote> <ul dir="auto"> <li>Your Windows build number: (Type <code class="notranslate">ver</code> at a Windows Command Prompt)<br> Microsoft Windows [Version 10.0.18362.86]</li> <li>What you're doing and what's happening: (Copy &amp; paste specific commands and their output, or include screen shots)<br> CTRL+Shift+Scroll in cmd.exe works fine with transparency/blurring<br> CTRL+Shift+Scrol in Powershell.exe doesnt do a thing</li> <li>What's wrong / what should be happening instead:<br> I was under the impression that it would work the same als the cmd.exe.</li> </ul> </blockquote>
<p dir="auto">Perhaps I overlooked it browsing through the json file but i didn't see another means to achieve transparency and i'm not a fan of the acrylic effects blurring factor or the fact that it turns off when the window is not selected. The traditional console provides for a static opacity just like in most nix envs, i'd hope it's just a matter of time before it's implemented here?</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">I try to plot some dataframe with matplotlib in a GUI designed by pyqt5. I use <code class="notranslate">pyinstaller</code> for packaging as following:</p> <p dir="auto"><code class="notranslate"> pyinstaller main.py</code></p> <p dir="auto">and its outcome:</p> <blockquote> <p dir="auto">33 INFO: PyInstaller: 3.4<br> 34 INFO: Python: 3.6.9<br> 34 INFO: Platform: Linux-5.4.0-42-generic-x86_64-with-Ubuntu-18.04-bionic<br> 35 INFO: wrote /home/shahriar/python_projects/first_test/src/main/python/main.spec<br> 36 INFO: UPX is not available.<br> 37 INFO: Extending PYTHONPATH with paths<br> ['/home/shahriar/python_projects/first_test/src/main/python',<br> '/home/shahriar/python_projects/first_test/src/main/python']<br> 38 INFO: checking Analysis<br> 58 INFO: Building because /home/shahriar/python_projects/first_test/src/main/python/main.py changed<br> 59 INFO: Initializing module dependency graph...<br> 60 INFO: Initializing module graph hooks...<br> 61 INFO: Analyzing base_library.zip ...<br> 2440 INFO: running Analysis Analysis-00.toc<br> 2485 INFO: Caching module hooks...<br> 2490 INFO: Analyzing /home/shahriar/python_projects/first_test/src/main/python/main.py<br> 3151 INFO: Processing pre-find module path hook distutils<br> 3996 INFO: Processing pre-safe import module hook setuptools.extern.six.moves<br> 4263 INFO: Processing pre-find module path hook site<br> 4263 INFO: site: retargeting to fake-dir '/home/shahriar/first_test/lib/python3.6/site-packages/PyInstaller/fake-modules'<br> 8256 INFO: Processing pre-safe import module hook six.moves<br> 22239 INFO: Loading module hooks...<br> 22239 INFO: Loading module hook "hook-sqlite3.py"...<br> 22285 INFO: Loading module hook "hook-scipy.py"...<br> 22286 INFO: Loading module hook "hook-distutils.py"...<br> 22286 INFO: Loading module hook "hook-scipy.sparse.csgraph.py"...<br> 22289 INFO: Loading module hook "hook-scipy.linalg.py"...<br> 22290 INFO: Loading module hook "hook-PyQt5.QtGui.py"...<br> 22385 INFO: Loading module hook "hook-PyQt5.py"...<br> 22400 INFO: Loading module hook "hook-numpy.core.py"...<br> 22529 INFO: Loading module hook "hook-PyQt5.QtCore.py"...<br> 22555 INFO: Loading module hook "hook-encodings.py"...<br> 22607 INFO: Loading module hook "hook-matplotlib.py"...<br> 22878 INFO: Loading module hook "hook-PIL.Image.py"...<br> 23238 INFO: Loading module hook "hook-pycparser.py"...<br> 23239 INFO: Loading module hook "hook-lib2to3.py"...<br> 23240 INFO: Loading module hook "hook-sysconfig.py"...<br> 23245 INFO: Loading module hook "hook-numpy.py"...<br> 23246 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...<br> 23246 INFO: Loading module hook "hook-pkg_resources.py"...<br> 23589 INFO: Processing pre-safe import module hook win32com<br> 23631 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...<br> 23702 INFO: Loading module hook "hook-pytz.py"...<br> 23722 INFO: Loading module hook "hook-scipy.special._ufuncs.py"...<br> 23722 INFO: Loading module hook "hook-pydoc.py"...<br> 23723 INFO: Loading module hook "hook-_tkinter.py"...<br> 23804 INFO: checking Tree<br> 23808 INFO: checking Tree<br> 23809 INFO: Loading module hook "hook-setuptools.py"...<br> /home/shahriar/first_test/lib/python3.6/site-packages/setuptools/distutils_patch.py:26: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.<br> "Distutils was imported before Setuptools. This usage is discouraged "<br> 24243 INFO: Loading module hook "hook-scipy.special._ellip_harm_2.py"...<br> 24244 INFO: Loading module hook "hook-matplotlib.backends.py"...<br> 24998 INFO: Matplotlib backend "GTK3Agg": ignored<br> The GTK3 backends require PyGObject<br> 25466 INFO: Matplotlib backend "GTK3Cairo": ignored<br> The GTK3 backends require PyGObject<br> 25726 INFO: Matplotlib backend "MacOSX": ignored<br> cannot import name '_macosx'<br> 25991 INFO: Matplotlib backend "nbAgg": ignored<br> No module named 'IPython'<br> -c:12: MatplotlibDeprecationWarning:<br> The matplotlib.backends.backend_qt4agg backend was deprecated in Matplotlib 3.3 and will be removed two minor releases later.<br> 26478 INFO: Matplotlib backend "Qt4Agg": added<br> -c:12: MatplotlibDeprecationWarning:<br> The matplotlib.backends.backend_qt4cairo backend was deprecated in Matplotlib 3.3 and will be removed two minor releases later.<br> 27028 INFO: Matplotlib backend "Qt4Cairo": added<br> 27514 INFO: Matplotlib backend "Qt5Agg": added<br> 28063 INFO: Matplotlib backend "Qt5Cairo": added<br> 28495 INFO: Matplotlib backend "TkAgg": added<br> 28964 INFO: Matplotlib backend "TkCairo": added<br> 29231 INFO: Matplotlib backend "WebAgg": ignored<br> Traceback (most recent call last):<br> File "/home/shahriar/first_test/lib/python3.6/site-packages/matplotlib/backends/backend_webagg.py", line 27, in <br> import tornado<br> ModuleNotFoundError: No module named 'tornado'</p> <p dir="auto">The above exception was the direct cause of the following exception:</p> <p dir="auto">Traceback (most recent call last):<br> File "", line 12, in <br> File "/home/shahriar/first_test/lib/python3.6/site-packages/matplotlib/backends/backend_webagg.py", line 29, in <br> raise RuntimeError("The WebAgg backend requires Tornado.") from err<br> RuntimeError: The WebAgg backend requires Tornado.<br> 29649 INFO: Matplotlib backend "WX": ignored<br> No module named 'wx'<br> 29910 INFO: Matplotlib backend "WXAgg": ignored<br> No module named 'wx'<br> 30179 INFO: Matplotlib backend "WXCairo": ignored<br> No module named 'wx'<br> 30505 INFO: Matplotlib backend "agg": added<br> 30868 INFO: Matplotlib backend "cairo": added<br> 31301 INFO: Matplotlib backend "pdf": added<br> 31727 INFO: Matplotlib backend "pgf": added<br> 32083 INFO: Matplotlib backend "ps": added<br> 32430 INFO: Matplotlib backend "svg": added<br> 32847 INFO: Matplotlib backend "template": added<br> 33202 INFO: Loading module hook "hook-PIL.py"...<br> 33205 INFO: Excluding import 'PyQt4'<br> 33207 INFO: Excluding import 'tkinter'<br> 33210 INFO: Removing import of tkinter from module PIL.ImageTk<br> 33211 INFO: Excluding import 'PySide'<br> 33214 INFO: Import to be excluded not found: 'FixTk'<br> 33215 INFO: Excluding import 'PyQt5'<br> 33217 INFO: Removing import of PyQt5.QtCore from module PIL.ImageQt<br> 33217 INFO: Removing import of PyQt5.QtGui from module PIL.ImageQt<br> 33217 INFO: Loading module hook "hook-xml.py"...<br> 33261 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...<br> 33263 INFO: Import to be excluded not found: 'FixTk'<br> 33263 INFO: Excluding import 'tkinter'<br> 33264 INFO: Loading module hook "hook-pandas.py"...<br> 33994 INFO: Looking for ctypes DLLs<br> 34103 WARNING: library user32 required via ctypes not found<br> 34214 WARNING: library msvcrt required via ctypes not found<br> 34235 INFO: Analyzing run-time hooks ...<br> 34249 INFO: Including run-time hook 'pyi_rth_pkgres.py'<br> 34250 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'<br> 34253 INFO: Including run-time hook 'pyi_rth__tkinter.py'<br> 34254 INFO: Including run-time hook 'pyi_rth_mplconfig.py'<br> 34255 INFO: Including run-time hook 'pyi_rth_mpldata.py'<br> 34256 INFO: Including run-time hook 'pyi_rth_qt5.py'<br> 34284 INFO: Looking for dynamic libraries<br> 37779 INFO: Looking for eggs<br> 37780 INFO: Python library not in binary dependencies. Doing additional searching...<br> 37800 INFO: Using Python library /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0<br> 37826 INFO: Warnings written to /home/shahriar/python_projects/first_test/src/main/python/build/main/warn-main.txt<br> 37958 INFO: Graph cross-reference written to /home/shahriar/python_projects/first_test/src/main/python/build/main/xref-main.html<br> 38033 INFO: checking PYZ<br> 38046 INFO: Building because toc changed<br> 38047 INFO: Building PYZ (ZlibArchive) /home/shahriar/python_projects/first_test/src/main/python/build/main/PYZ-00.pyz<br> 40255 INFO: Building PYZ (ZlibArchive) /home/shahriar/python_projects/first_test/src/main/python/build/main/PYZ-00.pyz completed successfully.<br> 40295 INFO: checking PKG<br> 40296 INFO: Building because toc changed<br> 40296 INFO: Building PKG (CArchive) PKG-00.pkg<br> 40460 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.<br> 40462 INFO: Bootloader /home/shahriar/first_test/lib/python3.6/site-packages/PyInstaller/bootloader/Linux-64bit/run<br> 40462 INFO: checking EXE<br> 40464 INFO: Building because toc changed<br> 40464 INFO: Building EXE from EXE-00.toc<br> 40466 INFO: Appending archive to ELF section in EXE /home/shahriar/python_projects/first_test/src/main/python/build/main/main<br> 40659 INFO: Building EXE from EXE-00.toc completed successfully.<br> 40665 INFO: checking COLLECT<br> WARNING: The output directory "/home/shahriar/python_projects/first_test/src/main/python/dist/main" and ALL ITS CONTENTS will be REMOVED! Continue? (y/n)y<br> 110470 INFO: Removing dir /home/shahriar/python_projects/first_test/src/main/python/dist/main<br> 110556 INFO: Building COLLECT COLLECT-00.toc<br> 111044 INFO: Building COLLECT COLLECT-00.toc completed successfully.</p> </blockquote> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">when I run the executable file as <code class="notranslate">./dist/main</code>, I get this error:</p> <blockquote> <p dir="auto">/home/shahriar/first_test/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py:627: MatplotlibDeprecationWarning: Matplotlib installs where the data is not in the mpl-data subdirectory of the package are deprecated since 3.2 and support for them will be removed two minor releases later.<br> exec(bytecode, module.<strong>dict</strong>)<br> Traceback (most recent call last):<br> File "main.py", line 20, in <br> from matplotlib import ticker<br> File "", line 971, in _find_and_load<br> File "", line 955, in _find_and_load_unlocked<br> File "", line 665, in _load_unlocked<br> File "/home/shahriar/first_test/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module<br> exec(bytecode, module.<strong>dict</strong>)<br> File "matplotlib/<strong>init</strong>.py", line 898, in <br> File "matplotlib/cbook/<strong>init</strong>.py", line 480, in _get_data_path<br> File "matplotlib/<strong>init</strong>.py", line 239, in wrapper<br> File "matplotlib/<strong>init</strong>.py", line 534, in get_data_path<br> File "matplotlib/<strong>init</strong>.py", line 239, in wrapper<br> File "matplotlib/<strong>init</strong>.py", line 563, in _get_data_path<br> NameError: name 'defaultParams' is not defined<br> [24669] Failed to execute script main</p> </blockquote> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# If applicable, paste the console output here # #"><pre class="notranslate"><code class="notranslate"># If applicable, paste the console output here # # </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">an executable file of my project</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: ubuntu 18.04</li> <li>Matplotlib version: 3.3.0</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>):Backend Qt5Agg is interactive backend. Turning interactive mode on. Qt5Agg</li> <li>Python version:3.6.9</li> <li>Jupyter version (if applicable):</li> <li>Other libraries: pyqt5, pyinstaller, pandas</li> </ul>
<h3 dir="auto"><code class="notranslate">pyinstaller==3.6</code> with <code class="notranslate">matplotlib==3.3.0</code> fails to "freeze"</h3> <p dir="auto">Ran into the following issue today when attempting to use <code class="notranslate">pyinstaller</code> with the latest <code class="notranslate">matplotlib</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="File &quot;c:\hostedtoolcache\windows\python\3.7.8\x64\lib\site-packages\PyInstaller\loader\pyimod03_importers.py&quot;, line 623, in exec_module exec(bytecode, module.__dict__) File &quot;site-packages\matplotlib\__init__.py&quot;, line 898, in &lt;module&gt; File &quot;site-packages\matplotlib\cbook\__init__.py&quot;, line 480, in _get_data_path File &quot;site-packages\matplotlib\__init__.py&quot;, line 239, in wrapper File &quot;site-packages\matplotlib\__init__.py&quot;, line 534, in get_data_path File &quot;site-packages\matplotlib\__init__.py&quot;, line 239, in wrapper File &quot;site-packages\matplotlib\__init__.py&quot;, line 563, in _get_data_path NameError: name 'defaultParams' is not defined"><pre class="notranslate"><code class="notranslate">File "c:\hostedtoolcache\windows\python\3.7.8\x64\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module exec(bytecode, module.__dict__) File "site-packages\matplotlib\__init__.py", line 898, in &lt;module&gt; File "site-packages\matplotlib\cbook\__init__.py", line 480, in _get_data_path File "site-packages\matplotlib\__init__.py", line 239, in wrapper File "site-packages\matplotlib\__init__.py", line 534, in get_data_path File "site-packages\matplotlib\__init__.py", line 239, in wrapper File "site-packages\matplotlib\__init__.py", line 563, in _get_data_path NameError: name 'defaultParams' is not defined </code></pre></div> <p dir="auto">Adding <code class="notranslate">matplotlib.defaultParams</code> to the hidden imports with <code class="notranslate">pyinstaller</code> didn't help. The only thing that did was downgrading to <code class="notranslate">matplotlib==3.2.2</code>.</p> <p dir="auto">I'm posting this here hoping this (partial) solution might help someone else. Please let me know if you'd rather this issue posted on <a href="https://github.com/pyinstaller/pyinstaller">pyinstaller</a>.</p>
1
<p dir="auto">Running log2 on an array of zeros with float dtype results in small non-zero numbers and sometimes nan.</p> <h3 dir="auto">Reproducing code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np x = np.zeros((1, 10), dtype=np.float) print(x &gt; 0) print(np.log2(x, where=x &gt; 0))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>((<span class="pl-c1">1</span>, <span class="pl-c1">10</span>), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float</span>) <span class="pl-en">print</span>(<span class="pl-s1">x</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">0</span>) <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">log2</span>(<span class="pl-s1">x</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span><span class="pl-s1">x</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">0</span>))</pre></div> <h3 dir="auto">Error message:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[[False False False False False False False False False False]] [[0.00000000e+000 0.00000000e+000 1.77229088e-310 3.50977866e+064 0.00000000e+000 0.00000000e+000 nan nan 3.50977942e+064 2.23604912e-314]]"><pre class="notranslate">[[<span class="pl-c1">False</span> <span class="pl-v">False</span> <span class="pl-c1">False</span> <span class="pl-c1">False</span> <span class="pl-c1">False</span> <span class="pl-c1">False</span> <span class="pl-c1">False</span> <span class="pl-c1">False</span> <span class="pl-c1">False</span> <span class="pl-c1">False</span>]] [[<span class="pl-c1">0.00000000e+000</span> <span class="pl-c1">0.00000000e+000</span> <span class="pl-c1">1.77229088e-310</span> <span class="pl-c1">3.50977866e+064</span> <span class="pl-c1">0.00000000e+000</span> <span class="pl-c1">0.00000000e+000</span> <span class="pl-s1">nan</span> <span class="pl-s1">nan</span> <span class="pl-c1">3.50977942e+064</span> <span class="pl-c1">2.23604912e-314</span>]]</pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import sys, numpy; print(numpy.__version__, sys.version) 1.15.4 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:07:29) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">numpy</span>; <span class="pl-en">print</span>(<span class="pl-s1">numpy</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version</span>) <span class="pl-c1">1.15</span>.<span class="pl-c1">4</span> <span class="pl-c1">3.6</span>.<span class="pl-c1">6</span> <span class="pl-c1">|</span><span class="pl-v">Anaconda</span> <span class="pl-s1">custom</span> (<span class="pl-c1">64</span><span class="pl-c1">-</span><span class="pl-s1">bit</span>)<span class="pl-c1">|</span> (<span class="pl-s1">default</span>, <span class="pl-v">Jun</span> <span class="pl-c1">28</span> <span class="pl-c1">2018</span>, <span class="pl-c1">11</span>:<span class="pl-c1">07</span>:<span class="pl-c1">29</span>) [<span class="pl-v">GCC</span> <span class="pl-c1">4.2</span><span class="pl-c1">.1</span> <span class="pl-v">Compatible</span> <span class="pl-v">Clang</span> <span class="pl-c1">4.0</span>.<span class="pl-c1">1</span> (<span class="pl-s1">tags</span><span class="pl-c1">/</span><span class="pl-v">RELEASE_401</span><span class="pl-c1">/</span><span class="pl-s1">final</span>)]</pre></div>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/83" rel="nofollow">http://projects.scipy.org/numpy/ticket/83</a> on 2006-04-27 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/edschofield/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/edschofield">@edschofield</a>, assigned to unknown.</em></p> <p dir="auto">As of SVN revision 2431, matrix objects preserve orientation in methods that take axis arguments for axis=0 and axis=1. For axis=None, they return a matrix of shape (1, 1). For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; x = asmatrix(random.uniform(0,1,(3,3))) &gt;&gt;&gt; x.std() matrix([[ 0.26890557]]) &gt;&gt;&gt; x.argmax() matrix([[4]])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; x = asmatrix(random.uniform(0,1,(3,3))) &gt;&gt;&gt; x.std() matrix([[ 0.26890557]]) &gt;&gt;&gt; x.argmax() matrix([[4]]) </code></pre></div> <p dir="auto">I believe this behaviour is unfortunate, and that an operation aggregating a matrix over all dimensions should return a scalar.</p> <p dir="auto">Arguments for reducing dimensionality upon aggregation have been presented in several numpy-discussion threads, most recently in [Broadcasting rules (Ticket 76)].</p> <p dir="auto">This patch modifies this behaviour to return scalars (as rank-0 arrays) instead. It also removes some code duplication.</p> <p dir="auto">The behaviour with the patch is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; x.std() 0.29610630190701492 &gt;&gt;&gt; x.std().shape () &gt;&gt;&gt; x.argmax() 3"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; x.std() 0.29610630190701492 &gt;&gt;&gt; x.std().shape () &gt;&gt;&gt; x.argmax() 3 </code></pre></div> <p dir="auto">A potential drawback to this patch is that matrix operations aggregating along all dimensions, which would now share the behaviour of numpy arrays, would be no longer be consistent with matrix operations that aggregate along only one dimension, which currently return matrices with height or width 1. This could be an argument for introducing a new vector class to represent one-dimensional data with orientation. Matrix objects, by contrast, are inherently 2-d.</p>
0
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch torch.autograd.Variable(torch.LongTensor([18])) / 0.0625 # Floating point exception (core dumped) torch.LongTensor([18]) / 0.0625 #Traceback (most recent call last): # File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; # File &quot;.../lib/python2.7/site-packages/torch/tensor.py&quot;, line 294, in __div__ # return self.div(other) #TypeError: div received an invalid combination of arguments - got (float), but expected one of: # * (int value) # didn't match because some of the arguments have invalid types: (float) # * (torch.LongTensor other) # didn't match because some of the arguments have invalid types: (float)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-s1">torch</span>.<span class="pl-s1">autograd</span>.<span class="pl-v">Variable</span>(<span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">18</span>])) <span class="pl-c1">/</span> <span class="pl-c1">0.0625</span> <span class="pl-c"># Floating point exception (core dumped)</span> <span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">18</span>]) <span class="pl-c1">/</span> <span class="pl-c1">0.0625</span> <span class="pl-c">#Traceback (most recent call last):</span> <span class="pl-c"># File "&lt;stdin&gt;", line 1, in &lt;module&gt;</span> <span class="pl-c"># File ".../lib/python2.7/site-packages/torch/tensor.py", line 294, in __div__</span> <span class="pl-c"># return self.div(other)</span> <span class="pl-c">#TypeError: div received an invalid combination of arguments - got (float), but expected one of:</span> <span class="pl-c"># * (int value)</span> <span class="pl-c"># didn't match because some of the arguments have invalid types: (float)</span> <span class="pl-c"># * (torch.LongTensor other)</span> <span class="pl-c"># didn't match because some of the arguments have invalid types: (float)</span></pre></div> <p dir="auto">at <code class="notranslate">0.4.0a0+b608ea9</code>; related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="196296717" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/327" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/327/hovercard" href="https://github.com/pytorch/pytorch/issues/327">#327</a> and maybe <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="300316501" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/5411" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/5411/hovercard" href="https://github.com/pytorch/pytorch/issues/5411">#5411</a></p> <p dir="auto">Probably the cause is that in the variable case, it casts the divisor as Long and it triggers integer division by zero. But why only in the variable case?</p> <p dir="auto">Didn't test it after the tensor+variable merge, since don't want to migrate to vNext before ECCV deadline :)</p>
<p dir="auto">Example below. We should probably return a floating tensor like numpy does.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import torch &gt;&gt;&gt; a = torch.tensor([1,2,3], dtype=torch.long) &gt;&gt;&gt; a + 0.5 1 2 3 [torch.LongTensor of size (3,)]"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import torch &gt;&gt;&gt; a = torch.tensor([1,2,3], dtype=torch.long) &gt;&gt;&gt; a + 0.5 1 2 3 [torch.LongTensor of size (3,)] </code></pre></div>
1
<p dir="auto">I'm trying to move the legend for a <code class="notranslate">sns.histplot</code></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import seaborn as sns import pandas as pd import numpy as np # for test data import random # for test data import calendar # for test data # test dataframe np.random.seed(365) random.seed(365) df = pd.DataFrame({'Days': random.choices(calendar.day_name, k=1000), 'Visitors': np.random.randint(1, 121, size=(1000))}) ax = sns.histplot(data=df, x='Visitors', hue='Days', multiple=&quot;stack&quot;) ax.legend(bbox_to_anchor=(1.05, 1), loc='upper left')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-c"># for test data</span> <span class="pl-k">import</span> <span class="pl-s1">random</span> <span class="pl-c"># for test data</span> <span class="pl-k">import</span> <span class="pl-s1">calendar</span> <span class="pl-c"># for test data</span> <span class="pl-c"># test dataframe</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">365</span>) <span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">365</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-s">'Days'</span>: <span class="pl-s1">random</span>.<span class="pl-en">choices</span>(<span class="pl-s1">calendar</span>.<span class="pl-s1">day_name</span>, <span class="pl-s1">k</span><span class="pl-c1">=</span><span class="pl-c1">1000</span>), <span class="pl-s">'Visitors'</span>: <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">1</span>, <span class="pl-c1">121</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span>(<span class="pl-c1">1000</span>))}) <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">histplot</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">df</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">'Visitors'</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">'Days'</span>, <span class="pl-s1">multiple</span><span class="pl-c1">=</span><span class="pl-s">"stack"</span>) <span class="pl-s1">ax</span>.<span class="pl-en">legend</span>(<span class="pl-s1">bbox_to_anchor</span><span class="pl-c1">=</span>(<span class="pl-c1">1.05</span>, <span class="pl-c1">1</span>), <span class="pl-s1">loc</span><span class="pl-c1">=</span><span class="pl-s">'upper left'</span>)</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12875240/104376507-f6316200-54d9-11eb-9046-73a47576973f.png"><img src="https://user-images.githubusercontent.com/12875240/104376507-f6316200-54d9-11eb-9046-73a47576973f.png" alt="image" style="max-width: 100%;"></a></p> <ul dir="auto"> <li> <p dir="auto">Without trying to move the legend<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12875240/104376621-1cef9880-54da-11eb-8666-f4f4aa6d9f70.png"><img src="https://user-images.githubusercontent.com/12875240/104376621-1cef9880-54da-11eb-8666-f4f4aa6d9f70.png" alt="image" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">Moving the legend in this way works fine with <code class="notranslate">sns.barplot</code></p> </li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ax = sns.barplot(data=df, x='Days', y='Visitors', hue='Days', dodge=False, estimator=sum) ax.legend(bbox_to_anchor=(1.05, 1), loc='upper left')"><pre class="notranslate"><span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">barplot</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">df</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">'Days'</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'Visitors'</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">'Days'</span>, <span class="pl-s1">dodge</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">estimator</span><span class="pl-c1">=</span><span class="pl-s1">sum</span>) <span class="pl-s1">ax</span>.<span class="pl-en">legend</span>(<span class="pl-s1">bbox_to_anchor</span><span class="pl-c1">=</span>(<span class="pl-c1">1.05</span>, <span class="pl-c1">1</span>), <span class="pl-s1">loc</span><span class="pl-c1">=</span><span class="pl-s">'upper left'</span>)</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12875240/104376995-a4d5a280-54da-11eb-90d6-ab5ee422abe1.png"><img src="https://user-images.githubusercontent.com/12875240/104376995-a4d5a280-54da-11eb-90d6-ab5ee422abe1.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I was pretty excited about seeing the <code class="notranslate">histplot</code> functionality coming out, and I'm getting <em>beautiful</em> figures with it already.</p> <p dir="auto">I'm trying to finetune my figures and reposition the legends - but am running into issues when moving the legend.<br> Below is toy example</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns fig, ax = plt.subplots() x = np.hstack((np.random.normal(0, 1, 100), np.random.normal(-0.5, 1, 100), np.random.normal(0.5, 1, 100))) data = pd.DataFrame({'x': x, 'd' : ['a'] * 100 + ['b'] * 100 + ['c'] * 100}) g = sns.histplot(data, x='x', hue=&quot;d&quot;, element=&quot;step&quot;, stat=&quot;probability&quot;, ax=ax)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span> <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>() <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">hstack</span>((<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">100</span>), <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-c1">-</span><span class="pl-c1">0.5</span>, <span class="pl-c1">1</span>, <span class="pl-c1">100</span>), <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-c1">0.5</span>, <span class="pl-c1">1</span>, <span class="pl-c1">100</span>))) <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'x'</span>: <span class="pl-s1">x</span>, <span class="pl-s">'d'</span> : [<span class="pl-s">'a'</span>] <span class="pl-c1">*</span> <span class="pl-c1">100</span> <span class="pl-c1">+</span> [<span class="pl-s">'b'</span>] <span class="pl-c1">*</span> <span class="pl-c1">100</span> <span class="pl-c1">+</span> [<span class="pl-s">'c'</span>] <span class="pl-c1">*</span> <span class="pl-c1">100</span>}) <span class="pl-s1">g</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">histplot</span>(<span class="pl-s1">data</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">'x'</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">"d"</span>, <span class="pl-s1">element</span><span class="pl-c1">=</span><span class="pl-s">"step"</span>, <span class="pl-s1">stat</span><span class="pl-c1">=</span><span class="pl-s">"probability"</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>)</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4184797/93139918-d1012400-f69e-11ea-9bc8-74b4779adb06.png"><img src="https://user-images.githubusercontent.com/4184797/93139918-d1012400-f69e-11ea-9bc8-74b4779adb06.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">When I move the legend to the upper left, the legend disappears with the warning <code class="notranslate">No handles with labels found to put in legend.</code>.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns fig, ax = plt.subplots() x = np.hstack((np.random.normal(0, 1, 100), np.random.normal(-0.5, 1, 100), np.random.normal(0.5, 1, 100))) data = pd.DataFrame({'x': x, 'd' : ['a'] * 100 + ['b'] * 100 + ['c'] * 100}) g = sns.histplot(data, x='x', hue=&quot;d&quot;, element=&quot;step&quot;, stat=&quot;probability&quot;, ax=ax, legend=False) ax.legend(loc='upper-left')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span> <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>() <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">hstack</span>((<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">100</span>), <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-c1">-</span><span class="pl-c1">0.5</span>, <span class="pl-c1">1</span>, <span class="pl-c1">100</span>), <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-c1">0.5</span>, <span class="pl-c1">1</span>, <span class="pl-c1">100</span>))) <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'x'</span>: <span class="pl-s1">x</span>, <span class="pl-s">'d'</span> : [<span class="pl-s">'a'</span>] <span class="pl-c1">*</span> <span class="pl-c1">100</span> <span class="pl-c1">+</span> [<span class="pl-s">'b'</span>] <span class="pl-c1">*</span> <span class="pl-c1">100</span> <span class="pl-c1">+</span> [<span class="pl-s">'c'</span>] <span class="pl-c1">*</span> <span class="pl-c1">100</span>}) <span class="pl-s1">g</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">histplot</span>(<span class="pl-s1">data</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">'x'</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">"d"</span>, <span class="pl-s1">element</span><span class="pl-c1">=</span><span class="pl-s">"step"</span>, <span class="pl-s1">stat</span><span class="pl-c1">=</span><span class="pl-s">"probability"</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>, <span class="pl-s1">legend</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">ax</span>.<span class="pl-en">legend</span>(<span class="pl-s1">loc</span><span class="pl-c1">=</span><span class="pl-s">'upper-left'</span>)</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4184797/93140027-fe4dd200-f69e-11ea-8135-ffd85a627d30.png"><img src="https://user-images.githubusercontent.com/4184797/93140027-fe4dd200-f69e-11ea-8135-ffd85a627d30.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">This is interesting, because it doesn't appear to be an issue with the other plots<br> <a href="https://stackoverflow.com/questions/27019079/move-seaborn-plot-legend-to-a-different-position" rel="nofollow">https://stackoverflow.com/questions/27019079/move-seaborn-plot-legend-to-a-different-position</a><br> <a href="https://stackoverflow.com/questions/53733755/how-to-move-legend-to-outside-of-a-seaborn-scatterplot/53737271" rel="nofollow">https://stackoverflow.com/questions/53733755/how-to-move-legend-to-outside-of-a-seaborn-scatterplot/53737271</a></p> <p dir="auto">I'm curious if this is unique to <code class="notranslate">histplot</code> (or if I'm overlooking something).</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">I do have a lazy loaded module which loads by default <code class="notranslate">LazyLoadedComponent</code> when I go to <code class="notranslate">/lazy</code>. So far, it's OK.</p> <p dir="auto">This component contains 2 router-outlet :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;router-outlet&gt;&lt;/router-outlet&gt; &lt;router-outlet name=&quot;aux&quot;&gt;&lt;/router-outlet&gt;"><pre class="notranslate"><code class="notranslate">&lt;router-outlet&gt;&lt;/router-outlet&gt; &lt;router-outlet name="aux"&gt;&lt;/router-outlet&gt; </code></pre></div> <p dir="auto">And the <code class="notranslate">LazyLoadedModule</code> has the following routes :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const routes = [ { path: '', component: LazyLoadedComponent, children: [ { path: '', component: NonAuxComponent }, { path: '', component: AuxComponent, outlet: 'aux' } ] } ];"><pre class="notranslate"><code class="notranslate">const routes = [ { path: '', component: LazyLoadedComponent, children: [ { path: '', component: NonAuxComponent }, { path: '', component: AuxComponent, outlet: 'aux' } ] } ]; </code></pre></div> <p dir="auto">When I go to <code class="notranslate">/lazy</code> I do have the 3 components loaded as expected.<br> But, if I want to change the path to display the <code class="notranslate">AuxComponent</code> like that :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ path: 'auxpath', component: AuxComponent, outlet: 'aux' }"><pre class="notranslate"><code class="notranslate">{ path: 'auxpath', component: AuxComponent, outlet: 'aux' } </code></pre></div> <p dir="auto">And I try to go to <code class="notranslate">/lazy(aux:auxpath)</code> it's not working.</p> <p dir="auto">I also tried to hit that URL using the <code class="notranslate">routerLink</code> like that :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;a [routerLink]=&quot;[{ outlets: { aux: 'auxpath' } }]&quot;&gt;Load an auxiliary route&lt;/a&gt;"><pre class="notranslate"><code class="notranslate">&lt;a [routerLink]="[{ outlets: { aux: 'auxpath' } }]"&gt;Load an auxiliary route&lt;/a&gt; </code></pre></div> <p dir="auto">But it's not working either.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4950209/21710815/5451e5e0-d3eb-11e6-8e01-5e4a4023b06a.png"><img src="https://cloud.githubusercontent.com/assets/4950209/21710815/5451e5e0-d3eb-11e6-8e01-5e4a4023b06a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Is this a bug with the router ? Is it just me missing out something here?</p> <p dir="auto">You can check out this <a href="http://plnkr.co/edit/TiwzIoR8t57yRrx8zpaQ?p=preview" rel="nofollow">Plunkr</a> to make your own tests.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> <a href="http://plnkr.co/edit/TiwzIoR8t57yRrx8zpaQ?p=preview" rel="nofollow">Plunkr</a> :</p> <ul dir="auto"> <li>Click on "Demo (click to lazy load the module)"</li> <li>Once the module is loaded, click on "Load an auxiliary route"</li> <li>The non auxiliary component is well displayed, the auxiliary component is not displayed</li> </ul> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">Ubuntu 16.10<br> VSC<br> Yarn<br> (But as this is also happening on Plunkr, not sure it's relevant).</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X</li> </ul> <p dir="auto">v2.4.1 (the one used on Plunkr)</p> <ul dir="auto"> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> </ul> <p dir="auto">Chrome</p> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> TypeScript</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br> v6.8.0</p> </li> </ul>
<p dir="auto">In Angular 1.0 Dart, it is possible to use a TypeLiteral to bind and inject generics:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class TypeLiteral&lt;T&gt; { const TypeLiteral(); Type get type =&gt; t; }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">TypeLiteral</span>&lt;<span class="pl-c1">T</span>&gt; { <span class="pl-k">const</span> <span class="pl-c1">TypeLiteral</span>(); <span class="pl-c1">Type</span> <span class="pl-k">get</span> type <span class="pl-k">=&gt;</span> t; }</pre></div> <p dir="auto">An example of use:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component( module: MyComponent.module ) class MyComponent { static void module(DirectiveBinder directiveBinder) { directiveBinder.bind( const TypeLiteral&lt;List&lt;String&gt;&gt;().type, toValue: &lt;String&gt; const ['Hello', 'World']); } MyComponent(List&lt;String&gt; stringList) { assert(stringList == const ['Hello', 'World']); } }"><pre class="notranslate"><span class="pl-k">@Component</span>( module<span class="pl-k">:</span> <span class="pl-c1">MyComponent</span>.module ) <span class="pl-k">class</span> <span class="pl-c1">MyComponent</span> { <span class="pl-k">static</span> <span class="pl-k">void</span> <span class="pl-en">module</span>(<span class="pl-c1">DirectiveBinder</span> directiveBinder) { directiveBinder.<span class="pl-en">bind</span>( <span class="pl-k">const</span> <span class="pl-c1">TypeLiteral</span>&lt;<span class="pl-c1">List</span>&lt;<span class="pl-c1">String</span>&gt;&gt;().type, toValue<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">String</span><span class="pl-k">&gt;</span> <span class="pl-k">const</span> [<span class="pl-s">'Hello'</span>, <span class="pl-s">'World'</span>]); } <span class="pl-c1">MyComponent</span>(<span class="pl-c1">List</span>&lt;<span class="pl-c1">String</span>&gt; stringList) { <span class="pl-k">assert</span>(stringList <span class="pl-k">==</span> <span class="pl-k">const</span> [<span class="pl-s">'Hello'</span>, <span class="pl-s">'World'</span>]); } }</pre></div> <p dir="auto">In Angular 2, <a href="https://github.com/angular/angular/blob/master/modules/angular2/src/di/binding.js#L467">based on this snippet</a> Tim linked me to, it looks like that is no longer possible. Can we add this is a FR for NG 2.0/DI? If not, is there an alternative that will also play well with Angular 1.0 Dart's DI system?</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kegluneq/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kegluneq">@kegluneq</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yjbanov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yjbanov">@yjbanov</a></p>
0
<p dir="auto">tsc -v 1.7.5<br> When compiling for es6 target, with let, const, etc., and using commonjs module, browser (Chrome) complains about let and co. used outside of "strict mode" zone. Adding "use strict" at the beginning of commonjs module should fix this.</p> <p dir="auto">Note:</p> <ul dir="auto"> <li>spec for es6, 10.2.1 Strict Mode Code says that "Module code is always strict mode code". This assumes that es6 modules are used, while commonjs' require()'s look differently.</li> <li>it does not seem to be a problem with node, as it probably relaxes this rule.</li> <li>Babel's transform-es2015-modules-commonjs inserts "use strict" at the start of the file, satisfying browser's desire to stick to the standard's rule, and it all just works. Unfortunately, this requires a babel step in the build :(</li> </ul>
<p dir="auto">ES6 modules default to running the code in the module in the strict mode. When transpiling this input into ES5 the strict mode should be preserved.</p> <p dir="auto">As of Typescript 1.5 beta this is not the case:</p> <p dir="auto">input:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export class Foo{}"><pre class="notranslate"><code class="notranslate">export class Foo{} </code></pre></div> <p dir="auto">transpile with: <code class="notranslate">tsc --module commonjs test.ts</code></p> <p dir="auto">actual output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Foo = (function () { function Foo() { } return Foo; })(); exports.Foo = Foo;"><pre class="notranslate"><code class="notranslate">var Foo = (function () { function Foo() { } return Foo; })(); exports.Foo = Foo; </code></pre></div> <p dir="auto">expected output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'use strict'; var Foo = (function () { function Foo() { } return Foo; })(); exports.Foo = Foo;"><pre class="notranslate"><code class="notranslate">'use strict'; var Foo = (function () { function Foo() { } return Foo; })(); exports.Foo = Foo; </code></pre></div> <p dir="auto">The same issue affects output for amd and system module formats.</p>
1
<p dir="auto">This issue has been discussed at <a href="https://discuss.atom.io/t/preferred-line-length-dont-support-chinese/4666" rel="nofollow">here</a></p> <p dir="auto"><a href="https://discuss.atom.io/users/blaisorblade/activity" rel="nofollow">Blaisorblade</a> also presented a solution, however fixing this is kind of out my technical reach, I must first understand coffee script. However I am willing to contribute in anyway I can.</p>
<p dir="auto">Reported in Halp:</p> <ul dir="auto"> <li>support/b47caffcaba511e3903bfcd96bef4da2</li> </ul> <blockquote> <p dir="auto">If I have a paragraph in CJK characters and toggle soft wrap, the wrapping point (should be the right edge of current window) is far away than the current edge and some characters are displayed out of window which is not visible.<br> I think this may because of the wrong processing of character wide. A latin letter has a width "one character width", but usually a CJK character has a width twice as a latin letter, it's "two character width". Hope this information may help you.<br> The debug info auto attached should include the test text I open now. It's include (from up to down): Chinese, Japanese, Korean, English. Actully they tell the same thing:)</p> </blockquote> <p dir="auto">I can reproduce this in Atom 0.75.0. (notice how CJK characters are not wrapped correctly at the right edge of the app)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/ed2f8e79cd39dbfa796ed46485a3444e2f4101865a8834908cdbc864de6e4f2f/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f323439313439332f34303461643764612d623165662d313165332d393134332d3237326235353533306336632e706e67"><img src="https://camo.githubusercontent.com/ed2f8e79cd39dbfa796ed46485a3444e2f4101865a8834908cdbc864de6e4f2f/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f323439313439332f34303461643764612d623165662d313165332d393134332d3237326235353533306336632e706e67" alt="screen shot 2014-03-22 at 7 24 05 pm" data-canonical-src="https://f.cloud.github.com/assets/38924/2491493/404ad7da-b1ef-11e3-9143-272b55530c6c.png" style="max-width: 100%;"></a></p>
1
<p dir="auto">from discussions in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="179690302" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/7378" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/7378/hovercard" href="https://github.com/electron/electron/issues/7378">#7378</a></p> <ul dir="auto"> <li>Electron version: 1.0.2</li> <li>Operating system: 10.12</li> </ul> <p dir="auto">I tried <code class="notranslate">webContents.capturePage</code>, but it can only capture the "visible" part of the page. If the height of your html node is larger than the BrowserWindow (or when there's a scroll bar), the overflow part is not included in the captured image. Is there any way to capture the whole page?</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto"><code class="notranslate">webContents.capturePage</code> take a snapshot of the whole complete webpage</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">only visible part is captured.</p> <h3 dir="auto">How to reproduce</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" const remote = require('electron').remote; const webContents = remote.getCurrentWebContents(); webContents.capturePage({ x: 0, y: 0, width: 1000, height: 2000 }, (img) =&gt; { remote.require('fs') .writeFile(TEMP_URL, img.toPng()); });"><pre class="notranslate"> <span class="pl-k">const</span> <span class="pl-s1">remote</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">remote</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">webContents</span> <span class="pl-c1">=</span> <span class="pl-s1">remote</span><span class="pl-kos">.</span><span class="pl-en">getCurrentWebContents</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">webContents</span><span class="pl-kos">.</span><span class="pl-en">capturePage</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">x</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">y</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">width</span>: <span class="pl-c1">1000</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">2000</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">img</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">remote</span><span class="pl-kos">.</span><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'fs'</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">writeFile</span><span class="pl-kos">(</span><span class="pl-c1">TEMP_URL</span><span class="pl-kos">,</span> <span class="pl-s1">img</span><span class="pl-kos">.</span><span class="pl-en">toPng</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>
<ul dir="auto"> <li>Electron version: 1.4.13</li> <li>Operating system: MacOS 10.12.2 running on MacBook Pro (Retina, 13-inch, Early 2015)</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">webview.capturePage() without specifying a dimension should return an image with the full viewable area on a Retina display. The dimensions of the resulting image should be either the actual pixels of the viewable area or perhaps the actual pixels * the device scale factor.</p> <p dir="auto">Specifying a dimension should return the viewable area of that dimension with the resulting image being sized correctly (and consistently with the use case of no rect specified).</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Calling webview.capturePage() without specifying a dimension returns in image that is the pixel size of the viewable area * the scale factor the area covered by the viewable area divided by the scale factor.</p> <p dir="auto">For example, on a webview that is 524 pixels wide, the resulting image of capturePage() is 1048 pixels wide, but only contains the image data from the first 262 pixels. That image is then upsized by the scale factor twice to get to the 1048 width. Not only does this not capture the full viewable page, it also introduces significant scaling artifacts.</p> <p dir="auto">Similar results occur if a rect is specified to capturePage.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">On a Retina display, create a page with a webview that loads some web site:<br> <code class="notranslate">&lt;webview id="webview" src="http://www.msn.com/" &gt;&lt;/webview&gt;</code></p> <p dir="auto">Capture the page:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// used to get the viewable dimensions of the webview function getWebviewMeta(cb) { var code = &quot;var r = {}; \ r.totalHeight = document.body.offsetHeight; \ r.pageHeight = window.innerHeight; \ r.pageWidth = window.innerWidth; \ r;&quot;; webview.executeJavaScript(code, false, function(r) { let webviewMeta = {}; webviewMeta.captureHeight = r.pageHeight; webviewMeta.captureWidth = r.pageWidth; cb(webviewMeta); }); } getWebviewMeta(function(webviewMeta) { let captureRect = { x: 0, y: 0, width: webviewMeta.captureWidth, height: webviewMeta.captureHeight }; webview.capturePage((img) =&gt; { console.log(&quot;image size: &quot;, img.getSize()); let jpgFile = img.toJPEG(90); // save file as testDefault.jpg, I used jetpack.writeAsync }); webview.capturePage(captureRect, (img) =&gt; { console.log(&quot;image size: &quot;, img.getSize()); let jpgFile = img.toJPEG(90); // save file as testSetViewSize.jpg, I used jetpack.writeAsync }); captureRect.width = +captureRect.width * electron.screen.getPrimaryDisplay().scaleFactor; captureRect.height = +captureRect.height * electron.screen.getPrimaryDisplay().scaleFactor; webview.capturePage(captureRect, (img) =&gt; { console.log(&quot;image size: &quot;, img.getSize()); let jpgFile = img.toJPEG(90); // save file as testScaled.jpg, I used jetpack.writeAsync }); });"><pre class="notranslate"><code class="notranslate">// used to get the viewable dimensions of the webview function getWebviewMeta(cb) { var code = "var r = {}; \ r.totalHeight = document.body.offsetHeight; \ r.pageHeight = window.innerHeight; \ r.pageWidth = window.innerWidth; \ r;"; webview.executeJavaScript(code, false, function(r) { let webviewMeta = {}; webviewMeta.captureHeight = r.pageHeight; webviewMeta.captureWidth = r.pageWidth; cb(webviewMeta); }); } getWebviewMeta(function(webviewMeta) { let captureRect = { x: 0, y: 0, width: webviewMeta.captureWidth, height: webviewMeta.captureHeight }; webview.capturePage((img) =&gt; { console.log("image size: ", img.getSize()); let jpgFile = img.toJPEG(90); // save file as testDefault.jpg, I used jetpack.writeAsync }); webview.capturePage(captureRect, (img) =&gt; { console.log("image size: ", img.getSize()); let jpgFile = img.toJPEG(90); // save file as testSetViewSize.jpg, I used jetpack.writeAsync }); captureRect.width = +captureRect.width * electron.screen.getPrimaryDisplay().scaleFactor; captureRect.height = +captureRect.height * electron.screen.getPrimaryDisplay().scaleFactor; webview.capturePage(captureRect, (img) =&gt; { console.log("image size: ", img.getSize()); let jpgFile = img.toJPEG(90); // save file as testScaled.jpg, I used jetpack.writeAsync }); }); </code></pre></div> <p dir="auto">The first two results, testDefault.jpg and testSetViewSize.jpg will be identical. They will be captureRect * scale factor in size but will only contain captureRect / scale factor from the webview.</p> <p dir="auto">The third result, testScaled.jpg, will contain the captureRect data from the webview but will be captureRect * scale factor * scale factor in size.</p> <p dir="auto">All images have upscaling artifacts in them.</p> <h3 dir="auto">Note</h3> <p dir="auto">On non-retina displays (where the scale factor is 1), capturePage works as expected.</p> <p dir="auto">Also, using webview.capturePage or webview.getWebContents().capturePage makes no difference. It also does not matter if the code is executed in the main or renderer process. I wouldn't expect there to be a difference in either, but I did test both to make sure.</p> <p dir="auto">I have a discussion started about this but decided to enter an issue here because I believe there is a bug in how the scale factor is used. <a href="https://discuss.atom.io/t/webview-capturepage-doesnt-capture-full-page-on-retina-display/37560" rel="nofollow">https://discuss.atom.io/t/webview-capturepage-doesnt-capture-full-page-on-retina-display/37560</a></p>
1
<p dir="auto"><strong>Description</strong></p> <p dir="auto">I would like to have the run-config available for inspection in the dag details.</p> <p dir="auto"><strong>Use case / motivation</strong></p> <p dir="auto">Figuring out what was used to trigger a dag, partially for reuse, but also to introspect what went wrong. It's currently possible to use the REST-API for that but a step removed, and our users of Airflow aren't supposed to use APIs.</p> <p dir="auto"><strong>Are you willing to submit a PR?</strong></p> <p dir="auto">With enough guidance yes.</p>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.2.3</p> <h3 dir="auto">What happened</h3> <p dir="auto">First of all, It is a very strange error and happened all of a sudden when running some tasks within a DAG which was switched off and we did manual task triggers.<br> So basically within this DAG, we had a sensor running and a few downstream tasks after that in a clean state, then, another sensor which was also in a running state. So basically a couple of clean tasks in between two running sensors. At this point, the scheduler started crashing</p> <p dir="auto">We are using CeleryExecutor and running Airflow v2.2.3</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">The scheduler should not crash and schedule the clean tasks in between the two sensors</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Maybe clear a few tasks in between two running tasks</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1653590702662, https://airflow.apache.org/docs/docker-stack/build.html 1653590716300,BACKEND=redis 1653590716301,DB_HOST=airflow-de-preprod.ns1d7y.0001.euc1.cache.amazonaws.com 1653590716301,DB_PORT=6379 1653590719192, ____________ _____________ 1653590719192, ____ |__( )_________ __/__ /________ __ 1653590719192,____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /| / / 1653590719192,___ ___ | / _ / _ __/ _ / / /_/ /_ |/ |/ / 1653590719192, _/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/ 1653590719192,&quot;[�[34m2022-05-26 18:45:19,191�[0m] {�[34mscheduler_job.py:�[0m596} INFO�[0m - Starting the scheduler�[0m&quot; 1653590719192,&quot;[�[34m2022-05-26 18:45:19,192�[0m] {�[34mscheduler_job.py:�[0m601} INFO�[0m - Processing each file at most -1 times�[0m&quot; 1653590719417,&quot;[�[34m2022-05-26 18:45:19,412�[0m] {�[34mmanager.py:�[0m163} INFO�[0m - Launched DagFileProcessorManager with pid: 38�[0m&quot; 1653590719417,&quot;[�[34m2022-05-26 18:45:19,415�[0m] {�[34mscheduler_job.py:�[0m1114} INFO�[0m - Resetting orphaned tasks for active dag runs�[0m&quot; 1653590719421,&quot;[�[34m2022-05-26 18:45:19,420�[0m] {�[34msettings.py:�[0m52} INFO�[0m - Configured default timezone Timezone('Europe/Berlin')�[0m&quot; 1653590719423,&quot;[�[34m2022-05-26 18:45:19,423�[0m] {�[34msettings.py:�[0m471} INFO�[0m - Loaded airflow_local_settings from /opt/airflow/config/airflow_local_settings.py .�[0m&quot; 1653590719563,&quot;[�[34m2022-05-26 18:45:19,559�[0m] {�[34mscheduler_job.py:�[0m644} ERROR�[0m - Exception when executing SchedulerJob._run_scheduler_loop�[0m&quot; 1653590719563,Traceback (most recent call last): 1653590719563,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py&quot;&quot;, line 628, in _execute&quot; 1653590719563, self._run_scheduler_loop() 1653590719563,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py&quot;&quot;, line 681, in _run_scheduler_loop&quot; 1653590719563, self.adopt_or_reset_orphaned_tasks() 1653590719563,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py&quot;&quot;, line 70, in wrapper&quot; 1653590719563,&quot; return func(*args, session=session, **kwargs)&quot; 1653590719563,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py&quot;&quot;, line 1117, in adopt_or_reset_orphaned_tasks&quot; 1653590719563, for attempt in run_with_db_retries(logger=self.log): 1653590719563,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py&quot;&quot;, line 382, in __iter__&quot; 1653590719563, do = self.iter(retry_state=retry_state) 1653590719563,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py&quot;&quot;, line 349, in iter&quot; 1653590719563, return fut.result() 1653590719563,&quot; File &quot;&quot;/usr/local/lib/python3.7/concurrent/futures/_base.py&quot;&quot;, line 428, in result&quot; 1653590719563, return self.__get_result() 1653590719563,&quot; File &quot;&quot;/usr/local/lib/python3.7/concurrent/futures/_base.py&quot;&quot;, line 384, in __get_result&quot; 1653590719563, raise self._exception 1653590719563,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py&quot;&quot;, line 1162, in adopt_or_reset_orphaned_tasks&quot; 1653590719563, to_reset = self.executor.try_adopt_task_instances(tis_to_reset_or_adopt) 1653590719563,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/executors/celery_executor.py&quot;&quot;, line 485, in try_adopt_task_instances&quot; 1653590719563, self.adopted_task_timeouts[ti.key] = ti.queued_dttm + self.task_adoption_timeout 1653590719563,TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta' 1653590720596,&quot;[�[34m2022-05-26 18:45:20,596�[0m] {�[34mprocess_utils.py:�[0m124} INFO�[0m - Sending Signals.SIGTERM to group 38. PIDs of all processes in the group: [39, 40, 38]�[0m&quot; 1653590720597,&quot;[�[34m2022-05-26 18:45:20,596�[0m] {�[34mprocess_utils.py:�[0m75} INFO�[0m - Sending the signal Signals.SIGTERM to group 38�[0m&quot; 1653590721273,&quot;[2022-05-26 18:45:21,272] {process_utils.py:237} INFO - Waiting up to 5 seconds for processes to exit...&quot; 1653590721276,&quot;[�[34m2022-05-26 18:45:21,276�[0m] {�[34mprocess_utils.py:�[0m70} INFO�[0m - Process psutil.Process(pid=40, status='terminated', started='18:45:19') (40) terminated with exit code None�[0m&quot; 1653590721280,&quot;[�[34m2022-05-26 18:45:21,280�[0m] {�[34mprocess_utils.py:�[0m70} INFO�[0m - Process psutil.Process(pid=38, status='terminated', exitcode=0, started='18:45:18') (38) terminated with exit code 0�[0m&quot; 1653590721281,&quot;[�[34m2022-05-26 18:45:21,280�[0m] {�[34mprocess_utils.py:�[0m70} INFO�[0m - Process psutil.Process(pid=39, status='terminated', started='18:45:19') (39) terminated with exit code None�[0m&quot; 1653590721281,&quot;[�[34m2022-05-26 18:45:21,281�[0m] {�[34mscheduler_job.py:�[0m655} INFO�[0m - Exited execute loop�[0m&quot; 1653590721294,Traceback (most recent call last): 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/bin/airflow&quot;&quot;, line 8, in &lt;module&gt;&quot; 1653590721294, sys.exit(main()) 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/__main__.py&quot;&quot;, line 48, in main&quot; 1653590721294, args.func(args) 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/cli_parser.py&quot;&quot;, line 48, in command&quot; 1653590721294,&quot; return func(*args, **kwargs)&quot; 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/cli.py&quot;&quot;, line 92, in wrapper&quot; 1653590721294,&quot; return f(*args, **kwargs)&quot; 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/commands/scheduler_command.py&quot;&quot;, line 75, in scheduler&quot; 1653590721294, _run_scheduler_job(args=args) 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/commands/scheduler_command.py&quot;&quot;, line 46, in _run_scheduler_job&quot; 1653590721294, job.run() 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/base_job.py&quot;&quot;, line 245, in run&quot; 1653590721294, self._execute() 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py&quot;&quot;, line 628, in _execute&quot; 1653590721294, self._run_scheduler_loop() 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py&quot;&quot;, line 681, in _run_scheduler_loop&quot; 1653590721294, self.adopt_or_reset_orphaned_tasks() 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py&quot;&quot;, line 70, in wrapper&quot; 1653590721294,&quot; return func(*args, session=session, **kwargs)&quot; 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py&quot;&quot;, line 1117, in adopt_or_reset_orphaned_tasks&quot; 1653590721294, for attempt in run_with_db_retries(logger=self.log): 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py&quot;&quot;, line 382, in __iter__&quot; 1653590721294, do = self.iter(retry_state=retry_state) 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py&quot;&quot;, line 349, in iter&quot; 1653590721294, return fut.result() 1653590721294,&quot; File &quot;&quot;/usr/local/lib/python3.7/concurrent/futures/_base.py&quot;&quot;, line 428, in result&quot; 1653590721294, return self.__get_result() 1653590721294,&quot; File &quot;&quot;/usr/local/lib/python3.7/concurrent/futures/_base.py&quot;&quot;, line 384, in __get_result&quot; 1653590721294, raise self._exception 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py&quot;&quot;, line 1162, in adopt_or_reset_orphaned_tasks&quot; 1653590721294, to_reset = self.executor.try_adopt_task_instances(tis_to_reset_or_adopt) 1653590721294,&quot; File &quot;&quot;/home/airflow/.local/lib/python3.7/site-packages/airflow/executors/celery_executor.py&quot;&quot;, line 485, in try_adopt_task_instances&quot; 1653590721294, self.adopted_task_timeouts[ti.key] = ti.queued_dttm + self.task_adoption_timeout 1653590721294,TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta'"><pre class="notranslate"><code class="notranslate">1653590702662, https://airflow.apache.org/docs/docker-stack/build.html 1653590716300,BACKEND=redis 1653590716301,DB_HOST=airflow-de-preprod.ns1d7y.0001.euc1.cache.amazonaws.com 1653590716301,DB_PORT=6379 1653590719192, ____________ _____________ 1653590719192, ____ |__( )_________ __/__ /________ __ 1653590719192,____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /| / / 1653590719192,___ ___ | / _ / _ __/ _ / / /_/ /_ |/ |/ / 1653590719192, _/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/ 1653590719192,"[�[34m2022-05-26 18:45:19,191�[0m] {�[34mscheduler_job.py:�[0m596} INFO�[0m - Starting the scheduler�[0m" 1653590719192,"[�[34m2022-05-26 18:45:19,192�[0m] {�[34mscheduler_job.py:�[0m601} INFO�[0m - Processing each file at most -1 times�[0m" 1653590719417,"[�[34m2022-05-26 18:45:19,412�[0m] {�[34mmanager.py:�[0m163} INFO�[0m - Launched DagFileProcessorManager with pid: 38�[0m" 1653590719417,"[�[34m2022-05-26 18:45:19,415�[0m] {�[34mscheduler_job.py:�[0m1114} INFO�[0m - Resetting orphaned tasks for active dag runs�[0m" 1653590719421,"[�[34m2022-05-26 18:45:19,420�[0m] {�[34msettings.py:�[0m52} INFO�[0m - Configured default timezone Timezone('Europe/Berlin')�[0m" 1653590719423,"[�[34m2022-05-26 18:45:19,423�[0m] {�[34msettings.py:�[0m471} INFO�[0m - Loaded airflow_local_settings from /opt/airflow/config/airflow_local_settings.py .�[0m" 1653590719563,"[�[34m2022-05-26 18:45:19,559�[0m] {�[34mscheduler_job.py:�[0m644} ERROR�[0m - Exception when executing SchedulerJob._run_scheduler_loop�[0m" 1653590719563,Traceback (most recent call last): 1653590719563," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py"", line 628, in _execute" 1653590719563, self._run_scheduler_loop() 1653590719563," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py"", line 681, in _run_scheduler_loop" 1653590719563, self.adopt_or_reset_orphaned_tasks() 1653590719563," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py"", line 70, in wrapper" 1653590719563," return func(*args, session=session, **kwargs)" 1653590719563," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py"", line 1117, in adopt_or_reset_orphaned_tasks" 1653590719563, for attempt in run_with_db_retries(logger=self.log): 1653590719563," File ""/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py"", line 382, in __iter__" 1653590719563, do = self.iter(retry_state=retry_state) 1653590719563," File ""/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py"", line 349, in iter" 1653590719563, return fut.result() 1653590719563," File ""/usr/local/lib/python3.7/concurrent/futures/_base.py"", line 428, in result" 1653590719563, return self.__get_result() 1653590719563," File ""/usr/local/lib/python3.7/concurrent/futures/_base.py"", line 384, in __get_result" 1653590719563, raise self._exception 1653590719563," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py"", line 1162, in adopt_or_reset_orphaned_tasks" 1653590719563, to_reset = self.executor.try_adopt_task_instances(tis_to_reset_or_adopt) 1653590719563," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/executors/celery_executor.py"", line 485, in try_adopt_task_instances" 1653590719563, self.adopted_task_timeouts[ti.key] = ti.queued_dttm + self.task_adoption_timeout 1653590719563,TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta' 1653590720596,"[�[34m2022-05-26 18:45:20,596�[0m] {�[34mprocess_utils.py:�[0m124} INFO�[0m - Sending Signals.SIGTERM to group 38. PIDs of all processes in the group: [39, 40, 38]�[0m" 1653590720597,"[�[34m2022-05-26 18:45:20,596�[0m] {�[34mprocess_utils.py:�[0m75} INFO�[0m - Sending the signal Signals.SIGTERM to group 38�[0m" 1653590721273,"[2022-05-26 18:45:21,272] {process_utils.py:237} INFO - Waiting up to 5 seconds for processes to exit..." 1653590721276,"[�[34m2022-05-26 18:45:21,276�[0m] {�[34mprocess_utils.py:�[0m70} INFO�[0m - Process psutil.Process(pid=40, status='terminated', started='18:45:19') (40) terminated with exit code None�[0m" 1653590721280,"[�[34m2022-05-26 18:45:21,280�[0m] {�[34mprocess_utils.py:�[0m70} INFO�[0m - Process psutil.Process(pid=38, status='terminated', exitcode=0, started='18:45:18') (38) terminated with exit code 0�[0m" 1653590721281,"[�[34m2022-05-26 18:45:21,280�[0m] {�[34mprocess_utils.py:�[0m70} INFO�[0m - Process psutil.Process(pid=39, status='terminated', started='18:45:19') (39) terminated with exit code None�[0m" 1653590721281,"[�[34m2022-05-26 18:45:21,281�[0m] {�[34mscheduler_job.py:�[0m655} INFO�[0m - Exited execute loop�[0m" 1653590721294,Traceback (most recent call last): 1653590721294," File ""/home/airflow/.local/bin/airflow"", line 8, in &lt;module&gt;" 1653590721294, sys.exit(main()) 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/__main__.py"", line 48, in main" 1653590721294, args.func(args) 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/cli_parser.py"", line 48, in command" 1653590721294," return func(*args, **kwargs)" 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/cli.py"", line 92, in wrapper" 1653590721294," return f(*args, **kwargs)" 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/commands/scheduler_command.py"", line 75, in scheduler" 1653590721294, _run_scheduler_job(args=args) 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/commands/scheduler_command.py"", line 46, in _run_scheduler_job" 1653590721294, job.run() 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/base_job.py"", line 245, in run" 1653590721294, self._execute() 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py"", line 628, in _execute" 1653590721294, self._run_scheduler_loop() 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py"", line 681, in _run_scheduler_loop" 1653590721294, self.adopt_or_reset_orphaned_tasks() 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py"", line 70, in wrapper" 1653590721294," return func(*args, session=session, **kwargs)" 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py"", line 1117, in adopt_or_reset_orphaned_tasks" 1653590721294, for attempt in run_with_db_retries(logger=self.log): 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py"", line 382, in __iter__" 1653590721294, do = self.iter(retry_state=retry_state) 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/tenacity/__init__.py"", line 349, in iter" 1653590721294, return fut.result() 1653590721294," File ""/usr/local/lib/python3.7/concurrent/futures/_base.py"", line 428, in result" 1653590721294, return self.__get_result() 1653590721294," File ""/usr/local/lib/python3.7/concurrent/futures/_base.py"", line 384, in __get_result" 1653590721294, raise self._exception 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py"", line 1162, in adopt_or_reset_orphaned_tasks" 1653590721294, to_reset = self.executor.try_adopt_task_instances(tis_to_reset_or_adopt) 1653590721294," File ""/home/airflow/.local/lib/python3.7/site-packages/airflow/executors/celery_executor.py"", line 485, in try_adopt_task_instances" 1653590721294, self.adopted_task_timeouts[ti.key] = ti.queued_dttm + self.task_adoption_timeout 1653590721294,TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta' </code></pre></div> <h3 dir="auto">Operating System</h3> <p dir="auto">Amazon Linux 2</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">Airflow v2.2.3</p> <p dir="auto">apache-airflow-providers-http==2.0.0<br> apache-airflow-providers-microsoft-mssql==2.1.0<br> apache-airflow-providers-microsoft-winrm==2.0.2<br> apache-airflow-providers-mongo==2.3.0<br> apache-airflow-providers-ssh==2.4.0<br> apache-airflow-providers-celery==2.1.0</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other Docker-based deployment</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">Deployed to AWS ECS</p> <h3 dir="auto">Anything else</h3> <p dir="auto">We have been using Airflow since version 1.10.2 and never had this issue before.</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
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 18990 Windows Terminal version (if applicable): 0.5.2661.0 Any other software? tmux 2.8"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 18990 Windows Terminal version (if applicable): 0.5.2661.0 Any other software? tmux 2.8 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Install Windows Terminal 0.5.2661.0 on a machine where tmux 2.8 has been installed and displaying correctly with previous Windows Terminal releases.</li> <li>Open a WSL shell in a Terminal tab, inside <em>tmux</em>.</li> <li>Run any command which displays text wide enough to use the rightmost column of the screen. For the example screenshots below, I used <em>env</em>.</li> <li>After observing initial behavior, clear the screen with <em>clear</em> .</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Clean display of command output without character smear; all characters removed when screen cleared.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">On initial run of the command in step 3, the rightmost character of the last line to contain one is "smeared" down the screen until another rightmost character replaces it, thus:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/371623/65578017-a02e5900-df3a-11e9-991e-a20496d0fb91.jpg"><img src="https://user-images.githubusercontent.com/371623/65578017-a02e5900-df3a-11e9-991e-a20496d0fb91.jpg" alt="terminal-smear" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/371623/65578188-ea173f00-df3a-11e9-90b8-9c97c7069c64.jpg"><img src="https://user-images.githubusercontent.com/371623/65578188-ea173f00-df3a-11e9-90b8-9c97c7069c64.jpg" alt="terminal-smear-2" style="max-width: 100%;"></a></p> <p dir="auto">When the screen is subsequently cleared, all characters displayed in this column remain visible:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/371623/65578215-f8655b00-df3a-11e9-958f-ea4a37d986c2.jpg"><img src="https://user-images.githubusercontent.com/371623/65578215-f8655b00-df3a-11e9-958f-ea4a37d986c2.jpg" alt="terminal-smear-clear" style="max-width: 100%;"></a></p> <p dir="auto">Thus far, I have only been able to reproduce this behavior inside a tmux session, although it was not observed until the latest Windows Terminal update. Additionally, I was using Cascadia Code as my terminal font also previous to that upgrade, without problems.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18990.1002] Windows Terminal version (if applicable): 0.5 Any other software? Powershell Core and CMD"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18990.1002] Windows Terminal version (if applicable): 0.5 Any other software? Powershell Core and CMD </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>create output (i.e.: <code class="notranslate">dir</code>)</li> <li>resize window to force text to wrap</li> <li><code class="notranslate">clear</code> or <code class="notranslate">cls</code></li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Completely clear screen</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11050425/65542773-aaae0b80-dec4-11e9-8b4d-c0976b823c24.gif"><img src="https://user-images.githubusercontent.com/11050425/65542773-aaae0b80-dec4-11e9-8b4d-c0976b823c24.gif" alt="clear_bug" data-animated-image="" style="max-width: 100%;"></a></p>
1
<p dir="auto">Not sure if it is a bug or just general confusion. Tried only with 0.12.2, not with master.</p> <p dir="auto"><code class="notranslate">this.forceUpdate();</code> crashes when a component is not mounted, which in itself makes sense, I'd say. However, if you call <code class="notranslate">this.forceUpdate()</code> directly in <code class="notranslate">componentWillMount</code>, it <em>doesn't</em> crash, which suggests that it's OK to do (just as <code class="notranslate">setState</code> is OK to call there).</p> <p dir="auto">This happens if you use a Flux-like architecture but don't use the <code class="notranslate">componentDidMount</code>/<code class="notranslate">setState</code> combination (as Flux suggests) but <code class="notranslate">componentWillMount</code>/<code class="notranslate">forceUpdate</code>.</p> <p dir="auto">The error that you get is "Invariant Violation: receiveComponent(...): Can only update a mounted component."</p> <p dir="auto">This example shows the problem: <a href="http://jsfiddle.net/8s9we7gj/3/" rel="nofollow">http://jsfiddle.net/8s9we7gj/3/</a></p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">Report a bug.</p> <p dir="auto"><strong>What is the current behavior?</strong><br> React 16.9.0 deprecates <code class="notranslate">javascript:</code> URLs (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sebmarkbage/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sebmarkbage">@sebmarkbage</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="418111620" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/15047" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/15047/hovercard" href="https://github.com/facebook/react/pull/15047">#15047</a>). It was motivated by preventing XSS vulnerability that can be used by injecting client-side scripts:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;a href={url}&gt;Unsafe Link&lt;/a&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">url</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>Unsafe Link<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">The following code cannot be exploited by attackers, it cannot be used to inject XSS:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;a href=&quot;javascript:void(0)&quot;&gt;Safe Link&lt;/a&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"javascript:void(0)"</span><span class="pl-c1">&gt;</span>Safe Link<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">React 16.9 reports the security precaution warning for the example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Warning: A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed &quot;javascript:void(0)&quot;."><pre class="notranslate"><code class="notranslate">Warning: A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed "javascript:void(0)". </code></pre></div> <p dir="auto"><a href="https://codesandbox.io/s/determined-rgb-sws4g?fontsize=14" rel="nofollow"><img src="https://camo.githubusercontent.com/90808661433696bc57dce8d4ad732307b5cec6270e6b846f114dcd7ee7f9458a/68747470733a2f2f636f646573616e64626f782e696f2f7374617469632f696d672f706c61792d636f646573616e64626f782e737667" alt="Edit determined-rgb-sws4g" data-canonical-src="https://codesandbox.io/static/img/play-codesandbox.svg" style="max-width: 100%;"></a></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">I would expected that security precaution warnings aren't reported for values that cannot be controlled by attackers.</p> <p dir="auto">There were also <a href="https://github.com/facebook/react/pull/15047/files#r264357918">concerns</a> regarding common patterns like <code class="notranslate">javascript:void(0)</code>, see <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gaearon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gaearon">@gaearon</a> comment:</p> <blockquote> <p dir="auto">Especially javascript:void(0) seems like it's still pretty common because it's copy pasted from old samples etc. Is it dangerous to whitelist that one? Is it a vector by itself?</p> </blockquote> <p dir="auto">If there're tons of reported security issues, you definitely ignore something important.</p> <p dir="auto">For reference: <a href="https://angular.io/guide/security#angulars-cross-site-scripting-security-model" rel="nofollow">Angular’s cross-site scripting security model</a></p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">React 16.9.0 is affected. 16.8.6 doesn't report the warning.</p>
0
<ul dir="auto"> <li><strong>Works</strong>: A Component with an injectable: <a href="http://plnkr.co/edit/4uUq7Hqtk43ZHEQMbeM4?p=preview" rel="nofollow">http://plnkr.co/edit/4uUq7Hqtk43ZHEQMbeM4?p=preview</a></li> <li><strong>Broken</strong>: A DynamicComponent with an injectable: <a href="http://plnkr.co/edit/lJyRdelIxhInuGn5blnl?p=preview" rel="nofollow">http://plnkr.co/edit/lJyRdelIxhInuGn5blnl?p=preview</a></li> </ul>
<p dir="auto">DynamicComponent annotation has it's own injectables property which gets parsed separately from Component annotations. This information later gets dropped in DirectiveMetadataReader as only Component is checked:</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/angular/angular/blob/3667854a8f7a9f84c56c2e69aad0a804a0b52739/modules/angular2/src/core/compiler/directive_metadata_reader.js#L17">angular/modules/angular2/src/core/compiler/directive_metadata_reader.js</a> </p> <p class="mb-0 color-fg-muted"> Line 17 in <a data-pjax="true" class="commit-tease-sha" href="/angular/angular/commit/3667854a8f7a9f84c56c2e69aad0a804a0b52739">3667854</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="L17" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="17"></td> <td id="LC17" 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-kos">(</span><span class="pl-s1">annotation</span> <span class="pl-k">instanceof</span> <span class="pl-v">Component</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-en">isPresent</span><span class="pl-kos">(</span><span class="pl-s1">annotation</span><span class="pl-kos">.</span><span class="pl-c1">injectables</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> </tbody></table> </div> </div> <p></p>
1
<p dir="auto">I hold alt and click and hold left mouse button. It doesn't select the text in rectangular way.<br> I am running OSX elcapitan.</p>
<p dir="auto">Please Implement Column Mode selection/editing.</p> <p dir="auto">Previously requested here<br> <a href="https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7761618-implement-column-mode-selection-editing" rel="nofollow">https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7761618-implement-column-mode-selection-editing</a></p> <p dir="auto">On Mac preferred shortcut is cmd+option(alt) like Sublime Text does.</p>
1
<p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): YES</li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: Internal Android 8.1 board</li> <li>TensorFlow installed from (source or binary): source</li> <li>TensorFlow version (use command below): 1.13.1</li> <li>Python version: 2.7</li> <li>Bazel version (if compiling from source): 0.22.0</li> <li>GCC/Compiler version (if compiling from source):</li> <li>CUDA/cuDNN version:</li> <li>GPU model and memory: Mali-T864 GPU</li> </ul> <p dir="auto">You can collect some of this information using our environment capture<br> <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br> You can also obtain the TensorFlow version with: 1. TF 1.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</code> 2. TF 2.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"</code></p> <p dir="auto"><strong>Describe the current behavior</strong></p> <p dir="auto">I wrote a simple demo using tflite opengles delegate to run deeplab models from <a href="https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md">model zoo</a>.</p> <p dir="auto">I have tried your hosted model <a href="https://storage.googleapis.com/download.tensorflow.org/models/tflite/gpu/deeplabv3_257_mv_gpu.tflite" rel="nofollow">deeplabv3_mv2_257_gpu.tflite</a>, It works perfect on my device on CPU and Opengles delegate.</p> <p dir="auto">However, when I tried the <a href="http://download.tensorflow.org/models/deeplabv3_xception_ade20k_train_2018_05_29.tar.gz" rel="nofollow">deeplab mode with xception65 </a>, The tflite perform differently on CPU and Opengles delegate. My input layer is sub_7, output layer is ResizeBilinear_3.</p> <p dir="auto">Here is my result:<br> test image:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43549654/59234008-b852b600-8b9f-11e9-8ce2-703664cadcf4.png"><img src="https://user-images.githubusercontent.com/43549654/59234008-b852b600-8b9f-11e9-8ce2-703664cadcf4.png" alt="two_human" style="max-width: 100%;"></a></p> <p dir="auto">result from CPU (correct):<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43549654/59234023-d02a3a00-8b9f-11e9-98f0-f17874fca671.png"><img src="https://user-images.githubusercontent.com/43549654/59234023-d02a3a00-8b9f-11e9-98f0-f17874fca671.png" alt="hp_nonflatten_cpu" style="max-width: 100%;"></a></p> <p dir="auto">result from opengles delegate:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43549654/59234034-dc15fc00-8b9f-11e9-9982-008d9f5064fa.png"><img src="https://user-images.githubusercontent.com/43549654/59234034-dc15fc00-8b9f-11e9-9982-008d9f5064fa.png" alt="hp_flatten2_gpu" style="max-width: 100%;"></a></p> <p dir="auto">I believed that this issue is related to the operations(BATCH_TO_SPACE_ND, SPACE_TO_BATCH_ND) that opengles not supporting thus fallback to CPU. Another <a href="https://github.com/tensorflow/tensorflow/issues/29509" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/29509/hovercard">issue</a> of mine described more detail.</p> <p dir="auto">Flatten the unsupported ops using graph_transforms also failed. It gives me the same inaccurate result or shows message like:<br> <code class="notranslate">INFO: Initialized TensorFlow Lite runtime. INFO: Created TensorFlow Lite delegate for GPU. ERROR: TfLiteGpuDelegate Prepare: Program is not properly linked: L0005 The number of compute uniform components (1261) is greater than the maximum number allowed (1024). ERROR: Node number 199 (TfLiteGpuDelegate) failed to prepare. ERROR: Node number 199 (TfLiteGpuDelegate) failed to prepare. </code></p> <p dir="auto"><strong>Describe the expected behavior</strong><br> all models work as good as your hosted model</p> <p dir="auto"><strong>Code to reproduce the issue</strong><br> Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p> <p dir="auto"><strong>Other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p>
<p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):NO</li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Linux Ubuntu 16.04</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:NA</li> <li>TensorFlow installed from (source or binary):source</li> <li>TensorFlow version (use command below):1.13.1</li> <li>Python version: 2.7</li> <li>Bazel version (if compiling from source): 0.22.0</li> <li>GCC/Compiler version (if compiling from source):</li> <li>CUDA/cuDNN version:</li> <li>GPU model and memory:</li> </ul> <p dir="auto">You can collect some of this information using our environment capture<br> <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br> You can also obtain the TensorFlow version with: 1. TF 1.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</code> 2. TF 2.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"</code></p> <p dir="auto"><strong>Describe the current behavior</strong><br> I'm trying to train my own deeplab model using this <a href="https://github.com/tensorflow/models/tree/master/research/deeplab">code</a> and convert it to tflite.<br> My target is to get a model similar to <a href="https://storage.googleapis.com/download.tensorflow.org/models/tflite/gpu/deeplabv3_257_mv_gpu.tflite" rel="nofollow">this</a></p> <p dir="auto">However, the model is obtained contains operations like:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43549654/59057361-135a7500-884f-11e9-9546-e2bd20e69c95.png"><img src="https://user-images.githubusercontent.com/43549654/59057361-135a7500-884f-11e9-9546-e2bd20e69c95.png" alt="image" style="max-width: 100%;"></a><br> SpaceToBatchND and BatchToSpaceND operations are not supported by tflite + opengles backend, they reduced the model's performance on my device.</p> <p dir="auto">In your hosted deeplab model, those three ops are replaced by DEPTHWISE_CONV_2D v2, which has options to set dilation factor. This would be the best solution for me but I'm not sure how to convert SpaceToBatchND-Conv2D-BatchToSpaceND into a singe DEPTHWISE_CONV_2D v2(dilation=2).</p> <p dir="auto">FYI, I have tried the graph_transforms tool under tensorflow/tools/graph_transforms to flatten the atrous conv. It upsampled the kernels instead of Space_To_Batch + Batch_To_Space. But this transform leads to much more computations that I cannot afford.</p> <p dir="auto"><strong>Describe the expected behavior</strong></p> <p dir="auto">convert SpaceToBatchND-Conv2D-BatchToSpaceND into a singe DEPTHWISE_CONV_2D v2(dilation=2)</p> <p dir="auto"><strong>Code to reproduce the issue</strong><br> Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p> <p dir="auto">You can try any model under deeplab model zoo for example <a href="url">http://download.tensorflow.org/models/deeplabv3_mnv2_ade20k_train_2018_12_03.tar.gz</a></p> <p dir="auto"><strong>Other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p>
1
<p dir="auto">npm install -g exp</p> <p dir="auto">npm ERR! cb() never called!</p> <p dir="auto">npm ERR! This is an error with npm itself. Please report this error at:<br> npm ERR! <a href="https://npm.community" rel="nofollow">https://npm.community</a></p> <p dir="auto">npm ERR! A complete log of this run can be found in:<br> npm ERR! C:\Users\delger\AppData\Roaming\npm-cache_logs\2020-01-07T02_45_34_493Z-debug.log</p>
<p dir="auto">npm ERR! cb() never called!</p> <p dir="auto">npm ERR! This is an error with npm itself. Please report this error at:<br> npm ERR! <a href="https://npm.community" rel="nofollow">https://npm.community</a></p> <p dir="auto">npm ERR! A complete log of this run can be found in:<br> npm ERR! C:\Users\bhagu\AppData\Roaming\npm-cache_logs\2020-02-15T07_06_40_844Z-debug.log<br> PS E:\instaprops\ipros-website&gt;</p>
0
<p dir="auto">Hi,<br> It could be great to have a additional option in command line for add the path to open to the current treeview. Why not <code class="notranslate">-a</code> ?<br> It is currently only possible with the menu <code class="notranslate">Add project Folder</code></p>
<p dir="auto">The tree-view command "Add Root Folder" is very useful. Frequently I want to open multiple projects in one editor window, with each project as a root folder. This enables things like tree-view's "Hide VCS Ignored Files" to actually work. Other packages also require the root of a repository to be a root folder in tree-view, such as git-blame, for example. Currently, opening a directory from the command line results in opening a new Atom editor window.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="atom /foo/bar # creates new window with /foo/bar the single root folder in tree-view atom /foo/baz # creates another window"><pre class="notranslate">atom /foo/bar <span class="pl-c"><span class="pl-c">#</span> creates new window with /foo/bar the single root folder in tree-view</span> atom /foo/baz <span class="pl-c"><span class="pl-c">#</span> creates another window</span></pre></div> <p dir="auto">I have a feeling issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="59521078" data-permission-text="Title is private" data-url="https://github.com/atom/tree-view/issues/393" data-hovercard-type="issue" data-hovercard-url="/atom/tree-view/issues/393/hovercard" href="https://github.com/atom/tree-view/issues/393">atom/tree-view#393</a> would block implementing a feature like this, but it would be very nice to support something like the following.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="atom /foo/bar # creates new window with /foo/bar the single root folder in tree-view atom -a /foo/baz # adds /foo/baz as a root folder to an existing window (most recently used?)"><pre class="notranslate">atom /foo/bar <span class="pl-c"><span class="pl-c">#</span> creates new window with /foo/bar the single root folder in tree-view</span> atom -a /foo/baz <span class="pl-c"><span class="pl-c">#</span> adds /foo/baz as a root folder to an existing window (most recently used?)</span></pre></div>
1
<p dir="auto">Tried to compile julia 1.0.3. Compilation OK, but 4 tests fail when <code class="notranslate">make -i testall</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error in testset cmdlineargs: Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:422 Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:422 =# @cmd(&quot;\$exename -e \&quot;exit(0)\&quot;&quot;)) Error in testset cmdlineargs: Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 =# @cmd(&quot;\$exename -e \&quot;exit(!(Base.load_path() == []))\&quot;&quot;)) Error in testset cmdlineargs: Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 =# @cmd(&quot;\$exename -e \&quot;exit(!(Base.load_path() == []))\&quot;&quot;)) Error in testset cmdlineargs: Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 =# @cmd(&quot;\$exename -e \&quot;exit(!(Base.load_path() == []))\&quot;&quot;))"><pre class="notranslate"><code class="notranslate">Error in testset cmdlineargs: Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:422 Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:422 =# @cmd("\$exename -e \"exit(0)\"")) Error in testset cmdlineargs: Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 =# @cmd("\$exename -e \"exit(!(Base.load_path() == []))\"")) Error in testset cmdlineargs: Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 =# @cmd("\$exename -e \"exit(!(Base.load_path() == []))\"")) Error in testset cmdlineargs: Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 =# @cmd("\$exename -e \"exit(!(Base.load_path() == []))\"")) </code></pre></div> <p dir="auto">Here is the Make.user:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="prefix = /usr/local/julia/1.0.3 USEIFC = 1 USE_INTEL_MKL = 1 USE_INTEL_MKL_FFT = 1"><pre class="notranslate"><code class="notranslate">prefix = /usr/local/julia/1.0.3 USEIFC = 1 USE_INTEL_MKL = 1 USE_INTEL_MKL_FFT = 1 </code></pre></div> <p dir="auto">Using mkl rel 19.2 and gcc:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Copyright © 2015 Free Software Foundation, Inc. Ce logiciel est libre; voir les sources pour les conditions de copie. Il n'y a PAS GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER."><pre lang="gcc" class="notranslate"><code class="notranslate">Copyright © 2015 Free Software Foundation, Inc. Ce logiciel est libre; voir les sources pour les conditions de copie. Il n'y a PAS GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER. </code></pre></div>
<p dir="auto">I'm currently building Julia v1.0.2 with intel MKL library. The build is passed, but it cannot pass the test. I found some test failures are owing to the LD_LIBRARY_PATH are missing. For example, in <code class="notranslate">cmdlineargs.jl</code>.<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/JuliaLang/julia/blob/a50d5af9cb9a7cce9a5ee3154bba735ffc74c1b1/test/cmdlineargs.jl#L30-L32">julia/test/cmdlineargs.jl</a> </p> <p class="mb-0 color-fg-muted"> Lines 30 to 32 in <a data-pjax="true" class="commit-tease-sha" href="/JuliaLang/julia/commit/a50d5af9cb9a7cce9a5ee3154bba735ffc74c1b1">a50d5af</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="L30" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="30"></td> <td id="LC30" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">let</span> v <span class="pl-k">=</span> <span class="pl-c1">writereadpipeline</span>(<span class="pl-s"><span class="pl-pds">"</span>println(<span class="pl-cce">\"</span>REPL: <span class="pl-cce">\"</span>, @which(less), @isdefined(InteractiveUtils))<span class="pl-pds">"</span></span>, </td> </tr> <tr class="border-0"> <td id="L31" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="31"></td> <td id="LC31" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">setenv</span>(<span class="pl-s"><span class="pl-pds">`</span>$exename -i -E 'empty!(LOAD_PATH); @isdefined InteractiveUtils'<span class="pl-pds">`</span></span>, </td> </tr> <tr class="border-0"> <td id="L32" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="32"></td> <td id="LC32" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"><span class="pl-pds">"</span>JULIA_LOAD_PATH<span class="pl-pds">"</span></span><span class="pl-k">=&gt;</span><span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>JULIA_DEPOT_PATH<span class="pl-pds">"</span></span><span class="pl-k">=&gt;</span><span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>)) </td> </tr> </tbody></table> </div> </div> <br> The <code class="notranslate">setenv</code> didn't copy the origin <code class="notranslate">ENV</code>, so when running julia, it will cause a <code class="notranslate">Intel MKL FATAL ERROR: Cannot load libmkl_core.so.</code> It can be solve by passing the LD_LIBRARY_PATH to the command.<p></p> <p dir="auto">Another is problem is at<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/JuliaLang/julia/blob/a50d5af9cb9a7cce9a5ee3154bba735ffc74c1b1/test/cmdlineargs.jl#L418-L431">julia/test/cmdlineargs.jl</a> </p> <p class="mb-0 color-fg-muted"> Lines 418 to 431 in <a data-pjax="true" class="commit-tease-sha" href="/JuliaLang/julia/commit/a50d5af9cb9a7cce9a5ee3154bba735ffc74c1b1">a50d5af</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="L418" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="418"></td> <td id="LC418" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-k">!</span>Sys<span class="pl-k">.</span><span class="pl-c1">iswindows</span>() <span class="pl-k">&amp;&amp;</span> Base<span class="pl-k">.</span>libllvm_version <span class="pl-k">&gt;</span> <span class="pl-s"><span class="pl-pds"><span class="pl-c1">v</span>"</span>3.3<span class="pl-pds">"</span></span> </td> </tr> <tr class="border-0"> <td id="L419" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="419"></td> <td id="LC419" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> testdir <span class="pl-k">=</span> <span class="pl-c1">mktempdir</span>() </td> </tr> <tr class="border-0"> <td id="L420" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="420"></td> <td id="LC420" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">cd</span>(testdir) <span class="pl-k">do</span> </td> </tr> <tr class="border-0"> <td id="L421" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="421"></td> <td id="LC421" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">rm</span>(testdir) </td> </tr> <tr class="border-0"> <td id="L422" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="422"></td> <td id="LC422" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">@test</span> Base<span class="pl-k">.</span><span class="pl-c1">current_project</span>() <span class="pl-k">===</span> <span class="pl-c1">nothing</span> </td> </tr> <tr class="border-0"> <td id="L423" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="423"></td> <td id="LC423" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">@test</span> <span class="pl-c1">success</span>(<span class="pl-s"><span class="pl-pds">`</span>$exename -e "exit(0)"<span class="pl-pds">`</span></span>) </td> </tr> <tr class="border-0"> <td id="L424" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="424"></td> <td id="LC424" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> load_path <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>@<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>@.<span class="pl-pds">"</span></span>] </td> </tr> <tr class="border-0"> <td id="L425" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="425"></td> <td id="LC425" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">withenv</span>(<span class="pl-s"><span class="pl-pds">"</span>JULIA_LOAD_PATH<span class="pl-pds">"</span></span> <span class="pl-k">=&gt;</span> load_path) <span class="pl-k">do</span> </td> </tr> <tr class="border-0"> <td id="L426" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="426"></td> <td id="LC426" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">@test</span> <span class="pl-c1">success</span>(<span class="pl-s"><span class="pl-pds">`</span>$exename -e "exit(!(Base.load_path() == []))"<span class="pl-pds">`</span></span>) </td> </tr> <tr class="border-0"> <td id="L427" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="427"></td> <td id="LC427" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">end</span> </td> </tr> <tr class="border-0"> <td id="L428" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="428"></td> <td id="LC428" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">end</span> </td> </tr> <tr class="border-0"> <td id="L429" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="429"></td> <td id="LC429" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">end</span> </td> </tr> <tr class="border-0"> <td id="L430" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="430"></td> <td id="LC430" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">end</span> </td> </tr> <tr class="border-0"> <td id="L431" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="431"></td> <td id="LC431" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">end</span> </td> </tr> </tbody></table> </div> </div> <br> After the directory is removed, it cannot load the <code class="notranslate">libmkl_rt.so.</code> so will cause a <code class="notranslate">Intel MKL FATAL ERROR: Cannot load /home/peter/intel/compilers_and_libraries_2019.0.117/linux/mkl/lib/intel64/libmkl_rt.so.</code> it seems to be a problem of calling <code class="notranslate">getcwd</code> in <code class="notranslate">libmkl_rt.so.</code><p></p>
1
<p dir="auto">I think I wrote correctly but it doesn't work like I thought :(<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13378727/10334974/3089e878-6d18-11e5-8f89-d9420cb51a43.jpg"><img src="https://cloud.githubusercontent.com/assets/13378727/10334974/3089e878-6d18-11e5-8f89-d9420cb51a43.jpg" alt="30" style="max-width: 100%;"></a></p>
<p dir="auto">The following link is running its jQuery twice: <a href="http://www.freecodecamp.com/challenges/target-the-parent-of-an-element-using-jquery" rel="nofollow">http://www.freecodecamp.com/challenges/target-the-parent-of-an-element-using-jquery</a></p> <h4 dir="auto">Issue Description</h4> <ul dir="auto"> <li>It happens when I load it first time. Looking at my screenshot you can notice that there are 3 target5</li> <li>For reproduction of this bug you just need open this link</li> </ul> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>FirefoxESR, 31 ESR</li> <li>Windows 7 enterprise, Service Pack 1</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="&lt;script&gt; $(document).ready(function() { $(&quot;#target1&quot;).css(&quot;color&quot;, &quot;red&quot;); $(&quot;#target1&quot;).prop(&quot;disabled&quot;, true); $(&quot;#target4&quot;).remove(); $(&quot;#target2&quot;).appendTo(&quot;#right-well&quot;); $(&quot;#target5&quot;).clone().appendTo(&quot;#left-well&quot;); }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;body&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; "><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">script</span><span class="pl-c1">&gt;</span> $(document).ready(function() <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>); <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">script</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">!</span><span class="pl-c1">--</span> <span class="pl-v">Only</span> <span class="pl-s1">change</span> <span class="pl-s1">code</span> <span class="pl-s1">above</span> <span class="pl-s1">this</span> <span class="pl-s1">line</span><span class="pl-kos">.</span> <span class="pl-c1">--</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">body</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"container-fluid"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"text-primary text-center"</span><span class="pl-c1">&gt;</span>jQuery Playground<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h3</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"row"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-6"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h4</span><span class="pl-c1">&gt;</span>#left-well<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h4</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"well"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"left-well"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target1"</span><span class="pl-c1">&gt;</span>#target1<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target2"</span><span class="pl-c1">&gt;</span>#target2<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target3"</span><span class="pl-c1">&gt;</span>#target3<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</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-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-6"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h4</span><span class="pl-c1">&gt;</span>#right-well<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h4</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"well"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"right-well"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target4"</span><span class="pl-c1">&gt;</span>#target4<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target5"</span><span class="pl-c1">&gt;</span>#target5<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target6"</span><span class="pl-c1">&gt;</span>#target6<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</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-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</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-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">body</span><span class="pl-c1">&gt;</span></pre></div> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1185943/13295119/12a0c15e-db06-11e5-886b-e74b390970a6.png"><img src="https://cloud.githubusercontent.com/assets/1185943/13295119/12a0c15e-db06-11e5-886b-e74b390970a6.png" alt="sem titulo2" style="max-width: 100%;"></a></p>
0
<p dir="auto">by <strong>runningwild</strong>:</p> <pre class="notranslate">If there are no blank lines between the start of a file and a comment containing build constraints those build constraints are ignored. What steps will reproduce the problem? Make two files, foo.go (no blank line before the build constraint): // +build ignore package main func main() { println("Hi!") } and bar.go: package main func main() { println("Hi!") } then run "go build ." in that directory. This fails because of duplicate definition of main(). If a blank line is inserted before the build constraint in foo.go the compilation succeeds as expected (inserting another line of comments is not sufficient). Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? darwin, linux Which version are you using? (run 'go version') go1 hg id: 817fde92780a</pre>
<pre class="notranslate"><a href="http://play.golang.org/p/T9zdkbOhqw" rel="nofollow">http://play.golang.org/p/T9zdkbOhqw</a> In this (perverse) program, x is a pointer to a struct, and (*x).y is a legal expression, but x.y() is not. This contradicts the letter of the spec, though I think not its spirit. type T struct{} func (T) y() {} type X *T var x X // "Selectors automatically dereference pointers to structs. // If x is a pointer to a struct, x.y is shorthand for (*x).y." (*x).y() x.y() // gc error: x.y undefined (type X has no field or method y)</pre>
0
<p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):</li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li> <li>TensorFlow installed from (source or binary):</li> <li>TensorFlow version (use command below):</li> <li>Python version:</li> <li>Bazel version (if compiling from source):</li> <li>GCC/Compiler version (if compiling from source):</li> <li>CUDA/cuDNN version:</li> <li>GPU model and memory:</li> </ul> <p dir="auto">You can collect some of this information using our environment capture<br> <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br> You can also obtain the TensorFlow version with: 1. TF 1.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</code> 2. TF 2.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"</code></p> <p dir="auto"><strong>Describe the current behavior</strong></p> <p dir="auto"><strong>Describe the expected behavior</strong></p> <p dir="auto"><strong>Code to reproduce the issue</strong><br> Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p> <p dir="auto"><strong>Other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p>
<p dir="auto">I unclicked run1 and run2, but when I click on some variables, the run1 and run2 still show up. If I click on run1 and run2 again, five plots will be shown, with 2 of them repeated! By unclicking and clicking a run1, my board just messed up with more and more plots. This is a Google product? :-O</p> <p dir="auto">Screenshots:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5016962/13942946/3a633a78-efb5-11e5-9dec-795b306778b3.png"><img src="https://cloud.githubusercontent.com/assets/5016962/13942946/3a633a78-efb5-11e5-9dec-795b306778b3.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5016962/13942974/8c51f4dc-efb5-11e5-9b14-3813f4110586.png"><img src="https://cloud.githubusercontent.com/assets/5016962/13942974/8c51f4dc-efb5-11e5-9b14-3813f4110586.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">Using a <code class="notranslate">&lt;webview&gt;</code> tag on Electron 0.35.2 without having a <code class="notranslate">&lt;script&gt;</code> tag in the parent HTML seems to cause the webview to never load the page.</p> <h3 dir="auto">Does not load</h3> <p dir="auto">This has no <code class="notranslate">&lt;script&gt;</code> tags and the webview never loads.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;&gt; &lt;/head&gt; &lt;body&gt; &lt;webview src=&quot;http://yahoo.com&quot; autosize=&quot;on&quot; minwidth=&quot;500&quot; minheight=&quot;500&quot;&gt;&lt;/webview&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">charset</span>="<span class="pl-s">utf-8</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">webview</span> <span class="pl-c1">src</span>="<span class="pl-s">http://yahoo.com</span>" <span class="pl-c1">autosize</span>="<span class="pl-s">on</span>" <span class="pl-c1">minwidth</span>="<span class="pl-s">500</span>" <span class="pl-c1">minheight</span>="<span class="pl-s">500</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">webview</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/671378/11566570/e6312d84-9997-11e5-8e81-8c3daa351f9c.png"><img width="801" alt="screen shot 2015-12-03 at 8 28 46 am" src="https://cloud.githubusercontent.com/assets/671378/11566570/e6312d84-9997-11e5-8e81-8c3daa351f9c.png" style="max-width: 100%;"></a></p> ### Loads <p dir="auto">Same example above except an empty <code class="notranslate">&lt;script&gt;</code> tag in the <code class="notranslate">&lt;head&gt;</code> and the webview loads.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;&gt; &lt;script&gt; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;webview src=&quot;http://yahoo.com&quot; autosize=&quot;on&quot; minwidth=&quot;500&quot; minheight=&quot;500&quot;&gt;&lt;/webview&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">charset</span>="<span class="pl-s">utf-8</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">webview</span> <span class="pl-c1">src</span>="<span class="pl-s">http://yahoo.com</span>" <span class="pl-c1">autosize</span>="<span class="pl-s">on</span>" <span class="pl-c1">minwidth</span>="<span class="pl-s">500</span>" <span class="pl-c1">minheight</span>="<span class="pl-s">500</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">webview</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/671378/11566594/fda2048e-9997-11e5-8d3b-6194d5c021b0.png"><img width="802" alt="screen shot 2015-12-03 at 8 29 20 am" src="https://cloud.githubusercontent.com/assets/671378/11566594/fda2048e-9997-11e5-8d3b-6194d5c021b0.png" style="max-width: 100%;"></a></p>
<p dir="auto">I have a very little demo like this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Hello World!&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;webview src=&quot;https://www.google.com/&quot; autosize=&quot;on&quot; minwidth=&quot;576&quot; minheight=&quot;432&quot;&gt;&lt;/webview&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span>Hello World!<span class="pl-kos">&lt;/</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">webview</span> <span class="pl-c1">src</span>="<span class="pl-s">https://www.google.com/</span>" <span class="pl-c1">autosize</span>="<span class="pl-s">on</span>" <span class="pl-c1">minwidth</span>="<span class="pl-s">576</span>" <span class="pl-c1">minheight</span>="<span class="pl-s">432</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">webview</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">When I run the application, I get a blank page, nothing displayed. But if I add some script to the page, the webview will render. e.g.:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Hello World!&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;script&gt;console.log(&quot;Hello World&quot;);&lt;/script&gt; &lt;webview src=&quot;http://www.baidu.com/&quot; autosize=&quot;on&quot; minwidth=&quot;576&quot; minheight=&quot;432&quot;&gt;&lt;/webview&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span>Hello World!<span class="pl-kos">&lt;/</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Hello World"</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">webview</span> <span class="pl-c1">src</span>="<span class="pl-s">http://www.baidu.com/</span>" <span class="pl-c1">autosize</span>="<span class="pl-s">on</span>" <span class="pl-c1">minwidth</span>="<span class="pl-s">576</span>" <span class="pl-c1">minheight</span>="<span class="pl-s">432</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">webview</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div>
1
<h1 dir="auto">What / Why</h1> <p dir="auto"><code class="notranslate">npm i</code> can fail when using local deps in a certain way.</p> <h2 dir="auto">When</h2> <p dir="auto">Running <code class="notranslate">npm i</code></p> <h2 dir="auto">Where</h2> <p dir="auto">In a package that includes local dependencies that depend on a common registry-derived module.</p> <h2 dir="auto">How</h2> <p dir="auto">In the situation where local (<code class="notranslate">file:</code>) deps form a chain and two share a common registry-derived dep, <code class="notranslate">npm i</code> will fail with an <code class="notranslate">ENOENT</code> error.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="A | B -&gt; some-module | C -&gt; some-module"><pre class="notranslate"><code class="notranslate">A | B -&gt; some-module | C -&gt; some-module </code></pre></div> <p dir="auto"><g-emoji class="g-emoji" alias="point_up" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/261d.png">☝️</g-emoji> <code class="notranslate">A</code> depends on <code class="notranslate">B</code>. <code class="notranslate">B</code> depends on <code class="notranslate">C</code> and <code class="notranslate">some-module</code>. <code class="notranslate">C</code> depends on <code class="notranslate">some-module</code>.</p> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Running <code class="notranslate">npm i</code> will throw an error like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /npm-nested-deps-issue/c/node_modules/some-module is not a child of /npm-nested-deps-issue/a npm WARN [email protected] No description npm WARN [email protected] No repository field. npm ERR! code ENOENT npm ERR! syscall rename npm ERR! path /npm-nested-deps-issue/a/node_modules/.staging/some-module-de6f41e0 npm ERR! dest /npm-nested-deps-issue/c/node_modules/some-module npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, rename '/npm-nested-deps-issue/a/node_modules/.staging/some-module-de6f41e0' -&gt; '/npm-nested-deps-issue/c/node_modules/some-module' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent"><pre class="notranslate"><code class="notranslate">npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /npm-nested-deps-issue/c/node_modules/some-module is not a child of /npm-nested-deps-issue/a npm WARN [email protected] No description npm WARN [email protected] No repository field. npm ERR! code ENOENT npm ERR! syscall rename npm ERR! path /npm-nested-deps-issue/a/node_modules/.staging/some-module-de6f41e0 npm ERR! dest /npm-nested-deps-issue/c/node_modules/some-module npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, rename '/npm-nested-deps-issue/a/node_modules/.staging/some-module-de6f41e0' -&gt; '/npm-nested-deps-issue/c/node_modules/some-module' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent </code></pre></div> <h3 dir="auto">Steps to Reproduce</h3> <ol dir="auto"> <li>Clone <a href="https://github.com/treydavis/npm-nested-deps-issue">https://github.com/treydavis/npm-nested-deps-issue</a></li> <li>run <code class="notranslate">npm i</code> in the <code class="notranslate">a</code> module</li> </ol> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Install with no errors</p>
<p dir="auto">C:\Users\ramee\iSplendidtask\iSplendidApp&gt;npm install --save react-navigation<br> npm ERR! cb() never called!</p> <p dir="auto">npm ERR! This is an error with npm itself. Please report this error at:<br> npm ERR! <a href="https://npm.community" rel="nofollow">https://npm.community</a></p> <p dir="auto">npm ERR! A complete log of this run can be found in:<br> npm ERR! C:\Users\ramee\AppData\Roaming\npm-cache_logs\2019-12-19T14_14_22_526Z-debug.log</p>
0
<p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">This appears to be the core issue behind <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1034512293" data-permission-text="Title is private" data-url="https://github.com/google/model-viewer/issues/2915" data-hovercard-type="issue" data-hovercard-url="/google/model-viewer/issues/2915/hovercard" href="https://github.com/google/model-viewer/issues/2915">google/model-viewer#2915</a></p> <p dir="auto">It seems that something about a recent materials change has caused shader compilation on my PC to take ~10x(!) longer than it used to. If I were to guess at why I'd say that it's probably the DirectX shader compiler hitting a pathological case that wasn't there before and trying to do an insane loop unroll or something of that nature.</p> <p dir="auto"><strong>To Reproduce</strong></p> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>git checkout r132</li> <li>Open examples/webgl_animation_keyframes.html</li> <li>Observe load time</li> <li>git checkout r133</li> <li>Refresh examples/webgl_animation_keyframes.html</li> <li>Observe (much longer) load time</li> </ol> <p dir="auto">With r132 I get the following recording from the performance tab in Chrome dev tools (though it's worth noting the same regression is also observable when using Firefox):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/805273/139484874-de26dba4-16ab-4794-bd41-9c9b328d0201.png"><img width="884" alt="Screenshot 2021-10-29 113147" src="https://user-images.githubusercontent.com/805273/139484874-de26dba4-16ab-4794-bd41-9c9b328d0201.png" style="max-width: 100%;"></a></p> <p dir="auto">You can see that the largest block of work on the main thread takes ~500ms. It bottoms out at a bunch of getProgramInfoLog calls and a couple of texImage2D calls that all take about 20-50ms.</p> <p dir="auto">With r133 the recording looks significantly different. There are multiple calls to getProgramInfoLog that take ~150ms each and one particularly long one that takes 3+ seconds! In total, the block of work that represents to model's upload to the GPU takes nearly 5 seconds to complete, a 10x increase between versions (and consistent with what was seeing.)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/805273/139485848-3c228c54-2038-4cc2-bf63-b5834814e413.png"><img width="884" alt="Screenshot 2021-10-29 113654" src="https://user-images.githubusercontent.com/805273/139485848-3c228c54-2038-4cc2-bf63-b5834814e413.png" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Platform:</strong></p> <ul dir="auto"> <li>Device: Desktop, Intel Core i7-10700K, Nvidia GTX 1660 Super</li> <li>OS: Windows 11</li> <li>Browser: Chrome Canary 97.0.4685.2, Firefox Nightly 95.0a1</li> <li>Three.js version: r133</li> </ul>
<p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">The introduction of <code class="notranslate">SRGB8_ALPHA8</code> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="999998796" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/22551" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/22551/hovercard" href="https://github.com/mrdoob/three.js/pull/22551">#22551</a> improved the render quality of sRGB textures, but also added significant synchronous conversion times that block the main thread. Every sRGB texture adds to the total blocking time, resulting in a poor user experience, especially when the scene contains many textures.</p> <p dir="auto"><strong>To Reproduce</strong></p> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>Set <code class="notranslate">encoding</code> of any Uint8 RGBA texture to <code class="notranslate">sRGBEncoding</code>. (WebGL 2 context is required.)</li> <li>Render a scene that uses the texture.</li> <li>See the main thread being blocked for a noticeable period of time during the first frame.</li> </ol> <p dir="auto"><em><strong>Code</strong></em></p> <p dir="auto">The following example loads a cube map and sets its encoding to <code class="notranslate">sRGBEncoding</code>:<br> <a href="https://codesandbox.io/s/srgb8-alpha8-wv3jf?runonclick=1&amp;file=/index.js" rel="nofollow">https://codesandbox.io/s/srgb8-alpha8-wv3jf?runonclick=1&amp;file=/index.js</a></p> <p dir="auto"><em><strong>Live example</strong></em></p> <ul dir="auto"> <li><a href="https://wv3jf.csb.app/?linear" rel="nofollow">LinearEncoding (0.16 seconds blocking)</a> (Refresh to see small freeze)</li> <li><a href="https://wv3jf.csb.app/" rel="nofollow">sRGBEncoding (1.49 seconds blocking)</a> (Refresh to see long freeze)</li> </ul> <p dir="auto">The blocking behaviour can also be observed in live examples that load GLTF models, such as <a href="https://threejs.org/examples/?q=gltf#webgl_loader_gltf" rel="nofollow">https://threejs.org/examples/?q=gltf#webgl_loader_gltf</a>.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Ideally, the main thread should not be blocked at all. Blocking time should at least be reduced as much as possible.</p> <p dir="auto"><strong>Screenshots</strong></p> <table role="table"> <thead> <tr> <th>With <code class="notranslate">LinearEncoding</code> or <code class="notranslate">sRGBEncoding</code> pre r133</th> <th>With <code class="notranslate">sRGBEncoding</code> since r133</th> </tr> </thead> <tbody> <tr> <td><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9214917/135754996-e35ea610-4ac2-4d7c-8884-0ca101353a8a.jpg"><img width="320" src="https://user-images.githubusercontent.com/9214917/135754996-e35ea610-4ac2-4d7c-8884-0ca101353a8a.jpg" style="max-width: 100%;"></a></td> <td><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9214917/135754998-966cd217-45c8-487a-a0f3-b1895b836faf.jpg"><img width="320" src="https://user-images.githubusercontent.com/9214917/135754998-966cd217-45c8-487a-a0f3-b1895b836faf.jpg" style="max-width: 100%;"></a></td> </tr> <tr> <td>Longest blocking time = 160 ms</td> <td>Longest blocking time = 1496 ms</td> </tr> </tbody> </table> <p dir="auto"><strong>Platform:</strong></p> <ul dir="auto"> <li>Device: Desktop</li> <li>OS: Windows</li> <li>Browser: Chrome, Brave, Firefox</li> <li>Three.js version: r133</li> </ul>
1
<h3 dir="auto">Description</h3> <p dir="auto">Adding a user defined, small text <code class="notranslate">label</code> field to (mapped) task instances, which would appear in the UI</p> <h3 dir="auto">Use case/motivation</h3> <p dir="auto">Currently it is difficult to differentiate between mapped tasks in both the <code class="notranslate">Grid view</code> and the <code class="notranslate">Browse &gt; Task Instances</code> view. It requires a lot of hunting and pecking into either the parent XCOM to find what you need, or individually clicking through the Rendered task view.</p> <p dir="auto">It would be helpful to be able to mark tasks with metadata at runtime in some fashion, to distinguish in the UI</p> <h3 dir="auto">Related issues</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit a 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">Description</h3> <p dir="auto">Airflow currently exposes <code class="notranslate">map_index</code> to the user as a way of distinguishing between tasks in an expansion. The index is unlikely to be meaningful to the user. They probably have their own label for this action. I'm requesting that we allow them to add that label.</p> <p dir="auto">To see the problem, consider a dag that sends email to a list of users which is generated at runtime:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="with DAG(...) as dag: @dag.task def get_account_status(): return [ { &quot;NAME&quot;: &quot;Wintermute&quot;, &quot;EMAIL&quot;: &quot;[email protected]&quot;, &quot;STATUS&quot;: &quot;active&quot;, }, { &quot;NAME&quot;: &quot;Hojo&quot;, &quot;EMAIL&quot;: &quot;[email protected]&quot;, &quot;STATUS&quot;: &quot;delinquent&quot;, }, ] BashOperator.partial( task_id=&quot;send_email&quot;, bash_command=dedent( &quot;&quot;&quot; cat &lt;&lt;- EOF | tee | mailx -s &quot;your account&quot; $EMAIL Dear $NAME, Your account status is $STATUS. EOF &quot;&quot;&quot; ), ).expand(env=get_account_status())"><pre class="notranslate"><span class="pl-k">with</span> <span class="pl-v">DAG</span>(...) <span class="pl-k">as</span> <span class="pl-s1">dag</span>: <span class="pl-en">@<span class="pl-s1">dag</span>.<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">get_account_status</span>(): <span class="pl-k">return</span> [ { <span class="pl-s">"NAME"</span>: <span class="pl-s">"Wintermute"</span>, <span class="pl-s">"EMAIL"</span>: <span class="pl-s">"[email protected]"</span>, <span class="pl-s">"STATUS"</span>: <span class="pl-s">"active"</span>, }, { <span class="pl-s">"NAME"</span>: <span class="pl-s">"Hojo"</span>, <span class="pl-s">"EMAIL"</span>: <span class="pl-s">"[email protected]"</span>, <span class="pl-s">"STATUS"</span>: <span class="pl-s">"delinquent"</span>, }, ] <span class="pl-v">BashOperator</span>.<span class="pl-en">partial</span>( <span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">"send_email"</span>, <span class="pl-s1">bash_command</span><span class="pl-c1">=</span><span class="pl-en">dedent</span>( <span class="pl-s">"""</span> <span class="pl-s"> cat &lt;&lt;- EOF | tee | mailx -s "your account" $EMAIL</span> <span class="pl-s"> Dear $NAME,</span> <span class="pl-s"> Your account status is $STATUS.</span> <span class="pl-s"> EOF</span> <span class="pl-s"> """</span> ), ).<span class="pl-en">expand</span>(<span class="pl-s1">env</span><span class="pl-c1">=</span><span class="pl-en">get_account_status</span>())</pre></div> <p dir="auto">Notice that in the grid view, it's not obvious which task goes with which user:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5834582/163418431-3180a29d-b9c0-4bbc-9a80-05ad5e4f34e7.png"><img width="1106" alt="Screen Shot 2022-04-14 at 8 56 09 AM" src="https://user-images.githubusercontent.com/5834582/163418431-3180a29d-b9c0-4bbc-9a80-05ad5e4f34e7.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Use case/motivation</h3> <p dir="auto">I'd like to be able to explicitly assign a name to each expanded task, that way I can later go look at the right one. I would like this name to be used (when available) anywhere that the user interacts with the expanded task.</p> <p dir="auto">In cases where the user provides no names, perhaps we can generate some. For instance, this expansion generates four instances.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="BashOperator.partial(task_id=&quot;greet&quot;).expand( bash_command=[&quot;echo hello $USER&quot;, &quot;echo goodbye $USER&quot;], env=[{&quot;USER&quot;: &quot;foo&quot;}, {&quot;USER&quot;: &quot;bar&quot;}], )"><pre class="notranslate"><span class="pl-v">BashOperator</span>.<span class="pl-en">partial</span>(<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">"greet"</span>).<span class="pl-en">expand</span>( <span class="pl-s1">bash_command</span><span class="pl-c1">=</span>[<span class="pl-s">"echo hello $USER"</span>, <span class="pl-s">"echo goodbye $USER"</span>], <span class="pl-s1">env</span><span class="pl-c1">=</span>[{<span class="pl-s">"USER"</span>: <span class="pl-s">"foo"</span>}, {<span class="pl-s">"USER"</span>: <span class="pl-s">"bar"</span>}], )</pre></div> <p dir="auto">The friendliest way would be to use the requested feature name each task:</p> <ul dir="auto"> <li><code class="notranslate">hi_foo</code></li> <li><code class="notranslate">hi_bar</code></li> <li><code class="notranslate">bye_foo</code></li> <li><code class="notranslate">bye_bar</code></li> </ul> <p dir="auto">As it is, the user will see:</p> <ul dir="auto"> <li><code class="notranslate">1</code></li> <li><code class="notranslate">2</code></li> <li><code class="notranslate">3</code></li> <li><code class="notranslate">4</code></li> </ul> <p dir="auto">But if the user doesn't give names, maybe we should generate some names for them:</p> <ul dir="auto"> <li><code class="notranslate">bash_command_1_env_1</code></li> <li><code class="notranslate">bash_command_1_env_2</code></li> <li><code class="notranslate">bash_command_2_env_1</code></li> <li><code class="notranslate">bash_command_2_env_2</code></li> </ul> <p dir="auto">I don't know. I'm creating this issue so we have a place to discuss it.</p> <h3 dir="auto">Related issues</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit a PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">modules/cloud/amazon/ec2_vpc_peer.py</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible --version ansible 2.4.2.0 config file = /home/snobym/work/aws-k8s-kops/ansible.cfg configured module search path = [u'/home/snobym/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/snobym/.local/lib/python2.7/site-packages/ansible executable location = /home/snobym/.local/bin/ansible python version = 2.7.14 (default, Sep 23 2017, 22:06:14) [GCC 7.2.0]"><pre class="notranslate"><code class="notranslate">ansible --version ansible 2.4.2.0 config file = /home/snobym/work/aws-k8s-kops/ansible.cfg configured module search path = [u'/home/snobym/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/snobym/.local/lib/python2.7/site-packages/ansible executable location = /home/snobym/.local/bin/ansible python version = 2.7.14 (default, Sep 23 2017, 22:06:14) [GCC 7.2.0] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-config dump --only-changed ANSIBLE_NOCOWS(/home/snobym/work/aws-k8s-kops/ansible.cfg) = True CACHE_PLUGIN(/home/snobym/work/aws-k8s-kops/ansible.cfg) = jsonfile CACHE_PLUGIN_CONNECTION(/home/snobym/work/aws-k8s-kops/ansible.cfg) = .tmp/ansible_fact_cache CACHE_PLUGIN_TIMEOUT(/home/snobym/work/aws-k8s-kops/ansible.cfg) = 86400 DEFAULT_CALLBACK_PLUGIN_PATH(/home/snobym/work/aws-k8s-kops/ansible.cfg) = [u'/home/snobym/work/aws-k8s-kops/callbacks'] DEFAULT_FORKS(/home/snobym/work/aws-k8s-kops/ansible.cfg) = 20 DEFAULT_HOST_LIST(/home/snobym/work/aws-k8s-kops/ansible.cfg) = [u'/home/snobym/work/aws-k8s-kops/inventory'] HOST_KEY_CHECKING(/home/snobym/work/aws-k8s-kops/ansible.cfg) = False RETRY_FILES_ENABLED(/home/snobym/work/aws-k8s-kops/ansible.cfg) = False"><pre class="notranslate"><code class="notranslate">ansible-config dump --only-changed ANSIBLE_NOCOWS(/home/snobym/work/aws-k8s-kops/ansible.cfg) = True CACHE_PLUGIN(/home/snobym/work/aws-k8s-kops/ansible.cfg) = jsonfile CACHE_PLUGIN_CONNECTION(/home/snobym/work/aws-k8s-kops/ansible.cfg) = .tmp/ansible_fact_cache CACHE_PLUGIN_TIMEOUT(/home/snobym/work/aws-k8s-kops/ansible.cfg) = 86400 DEFAULT_CALLBACK_PLUGIN_PATH(/home/snobym/work/aws-k8s-kops/ansible.cfg) = [u'/home/snobym/work/aws-k8s-kops/callbacks'] DEFAULT_FORKS(/home/snobym/work/aws-k8s-kops/ansible.cfg) = 20 DEFAULT_HOST_LIST(/home/snobym/work/aws-k8s-kops/ansible.cfg) = [u'/home/snobym/work/aws-k8s-kops/inventory'] HOST_KEY_CHECKING(/home/snobym/work/aws-k8s-kops/ansible.cfg) = False RETRY_FILES_ENABLED(/home/snobym/work/aws-k8s-kops/ansible.cfg) = False </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Running on Ubuntu 16.04 on an ec2 instance.</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">I've used the ec2_vpc_peer module to create a peering connection with tags. Just like in the example in the docs. When I run the next command to locally accept the connection the backtrace shows an exception occurred because the module had no tags defined.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# tasks file for vpc-peering - name: &quot;Get vpc ID of the east-prod.k8s.foo.com VPC&quot; ec2_vpc_net_facts: region: &quot;us-east-1&quot; filters: &quot;tag:Name&quot;: east-prod.k8s.foo.com register: vpc_data - set_fact: K8S_VPC_ID: &quot;{{ vpc_data.vpcs[0].id }}&quot; # # Now get the VPC_ID of the Foo Prod VPC # - name: &quot;Get vpc ID of the Foo Prod VPC&quot; ec2_vpc_net_facts: region: &quot;us-east-1&quot; filters: &quot;tag:Name&quot;: Foo Prod register: foo_prod - set_fact: FOO_PROD_VPC_ID: &quot;{{ foo_prod.vpcs[0].id }}&quot; # # Doing some back error checking to ensure our values are correctly defined # - fail: msg=&quot;Variable '{{item}}' is not defined&quot; when: item not in vars with_items: - K8S_VPC_ID - FOO_PROD_VPC_ID - debug: msg: &quot;K8S_VPC_ID is {{ K8S_VPC_ID }} &quot; - debug: msg: &quot;FOO_PROD_VPC_ID is {{ FOO_PROD_VPC_ID }} &quot; - name: Create local Account VPC peering connection ec2_vpc_peer: region: us-east-1 vpc_id: &quot;{{ K8S_VPC_ID }}&quot; peer_vpc_id: &quot;{{ FOO_PROD_VPC_ID }}&quot; state: present tags: Name: prod-east-k8s-to-prod-us-east Project: Kubernetes register: vpc_peer - name: Accept local VPC peering request ec2_vpc_peer: region: us-east-1 peering_id: &quot;{{ vpc_peer.peering_id }}&quot; state: accept register: action_peer "><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> tasks file for vpc-peering</span> - <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>Get vpc ID of the east-prod.k8s.foo.com VPC<span class="pl-pds">"</span></span> <span class="pl-ent">ec2_vpc_net_facts</span>: <span class="pl-ent">region</span>: <span class="pl-s"><span class="pl-pds">"</span>us-east-1<span class="pl-pds">"</span></span> <span class="pl-ent">filters</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-ent">tag:Name</span><span class="pl-pds">"</span></span>: <span class="pl-s">east-prod.k8s.foo.com</span> <span class="pl-ent">register</span>: <span class="pl-s">vpc_data</span> - <span class="pl-ent">set_fact</span>: <span class="pl-ent">K8S_VPC_ID</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vpc_data.vpcs[0].id }}<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span></span> <span class="pl-c"><span class="pl-c">#</span> Now get the VPC_ID of the Foo Prod VPC</span> <span class="pl-c"><span class="pl-c">#</span></span> - <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>Get vpc ID of the Foo Prod VPC<span class="pl-pds">"</span></span> <span class="pl-ent">ec2_vpc_net_facts</span>: <span class="pl-ent">region</span>: <span class="pl-s"><span class="pl-pds">"</span>us-east-1<span class="pl-pds">"</span></span> <span class="pl-ent">filters</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-ent">tag:Name</span><span class="pl-pds">"</span></span>: <span class="pl-s">Foo Prod</span> <span class="pl-ent">register</span>: <span class="pl-s">foo_prod</span> - <span class="pl-ent">set_fact</span>: <span class="pl-ent">FOO_PROD_VPC_ID</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ foo_prod.vpcs[0].id }}<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span></span> <span class="pl-c"><span class="pl-c">#</span> Doing some back error checking to ensure our values are correctly defined</span> <span class="pl-c"><span class="pl-c">#</span></span> - <span class="pl-ent">fail</span>: <span class="pl-s">msg="Variable '{{item}}' is not defined"</span> <span class="pl-ent">when</span>: <span class="pl-s">item not in vars</span> <span class="pl-ent">with_items</span>: - <span class="pl-s">K8S_VPC_ID</span> - <span class="pl-s">FOO_PROD_VPC_ID</span> - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>K8S_VPC_ID is {{ K8S_VPC_ID }} <span class="pl-pds">"</span></span> - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>FOO_PROD_VPC_ID is {{ FOO_PROD_VPC_ID }} <span class="pl-pds">"</span></span> - <span class="pl-ent">name</span>: <span class="pl-s">Create local Account VPC peering connection</span> <span class="pl-ent">ec2_vpc_peer</span>: <span class="pl-ent">region</span>: <span class="pl-s">us-east-1</span> <span class="pl-ent">vpc_id</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ K8S_VPC_ID }}<span class="pl-pds">"</span></span> <span class="pl-ent">peer_vpc_id</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ FOO_PROD_VPC_ID }}<span class="pl-pds">"</span></span> <span class="pl-ent">state</span>: <span class="pl-s">present</span> <span class="pl-ent">tags</span>: <span class="pl-ent">Name</span>: <span class="pl-s">prod-east-k8s-to-prod-us-east</span> <span class="pl-ent">Project</span>: <span class="pl-s">Kubernetes</span> <span class="pl-ent">register</span>: <span class="pl-s">vpc_peer</span> - <span class="pl-ent">name</span>: <span class="pl-s">Accept local VPC peering request</span> <span class="pl-ent">ec2_vpc_peer</span>: <span class="pl-ent">region</span>: <span class="pl-s">us-east-1</span> <span class="pl-ent">peering_id</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vpc_peer.peering_id }}<span class="pl-pds">"</span></span> <span class="pl-ent">state</span>: <span class="pl-s">accept</span> <span class="pl-ent">register</span>: <span class="pl-s">action_peer</span> </pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I expected the peering connection to be accepted, after that no changes should happen.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">It looks on every run whether the peering connection has been accepted or not the tags are deleted then created again, but since in my accept task I don't list any tags the module throws an exception and gives a back trace because there are no tags to create. To work around this I simply duplicate the tags in the accept call. These are the same tags I used in the create call.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [vpc-peering : Accept local VPC peering request] ****************************************************************************************************************************************** task path: /home/snobym/work/aws-k8s-kops/roles/vpc-peering/tasks/main.yml:53 Using module file /home/snobym/.local/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ec2_vpc_peer.py &lt;east-prod&gt; ESTABLISH LOCAL CONNECTION FOR USER: snobym &lt;east-prod&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0' &lt;east-prod&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p &quot;` echo /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577 `&quot; &amp;&amp; echo ansible-tmp-1518528910.29-192160277860577=&quot;` echo /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577 `&quot; ) &amp;&amp; sleep 0' &lt;east-prod&gt; PUT /tmp/tmpZyrTq7 TO /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577/ec2_vpc_peer.py &lt;east-prod&gt; EXEC /bin/sh -c 'chmod u+x /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577/ /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577/ec2_vpc_peer.py &amp;&amp; sleep 0' &lt;east-prod&gt; EXEC /bin/sh -c '/usr/bin/python /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577/ec2_vpc_peer.py; rm -rf &quot;/home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' The full traceback is: File &quot;/tmp/ansible_02oSze/ansible_module_ec2_vpc_peer.py&quot;, line 334, in create_tags client.create_tags(Resources=[pcx_id], Tags=load_tags(module)) File &quot;/home/snobym/.local/lib/python2.7/site-packages/botocore/client.py&quot;, line 317, in _api_call return self._make_api_call(operation_name, kwargs) File &quot;/home/snobym/.local/lib/python2.7/site-packages/botocore/client.py&quot;, line 615, in _make_api_call raise error_class(parsed_response, operation_name) fatal: [east-prod]: FAILED! =&gt; { &quot;changed&quot;: false, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;aws_access_key&quot;: null, &quot;aws_secret_key&quot;: null, &quot;ec2_url&quot;: null, &quot;peer_owner_id&quot;: null, &quot;peer_vpc_id&quot;: null, &quot;peering_id&quot;: &quot;pcx-bf342cd6&quot;, &quot;profile&quot;: null, &quot;region&quot;: &quot;us-east-1&quot;, &quot;security_token&quot;: null, &quot;state&quot;: &quot;accept&quot;, &quot;tags&quot;: null, &quot;validate_certs&quot;: true, &quot;vpc_id&quot;: null } }, &quot;msg&quot;: &quot;An error occurred (InvalidParameterValue) when calling the CreateTags operation: Value ( empty ) for parameter tagSet is invalid. You must specify one or more tags to create&quot; } "><pre class="notranslate"><code class="notranslate">TASK [vpc-peering : Accept local VPC peering request] ****************************************************************************************************************************************** task path: /home/snobym/work/aws-k8s-kops/roles/vpc-peering/tasks/main.yml:53 Using module file /home/snobym/.local/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ec2_vpc_peer.py &lt;east-prod&gt; ESTABLISH LOCAL CONNECTION FOR USER: snobym &lt;east-prod&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0' &lt;east-prod&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p "` echo /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577 `" &amp;&amp; echo ansible-tmp-1518528910.29-192160277860577="` echo /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577 `" ) &amp;&amp; sleep 0' &lt;east-prod&gt; PUT /tmp/tmpZyrTq7 TO /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577/ec2_vpc_peer.py &lt;east-prod&gt; EXEC /bin/sh -c 'chmod u+x /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577/ /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577/ec2_vpc_peer.py &amp;&amp; sleep 0' &lt;east-prod&gt; EXEC /bin/sh -c '/usr/bin/python /home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577/ec2_vpc_peer.py; rm -rf "/home/snobym/.ansible/tmp/ansible-tmp-1518528910.29-192160277860577/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' The full traceback is: File "/tmp/ansible_02oSze/ansible_module_ec2_vpc_peer.py", line 334, in create_tags client.create_tags(Resources=[pcx_id], Tags=load_tags(module)) File "/home/snobym/.local/lib/python2.7/site-packages/botocore/client.py", line 317, in _api_call return self._make_api_call(operation_name, kwargs) File "/home/snobym/.local/lib/python2.7/site-packages/botocore/client.py", line 615, in _make_api_call raise error_class(parsed_response, operation_name) fatal: [east-prod]: FAILED! =&gt; { "changed": false, "invocation": { "module_args": { "aws_access_key": null, "aws_secret_key": null, "ec2_url": null, "peer_owner_id": null, "peer_vpc_id": null, "peering_id": "pcx-bf342cd6", "profile": null, "region": "us-east-1", "security_token": null, "state": "accept", "tags": null, "validate_certs": true, "vpc_id": null } }, "msg": "An error occurred (InvalidParameterValue) when calling the CreateTags operation: Value ( empty ) for parameter tagSet is invalid. You must specify one or more tags to create" } </code></pre></div> <p dir="auto">The module should probably NOT delete and recreate the tags on the accept call.</p>
<p dir="auto">Currently there is no way to pass in variables when using <code class="notranslate">lookup('template', 'mytemplate.j2')</code>.</p> <p dir="auto">For example. Given the following lookup:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lookup('template', 'mytemplate.j2')"><pre class="notranslate"><code class="notranslate">lookup('template', 'mytemplate.j2') </code></pre></div> <p dir="auto">Let's say I want to pass in a var <code class="notranslate">foo</code> which equals <code class="notranslate">bar</code> so that inside the template <code class="notranslate">{{ foo }}</code> outputs <code class="notranslate">{{ bar }}</code></p> <p dir="auto">My scenario is that I'm generating user-data for cloudformation... I have 3 sets of user-data to generate from the same file, where 1 variable changes in that file for each set.</p>
0
<ul dir="auto"> <li><strong>Electron Version:</strong> 12.0.0-beta.21</li> <li><strong>Operating System:</strong> Linux</li> <li><strong>Last Known Working Electron version:</strong> 11.x works well on the same project/code-base and dataset</li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">No crash.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">See attached <a href="https://github.com/electron/electron/files/5922021/dump.txt">dump.txt</a> file.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">There is no simple way to provide minimal repro project but there are <code class="notranslate">session.webRequest.{onBeforeRequest,onBeforeSendHeaders,onHeadersReceived,onErrorOccurred,onCompleted}</code>-like handlers setup in this way: <a href="https://github.com/vladimiry/ElectronMail/blob/48ac271b441a7860bad41c31707316fb9447db36/src/electron-main/web-request/index.ts">https://github.com/vladimiry/ElectronMail/blob/48ac271b441a7860bad41c31707316fb9447db36/src/electron-main/web-request/index.ts</a>.</p> <h3 dir="auto">Additional Information</h3> <p dir="auto">The <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="800133449" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/27603" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/27603/hovercard" href="https://github.com/electron/electron/issues/27603">#27603</a> is a possibly related issue.</p>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong><br> 12.0.0-beta.21</li> <li><strong>Operating System:</strong><br> Windows 10</li> <li><strong>Last Known Working Electron version:</strong><br> 12.0.0-beta.20</li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">No crash.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Crash reported to Sentry using minidump uploader:<br> <a href="https://sentry.io/share/issue/70e843318a304dae9616805c3223a1cc/" rel="nofollow">https://sentry.io/share/issue/70e843318a304dae9616805c3223a1cc/</a></p> <h3 dir="auto">To Reproduce this might be enough</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Use Electron.WebRequest .onBeforeRequest( { urls: [], }, ({ url }, callback) =&gt; { if (url.startsWith('https://test..com')) { callback({ cancel: true }); } else { callback({ cancel: false }); } }, );"><pre class="notranslate"><code class="notranslate">Use Electron.WebRequest .onBeforeRequest( { urls: [], }, ({ url }, callback) =&gt; { if (url.startsWith('https://test..com')) { callback({ cancel: true }); } else { callback({ cancel: false }); } }, ); </code></pre></div>
1
<p dir="auto">In the process of learning how to use ansible with my linode I had pip installed all the necessary libraries. Then I had cloned the ansible repository to have access to the inventory scripts in my local documents folder. When I cloned the main repo I named it <code class="notranslate">ansible-src/</code> just so I'd remember that it was a clone from a read only repo.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python ansible-src/plugins/inventory/linode.py"><pre class="notranslate"><code class="notranslate">python ansible-src/plugins/inventory/linode.py </code></pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" Traceback (most recent call last): File &quot;plugins/inventory/linode.py&quot;, line 87, in &lt;module&gt; from chube import * File &quot;/usr/local/lib/python2.7/site-packages/chube/__init__.py&quot;, line 4, in &lt;module&gt; from .api import api_handler as chube_api_handler File &quot;/usr/local/lib/python2.7/site-packages/chube/api.py&quot;, line 1, in &lt;module&gt; from linode import api as linode_api File &quot;/Users/morgan.craft/Documents/projects/ansible-src/plugins/inventory/linode.py&quot;, line 89, in &lt;module&gt; load_chube_config() NameError: name 'load_chube_config' is not defined"><pre class="notranslate"> Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>plugins/inventory/linode.py<span class="pl-pds">"</span></span>, line 87, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from chube import <span class="pl-k">*</span> File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python2.7/site-packages/chube/__init__.py<span class="pl-pds">"</span></span>, line 4, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from .api import api_handler as chube_api_handler File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python2.7/site-packages/chube/api.py<span class="pl-pds">"</span></span>, line 1, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from linode import api as linode_api File <span class="pl-s"><span class="pl-pds">"</span>/Users/morgan.craft/Documents/projects/ansible-src/plugins/inventory/linode.py<span class="pl-pds">"</span></span>, line 89, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> <span class="pl-en">load_chube_config</span>() NameError: name <span class="pl-s"><span class="pl-pds">'</span>load_chube_config<span class="pl-pds">'</span></span> is not defined</pre></div> <p dir="auto">Took me abit to sort through what was going on, at first I thought pip had exploded on me and trashed my environment. But then I found this section of code in <code class="notranslate">plugins/inventory/linode.py</code></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# chube imports 'yaml', which is also the name of an inventory plugin, # so we remove the plugins dir from sys.path before importing it. old_path = sys.path sys.path = [d for d in sys.path if &quot;ansible/plugins&quot; not in d]"><pre class="notranslate"><span class="pl-c"># chube imports 'yaml', which is also the name of an inventory plugin,</span> <span class="pl-c"># so we remove the plugins dir from sys.path before importing it.</span> <span class="pl-s1">old_path</span> <span class="pl-c1">=</span> <span class="pl-s1">sys</span>.<span class="pl-s1">path</span> <span class="pl-s1">sys</span>.<span class="pl-s1">path</span> <span class="pl-c1">=</span> [<span class="pl-s1">d</span> <span class="pl-k">for</span> <span class="pl-s1">d</span> <span class="pl-c1">in</span> <span class="pl-s1">sys</span>.<span class="pl-s1">path</span> <span class="pl-k">if</span> <span class="pl-s">"ansible/plugins"</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">d</span>]</pre></div> <p dir="auto">Turns out <code class="notranslate">yaml</code> isn't all it blocks, but the linode.py file as well from the sys.path inclusion which causes a weird circular import. This is because of</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sys.path = [d for d in sys.path if &quot;ansible/plugins&quot; not in d]"><pre class="notranslate"><span class="pl-s1">sys</span>.<span class="pl-s1">path</span> <span class="pl-c1">=</span> [<span class="pl-s1">d</span> <span class="pl-k">for</span> <span class="pl-s1">d</span> <span class="pl-c1">in</span> <span class="pl-s1">sys</span>.<span class="pl-s1">path</span> <span class="pl-k">if</span> <span class="pl-s">"ansible/plugins"</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">d</span>]</pre></div> <p dir="auto">I don't think we should have a hard coded file/directory path name. Or if it is the only way then maybe we should propogate an exception if <code class="notranslate">ansible</code> is not the cloned repo name so at least devs know their file-pathing doesn't match.</p> <p dir="auto">Happy to work on the issue and submit a pr, just want feedback on how best to approach.</p>
<p dir="auto">It would be really nice if ansible would parse the playbook YAML<br> before requesting the sudo password.</p> <p dir="auto">I'm just learning YAML, and rely on ansible to tell me I'm wrong. I'm<br> frequently wrong.</p> <p dir="auto">Our company's ansible account has a tedious and annoying sudo<br> password. (It's not security through obscurity, it's security through<br> "I can't even type the damn thing.")</p> <p dir="auto">From a user perspective, this seems like an easy change to make. Any<br> chance your could add this to ansible, even as an option in<br> ansible.cfg or something?</p> <p dir="auto">(filed per mpdehaan's request on mailing list)</p>
0
<ul dir="auto"> <li>[-] 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>[-] 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.2</li> <li>Operating System version: centos7.0</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">Hello,<br> There are two network cards in my machine, IP are 10.x.x.x and 172.x.x.x, zookeeper IP is 172.x.x.x, after services start up, providers path in zookeeper, service ip is 10.x.x.x. and because of all my business servers IP are 172.x.x.x, this service who exported with IP 10.x.x.x could not be invoked by other services.</p> <p dir="auto">I read the source code of Dubbo, it chooses IP from IP list only if one is a valid IP address.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8693336/47011493-ab96d300-d174-11e8-851e-ec1ef341e825.png"><img src="https://user-images.githubusercontent.com/8693336/47011493-ab96d300-d174-11e8-851e-ec1ef341e825.png" alt="image" style="max-width: 100%;"></a><br> IP_PATTERN in this picture, just a regular expression which matches a valid IP address.</p> <p dir="auto">Can we choose the IP first in the same IP segment with zookeeper address instead of a random one? That's guaranteed that servers are reachable to each other at default configure.</p>
<ul dir="auto"> <li>[ x ] 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>[ x ] I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0</li> <li>Operating System version: windows 10</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>当dubbo端口设为-1时, 如何在代码中获取当前dubbo的端口?</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0</li> <li>Operating System version: Linux</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>创建两个项目dubbo生产者项目、消费者项目</li> <li>创建一个自定义异常并继承Exception。<br> <a href="https://github.com/Johnson-Jia/Johnson/blob/master/BaseException.java">https://github.com/Johnson-Jia/Johnson/blob/master/BaseException.java</a><br> <a href="https://github.com/Johnson-Jia/Johnson/blob/master/ErrorMsgException.java">https://github.com/Johnson-Jia/Johnson/blob/master/ErrorMsgException.java</a></li> <li>生产者内抛出一个 ErrorMsgException 异常,dubbo消费者捕获到一个null异常。(序列化问题?)</li> </ol> <p dir="auto">java.lang.reflect.InvocationTargetException: null<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br> at java.lang.reflect.Method.invoke(Method.java:497)<br> at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.invoke(ReferenceAnnotationBeanPostProcessor.java:158)<br> at com.sun.proxy.$Proxy320.searchScopeCourses(Unknown Source)<br> at com.tbc.oim.business.service.v2.course.impl.OpenCourseV2ServiceImpl.listMyCanSelectCourse(OpenCourseV2ServiceImpl.java:192)<br> at com.tbc.oim.business.controller.v2.course.CourseV2Controller.listMyCanSelectCourse(CourseV2Controller.java:75)<br> at com.tbc.oim.business.controller.v2.course.CourseV2Controller$$FastClassBySpringCGLIB$$7077ced9.invoke()<br> at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)<br> at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)<br> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)<br> at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)<br> at com.tbc.base.exceptions.ExceptionHandler.around(ExceptionHandler.java:157)<br> at sun.reflect.GeneratedMethodAccessor629.invoke(Unknown Source)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br> at java.lang.reflect.Method.invoke(Method.java:497)<br> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)<br> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)<br> at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)<br> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)<br> at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)<br> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)<br> at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)<br> at com.tbc.oim.business.controller.v2.course.CourseV2Controller$$EnhancerBySpringCGLIB$$d0863abc.listMyCanSelectCourse()<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br> at java.lang.reflect.Method.invoke(Method.java:497)<br> at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)<br> at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)<br> at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)<br> at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)<br> at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)<br> at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)<br> at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)<br> at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)<br> at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:981)<br> at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:884)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)<br> at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:858)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)<br> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)<br> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)<br> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br> at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)<br> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br> at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)<br> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)<br> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)<br> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)<br> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)<br> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)<br> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)<br> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)<br> at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)<br> at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)<br> at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)<br> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)<br> at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)<br> at java.lang.Thread.run(Thread.java:745)<br> Caused by: com.tbc.base.exceptions.base.ErrorMsgException: 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/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">I am using the new dubbo version 2.7.4, and I know the bugfix of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="334154640" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/1968" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/1968/hovercard" href="https://github.com/apache/dubbo/issues/1968">#1968</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="474347720" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4694" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4694/hovercard" href="https://github.com/apache/dubbo/issues/4694">#4694</a> has been merge into 2.7.4 version, but I still met this problem.</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.4</li> <li>Operating System version: CentOS</li> <li>Java version: JDK 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>start the consumer and provider services.</li> <li>tcpkill the connection from consumer to provider.</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">Fast rebuild new connection when the connection is broken.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">The connection is rebuilt after more than one minute.</p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-divide-one-number-by-another-with-javascript" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-divide-one-number-by-another-with-javascript</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">It does not go to the next waypoint after run the code succefully.</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-comments-to-clarify-code" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-use-comments-to-clarify-code</a> has an issue.</p> <p dir="auto">When following the directions all of the code gets commented automatically.</p> <ol dir="auto"> <li>go to the top of the line and create a space for entering the comment</li> <li>In the new space, start typing in &lt;!--</li> <li>Bug: all of the code gets commented automatically so that if you pasted in the comment afterwards it doesn't work.</li> <li>to complete the exercise the user will have to go to the bottom of the code and erase --&gt; then go back to the top and paste in the comment. (I don't believe this is what was intended to happen).</li> </ol>
0
<p dir="auto">This is a bug. I've spent a lot of time trying to localize the bug and have ended with the following minimal example:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {useState} from React; function App() { const [imageURL, setImageURL] = useState('https://picsum.photos/1600/1200'); const [meaninglessValue, setMeaninglessValue] = useState(0); return ( &lt;div&gt; &lt;p&gt; &lt;button onClick={() =&gt; setImageURL('https://picsum.photos/1600/1200')}&gt;Set picture 1&lt;/button&gt; &lt;button onClick={() =&gt; setImageURL('https://picsum.photos/1500/1300')}&gt;Set picture 2&lt;/button&gt; &lt;button onClick={() =&gt; setMeaninglessValue(meaninglessValue + 1)}&gt;Change another image prop&lt;/button&gt; &lt;/p&gt; &lt;DelayedImage src={imageURL} unused={meaninglessValue} /&gt; &lt;/div&gt; ); } function DelayedImage({src}) { const [previousSrc, setPreviousSrc] = useState(); const [isLoaded, setIsLoaded] = useState(false); console.log('Image is rendered with', {previousSrc, src, isLoaded}); if (src !== previousSrc) { setPreviousSrc(src); setIsLoaded(false); console.log('Image unloaded'); } const handleLoad = () =&gt; { setIsLoaded(true); console.log('Image loaded'); }; return ( &lt;img src={src} alt=&quot;&quot; onLoad={handleLoad} onError={handleLoad} style={{ maxWidth: '100%', maxHeight: '80vh', opacity: isLoaded ? 1 : 0.2 }} /&gt; ); } ReactDOM.render(&lt;App /&gt;, document.getElementById('root'));"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">useState</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-v">React</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-v">App</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">imageURL</span><span class="pl-kos">,</span> <span class="pl-s1">setImageURL</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-s">'https://picsum.photos/1600/1200'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">meaninglessValue</span><span class="pl-kos">,</span> <span class="pl-s1">setMeaninglessValue</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</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-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">p</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-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">setImageURL</span><span class="pl-kos">(</span><span class="pl-s">'https://picsum.photos/1600/1200'</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>Set picture 1<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</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-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">setImageURL</span><span class="pl-kos">(</span><span class="pl-s">'https://picsum.photos/1500/1300'</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>Set picture 2<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</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-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">setMeaninglessValue</span><span class="pl-kos">(</span><span class="pl-s1">meaninglessValue</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-c1">&gt;</span>Change another image prop<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">DelayedImage</span> <span class="pl-c1">src</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">imageURL</span><span class="pl-kos">}</span> <span class="pl-c1">unused</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">meaninglessValue</span><span class="pl-kos">}</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">function</span> <span class="pl-v">DelayedImage</span><span class="pl-kos">(</span><span class="pl-kos">{</span>src<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">previousSrc</span><span class="pl-kos">,</span> <span class="pl-s1">setPreviousSrc</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">isLoaded</span><span class="pl-kos">,</span> <span class="pl-s1">setIsLoaded</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Image is rendered with'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>previousSrc<span class="pl-kos">,</span> src<span class="pl-kos">,</span> isLoaded<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">src</span> <span class="pl-c1">!==</span> <span class="pl-s1">previousSrc</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">setPreviousSrc</span><span class="pl-kos">(</span><span class="pl-s1">src</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">setIsLoaded</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Image unloaded'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-en">handleLoad</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">setIsLoaded</span><span class="pl-kos">(</span><span class="pl-c1">true</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">'Image loaded'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">src</span><span class="pl-kos">}</span> <span class="pl-c1">alt</span><span class="pl-c1">=</span><span class="pl-s">""</span> <span class="pl-c1">onLoad</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-en">handleLoad</span><span class="pl-kos">}</span> <span class="pl-c1">onError</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-en">handleLoad</span><span class="pl-kos">}</span> <span class="pl-c1">style</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span> <span class="pl-c1">maxWidth</span>: <span class="pl-s">'100%'</span><span class="pl-kos">,</span> <span class="pl-c1">maxHeight</span>: <span class="pl-s">'80vh'</span><span class="pl-kos">,</span> <span class="pl-c1">opacity</span>: <span class="pl-s1">isLoaded</span> ? <span class="pl-c1">1</span> : <span class="pl-c1">0.2</span> <span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">App</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">'root'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><a href="https://codepen.io/TheFinesse/pen/qgGBqj?editors=0010" rel="nofollow">Live demo</a></p> <p dir="auto"><strong>Steps to reproduce:</strong></p> <ol dir="auto"> <li>Open the demo</li> <li>Wait until the image is loaded (becomes opaque)</li> <li>Click the "Set picture 2" button</li> <li>Wait a bit (while the image is loading)</li> </ol> <p dir="auto"><strong>Expected result:</strong></p> <p dir="auto">The second image gets opaque after a few seconds (the <code class="notranslate">DelayedImage</code> component gets rerendered with the new state).</p> <p dir="auto"><strong>Actual result:</strong></p> <p dir="auto">The image stays translucent despite the new state that should make it opaque.</p> <p dir="auto">I reproduced the bug with React 16.8.2 in Safari 12.0.3 and Chrome 72.0.3626.109 on macOS 10.14.3 (didn't try other versions).</p> <h3 dir="auto">More details about the example</h3> <p dir="auto">The <code class="notranslate">DelayedImage</code> component is an image that gets translucent while being loaded. The information about whether the image is loading or loaded is stored in a state using the <code class="notranslate">useState</code> hook. The other state hook is used to check whether the image URL has changed (like in <a href="https://reactjs.org/docs/hooks-faq.html#how-do-i-implement-getderivedstatefromprops" rel="nofollow">the FAQ example</a>).</p> <p dir="auto">When the component is rendered for the first time, it works as expected: it is translucent while the image is loading and opaque after the image is loaded. When the <code class="notranslate">src</code> prop is changed (by clicking the "Set picture 2" button), the image gets translucent but doesn't get opaque when it's loaded.</p> <p dir="auto">According to the console messages, the correct value (<code class="notranslate">isLoaded === true</code>) is set to the state but React doesn't rerenders the component. React rerenders the component with the correct state when any other <code class="notranslate">DelayedImage</code> props is changed (by clicking the last button or changing a prop using Redux Dev Tools).</p>
<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><br> When updating the state from <code class="notranslate">useState</code> doesn't actually update the component. In this case it is being updated on an event handler. I used <code class="notranslate">console.log</code> to verify that it is being called yet no update in the component is being dispatched. It's like React doesn't register that it wants to update the state.</p> <p dir="auto">Might want to throw out that I'm new with this React Hooks and it could be something that I'm missing.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React.</strong><br> I've setup a simple example showcasing my issue, I also included an implementation with the old class syntax and when doing it with classes, it works fine. <a href="https://codesandbox.io/s/mjz3o5xnly" rel="nofollow">Here is the link to the CodeSandbox</a></p> <p dir="auto">This example is taken from my project, I'm fading out and translating upwards so I want to keep the text until the animation is done.</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> The component should update with the new registered state when trying to update state in a event handler.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br> React v16.8<br> React DOM v16.8</p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:580:1: in hdrs attribute of cc_library rule //:aten_headers: Artifact 'bazel-out/k8-fastbuild/bin/aten/src/ATen/Config.h' is duplicated (through '//:aten/src/ATen/Config.h' and '//:aten_src_AT en_config'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implemen tation WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/VariableType.h' is duplicated (through '//:torch/csrc/autograd /generated/VariableType.h' and '//:cpp_generated_code'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implementation WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/RegistrationDeclarations.h' is duplicated (through '//:torch/c src/autograd/generated/RegistrationDeclarations.h' and '//:cpp_generated_code'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implementation WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/Functions.h' is duplicated (through '//:torch/csrc/autograd/ge nerated/Functions.h' and '//:cpp_generated_code'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implementation WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/variable_factories.h' is duplicated (through '//:torch/csrc/au tograd/generated/variable_factories.h' and '//:cpp_generated_code'). Since this rule was created by the macro 'cc_library' , the error might have been caused by the macro implementation"><pre class="notranslate"><code class="notranslate">WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:580:1: in hdrs attribute of cc_library rule //:aten_headers: Artifact 'bazel-out/k8-fastbuild/bin/aten/src/ATen/Config.h' is duplicated (through '//:aten/src/ATen/Config.h' and '//:aten_src_AT en_config'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implemen tation WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/VariableType.h' is duplicated (through '//:torch/csrc/autograd /generated/VariableType.h' and '//:cpp_generated_code'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implementation WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/RegistrationDeclarations.h' is duplicated (through '//:torch/c src/autograd/generated/RegistrationDeclarations.h' and '//:cpp_generated_code'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implementation WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/Functions.h' is duplicated (through '//:torch/csrc/autograd/ge nerated/Functions.h' and '//:cpp_generated_code'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implementation WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/variable_factories.h' is duplicated (through '//:torch/csrc/au tograd/generated/variable_factories.h' and '//:cpp_generated_code'). Since this rule was created by the macro 'cc_library' , the error might have been caused by the macro implementation </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malfet/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malfet">@malfet</a></p>
<p dir="auto">One thing which is so valuable in some problems, is that we are able to apply the softmax operation along a predefined dimension. <a href="https://www.tensorflow.org/api_docs/python/tf/nn/softmax" rel="nofollow">Tesnorflow</a> has this parameter in definition of the softmax layer but pytorch has not. Good to have this feature in next release of pytorch!</p>
0
<ul dir="auto"> <li>Electron Version: 2.0.2</li> <li>Operating System (Platform and Version): Windows 10 (17134)</li> <li>Last known working Electron version: N/A</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> When maximizing a frameless window, then unmaximizing and then maximizing again, there should not be a white bar atop the window.</p> <p dir="auto"><strong>Actual behavior</strong><br> The first maximize works. Removing maximize also works. Immediately maximizing again (without resizing the window) leaves a white bar several pixels high atop the browserwindow.</p> <p dir="auto"><strong>To Reproduce</strong><br> Use the latest Discord app (or various others like Spotify), follow the workflow above to reproduce this very easily.</p> <p dir="auto">Further discussion here: <a href="https://www.reddit.com/r/Windows10/comments/8h3eqo/windows_1803_white_bar_across_top_of_maximized/" rel="nofollow">https://www.reddit.com/r/Windows10/comments/8h3eqo/windows_1803_white_bar_across_top_of_maximized/</a></p> <p dir="auto">See a video of the behavior in action: <a href="url">http://recordit.co/3vTX9jpuVK</a></p>
<ul dir="auto"> <li>Electron Version: 2.0.1</li> <li>Operating System (Platform and Version): Windows10 1803</li> <li>Last known working Electron version: 2.0.1</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> Maximized normal and restore normal when i click button in no frame window</p> <p dir="auto"><strong>Actual behavior</strong><br> The first click is normal, but on the second click, there is a white edge on the window, and the window is also embedded under the taskbar.</p> <p dir="auto"><strong>To Reproduce</strong></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/muxiaozi/electron-quick-start.git $ cd electron-quick-start $ npm install $ npm start || electron ."><pre class="notranslate">$ git clone https://github.com/muxiaozi/electron-quick-start.git $ <span class="pl-c1">cd</span> electron-quick-start $ npm install $ npm start <span class="pl-k">||</span> electron <span class="pl-c1">.</span></pre></div> <p dir="auto"><strong>Screenshots</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18480599/40154254-04d8592a-59c0-11e8-8864-acb12c1d26a7.png"><img src="https://user-images.githubusercontent.com/18480599/40154254-04d8592a-59c0-11e8-8864-acb12c1d26a7.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Additional Information</strong><br> (┬_┬)</p>
1
<p dir="auto">I wrote my fairly simple flutter app and was testing in debug mode in my device. However when I try to relaunch the app again from recent apps of my device the app restarts, no state is saved for the app(even if I relaunch after few seconds).</p>
<h2 dir="auto">What is instance state, and why it exists</h2> <p dir="auto">On Android, an <a href="https://developer.android.com/reference/android/app/Activity.html" rel="nofollow">Activity</a> can be killed at any time by the system. This happens usually when Android needs memory when your Activity is not in the foreground, or because of a non-handled configuration change, such as a locale change.<br> To avoid the user having to restart what he did from scratch when Android killed the Activity, the system calls <code class="notranslate">onSaveInstanceState(…)</code> when the Activity is paused, where the app is supposed to save it's data in a <a href="https://developer.android.com/reference/android/os/Bundle.html" rel="nofollow"><code class="notranslate">Bundle</code></a>, and passes the saved bundle in both <code class="notranslate">onCreate(…)</code> and <code class="notranslate">onRestoreInstanceState(…)</code> when the task is resumed if the activity has been killed by the system.</p> <h2 dir="auto">The issue about it in flutter</h2> <p dir="auto">In the flutter apps I tried (Flutter Gallery, and the base project with the FAB tap counter), if I open enough apps to make Android kill the flutter app's Activity, all the state is lost when I come back to the flutter activity (while not having remove the task from recents).</p> <h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Install <a href="https://play.google.com/store/apps/details?id=io.flutter.gallery&amp;hl=en" rel="nofollow">Flutter Gallery</a></li> <li>Open the device's settings, and in developer options, switch "Don't keep activities" on. (see the screenshot)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/638bbb860d55c8bf2e17350342b1165037242d7e361f24e625ea0e0f7318a364/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f43773671646866575141414b6f5f4a2e6a70673a736d616c6c"><img src="https://camo.githubusercontent.com/638bbb860d55c8bf2e17350342b1165037242d7e361f24e625ea0e0f7318a364/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f43773671646866575141414b6f5f4a2e6a70673a736d616c6c" alt="dev_option" data-canonical-src="https://pbs.twimg.com/media/Cw6qdhfWQAAKo_J.jpg:small" style="max-width: 100%;"></a><br> This will allow to simulate when Android kills Activities because it lacks memory and you're not in the foreground.</li> <li>Open the Flutter Gallery app and go anywhere other than the main screen.</li> <li>Go to the launcher by pressing the device's home button.</li> <li>Press the overview button and return to Flutter Gallery. Here's the bug.</li> </ol> <p dir="auto"><strong>What's expected:</strong> The app is in the same state that where we left off, with untouched UI.<br> <strong>What happens:</strong> The activity is restarted from scratch, losing all the UI state, even really really long forms.</p>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">Bug</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">When using AggressiveSplittingPlugin, 2 problems. Firstly it doesn't work unless you also include "CommonsChunkPlugin", as this then has the bootstrap code, (webpackJsonp etc). Also if not using "CommonsChunkPlugin" duplicates are created. eg. If say I used PouchDB twice in 2 entry points I get 2 350k files,..</p> <p dir="auto">But the biggest problem, if you have more than 1 entry point using Watch mode, first compile is fine, successive compiles give errors like -&gt;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in chunk 1 [entry] 8a7cd0cd2cc5f21ec12a.js Conflict: Multiple assets emit to the same filename 8a7cd0cd2cc5f21ec12a.js ERROR in chunk 3 [initial] 93a8d32df50e5f918ebe.js Conflict: Multiple assets emit to the same filename 93a8d32df50e5f918ebe.js etc. "><pre class="notranslate"><code class="notranslate">ERROR in chunk 1 [entry] 8a7cd0cd2cc5f21ec12a.js Conflict: Multiple assets emit to the same filename 8a7cd0cd2cc5f21ec12a.js ERROR in chunk 3 [initial] 93a8d32df50e5f918ebe.js Conflict: Multiple assets emit to the same filename 93a8d32df50e5f918ebe.js etc. </code></pre></div> <p dir="auto">Also worth noting, on these successive compiles, it again then duplicates files, eg. It shows 2 350k files again, like when not using "CommonsChunkPlugin".</p> <p dir="auto">A temporary solution while developing in watch mode only have 1 entry point, and only work on this. Once you are happy re-include all entry points and do a full compile again.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">Create a project with 2 entry points, start compile in watch mode.<br> Now modify a file to cause a recompile.</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">It works like the first compile, and doesn't error.</p>
<p dir="auto">been battling with this error for a day now, really putting me off trying to upgrade to webpack 2 :)</p> <p dir="auto">webpack 1.x runs without any issue. webpack 2.x runs, but only if i don't use any loaders</p> <p dir="auto">As soon as a loader is added, i get the <code class="notranslate">Segmentation Fault: 11</code> error.</p> <p dir="auto">tried deleting &amp; reinstalling node_modules.<br> tried reinstalling node (running node 4.2.2, npm v2.15.0).<br> tried deleting &amp; reinstalling global node_modules<br> tried reinstalling global webpack modules<br> tried forcing version of fsevents (from <a href="https://github.com/sass/node-sass/issues/1107" data-hovercard-type="issue" data-hovercard-url="/sass/node-sass/issues/1107/hovercard">this post</a>). Cannot complete install.</p> <p dir="auto">the loaders i am trying to get running are for typescript (tried both ts-loader and awesome-typescript-loader)</p> <p dir="auto">I see typescript compilation has been working in the past from <a href="http://www.jbrantly.com/es6-modules-with-typescript-and-webpack/" rel="nofollow">this blog post</a>, so i know it at least works for someone</p> <p dir="auto">should webpack 2.x be able to run with node 4.4.x without this error? Anyone else have it working with typescript?</p> <p dir="auto">running OSX 10.11.1</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">yum</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">CentOS/RHEL Linux</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Currently the <code class="notranslate">yum</code> module has no functionality for handling checksums (according to <a href="https://docs.ansible.com/ansible/latest/yum_module.html" rel="nofollow">https://docs.ansible.com/ansible/latest/yum_module.html</a>). Thus, if you want to check that a downloaded RPM has the expected checksum you need to break it into a <code class="notranslate">get_url</code> and then a <code class="notranslate">yum</code> to install from the downloaded artifact</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Currently:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Get RPM get_url: url: https://centos7.iuscommunity.org/ius-release.rpm checksum: &quot;md5:insertmd5sumhere&quot; dest: /tmp/ius-release.rpm - name: Install downloaded rpm yum: name: /tmp/ius-release.rpm state: present"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Get RPM</span> <span class="pl-ent">get_url</span>: <span class="pl-ent">url</span>: <span class="pl-s">https://centos7.iuscommunity.org/ius-release.rpm</span> <span class="pl-ent">checksum</span>: <span class="pl-s"><span class="pl-pds">"</span>md5:insertmd5sumhere<span class="pl-pds">"</span></span> <span class="pl-ent">dest</span>: <span class="pl-s">/tmp/ius-release.rpm</span> - <span class="pl-ent">name</span>: <span class="pl-s">Install downloaded rpm</span> <span class="pl-ent">yum</span>: <span class="pl-ent">name</span>: <span class="pl-s">/tmp/ius-release.rpm</span> <span class="pl-ent">state</span>: <span class="pl-s">present</span></pre></div> <p dir="auto">Proposed:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: get and install RPM yum: url: https://centos7.iuscommunity.org/ius-release.rpm checksum: &quot;md5:insertmd5sumhere&quot; state: present"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">get and install RPM</span> <span class="pl-ent">yum</span>: <span class="pl-ent">url</span>: <span class="pl-s">https://centos7.iuscommunity.org/ius-release.rpm</span> <span class="pl-ent">checksum</span>: <span class="pl-s"><span class="pl-pds">"</span>md5:insertmd5sumhere<span class="pl-pds">"</span></span> <span class="pl-ent">state</span>: <span class="pl-s">present</span></pre></div>
<h5 dir="auto">SUMMARY</h5> <p dir="auto">The module unarchive should support the parameter "checksum" the same way the get_uri module provides it (<a href="https://docs.ansible.com/ansible/latest/modules/get_url_module.html#parameter-checksum" rel="nofollow">https://docs.ansible.com/ansible/latest/modules/get_url_module.html#parameter-checksum</a>)</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">unarchive.py</p> <h5 dir="auto">ADDITIONAL INFORMATION</h5> <p dir="auto">could provide a PR if desired</p>
1
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/basic-javascript/quoting-strings-with-single-quotes" rel="nofollow">quoting-strings-with-single-quotes</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" var myStr = '&lt;a href=&quot;http://www.example.com&quot; target=&quot;_blank&quot;&gt;Link&lt;/a&gt;'; "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myStr</span> <span class="pl-c1">=</span> <span class="pl-s">'&lt;a href="http://www.example.com" target="_blank"&gt;Link&lt;/a&gt;'</span><span class="pl-kos">;</span> </pre></div> <blockquote> <p dir="auto">You should have two single quotes ' and four double quotes "</p> </blockquote> <p dir="auto">Am I just counting this wrong, or..?</p>
<p dir="auto">On the current staging, two challenges ("Escaping Literal Quotes in Strings" and "Quoting Strings with Single Quotes") do not pass all tests with standard solution code.</p> <p dir="auto">Namely, tests asserting regex match lengths for non-escaped double quotes are failing:<br> <code class="notranslate">code.match(/[^\\\\]\"/g).length === 2</code> in the former challenge and<br> <code class="notranslate">code.match(/\"/g).length === 4</code> in the latter.</p> <p dir="auto">(Note: each of these is only one half of their respective test, and it might be beneficial in this case to split each test into two parts so users know where to look for their mistake instead of counting every quotation mark, as well as speeding up debugging if something breaks the regex again later on.)</p>
1
<p dir="auto">Although I set <code class="notranslate">cursor: pointer</code> to all tab buttons, the top area where titlebar was located still show default cursor.</p> <p dir="auto">Please watch the video.<br> <a href="https://www.youtube.com/watch?v=bTCijr-KE3Q&amp;feature=youtu.be" rel="nofollow">https://www.youtube.com/watch?v=bTCijr-KE3Q&amp;feature=youtu.be</a></p> <blockquote> <p dir="auto">Same condition of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="127338152" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/4151" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/4151/hovercard" href="https://github.com/electron/electron/issues/4151">#4151</a>.</p> </blockquote>
<p dir="auto">If this option is set, you can't drag/drop elements that are located in the top of the window (in the region where window's toolbar is placed). Even with <code class="notranslate">-webkit-app-region: drag</code>, dragging is not performed correctly.</p> <p dir="auto">The element which being dragged is native <code class="notranslate">input[type="range"]</code><br> Here is the preview:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2175645/10311824/0f1bebae-6c51-11e5-9194-07cecebfbab3.gif"><img src="https://cloud.githubusercontent.com/assets/2175645/10311824/0f1bebae-6c51-11e5-9194-07cecebfbab3.gif" alt="Preview" data-animated-image="" style="max-width: 100%;"></a></p>
1
<blockquote> <p dir="auto">Issue originally made by Loren Sanz (techmandu)</p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> ~6 - see shrinkwraps for specifics</li> <li><strong>Node version:</strong> v0.12.13</li> <li><strong>npm version:</strong> 2.15.1</li> </ul> <h3 dir="auto">Options</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="plugin - es2015 see https://github.com/mrsanz/samplenodemodule for exact options"><pre class="notranslate"><code class="notranslate">plugin - es2015 see https://github.com/mrsanz/samplenodemodule for exact options </code></pre></div> <h3 dir="auto">Input code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="https://github.com/mrsanz/samplenodemodule"><pre class="notranslate">https:<span class="pl-c">//github.com/mrsanz/samplenodemodule</span><span class="pl-kos"></span></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">When you run the branch oldDeps you'll see that the transpiled code is at 100% code coverage. When updating to the latest babel, code coverage drops for branches.</p>
<p dir="auto">As per <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="86859373" data-permission-text="Title is private" data-url="https://github.com/nlf/lab-babel/issues/4" data-hovercard-type="pull_request" data-hovercard-url="/nlf/lab-babel/pull/4/hovercard?comment_id=123840734&amp;comment_type=issue_comment" href="https://github.com/nlf/lab-babel/pull/4#issuecomment-123840734">nlf/lab-babel#4 (comment)</a></p> <p dir="auto">The auxiliaryComment before/after are working awesomely but they aren't applied to the <code class="notranslate">_classCallCheck</code> method call in a class constructor. If they were applied to that line, lab would be able to report coverage correctly.</p> <p dir="auto">Thanks!</p> <p dir="auto">EDIT by hzoo: also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175603675" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/4450" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/4450/hovercard" href="https://github.com/babel/babel/issues/4450">#4450</a> + <code class="notranslate">_possibleConstructorReturn</code></p>
1
<p dir="auto">The <a href="https://github.com/symfony/Translation/blob/master/Dumper/FileDumper.php#L39:L43">FileDumper</a> automatically creates a backup of a file (filename.yml~).</p> <p dir="auto">Why is this the default behavior? It should be an option in my opinion.</p>
<p dir="auto">I'm updated to commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/06c3222d44cc8ac936f3bc293e9caa200dd7f769/hovercard" href="https://github.com/symfony/symfony/commit/06c3222d44cc8ac936f3bc293e9caa200dd7f769"><tt>06c3222</tt></a></p> <p dir="auto">When validating a form using choice validation, following exception arises:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FatalErrorException: Error: Cannot call constructor in /my/project/Symfony/vendor/symfony/symfony/src/Symfony/Component/Validator/Constraints/ChoiceValidator.php line 31"><pre class="notranslate"><code class="notranslate">FatalErrorException: Error: Cannot call constructor in /my/project/Symfony/vendor/symfony/symfony/src/Symfony/Component/Validator/Constraints/ChoiceValidator.php line 31 </code></pre></div> <p dir="auto">Everything worked ok before updating.</p> <p dir="auto">Thanks!</p>
0
<p dir="auto"><strong>Synopsis</strong><br> The following snippet of code does not work for it's intended challenge under certain browsers.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style&gt; body{ background-color: black; } &lt;/style&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-ent">body</span>{ <span class="pl-c1">background-color</span><span class="pl-kos">:</span> black; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto"><em><strong>Challenge</strong></em>: <a href="http://www.freecodecamp.com/challenges/waypoint-style-the-html-body-element?solution=%3Cstyle%3E%0A%20%20body%7B%0A%20%20%20%20background-color%3A%20black%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A" rel="nofollow">Waypoint: Style the HTML Body Element</a></p> <p dir="auto">Browsers Effected: Firefox (42.0), Edge (20.10240.16384.0)</p> <p dir="auto">Confirmed Working (non-issue) in Google Chrome (ver unknown) by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/h4r1m4u/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/h4r1m4u">@h4r1m4u</a> on FreeCodeCamp/Help (Gitter).</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-hex-code-for-specific-colors?solution=%3Cstyle%3E%0A%20%20body%20%7B%0A%20%20%20%20background-color%3A%20%23000000%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A" rel="nofollow">Waypoint: Use Hex Code for Specific Colors</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My answer is correct but wrongly flagged as erroneous.<br> 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; body { background-color: #000000; } &lt;/style&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-ent">body</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>000000</span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div>
1
<p dir="auto">Using Babel v6.0.2 with the following simple file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export function myfunc(first, second){ return first * second; }"><pre class="notranslate"><code class="notranslate">export function myfunc(first, second){ return first * second; } </code></pre></div> <p dir="auto">and a .babelrc with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;plugins&quot;: [&quot;transform-es2015-modules-systemjs&quot;] }"><pre class="notranslate"><code class="notranslate">{ "plugins": ["transform-es2015-modules-systemjs"] } </code></pre></div> <p dir="auto">fails with the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: example.js: We found a path that isn't a NodePath instance"><pre class="notranslate"><code class="notranslate">Error: example.js: We found a path that isn't a NodePath instance </code></pre></div> <p dir="auto">For comparison, changing babelrc to use "transform-es2015-modules-commonjs" works correctly outputting the expected transformation, so it looks like this is specific to the new systemjs transformer.</p> <p dir="auto">--philip</p>
<p dir="auto">I have a problem when I use my globally-installed version of babel to compile a UMD module.<br> Here's my package.json:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;scripts&quot;: { &quot;build&quot;: &quot;babel src --out-dir dist&quot;, &quot;build-fail&quot;: &quot;~/.nvm/versions/node/v5.0.0/bin/babel src --out-dir dist&quot; }, &quot;devDependencies&quot;: { &quot;babel-cli&quot;: &quot;6.0.2&quot;, &quot;babel-plugin-transform-es2015-modules-umd&quot;: &quot;6.0.2&quot; }, &quot;babel&quot;: { &quot;plugins&quot;: [&quot;transform-es2015-modules-umd&quot;] } }"><pre class="notranslate"><code class="notranslate">{ "scripts": { "build": "babel src --out-dir dist", "build-fail": "~/.nvm/versions/node/v5.0.0/bin/babel src --out-dir dist" }, "devDependencies": { "babel-cli": "6.0.2", "babel-plugin-transform-es2015-modules-umd": "6.0.2" }, "babel": { "plugins": ["transform-es2015-modules-umd"] } } </code></pre></div> <p dir="auto">My <code class="notranslate">src</code> consists of a single file <code class="notranslate">foo.js</code> with the content:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const x = 1"><pre class="notranslate"><code class="notranslate">const x = 1 </code></pre></div> <p dir="auto">(The problem does not happen for a completely empty file.)</p> <p dir="auto">When I run <code class="notranslate">npm run build-fail</code>, this happens:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; @ build-fail /home/andy/babel-bug &gt; ~/.nvm/versions/node/v5.0.0/bin/babel src --out-dir dist Error: src/foo.js: We found a path that isn't a NodePath instance at Function.get (/home/andy/babel-bug/node_modules/babel-traverse/lib/path/index.js:103:13) at TraversalContext.create (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:73:30) at TraversalContext.visitMultiple (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:102:25) at TraversalContext.visit (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:193:19) at Function.traverse.node (/home/andy/babel-bug/node_modules/babel-traverse/lib/index.js:139:17) at NodePath.visit (/home/andy/babel-bug/node_modules/babel-traverse/lib/path/context.js:106:22) at TraversalContext.visitQueue (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:151:16) at TraversalContext.visitQueue (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:157:21) at TraversalContext.visitMultiple (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:106:17) at TraversalContext.visit (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:193:19)"><pre class="notranslate"><code class="notranslate">&gt; @ build-fail /home/andy/babel-bug &gt; ~/.nvm/versions/node/v5.0.0/bin/babel src --out-dir dist Error: src/foo.js: We found a path that isn't a NodePath instance at Function.get (/home/andy/babel-bug/node_modules/babel-traverse/lib/path/index.js:103:13) at TraversalContext.create (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:73:30) at TraversalContext.visitMultiple (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:102:25) at TraversalContext.visit (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:193:19) at Function.traverse.node (/home/andy/babel-bug/node_modules/babel-traverse/lib/index.js:139:17) at NodePath.visit (/home/andy/babel-bug/node_modules/babel-traverse/lib/path/context.js:106:22) at TraversalContext.visitQueue (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:151:16) at TraversalContext.visitQueue (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:157:21) at TraversalContext.visitMultiple (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:106:17) at TraversalContext.visit (/home/andy/babel-bug/node_modules/babel-traverse/lib/context.js:193:19) </code></pre></div> <p dir="auto">When I run <code class="notranslate">npm run build</code>, it works just fine.</p> <p dir="auto">My <code class="notranslate">babel --version</code> is <code class="notranslate">6.0.2 (babel-core 6.0.2)</code> -- both globally and within my package. <code class="notranslate">which babel</code> is <code class="notranslate">/home/andy/.nvm/versions/node/v5.0.0/bin/babel</code>.</p>
1
<p dir="auto">We're currently sitting at 1,809 open issues, a number which hasn't really ever been useful to think about. The issue tracker seems to have three kinds of bugs:</p> <ul dir="auto"> <li>Questions, e.g. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="285529479" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22625" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/22625/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22625">#22625</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="284231539" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22474" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/22474/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22474">#22474</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="280880873" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22093" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/22093/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22093">#22093</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="279776231" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22005" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/22005/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22005">#22005</a></li> <li>"Meta" bugs, e.g. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="284241073" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22475" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/22475/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22475">#22475</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="282449316" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22221" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/22221/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22221">#22221</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="281913984" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22172" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/22172/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22172">#22172</a></li> <li>Specific problems (almost all of the rest)</li> </ul> <p dir="auto">As far as I can tell, no one is taking specific action on anything here. The oldest bugs are years old.</p> <p dir="auto">Feedback we've heard from contributors is that it's hard to "listen" for discussion or bugs related to .d.ts files they've worked on. And as we can see from the issue tracker, people who don't know how to contribute fixes aren't really getting results from filing issues on the issue tracker.</p> <p dir="auto">What would a <em>useful</em> DefinitelyTyped issue tracker look like?</p>
<ul dir="auto"> <li>[ X ] I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li> <li>[ X ] I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li>[ X ] I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li>[ X ] <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/samuelneff/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/samuelneff">@samuelneff</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/CodeAnimal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/CodeAnimal">@CodeAnimal</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drinchev/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drinchev">@drinchev</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/babolivier/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/babolivier">@babolivier</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kukoo1/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kukoo1">@kukoo1</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oktapodia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oktapodia">@oktapodia</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oktapodia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oktapodia">@oktapodia</a></li> </ul> </li> </ul> <p dir="auto">Beginning in Sequelize 4.12.0 use of <code class="notranslate">$ne</code>, <code class="notranslate">$in</code>, <code class="notranslate">$not</code> and so on is deprecated. They have been replaced by new symbols in <code class="notranslate">Sequelize.Op</code>. If you use the deprecated <code class="notranslate">WHERE</code> operators you see this message:</p> <blockquote> <p dir="auto">sequelize deprecated String based operators are now deprecated. Please use Symbol based operators for better security, read more at <a href="http://docs.sequelizejs.com/manual/tutorial/querying.html#operators" rel="nofollow">http://docs.sequelizejs.com/manual/tutorial/querying.html#operators</a> node_modules/sequelize/lib/sequelize.js:236:13</p> </blockquote> <p dir="auto">Please add the new operators to the <code class="notranslate">WhereLogic</code> type.</p>
0
<p dir="auto">At some situations, plain object isn't the best choise. I tried to render a <code class="notranslate">Map</code> object by <code class="notranslate">v-for</code>, but seems <code class="notranslate">Vue</code> does not support it currently. (Here's a <a href="http://forum.vuejs.org/topic/2638/how-to-use-v-for-to-iterate-over-a-map-object/5" rel="nofollow">post</a> I created in the Help thread on the forum.)</p> <p dir="auto">Hope <code class="notranslate">Vue</code> can provide the <code class="notranslate">for ... of</code> syntax in <code class="notranslate">v-for</code> to iterate over data types like <code class="notranslate">Map</code> and <code class="notranslate">Set</code>.</p> <p dir="auto">For example:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const map = new Map(); map.set('key1', 'val1'); map.set('key2', 'val2');"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">map</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Map</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">map</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">'key1'</span><span class="pl-kos">,</span> <span class="pl-s">'val1'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">map</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">'key2'</span><span class="pl-kos">,</span> <span class="pl-s">'val2'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">and we can render <code class="notranslate">map</code> in this way:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;ul&gt; &lt;li v-for=&quot;[key, val] of map&quot;&gt;{{key}} - {{val}}&lt;/li&gt; &lt;/ul&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">v-for</span>="<span class="pl-s">[key, val] of map</span>"<span class="pl-kos">&gt;</span>{{key}} - {{val}}<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Hi</p> <p dir="auto">I has modified <a href="http://jsfiddle.net/yMv7y/943/" rel="nofollow">"Quick example"</a> with using the Iterator protocol.<br> Will be great if it will work in <code class="notranslate">1.0</code> version for es6 environments.</p> <p dir="auto">Useful links:<br> <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Iteration_protocols" rel="nofollow">https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Iteration_protocols</a><br> <a href="http://www.2ality.com/2015/02/es6-iteration.html" rel="nofollow">http://www.2ality.com/2015/02/es6-iteration.html</a></p>
1
<h3 dir="auto">System information</h3> <p dir="auto">OS - High Sierra 10.13<br> Tensorflow - 1.4<br> Keras - 2.0.9<br> CUDA - 9<br> cuDNN - 7</p> <h3 dir="auto">Describe the problem</h3> <p dir="auto">CUDA_ERROR_OUT_OF_MEMORY running tensorflow on GPU</p> <p dir="auto">Simple program:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf with tf.device('/gpu:0'): a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a') b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b') c = tf.matmul(a, b) with tf.Session() as sess: print (sess.run(c))"><pre class="notranslate"><code class="notranslate">import tensorflow as tf with tf.device('/gpu:0'): a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a') b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b') c = tf.matmul(a, b) with tf.Session() as sess: print (sess.run(c)) </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(tensorflow) Smit-Shilu:Desktop smitshilu$ python gputest.py 2017-11-07 08:55:50.690390: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:856] OS X does not support NUMA - returning NUMA node zero 2017-11-07 08:55:50.690536: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1031] Found device 0 with properties: name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.6705 pciBusID: 0000:c3:00.0 totalMemory: 11.00GiB freeMemory: 10.81GiB 2017-11-07 08:55:50.690560: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] Creating TensorFlow device (/device:GPU:0) -&gt; (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:c3:00.0, compute capability: 6.1) 2017-11-07 08:55:50.690914: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 10.27G (11026294784 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2017-11-07 08:55:50.691022: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 9.24G (9923664896 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY [[ 22. 28.] [ 49. 64.]]"><pre class="notranslate"><code class="notranslate">(tensorflow) Smit-Shilu:Desktop smitshilu$ python gputest.py 2017-11-07 08:55:50.690390: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:856] OS X does not support NUMA - returning NUMA node zero 2017-11-07 08:55:50.690536: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1031] Found device 0 with properties: name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.6705 pciBusID: 0000:c3:00.0 totalMemory: 11.00GiB freeMemory: 10.81GiB 2017-11-07 08:55:50.690560: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] Creating TensorFlow device (/device:GPU:0) -&gt; (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:c3:00.0, compute capability: 6.1) 2017-11-07 08:55:50.690914: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 10.27G (11026294784 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2017-11-07 08:55:50.691022: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 9.24G (9923664896 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY [[ 22. 28.] [ 49. 64.]] </code></pre></div> <p dir="auto">CUDA_ERROR_OUT_OF_MEMORY when import Keras after upgrading to 10.13 and 1.4</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; from keras.callbacks import * Using TensorFlow backend. 2017-11-06 16:30:54.704584: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:856] OS X does not support NUMA - returning NUMA node zero 2017-11-06 16:30:54.704700: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1031] Found device 0 with properties: name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.6705 pciBusID: 0000:c3:00.0 totalMemory: 11.00GiB freeMemory: 10.81GiB 2017-11-06 16:30:54.704725: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] Creating TensorFlow device (/device:GPU:0) -&gt; (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:c3:00.0, compute capability: 6.1) 2017-11-06 16:30:54.705019: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 10.27G (11026489344 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2017-11-06 16:30:54.705125: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 9.24G (9923840000 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; from keras.callbacks import * Using TensorFlow backend. 2017-11-06 16:30:54.704584: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:856] OS X does not support NUMA - returning NUMA node zero 2017-11-06 16:30:54.704700: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1031] Found device 0 with properties: name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.6705 pciBusID: 0000:c3:00.0 totalMemory: 11.00GiB freeMemory: 10.81GiB 2017-11-06 16:30:54.704725: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] Creating TensorFlow device (/device:GPU:0) -&gt; (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:c3:00.0, compute capability: 6.1) 2017-11-06 16:30:54.705019: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 10.27G (11026489344 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2017-11-06 16:30:54.705125: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 9.24G (9923840000 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY </code></pre></div>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: <a href="https://github.com/tkuanlun350/Tensorflow-SegNet">https://github.com/tkuanlun350/Tensorflow-SegNet</a></li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 7 x64</li> <li><strong>TensorFlow installed from (source or binary)</strong>: <a href="https://pypi.python.org/pypi/tensorflow-gpu/1.4.0rc1" rel="nofollow">https://pypi.python.org/pypi/tensorflow-gpu/1.4.0rc1</a></li> <li><strong>TensorFlow version (use command below)</strong>: 1.4.0</li> <li><strong>Python version</strong>: 3.5</li> <li><strong>CUDA/cuDNN version</strong>: Cuda release 8.0, V8.0.60. cuDNN 6.</li> <li><strong>GPU model and memory</strong>: NVIDIA P4</li> <li><strong>Exact command to reproduce</strong>: <code class="notranslate">c:\python35\python3 main.py --log_dir=./logs --image_dir={image dir} --val_dir= {validation dir} --batch_size=15 --training=True</code></li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Under 1.3.0 I was able to use a batch size of {15, put your max batch size here} for training. Under 1.4.0 I get Resource Exhausted errors for that batch size. So use of GPU resources is going up. Not the right direction.</p> <p dir="auto">For me here are the performance effects:</p> <ul dir="auto"> <li>TensorFlow GPU 1.3.0: 9.8 images/sec for batch size: 15</li> <li>TensorFlow GPU 1.4.0: Can't do batch size: 15. 7.8 images/sec for batch size: 12</li> </ul> <h3 dir="auto">Source code / logs</h3> <p dir="auto"><a href="https://github.com/tensorflow/tensorflow/files/1428590/tf_bug2.txt">tf_bug2.txt</a></p>
1
<p dir="auto">I have viewed the guide <a href="https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps">https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps</a>, it works.</p> <p dir="auto">And so I want to use the output file (framework&amp; asset )to integrate to existing iOS APP. It seems simulator not support AOT ant it run in debug model with a VM.</p>
<p dir="auto">Current documentation (<a href="https://github.com/flutter/flutter/wiki/Flutter%27s-modes">https://github.com/flutter/flutter/wiki/Flutter%27s-modes</a>) states that Flutter release mode builds cannot be run on the Simulator. For many applications, the iOS Simulators are sufficiently high fidelity to do 99% of development work without going through the additional friction of deploying to devices regularly. It's unfortunate that, unlike in native application development, you can't get an accurate understanding of your release mode behaviors with Flutter.</p>
1
<p dir="auto">In AngularJS, <code class="notranslate">ng-repeat</code> can iterate <code class="notranslate">Object</code> as key-value map.</p> <p dir="auto"><a href="https://docs.angularjs.org/api/ng/directive/ngRepeat" rel="nofollow">https://docs.angularjs.org/api/ng/directive/ngRepeat</a></p> <p dir="auto"><code class="notranslate">&lt;div ng-repeat="(key, value) in myObj"&gt; ... &lt;/div&gt;</code></p> <p dir="auto">In Angular2, <code class="notranslate">ngFor</code> doesn't support it. <code class="notranslate">ngFor</code> can iterate only an array.</p> <p dir="auto"><a href="https://angular.io/docs/ts/latest/api/common/NgFor-directive.html" rel="nofollow">https://angular.io/docs/ts/latest/api/common/NgFor-directive.html</a></p> <p dir="auto"><code class="notranslate">&lt;li *ngFor="#item of items; #i = index"&gt;...&lt;/li&gt;</code></p> <p dir="auto">This mismatch makes migrations a little difficult.</p> <p dir="auto">I think <code class="notranslate">ngFor</code> also support <code class="notranslate">Object</code> iteration as well as <code class="notranslate">ng-repeat</code>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report =&gt; search github for a similar issue or PR before submitting [ x ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report =&gt; search github for a similar issue or PR before submitting [ x ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> It is currently impossible to use [required] and [disabled] in reactive forms</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> In many forms, some fields depend on other fields. With reactive forms it makes it extremely difficult and verbose to require or disable a field conditionally to another field</p> <p dir="auto"><strong>Angular version:</strong><br> 2.1.0</p> <p dir="auto">I have read <a href="https://angular.io/docs/ts/latest/cookbook/form-validation.html" rel="nofollow">here</a> that</p> <blockquote> <p dir="auto">A future version of reactive forms will add the required HTML validation attribute to the DOM element (and perhaps the aria-required attribute) when the control has the required validator function.</p> </blockquote> <p dir="auto">Does it mean that [required] and [disabled] will be supported in future versions? It is important for users to understand the limitations of reactive forms so they can take the best decision (reactive vs template) based on their (future) needs.</p>
0
<p dir="auto">To work around <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="128599581" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/20096" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/20096/hovercard" href="https://github.com/kubernetes/kubernetes/issues/20096">#20096</a> we introduced a --hairpin-mode flag that flips cbr0 to promiscuous mode. Users of kubenet run with --configure-cbr0=false, so before we push kubenet to production we need to decide how to handle this.</p> <p dir="auto">If we decided to stick with promiscuous mode, kubenet should set it on whatever bridge it creates. We will (hopefully) not have to continue relying on promiscuous mode on newer kernel versions. Maybe it still makes sense to do in the interim? or maybe we can push it down into the CNI bridge driver (unsure of a valid generic use case to make a bridge promiscuous)?</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yifan-gu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yifan-gu">@yifan-gu</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dcbw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dcbw">@dcbw</a> @kubernetes/sig-network</p>
<p dir="auto">This block of code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" klet.volumePluginMgr, err = NewInitializedVolumePluginMgr(klet, volumePlugins) if err != nil { return nil, err } klet.volumeManager, err = volumemanager.NewVolumeManager( enableControllerAttachDetach, hostname, klet.podManager, klet.kubeClient, klet.volumePluginMgr, klet.containerRuntime, mounter)"><pre class="notranslate"><code class="notranslate"> klet.volumePluginMgr, err = NewInitializedVolumePluginMgr(klet, volumePlugins) if err != nil { return nil, err } klet.volumeManager, err = volumemanager.NewVolumeManager( enableControllerAttachDetach, hostname, klet.podManager, klet.kubeClient, klet.volumePluginMgr, klet.containerRuntime, mounter) </code></pre></div> <p dir="auto">Appears twice in <code class="notranslate">NewMainKubelet</code>, in <code class="notranslate">pkg/kubelet/kubelet.go</code>. This seems wrong.<br> Most-likely, the duplicate before <code class="notranslate">switch containerRuntime</code> is the one that should be removed, because that switch statement is where <code class="notranslate">klet.containerRuntime</code> is set.</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.8</li> <li>Operating System version: mac os</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li> <p dir="auto">Start multiple provider nodes<br> (中文:启动多个提供方节点)</p> </li> <li> <p dir="auto">Start consumer node<br> (中文:启动消费方节点)</p> </li> <li> <p dir="auto">Frequently shutdown and restart provider nodes or Frequently enable and disable provider nodes<br> (中文:频繁关闭、重启提供方节点或者频繁启用、禁用提供方节点)</p> </li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <p dir="auto">Only the thread of DubboClientHandler-xxx will appear<br> (中文:应该只会出现DubboClientHandler-xxx的线程用于网络连接、断连,因为获取响应结果用的是主线程)</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">There are many threads named with Dubbo-thread-xxx on the consumer side,these threads will not be recycled.<br> (中文:消费方出现了很多以Dubbo-thread-xxx命名的线程,这些线程不会被回收)</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.7.9-SNAPSHOT</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">The pom.xml of dubbo-configcenter module has '' to include sub modules</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;modules&gt; &lt;module&gt;dubbo-configcenter-zookeeper&lt;/module&gt; &lt;module&gt;dubbo-configcenter-apollo&lt;/module&gt; &lt;module&gt;dubbo-configcenter-consul&lt;/module&gt; &lt;module&gt;dubbo-configcenter-etcd&lt;/module&gt; &lt;module&gt;dubbo-configcenter-nacos&lt;/module&gt; &lt;/modules&gt;"><pre class="notranslate"> &lt;<span class="pl-ent">modules</span>&gt; &lt;<span class="pl-ent">module</span>&gt;dubbo-configcenter-zookeeper&lt;/<span class="pl-ent">module</span>&gt; &lt;<span class="pl-ent">module</span>&gt;dubbo-configcenter-apollo&lt;/<span class="pl-ent">module</span>&gt; &lt;<span class="pl-ent">module</span>&gt;dubbo-configcenter-consul&lt;/<span class="pl-ent">module</span>&gt; &lt;<span class="pl-ent">module</span>&gt;dubbo-configcenter-etcd&lt;/<span class="pl-ent">module</span>&gt; &lt;<span class="pl-ent">module</span>&gt;dubbo-configcenter-nacos&lt;/<span class="pl-ent">module</span>&gt; &lt;/<span class="pl-ent">modules</span>&gt;</pre></div> <p dir="auto">But the dubbo-configcenter-api is not included here. It may be an error.</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">Is it possible to incorporate Weight Normalization (<a href="https://arxiv.org/abs/1602.07868" rel="nofollow">https://arxiv.org/abs/1602.07868</a>) into tensorflow itself?</p> <p dir="auto"><a href="https://github.com/openai/weightnorm/tree/master/tensorflow">https://github.com/openai/weightnorm/tree/master/tensorflow</a></p>
<p dir="auto">can you implement <a href="https://arxiv.org/pdf/1602.07868.pdf" rel="nofollow">weight norm</a> ?</p> <p dir="auto">I want to use it as follows.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" x = tf.layers.conv2d(x, filter_size=32, kernel_size=[3,3], strides=2) x = weight_norm(x)"><pre class="notranslate"> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">layers</span>.<span class="pl-en">conv2d</span>(<span class="pl-s1">x</span>, <span class="pl-s1">filter_size</span><span class="pl-c1">=</span><span class="pl-c1">32</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>[<span class="pl-c1">3</span>,<span class="pl-c1">3</span>], <span class="pl-s1">strides</span><span class="pl-c1">=</span><span class="pl-c1">2</span>) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-en">weight_norm</span>(<span class="pl-s1">x</span>)</pre></div> <p dir="auto">Is it possible?</p>
1
<p dir="auto">my conf:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="services: session.memcached: class: Memcached calls: - [ addServer, [ 127.0.0.1, 11211 ]] session.handler.memcached: class: Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler arguments: [ @session.memcached, { prefix: zuo_session, expiretime: 3600 } ] framework: session: handler_id: session.handler.memcached"><pre class="notranslate"><code class="notranslate">services: session.memcached: class: Memcached calls: - [ addServer, [ 127.0.0.1, 11211 ]] session.handler.memcached: class: Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler arguments: [ @session.memcached, { prefix: zuo_session, expiretime: 3600 } ] framework: session: handler_id: session.handler.memcached </code></pre></div> <p dir="auto">my controller:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /** * @Route(&quot;/about&quot;,name=&quot;aboutMe&quot;) * @Template() */ public function meAction() { $v=rand(1,9999); ld($v); $this-&gt;get('session')-&gt;set('aaaaaaaaa',$v); return new \Symfony\Component\HttpFoundation\RedirectResponse('/advice'); } /** * @Route(&quot;/advice&quot;,name=&quot;aboutAdvice&quot;) * @Template() */ public function adviceAction() { ld($this-&gt;get('session')-&gt;get('aaaaaaaaa')); return array('title' =&gt; 'aaa'); }"><pre class="notranslate"><code class="notranslate"> /** * @Route("/about",name="aboutMe") * @Template() */ public function meAction() { $v=rand(1,9999); ld($v); $this-&gt;get('session')-&gt;set('aaaaaaaaa',$v); return new \Symfony\Component\HttpFoundation\RedirectResponse('/advice'); } /** * @Route("/advice",name="aboutAdvice") * @Template() */ public function adviceAction() { ld($this-&gt;get('session')-&gt;get('aaaaaaaaa')); return array('title' =&gt; 'aaa'); } </code></pre></div> <p dir="auto">so what I did is:<br> 1.generate a random number on page A<br> 2.dump the number<br> 3.Save the number into session on page A<br> 4.redirect to Page B<br> 5.dump the number which has been saved into session on page A</p> <p dir="auto">Normally, I will get 2 same number on page A and page B</p> <p dir="auto">but,some times, I will get the different number on Page B which has been save on last turn on Page A.</p> <p dir="auto">I guess the problem is because the save function of session hasn't been called automatically?</p>
<p dir="auto">I have been hit with a very strange situation during these last 2 days. I have a custom security listener and provider that sends some emails to the user and the user's "godfather" when registering. Immediately after registering, the user is redirected to his personal area. The problem arises when from time to time, the user is logged out when redirected.</p> <p dir="auto">Digging into the code, I can clearly see that the session is totally empty after the redirect, so no information about the user token is present. However, when I reload the page the session is perfectly filled and the user becomes logged in again. So I assumed that the session was still not written to disk (using native php file handler) when the user was redirected!</p> <p dir="auto">So here is what I found out. When sending emails with the default SF mailer (Swift) some bg processing must be kept somewhere. I am using nginx + php-fpm so the <code class="notranslate">fastcgi_finish_request</code> function is called and the page is immediately flushed. But as there must be some kind of bg processing, the session is still not written to disk when the next request coming from the redirect hits the server and the session is empty.</p> <p dir="auto">Comenting <code class="notranslate">fastcgi_finish_request</code> function call or not sending the emails seems to fix the problem so it has to be some problematic combination of those 2 things...but who knows!</p> <p dir="auto">Any ideas?</p>
1
<p dir="auto">While working on a way to address <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51276051" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/101" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/101/hovercard" href="https://github.com/golang/go/issues/101">#101</a>, it was discovered that some of the functions, constants, and structures offered in go/doc/comment.go are useful for parsing Go source code comments.</p> <p dir="auto">In particular, blocks(), block, op, opPara, opHead, and opPre.</p> <p dir="auto">Currently, consumers wanting to generate their own documentation or process Go source code are left with duplicating the existing logic found in go/doc/comment.go or adding special-case logic to that file itself for specific formats (undesirable). I would like to suggest that the aforementioned items be made public, or moved to a more suitable package for re-use by others.</p> <p dir="auto">Doing so would make it easier to add support for the generation of new documentation formats, such as manual pages, etc. and would likely provide a cleaner result.</p> <p dir="auto">If the desire is to keep these items where they are today, I would rename them as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" blocks -&gt; Blocks block -&gt; Block block.op -&gt; block.Op block.lines -&gt; block.Lines op -&gt; Op opPara -&gt; OpPara opHead -&gt; OpHead opPre -&gt; OpPre"><pre class="notranslate"><code class="notranslate"> blocks -&gt; Blocks block -&gt; Block block.op -&gt; block.Op block.lines -&gt; block.Lines op -&gt; Op opPara -&gt; OpPara opHead -&gt; OpHead opPre -&gt; OpPre </code></pre></div> <p dir="auto">I am open to counter-suggestions as to how this logic should be exposed and I am willing to perform the work requested.</p> <p dir="auto">This bug was filed at the request of <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/adg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/adg">@adg</a></p>
<p dir="auto">by <strong>peter.waller</strong>:</p> <pre class="notranslate">This issue was discussed in this post on golang-dev: <a href="https://groups.google.com/forum/?fromgroups=#" rel="nofollow">https://groups.google.com/forum/?fromgroups=#</a>!topic/golang-dev/xI7RIjkSeqk The heap scavenger is hard-coded to free up memory spans which are unused for longer than five minutes. For some applications this is unacceptable: in my case I need go memory to become available to the operating system in short order (~10s). The current proposed solution on the ML is to introduce a runtime function to run the heap scavenger manually. This may require modifying the existing scavenger quite a bit. MHeap_Scavenger code: <a href="http://code.google.com/p/go/source/browse/src/pkg/runtime/mheap.c?spec=svn0a3866d6cc6b16e44ba6e8fb631a471ce81ca412&amp;" rel="nofollow">http://code.google.com/p/go/source/browse/src/pkg/runtime/mheap.c?spec=svn0a3866d6cc6b16e44ba6e8fb631a471ce81ca412&amp;</a>;name=b96e722aad5a&amp;r=0a3866d6cc6b16e44ba6e8fb631a471ce81ca412#349</pre>
0
<p dir="auto">by <strong>jdnurmi</strong>:</p> <pre class="notranslate">Often while experimenting or debugging a module, I'll find it necessary (or desirable) to import the 'fmt' module to generate some temporary debugging printfs. Alternatively, I might temporarily comment out a section that is the only user of the "os",'io' or 'http' modules in 'helper' files for debugging. This also occurs with variables or types that get commented out in a loop, the most common occurance is something of the form: for k,v := range someMap{ doSomething(k) doSomethingElse(v) } There, commenting out either inner loop line will make the compilation fail since k/v was 'set' but unused. When I do this, go correctly flags that I've imported a module without using it. I appreciate its semantic desire for a clean compile, but there are times when I know in advance "It's coming back in 10 minutes, so shut-up", and would like to be able to (for example) set my debug-build target to include --warn-unused{,-import,-variable}. I realize this is a convenience feature that's counter to the clarity of the language, but especially as I first started learning it, the constant jumping around in the file to satisfy the compilers need for "everything in its place, and every place used" often became a frustrating irritant. I would encourage leaving the default as is, I would just like a flag (or a pointer to it in the doco if it already exists) to allow those issues to not inhibit my build.</pre>
<pre class="notranslate">(Sorry I haven't managed to trim down the test case. In doing so, I kept running into the formatting problem I just reported with strange comment movements.) What steps will reproduce the problem? 1. git clone github.com/dgryski/dkrcrypt 2. edit aria.go, add "var _ cipher.Block = &amp;AriaCipher{}" at the bottom 3. goimports What is the expected output? The crypto/cipher import is added. What do you see instead? I get a warning added to the top of my fail (which then fails to compile -- this may be vim integration problems). 2013/12/18 10:16:12 addImportViaSourceModification error: 194:3: expected 1 expression and the crypto/cipher import is added oddly split across a comment: import // The ARIA Block cipher from KISA // Copyright (c) 2012 Damian Gryski &lt;[email protected]&gt; // Licensed under the GPLv3 or, at your option, any later version. "crypto/cipher"</pre>
0
<p dir="auto">Docs: <a href="https://docs.gradle.org/nightly/userguide/java_plugin.html#sec:incremental_annotation_processing" rel="nofollow">https://docs.gradle.org/nightly/userguide/java_plugin.html#sec:incremental_annotation_processing</a><br> Gradle feature discussion: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="205219393" data-permission-text="Title is private" data-url="https://github.com/gradle/gradle/issues/1320" data-hovercard-type="issue" data-hovercard-url="/gradle/gradle/issues/1320/hovercard" href="https://github.com/gradle/gradle/issues/1320">gradle/gradle#1320</a></p>
<p dir="auto">Gradle 4.7 provides support for incremental annotation processing.<br> <a href="https://docs.gradle.org/nightly/userguide/java_plugin.html#sec:incremental_annotation_processing" rel="nofollow">https://docs.gradle.org/nightly/userguide/java_plugin.html#sec:incremental_annotation_processing</a><br> Gradle feature discussion: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="205219393" data-permission-text="Title is private" data-url="https://github.com/gradle/gradle/issues/1320" data-hovercard-type="issue" data-hovercard-url="/gradle/gradle/issues/1320/hovercard" href="https://github.com/gradle/gradle/issues/1320">gradle/gradle#1320</a></p> <p dir="auto">It would be nice to see glide's annotation processor supporting it.</p> <p dir="auto">I started to have a look at the code and I was surprised to find such a complex annotation processing. I don't think I can do the PR quickly by myself. But I would be happy to provide all the information I can to help a maintainer doing it.</p>
1
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">Hi,</p> <p dir="auto">I'd like to request a new option for the $watch() function: <code class="notranslate">shallow: boolean;</code>. This option would make watch callback function fire only if any of the first level values in an Array (a tuple) or on Object change. This would offer an alternative to the current behaviour of always calling the watch callback when watching a non-primitive variable (as per <a href="https://github.com/vuejs/vue/blob/4f111f9225f938f7a2456d341626dbdfd210ff0c/src/core/observer/watcher.js#L184">the following comment</a>). It would also be a natural expansion of the <code class="notranslate">deep: boolean;</code> option.</p> <p dir="auto">Moreover, the first level properties of the watched Arrays and Objects would <em>always</em> be compared used strict equality comparison <code class="notranslate">===</code>, regardless of whether they are primitive values or Arrays/Objects. This is so that the same instances of a class would not trigger the watch callback, as nothing has changed (the use case is: observing an immutable value object).</p> <p dir="auto">Use case 1: Watching a tuple, aka. watching many variables and having a single callback when any of the variables change. With the <code class="notranslate">shallow: true</code> option, it would be a very clean solution to current necessity of having to hash the tuple somehow (the easiest way is to <code class="notranslate">.join(',')</code> the tuple to produce a string, but not all tuples are made of primitive values, so that's not always this easy). Two tuples should evaluate equal, when all indexes of the old tuple are set to the same values in the new tuple, under the same indexes. It'd be a simple for-each loop that short-circuits on the first inequality in the old and the new tuple.</p> <p dir="auto">Use case 2: Watching all keys in an Object. This is a very common use case and using <code class="notranslate">deep: true</code> for it is very often not ideal (especially, if the values in the watched Object are also Objects). As in use case 1, here the old and the new Objects would evaluate unequal (and therefore trigger the watch callback), when any of the keys in the old Object doesn't strict-equal the same key in the new Object. Also, if keys are missing or there are extra keys in the new Object, this should also be treated as a change and therefore trigger the watch callback. A common context for this use case is when the watched Object is a hashmap behaving as a "form", whose keys are form keys and values are either primitive variables or value objects. Watching such a hashmap with the proposed <code class="notranslate">shallow: true</code> option would be <em>a massive</em> convenience (e.g. to run validation on every change in the form and enable/disable the submit button).</p> <p dir="auto">In angular 1, this feature is called <a href="https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$watchCollection" rel="nofollow">$watchCollection</a>.</p> <p dir="auto">Thank you.</p> <h3 dir="auto">What does the proposed API look like?</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Person { constructor(name) { this.name = name; } } const vm = new Vue({ data: { dataHashmap: { bartender: new Person('Phil'), bouncer: new Person('Rob'), janitor: new Person('Tom'), } } }); vm.$watch( 'dataHashmap', () =&gt; { console.log(vm.dataHashmap); }, { shallow: true } ); vm.$watch( (vm) =&gt; { return [vm.dataHashmap.bartender, vm.dataHashmap.janitor]; }, () =&gt; { console.log(vm.dataHashmap); }, { shallow: true } );"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Person</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">name</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">name</span> <span class="pl-c1">=</span> <span class="pl-s1">name</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-s1">vm</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Vue</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">data</span>: <span class="pl-kos">{</span> <span class="pl-c1">dataHashmap</span>: <span class="pl-kos">{</span> <span class="pl-c1">bartender</span>: <span class="pl-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-s">'Phil'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">bouncer</span>: <span class="pl-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-s">'Rob'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">janitor</span>: <span class="pl-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-s">'Tom'</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">vm</span><span class="pl-kos">.</span><span class="pl-en">$watch</span><span class="pl-kos">(</span> <span class="pl-s">'dataHashmap'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">vm</span><span class="pl-kos">.</span><span class="pl-c1">dataHashmap</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">shallow</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-s1">vm</span><span class="pl-kos">.</span><span class="pl-en">$watch</span><span class="pl-kos">(</span> <span class="pl-kos">(</span><span class="pl-s1">vm</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">[</span><span class="pl-s1">vm</span><span class="pl-kos">.</span><span class="pl-c1">dataHashmap</span><span class="pl-kos">.</span><span class="pl-c1">bartender</span><span class="pl-kos">,</span> <span class="pl-s1">vm</span><span class="pl-kos">.</span><span class="pl-c1">dataHashmap</span><span class="pl-kos">.</span><span class="pl-c1">janitor</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">vm</span><span class="pl-kos">.</span><span class="pl-c1">dataHashmap</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">shallow</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Vue.js version</h3> <p dir="auto">1.0.21</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="http://www.webpackbin.com/412B9bgJb" rel="nofollow">http://www.webpackbin.com/412B9bgJb</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">click Toggle button</p> <h3 dir="auto">What is Expected?</h3> <p dir="auto">when MyComponent is showing, the msg should be hidden</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">the msg always shows</p>
0
<p dir="auto">I was trying to download the documentation from <a href="http://flask.pocoo.org/" rel="nofollow">http://flask.pocoo.org/</a> using the PDF link and got a 404. At the same time also tried the zipped HTML link and that returned a 404 as well.</p>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.31.2</li> <li>Operating System: MacOS 13.2.1</li> <li>Browser: Chromium</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>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 { defineConfig } from &quot;@playwright/test&quot;; export default defineConfig({ timeout: 15 * 60 * 1000, // 15 minutes use: { acceptDownloads: true, actionTimeout: 5 * 1000, // 5 seconds trace: &quot;retain-on-failure&quot;, }, workers: 5, fullyParallel: true, }); "><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-s1">defineConfig</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">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">15</span> <span class="pl-c1">*</span> <span class="pl-c1">60</span> <span class="pl-c1">*</span> <span class="pl-c1">1000</span><span class="pl-kos">,</span> <span class="pl-c">// 15 minutes</span> <span class="pl-c1">use</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">actionTimeout</span>: <span class="pl-c1">5</span> <span class="pl-c1">*</span> <span class="pl-c1">1000</span><span class="pl-kos">,</span> <span class="pl-c">// 5 seconds</span> <span class="pl-c1">trace</span>: <span class="pl-s">"retain-on-failure"</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">workers</span>: <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">fullyParallel</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></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="it('should timeout after 3 seconds', async ({ page }) =&gt; { page.goto(&quot;http://localhost:3000/&quot;); page.setDefaultTimeout(3 * 1000); // 3 seconds await page.waitForSelector('text=&quot;something not in the dom&quot;') });"><pre class="notranslate"><span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should timeout after 3 seconds'</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-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">"http://localhost:3000/"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setDefaultTimeout</span><span class="pl-kos">(</span><span class="pl-c1">3</span> <span class="pl-c1">*</span> <span class="pl-c1">1000</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// 3 seconds</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForSelector</span><span class="pl-kos">(</span><span class="pl-s">'text="something not in the dom"'</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>Observe that it waits until the global test timeout of 15 minutes elapses</li> </ul> <p dir="auto"><strong>Expected</strong><br> According to the docs, the <code class="notranslate">page.setDefaultTimeout</code> value of 3 seconds should kick in here.<br> Also, according to this issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1214178547" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/13723" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/13723/hovercard" href="https://github.com/microsoft/playwright/issues/13723">#13723</a>, the actionTimeout of 5 seconds should also apply.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">The only way I've been able to get this to timeout as expected is by passing the option directly to <code class="notranslate">waitForSelector</code>.</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [email protected]</li> <li>Operating System: macOS 13.1</li> <li>Browser: Chrome 110.0.5481.77 (Official Build) (arm64)</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"><code class="notranslate">script.ts</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Browser, BrowserContext, chromium, Page } from &quot;playwright-chromium&quot;; import * as path from &quot;path&quot;; import * as url from &quot;url&quot;; async function intercept(page: Page) { const context = page.context(); const client = await context.newCDPSession(page); await client.send(&quot;Fetch.enable&quot;, { &quot;patterns&quot;: [ { &quot;requestStage&quot;: &quot;Response&quot;, &quot;urlPattern&quot;: &quot;*&quot; } ] }); client.on(&quot;Fetch.requestPaused&quot;, async ({ requestId, request }) =&gt; { const { hostname, pathname } = new URL(request.url); try { const { body } = await client.send(&quot;Fetch.getResponseBody&quot;, { &quot;requestId&quot;: requestId }); let baseName = path.basename(pathname); const pathName = path.join(pathname.slice(0, -baseName.length)); const fileName = path.join(hostname, pathName, baseName || &quot;index.html&quot;); baseName ||= path.basename(fileName); console.log(&quot;Saving &quot; + request.url + &quot; as &quot; + baseName); } catch (error) { console.error(&quot;Failed to get &quot; + request.url); } finally { await client.send(&quot;Fetch.continueRequest&quot;, { &quot;requestId&quot;: requestId }); } }); } let browser: Browser; let context: BrowserContext; export async function init() { browser ??= await chromium.launch({ &quot;args&quot;: [&quot;--disable-web-security&quot;], &quot;devtools&quot;: true, &quot;headless&quot;: false //!(Boolean(process.env[&quot;CI&quot;]) || process.platform === &quot;win32&quot; || Boolean(process.env[&quot;DISPLAY&quot;])) }); context ??= await browser.newContext(); const page = await context.newPage(); await intercept(page); await page.goto(url.pathToFileURL(path.resolve(&quot;./index.html&quot;)).toString()); } init();"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Browser</span><span class="pl-kos">,</span> <span class="pl-v">BrowserContext</span><span class="pl-kos">,</span> <span class="pl-s1">chromium</span><span class="pl-kos">,</span> <span class="pl-v">Page</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"playwright-chromium"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">path</span> <span class="pl-k">from</span> <span class="pl-s">"path"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">url</span> <span class="pl-k">from</span> <span class="pl-s">"url"</span><span class="pl-kos">;</span> <span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">intercept</span><span class="pl-kos">(</span><span class="pl-s1">page</span>: <span class="pl-v">Page</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">context</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">client</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newCDPSession</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">client</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-s">"Fetch.enable"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"patterns"</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-s">"requestStage"</span>: <span class="pl-s">"Response"</span><span class="pl-kos">,</span> <span class="pl-s">"urlPattern"</span>: <span class="pl-s">"*"</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">client</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"Fetch.requestPaused"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> requestId<span class="pl-kos">,</span> request <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-kos">{</span> hostname<span class="pl-kos">,</span> pathname <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">URL</span><span class="pl-kos">(</span><span class="pl-s1">request</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">try</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> body <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">client</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-s">"Fetch.getResponseBody"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"requestId"</span>: <span class="pl-s1">requestId</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">baseName</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">basename</span><span class="pl-kos">(</span><span class="pl-s1">pathname</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">pathName</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">pathname</span><span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">-</span><span class="pl-s1">baseName</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">fileName</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">hostname</span><span class="pl-kos">,</span> <span class="pl-s1">pathName</span><span class="pl-kos">,</span> <span class="pl-s1">baseName</span> <span class="pl-c1">||</span> <span class="pl-s">"index.html"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">baseName</span> <span class="pl-c1">||=</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">basename</span><span class="pl-kos">(</span><span class="pl-s1">fileName</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">"Saving "</span> <span class="pl-c1">+</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-c1">url</span> <span class="pl-c1">+</span> <span class="pl-s">" as "</span> <span class="pl-c1">+</span> <span class="pl-s1">baseName</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-s">"Failed to get "</span> <span class="pl-c1">+</span> <span class="pl-s1">request</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-kos">}</span> <span class="pl-k">finally</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">client</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-s">"Fetch.continueRequest"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"requestId"</span>: <span class="pl-s1">requestId</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">let</span> <span class="pl-s1">browser</span>: <span class="pl-v">Browser</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">context</span>: <span class="pl-v">BrowserContext</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">init</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">browser</span> <span class="pl-c1">??=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-s">"args"</span>: <span class="pl-kos">[</span><span class="pl-s">"--disable-web-security"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"devtools"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"headless"</span>: <span class="pl-c1">false</span> <span class="pl-c">//!(Boolean(process.env["CI"]) || process.platform === "win32" || Boolean(process.env["DISPLAY"]))</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">context</span> <span class="pl-c1">??=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newContext</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">intercept</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">.</span><span class="pl-en">pathToFileURL</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s">"./index.html"</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">init</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><code class="notranslate">index.html</code>:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta name=&quot;description&quot; content=&quot;&quot; /&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&gt; &lt;/head&gt; &lt;body&gt; &lt;iframe id=&quot;nodebox-iframe&quot;&gt;&lt;/iframe&gt; &lt;iframe id=&quot;preview-iframe&quot;&gt;&lt;/iframe&gt; &lt;script type=&quot;module&quot;&gt; import { Nodebox } from &quot;https://cdn.jsdelivr.net/npm/@codesandbox/nodebox/build/index.min.mjs&quot;; const nodeboxIframe = document.getElementById(&quot;nodebox-iframe&quot;); const previewIframe = document.getElementById(&quot;preview-iframe&quot;); const nodebox = new Nodebox({ &quot;iframe&quot;: nodeboxIframe }); await nodebox.connect(); await nodebox.fs.init({ &quot;index.js&quot;: ` // server.ts import * as http from &quot;http&quot;; // server.ts var BASE_URL = &quot;http://localhost:8000&quot;; var router = { &quot;/&quot;: function(request, response) { response.writeHead(200, { &quot;Content-Type&quot;: &quot;text/html&quot; }); response.end(&quot;OK&quot;); } }; var server = http.createServer(function(request, response) { const startTime = performance.now(); let status = 200; try { if (request.method === &quot;GET&quot; &amp;&amp; router[request.url] !== void 0) { router[request.url](request, response); } else { status = 404; response.writeHead(status, { &quot;Content-Type&quot;: &quot;text/plain&quot; }); response.end(&quot;File not found&quot;); } } catch (error) { status = 500; response.writeHead(status, { &quot;Content-Type&quot;: &quot;text/plain&quot; }); response.end(&quot;Internal server error&quot;); } response.on(&quot;finish&quot;, function() { console.log(request.method, request.url, status, (performance.now() - startTime).toFixed(3), &quot;ms&quot;); }); }); server.listen(new URL(BASE_URL).port, function() { console.log(&quot;&gt; Ready on &quot; + BASE_URL); }); ` }); const shell = nodebox.shell.create(); const { id } = await shell.runCommand(&quot;node&quot;, [&quot;index.js&quot;]); const { url } = await nodebox.preview.getByShellId(id); previewIframe.setAttribute(&quot;src&quot;, url); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">name</span>="<span class="pl-s">description</span>" <span class="pl-c1">content</span>="" /&gt; <span class="pl-kos">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">name</span>="<span class="pl-s">viewport</span>" <span class="pl-c1">content</span>="<span class="pl-s">width=device-width, initial-scale=1</span>" /&gt; <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">iframe</span> <span class="pl-c1">id</span>="<span class="pl-s">nodebox-iframe</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">iframe</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">iframe</span> <span class="pl-c1">id</span>="<span class="pl-s">preview-iframe</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">iframe</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">type</span>="<span class="pl-s">module</span>"<span class="pl-kos">&gt;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Nodebox</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://cdn.jsdelivr.net/npm/@codesandbox/nodebox/build/index.min.mjs"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">nodeboxIframe</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">"nodebox-iframe"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">previewIframe</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">"preview-iframe"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">nodebox</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Nodebox</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-s">"iframe"</span>: <span class="pl-s1">nodeboxIframe</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">nodebox</span><span class="pl-kos">.</span><span class="pl-en">connect</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">nodebox</span><span class="pl-kos">.</span><span class="pl-c1">fs</span><span class="pl-kos">.</span><span class="pl-en">init</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-s">"index.js"</span>: <span class="pl-s">`</span> <span class="pl-s">// server.ts</span> <span class="pl-s">import * as http from "http";</span> <span class="pl-s"></span> <span class="pl-s">// server.ts</span> <span class="pl-s">var BASE_URL = "http://localhost:8000";</span> <span class="pl-s">var router = {</span> <span class="pl-s"> "/": function(request, response) {</span> <span class="pl-s"> response.writeHead(200, { "Content-Type": "text/html" });</span> <span class="pl-s"> response.end("OK");</span> <span class="pl-s"> }</span> <span class="pl-s">};</span> <span class="pl-s">var server = http.createServer(function(request, response) {</span> <span class="pl-s"> const startTime = performance.now();</span> <span class="pl-s"> let status = 200;</span> <span class="pl-s"> try {</span> <span class="pl-s"> if (request.method === "GET" &amp;&amp; router[request.url] !== void 0) {</span> <span class="pl-s"> router[request.url](request, response);</span> <span class="pl-s"> } else {</span> <span class="pl-s"> status = 404;</span> <span class="pl-s"> response.writeHead(status, { "Content-Type": "text/plain" });</span> <span class="pl-s"> response.end("File not found");</span> <span class="pl-s"> }</span> <span class="pl-s"> } catch (error) {</span> <span class="pl-s"> status = 500;</span> <span class="pl-s"> response.writeHead(status, { "Content-Type": "text/plain" });</span> <span class="pl-s"> response.end("Internal server error");</span> <span class="pl-s"> }</span> <span class="pl-s"> response.on("finish", function() {</span> <span class="pl-s"> console.log(request.method, request.url, status, (performance.now() - startTime).toFixed(3), "ms");</span> <span class="pl-s"> });</span> <span class="pl-s">});</span> <span class="pl-s">server.listen(new URL(BASE_URL).port, function() {</span> <span class="pl-s"> console.log("&gt; Ready on " + BASE_URL);</span> <span class="pl-s">});</span> <span class="pl-s"> `</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">shell</span> <span class="pl-c1">=</span> <span class="pl-s1">nodebox</span><span class="pl-kos">.</span><span class="pl-c1">shell</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> id <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">shell</span><span class="pl-kos">.</span><span class="pl-en">runCommand</span><span class="pl-kos">(</span><span class="pl-s">"node"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"index.js"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> url <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">nodebox</span><span class="pl-kos">.</span><span class="pl-c1">preview</span><span class="pl-kos">.</span><span class="pl-en">getByShellId</span><span class="pl-kos">(</span><span class="pl-s1">id</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">previewIframe</span><span class="pl-kos">.</span><span class="pl-en">setAttribute</span><span class="pl-kos">(</span><span class="pl-s">"src"</span><span class="pl-kos">,</span> <span class="pl-s1">url</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto"><code class="notranslate">package.json</code>:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;dependencies&quot;: { &quot;playwright-chromium&quot;: &quot;latest&quot;, &quot;ts-node&quot;: &quot;latest&quot;, &quot;typescript&quot;: &quot;latest&quot; }, &quot;scripts&quot;: { &quot;start&quot;: &quot;node --experimental-specifier-resolution=node --loader=ts-node/esm script.ts&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"playwright-chromium"</span>: <span class="pl-s"><span class="pl-pds">"</span>latest<span class="pl-pds">"</span></span>, <span class="pl-ent">"ts-node"</span>: <span class="pl-s"><span class="pl-pds">"</span>latest<span class="pl-pds">"</span></span>, <span class="pl-ent">"typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>latest<span class="pl-pds">"</span></span> }, <span class="pl-ent">"scripts"</span>: { <span class="pl-ent">"start"</span>: <span class="pl-s"><span class="pl-pds">"</span>node --experimental-specifier-resolution=node --loader=ts-node/esm script.ts<span class="pl-pds">"</span></span> } }</pre></div> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Capture all network traffic, including:</p> <ul dir="auto"> <li>requests originating from iframes,</li> <li>nested iframes,</li> <li>service workers</li> </ul> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Saving ./playwright-issue/index.html as index.html Saving https://cdn.jsdelivr.net/npm/@codesandbox/nodebox/build/index.min.mjs as index.min.mjs Saving ./playwright-issue/index.html as index.html Saving https://nodebox-runtime.codesandbox.io/ as index.html"><pre class="notranslate"><code class="notranslate">Saving ./playwright-issue/index.html as index.html Saving https://cdn.jsdelivr.net/npm/@codesandbox/nodebox/build/index.min.mjs as index.min.mjs Saving ./playwright-issue/index.html as index.html Saving https://nodebox-runtime.codesandbox.io/ as index.html </code></pre></div> <p dir="auto">Less than what you would expect given a look at the network panel in the Chrome DevTools.</p> <hr> <p dir="auto">I'm going to compile some more of what I came across while researching this issue and what I tried below, but it seemed like this has been asked frequently enough with no particularly clear, working solution that I hope to at least document it better.</p> <ul dir="auto"> <li> <p dir="auto"><a href="https://stackoverflow.com/questions/70645680/does-chromium-support-intercept-webworker-requests-via-cdp" rel="nofollow">https://stackoverflow.com/questions/70645680/does-chromium-support-intercept-webworker-requests-via-cdp</a></p> <blockquote> <p dir="auto">After digging in puppeteer source code and tracing raw protocol messages, it seems that calling <code class="notranslate">page.setRequestInterception(true)</code> also intercepts WebWorker requests, but <strong>these requests never issue any <code class="notranslate">Network.requestWillBeSent</code> events</strong>, which is known as <code class="notranslate">page.request</code> events in puppeteer, then WebWorker requests hang for waiting for a <code class="notranslate">request.continue()</code> which is usually called in the <code class="notranslate">page.request</code> event handler.</p> </blockquote> </li> </ul> <p dir="auto">Mentions using <a href="https://chromedevtools.github.io/devtools-protocol/tot/Target/#event-attachedToTarget" rel="nofollow"><code class="notranslate">Target.attachedToTarget</code></a>.</p> <ul dir="auto"> <li><a href="https://groups.google.com/a/chromium.org/g/chromium-extensions/c/3AnHiXwNO4o?pli=1" rel="nofollow">https://groups.google.com/a/chromium.org/g/chromium-extensions/c/3AnHiXwNO4o?pli=1</a></li> </ul> <p dir="auto">Someone experiencing the same issue. Notes that they tried sending <a href="https://chromedevtools.github.io/devtools-protocol/tot/Target/#method-setAutoAttach" rel="nofollow"><code class="notranslate">Target.setAutoAttach</code></a>, which didn't appear to change anything for me. Also notes that they couldn't get <a href="https://chromedevtools.github.io/devtools-protocol/tot/Target/#event-targetCreated" rel="nofollow"><code class="notranslate">Target.targetCreated</code></a> to fire, which I also encountered.</p> <ul dir="auto"> <li><a href="https://stackoverflow.com/questions/63357370/capture-requests-xhr-js-css-from-embedded-iframes-using-devtool-protocol" rel="nofollow">https://stackoverflow.com/questions/63357370/capture-requests-xhr-js-css-from-embedded-iframes-using-devtool-protocol</a></li> </ul> <p dir="auto">Issue could be worked around by using the <code class="notranslate">--disable-features</code> flag. Linked resources also talks about how <a href="https://groups.google.com/g/chrome-debugging-protocol/c/n1FQ4Ypww6w" rel="nofollow"><code class="notranslate">setAutoAttach</code> shouldn't be relied on</a>.</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="334252168" data-permission-text="Title is private" data-url="https://github.com/puppeteer/puppeteer/issues/2781" data-hovercard-type="issue" data-hovercard-url="/puppeteer/puppeteer/issues/2781/hovercard?comment_id=513045753&amp;comment_type=issue_comment" href="https://github.com/puppeteer/puppeteer/issues/2781#issuecomment-513045753">puppeteer/puppeteer#2781 (comment)</a></li> </ul> <p dir="auto">This is what my current code is based on, although I couldn't get <code class="notranslate">browser.on('targetcreated')</code> to fire. <a href="https://github.com/puppeteer/puppeteer/issues/2781#issuecomment-942001514" data-hovercard-type="issue" data-hovercard-url="/puppeteer/puppeteer/issues/2781/hovercard">Someone towards the bottom mentions <code class="notranslate">serviceWorkerTarget.setRequestInterception</code></a>.</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1305349954" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/15684" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/15684/hovercard" href="https://github.com/microsoft/playwright/issues/15684">#15684</a></li> </ul> <blockquote> <p dir="auto">Currently, Playwright supports an experimental feature to inspect and route Network traffic made by Service Workers (in Chrome / Chromium). To learn more and enable, please read: <a href="https://playwright.dev/docs/service-workers-experimental" rel="nofollow">https://playwright.dev/docs/service-workers-experimental</a>.</p> </blockquote> <p dir="auto">Looks like there is some <a href="https://playwright.dev/docs/service-workers-experimental" rel="nofollow">experimental Service Worker</a>-specific network events that I could enable.</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="570117009" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/1090" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/1090/hovercard?comment_id=1192893661&amp;comment_type=issue_comment" href="https://github.com/microsoft/playwright/issues/1090#issuecomment-1192893661">#1090 (comment)</a></li> </ul> <p dir="auto">Further confirmation that I should be using the <a href="https://playwright.dev/docs/service-workers-experimental" rel="nofollow">experimental Service Worker</a>-specific network events (<a href="https://playwright.dev/docs/network#missing-network-events-and-service-workers" rel="nofollow">this section in particular</a>).</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="390860655" data-permission-text="Title is private" data-url="https://github.com/puppeteer/puppeteer/issues/3667" data-hovercard-type="issue" data-hovercard-url="/puppeteer/puppeteer/issues/3667/hovercard?comment_id=611477600&amp;comment_type=issue_comment" href="https://github.com/puppeteer/puppeteer/issues/3667#issuecomment-611477600">puppeteer/puppeteer#3667 (comment)</a></li> </ul> <blockquote> <p dir="auto">Playwright seems to have worked around this/provided a fix: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="575927512" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/1226" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/playwright/pull/1226/hovercard" href="https://github.com/microsoft/playwright/pull/1226">#1226</a></p> </blockquote> <p dir="auto">Something about iframes and auto-attaching? It sounds like with this PR, frames should auto-attach. The PR talks about frames as being popups, but surely it should apply to anything that creates a new frame.</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1380203602" data-permission-text="Title is private" data-url="https://github.com/puppeteer/puppeteer/issues/8991" data-hovercard-type="issue" data-hovercard-url="/puppeteer/puppeteer/issues/8991/hovercard" href="https://github.com/puppeteer/puppeteer/issues/8991">puppeteer/puppeteer#8991</a></li> </ul> <p dir="auto">Another suggestion to use <code class="notranslate">setRequestInterception</code>, which is deprecated and suggests you use <code class="notranslate">Fetch.enable</code> instead. I don't fully understand how I would programmatically attach to all of the frames.</p> <p dir="auto">That's everything that seems relevant.</p>
0
<p dir="auto">Think this feature would be very useful</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; type Foo bar baz::Int qux::Float64 end julia&gt; foo = Foo(&quot;Hello, world.&quot;, 23, 1.5) Foo(&quot;Hello, world.&quot;,23,1.5) julia&gt; foo.&lt;tab&gt; bar baz qux"><pre class="notranslate"><code class="notranslate">julia&gt; type Foo bar baz::Int qux::Float64 end julia&gt; foo = Foo("Hello, world.", 23, 1.5) Foo("Hello, world.",23,1.5) julia&gt; foo.&lt;tab&gt; bar baz qux </code></pre></div> <p dir="auto">press <code class="notranslate">tab</code> after name and dot, show its fields only.</p> <p dir="auto">Would this be hard to implement ? I have no idea how auto-complete is implemented.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; z = match(r&quot;a&quot;, &quot;apa&quot;) RegexMatch(&quot;a&quot;) julia&gt; z.&lt;tab&gt;&lt;tab&gt;"><pre class="notranslate">julia<span class="pl-k">&gt;</span> z <span class="pl-k">=</span> <span class="pl-c1">match</span>(<span class="pl-sr"><span class="pl-pds">r"</span>a<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>apa<span class="pl-pds">"</span></span>) <span class="pl-c1">RegexMatch</span>(<span class="pl-s"><span class="pl-pds">"</span>a<span class="pl-pds">"</span></span>) julia<span class="pl-k">&gt;</span> z<span class="pl-k">.&lt;</span>tab<span class="pl-k">&gt;&lt;</span>tab<span class="pl-k">&gt;</span></pre></div> <p dir="auto">I know I can find the names of a composite type with <code class="notranslate">typeof(z).names</code> but I'd rather the repl do it for me and sprinkle some of its automagic-super-duper-wonderful-tab-completion-dust all over that tuple. :)</p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>Create new File</li> <li>Try to safe empty file with cmd+shift+s</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.184.0<br> <strong>System</strong>: Mac OS X 10.9.5<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module 'dialog'<br> Error: Cannot find module 'dialog'<br> at Function.Module._resolveFilename (module.js:351:15)<br> at Function.Module._load (module.js:293:25)<br> at Module.require (module.js:380:17)<br> at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)<br> at EventEmitter.emit (events.js:119:17)<br> at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)<br> at EventEmitter.emit (events.js:119:17)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77 Error: Cannot find module 'dialog' Error: Cannot find module 'dialog' at Function.Module._resolveFilename (module.js:351:15) at Function.Module._load (module.js:293:25) at Module.require (module.js:380:17) at EventEmitter.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79) at EventEmitter.emit (events.js:119:17) at EventEmitter.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23) at EventEmitter.emit (events.js:119:17) at metaToValue (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77:15) at Object.exports.require (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:157:34) at Atom.module.exports.Atom.showSaveDialogSync (/Applications/Atom.app/Contents/Resources/app/src/atom.js:836:23) at Pane.module.exports.Pane.saveItemAs (/Applications/Atom.app/Contents/Resources/app/src/pane.js:560:26) at Pane.module.exports.Pane.saveActiveItemAs (/Applications/Atom.app/Contents/Resources/app/src/pane.js:529:19) at Workspace.module.exports.Workspace.saveActivePaneItemAs (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:693:35) at atom-workspace.atom.commands.add.core:save-as (/Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:298:30) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29) at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61 at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)"><pre class="notranslate"><code class="notranslate">At /Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77 Error: Cannot find module 'dialog' Error: Cannot find module 'dialog' at Function.Module._resolveFilename (module.js:351:15) at Function.Module._load (module.js:293:25) at Module.require (module.js:380:17) at EventEmitter.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79) at EventEmitter.emit (events.js:119:17) at EventEmitter.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23) at EventEmitter.emit (events.js:119:17) at metaToValue (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77:15) at Object.exports.require (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:157:34) at Atom.module.exports.Atom.showSaveDialogSync (/Applications/Atom.app/Contents/Resources/app/src/atom.js:836:23) at Pane.module.exports.Pane.saveItemAs (/Applications/Atom.app/Contents/Resources/app/src/pane.js:560:26) at Pane.module.exports.Pane.saveActiveItemAs (/Applications/Atom.app/Contents/Resources/app/src/pane.js:529:19) at Workspace.module.exports.Workspace.saveActivePaneItemAs (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:693:35) at atom-workspace.atom.commands.add.core:save-as (/Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:298:30) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29) at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61 at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -0:42.1 core:save (atom-text-editor.editor) -0:16.6 application:new-file (atom-text-editor.editor) 3x -0:15.0 core:save-as (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -0:42.1 core:save (atom-text-editor.editor) -0:16.6 application:new-file (atom-text-editor.editor) 3x -0:15.0 core:save-as (atom-text-editor.editor.is-focused) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;atom-dark-syntax&quot; ] }, &quot;editor&quot;: { &quot;fontSize&quot;: 15, &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>atom-dark-syntax<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">15</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 No installed packages # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> <span class="pl-en">No</span> <span class="pl-en">installed</span> packages <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>Right-click a file in the left column. (The file I used was green, not added to Git, and empty.)</li> <li>Click Delete.</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.186.0<br> <strong>System</strong>: Mac OS X 10.10.2<br> <strong>Thrown From</strong>: <a href="https://github.com/atom/tree-view">tree-view</a> package, v0.164.0</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module 'dialog'<br> Error: Cannot find module 'dialog'<br> at Function.Module._resolveFilename (module.js:351:15)<br> at Function.Module._load (module.js:293:25)<br> at Module.require (module.js:380:17)<br> at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)<br> at EventEmitter.emit (events.js:119:17)<br> at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)<br> at EventEmitter.emit (events.js:119:17)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77 Error: Cannot find module 'dialog' Error: Cannot find module 'dialog' at Function.Module._resolveFilename (module.js:351:15) at Function.Module._load (module.js:293:25) at Module.require (module.js:380:17) at EventEmitter.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79) at EventEmitter.emit (events.js:119:17) at EventEmitter.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23) at EventEmitter.emit (events.js:119:17) at metaToValue (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77:15) at Object.exports.require (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:157:34) at Atom.module.exports.Atom.confirm (/Applications/Atom.app/Contents/Resources/app/src/atom.js:705:23) at TreeView.module.exports.TreeView.removeSelectedEntries (/Applications/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/tree-view.js:895:19) at atom-workspace.disposables.add.atom.commands.add.tree-view:remove (/Applications/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/main.js:84:39) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29) at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61) at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19) at jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23) at EventEmitter.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:80:67)"><pre class="notranslate"><code class="notranslate">At /Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77 Error: Cannot find module 'dialog' Error: Cannot find module 'dialog' at Function.Module._resolveFilename (module.js:351:15) at Function.Module._load (module.js:293:25) at Module.require (module.js:380:17) at EventEmitter.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79) at EventEmitter.emit (events.js:119:17) at EventEmitter.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23) at EventEmitter.emit (events.js:119:17) at metaToValue (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77:15) at Object.exports.require (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:157:34) at Atom.module.exports.Atom.confirm (/Applications/Atom.app/Contents/Resources/app/src/atom.js:705:23) at TreeView.module.exports.TreeView.removeSelectedEntries (/Applications/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/tree-view.js:895:19) at atom-workspace.disposables.add.atom.commands.add.tree-view:remove (/Applications/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/main.js:84:39) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29) at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61) at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19) at jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23) at EventEmitter.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:80:67) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 6x -4:21.1 core:move-up (atom-text-editor.editor) -4:19.1 core:move-left (atom-text-editor.editor) -4:15.5 core:save (atom-text-editor.editor) -2:19.6 core:backspace (atom-text-editor.editor) 3x -2:17.4 core:move-right (atom-text-editor.editor) 2x -2:07.9 editor:move-to-first-character-of-line (atom-text-editor.editor) -2:07.4 core:select-down (atom-text-editor.editor) -2:06.5 core:copy (atom-text-editor.editor) -2:04.1 core:move-up (atom-text-editor.editor) -2:03.9 core:move-down (atom-text-editor.editor) -2:03.7 core:select-down (atom-text-editor.editor) -2:03.4 core:copy (atom-text-editor.editor) 2x -2:00.7 editor:move-to-first-character-of-line (atom-text-editor.editor) 3x -2:00.3 core:select-down (atom-text-editor.editor) -1:59.8 core:paste (atom-text-editor.editor) 3x -1:58.7 core:save (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> 6x -4:21.1 core:move-up (atom-text-editor.editor) -4:19.1 core:move-left (atom-text-editor.editor) -4:15.5 core:save (atom-text-editor.editor) -2:19.6 core:backspace (atom-text-editor.editor) 3x -2:17.4 core:move-right (atom-text-editor.editor) 2x -2:07.9 editor:move-to-first-character-of-line (atom-text-editor.editor) -2:07.4 core:select-down (atom-text-editor.editor) -2:06.5 core:copy (atom-text-editor.editor) -2:04.1 core:move-up (atom-text-editor.editor) -2:03.9 core:move-down (atom-text-editor.editor) -2:03.7 core:select-down (atom-text-editor.editor) -2:03.4 core:copy (atom-text-editor.editor) 2x -2:00.7 editor:move-to-first-character-of-line (atom-text-editor.editor) 3x -2:00.3 core:select-down (atom-text-editor.editor) -1:59.8 core:paste (atom-text-editor.editor) 3x -1:58.7 core:save (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;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;atom-dark-syntax&quot; ], &quot;destroyEmptyPanes&quot;: false }, &quot;tree-view&quot;: {} }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>atom-dark-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"destroyEmptyPanes"</span>: <span class="pl-c1">false</span> }, <span class="pl-ent">"tree-view"</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 language-haml, v0.15.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> language<span class="pl-k">-</span>haml, v0.<span class="pl-ii">15</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<h3 dir="auto">Reproducing code example:</h3> <p dir="auto">On my ARM Chromebook, running Debian 9.9 under Crouton I have a problem where the answer should be 'NaT', but I am getting '1970-01-01T00:00:00.000000000'.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np x = np.array([1,2,np.nan,np.nan]).astype('M8[ns]') print(x)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>]).<span class="pl-en">astype</span>(<span class="pl-s">'M8[ns]'</span>) <span class="pl-en">print</span>(<span class="pl-s1">x</span>)</pre></div> <p dir="auto">Will print:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array(['1970-01-01T00:00:00.000000001', '1970-01-01T00:00:00.000000002', '1970-01-01T00:00:00.000000000', '1970-01-01T00:00:00.000000000'], dtype='datetime64[ns]')"><pre class="notranslate"><code class="notranslate">array(['1970-01-01T00:00:00.000000001', '1970-01-01T00:00:00.000000002', '1970-01-01T00:00:00.000000000', '1970-01-01T00:00:00.000000000'], dtype='datetime64[ns]') </code></pre></div> <h3 dir="auto">Error message:</h3> <p dir="auto">No error message.</p> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">1.16.3 3.7.3 (default, May 22 2019, 00:01:31)<br> [GCC 6.3.0 20170516]</p>
<p dir="auto">Doing some calculations I discover this unexpected behavior related with<br> <code class="notranslate">dtypes</code>. I hope some of you can point me if this is a bug or I'm doing<br> something wrong.</p> <h3 dir="auto">Reproducing code example:</h3> <p dir="auto">Here is a minimal peace of my code which tries to reproduce the problem:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np # VERSIONS USED np.__version__ # '1.18.1' np.__version__ # '1.19.0' x = 731965.048356481480000000000000000000 x_arr = np.array([x]) big_int = 86400000000000 cnst = 719529 # THIS WORKS arr1 = (x_arr - cnst) * big_int out1 = arr1.astype(&quot;datetime64[ns]&quot;) # THIS FAILS arr2 = x_arr * big_int - cnst * big_int out2 = arr2.astype(&quot;datetime64[ns]&quot;) # WORKAROUND big_int = 86400000000000. # NOW IS A FLOAT arr3 = x_arr * big_int - cnst * big_int out3 = arr3.astype(&quot;datetime64[ns]&quot;)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-c"># VERSIONS USED</span> <span class="pl-s1">np</span>.<span class="pl-s1">__version__</span> <span class="pl-c"># '1.18.1'</span> <span class="pl-s1">np</span>.<span class="pl-s1">__version__</span> <span class="pl-c"># '1.19.0'</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-c1">731965.048356481480000000000000000000</span> <span class="pl-s1">x_arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s1">x</span>]) <span class="pl-s1">big_int</span> <span class="pl-c1">=</span> <span class="pl-c1">86400000000000</span> <span class="pl-s1">cnst</span> <span class="pl-c1">=</span> <span class="pl-c1">719529</span> <span class="pl-c"># THIS WORKS</span> <span class="pl-s1">arr1</span> <span class="pl-c1">=</span> (<span class="pl-s1">x_arr</span> <span class="pl-c1">-</span> <span class="pl-s1">cnst</span>) <span class="pl-c1">*</span> <span class="pl-s1">big_int</span> <span class="pl-s1">out1</span> <span class="pl-c1">=</span> <span class="pl-s1">arr1</span>.<span class="pl-en">astype</span>(<span class="pl-s">"datetime64[ns]"</span>) <span class="pl-c"># THIS FAILS</span> <span class="pl-s1">arr2</span> <span class="pl-c1">=</span> <span class="pl-s1">x_arr</span> <span class="pl-c1">*</span> <span class="pl-s1">big_int</span> <span class="pl-c1">-</span> <span class="pl-s1">cnst</span> <span class="pl-c1">*</span> <span class="pl-s1">big_int</span> <span class="pl-s1">out2</span> <span class="pl-c1">=</span> <span class="pl-s1">arr2</span>.<span class="pl-en">astype</span>(<span class="pl-s">"datetime64[ns]"</span>) <span class="pl-c"># WORKAROUND</span> <span class="pl-s1">big_int</span> <span class="pl-c1">=</span> <span class="pl-c1">86400000000000.</span> <span class="pl-c"># NOW IS A FLOAT</span> <span class="pl-s1">arr3</span> <span class="pl-c1">=</span> <span class="pl-s1">x_arr</span> <span class="pl-c1">*</span> <span class="pl-s1">big_int</span> <span class="pl-c1">-</span> <span class="pl-s1">cnst</span> <span class="pl-c1">*</span> <span class="pl-s1">big_int</span> <span class="pl-s1">out3</span> <span class="pl-c1">=</span> <span class="pl-s1">arr3</span>.<span class="pl-en">astype</span>(<span class="pl-s">"datetime64[ns]"</span>)</pre></div> <h4 dir="auto">MWE</h4> <p dir="auto">Here some code that I use for debugging a minimal reproducible example that<br> shows this unexpected behavior.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def check_dtype(big_int): a = np.array([731965.04835648148]) * big_int b = 719529 * big_int c = a - b return c.dtype works_int = 20000000000000 fails_int = 30000000000000 check_dtype(works_int) # dtype('float64') check_dtype(fails_int) # dtype('O')"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">check_dtype</span>(<span class="pl-s1">big_int</span>): <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">731965.04835648148</span>]) <span class="pl-c1">*</span> <span class="pl-s1">big_int</span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-c1">719529</span> <span class="pl-c1">*</span> <span class="pl-s1">big_int</span> <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span> <span class="pl-c1">-</span> <span class="pl-s1">b</span> <span class="pl-k">return</span> <span class="pl-s1">c</span>.<span class="pl-s1">dtype</span> <span class="pl-s1">works_int</span> <span class="pl-c1">=</span> <span class="pl-c1">20000000000000</span> <span class="pl-s1">fails_int</span> <span class="pl-c1">=</span> <span class="pl-c1">30000000000000</span> <span class="pl-en">check_dtype</span>(<span class="pl-s1">works_int</span>) <span class="pl-c"># dtype('float64')</span> <span class="pl-en">check_dtype</span>(<span class="pl-s1">fails_int</span>) <span class="pl-c"># dtype('O')</span></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import sys, numpy; print(numpy.__version__, sys.version) 1.19.0 3.7.7 (default, Mar 26 2020, 15:48:22) [GCC 7.3.0]"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">numpy</span>; <span class="pl-en">print</span>(<span class="pl-s1">numpy</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version</span>) <span class="pl-c1">1.19</span>.<span class="pl-c1">0</span> <span class="pl-c1">3.7</span>.<span class="pl-c1">7</span> (<span class="pl-s1">default</span>, <span class="pl-v">Mar</span> <span class="pl-c1">26</span> <span class="pl-c1">2020</span>, <span class="pl-c1">15</span>:<span class="pl-c1">48</span>:<span class="pl-c1">22</span>) [<span class="pl-v">GCC</span> <span class="pl-c1">7.3</span><span class="pl-c1">.0</span>]</pre></div>
0
<p dir="auto">Test case:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#[no_mangle] fn main() {}"><pre class="notranslate"><span class="pl-c1">#<span class="pl-kos">[</span>no_mangle<span class="pl-kos">]</span></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">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nom.rs:2:1: 2:13 warning: function main is marked #[no_mangle], but not exported, #[warn(private_no_mangle_fns)] on by default nom.rs:2 fn main() {} ^~~~~~~~~~~~ rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty&lt;X, Y*&gt;::ret_type llvm::cast(Y*) [with X = llvm::Function; Y = llvm::Value; typename llvm::cast_retty&lt;X, Y*&gt;::ret_type = llvm::Function*]: Assertion `isa&lt;X&gt;(Val) &amp;&amp; &quot;cast&lt;Ty&gt;() argument of incompatible type!&quot;' failed. Aborted"><pre class="notranslate"><code class="notranslate">nom.rs:2:1: 2:13 warning: function main is marked #[no_mangle], but not exported, #[warn(private_no_mangle_fns)] on by default nom.rs:2 fn main() {} ^~~~~~~~~~~~ rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty&lt;X, Y*&gt;::ret_type llvm::cast(Y*) [with X = llvm::Function; Y = llvm::Value; typename llvm::cast_retty&lt;X, Y*&gt;::ret_type = llvm::Function*]: Assertion `isa&lt;X&gt;(Val) &amp;&amp; "cast&lt;Ty&gt;() argument of incompatible type!"' failed. Aborted </code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#[no_mangle] fn main() { println!(&quot;hello world&quot;); }"><pre class="notranslate"><code class="notranslate">#[no_mangle] fn main() { println!("hello world"); } </code></pre></div> <p dir="auto">when <code class="notranslate">rustc hello.rs</code>, rustc panicked:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc: /home/liigo/rust/rust/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty&lt;X, Y*&gt;::ret_type llvm::cast(Y*) [with X = llvm::Function; Y = llvm::Value; typename llvm::cast_retty&lt;X, Y*&gt;::ret_type = llvm::Function*]: Assertion `isa&lt;X&gt;(Val) &amp;&amp; &quot;cast&lt;Ty&gt;() argument of incompatible type!&quot;' failed. [1] 4419 abort rustc hello.rs"><pre class="notranslate"><code class="notranslate">rustc: /home/liigo/rust/rust/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty&lt;X, Y*&gt;::ret_type llvm::cast(Y*) [with X = llvm::Function; Y = llvm::Value; typename llvm::cast_retty&lt;X, Y*&gt;::ret_type = llvm::Function*]: Assertion `isa&lt;X&gt;(Val) &amp;&amp; "cast&lt;Ty&gt;() argument of incompatible type!"' failed. [1] 4419 abort rustc hello.rs </code></pre></div>
1
<p dir="auto">I have seen that there are only Linux and MacOS based installations for the C language.<br> Kindly let me know if there is any tensorflow for the Windows in C langauage.</p>
<p dir="auto">I am working with Tensorflow in Java using the Maven dependency.</p> <p dir="auto">I would like to use the GPU version in my Java application but I notice there is only a supported Maven repository for Linux.</p> <p dir="auto">Will there be support for Tensorflow with Java in windows?<br> If so then what is the timeline for this?</p> <p dir="auto">Otherwise is there another way round it?</p> <p dir="auto">Thanks.</p>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">selinux</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.0.0 config file = /home/bert/.ansible.cfg configured module search path = [u'/home/bert/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.13 (default, May 10 2017, 20:04:28) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]"><pre class="notranslate"><code class="notranslate">ansible 2.4.0.0 config file = /home/bert/.ansible.cfg configured module search path = [u'/home/bert/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.13 (default, May 10 2017, 20:04:28) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CACHE_PLUGIN(/home/bert/.ansible.cfg) = redis COMMAND_WARNINGS(/home/bert/.ansible.cfg) = True DEFAULT_CALLBACK_PLUGIN_PATH(/home/bert/.ansible.cfg) = [u'/home/bert/.ansible/plugins/callback_plugi DEFAULT_GATHERING(/home/bert/.ansible.cfg) = smart DEFAULT_LOAD_CALLBACK_PLUGINS(/home/bert/.ansible.cfg) = True DEFAULT_MANAGED_STR(/home/bert/.ansible.cfg) = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S DEFAULT_ROLES_PATH(/home/bert/.ansible.cfg) = [u'/home/bert/.ansible/roles'] RETRY_FILES_ENABLED(/home/bert/.ansible.cfg) = False"><pre class="notranslate"><code class="notranslate">CACHE_PLUGIN(/home/bert/.ansible.cfg) = redis COMMAND_WARNINGS(/home/bert/.ansible.cfg) = True DEFAULT_CALLBACK_PLUGIN_PATH(/home/bert/.ansible.cfg) = [u'/home/bert/.ansible/plugins/callback_plugi DEFAULT_GATHERING(/home/bert/.ansible.cfg) = smart DEFAULT_LOAD_CALLBACK_PLUGINS(/home/bert/.ansible.cfg) = True DEFAULT_MANAGED_STR(/home/bert/.ansible.cfg) = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S DEFAULT_ROLES_PATH(/home/bert/.ansible.cfg) = [u'/home/bert/.ansible/roles'] RETRY_FILES_ENABLED(/home/bert/.ansible.cfg) = False </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <ul dir="auto"> <li>Management node: Fedora 25</li> <li>Target machine: CentOS 7.4</li> </ul> <h5 dir="auto">SUMMARY</h5> <p dir="auto">After running a playbook with the SELinux module, the <code class="notranslate">/etc/selinux/config</code> file no longer has line endings. Parsing the config file on subsequent runs of the playbook will fail, as will the <code class="notranslate">sestatus</code> command.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: srv001 become: true tasks: - name: Ensure SELinux is enforcing selinux: policy: targeted state: enforcing"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">srv001</span> <span class="pl-ent">become</span>: <span class="pl-c1">true</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">Ensure SELinux is enforcing</span> <span class="pl-ent">selinux</span>: <span class="pl-ent">policy</span>: <span class="pl-s">targeted</span> <span class="pl-ent">state</span>: <span class="pl-s">enforcing</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">SELinux config file should contain:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=enforcing # SELINUXTYPE= can take one of these three values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted "><pre class="notranslate"><code class="notranslate">$ cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=enforcing # SELINUXTYPE= can take one of these three values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat /etc/selinux/config # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - No SELinux policy is loaded.SELINUX=enforcing# SELINUXTYPE= can take one of three two values:# targeted - Targeted processes are protected,# minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection.SELINUXTYPE=targeted"><pre class="notranslate"><code class="notranslate">$ cat /etc/selinux/config # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - No SELinux policy is loaded.SELINUX=enforcing# SELINUXTYPE= can take one of three two values:# targeted - Targeted processes are protected,# minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection.SELINUXTYPE=targeted </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">selinux</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.0.0"><pre class="notranslate"><code class="notranslate">ansible 2.4.0.0 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ANSIBLE_SSH_PIPELINING(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = True CACHE_PLUGIN(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = jsonfile CACHE_PLUGIN_CONNECTION(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = facts CACHE_PLUGIN_TIMEOUT(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = 600 DEFAULT_GATHERING(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = smart DEFAULT_HOST_LIST(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = [u'/Users/mwillsher/src/cloud-deployment/ansible-playbooks/inventory/aws'] DEFAULT_ROLES_PATH(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = [u'/Users/mwillsher/src/cloud-deployment/ansible-playbooks/roles', u'/Users/mwillsher/sr DISPLAY_SKIPPED_HOSTS(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = False HOST_KEY_CHECKING(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = False"><pre class="notranslate"><code class="notranslate">ANSIBLE_SSH_PIPELINING(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = True CACHE_PLUGIN(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = jsonfile CACHE_PLUGIN_CONNECTION(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = facts CACHE_PLUGIN_TIMEOUT(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = 600 DEFAULT_GATHERING(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = smart DEFAULT_HOST_LIST(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = [u'/Users/mwillsher/src/cloud-deployment/ansible-playbooks/inventory/aws'] DEFAULT_ROLES_PATH(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = [u'/Users/mwillsher/src/cloud-deployment/ansible-playbooks/roles', u'/Users/mwillsher/sr DISPLAY_SKIPPED_HOSTS(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = False HOST_KEY_CHECKING(/Users/mwillsher/src/cloud-deployment/ansible-playbooks/ansible.cfg) = False </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">MacOS running Ansible<br> CentOS 6 target</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">selinux module strips newlines from /etc/sysconfig/selinux</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Before</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[root@ip-10-100-151-172 ~]# more /etc/sysconfig/selinux ~ # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=enforcing # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted"><pre class="notranslate"><code class="notranslate">[root@ip-10-100-151-172 ~]# more /etc/sysconfig/selinux ~ # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=enforcing # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible -m selinux -a &quot;state=disabled&quot; IP -vvv -u root -i inventory/aws/ec2.py"><pre class="notranslate"><code class="notranslate">ansible -m selinux -a "state=disabled" IP -vvv -u root -i inventory/aws/ec2.py </code></pre></div> <p dir="auto">After</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - No SELinux policy is loaded.SELINUX=disabled# SELINUXTYPE= can take one of these two values:# targeted - Targeted processes are protected,# mls - Multi Level Security protection.SELINUXTYPE=targeted"><pre class="notranslate"><code class="notranslate"># This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - No SELinux policy is loaded.SELINUX=disabled# SELINUXTYPE= can take one of these two values:# targeted - Targeted processes are protected,# mls - Multi Level Security protection.SELINUXTYPE=targeted </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Valuse changed in file and EOL chars left intact.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">New lines removed, file invalid.</p>
1
<p dir="auto"><code class="notranslate">DataFrame.duplicated</code> correctly uses <code class="notranslate">hashtable.duplicated_int64</code> a specialized routine, while <code class="notranslate">core.series.IndexOpsMixin.duplicated</code> uses <code class="notranslate">lib.duplicated</code> an object based one.</p> <p dir="auto">as its almost always better to factorize then use the fast routine, than to do object comparisons.<br> but YMMV, so needs a couple of perf tests.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [3]: s = Series(np.random.randint(0,10000,size=100000)) In [4]: %timeit s.duplicated() 100 loops, best of 3: 5.75 ms per loop In [6]: df = s.to_frame() In [8]: %timeit df.duplicated() 1000 loops, best of 3: 1.86 ms per loop"><pre class="notranslate"><code class="notranslate">In [3]: s = Series(np.random.randint(0,10000,size=100000)) In [4]: %timeit s.duplicated() 100 loops, best of 3: 5.75 ms per loop In [6]: df = s.to_frame() In [8]: %timeit df.duplicated() 1000 loops, best of 3: 1.86 ms per loop </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scatter_matrix</code> (deprecate, redirect to <code class="notranslate">seaborn</code>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">andrews_curve</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">parallel_coordinates</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">lag_plot</code> (maybe rename to <code class="notranslate">lag</code>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">autocorrelation_plot</code> (maybe rename to <code class="notranslate">autocorrelation</code>?)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">bootstrap_plot</code> (maybe rename to <code class="notranslate">bootstrap</code>?)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">radviz</code></li> </ul> <p dir="auto">I think it would be nice to allow <a href="http://pandas.pydata.org/pandas-docs/version/0.15.0/visualization.html#scatter-matrix-plot" rel="nofollow">scatter_matrix</a> to be called directly on a DataFrame. Currently, <code class="notranslate">scatter_matrix</code> is a separate function that takes a DataFrame as a parameter, but it seems like it would be easy enough to rework to allow it to be called directly on a DataFrame as well. Effectively, the convenience function would look something like:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def scatter_matrix(self, ...): pandas.tools.plotting.scatter_matrix(self.data, ...)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">scatter_matrix</span>(<span class="pl-s1">self</span>, ...): <span class="pl-s1">pandas</span>.<span class="pl-s1">tools</span>.<span class="pl-s1">plotting</span>.<span class="pl-en">scatter_matrix</span>(<span class="pl-s1">self</span>.<span class="pl-s1">data</span>, ...)</pre></div> <p dir="auto">Is this feature feasible?</p>
0
<p dir="auto">The solaris scripts are using grep with the -E option. This option is not supported in the default distribution.</p> <p dir="auto">[ Dec 28 15:11:22 Disabled. ]<br> [ Dec 28 15:12:11 Enabled. ]<br> [ Dec 28 15:12:11 Executing start method ("/scratch/elasticsearch/bin/elasticsearch"). ]<br> grep: illegal option -- E</p>
<p dir="auto">Since Elasticsearch 2.1.1 the elasticsearch startup script has contained this line:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="daemonized=`echo $* | grep -E -- '(^-d |-d$| -d |--daemonize$|--daemonize )'`"><pre class="notranslate"><code class="notranslate">daemonized=`echo $* | grep -E -- '(^-d |-d$| -d |--daemonize$|--daemonize )'` </code></pre></div> <p dir="auto">This means Elasticsearch 2.1 doesn't start on Solaris. Changing grep -E to egrep makes it work on all of Solaris, Linux and Mac OS X:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="daemonized=`echo $* | egrep -- '(^-d |-d$| -d |--daemonize$|--daemonize )'`"><pre class="notranslate"><code class="notranslate">daemonized=`echo $* | egrep -- '(^-d |-d$| -d |--daemonize$|--daemonize )'` </code></pre></div> <p dir="auto">On Solaris:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ echo -d -x -g --hello | grep -E -- '(^-d |-d$| -d |--daemonize$|--daemonize )' grep: illegal option -- E Usage: grep [-c|-l|-q] -bhinsvw pattern file . . . $ echo -d -x -g --hello | egrep -- '(^-d |-d$| -d |--daemonize$|--daemonize )' -d -x -g --hello"><pre class="notranslate"><code class="notranslate">$ echo -d -x -g --hello | grep -E -- '(^-d |-d$| -d |--daemonize$|--daemonize )' grep: illegal option -- E Usage: grep [-c|-l|-q] -bhinsvw pattern file . . . $ echo -d -x -g --hello | egrep -- '(^-d |-d$| -d |--daemonize$|--daemonize )' -d -x -g --hello </code></pre></div> <p dir="auto">On Linux and Mac OS X:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ echo -d -x -g --hello | grep -E -- '(^-d |-d$| -d |--daemonize$|--daemonize )' -d -x -g --hello $ echo -d -x -g --hello | egrep -- '(^-d |-d$| -d |--daemonize$|--daemonize )' -d -x -g --hello"><pre class="notranslate"><code class="notranslate">$ echo -d -x -g --hello | grep -E -- '(^-d |-d$| -d |--daemonize$|--daemonize )' -d -x -g --hello $ echo -d -x -g --hello | egrep -- '(^-d |-d$| -d |--daemonize$|--daemonize )' -d -x -g --hello </code></pre></div> <p dir="auto">However, I am not sure if there are other platforms where egrep wouldn't work, so if there are any others you want to support you might want to check them too.</p>
1
<p dir="auto">Consider the following code:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy from numpy.linalg import inv from multiprocessing import Process def hang(): a = numpy.identity(3) b = inv(a) p = Process(target=hang) p.start() p.join()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">from</span> <span class="pl-s1">numpy</span>.<span class="pl-s1">linalg</span> <span class="pl-k">import</span> <span class="pl-s1">inv</span> <span class="pl-k">from</span> <span class="pl-s1">multiprocessing</span> <span class="pl-k">import</span> <span class="pl-v">Process</span> <span class="pl-k">def</span> <span class="pl-en">hang</span>(): <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-en">identity</span>(<span class="pl-c1">3</span>) <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-en">inv</span>(<span class="pl-s1">a</span>) <span class="pl-s1">p</span> <span class="pl-c1">=</span> <span class="pl-v">Process</span>(<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">hang</span>) <span class="pl-s1">p</span>.<span class="pl-en">start</span>() <span class="pl-s1">p</span>.<span class="pl-en">join</span>()</pre></div> <p dir="auto">If numpy uses OpenBLAS, it hangs forever consuming 100% CPU with OPENBLAS_NUM_THREADS&gt;1. If export OPENBLAS_NUM_THREADS=1, it works OK.<br> I am testing this code on 32-core machine, if this matters.<br> It may be related to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7718708" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/654" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/654/hovercard" href="https://github.com/numpy/numpy/issues/654">#654</a></p> <p dir="auto">numpy version 1.8.1<br> python version 3.4.1<br> openblas version 0.2.8<br> ubuntu 14.04</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/2201" rel="nofollow">http://projects.scipy.org/numpy/ticket/2201</a> on 2012-08-14 by trac user agchang, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>.</em></p> <p dir="auto">There seems to be an issue with numpy.linalg being called in unison with python's multiprocessing module. When invoking a numpy.linalg method from within a subprocess, e.g., through a worker pool and map() function, the program hangs and ignores all interrupt signals.</p> <p dir="auto">The code provided below will demonstrate the case:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np import multiprocessing as mp def foo(x): print np.linalg.inv([[2,3],[2,2]]) #this causes the crash #print np.dot([[1,2],[3,4]],[[1,2],[3,4]]) # this works fine def test(): print &quot;running...&quot; print np.__version__ print mp.__version__ vals = [1,2,3,4] #pool = mp.Pool(1) #This has an issue #pool = mp.Pool(mp.cpu_count()) #this has an issue pool.map(foo, vals) if __name__ == &quot;__main__&quot;: test() #foo(1) #this works fine"><pre class="notranslate"><code class="notranslate">import numpy as np import multiprocessing as mp def foo(x): print np.linalg.inv([[2,3],[2,2]]) #this causes the crash #print np.dot([[1,2],[3,4]],[[1,2],[3,4]]) # this works fine def test(): print "running..." print np.__version__ print mp.__version__ vals = [1,2,3,4] #pool = mp.Pool(1) #This has an issue #pool = mp.Pool(mp.cpu_count()) #this has an issue pool.map(foo, vals) if __name__ == "__main__": test() #foo(1) #this works fine </code></pre></div> <p dir="auto">By hang I mean the program becomes unresponsive and does not respond to interrupts(Ctrl-C).</p> <p dir="auto">I took a look using pdb and it seems that it hangs after the call<br> <strong>waiter</strong>.acquire() in threading.py(the python system module) so I suspect some sort of deadlock?</p> <p dir="auto">multiprocessing.<strong>version</strong> is 0.70a1<br> numpy.<strong>version</strong> is 1.6.1</p> <p dir="auto">Some potentially related packages?</p> <p dir="auto">ii libblas3gf 1.2.20110419-2 Basic Linear Algebra Reference implementatio<br> ii liblapack3gf 3.3.1-1 library of linear algebra routines 3 - share<br> ii python 2.7.3-0ubuntu2 interactive high-level object-oriented langu<br> ii python-numpy 1:1.6.1-6ubunt Numerical Python adds a fast array facility</p> <p dir="auto">My kernel version is(uname -a):</p> <p dir="auto">Linux agc 3.2.0-29-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="647645" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/46" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/46/hovercard" href="https://github.com/numpy/numpy/pull/46">#46</a>-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux</p> <p dir="auto">Let me know for any additional information.</p> <p dir="auto">Thanks.</p>
1
<p dir="auto">I copied code from an official example (<a href="http://mrdoob.github.io/three.js/examples/webgl_materials_normalmap.html" rel="nofollow">http://mrdoob.github.io/three.js/examples/webgl_materials_normalmap.html</a>) to do an globe with displacement mapping (<a href="http://threejs.thiele-medien.de/index_.html" rel="nofollow">http://threejs.thiele-medien.de/index_.html</a>).<br> Everything seems to be fine, but could this be avoided?</p> <p dir="auto">In both Im getting multiple console warnings, this is the output of the official example :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;gl.getProgramInfoLog()&quot; &quot;(59,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (208,20): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them (192,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (281,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll &quot; three.min.js:537 &quot;gl.getProgramInfoLog()&quot; &quot;(96,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (225,20): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them (209,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (278,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (90,5): error X6077: texld/texldb/texldp/dsx/dsy instructions with r# as source cannot be used inside dynamic conditional 'if' blocks, dynamic conditional subroutine calls, or loop/rep with break*. Warning: D3D shader compilation failed with default flags. Retrying with avoid flow control . (225,20): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them (209,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (278,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll &quot;"><pre class="notranslate"><code class="notranslate">"gl.getProgramInfoLog()" "(59,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (208,20): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them (192,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (281,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll " three.min.js:537 "gl.getProgramInfoLog()" "(96,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (225,20): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them (209,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (278,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (90,5): error X6077: texld/texldb/texldp/dsx/dsy instructions with r# as source cannot be used inside dynamic conditional 'if' blocks, dynamic conditional subroutine calls, or loop/rep with break*. Warning: D3D shader compilation failed with default flags. Retrying with avoid flow control . (225,20): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them (209,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll (278,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll " </code></pre></div> <p dir="auto">Screenshot: <a href="http://abload.de/image.php?img=warningsu8kwa.jpg" rel="nofollow">http://abload.de/image.php?img=warningsu8kwa.jpg</a><br> Threejs R67<br> Firefox 29.0.1, Windows 7, Nvidia GTX 275</p>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">When you import and set up a GLTF scene containing transformation animations that apply to multiple objects, they're played in sync out of the box:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37680486/87869857-b0fcff00-c992-11ea-8b56-5193a43c405a.png"><img src="https://user-images.githubusercontent.com/37680486/87869857-b0fcff00-c992-11ea-8b56-5193a43c405a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37680486/87869858-b4908600-c992-11ea-9e2d-83272633edf3.png"><img src="https://user-images.githubusercontent.com/37680486/87869858-b4908600-c992-11ea-9e2d-83272633edf3.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">When the animations in question use multiple armatures and skinned meshes, however, this isn't the case:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37680486/87869860-b8bca380-c992-11ea-9255-4d1ae5354d88.png"><img src="https://user-images.githubusercontent.com/37680486/87869860-b8bca380-c992-11ea-9255-4d1ae5354d88.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37680486/87869862-bb1efd80-c992-11ea-9634-f06cb7eeae8d.png"><img src="https://user-images.githubusercontent.com/37680486/87869862-bb1efd80-c992-11ea-9634-f06cb7eeae8d.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">In this scenario, only the first of the skinned objects receives the animations in question.</p> <p dir="auto">This test file used a cloned armature, but duplicated armatures produce the same result.</p> <p dir="auto">I also tried manually setting up a separate <code class="notranslate">AnimationMixer()</code> on the second skinned mesh using the imported <code class="notranslate">AnimationClip</code>s and didn't get that to work, but I'm not sure if that particular issue was user error.</p> <p dir="auto">Inspecting the file manually and re-importing it into Blender shows that it is structured correctly such that the animations are associable to both armatures and skinned meshes, and maybe should reasonably work out of the box the same way as non-armature animations:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37680486/87869864-c114de80-c992-11ea-9f51-11586ca69a45.png"><img src="https://user-images.githubusercontent.com/37680486/87869864-c114de80-c992-11ea-9f51-11586ca69a45.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37680486/87869868-c4a86580-c992-11ea-935d-5eb27e27fdda.png"><img src="https://user-images.githubusercontent.com/37680486/87869868-c4a86580-c992-11ea-935d-5eb27e27fdda.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">(The Blender importer splits each animation into a named NLA track per object.)</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r118</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> </ul> <h5 dir="auto">Test Files</h5> <details> <summary> TwoArmatures.gltf </summary> {"asset":{"generator":"Khronos glTF Blender I/O v1.2.75","version":"2.0"},"scene":0,"scenes":[{"name":"Scene","nodes":[1,2,4,5]}],"nodes":[{"name":"Bone","translation":[0,2,0]},{"mesh":0,"name":"Cube","skin":0},{"children":[0],"name":"Armature","translation":[-2,0,0]},{"name":"Bone","translation":[0,2,0]},{"mesh":1,"name":"Cube.001","skin":1},{"children":[3],"name":"Armature.001","translation":[2,0,0]}],"animations":[{"channels":[{"sampler":0,"target":{"node":0,"path":"translation"}},{"sampler":1,"target":{"node":0,"path":"rotation"}},{"sampler":2,"target":{"node":0,"path":"scale"}},{"sampler":3,"target":{"node":3,"path":"translation"}},{"sampler":4,"target":{"node":3,"path":"rotation"}},{"sampler":5,"target":{"node":3,"path":"scale"}}],"name":"Down","samplers":[{"input":13,"interpolation":"LINEAR","output":14},{"input":13,"interpolation":"LINEAR","output":15},{"input":13,"interpolation":"LINEAR","output":16},{"input":13,"interpolation":"LINEAR","output":17},{"input":13,"interpolation":"LINEAR","output":18},{"input":13,"interpolation":"LINEAR","output":19}]},{"channels":[{"sampler":0,"target":{"node":0,"path":"translation"}},{"sampler":1,"target":{"node":0,"path":"rotation"}},{"sampler":2,"target":{"node":0,"path":"scale"}},{"sampler":3,"target":{"node":3,"path":"translation"}},{"sampler":4,"target":{"node":3,"path":"rotation"}},{"sampler":5,"target":{"node":3,"path":"scale"}}],"name":"Up","samplers":[{"input":13,"interpolation":"LINEAR","output":20},{"input":13,"interpolation":"LINEAR","output":21},{"input":13,"interpolation":"LINEAR","output":22},{"input":13,"interpolation":"LINEAR","output":23},{"input":13,"interpolation":"LINEAR","output":24},{"input":13,"interpolation":"LINEAR","output":25}]}],"materials":[{"doubleSided":true,"emissiveFactor":[0,0,0],"name":"Material","pbrMetallicRoughness":{"baseColorFactor":[0.800000011920929,0.800000011920929,0.800000011920929,1],"metallicFactor":0,"roughnessFactor":0.4000000059604645}}],"meshes":[{"name":"Cube","primitives":[{"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2,"JOINTS_0":3,"WEIGHTS_0":4},"indices":5,"material":0}]},{"name":"Cube","primitives":[{"attributes":{"POSITION":7,"NORMAL":8,"TEXCOORD_0":9,"JOINTS_0":10,"WEIGHTS_0":11},"indices":5,"material":0}]}],"skins":[{"inverseBindMatrices":6,"joints":[0],"name":"Armature"},{"inverseBindMatrices":12,"joints":[3],"name":"Armature.001"}],"accessors":[{"bufferView":0,"componentType":5126,"count":24,"max":[-1,1,1],"min":[-3,-1,-1],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":24,"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":24,"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":24,"type":"VEC4"},{"bufferView":4,"componentType":5126,"count":24,"type":"VEC4"},{"bufferView":5,"componentType":5123,"count":36,"type":"SCALAR"},{"bufferView":6,"componentType":5126,"count":1,"type":"MAT4"},{"bufferView":7,"componentType":5126,"count":24,"max":[3,1,1],"min":[1,-1,-1],"type":"VEC3"},{"bufferView":8,"componentType":5126,"count":24,"type":"VEC3"},{"bufferView":9,"componentType":5126,"count":24,"type":"VEC2"},{"bufferView":10,"componentType":5123,"count":24,"type":"VEC4"},{"bufferView":11,"componentType":5126,"count":24,"type":"VEC4"},{"bufferView":12,"componentType":5126,"count":1,"type":"MAT4"},{"bufferView":13,"componentType":5126,"count":1,"max":[0.041666666666666664],"min":[0.041666666666666664],"type":"SCALAR"},{"bufferView":14,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":15,"componentType":5126,"count":1,"type":"VEC4"},{"bufferView":16,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":17,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":18,"componentType":5126,"count":1,"type":"VEC4"},{"bufferView":19,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":20,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":21,"componentType":5126,"count":1,"type":"VEC4"},{"bufferView":22,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":23,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":24,"componentType":5126,"count":1,"type":"VEC4"},{"bufferView":25,"componentType":5126,"count":1,"type":"VEC3"}],"bufferViews":[{"buffer":0,"byteLength":288,"byteOffset":0},{"buffer":0,"byteLength":288,"byteOffset":288},{"buffer":0,"byteLength":192,"byteOffset":576},{"buffer":0,"byteLength":192,"byteOffset":768},{"buffer":0,"byteLength":384,"byteOffset":960},{"buffer":0,"byteLength":72,"byteOffset":1344},{"buffer":0,"byteLength":64,"byteOffset":1416},{"buffer":0,"byteLength":288,"byteOffset":1480},{"buffer":0,"byteLength":288,"byteOffset":1768},{"buffer":0,"byteLength":192,"byteOffset":2056},{"buffer":0,"byteLength":192,"byteOffset":2248},{"buffer":0,"byteLength":384,"byteOffset":2440},{"buffer":0,"byteLength":64,"byteOffset":2824},{"buffer":0,"byteLength":4,"byteOffset":2888},{"buffer":0,"byteLength":12,"byteOffset":2892},{"buffer":0,"byteLength":16,"byteOffset":2904},{"buffer":0,"byteLength":12,"byteOffset":2920},{"buffer":0,"byteLength":12,"byteOffset":2932},{"buffer":0,"byteLength":16,"byteOffset":2944},{"buffer":0,"byteLength":12,"byteOffset":2960},{"buffer":0,"byteLength":12,"byteOffset":2972},{"buffer":0,"byteLength":16,"byteOffset":2984},{"buffer":0,"byteLength":12,"byteOffset":3000},{"buffer":0,"byteLength":12,"byteOffset":3012},{"buffer":0,"byteLength":16,"byteOffset":3024},{"buffer":0,"byteLength":12,"byteOffset":3040}],"buffers":[{"byteLength":3052,"uri":"data:application/octet-stream;base64,AACAvwAAgD8AAIA/AACAvwAAgD8AAIC/AABAwAAAgD8AAIC/AABAwAAAgD8AAIA/AABAwAAAgD8AAIA/AABAwAAAgL8AAIA/AACAvwAAgL8AAIA/AACAvwAAgD8AAIA/AABAwAAAgD8AAIC/AABAwAAAgL8AAIC/AABAwAAAgL8AAIA/AABAwAAAgD8AAIA/AABAwAAAgL8AAIA/AABAwAAAgL8AAIC/AACAvwAAgL8AAIC/AACAvwAAgL8AAIA/AACAvwAAgD8AAIA/AACAvwAAgL8AAIA/AACAvwAAgL8AAIC/AACAvwAAgD8AAIC/AACAvwAAgD8AAIC/AACAvwAAgL8AAIC/AABAwAAAgL8AAIC/AABAwAAAgD8AAIC/AAAAAAAAgD8AAACAAAAAAAAAgD8AAACAAAAAAAAAgD8AAACAAAAAAAAAgD8AAACAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAvwAAAAAAAACAAACAvwAAAAAAAACAAACAvwAAAAAAAACAAACAvwAAAAAAAACAAAAAAAAAgL8AAACAAAAAAAAAgL8AAACAAAAAAAAAgL8AAACAAAAAAAAAgL8AAACAAACAPwAAAAAAAACAAACAPwAAAAAAAACAAACAPwAAAAAAAACAAACAPwAAAAAAAACAAAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAgPwAAgD4AACA/AAAAPwAAYD8AAAA/AABgPwAAgD4AACA/AAAAAAAAwD4AAAAAAADAPgAAgD4AACA/AACAPgAAID8AAEA/AADAPgAAQD8AAMA+AACAPwAAID8AAIA/AAAAPgAAgD4AAAA+AAAAPwAAwD4AAAA/AADAPgAAgD4AACA/AACAPgAAwD4AAIA+AADAPgAAAD8AACA/AAAAPwAAID8AAAA/AADAPgAAAD8AAMA+AABAPwAAID8AAEA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAAABAAIAAAACAAMABAAFAAYABAAGAAcACAAJAAoACAAKAAsADAANAA4ADAAOAA8AEAARABIAEAASABMAFAAVABYAFAAWABcAAACAPwAAAIAAAAAAAAAAgAAAAIAAAIA/AAAAgAAAAAAAAAAAAAAAgAAAgD8AAACAAAAAQAAAAAAAAACAAACAPwAAQEAAAIA/AACAPwAAQEAAAIA/AACAvwAAgD8AAIA/AACAvwAAgD8AAIA/AACAPwAAgD8AAIA/AACAPwAAgD8AAIC/AACAPwAAQEAAAIC/AACAPwAAQEAAAIA/AACAPwAAgD8AAIA/AACAvwAAgD8AAIC/AACAvwAAgD8AAIC/AACAPwAAgD8AAIA/AACAPwAAgD8AAIC/AACAPwAAgD8AAIC/AACAvwAAQEAAAIC/AACAvwAAQEAAAIC/AACAPwAAQEAAAIA/AACAPwAAQEAAAIC/AACAPwAAQEAAAIC/AACAvwAAQEAAAIA/AACAvwAAQEAAAIA/AACAvwAAQEAAAIC/AACAvwAAgD8AAIC/AACAvwAAgD8AAIA/AACAvwAAAAAAAIA/AAAAgAAAAAAAAIA/AAAAgAAAAAAAAIA/AAAAgAAAAAAAAIA/AAAAgAAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAgL8AAAAAAAAAgAAAgL8AAAAAAAAAgAAAgL8AAAAAAAAAgAAAgL8AAAAAAAAAgAAAAAAAAIC/AAAAgAAAAAAAAIC/AAAAgAAAAAAAAIC/AAAAgAAAAAAAAIC/AAAAgAAAgD8AAAAAAAAAgAAAgD8AAAAAAAAAgAAAgD8AAAAAAAAAgAAAgD8AAAAAAAAAgAAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAID8AAIA+AAAgPwAAAD8AAGA/AAAAPwAAYD8AAIA+AAAgPwAAAAAAAMA+AAAAAAAAwD4AAIA+AAAgPwAAgD4AACA/AABAPwAAwD4AAEA/AADAPgAAgD8AACA/AACAPwAAAD4AAIA+AAAAPgAAAD8AAMA+AAAAPwAAwD4AAIA+AAAgPwAAgD4AAMA+AACAPgAAwD4AAAA/AAAgPwAAAD8AACA/AAAAPwAAwD4AAAA/AADAPgAAQD8AACA/AABAPwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAACAAAAAAAAAAIAAAACAAACAPwAAAIAAAAAAAAAAAAAAAIAAAIA/AAAAgAAAAMAAAAAAAAAAgAAAgD+rqio9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAPwAAgD8AAIA/AACAPwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgD8AAIA/AACAPwAAgD8AAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAIA/AACAPwAAgD8AAIA/AAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAACAPwAAgD8AAIA/AACAPw=="}]} </details> <details> <summary> TwoBoxes.gltf </summary> {"asset":{"generator":"Khronos glTF Blender I/O v1.2.75","version":"2.0"},"scene":0,"scenes":[{"name":"Scene","nodes":[0,1]}],"nodes":[{"mesh":0,"name":"Cube","translation":[-2,0,0]},{"mesh":0,"name":"Cube.001","translation":[2,4,0]}],"animations":[{"channels":[{"sampler":0,"target":{"node":0,"path":"translation"}},{"sampler":1,"target":{"node":1,"path":"translation"}}],"name":"Down","samplers":[{"input":4,"interpolation":"STEP","output":5},{"input":4,"interpolation":"STEP","output":6}]},{"channels":[{"sampler":0,"target":{"node":0,"path":"translation"}},{"sampler":1,"target":{"node":1,"path":"translation"}}],"name":"Up","samplers":[{"input":4,"interpolation":"STEP","output":7},{"input":4,"interpolation":"STEP","output":8}]}],"meshes":[{"name":"Cube.001","primitives":[{"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2},"indices":3}]}],"accessors":[{"bufferView":0,"componentType":5126,"count":24,"max":[1,1,1],"min":[-1,-1,-1],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":24,"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":24,"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":36,"type":"SCALAR"},{"bufferView":4,"componentType":5126,"count":1,"max":[0.041666666666666664],"min":[0.041666666666666664],"type":"SCALAR"},{"bufferView":5,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":6,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":7,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":8,"componentType":5126,"count":1,"type":"VEC3"}],"bufferViews":[{"buffer":0,"byteLength":288,"byteOffset":0},{"buffer":0,"byteLength":288,"byteOffset":288},{"buffer":0,"byteLength":192,"byteOffset":576},{"buffer":0,"byteLength":72,"byteOffset":768},{"buffer":0,"byteLength":4,"byteOffset":840},{"buffer":0,"byteLength":12,"byteOffset":844},{"buffer":0,"byteLength":12,"byteOffset":856},{"buffer":0,"byteLength":12,"byteOffset":868},{"buffer":0,"byteLength":12,"byteOffset":880}],"buffers":[{"byteLength":892,"uri":"data:application/octet-stream;base64,AACAvwAAgD8AAIC/AACAvwAAgL8AAIC/AACAvwAAgL8AAIA/AACAvwAAgD8AAIA/AACAPwAAgD8AAIC/AACAPwAAgL8AAIC/AACAvwAAgL8AAIC/AACAvwAAgD8AAIC/AACAPwAAgD8AAIA/AACAPwAAgL8AAIA/AACAPwAAgL8AAIC/AACAPwAAgD8AAIC/AACAvwAAgD8AAIA/AACAvwAAgL8AAIA/AACAPwAAgL8AAIA/AACAPwAAgD8AAIA/AACAvwAAgL8AAIA/AACAvwAAgL8AAIC/AACAPwAAgL8AAIC/AACAPwAAgL8AAIA/AACAPwAAgD8AAIA/AACAPwAAgD8AAIC/AACAvwAAgD8AAIC/AACAvwAAgD8AAIA/AACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAgL8AAACAAAAAAAAAgL8AAACAAAAAAAAAgL8AAACAAAAAAAAAgL8AAACAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAgPwAAQD8AAMA+AABAPwAAwD4AAIA/AAAgPwAAgD8AACA/AAAAPwAAwD4AAAA/AADAPgAAQD8AACA/AABAPwAAID8AAIA+AADAPgAAgD4AAMA+AAAAPwAAID8AAAA/AAAgPwAAAAAAAMA+AAAAAAAAwD4AAIA+AAAgPwAAgD4AAAA+AACAPgAAAD4AAAA/AADAPgAAAD8AAMA+AACAPgAAID8AAIA+AAAgPwAAAD8AAGA/AAAAPwAAYD8AAIA+AAABAAIAAAACAAMABAAFAAYABAAGAAcACAAJAAoACAAKAAsADAANAA4ADAAOAA8AEAARABIAEAASABMAFAAVABYAFAAWABcAq6oqPQAAAMAAAAAAAAAAgAAAAEAAAAAAAAAAgAAAAMAAAIBAAAAAgAAAAEAAAIBAAAAAgA=="}]} </details>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> When an <code class="notranslate">async</code> pipe is present on a component, all component's <code class="notranslate">@Input</code> are triggered whenever the async value is updated.<br> This is especially annoying in the case of <code class="notranslate">@Input</code> bounds to setters <code class="notranslate">@Input() set foo(v){ }</code>.<br> Not sure how this is useful, but I observed the following:<br> It seems that the <code class="notranslate">async</code> pipe calls <code class="notranslate">unwrapValue</code> which increments <code class="notranslate">unwrapCounter</code>, forcing <code class="notranslate">checkBinding</code> to return true the first time it's called, causing <code class="notranslate">updateProp</code> to be called.</p> <p dir="auto"><strong>Expected behavior</strong><br> Only the <code class="notranslate">@Input</code> bound to the <code class="notranslate">async</code> pipe should be updated. (At least it was the case with v2)</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> <a href="http://embed.plnkr.co/MDvG3iKe4klFCAayIYh5/" rel="nofollow">http://embed.plnkr.co/MDvG3iKe4klFCAayIYh5/</a></p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> macOS Sierra 10.12.3</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong><br> 4.0.0-rc.3</p> </li> <li> <p dir="auto"><strong>Browser:</strong><br> Firefox 47.0.1</p> </li> <li> <p dir="auto"><strong>Language:</strong><br> Typescript</p> </li> </ul>
<p dir="auto">so I added the ref as indicated in change log.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="///&lt;reference path=&quot;node_modules/angular2/typings/browser.d.ts&quot;/&gt;"><pre class="notranslate"><code class="notranslate">///&lt;reference path="node_modules/angular2/typings/browser.d.ts"/&gt; </code></pre></div> <p dir="auto">and yet in latest .6 I get a bunch of missing types now.<br> am I missing something? or feature broken?</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5090936/12999797/df3bc488-d107-11e5-942e-6c72def49f30.PNG"><img src="https://cloud.githubusercontent.com/assets/5090936/12999797/df3bc488-d107-11e5-942e-6c72def49f30.PNG" alt="err" style="max-width: 100%;"></a></p> <p dir="auto">regards</p> <p dir="auto">Sean</p>
0
<p dir="auto">I install Bootstrap 3.1.0 in my Visual Studio 2013 update 1 with WebEssential 1.8.5. I have a MVC 5.1 Project. What can i do to see corectly the site ? Now don't find css. I also compile bootstrap.less.</p>
<p dir="auto">Hi <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mdo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mdo">@mdo</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fat">@fat</a>,</p> <p dir="auto">Thanks for creating Bootstrap V3.</p> <p dir="auto"><a href="http://getbootstrap.com/javascript/#modals" rel="nofollow">http://getbootstrap.com/javascript/#modals</a></p> <p dir="auto">Just tried "Launch demo modal" button and it works great, however there is small issue, when we open and close modal it seems like it Flick the page for a while.</p> <p dir="auto">Mufaddal</p>
0
<p dir="auto">I've had a few of my latest submits fail because of this test being flaky:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="W0318 23:49:08.262989 2801 docker.go:728] found a container with the &quot;k8s&quot; prefix, but too few fields (2): &quot;k8s_unidentified&quot; I0318 23:49:08.265061 2801 container_gc.go:104] Removing unidentified dead container &quot;/k8s_unidentified&quot; with ID &quot;2876&quot; I0318 23:49:08.278875 2801 image_manager.go:240] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes I0318 23:49:08.280209 2801 image_manager.go:240] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes I0318 23:49:08.281372 2801 image_manager.go:240] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes I0318 23:49:08.282354 2801 image_manager.go:240] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes I0318 23:49:08.284508 2801 image_manager.go:186] [ImageManager]: Disk usage on &quot;&quot; () is at 95% which is over the high threshold (90%). Trying to free 150 bytes I0318 23:49:08.291075 2801 image_manager.go:240] [ImageManager]: Removing image &quot;image-0&quot; to free 450 bytes I0318 23:49:08.292083 2801 image_manager.go:186] [ImageManager]: Disk usage on &quot;&quot; () is at 95% which is over the high threshold (90%). Trying to free 150 bytes I0318 23:49:08.292338 2801 image_manager.go:240] [ImageManager]: Removing image &quot;image-0&quot; to free 50 bytes W0318 23:49:08.306996 2801 kubelet.go:321] Data dir for pod &quot;bothpod&quot; exists in both old and new form, using new W0318 23:49:08.319499 2801 kubelet.go:361] Data dir for pod &quot;newpod&quot;, container &quot;bothctr&quot; exists in both old and new form, using new W0318 23:49:08.337750 2801 kubelet.go:1029] No ref for pod '1234' W0318 23:49:08.342927 2801 kubelet.go:1029] No ref for pod '1234' I0318 23:49:08.347996 2801 kubelet.go:1371] probe success: bar I0318 23:49:08.353109 2801 kubelet.go:1512] Creating pod infra container for &quot;foo_new&quot; I0318 23:49:08.854629 2801 kubelet.go:1512] Creating pod infra container for &quot;foo_new&quot; I0318 23:49:08.868693 2801 kubelet.go:1512] Creating pod infra container for &quot;foo_new&quot; I0318 23:49:08.894820 2801 kubelet.go:1371] probe success: bar2 W0318 23:49:08.895567 2801 kubelet.go:1029] No ref for pod '1234' I0318 23:49:08.895983 2801 kubelet.go:1512] Creating pod infra container for &quot;foo1_new&quot; W0318 23:49:08.914872 2801 kubelet.go:1029] No ref for pod '1234' W0318 23:49:08.915306 2801 kubelet.go:1029] No ref for pod '9876' W0318 23:49:08.927940 2801 kubelet.go:1029] No ref for pod '1234' W0318 23:49:08.928092 2801 kubelet.go:1029] No ref for pod '9876' I0318 23:49:08.937546 2801 kubelet.go:2323] Query docker container info for pod bar_new failed with error (no containers exist for this pod) I0318 23:49:08.938116 2801 kubelet.go:1371] probe success: foo W0318 23:49:08.938226 2801 kubelet.go:1029] No ref for pod '1234' I0318 23:49:08.938380 2801 kubelet.go:2323] Query docker container info for pod bar_new failed with error (no containers exist for this pod) I0318 23:49:08.954379 2801 kubelet.go:2323] Query docker container info for pod foo_new failed with error (no containers exist for this pod) I0318 23:49:08.955061 2801 kubelet.go:1380] pod &quot;foo_new&quot; container &quot;bar&quot; hash changed (4660 vs 358204163). Pod will be killed and re-created. W0318 23:49:08.955343 2801 kubelet.go:1029] No ref for pod '9876' W0318 23:49:08.955858 2801 kubelet.go:1029] No ref for pod '1234' I0318 23:49:08.956096 2801 kubelet.go:1512] Creating pod infra container for &quot;foo_new&quot; I0318 23:49:08.964022 2801 kubelet.go:2323] Query docker container info for pod foo_new failed with error (no containers exist for this pod) W0318 23:49:08.991855 2801 probe.go:147] Failed to find probe builder for bar &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:0 TimeoutSeconds:0} W0318 23:49:08.992252 2801 probe.go:147] Failed to find probe builder for bar &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:0 TimeoutSeconds:0} W0318 23:49:08.992532 2801 probe.go:147] Failed to find probe builder for bar &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:0 TimeoutSeconds:0} I0318 23:49:08.992890 2801 kubelet.go:1376] pod &quot;foo_new&quot; container &quot;bar&quot; is unhealthy (probe result: unknown). Container will be killed and re-created. W0318 23:49:08.993197 2801 kubelet.go:1029] No ref for pod '1234' I0318 23:49:08.994545 2801 kubelet.go:2323] Query docker container info for pod foo_new failed with error (No pod infra container exists for this pod) W0318 23:49:09.032094 2801 kubelet.go:570] Unknown protocol &quot;&quot;: defaulting to TCP W0318 23:49:09.033911 2801 kubelet.go:570] Unknown protocol &quot;foobar&quot;: defaulting to TCP E0318 23:49:09.116595 2801 kubelet.go:639] Invalid handler: &amp;{&lt;nil&gt; &lt;nil&gt; &lt;nil&gt;} I0318 23:49:09.132495 2801 kubelet.go:2323] Query docker container info for pod foo_new failed with error (no containers exist for this pod) E0318 23:49:09.134217 2801 kubelet.go:1298] Error running pod &quot;foo_new&quot; container &quot;bar&quot;: failed to call event handler: test error I0318 23:49:09.134463 2801 kubelet.go:2323] Query docker container info for pod foo_new failed with error (no containers exist for this pod) I0318 23:49:09.152971 2801 kubelet.go:1512] Creating pod infra container for &quot;foo_new&quot; E0318 23:49:09.174420 2801 kubelet.go:1442] Unable to generate status for pod with name &quot;foo_new&quot; and uid &quot;12345678&quot; info with error(Couldn't find spec for pod foo_new) E0318 23:49:09.320293 2801 kubelet.go:1850] Pod &quot;_&quot;: HostPort is already allocated, ignoring: [[0].port: duplicate value '81'] E0318 23:49:09.322227 2801 kubelet.go:1850] Pod &quot;newpod_foo&quot;: HostPort is already allocated, ignoring: [[0].port: duplicate value '80'] E0318 23:49:09.329512 2801 kubelet.go:1850] Pod &quot;_&quot;: HostPort is already allocated, ignoring: [[0].port: duplicate value '80'] E0318 23:49:09.413563 2801 kubelet.go:2094] error updating node status, will retry: error getting node testnode: Minions &quot;testnode&quot; not found E0318 23:49:09.413739 2801 kubelet.go:2094] error updating node status, will retry: error getting node testnode: Minions &quot;testnode&quot; not found E0318 23:49:09.413829 2801 kubelet.go:2094] error updating node status, will retry: error getting node testnode: Minions &quot;testnode&quot; not found E0318 23:49:09.413938 2801 kubelet.go:2094] error updating node status, will retry: error getting node testnode: Minions &quot;testnode&quot; not found E0318 23:49:09.414041 2801 kubelet.go:2094] error updating node status, will retry: error getting node testnode: Minions &quot;testnode&quot; not found I0318 23:49:09.416919 2801 kubelet.go:2323] Query docker container info for pod bar_foo failed with error (no containers exist for this pod) W0318 23:49:09.554258 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.554583 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.554700 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.555666 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.555771 2801 probe.go:147] Failed to find probe builder for &lt;nil&gt; W0318 23:49:09.555844 2801 probe.go:147] Failed to find probe builder for &lt;nil&gt; W0318 23:49:09.555908 2801 probe.go:147] Failed to find probe builder for &lt;nil&gt; W0318 23:49:09.555990 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.556180 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.556390 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.556551 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.556660 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.556747 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:100 TimeoutSeconds:0} W0318 23:49:09.556861 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:100 TimeoutSeconds:0} W0318 23:49:09.556975 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:100 TimeoutSeconds:0} W0318 23:49:09.557108 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.557185 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.557284 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.557387 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.557537 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.557638 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.557743 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} I0318 23:49:09.568445 2801 runonce.go:62] waiting for 1 pods I0318 23:49:09.568785 2801 runonce.go:139] container &quot;bar&quot; not found I0318 23:49:09.568867 2801 runonce.go:112] pod &quot;foo&quot; containers not running: syncing I0318 23:49:09.570685 2801 kubelet.go:1512] Creating pod infra container for &quot;foo_new&quot; E0318 23:49:09.584318 2801 kubelet.go:1442] Unable to generate status for pod with name &quot;foo_new&quot; and uid &quot;12345678&quot; info with error(Couldn't find spec for pod foo_new) I0318 23:49:09.584510 2801 runonce.go:125] pod &quot;foo&quot; containers synced, waiting for 1ms I0318 23:49:09.585970 2801 runonce.go:139] container &quot;bar&quot; not found I0318 23:49:09.586045 2801 runonce.go:112] pod &quot;foo&quot; containers not running: syncing W0318 23:49:09.587383 2801 docker.go:728] found a container with the &quot;k8s&quot; prefix, but too few fields (5): &quot;k8s_net_foo.new.test_abcdefgh_42&quot; I0318 23:49:09.587719 2801 kubelet.go:1512] Creating pod infra container for &quot;foo_new&quot; E0318 23:49:09.590339 2801 kubelet.go:1442] Unable to generate status for pod with name &quot;foo_new&quot; and uid &quot;12345678&quot; info with error(Couldn't find spec for pod foo_new) I0318 23:49:09.590430 2801 runonce.go:125] pod &quot;foo&quot; containers synced, waiting for 2ms I0318 23:49:09.593147 2801 runonce.go:108] pod &quot;foo&quot; containers running I0318 23:49:09.593308 2801 runonce.go:75] started pod &quot;foo&quot; I0318 23:49:09.593383 2801 runonce.go:84] 1 pods started I0318 23:49:10.200987 2801 server.go:127] HTTP InternalServerError: Internal Error: pod level status currently unimplemented E0318 23:49:12.291530 2801 server.go:618] Timed out waiting for client to create streams --- FAIL: TestServeExecInContainerIdleTimeout (2.18 seconds) server_test.go:670: error creating input stream: Timeout occured W0318 23:49:14.832974 2801 connection.go:126] Stream rejected: Unable to parse '' as a port: strconv.ParseUint: parsing &quot;&quot;: invalid syntax W0318 23:49:14.954697 2801 connection.go:126] Stream rejected: Unable to parse 'abc' as a port: strconv.ParseUint: parsing &quot;abc&quot;: invalid syntax W0318 23:49:15.115169 2801 connection.go:126] Stream rejected: Unable to parse '-1' as a port: strconv.ParseUint: parsing &quot;-1&quot;: invalid syntax W0318 23:49:15.215886 2801 connection.go:126] Stream rejected: Unable to parse '65536' as a port: strconv.ParseUint: parsing &quot;65536&quot;: value out of range W0318 23:49:15.307982 2801 connection.go:126] Stream rejected: Port '0' must be greater than 0 FAIL coverage: 69.8% of statements FAIL github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet 9.254s"><pre class="notranslate"><code class="notranslate">W0318 23:49:08.262989 2801 docker.go:728] found a container with the "k8s" prefix, but too few fields (2): "k8s_unidentified" I0318 23:49:08.265061 2801 container_gc.go:104] Removing unidentified dead container "/k8s_unidentified" with ID "2876" I0318 23:49:08.278875 2801 image_manager.go:240] [ImageManager]: Removing image "image-0" to free 1024 bytes I0318 23:49:08.280209 2801 image_manager.go:240] [ImageManager]: Removing image "image-0" to free 1024 bytes I0318 23:49:08.281372 2801 image_manager.go:240] [ImageManager]: Removing image "image-0" to free 1024 bytes I0318 23:49:08.282354 2801 image_manager.go:240] [ImageManager]: Removing image "image-0" to free 1024 bytes I0318 23:49:08.284508 2801 image_manager.go:186] [ImageManager]: Disk usage on "" () is at 95% which is over the high threshold (90%). Trying to free 150 bytes I0318 23:49:08.291075 2801 image_manager.go:240] [ImageManager]: Removing image "image-0" to free 450 bytes I0318 23:49:08.292083 2801 image_manager.go:186] [ImageManager]: Disk usage on "" () is at 95% which is over the high threshold (90%). Trying to free 150 bytes I0318 23:49:08.292338 2801 image_manager.go:240] [ImageManager]: Removing image "image-0" to free 50 bytes W0318 23:49:08.306996 2801 kubelet.go:321] Data dir for pod "bothpod" exists in both old and new form, using new W0318 23:49:08.319499 2801 kubelet.go:361] Data dir for pod "newpod", container "bothctr" exists in both old and new form, using new W0318 23:49:08.337750 2801 kubelet.go:1029] No ref for pod '1234' W0318 23:49:08.342927 2801 kubelet.go:1029] No ref for pod '1234' I0318 23:49:08.347996 2801 kubelet.go:1371] probe success: bar I0318 23:49:08.353109 2801 kubelet.go:1512] Creating pod infra container for "foo_new" I0318 23:49:08.854629 2801 kubelet.go:1512] Creating pod infra container for "foo_new" I0318 23:49:08.868693 2801 kubelet.go:1512] Creating pod infra container for "foo_new" I0318 23:49:08.894820 2801 kubelet.go:1371] probe success: bar2 W0318 23:49:08.895567 2801 kubelet.go:1029] No ref for pod '1234' I0318 23:49:08.895983 2801 kubelet.go:1512] Creating pod infra container for "foo1_new" W0318 23:49:08.914872 2801 kubelet.go:1029] No ref for pod '1234' W0318 23:49:08.915306 2801 kubelet.go:1029] No ref for pod '9876' W0318 23:49:08.927940 2801 kubelet.go:1029] No ref for pod '1234' W0318 23:49:08.928092 2801 kubelet.go:1029] No ref for pod '9876' I0318 23:49:08.937546 2801 kubelet.go:2323] Query docker container info for pod bar_new failed with error (no containers exist for this pod) I0318 23:49:08.938116 2801 kubelet.go:1371] probe success: foo W0318 23:49:08.938226 2801 kubelet.go:1029] No ref for pod '1234' I0318 23:49:08.938380 2801 kubelet.go:2323] Query docker container info for pod bar_new failed with error (no containers exist for this pod) I0318 23:49:08.954379 2801 kubelet.go:2323] Query docker container info for pod foo_new failed with error (no containers exist for this pod) I0318 23:49:08.955061 2801 kubelet.go:1380] pod "foo_new" container "bar" hash changed (4660 vs 358204163). Pod will be killed and re-created. W0318 23:49:08.955343 2801 kubelet.go:1029] No ref for pod '9876' W0318 23:49:08.955858 2801 kubelet.go:1029] No ref for pod '1234' I0318 23:49:08.956096 2801 kubelet.go:1512] Creating pod infra container for "foo_new" I0318 23:49:08.964022 2801 kubelet.go:2323] Query docker container info for pod foo_new failed with error (no containers exist for this pod) W0318 23:49:08.991855 2801 probe.go:147] Failed to find probe builder for bar &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:0 TimeoutSeconds:0} W0318 23:49:08.992252 2801 probe.go:147] Failed to find probe builder for bar &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:0 TimeoutSeconds:0} W0318 23:49:08.992532 2801 probe.go:147] Failed to find probe builder for bar &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:0 TimeoutSeconds:0} I0318 23:49:08.992890 2801 kubelet.go:1376] pod "foo_new" container "bar" is unhealthy (probe result: unknown). Container will be killed and re-created. W0318 23:49:08.993197 2801 kubelet.go:1029] No ref for pod '1234' I0318 23:49:08.994545 2801 kubelet.go:2323] Query docker container info for pod foo_new failed with error (No pod infra container exists for this pod) W0318 23:49:09.032094 2801 kubelet.go:570] Unknown protocol "": defaulting to TCP W0318 23:49:09.033911 2801 kubelet.go:570] Unknown protocol "foobar": defaulting to TCP E0318 23:49:09.116595 2801 kubelet.go:639] Invalid handler: &amp;{&lt;nil&gt; &lt;nil&gt; &lt;nil&gt;} I0318 23:49:09.132495 2801 kubelet.go:2323] Query docker container info for pod foo_new failed with error (no containers exist for this pod) E0318 23:49:09.134217 2801 kubelet.go:1298] Error running pod "foo_new" container "bar": failed to call event handler: test error I0318 23:49:09.134463 2801 kubelet.go:2323] Query docker container info for pod foo_new failed with error (no containers exist for this pod) I0318 23:49:09.152971 2801 kubelet.go:1512] Creating pod infra container for "foo_new" E0318 23:49:09.174420 2801 kubelet.go:1442] Unable to generate status for pod with name "foo_new" and uid "12345678" info with error(Couldn't find spec for pod foo_new) E0318 23:49:09.320293 2801 kubelet.go:1850] Pod "_": HostPort is already allocated, ignoring: [[0].port: duplicate value '81'] E0318 23:49:09.322227 2801 kubelet.go:1850] Pod "newpod_foo": HostPort is already allocated, ignoring: [[0].port: duplicate value '80'] E0318 23:49:09.329512 2801 kubelet.go:1850] Pod "_": HostPort is already allocated, ignoring: [[0].port: duplicate value '80'] E0318 23:49:09.413563 2801 kubelet.go:2094] error updating node status, will retry: error getting node testnode: Minions "testnode" not found E0318 23:49:09.413739 2801 kubelet.go:2094] error updating node status, will retry: error getting node testnode: Minions "testnode" not found E0318 23:49:09.413829 2801 kubelet.go:2094] error updating node status, will retry: error getting node testnode: Minions "testnode" not found E0318 23:49:09.413938 2801 kubelet.go:2094] error updating node status, will retry: error getting node testnode: Minions "testnode" not found E0318 23:49:09.414041 2801 kubelet.go:2094] error updating node status, will retry: error getting node testnode: Minions "testnode" not found I0318 23:49:09.416919 2801 kubelet.go:2323] Query docker container info for pod bar_foo failed with error (no containers exist for this pod) W0318 23:49:09.554258 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.554583 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.554700 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.555666 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.555771 2801 probe.go:147] Failed to find probe builder for &lt;nil&gt; W0318 23:49:09.555844 2801 probe.go:147] Failed to find probe builder for &lt;nil&gt; W0318 23:49:09.555908 2801 probe.go:147] Failed to find probe builder for &lt;nil&gt; W0318 23:49:09.555990 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.556180 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.556390 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.556551 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.556660 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.556747 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:100 TimeoutSeconds:0} W0318 23:49:09.556861 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:100 TimeoutSeconds:0} W0318 23:49:09.556975 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:100 TimeoutSeconds:0} W0318 23:49:09.557108 2801 probe.go:59] No ref for pod 'foobar' - '' W0318 23:49:09.557185 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.557284 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.557387 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.557537 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.557638 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} W0318 23:49:09.557743 2801 probe.go:147] Failed to find probe builder for &amp;{Handler:{Exec:&lt;nil&gt; HTTPGet:&lt;nil&gt; TCPSocket:&lt;nil&gt;} InitialDelaySeconds:-100 TimeoutSeconds:0} I0318 23:49:09.568445 2801 runonce.go:62] waiting for 1 pods I0318 23:49:09.568785 2801 runonce.go:139] container "bar" not found I0318 23:49:09.568867 2801 runonce.go:112] pod "foo" containers not running: syncing I0318 23:49:09.570685 2801 kubelet.go:1512] Creating pod infra container for "foo_new" E0318 23:49:09.584318 2801 kubelet.go:1442] Unable to generate status for pod with name "foo_new" and uid "12345678" info with error(Couldn't find spec for pod foo_new) I0318 23:49:09.584510 2801 runonce.go:125] pod "foo" containers synced, waiting for 1ms I0318 23:49:09.585970 2801 runonce.go:139] container "bar" not found I0318 23:49:09.586045 2801 runonce.go:112] pod "foo" containers not running: syncing W0318 23:49:09.587383 2801 docker.go:728] found a container with the "k8s" prefix, but too few fields (5): "k8s_net_foo.new.test_abcdefgh_42" I0318 23:49:09.587719 2801 kubelet.go:1512] Creating pod infra container for "foo_new" E0318 23:49:09.590339 2801 kubelet.go:1442] Unable to generate status for pod with name "foo_new" and uid "12345678" info with error(Couldn't find spec for pod foo_new) I0318 23:49:09.590430 2801 runonce.go:125] pod "foo" containers synced, waiting for 2ms I0318 23:49:09.593147 2801 runonce.go:108] pod "foo" containers running I0318 23:49:09.593308 2801 runonce.go:75] started pod "foo" I0318 23:49:09.593383 2801 runonce.go:84] 1 pods started I0318 23:49:10.200987 2801 server.go:127] HTTP InternalServerError: Internal Error: pod level status currently unimplemented E0318 23:49:12.291530 2801 server.go:618] Timed out waiting for client to create streams --- FAIL: TestServeExecInContainerIdleTimeout (2.18 seconds) server_test.go:670: error creating input stream: Timeout occured W0318 23:49:14.832974 2801 connection.go:126] Stream rejected: Unable to parse '' as a port: strconv.ParseUint: parsing "": invalid syntax W0318 23:49:14.954697 2801 connection.go:126] Stream rejected: Unable to parse 'abc' as a port: strconv.ParseUint: parsing "abc": invalid syntax W0318 23:49:15.115169 2801 connection.go:126] Stream rejected: Unable to parse '-1' as a port: strconv.ParseUint: parsing "-1": invalid syntax W0318 23:49:15.215886 2801 connection.go:126] Stream rejected: Unable to parse '65536' as a port: strconv.ParseUint: parsing "65536": value out of range W0318 23:49:15.307982 2801 connection.go:126] Stream rejected: Port '0' must be greater than 0 FAIL coverage: 69.8% of statements FAIL github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet 9.254s </code></pre></div>
<p dir="auto">Not everyone uses salt. We need to maintain cluster addons (even required ones) in cluster/addons/ so they are visible to users. This is where people go to look for addons. The change in location is causing a lot of confusion for non-kube-up deployment users as there was no release notes or migration path on how to deploy from the new location.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/girishkalele/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/girishkalele">@girishkalele</a></p>
0
<p dir="auto">I'm running on OS X.</p> <p dir="auto">Steps to reproduce:</p> <ol dir="auto"> <li>Start Atom</li> <li>Open a directory</li> <li>Open a file so there's a tab open</li> <li>Restart Atom</li> <li>Reopen the same directory</li> </ol> <p dir="auto">I expect the workspace to be restored (i.e. the file should be opened) when I reopen the directory in Atom. If I open the directory a second time after startup, it does the proper thing (but then I have two workspaces open that are backed by the same directory/project).</p>
<p dir="auto">Like I mentioned <a href="https://github.com/atom/atom/issues/3405#issuecomment-53685094" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/3405/hovercard">here in my comment</a> opening a folder won't work for the first time you open it, wether if you drag&amp;drop it or just open it via the shortcut.</p> <p dir="auto">Same Problem on two different computers with Atom (0.124.0) running on Mac OS X (Mavericks).</p>
1
<p dir="auto">Hi!</p> <p dir="auto">I translated all the English documents into Chinese.</p> <p dir="auto">Let's bring the documentation to all the -speaking community <g-emoji class="g-emoji" alias="globe_with_meridians" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f310.png">🌐</g-emoji> (currently 0 out of 267 complete)</p> <p dir="auto">Who would want to translate? Please follow the <g-emoji class="g-emoji" alias="hugs" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f917.png">🤗</g-emoji> <a href="https://github.com/huggingface/transformers/blob/main/docs/TRANSLATING.md">TRANSLATING guide</a>. Here is a list of the files ready for translation. Let us know in this issue if you'd like to translate any, and we'll add your name to the list.</p> <p dir="auto">Some notes:</p> <ul dir="auto"> <li>Please translate using an informal tone (imagine you are talking with a friend about transformers <g-emoji class="g-emoji" alias="hugs" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f917.png">🤗</g-emoji>).</li> <li>Please translate in a gender-neutral way.</li> <li>Add your translations to the folder called <code class="notranslate">&lt;languageCode&gt;</code> inside the <a href="https://github.com/huggingface/transformers/tree/main/docs/source">source folder</a>.</li> <li>Register your translation in <code class="notranslate">&lt;languageCode&gt;/_toctree.yml</code>; please follow the order of the <a href="https://github.com/huggingface/transformers/blob/main/docs/source/en/_toctree.yml">English version</a>.</li> <li>Once you're finished, open a pull request and tag this issue by including #issue-number in the description, where issue-number is the number of this issue. Please ping <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/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</a> for review.</li> <li><g-emoji class="g-emoji" alias="raising_hand" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f64b.png">🙋</g-emoji> If you'd like others to help you with the translation, you can also post in the <g-emoji class="g-emoji" alias="hugs" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f917.png">🤗</g-emoji> <a href="https://discuss.huggingface.co/" rel="nofollow">forums</a>.</li> </ul>
<h2 dir="auto">Environment info</h2> <ul dir="auto"> <li><code class="notranslate">transformers</code> version: 4.4.2</li> <li>Platform: linux</li> <li>Python version: 3.7</li> <li>PyTorch version (GPU?): 1.8</li> <li>Tensorflow version (GPU?): -</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">t5: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patrickvonplaten/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patrickvonplaten">@patrickvonplaten</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patil-suraj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patil-suraj">@patil-suraj</a></p> <h2 dir="auto">Information</h2> <p dir="auto">I am using mt5-small model:</p> <ul dir="auto"> <li>the problem arises when using fp16 with mt5</li> </ul> <p dir="auto">The tasks I am working on is:</p> <ul dir="auto"> <li>translation</li> </ul> <h2 dir="auto">To reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <p dir="auto"><code class="notranslate">python run_translation.py --model_name_or_path google/mt5-small --do_train --do_eval --source_lang en --target_lang ro --dataset_name wmt16 --dataset_config_name ro-en --output_dir test/tst-translation --per_device_train_batch_size=4 --per_device_eval_batch_size=4 --overwrite_output_dir --predict_with_generate --max_train_samples 100 --fp16</code></p> <p dir="auto">outputs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="***** eval metrics ***** epoch = 3.0 eval_bleu = 0.0039 eval_gen_len = 2.95 eval_loss = nan eval_mem_cpu_alloc_delta = 4MB eval_mem_cpu_peaked_delta = 5MB eval_mem_gpu_alloc_delta = 0MB eval_mem_gpu_peaked_delta = 1080MB eval_runtime = 72.1865 eval_samples = 1999 eval_samples_per_second = 27.692"><pre class="notranslate"><code class="notranslate">***** eval metrics ***** epoch = 3.0 eval_bleu = 0.0039 eval_gen_len = 2.95 eval_loss = nan eval_mem_cpu_alloc_delta = 4MB eval_mem_cpu_peaked_delta = 5MB eval_mem_gpu_alloc_delta = 0MB eval_mem_gpu_peaked_delta = 1080MB eval_runtime = 72.1865 eval_samples = 1999 eval_samples_per_second = 27.692 </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">being able to use fp16 with mt5 models. Thank you very much for your help, this is really crucial for me to be able to run these models with fp16 to be able to fit more data into old GPUs I have access to and I appreciate a lot your help.</p>
0
<p dir="auto">please help add Mail plugin to send the email to different services like gmail outlook etc..</p> <p dir="auto">Usecase and Observation : as per the observation currently we are using nodemailer to send the reports generated by playwright and that is also some times not working due to asynchronous nature and some times it's picking n-1 report which is already exist so it would be very helpful if we have a mailing functionality to send an email</p> <p dir="auto">Issue with the node mailer :<br> nodemailer works along with the hooks but the reports are generating after completion of context, in this case we could not able to sync hold to gather</p>
<p dir="auto">Let us know what functionality you'd like to see in Playwright and what your use case is:</p> <p dir="auto">I work for a fortune 100 company. We just implemented Playwright after having no automation framework. Everything is awesome thus far, you all did an awesome job and my app dev team thanks you immensely. But if you could possibly please help us (?). we are looking for a way to take the results of the nightly smoke test results from Playwright, via Playwright Reporter and we need to be able to export those results back to our Enterprise MS Outlook, or more preferably, Microsoft Teams (group message if possible) to review what passed/failed before going into the daily stand up meeting. And since smoke tests are ubiquitous in our industry, to answer your aforementioned question, I am confident this feature would be well received amongst a plethora of testers and developers. Before submitting this feature request, I did research thoroughly through the playwright.dev document on export types, like TestNG, Cucumber, JUnit, etc., but it would be super awesome to be able to have Playwright Reporter integration with MS Teams, Outlook, or even Power Automate Desktop? :)</p> <p dir="auto">I searched numerous YouTube videos, but I only saw that XRay (test management plugin tool for JIRA) works well with Playwright, which is really sweet and would love to see both companies continue to build that relationship and technology.</p> <p dir="auto">Do you think others might benefit from this as well?:<br> Playwright gaining rapid adoption amongst QA Automation Engineers, it would be extremely helpful to expand its functionality when implementing with Microsoft Power Desktop, or any exporting results of Playwright reporter via MS Teams, or Outlook, as mentioned above.</p> <p dir="auto">Thank you all so much; many blessings to you all for making our lives so much easier!! &lt;3</p>
1
<p dir="auto">I've noticed some odd behavior in Deno.compile().</p> <p dir="auto">The first time I compile a file it works more or less as expected. But if I change or delete the source file and call Deno.compile() a second time I get the same result as the first time. Apparently Deno is caching the source file.</p> <p dir="auto">I'd like to do a fresh compile every time. I'm purposely trying to push new changes out to web users. I'd rather not call an external process to compile the TypeScript inputs before serving the JavaScript output to web users. I guess I could, but I'd rather use the compiler API built into Deno.</p> <p dir="auto">The caching is done within the process. As soon as I restart my Deno process, the cache is clear. The next time I call Deno.compile() it will reread the source file. But only that next time.</p> <p dir="auto">Deno is caching the input files, not the results. So the compiler still takes a long time to run and it still produces a ton of warning messages.</p> <p dir="auto">These are all local files. Caching a local file will not save any resources.</p> <p dir="auto">Ideal solution: Deno.compile() would do no caching, or it would give me the option to explicitly clear the cache.</p> <p dir="auto">At a bare minimum, add a note to the documentation so the next person doesn't get stuck.</p> <p dir="auto">Thanks!</p>
<p dir="auto">Currently there is no way to internally cache bust with the compiler APIs, only if Deno is invoked with <code class="notranslate">--reload</code> will the compiler APIs cache bust.</p>
1
<p dir="auto">At the moment, libstd depends for example on libnative, which itself depends on libstd. So it is not possible to compile libnative without libstd. I am not sure how rust is able to compile libstd, but I think it requires an existing libstd to compile with.</p> <p dir="auto">My suggestion is to factor out more parts of libstd into their own crates with non-cyclic dependencies.</p> <ul dir="auto"> <li><code class="notranslate">from_str</code>: belongs to collections, because this is where string is defined?</li> <li><code class="notranslate">path</code>: this can be made it's own crate libpath, if we also extract some of the common macros (see below) into their own crate.</li> <li><code class="notranslate">os</code>: this can be made it's own crate, if we somehow factor out <code class="notranslate">io::{IoResult, IoError}</code> from libstd.</li> <li><code class="notranslate">libio</code> ?</li> </ul> <p dir="auto">After that, for example <code class="notranslate">libnative</code> would no longer depend on <code class="notranslate">libstd</code>. I haven't looked at other libraries, but I think it's possible too to de-cycle them.</p> <p dir="auto">What else would need to be done?</p> <ul dir="auto"> <li><code class="notranslate">deriving(Clone)</code> right now generates code with <code class="notranslate">::std::clone::Clone</code> while it should be <code class="notranslate">::core::clone::Clone</code>. I think this is useful in general also for other projects that solely depend on libcore. Other derivings might have to be changed to ::core as well.</li> <li><code class="notranslate">format_args!</code>: same here.</li> <li><code class="notranslate">libstd/macros.rs</code>: fail!, assert!, assert_eq!, debug_assert!, debug_assert_eq!, unreachable!, unimplemented!, format!, try!, vec!. They shouldn't live in libstd as they might be useful in other software that depend on libcore (plus fail functionality).</li> </ul> <p dir="auto">If this is something we want, I can come up with some patches. Clearly more discussion is needed IMHO.</p>
<p dir="auto">Original title: "Rewrite core::run"</p> <p dir="auto">As per a FIXME, <code class="notranslate">// Spawn two entire schedulers to read both stdout and sterr // in parallel so we don't deadlock while blocking on one // or the other. FIXME: Surely there's a much more clever way // to do this.</code></p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">jQuery All Chapter don't show required task until you click on " Run Test "<br> I'll submit two screenshots one before clicking on Run Test One After Clicking on Run Test Button.</p> <h1 dir="auto"> screenshot Before Clicking On " Run Test Button " </h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/14052934/9712758/562e367a-5566-11e5-99b1-c1c0d9f86408.png"><img src="https://cloud.githubusercontent.com/assets/14052934/9712758/562e367a-5566-11e5-99b1-c1c0d9f86408.png" alt="image" style="max-width: 100%;"></a></p> <h1 dir="auto"> screenshot after clicking on " Run Test button"</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/14052934/9712759/56cfb716-5566-11e5-9fc2-974f47209eab.png"><img src="https://cloud.githubusercontent.com/assets/14052934/9712759/56cfb716-5566-11e5-9fc2-974f47209eab.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-delete-your-jquery-functions" rel="nofollow">http://freecodecamp.com/challenges/waypoint-delete-your-jquery-functions</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; latest</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">See the code<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/opencv/opencv/blob/fa66c6b797416292e2c6befb60b34b6ba0420499/modules/core/include/opencv2/core/check.hpp#L137-L153">opencv/modules/core/include/opencv2/core/check.hpp</a> </p> <p class="mb-0 color-fg-muted"> Lines 137 to 153 in <a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/fa66c6b797416292e2c6befb60b34b6ba0420499">fa66c6b</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="L137" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="137"></td> <td id="LC137" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">ifndef</span> NDEBUG </td> </tr> <tr class="border-0"> <td id="L138" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="138"></td> <td id="LC138" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheck</span>(<span class="pl-v">v, test_expr, msg</span>) CV__CHECK_CUSTOM_TEST(_, <span class="pl-k">auto</span>, v, (test_expr), #v, #test_expr, msg) </td> </tr> <tr class="border-0"> <td id="L139" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="139"></td> <td id="LC139" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckEQ</span>(<span class="pl-v">v1, v2, msg</span>) CV__CHECK(_, EQ, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td> </tr> <tr class="border-0"> <td id="L140" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="140"></td> <td id="LC140" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckNE</span>(<span class="pl-v">v1, v2, msg</span>) CV__CHECK(_, NE, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td> </tr> <tr class="border-0"> <td id="L141" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="141"></td> <td id="LC141" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckLE</span>(<span class="pl-v">v1, v2, msg</span>) CV__CHECK(_, LE, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td> </tr> <tr class="border-0"> <td id="L142" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="142"></td> <td id="LC142" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckLT</span>(<span class="pl-v">v1, v2, msg</span>) CV__CHECK(_, LT, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td> </tr> <tr class="border-0"> <td id="L143" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="143"></td> <td id="LC143" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckGE</span>(<span class="pl-v">v1, v2, msg</span>) CV__CHECK(_, GE, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td> </tr> <tr class="border-0"> <td id="L144" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="144"></td> <td id="LC144" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckGT</span>(<span class="pl-v">v1, v2, msg</span>) CV__CHECK(_, GT, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td> </tr> <tr class="border-0"> <td id="L145" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="145"></td> <td id="LC145" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">else</span> </td> </tr> <tr class="border-0"> <td id="L146" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="146"></td> <td id="LC146" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheck</span>(<span class="pl-v">v, test_expr, msg</span>) <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td> </tr> <tr class="border-0"> <td id="L147" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="147"></td> <td id="LC147" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckEQ</span>(<span class="pl-v">v1, v2, msg</span>) <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td> </tr> <tr class="border-0"> <td id="L148" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="148"></td> <td id="LC148" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckNE</span>(<span class="pl-v">v1, v2, msg</span>) <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td> </tr> <tr class="border-0"> <td id="L149" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="149"></td> <td id="LC149" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckLE</span>(<span class="pl-v">v1, v2, msg</span>) <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td> </tr> <tr class="border-0"> <td id="L150" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="150"></td> <td id="LC150" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckLT</span>(<span class="pl-v">v1, v2, msg</span>) <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td> </tr> <tr class="border-0"> <td id="L151" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="151"></td> <td id="LC151" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckGE</span>(<span class="pl-v">v1, v2, msg</span>) <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td> </tr> <tr class="border-0"> <td id="L152" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="152"></td> <td id="LC152" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckGT</span>(<span class="pl-v">v1, v2, msg</span>) <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td> </tr> <tr class="border-0"> <td id="L153" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="153"></td> <td id="LC153" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">endif</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">The following macros</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CV_DbgCheckTypeEQ CV_DbgCheckDepthEQ CV_DbgCheckChannelsEQ CV_DbgCheckType CV_DbgCheckDepth"><pre class="notranslate">CV_DbgCheckTypeEQ CV_DbgCheckDepthEQ CV_DbgCheckChannelsEQ CV_DbgCheckType CV_DbgCheckDepth</pre></div> <p dir="auto">are missing.</p> <h5 dir="auto">Steps to reproduce</h5>
<p dir="auto"><a href="https://github.com/opencv/opencv/files/2534312/pipeline.zip">pipeline.zip</a><br> I trained an object detection example model of pets by tensorflow (ubuntu 16.04 python 3.5 tensorflow 1.11.0).<br> I am trying to convert is to opencv.<br> I get the error<br> Scales: [0.25, 0.5, 1.0, 2.0]<br> Aspect ratios: [0.5, 1.0, 2.0]<br> Width stride: 16.000000<br> Height stride: 16.000000<br> Features stride: 16.000000<br> 2018-10-31 12:34:02.608202: I tensorflow/tools/graph_transforms/transform_graph.cc:318] Applying sort_by_execution_order<br> Traceback (most recent call last):<br> File "D:\TFS\LPR\IP\MAIN\SRC\PythonProjects\TensorFlow\UseModelZoo\tf_text_graph_faster_rcnn.py", line 228, in <br> createFasterRCNNGraph(args.input, args.config, args.output)<br> File "D:\TFS\LPR\IP\MAIN\SRC\PythonProjects\TensorFlow\UseModelZoo\tf_text_graph_faster_rcnn.py", line 56, in createFasterRCNNGraph<br> assert(graph_def.node[0].op == 'Placeholder')<br> AssertionError</p> <p dir="auto"><a href="https://github.com/opencv/opencv/files/2534318/faster_rcnn_resnet50_pets_shay.zip">faster_rcnn_resnet50_pets_shay.zip</a></p>
0
<h1 dir="auto">Environment</h1> <p dir="auto">Windows build number: Version 10.0.18362.356</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Open a WSL shell in conhost and execute the following command:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="printf &quot;\ec\e[1;15r\e[3g\e[1;20H\eH\e[?25l\e[9;20H\e[?1049hstart\r\e[99Bmargin\e[H\ttab\n&quot;"><pre class="notranslate"><code class="notranslate">printf "\ec\e[1;15r\e[3g\e[1;20H\eH\e[?25l\e[9;20H\e[?1049hstart\r\e[99Bmargin\e[H\ttab\n" </code></pre></div> <p dir="auto">This initialises a number of terminal properties.</p> <ul dir="auto"> <li>The scrolling margins are set to 1:15 (<code class="notranslate">DECSTBM</code>).</li> <li>The tabstops are cleared and then a single tabstop is set at column 20 (<code class="notranslate">TBC</code>/<code class="notranslate">HTS</code>).</li> <li>The cursor blinking is disabled (<code class="notranslate">DECTCEM</code>).</li> <li>The cursor position is set to line 9 column 20 (<code class="notranslate">CUP</code>).</li> </ul> <p dir="auto">It then switches to the alternate screen buffer (private mode 1049) and "tests" the state.</p> <ul dir="auto"> <li>The text "start" is output to indicate the starting position.</li> <li>The cursor is moved down 99 lines (<code class="notranslate">CUD</code>), and the text "margin" is output to indicate the bottom margin position.</li> <li>The cursor is moved to the home position (<code class="notranslate">CUP</code>) and a tab is output, followed by the text "tab" to indicate the position of the tab stop.</li> </ul> <h1 dir="auto">Expected behavior</h1> <p dir="auto">I would expect all of the initial state to be inherited by the alt buffer, producing the following results:</p> <ul dir="auto"> <li>The "start" text should be on line 9, column 20, i.e. the position before the switch to the alt buffer.</li> <li>The "margin" text should be on line 15, the bottom margin.</li> <li>The "tab" text should be in column 20, the position of the tab stop that was set.</li> <li>The cursor should be invisible.</li> </ul> <p dir="auto">Here's what the output looks like in XTerm:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4181424/68713559-08da9f00-0596-11ea-8b6b-576c75d74042.png"><img src="https://user-images.githubusercontent.com/4181424/68713559-08da9f00-0596-11ea-8b6b-576c75d74042.png" alt="image" style="max-width: 100%;"></a></p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">When switching to the alt buffer in conhost, we reset all those properties, producing the following results:</p> <ul dir="auto"> <li>The "start" text is in the top left corner.</li> <li>The "margin" text is at the bottom of the screen.</li> <li>The "tab" text is in column 9.</li> <li>The cursor is visible.</li> </ul> <p dir="auto">Here's what our output looks like:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4181424/68713572-1132da00-0596-11ea-952a-59f732829014.png"><img src="https://user-images.githubusercontent.com/4181424/68713572-1132da00-0596-11ea-952a-59f732829014.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The reason for this behaviour is because these properties are part of the <code class="notranslate">SCREEN_INFORMATION</code> class, and the alternate buffer is implemented as a separate instance of that class, when it should really be sharing much of that state with the main buffer.</p> <p dir="auto">The scroll margins are a little more complicated, since those properties are also duplicated in the <code class="notranslate">AdaptDispatch</code> class. And this can result in some weirdness when switching to the alt buffer since the two sets of values can end up out of sync.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Microsoft Windows [Version 10.0.18362.295] Any other software? No"><pre lang="none" class="notranslate"><code class="notranslate">Microsoft Windows [Version 10.0.18362.295] Any other software? No </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Install the application from Windows Store (or from binaries released on this repo) and launch it, it results in the following error:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13923364/63764494-526ff380-c89d-11e9-8679-dfb8ffc2d608.png"><img src="https://user-images.githubusercontent.com/13923364/63764494-526ff380-c89d-11e9-8679-dfb8ffc2d608.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Builds made on my machine launches just fine, so I don't know how I can get more info to debug this issue (they crash after using it for a while, but I don't think this is related to the same bug).</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The application installed from the store should launch just like the ones built on my machine.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">It crashes, with the error <code class="notranslate">File system error (12029).</code></p>
0
<p dir="auto">A user of my package <a href="https://github.com/crstnbr/BinningAnalysis.jl">BinningAnalysis.jl</a> approached me yesterday with the following peace of code.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="using BinningAnalysis mutable struct MyStruct x::LogBinner{Float64,32} end function run!(s::MyStruct) push!(s.x, rand()) end s = MyStruct(LogBinner(Float64)) run!(s)"><pre class="notranslate"><span class="pl-k">using</span> BinningAnalysis <span class="pl-k">mutable struct</span> MyStruct x<span class="pl-k">::</span><span class="pl-c1">LogBinner{Float64,32}</span> <span class="pl-k">end</span> <span class="pl-k">function</span> <span class="pl-en">run!</span>(s<span class="pl-k">::</span><span class="pl-c1">MyStruct</span>) <span class="pl-c1">push!</span>(s<span class="pl-k">.</span>x, <span class="pl-c1">rand</span>()) <span class="pl-k">end</span> s <span class="pl-k">=</span> <span class="pl-c1">MyStruct</span>(<span class="pl-c1">LogBinner</span>(Float64)) <span class="pl-c1">run!</span>(s)</pre></div> <p dir="auto">His observation (which I can reproduce on both Julia 1.5 and 1.6) was that <code class="notranslate">run!(s)</code> takes forever / hangs indefinitely. To investigate the issue I tried <code class="notranslate">@code_warntype run!(s)</code> which also hung indefinitely. Just by inspection, I realised that the underlying issue is that a third type parameter has <a href="https://github.com/crstnbr/BinningAnalysis.jl/pull/65" data-hovercard-type="pull_request" data-hovercard-url="/carstenbauer/BinningAnalysis.jl/pull/65/hovercard">recently</a> been added to the type <code class="notranslate">LogBinner</code>. Just by upgrading BinningAnalysis, the type of the field <code class="notranslate">x</code> has subtly changed from concrete to abstract. If I adjust the field's type appropriately, everything is fast again.</p> <p dir="auto">Reasons for filing this issue:</p> <ol dir="auto"> <li>While it is understood that using abstract types for fields is a performance gotcha, Julia shouldn't hang indefinitely here.</li> <li>The fact, that <code class="notranslate">LogBinner{Float64,32}</code> is abstract is very subtle / hard to realise for the user. Perhaps we should force users to specify all type parameters?</li> </ol>
<p dir="auto">Hi guys!</p> <p dir="auto">I'm packing latest git version of Julia and today I noticed the following warning:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia-unstable-debug.x86_64: W: no-soname /usr/lib64/libjulia-debug.so.0.5.0"><pre class="notranslate"><code class="notranslate">julia-unstable-debug.x86_64: W: no-soname /usr/lib64/libjulia-debug.so.0.5.0 </code></pre></div> <p dir="auto">Indeed, using <code class="notranslate">objdump</code> I can see that there is no SONAME in the <code class="notranslate">-debug</code> library:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# objdump -x libjulia-debug.so.0.5.0 |grep SONAME #"><pre class="notranslate"><code class="notranslate"># objdump -x libjulia-debug.so.0.5.0 |grep SONAME # </code></pre></div> <p dir="auto">Notice that everything is fine with <code class="notranslate">libjulia.so.0.5.0</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# objdump -x libjulia.so.0.5.0 |grep SONAME SONAME libjulia.so.0.5 #"><pre class="notranslate"><code class="notranslate"># objdump -x libjulia.so.0.5.0 |grep SONAME SONAME libjulia.so.0.5 # </code></pre></div> <p dir="auto">Is there anyway to fix this problem?</p>
0
<p dir="auto">Waypoint: Passing Values to Functions with Arguments</p> <p dir="auto">I get a RangeError with this code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Example function ourFunction(a, b) { console.log(a - b); } ourFunction(10, 5); // Outputs 5 // Only change code below this line. function myFunction(a, b){ console.log(a + b); } myFunction(1, 2);"><pre class="notranslate"><span class="pl-c">// Example</span> <span class="pl-k">function</span> <span class="pl-en">ourFunction</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">a</span> <span class="pl-c1">-</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">ourFunction</span><span class="pl-kos">(</span><span class="pl-c1">10</span><span class="pl-kos">,</span> <span class="pl-c1">5</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Outputs 5</span> <span class="pl-c">// Only change code below this line.</span> <span class="pl-k">function</span> <span class="pl-en">myFunction</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">myFunction</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></pre></div>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-passing-values-to-functions-with-arguments#?solution=%2F%2F%20Example%0Afunction%20ourFunction%28a%2C%20b%29%20%7B%0A%20%20console.log%28a%20-%20b%29%3B%0A%7D%0AourFunction%2810%2C%205%29%3B%20%2F%2F%20Outputs%205%0A%0A%2F%2F%20Only%20change%20code%20below%20this%20line.%0A%0Afunction%20myFunction%28c%2C%20d%29%7B%0A%20%20console.log%28c%20%2B%20d%29%3B%0A%7D%0AmyFunction%282%2C%203%29%3B%0A" rel="nofollow">Waypoint: Passing Values to Functions with Arguments</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36</code>.</p> <p dir="auto">Running tests outputs <code class="notranslate">RangeError: Maximum call stack size exceeded</code> and no tests pass.</p> <p dir="auto">My code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Example function ourFunction(a, b) { console.log(a - b); } ourFunction(10, 5); // Outputs 5 // Only change code below this line. function myFunction(c, d){ console.log(c + d); } myFunction(2, 3); "><pre class="notranslate"><span class="pl-c">// Example</span> <span class="pl-k">function</span> <span class="pl-en">ourFunction</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">a</span> <span class="pl-c1">-</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">ourFunction</span><span class="pl-kos">(</span><span class="pl-c1">10</span><span class="pl-kos">,</span> <span class="pl-c1">5</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Outputs 5</span> <span class="pl-c">// Only change code below this line.</span> <span class="pl-k">function</span> <span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">,</span> <span class="pl-s1">d</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-s1">c</span> <span class="pl-c1">+</span> <span class="pl-s1">d</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">myFunction</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></pre></div>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.19041.329] 2004 PowerToys version: v0.19.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.19041.329] 2004 PowerToys version: v0.19.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open PowerToys Setting.</li> <li>Press Alt+Space</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">PowerToys Run starts.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The active window (PowerToys Settings) context dialog appears (The same behaviour as right clicking title bar).</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/ab3f7ea04a46cd65535106eb0b0114f65b4eacc9b43b90af935971ffd01b1dcb/68747470733a2f2f692e696d6775722e636f6d2f4b346d61525a4b2e706e67"><img src="https://camo.githubusercontent.com/ab3f7ea04a46cd65535106eb0b0114f65b4eacc9b43b90af935971ffd01b1dcb/68747470733a2f2f692e696d6775722e636f6d2f4b346d61525a4b2e706e67" alt="Issue" data-canonical-src="https://i.imgur.com/K4maRZK.png" style="max-width: 100%;"></a></p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.18362.836] PowerToys version: v0.18.1 PowerToys: PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.18362.836] PowerToys version: v0.18.1 PowerToys: PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">With PowerToys installed and running, press <kbd>Alt</kbd> + <kbd>Space</kbd> from any screen.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">PowerToys Run popup shows up to start typing a command or a search term</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">window menu (Restore / Move / Size / Minimize / Maximize / Close) shows up in the top left corner of the focused window if the focus is on a window or nothing at all if the focus is on the desktop.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7889660/82753718-c1905f00-9dbf-11ea-9c59-00d439b9aece.png"><img src="https://user-images.githubusercontent.com/7889660/82753718-c1905f00-9dbf-11ea-9c59-00d439b9aece.png" alt="capture" style="max-width: 100%;"></a></p>
1
<p dir="auto">Maybe I am missing something, but is this correct?</p> <p dir="auto"><code class="notranslate">np.issubdtype(np.double, np.bool) =&gt; True</code></p> <p dir="auto">At the very least, this is confusing.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1739" rel="nofollow">http://projects.scipy.org/numpy/ticket/1739</a> on 2011-02-10 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>, assigned to unknown.</em></p> <p dir="auto">Interestingly,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.issubdtype(int, np.bool_) False &gt;&gt;&gt; np.issubdtype(str, bool) True"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.issubdtype(int, np.bool_) False &gt;&gt;&gt; np.issubdtype(str, bool) True </code></pre></div> <p dir="auto">The issubdtype routine apparently does not work correctly for this case (and never has). What it does is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if issubclass_(arg2, generic): return issubclass(dtype(arg1).type, arg2) mro = dtype(arg2).type.mro() if len(mro) &gt; 1: val = mro[1] else: val = mro[0] return issubclass(dtype(arg1).type, val)"><pre class="notranslate"><code class="notranslate"> if issubclass_(arg2, generic): return issubclass(dtype(arg1).type, arg2) mro = dtype(arg2).type.mro() if len(mro) &gt; 1: val = mro[1] else: val = mro[0] return issubclass(dtype(arg1).type, val) </code></pre></div> <p dir="auto">Using mro[1] makes e.g. the Python <code class="notranslate">int</code> type behave as the more general <code class="notranslate">signedinteger</code>.</p> <p dir="auto">For <code class="notranslate">bool</code>, it's directly <code class="notranslate">generic</code>, which results into strangeness.</p> <p dir="auto">It might be better to hardcode the special handling of Python types, than just picking mro[1]...</p>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">2.0.2.0</p> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">N/A</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">In 2.0.2.0, using <code class="notranslate">get_url</code> with <code class="notranslate">file://</code> urls fails because it is<br> looking for an http respond code. This worked correctly in 2.0.1.0.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto"><code class="notranslate">touch /tmp/srcfile</code> and run the following playbook:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: localhost gather_facts: false vars: url: file:///tmp/srcfile tasks: - get_url: url: &quot;{{url}}&quot; dest: &quot;./destfile&quot; force: true"><pre class="notranslate"><code class="notranslate">- hosts: localhost gather_facts: false vars: url: file:///tmp/srcfile tasks: - get_url: url: "{{url}}" dest: "./destfile" force: true </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY *************************************************************************** TASK [get_url] ***************************************************************** ok: [localhost] PLAY RECAP ********************************************************************* localhost : ok=1 changed=0 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">PLAY *************************************************************************** TASK [get_url] ***************************************************************** ok: [localhost] PLAY RECAP ********************************************************************* localhost : ok=1 changed=0 unreachable=0 failed=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="PLAY [localhost] *************************************************************** TASK [get_url] ***************************************************************** fatal: [localhost]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;dest&quot;: &quot;./destfile&quot;, &quot;failed&quot;: true, &quot;gid&quot;: 1000, &quot;group&quot;: &quot;lars&quot;, &quot;mode&quot;: &quot;0664&quot;, &quot;msg&quot;: &quot;Request failed&quot;, &quot;owner&quot;: &quot;lars&quot;, &quot;response&quot;: &quot;OK (12 bytes)&quot;, &quot;size&quot;: 12, &quot;state&quot;: &quot;file&quot;, &quot;status_code&quot;: null, &quot;uid&quot;: 1000, &quot;url&quot;: &quot;file:///tmp/srcfile&quot;} NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @file_urls.retry PLAY RECAP ********************************************************************* localhost : ok=0 changed=0 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">PLAY [localhost] *************************************************************** TASK [get_url] ***************************************************************** fatal: [localhost]: FAILED! =&gt; {"changed": false, "dest": "./destfile", "failed": true, "gid": 1000, "group": "lars", "mode": "0664", "msg": "Request failed", "owner": "lars", "response": "OK (12 bytes)", "size": 12, "state": "file", "status_code": null, "uid": 1000, "url": "file:///tmp/srcfile"} NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @file_urls.retry PLAY RECAP ********************************************************************* localhost : ok=0 changed=0 unreachable=0 failed=1 </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">firewalld</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.1.0 config file = &lt;REDACTED&gt;/ansible.cfg configured module search path = [u'/&lt;REDACTED&gt;/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/Cellar/ansible/2.4.1.0/libexec/lib/python2.7/site-packages/ansible executable location = /usr/local/bin/ansible python version = 2.7.14 (default, Sep 25 2017, 09:53:22) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)]"><pre class="notranslate"><code class="notranslate">ansible 2.4.1.0 config file = &lt;REDACTED&gt;/ansible.cfg configured module search path = [u'/&lt;REDACTED&gt;/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/Cellar/ansible/2.4.1.0/libexec/lib/python2.7/site-packages/ansible executable location = /usr/local/bin/ansible python version = 2.7.14 (default, Sep 25 2017, 09:53:22) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">No changed settings</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">I'm trying to manage CentOS 7 / RHEL 7 systems with firewalld enabled.</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">I use FirewallD to manage my system firewalls for various services. Some services should only be reachable by specific IP subnets. The current <code class="notranslate">firewalld</code> module allows me to specify a source IP range, but I have to choose an existing zone. The problem with this, is that most of these zones have "side effects" of existing rules and it limits the number of unique source ranges to ports I would give access to.</p> <p dir="auto">I'd like to be able to do the equivalent of the following using Ansible.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sudo firewall-cmd --new-zone=kafka_consumers --permanent sudo firewall-cmd --zone=kafka_consumers --add-source=192.0.2.0/24 --permanent sudo firewall-cmd --zone=kafka_consumers --add-port=9092/tcp --permanent sudo firewall-cmd --reload"><pre class="notranslate"><code class="notranslate">sudo firewall-cmd --new-zone=kafka_consumers --permanent sudo firewall-cmd --zone=kafka_consumers --add-source=192.0.2.0/24 --permanent sudo firewall-cmd --zone=kafka_consumers --add-port=9092/tcp --permanent sudo firewall-cmd --reload </code></pre></div> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">I think using the module and only specifying the zone with a state of <code class="notranslate">present</code> makes sense as an atomic change. Then the rules could be applied.</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Ensure kafka_consumers zone exists firewalld: zone: kafka_consumers state: present permanent: yes immediate: yes - name: Add TEST-NET-1 to zone firewalld: zone: kafka_consumers source: 192.0.2.0/24 permanent: yes immediate: yes state: present - name: Add kafka port to zone firewalld: zone: kafka_consumers port: 9092/tcp permanent: yes immediate: yes state: present"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Ensure kafka_consumers zone exists</span> <span class="pl-ent">firewalld</span>: <span class="pl-ent">zone</span>: <span class="pl-s">kafka_consumers</span> <span class="pl-ent">state</span>: <span class="pl-s">present</span> <span class="pl-ent">permanent</span>: <span class="pl-s">yes</span> <span class="pl-ent">immediate</span>: <span class="pl-s">yes</span> - <span class="pl-ent">name</span>: <span class="pl-s">Add TEST-NET-1 to zone</span> <span class="pl-ent">firewalld</span>: <span class="pl-ent">zone</span>: <span class="pl-s">kafka_consumers</span> <span class="pl-ent">source</span>: <span class="pl-s">192.0.2.0/24</span> <span class="pl-ent">permanent</span>: <span class="pl-s">yes</span> <span class="pl-ent">immediate</span>: <span class="pl-s">yes</span> <span class="pl-ent">state</span>: <span class="pl-s">present</span> - <span class="pl-ent">name</span>: <span class="pl-s">Add kafka port to zone</span> <span class="pl-ent">firewalld</span>: <span class="pl-ent">zone</span>: <span class="pl-s">kafka_consumers</span> <span class="pl-ent">port</span>: <span class="pl-s">9092/tcp</span> <span class="pl-ent">permanent</span>: <span class="pl-s">yes</span> <span class="pl-ent">immediate</span>: <span class="pl-s">yes</span> <span class="pl-ent">state</span>: <span class="pl-s">present</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">The zone would be created, then the rules would be applied</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">The <code class="notranslate">firewalld</code> module execution fails due to zone not existing.</p>
0
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Right now, you can either remap key to a key or shortcut to a shortcut.</p> <p dir="auto">I'd like a way to remap shortcut to a key. Why?</p> <p dir="auto">Well, I have Surface Keyboard Bluetooth, which special keys. Some are usual ones like Next, Previous, Play/Pause. But some are Windows specific (like Settings or Connect external display).</p> <p dir="auto">I don't use the latter ones and they overlap with Fxx keys that I actually use often and have to use Fn key to access them.</p> <p dir="auto">So I'd like to remap them back to Fxx. Thing is, Windows does not see them as a single key, but as a strange shortcut (for example Settings are Win Left + F21). I'd like to remap this back to F12 (so I don't have to use Fn), but right now I can't.</p>
<p dir="auto"><strong>crutkas update 2020.06.17:</strong><br> you can get this via WinGet<br> <code class="notranslate">winget install PowerToys</code></p> <p dir="auto"><strong>crutkas update 2021.09.17:</strong><br> You can install PowerToys in the Microsoft Store via <a href="https://aka.ms/getPowerToys" rel="nofollow">https://aka.ms/getPowerToys</a></p> <h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">The Microsoft Store is a convenient way to install software (like Python 3, WSL distros, Windows Terminal Preview, Spotify, and others) and keep them up to date automatically. I feel bringing PowerToys to the Store would be useful for these reasons.</p> <p dir="auto">It's already available via Chocolatey, why not the Store as well?</p> <p dir="auto">Thank you.7</p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run &quot;ver&quot; at a command prompt]Version 10.0.18363.752] PowerToys version: 0.16 PowerToy module for which you are reporting the bug (if applicable): fancyzone"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]Version 10.0.18363.752] PowerToys version: 0.16 PowerToy module for which you are reporting the bug (if applicable): fancyzone </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">unable to create a fancyzone that spans mutltiple monitors</p> <p dir="auto">nor can I create a zone on one monitor and another on the second.<br> can only create on primary monitor</p> <h1 dir="auto">Expected behavior</h1> <h1 dir="auto">Actual behavior</h1> <h1 dir="auto">Screenshots</h1>
<h1 dir="auto">Support zones which span several monitors</h1> <p dir="auto">Could you please add the capability to define zones across several monitors? For instance I would like to define one single zone spanning two monitors (this is my current setup with ultramon for instance).<br> Thanks very much</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cbeams" rel="nofollow">Chris Beams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6184?redirect=false" rel="nofollow">SPR-6184</a></strong> and commented</p> <p dir="auto">Currently, JavaConfig integrates with the TestContext framework via its <code class="notranslate">ContextLoader</code> implementation, <code class="notranslate">JavaConfigContextLoader</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations=&quot;com.bank.TransferAppConfig&quot;, loader=JavaConfigContextLoader.class) public class TransferServiceTests { // @Test methods ... }"><pre class="notranslate"><code class="notranslate">@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations="com.bank.TransferAppConfig", loader=JavaConfigContextLoader.class) public class TransferServiceTests { // @Test methods ... } </code></pre></div> <p dir="auto">This integration works well enough but is not refactoring-friendly due to the requirement that <code class="notranslate">@ContextConfiguration</code> imposes that locations must be a <code class="notranslate">String[]</code>. It forces the fully-qualified class name to be expressed as a string, when it would clearly be superior to be able to pass it around by <code class="notranslate">Class</code> literal.</p> <p dir="auto">Implementing this change would require a change to core, either by adding an attribute to <code class="notranslate">@ContextConfiguration</code> that takes a <code class="notranslate">Class[]</code> (not likely), or otherwise devising a way of proving a customized annotation (e.g., <code class="notranslate">@JavaConfigContextConfiguration</code>).</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 GA</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398112598" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13033" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13033/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13033">#13033</a> Introduce SmartContextLoader SPI (<em><strong>"is depended on by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111738" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12888" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12888/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12888">#12888</a> Document TestContext support for <code class="notranslate">@Configuration</code> classes in the reference manual (<em><strong>"is depended on by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398108905" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12425" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12425/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12425">#12425</a> SpringJUnit4ClassRunner is not compatible with java context configuration (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398100929" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11233" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11233/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11233">#11233</a> Annotation configuration based TestContext (<em><strong>"is duplicated by"</strong></em>)</li> <li><a href="https://jira.spring.io/browse/SJC-272" rel="nofollow">SJC-272</a> JavaConfigContextLoader support with Spring 3.0 (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398112658" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13042" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13042/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13042">#13042</a> AnnotationConfigContextLoader should not restrict the name of default configuration classes to ContextConfiguration</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398110141" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12615" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12615/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12615">#12615</a> TestContext framework should support declarative configuration of bean definition profiles</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398109984" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12592" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12592/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12592">#12592</a> Support for dependency injection and initialization of test instances using classpath scanning</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398094525" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10353" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10353/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10353">#10353</a> Provide dedicated ApplicationContext implementations for use with (JavaConfig) <code class="notranslate">@Configuration</code> classes</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398106528" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12078" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12078/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12078">#12078</a> Support Java-Based Application Configuration</li> </ul> <p dir="auto">37 votes, 30 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cedrik_lime" rel="nofollow">Cédrik LIME</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7743?redirect=false" rel="nofollow">SPR-7743</a></strong> and commented</p> <p dir="auto">This patch exposes the properties of <code class="notranslate">HttpURLConnection</code> within <code class="notranslate">SimpleClientHttpRequestFactory</code> such as <code class="notranslate">connectTimeout</code> and <code class="notranslate">readTimeout</code>.<br> There will therefore be no loss of available functionality in using Spring's <code class="notranslate">ClientHttpRequestFactory</code> in place of a <code class="notranslate">HttpURLConnection</code>.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/17360/SimpleClientHttpRequestFactory.patch" rel="nofollow">SimpleClientHttpRequestFactory.patch</a> (<em>3.82 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111324" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12815" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12815/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12815">#12815</a> Introduce FeatureSpecification for PropertyOverrideBeanDefinitionParser (context:property-override) (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<h3 dir="auto">Bug summary</h3> <p dir="auto">After creating a figure with multiple lines plotted using the plt.loglog() command, altering the linestyle in the plot window under Figure Options -&gt; Curves, results in some lines being swapped.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt import numpy as np Ns = np.array([10, 20, 40, 80]) errors_fd = np.array([1.30069562e-17, 1.83972081e-17, 2.66824646e-16, 8.61976660e-16]) errors_dd = np.array([8.67886156e-12, 1.57381890e-11, 1.35584771e-08, 4.95264847e-06]) errors_operator = np.array([8.67888088e-12, 1.57381914e-11, 1.35584771e-08, 4.95264847e-06]) errors_rb = np.array([5.49503157e-06, 4.64897012e-06, 4.06345733e-06, 6.20409921e-06]) plt.loglog(Ns, errors_fd, label=&quot;Finite Difference&quot;, linestyle=&quot;-.&quot;, marker=&quot;.&quot;) plt.loglog(Ns, errors_dd, label=&quot;Domain Decomposition&quot;, linestyle=&quot;-&quot;, marker=&quot;x&quot;) plt.loglog(Ns, errors_operator, label=&quot;Exact Poincaré-Steklov&quot;, linestyle=&quot;-.&quot;, marker=&quot;.&quot;) plt.loglog(Ns, errors_rb, label=&quot;Reduced Basis&quot;, linestyle=&quot;-.&quot;, marker=&quot;.&quot;) plt.loglog(Ns, 1/Ns**2, label=&quot;Reference quadratic&quot;) plt.xlabel(&quot;$N$ (number of disretisation points)&quot;) plt.ylabel(&quot;$L^2$-error&quot;) plt.grid() plt.legend() plt.title(&quot;$L^2$-error of numerical methods&quot;) plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-v">Ns</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">10</span>, <span class="pl-c1">20</span>, <span class="pl-c1">40</span>, <span class="pl-c1">80</span>]) <span class="pl-s1">errors_fd</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1.30069562e-17</span>, <span class="pl-c1">1.83972081e-17</span>, <span class="pl-c1">2.66824646e-16</span>, <span class="pl-c1">8.61976660e-16</span>]) <span class="pl-s1">errors_dd</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">8.67886156e-12</span>, <span class="pl-c1">1.57381890e-11</span>, <span class="pl-c1">1.35584771e-08</span>, <span class="pl-c1">4.95264847e-06</span>]) <span class="pl-s1">errors_operator</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">8.67888088e-12</span>, <span class="pl-c1">1.57381914e-11</span>, <span class="pl-c1">1.35584771e-08</span>, <span class="pl-c1">4.95264847e-06</span>]) <span class="pl-s1">errors_rb</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">5.49503157e-06</span>, <span class="pl-c1">4.64897012e-06</span>, <span class="pl-c1">4.06345733e-06</span>, <span class="pl-c1">6.20409921e-06</span>]) <span class="pl-s1">plt</span>.<span class="pl-en">loglog</span>(<span class="pl-v">Ns</span>, <span class="pl-s1">errors_fd</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">"Finite Difference"</span>, <span class="pl-s1">linestyle</span><span class="pl-c1">=</span><span class="pl-s">"-."</span>, <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">"."</span>) <span class="pl-s1">plt</span>.<span class="pl-en">loglog</span>(<span class="pl-v">Ns</span>, <span class="pl-s1">errors_dd</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">"Domain Decomposition"</span>, <span class="pl-s1">linestyle</span><span class="pl-c1">=</span><span class="pl-s">"-"</span>, <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">"x"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">loglog</span>(<span class="pl-v">Ns</span>, <span class="pl-s1">errors_operator</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">"Exact Poincaré-Steklov"</span>, <span class="pl-s1">linestyle</span><span class="pl-c1">=</span><span class="pl-s">"-."</span>, <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">"."</span>) <span class="pl-s1">plt</span>.<span class="pl-en">loglog</span>(<span class="pl-v">Ns</span>, <span class="pl-s1">errors_rb</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">"Reduced Basis"</span>, <span class="pl-s1">linestyle</span><span class="pl-c1">=</span><span class="pl-s">"-."</span>, <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">"."</span>) <span class="pl-s1">plt</span>.<span class="pl-en">loglog</span>(<span class="pl-v">Ns</span>, <span class="pl-c1">1</span><span class="pl-c1">/</span><span class="pl-v">Ns</span><span class="pl-c1">**</span><span class="pl-c1">2</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">"Reference quadratic"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">xlabel</span>(<span class="pl-s">"$N$ (number of disretisation points)"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">ylabel</span>(<span class="pl-s">"$L^2$-error"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">grid</span>() <span class="pl-s1">plt</span>.<span class="pl-en">legend</span>() <span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s">"$L^2$-error of numerical methods"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">Outcome plot:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19654849/162746305-15b5019f-fa8b-4008-900d-a5ff041fa5ff.png"><img src="https://user-images.githubusercontent.com/19654849/162746305-15b5019f-fa8b-4008-900d-a5ff041fa5ff.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">After changing the linestyle of the "Domain Decomposition" line to dotted:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19654849/162746474-270985c7-6425-40f0-a460-4eda91e1878b.png"><img src="https://user-images.githubusercontent.com/19654849/162746474-270985c7-6425-40f0-a460-4eda91e1878b.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">I would expect that the "Finite Difference" line and the line of "Domain Decomposition" to not swap places in the graph.</p> <h3 dir="auto">Additional information</h3> <p dir="auto">I have edited figures before and this is the first time this bug occurs for me.<br> I am on quite a new version of Python using the virtual environment provided by PyCharm Community Edition (Installed using Flatpak). I also run my code from within there.</p> <h3 dir="auto">Operating system</h3> <p dir="auto">Fedora Workstation 35</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.1</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">Backend QtAgg is interactive backend. Turning interactive mode on. Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Gtk-Message: 15:12:47.821: Failed to load module "canberra-gtk-module" Gtk-Message: 15:12:47.821: Failed to load module "pk-gtk-module" Gtk-Message: 15:12:47.821: Failed to load module "canberra-gtk-module" Gtk-Message: 15:12:47.822: Failed to load module "pk-gtk-module" QtAgg</p> <h3 dir="auto">Python version</h3> <p dir="auto">Python 3.9.9</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto">Not installed</p> <h3 dir="auto">Installation</h3> <p dir="auto">pip</p>
<h3 dir="auto">Bug summary</h3> <p dir="auto">I am trying to plot stacked bar chart. I have already defined python dictionary mapping key to specific color. The problem I am getting is, color is not consistent while plotting the chart. when I do console print for same key, it shows correct color but chart shows different color. Also, height of the bar seems to be overlapped even having same number and kept it as "center".</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt import random import numpy as np import matplotlib random.seed(0) FIG_SIZE = (50, 25) FONT_SZ = 30 font = {'weight' : 'bold', 'size' : FONT_SZ} matplotlib.rc('font', **font) dict = {'AL': {'ALF': 1, 'CB': 1, 'CC': 2, 'HBBN': 6, 'N7': 6, 'PW': 2, 'PA': 4, 'PE': 3, 'PPC': 2, 'TI': 15}, 'ALF': {'AL': 2, 'PE': 6, 'PET': 13}, 'CB': {'N7': 1, 'PA': 16}, 'CC': {'AE': 1, 'AL': 30, 'PW': 1, 'PA': 27, 'ST': 1}, 'PW': {'AL': 33, 'ALF': 4, 'CC': 6, 'HBBC': 1, 'PA': 4, 'PC': 9, 'PE': 8, 'PET': 4, 'PWC': 8}, 'PC': {'AL': 4, 'PW': 1, 'PA': 1, 'PWC': 1}, 'PE': {'AL': 8, 'ALF': 3, 'HBBC': 1, 'HBBN': 2, 'N7': 2, 'PBC': 1, 'PWC': 12, 'PPL': 1}, 'PPC': {'AL': 14, 'CC': 7, 'PA': 1}, 'PPB': {'N7': 6, 'PC': 3, 'ST': 6}, 'TE': {'AL': 20, 'CC': 46, 'PA': 3, 'PE': 1}, 'TI': {'AL': 101, 'CC': 2, 'HC': 1, 'N7': 2, 'PW': 2, 'PA': 5, 'PC': 6, 'PWC': 2, 'PPC': 4, 'PPL': 4}} colors = [ 'AliceBlue', 'Chartreuse', 'Aqua', 'Aquamarine', 'Azure', 'Beige', 'Bisque', 'BlanchedAlmond', 'BlueViolet', 'BurlyWood', 'CadetBlue', 'AntiqueWhite' ] klass_names = dict.keys() random.shuffle(colors) klass_color_dict = {} legend_dict = {} fig, ax = plt.subplots(figsize=FIG_SIZE) for klass in klass_names: col = random.choice(colors) while col in klass_color_dict.values(): col = random.choice(colors) klass_color_dict[klass] = col for klass in klass_names: for subklass in dict[klass].keys(): color = klass_color_dict.get(subklass) label=subklass if legend_dict.get(label, 0) == 0: legend_dict[label] = 1 else: label = &quot;&quot; p1 = ax.bar(x=klass, height=dict[klass][subklass], color=color, label=label) ax.bar_label(p1, label_type='center') print(klass, subklass, color) plt.savefig(&quot;plt.jpeg&quot;)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">random</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">0</span>) <span class="pl-v">FIG_SIZE</span> <span class="pl-c1">=</span> (<span class="pl-c1">50</span>, <span class="pl-c1">25</span>) <span class="pl-v">FONT_SZ</span> <span class="pl-c1">=</span> <span class="pl-c1">30</span> <span class="pl-s1">font</span> <span class="pl-c1">=</span> {<span class="pl-s">'weight'</span> : <span class="pl-s">'bold'</span>, <span class="pl-s">'size'</span> : <span class="pl-v">FONT_SZ</span>} <span class="pl-s1">matplotlib</span>.<span class="pl-en">rc</span>(<span class="pl-s">'font'</span>, <span class="pl-c1">**</span><span class="pl-s1">font</span>) <span class="pl-s1">dict</span> <span class="pl-c1">=</span> {<span class="pl-s">'AL'</span>: {<span class="pl-s">'ALF'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'CB'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'CC'</span>: <span class="pl-c1">2</span>, <span class="pl-s">'HBBN'</span>: <span class="pl-c1">6</span>, <span class="pl-s">'N7'</span>: <span class="pl-c1">6</span>, <span class="pl-s">'PW'</span>: <span class="pl-c1">2</span>, <span class="pl-s">'PA'</span>: <span class="pl-c1">4</span>, <span class="pl-s">'PE'</span>: <span class="pl-c1">3</span>, <span class="pl-s">'PPC'</span>: <span class="pl-c1">2</span>, <span class="pl-s">'TI'</span>: <span class="pl-c1">15</span>}, <span class="pl-s">'ALF'</span>: {<span class="pl-s">'AL'</span>: <span class="pl-c1">2</span>, <span class="pl-s">'PE'</span>: <span class="pl-c1">6</span>, <span class="pl-s">'PET'</span>: <span class="pl-c1">13</span>}, <span class="pl-s">'CB'</span>: {<span class="pl-s">'N7'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'PA'</span>: <span class="pl-c1">16</span>}, <span class="pl-s">'CC'</span>: {<span class="pl-s">'AE'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'AL'</span>: <span class="pl-c1">30</span>, <span class="pl-s">'PW'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'PA'</span>: <span class="pl-c1">27</span>, <span class="pl-s">'ST'</span>: <span class="pl-c1">1</span>}, <span class="pl-s">'PW'</span>: {<span class="pl-s">'AL'</span>: <span class="pl-c1">33</span>, <span class="pl-s">'ALF'</span>: <span class="pl-c1">4</span>, <span class="pl-s">'CC'</span>: <span class="pl-c1">6</span>, <span class="pl-s">'HBBC'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'PA'</span>: <span class="pl-c1">4</span>, <span class="pl-s">'PC'</span>: <span class="pl-c1">9</span>, <span class="pl-s">'PE'</span>: <span class="pl-c1">8</span>, <span class="pl-s">'PET'</span>: <span class="pl-c1">4</span>, <span class="pl-s">'PWC'</span>: <span class="pl-c1">8</span>}, <span class="pl-s">'PC'</span>: {<span class="pl-s">'AL'</span>: <span class="pl-c1">4</span>, <span class="pl-s">'PW'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'PA'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'PWC'</span>: <span class="pl-c1">1</span>}, <span class="pl-s">'PE'</span>: {<span class="pl-s">'AL'</span>: <span class="pl-c1">8</span>, <span class="pl-s">'ALF'</span>: <span class="pl-c1">3</span>, <span class="pl-s">'HBBC'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'HBBN'</span>: <span class="pl-c1">2</span>, <span class="pl-s">'N7'</span>: <span class="pl-c1">2</span>, <span class="pl-s">'PBC'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'PWC'</span>: <span class="pl-c1">12</span>, <span class="pl-s">'PPL'</span>: <span class="pl-c1">1</span>}, <span class="pl-s">'PPC'</span>: {<span class="pl-s">'AL'</span>: <span class="pl-c1">14</span>, <span class="pl-s">'CC'</span>: <span class="pl-c1">7</span>, <span class="pl-s">'PA'</span>: <span class="pl-c1">1</span>}, <span class="pl-s">'PPB'</span>: {<span class="pl-s">'N7'</span>: <span class="pl-c1">6</span>, <span class="pl-s">'PC'</span>: <span class="pl-c1">3</span>, <span class="pl-s">'ST'</span>: <span class="pl-c1">6</span>}, <span class="pl-s">'TE'</span>: {<span class="pl-s">'AL'</span>: <span class="pl-c1">20</span>, <span class="pl-s">'CC'</span>: <span class="pl-c1">46</span>, <span class="pl-s">'PA'</span>: <span class="pl-c1">3</span>, <span class="pl-s">'PE'</span>: <span class="pl-c1">1</span>}, <span class="pl-s">'TI'</span>: {<span class="pl-s">'AL'</span>: <span class="pl-c1">101</span>, <span class="pl-s">'CC'</span>: <span class="pl-c1">2</span>, <span class="pl-s">'HC'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'N7'</span>: <span class="pl-c1">2</span>, <span class="pl-s">'PW'</span>: <span class="pl-c1">2</span>, <span class="pl-s">'PA'</span>: <span class="pl-c1">5</span>, <span class="pl-s">'PC'</span>: <span class="pl-c1">6</span>, <span class="pl-s">'PWC'</span>: <span class="pl-c1">2</span>, <span class="pl-s">'PPC'</span>: <span class="pl-c1">4</span>, <span class="pl-s">'PPL'</span>: <span class="pl-c1">4</span>}} <span class="pl-s1">colors</span> <span class="pl-c1">=</span> [ <span class="pl-s">'AliceBlue'</span>, <span class="pl-s">'Chartreuse'</span>, <span class="pl-s">'Aqua'</span>, <span class="pl-s">'Aquamarine'</span>, <span class="pl-s">'Azure'</span>, <span class="pl-s">'Beige'</span>, <span class="pl-s">'Bisque'</span>, <span class="pl-s">'BlanchedAlmond'</span>, <span class="pl-s">'BlueViolet'</span>, <span class="pl-s">'BurlyWood'</span>, <span class="pl-s">'CadetBlue'</span>, <span class="pl-s">'AntiqueWhite'</span> ] <span class="pl-s1">klass_names</span> <span class="pl-c1">=</span> <span class="pl-s1">dict</span>.<span class="pl-en">keys</span>() <span class="pl-s1">random</span>.<span class="pl-en">shuffle</span>(<span class="pl-s1">colors</span>) <span class="pl-s1">klass_color_dict</span> <span class="pl-c1">=</span> {} <span class="pl-s1">legend_dict</span> <span class="pl-c1">=</span> {} <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span><span class="pl-v">FIG_SIZE</span>) <span class="pl-k">for</span> <span class="pl-s1">klass</span> <span class="pl-c1">in</span> <span class="pl-s1">klass_names</span>: <span class="pl-s1">col</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-en">choice</span>(<span class="pl-s1">colors</span>) <span class="pl-k">while</span> <span class="pl-s1">col</span> <span class="pl-c1">in</span> <span class="pl-s1">klass_color_dict</span>.<span class="pl-en">values</span>(): <span class="pl-s1">col</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-en">choice</span>(<span class="pl-s1">colors</span>) <span class="pl-s1">klass_color_dict</span>[<span class="pl-s1">klass</span>] <span class="pl-c1">=</span> <span class="pl-s1">col</span> <span class="pl-k">for</span> <span class="pl-s1">klass</span> <span class="pl-c1">in</span> <span class="pl-s1">klass_names</span>: <span class="pl-k">for</span> <span class="pl-s1">subklass</span> <span class="pl-c1">in</span> <span class="pl-s1">dict</span>[<span class="pl-s1">klass</span>].<span class="pl-en">keys</span>(): <span class="pl-s1">color</span> <span class="pl-c1">=</span> <span class="pl-s1">klass_color_dict</span>.<span class="pl-en">get</span>(<span class="pl-s1">subklass</span>) <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s1">subklass</span> <span class="pl-k">if</span> <span class="pl-s1">legend_dict</span>.<span class="pl-en">get</span>(<span class="pl-s1">label</span>, <span class="pl-c1">0</span>) <span class="pl-c1">==</span> <span class="pl-c1">0</span>: <span class="pl-s1">legend_dict</span>[<span class="pl-s1">label</span>] <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-k">else</span>: <span class="pl-s1">label</span> <span class="pl-c1">=</span> <span class="pl-s">""</span> <span class="pl-s1">p1</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">bar</span>(<span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s1">klass</span>, <span class="pl-s1">height</span><span class="pl-c1">=</span><span class="pl-s1">dict</span>[<span class="pl-s1">klass</span>][<span class="pl-s1">subklass</span>], <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s1">color</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s1">label</span>) <span class="pl-s1">ax</span>.<span class="pl-en">bar_label</span>(<span class="pl-s1">p1</span>, <span class="pl-s1">label_type</span><span class="pl-c1">=</span><span class="pl-s">'center'</span>) <span class="pl-en">print</span>(<span class="pl-s1">klass</span>, <span class="pl-s1">subklass</span>, <span class="pl-s1">color</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">"plt.jpeg"</span>)</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/39809304/191127149-69c70e37-bb47-4f31-ba2a-a0838dd920e0.png"><img width="1660" alt="image" src="https://user-images.githubusercontent.com/39809304/191127149-69c70e37-bb47-4f31-ba2a-a0838dd920e0.png" style="max-width: 100%;"></a></p> <p dir="auto">As seen above, TE bar has same color even keys are different and it's not consistent.</p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">color values should be consistent.</p> <h3 dir="auto">Additional information</h3> <p dir="auto">Python docker image is used.</p> <h3 dir="auto">Operating system</h3> <p dir="auto">Ubuntu 18.04</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.6</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">agg</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.10.7</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Installation</h3> <p dir="auto"><em>No response</em></p>
0
<p dir="auto">There's a small (but obvious) sizing error when <code class="notranslate">.btn-lg</code> and <code class="notranslate">.input-lg</code> are used in an input group. See below:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2413031/3079428/ecad4d78-e499-11e3-86d9-944b760b638c.png"><img src="https://cloud.githubusercontent.com/assets/2413031/3079428/ecad4d78-e499-11e3-86d9-944b760b638c.png" alt="bootstraperror" style="max-width: 100%;"></a></p> <p dir="auto">Relevant CSS:</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".btn-lg { // line-height: ensure even-numbered height of button next to large input .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large); }"><pre class="notranslate">.<span class="pl-c1">btn-lg</span> { <span class="pl-c1">/</span><span class="pl-c1">/</span> line-height<span class="pl-kos">:</span> <span class="pl-c1">ensure</span> <span class="pl-ent">even-numbered</span> <span class="pl-ent">height</span> <span class="pl-ent">of</span> <span class="pl-ent">button</span> <span class="pl-ent">next</span> <span class="pl-ent">to</span> <span class="pl-ent">large</span> <span class="pl-ent">input</span> .<span class="pl-c1">button-size</span>(<span class="pl-k">@padding-large-vertical</span>; <span class="pl-k">@padding-large-horizontal</span>; <span class="pl-k">@font-size-large</span>; <span class="pl-k">@line-height-large</span>; <span class="pl-k">@border-radius-large</span>); }</pre></div> <p dir="auto"><a href="https://github.com/sejr/bootstrap/blob/master/less/buttons.less#L124">link</a></p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".input-lg { .input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large); }"><pre class="notranslate">.<span class="pl-c1">input-lg</span> { .<span class="pl-c1">input-size</span>(<span class="pl-k">@input-height-large</span>; <span class="pl-k">@padding-large-vertical</span>; <span class="pl-k">@padding-large-horizontal</span>; <span class="pl-k">@font-size-large</span>; <span class="pl-k">@line-height-large</span>; <span class="pl-k">@border-radius-large</span>); }</pre></div> <p dir="auto"><a href="https://github.com/sejr/bootstrap/blob/master/less/forms.less#L272">link</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/f3d965b4ae7cd9205ae7c471cba6f873818679a8e94d35d839889fe78e5c3371/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3631333333312f313736333230382f30626461343763652d363730382d313165332d386563622d6131323438363436663565662e706e67"><img src="https://camo.githubusercontent.com/f3d965b4ae7cd9205ae7c471cba6f873818679a8e94d35d839889fe78e5c3371/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3631333333312f313736333230382f30626461343763652d363730382d313165332d386563622d6131323438363436663565662e706e67" alt="13 12 17 r2j9i" data-canonical-src="https://f.cloud.github.com/assets/613331/1763208/0bda47ce-6708-11e3-8ecb-a1248646f5ef.png" style="max-width: 100%;"></a></p> <p dir="auto">Browser: Chrome 33<br> JSBin: <a href="http://jsbin.com/iBIPEKA/1/" rel="nofollow">http://jsbin.com/iBIPEKA/1/</a></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/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">When opening a Menu and creating a react portal, the portal that's created should reference the <code class="notranslate">Node.ownerDocument</code> of the <code class="notranslate">anchorEl</code> or something similar, to support rendering Material-UI components in a new window (such as through a library like <a href="https://github.com/JakeGinnivan/react-popout">react-popout</a>)</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The portal that is created always uses the global <code class="notranslate">document</code> object to append a portal div to. See: <a href="https://github.com/callemall/material-ui/blob/08fae8c2fcd741c01cabbee38305d5ef109acfd5/src/internal/Portal.js#L45-L55">https://github.com/callemall/material-ui/blob/08fae8c2fcd741c01cabbee38305d5ef109acfd5/src/internal/Portal.js#L45-L55</a></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">A simple example can be seen here: <a href="https://codesandbox.io/s/v09qklqkj7" rel="nofollow">https://codesandbox.io/s/v09qklqkj7</a>. You can ignore the lack of styling and what not in the popout window, just trying to show the portal issue.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.21</td> </tr> <tr> <td>React</td> <td>16</td> </tr> <tr> <td>browser</td> <td>All</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. <ul dir="auto"> <li>Possibly related issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="260046862" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/8353" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/8353/hovercard" href="https://github.com/mui/material-ui/issues/8353">#8353</a></li> </ul> </li> </ul> <h2 dir="auto">Expected Behavior</h2> <ol dir="auto"> <li>Make change to file</li> <li>Save file</li> <li>React hot loader renders change without erorrs and keeps state</li> </ol> <h2 dir="auto">Current Behavior</h2> <ol dir="auto"> <li>Make change to file</li> <li>Save file</li> <li>React hot loader throws error "React Hot Loader: this component is not accepted by Hot Loader."</li> <li>Page reloads (no saved state)</li> <li>Renders change</li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1885333/31930515-5ef58e28-b876-11e7-974d-06960596571f.png"><img src="https://user-images.githubusercontent.com/1885333/31930515-5ef58e28-b876-11e7-974d-06960596571f.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1885333/31930531-6d5876ce-b876-11e7-856f-08dab9ee4bcc.png"><img src="https://user-images.githubusercontent.com/1885333/31930531-6d5876ce-b876-11e7-856f-08dab9ee4bcc.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Use <a href="https://github.com/Glavin001/react-hot-ts/tree/material-ui-demo">https://github.com/Glavin001/react-hot-ts/tree/material-ui-demo</a> to reproduce with the above steps.</p> <h2 dir="auto">Context</h2> <p dir="auto">I loose usage of React Hot Loader when adding Material UI to my project.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.18</td> </tr> <tr> <td>React</td> <td>16.0.0</td> </tr> <tr> <td>React DOM</td> <td>16.0.0</td> </tr> </tbody> </table>
0
<p dir="auto">It appears that export assignments (<code class="notranslate">export = x</code>) when compiling <code class="notranslate">amd</code> modules for either <code class="notranslate">es5</code> or <code class="notranslate">es6</code> output to a single file, is broken?</p> <p dir="auto">For example, <a href="https://bitbucket.org/mindplaydk/scribe-ts/src/36ff20d173fd5bd28a61bf7efe461469136248f7/src/scribe/plugins/core/set-root-p-element.ts?at=typescript&amp;fileviewer=file-view-default" rel="nofollow">this</a> file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { Scribe } from &quot;../../../scribe&quot; /** * Sets the default content of the scribe so that each carriage return creates * a P. */ export = function(scribe: Scribe) { // The content might have already been set, in which case we don't want // to apply. if (scribe.getHTML().trim() === '') { /** * We have to begin with the following HTML, because otherwise some * browsers(?) will position the caret outside of the P when the scribe is * focused. */ scribe.setContent('&lt;p&gt;&lt;br&gt;&lt;/p&gt;') } }"><pre class="notranslate"><code class="notranslate">import { Scribe } from "../../../scribe" /** * Sets the default content of the scribe so that each carriage return creates * a P. */ export = function(scribe: Scribe) { // The content might have already been set, in which case we don't want // to apply. if (scribe.getHTML().trim() === '') { /** * We have to begin with the following HTML, because otherwise some * browsers(?) will position the caret outside of the P when the scribe is * focused. */ scribe.setContent('&lt;p&gt;&lt;br&gt;&lt;/p&gt;') } } </code></pre></div> <p dir="auto">Produces the following <code class="notranslate">.d.ts</code> output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="declare module &quot;scribe/plugins/core/set-root-p-element&quot; { import { Scribe } from &quot;scribe&quot;; declare var _default: (scribe: Scribe) =&gt; void; export = _default; }"><pre class="notranslate"><code class="notranslate">declare module "scribe/plugins/core/set-root-p-element" { import { Scribe } from "scribe"; declare var _default: (scribe: Scribe) =&gt; void; export = _default; } </code></pre></div> <p dir="auto">Which, when I attempt to include that, complains that <code class="notranslate">declare</code> is not allowed inside a <code class="notranslate">declare module</code> block. A nested <code class="notranslate">declare</code> statement is emitted for every export assignment.</p> <p dir="auto">Interestingly, if I change the module type to <code class="notranslate">system</code>, the compiler complains (at compile-time) about every export assignment - it's as though this was supposed to be supported for <code class="notranslate">amd</code>, but isn't really? I would expect it should be supported, as it's a very common pattern in amd modules in vanilla JS.</p> <p dir="auto">I'm using Typescript 1.8.10.</p> <p dir="auto">My <a href="https://bitbucket.org/mindplaydk/scribe-ts/src/36ff20d173fd5bd28a61bf7efe461469136248f7/src/?at=typescript&amp;fileviewer=file-view-default" rel="nofollow">tsconfig</a> is set for <code class="notranslate">es6</code> and <code class="notranslate">amd</code> output to a single file.</p> <p dir="auto">The resulting <code class="notranslate">.d.ts</code> output is <a href="https://bitbucket.org/mindplaydk/scribe-ts/src/36ff20d173fd5bd28a61bf7efe461469136248f7/dist/scribe.d.ts?at=typescript&amp;fileviewer=file-view-default" rel="nofollow">here</a>.</p> <p dir="auto">The full project is available <a href="https://bitbucket.org/mindplaydk/scribe-ts/src" rel="nofollow">here</a>.</p> <p dir="auto">Why doesn't this work?</p> <p dir="auto">Is there a viable way to build amd modules with <code class="notranslate">.d.ts</code> headers with TS and package them as npm modules with typings?</p> <p dir="auto">I have been told I should use commonjs as my compile target, and then use grunt and browserify to single-file the module - but I don't understand why I should need a whole stack of tools on top of the language just to get it to work? (I also don't understand how this supposedly leads to a working <code class="notranslate">.d.ts</code> file...)</p> <p dir="auto">I really do not want a large, complicated build chain - I just want to compile my module to a file, emit the matching header file, run uglifyjs and be done.</p> <p dir="auto">Please advise? How should I proceed?</p>
<p dir="auto"><code class="notranslate">window.fetch(...)</code></p> <blockquote> <p dir="auto">error TS2304: Cannot find name 'fetch'.</p> </blockquote>
0