text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
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):</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"><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>
1
<ul dir="auto"> <li>VSCode Version: 1.1.1</li> <li>OS Version: Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open the attached file <a href="https://github.com/Microsoft/vscode/files/301913/markdown.txt">markdown.txt</a> in VSCode.</li> <li>Enable word wrap to be able to view the entire paragraph.</li> <li>Rename the file to have the '.md' extension identifying it as Markdown</li> <li>Observe syntax coloring of the markdown text. The entire sentence starting with the phrase "One set of encoded values" is inappropriately colored blue because the syntax highlighting code in VSCode is confused by the example.</li> </ol> <p dir="auto">Note: results from processing this markdown using grunt-markdown results in HTML producing the desired effect, the flaw seems to be in the markdown highlighting logic.</p>
<ul dir="auto"> <li>VSCode Version: 1.1.1</li> <li>OS Version: Linux Mint LMDE 2</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Create new markdown file. Type in:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="The TeX command `\TeX` is fun! So is `\LaTeX`!"><pre class="notranslate"><code class="notranslate">The TeX command `\TeX` is fun! So is `\LaTeX`! </code></pre></div> <p dir="auto">Problem:<br> In markdown ``` doesn't appear to be registered as an opening code literal for syntax highlighting.<br> Code will highlight this as shown:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12069845/15714738/5fb205fc-27e1-11e6-941f-1321f3035f75.png"><img src="https://cloud.githubusercontent.com/assets/12069845/15714738/5fb205fc-27e1-11e6-941f-1321f3035f75.png" alt="markdownhilight" style="max-width: 100%;"></a></p> <p dir="auto">I was looking into possibly fixing this, but I found this statement</p> <blockquote> <p dir="auto">some of VS Code's built-in colorizers (e.g. Markdown) are integrated differently and cannot be overridden.</p> </blockquote> <p dir="auto">here <a href="https://code.visualstudio.com/Docs/customization/colorizer" rel="nofollow">https://code.visualstudio.com/Docs/customization/colorizer</a>. So I didn't know where to look really.</p>
1
<p dir="auto">Hi,</p> <p dir="auto">When the anchor which open the popover is on two lines (first word at the end of the first line and second word at the beginning of the second line) the popover is centered at the middle of the page.</p> <p dir="auto">How can I fix it to display it hover the first or second word ?</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a6d8147d9d268fb5a75ecc3a2542fdfb8d74c5ede9ba94204ac365ad16aa578d/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f363233372f313732323435332f65653436326536382d363234322d313165332d386166642d6239626461656266656264312e706e67"><img src="https://camo.githubusercontent.com/a6d8147d9d268fb5a75ecc3a2542fdfb8d74c5ede9ba94204ac365ad16aa578d/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f363233372f313732323435332f65653436326536382d363234322d313165332d386166642d6239626461656266656264312e706e67" alt="capture d ecran 2013-12-11 10 02 08" data-canonical-src="https://f.cloud.github.com/assets/6237/1722453/ee462e68-6242-11e3-8afd-b9bdaebfebd1.png" style="max-width: 100%;"></a></p>
<p dir="auto">Hey, I was checking out your examples and saw the following picture:</p> <p dir="auto"><a href="http://pic.twitter.com/dvLhWTre" rel="nofollow">http://pic.twitter.com/dvLhWTre</a></p> <p dir="auto">When hovering over the "really ironic" link which has a tool tip. Looks like it's location is being calculated wrongly due to text wrapping.</p>
1
<p dir="auto">I came cross a strange issues only occurred on HuaWei Phone.<br> For phone infomation with this image.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17869361/59587579-26572a00-9118-11e9-8b20-67a14a5c8f08.png"><img src="https://user-images.githubusercontent.com/17869361/59587579-26572a00-9118-11e9-8b20-67a14a5c8f08.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">At first time run inference no crash, It is always crash at second time. below is crash info.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17869361/59587879-e3498680-9118-11e9-8fe6-bf97e2e2301b.png"><img src="https://user-images.githubusercontent.com/17869361/59587879-e3498680-9118-11e9-8fe6-bf97e2e2301b.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Below is processed crash info with ndk-stack, but unable to locate in tensorflow source as build tflite from source with no debug symbols and i do not know how to build with debug symbol<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17869361/59588620-9a92cd00-911a-11e9-9fb9-ba68baa06f52.png"><img src="https://user-images.githubusercontent.com/17869361/59588620-9a92cd00-911a-11e9-9fb9-ba68baa06f52.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I have tried many methods for building tflite with debug symbol but not successed<br> For example<br> 1、 bazel build -c dbg --strip=never --compilation_mode=dbg --per_file_copt=//tensorflow/lite/.*.cc@-g,-O0 //tensorflow/lite:libtensorflowLite.so --crosstool_top=//external:android/crosstool --cpu=armeabi-v7a --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --cxxopt="-std=c++11"<br> with -c dbg --strip=never --compilation_mode=dbg</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17869361/59588889-345a7a00-911b-11e9-9424-c3cfcdd87d99.png"><img src="https://user-images.githubusercontent.com/17869361/59588889-345a7a00-911b-11e9-9424-c3cfcdd87d99.png" alt="image" style="max-width: 100%;"></a><br> Crash occurred at 62 line<br> It crashed at second time only on HuaWei Phone. Other phones and ios has no crash.</p> <p dir="auto">ps:This issue finally crashed at 277 line with below image<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17869361/59751454-217aad80-92b3-11e9-8a98-155da7e58c92.png"><img src="https://user-images.githubusercontent.com/17869361/59751454-217aad80-92b3-11e9-8a98-155da7e58c92.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I guess the bias_data address is unavaible<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17869361/59751423-10ca3780-92b3-11e9-971c-99ec5e074624.png"><img src="https://user-images.githubusercontent.com/17869361/59751423-10ca3780-92b3-11e9-971c-99ec5e074624.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><em>Please make sure that this is a build/installation issue. 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:build_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <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:</li> <li>Python version:</li> <li>Installed using virtualenv? pip? conda?:</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"><strong>Describe the problem</strong></p> <p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p> <p dir="auto"><strong>Any 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 had built tensorflowlite.a for ios follow offcial website, build successful!<br> but not working for gpu, below is error msg with xcode:</p> <p dir="auto">Undefined symbol: DeleteGpuDelegate(_TfLiteDelegate*)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17869361/59423729-4e3b4a80-8e05-11e9-9844-dfa2fe2f785b.png"><img src="https://user-images.githubusercontent.com/17869361/59423729-4e3b4a80-8e05-11e9-9844-dfa2fe2f785b.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Offcial website building instruction do not enable gpu feature, how to do this?</p> <p dir="auto">Below is website about how to build tensorflowlite for ios<br> <a href="https://www.tensorflow.org/lite/guide/build_ios" rel="nofollow">https://www.tensorflow.org/lite/guide/build_ios</a></p>
1
<p dir="auto">The conda-package for numpy does not work on Windows inside a tox environment (using <a href="https://github.com/tox-dev/tox-conda">tox-conda</a>):</p> <p dir="auto">Steps to reproduce are:</p> <ul dir="auto"> <li>Set up a <a href="https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor/blob/89508279d6c054f64d3323936d27c303a9e0d624/tox.ini#L1-L4"><code class="notranslate">tox.ini</code> that uses <code class="notranslate">tox-conda</code></a></li> <li>Define a <code class="notranslate">tox</code> environment that has <a href="https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor/blob/89508279d6c054f64d3323936d27c303a9e0d624/tox.ini#L9-L17"><code class="notranslate">numpy</code> in <code class="notranslate">conda_deps</code></a>, either from the <code class="notranslate">default</code> or the <code class="notranslate">conda-forge</code> channel</li> <li>Invoke <code class="notranslate">tox</code> such that <a href="https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor/blob/89508279d6c054f64d3323936d27c303a9e0d624/.appveyor.yml#L8"><code class="notranslate">numpy</code> is imported inside the environment</a></li> </ul> <p dir="auto">The result in an error such as</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\lib\site-packages\numpy\core\__init__.py&quot;, line 24, in &lt;module&gt; from . import multiarray File &quot;C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\lib\site-packages\numpy\core\multiarray.py&quot;, line 14, in &lt;module&gt; from . import overrides File &quot;C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\lib\site-packages\numpy\core\overrides.py&quot;, line 7, in &lt;module&gt; from numpy.core._multiarray_umath import ( ImportError: DLL load failed while importing _multiarray_umath: The specified module could not be found. During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt; File &quot;C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\lib\site-packages\numpy\__init__.py&quot;, line 142, in &lt;module&gt; from . import core File &quot;C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\lib\site-packages\numpy\core\__init__.py&quot;, line 54, in &lt;module&gt; raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy c-extensions failed. - Try uninstalling and reinstalling numpy. - If you have already done that, then: 1. Check that you expected to use Python3.8 from &quot;C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\python.exe&quot;, and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy version &quot;1.18.1&quot; you're trying to use. 2. If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues. Please include details on: - how you installed Python - how you installed numpy - your operating system - whether or not you have multiple versions of Python installed - if you built from source, your compiler versions and ideally a build log - If you're working with a numpy git repository, try `git clean -xdf` (removes all files not under version control) and rebuild numpy. Note: this error has many possible causes, so please don't comment on an existing issue about this - open a new one instead. Original error was: DLL load failed while importing _multiarray_umath: The specified module could not be found. ERROR: InvocationError for command 'C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\python.exe' -c 'import numpy; print(numpy.__version__)' (exited with code 1)"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\lib\site-packages\numpy\core\__init__.py", line 24, in &lt;module&gt; from . import multiarray File "C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\lib\site-packages\numpy\core\multiarray.py", line 14, in &lt;module&gt; from . import overrides File "C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\lib\site-packages\numpy\core\overrides.py", line 7, in &lt;module&gt; from numpy.core._multiarray_umath import ( ImportError: DLL load failed while importing _multiarray_umath: The specified module could not be found. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "&lt;string&gt;", line 1, in &lt;module&gt; File "C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\lib\site-packages\numpy\__init__.py", line 142, in &lt;module&gt; from . import core File "C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\lib\site-packages\numpy\core\__init__.py", line 54, in &lt;module&gt; raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy c-extensions failed. - Try uninstalling and reinstalling numpy. - If you have already done that, then: 1. Check that you expected to use Python3.8 from "C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\python.exe", and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy version "1.18.1" you're trying to use. 2. If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues. Please include details on: - how you installed Python - how you installed numpy - your operating system - whether or not you have multiple versions of Python installed - if you built from source, your compiler versions and ideally a build log - If you're working with a numpy git repository, try `git clean -xdf` (removes all files not under version control) and rebuild numpy. Note: this error has many possible causes, so please don't comment on an existing issue about this - open a new one instead. Original error was: DLL load failed while importing _multiarray_umath: The specified module could not be found. ERROR: InvocationError for command 'C:\projects\2020-02-06-numpy-on-appveyor\.tox\envdir\python.exe' -c 'import numpy; print(numpy.__version__)' (exited with code 1) </code></pre></div> <p dir="auto">The error occurs for Python versions 3.7 and 3.8, but not 3.6. It also only occurs when installing the numpy package inside of tox (as opposed to just the default conda environment directly)</p> <p dir="auto">I've set up a repository at <a href="https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor">https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor</a> that illustrates several variations of the problem. In that repository, the <code class="notranslate">tox.ini</code> defines a <code class="notranslate">run-cmd</code> environment to execute arbitrary commands inside the environment. In <a href="https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor/blob/master/.appveyor.yml"><code class="notranslate">.appveyor.yml</code></a> I then invoke tox to run</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python.exe -c &quot;import numpy; print(numpy.__version__)&quot;"><pre class="notranslate"><code class="notranslate">python.exe -c "import numpy; print(numpy.__version__)" </code></pre></div> <p dir="auto">inside the environment.</p> <p dir="auto">The repository reproduces the error on <a href="https://ci.appveyor.com/project/goerz/2020-02-06-numpy-on-appveyor" rel="nofollow">AppVeyor</a>, but I've observed the same behavior "manually" on a standard Windows 10 installation.</p> <p dir="auto">Variations of things that do and don't work are branches in the repository:</p> <ul dir="auto"> <li><code class="notranslate">master</code> branch: Python 3.8, numpy from conda-forge channel <g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> (<a href="https://ci.appveyor.com/project/goerz/2020-02-06-numpy-on-appveyor/builds/30633830" rel="nofollow">AppVeyor log</a>)</li> <li><code class="notranslate">37</code> branch: <a href="https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor/commit/25cb334e4efeb0beb7e7f015ae6be1a9eb79ca55">Python 3.7, numpy from conda-forge channel</a> <g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> (<a href="https://ci.appveyor.com/project/goerz/2020-02-06-numpy-on-appveyor/builds/30633901" rel="nofollow">AppVeyor log</a>)</li> <li><code class="notranslate">defaultchannel</code> branch: <a href="https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor/commit/c6e99d1791843e61e53f9e6700b60d2d363a5c98">Python 3.8, numpy from default channel</a> <g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> (<a href="https://ci.appveyor.com/project/goerz/2020-02-06-numpy-on-appveyor/builds/30633927" rel="nofollow">AppVeyor log</a>) → Problem isn't just with the conda-forge numpy package</li> <li><code class="notranslate">systemtox</code> branch: <a href="https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor/commit/b30e21f25b594c126beb338f74fe026d82ee8f45">Python 3.8, numpy from conda-forge channel, use system-tox instead of installing tox into conda</a> ❌ (<a href="https://ci.appveyor.com/project/goerz/2020-02-06-numpy-on-appveyor/builds/30634194" rel="nofollow">AppVeyor log</a>) → Problem isn't with the tox installed via <code class="notranslate">conda install tox</code>)</li> <li><code class="notranslate">36</code> branch: <a href="https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor/commit/916e9b780672152a40fbdb33e26a7b37a1b49278">Python 3.6, numpy from conda-forge channe</a> ✅ (<a href="https://ci.appveyor.com/project/goerz/2020-02-06-numpy-on-appveyor/builds/30654430" rel="nofollow">AppVeyor log</a>)</li> <li><code class="notranslate">notox</code> branch: <a href="https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor/commit/0e42fe12724321b1da4379a1d9244ff006ca2075">Python 3.8, numpy from conda-forge channel, install into system-conda(no tox)</a> ✅ (<a href="https://ci.appveyor.com/project/goerz/2020-02-06-numpy-on-appveyor/builds/30633961" rel="nofollow">AppVeyor log</a>)</li> </ul> <p dir="auto">It's not clear whether <code class="notranslate">numpy</code> or <code class="notranslate">tox-conda</code> or a weird interaction between the two is responsible for the problem.</p>
<p dir="auto">Hello</p> <p dir="auto">I was wondering if there any plans to implement softmax in numpy? I seem to keep having to write it for myself, and I was wondering if anyone else is in the same situation.</p>
0
<h4 dir="auto">Challenge Name</h4> <p dir="auto"><a href="https://www.freecodecamp.com/challenges/add-font-awesome-icons-to-all-of-our-buttons#" rel="nofollow">https://www.freecodecamp.com/challenges/add-font-awesome-icons-to-all-of-our-buttons#</a>?</p> <h4 dir="auto">Issue Description</h4> <p dir="auto">when adding the trash glyphicon, "Delete" text is cut off due to padding from "container" class.</p> <h4 dir="auto">Browser Information</h4> <p dir="auto">using macbook with 13inch screen</p> <ul dir="auto"> <li>Browser Name, Version:<br> Google Chrome</li> <li>Operating System: El Capitan OSX<br> Desktop</li> </ul> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/16691984/18424066/d1f9337c-7879-11e6-8488-55592f343713.png"><img src="https://cloud.githubusercontent.com/assets/16691984/18424066/d1f9337c-7879-11e6-8488-55592f343713.png" alt="screen shot 2016-09-11 at 11 44 24 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Forewarning, this <em>may</em> be bike-shedding worthy....</p> <h3 dir="auto">Workspace</h3> <p dir="auto">User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36</code>. (Chrome on Windows 7)</p> <h3 dir="auto">Setting</h3> <p dir="auto">The CatPhoto is where you make an web page and one component is adding three buttons like below.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199337/7156ec7e-f798-11e5-864c-49dd8c334c40.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199337/7156ec7e-f798-11e5-864c-49dd8c334c40.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Problem</h3> <p dir="auto">But then you will eventually make it into something like this below.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199333/641738c0-f798-11e5-9464-43c6de465704.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199333/641738c0-f798-11e5-9464-43c6de465704.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Notice that the red Delete button is squished and on the side (this is mostly a desktop problem; mobile user won't have the same issue -- see below)</p> <h4 dir="auto">Mobile Version</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199436/364c3a70-f799-11e5-98af-7dbe7da0fbb1.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199436/364c3a70-f799-11e5-98af-7dbe7da0fbb1.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Solution</h3> <p dir="auto">So I propose two things:</p> <ul dir="auto"> <li>Change the "Delete" button into a "Edit" button so it'll fit on the button better. <ul dir="auto"> <li>This is fairly easy. You'll just need to change this in the challenge seeds starting with the challenge <a href="https://www.freecodecamp.com/challenges/warn-your-users-of-a-dangerous-action" rel="nofollow">Warn your Users of a Dangerous Action</a> where the button is added.</li> <li>Then change the challenges up until the last one on <a href="https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap" rel="nofollow">Line up Form Elements Responsively with Bootstrap</a>.</li> <li>You could also change the icon if appropriate.</li> </ul> </li> <li>Add new challenge to add in making all three of those buttons also have the class <code class="notranslate">btn-sm</code> to make the text inside the button not seem all smushed. <ul dir="auto"> <li>This one will require a little more effort in making an entirely new challenge, which may be unnecessary.</li> </ul> </li> </ul> <p dir="auto">Example:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;button class=&quot;btn btn-block btn-info btn-sm&quot;&gt;&lt;i class=&quot;fa fa-info-circle&quot;&gt;&lt;/i&gt; Info&lt;/button&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-info btn-sm</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-info-circle</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">i</span><span class="pl-kos">&gt;</span> Info<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">If the proposed changes were made, the finished app will look like this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199509/e3e483d6-f799-11e5-8983-b02a50d68da7.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199509/e3e483d6-f799-11e5-8983-b02a50d68da7.png" alt="image" style="max-width: 100%;"></a></p>
1
<h1 dir="auto">Environment</h1> <p dir="auto">Microsoft Windows [Version 10.0.18362.239]<br> Windows Terminal version 0.3.2142.0</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Press <code class="notranslate">ALT + 0192</code></p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">One <code class="notranslate">°</code> should be written in the console</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto"><code class="notranslate">°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°</code> is written to the console</p>
<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] 10.0.18362.239 Windows Terminal version (if applicable): the first version of ms store Any other software? None"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt] 10.0.18362.239 Windows Terminal version (if applicable): the first version of ms store Any other software? None </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">when run some heavy process, the terminal will disappear(It seems the process is still running I found from the task manager)!</p> <p dir="auto">The first time is I query large data from mysql, when it output the result, it quit!<br> Another time is I run elasticsearch and logstash, it costs lots of memory, and then the terminal disappear! But the services of elasticsearch and logstash are still alive!</p> <p dir="auto">I'm not sure this will happen everytime! It just sometimes do!</p>
0
<p dir="auto">I'm trying to implement server side rendering with react/redux. My components use <code class="notranslate">componentWillMount</code> to start fetching data from a REST API and I use a simple counter in my redux store to see how many fetching requests are pending. I then have this code server side:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" ReactDOM.renderToString(rootEle) store.subscribe(() =&gt; { const state = store.getState() if (state.wait === 0) { const html = ReactDOM.renderToString(rootEle) res.render(html) } })"><pre class="notranslate"> <span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">renderToString</span><span class="pl-kos">(</span><span class="pl-s1">rootEle</span><span class="pl-kos">)</span> <span class="pl-s1">store</span><span class="pl-kos">.</span><span class="pl-en">subscribe</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">state</span> <span class="pl-c1">=</span> <span class="pl-s1">store</span><span class="pl-kos">.</span><span class="pl-en">getState</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">state</span><span class="pl-kos">.</span><span class="pl-c1">wait</span> <span class="pl-c1">===</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">html</span> <span class="pl-c1">=</span> <span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">renderToString</span><span class="pl-kos">(</span><span class="pl-s1">rootEle</span><span class="pl-kos">)</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">html</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">which would work except for the fact that the second <code class="notranslate">ReactDOM.renderToString(rootEle)</code> fires all the componentWillMount events again, which increase the wait counter, which results in an infinite loop. So ideally, I was wondering if there was a way to call <code class="notranslate">const something = ReactDOM.render(rootEle)</code>, wait a few seconds for my wait counter to go down to zero and <code class="notranslate">res.render(something.toString())</code>.</p> <p dir="auto"><strong>Edit:</strong> As a temporary fix, I'm unsubscribing from the redux store when I reach wait === 0:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" ReactDOM.renderToString(rootEle) const unsubscribe = store.subscribe(() =&gt; { const state = store.getState() if (state.wait === 0) { unsubscribe() const html = ReactDOM.renderToString(rootEle) res.send(html) } })"><pre class="notranslate"> <span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">renderToString</span><span class="pl-kos">(</span><span class="pl-s1">rootEle</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">unsubscribe</span> <span class="pl-c1">=</span> <span class="pl-s1">store</span><span class="pl-kos">.</span><span class="pl-en">subscribe</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">state</span> <span class="pl-c1">=</span> <span class="pl-s1">store</span><span class="pl-kos">.</span><span class="pl-en">getState</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">state</span><span class="pl-kos">.</span><span class="pl-c1">wait</span> <span class="pl-c1">===</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">unsubscribe</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">html</span> <span class="pl-c1">=</span> <span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">renderToString</span><span class="pl-kos">(</span><span class="pl-s1">rootEle</span><span class="pl-kos">)</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-s1">html</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">though it still does a bunch of useless async calls because that second renderToString calls the componentWillMount methods again.</p>
<p dir="auto">It would seriously ease the process of building something isomorphic if componentWillMount could return a promise and that react would delay rendering until that promise is resolved. I have seen attempt of doing something like that in react-router and rrouter, however giving this responsibility to each component instead of a router module would make more sense for me.</p>
1
<p dir="auto">visit the link <a href="https://facebook.github.io/react/docs/getting-started.html" rel="nofollow"><code class="notranslate">getting-started</code></a>, it's English page, how to read this page that writing by other language.</p>
<p dir="auto">Now, I've translated some docs into Japanese.<br> And there are Korean and Chinese docs, but there is no links to them.<br> How about add links to these translated doc in <a href="https://facebook.github.io/react/docs/getting-started.html" rel="nofollow">Getting Started</a>?<br> If the links is added, we will get more React.js users and feedbacks by them.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=steinwaywhw" rel="nofollow">Steinway Wu</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8486?redirect=false" rel="nofollow">SPR-8486</a></strong> and commented</p> <p dir="auto">I found it doesn't work under UTF-8.</p> <p dir="auto">After going through the source code of StringHttpMessageConverter, I concludes that although StringHttpMessageConverter has a "DEFAULT_CHARSET" public static member (with default 'ISO-8859-1'), it doesn't offer corresponding setter which leads to the embarrassing that I can't configure StringHttpMessageConverter in applicationContext.xml in a common &lt;property&gt; way.</p> <p dir="auto">I suggest that StringHttpMessageConverter should work like FormHttpMessageConverter which contains a private non-static member Charset, and offers corresponding setter for configuration.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151059" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14122" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14122/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14122">#14122</a> Backport constructor accepting Charset in StringHttpMessageConverter, from Spring for Android to Spring Web. (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dward_alfresco" rel="nofollow">David Ward</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6412?redirect=false" rel="nofollow">SPR-6412</a></strong> and commented</p> <p dir="auto">At Alfresco we found that the integration with Apache CXF 2.2.2 that worked with previous snapshots of Spring 3 does not work with RC2.</p> <p dir="auto">We are using a set up more or less as documented here</p> <p dir="auto"><a href="http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html" rel="nofollow">http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html</a></p> <p dir="auto">It appears to be due to the processing of the <code class="notranslate">@PostConstruct</code> annotation on org.apache.cxf.binding.AbstractBindingFactory or org.apache.cxf.binding.soap.SoapBindingFactory. SoapBindingFactory is declared as follows in cxf-extension-soap.xml. As you can see, it has a lazy-init.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;bean id=&quot;org.apache.cxf.binding.soap.SoapBindingFactory&quot; class=&quot;org.apache.cxf.binding.soap.SoapBindingFactory&quot; lazy-init=&quot;true&quot;&gt; &lt;property name=&quot;activationNamespaces&quot;&gt; &lt;set&gt; &lt;value&gt;http://schemas.xmlsoap.org/soap/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap12/&lt;/value&gt; &lt;value&gt;http://www.w3.org/2003/05/soap/bindings/HTTP/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap/http&lt;/value&gt; &lt;/set&gt; &lt;/property&gt; &lt;property name=&quot;bus&quot; ref=&quot;cxf&quot;/&gt; &lt;/bean&gt;"><pre class="notranslate"><code class="notranslate">&lt;bean id="org.apache.cxf.binding.soap.SoapBindingFactory" class="org.apache.cxf.binding.soap.SoapBindingFactory" lazy-init="true"&gt; &lt;property name="activationNamespaces"&gt; &lt;set&gt; &lt;value&gt;http://schemas.xmlsoap.org/soap/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap12/&lt;/value&gt; &lt;value&gt;http://www.w3.org/2003/05/soap/bindings/HTTP/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap/http&lt;/value&gt; &lt;/set&gt; &lt;/property&gt; &lt;property name="bus" ref="cxf"/&gt; &lt;/bean&gt; </code></pre></div> <p dir="auto">I found that in order to get it to work I had to manually add in CommonAnnotationBeanPostProcessor and override the SoapBindingFactory to not use lazy-init, as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;bean class=&quot;org.springframework.context.annotation.CommonAnnotationBeanPostProcessor&quot;/&gt; &lt;import resource=&quot;classpath:META-INF/cxf/cxf.xml&quot; /&gt; &lt;import resource=&quot;classpath:META-INF/cxf/cxf-extension-soap.xml&quot; /&gt; &lt;import resource=&quot;classpath:META-INF/cxf/cxf-servlet.xml&quot; /&gt; &lt;bean id=&quot;org.apache.cxf.binding.soap.SoapBindingFactory&quot; class=&quot;org.apache.cxf.binding.soap.SoapBindingFactory&quot;&gt; &lt;property name=&quot;activationNamespaces&quot;&gt; &lt;set&gt; &lt;value&gt;http://schemas.xmlsoap.org/soap/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap12/&lt;/value&gt; &lt;value&gt;http://www.w3.org/2003/05/soap/bindings/HTTP/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap/http&lt;/value&gt; &lt;/set&gt; &lt;/property&gt; &lt;property name=&quot;bus&quot; ref=&quot;cxf&quot;/&gt; &lt;/bean&gt;"><pre class="notranslate"><code class="notranslate">&lt;bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor"/&gt; &lt;import resource="classpath:META-INF/cxf/cxf.xml" /&gt; &lt;import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /&gt; &lt;import resource="classpath:META-INF/cxf/cxf-servlet.xml" /&gt; &lt;bean id="org.apache.cxf.binding.soap.SoapBindingFactory" class="org.apache.cxf.binding.soap.SoapBindingFactory"&gt; &lt;property name="activationNamespaces"&gt; &lt;set&gt; &lt;value&gt;http://schemas.xmlsoap.org/soap/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap12/&lt;/value&gt; &lt;value&gt;http://www.w3.org/2003/05/soap/bindings/HTTP/&lt;/value&gt; &lt;value&gt;http://schemas.xmlsoap.org/wsdl/soap/http&lt;/value&gt; &lt;/set&gt; &lt;/property&gt; &lt;property name="bus" ref="cxf"/&gt; &lt;/bean&gt; </code></pre></div> <hr> <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="398100024" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11125" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11125/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11125">#11125</a> Hibernate support does not support Hibernate 3.2 (only 3.3) (<em><strong>"depends on"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398099680" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11076" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11076/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11076">#11076</a> Behavior of Bean loading changed in RC2 (Incompatible to Apache CXF) (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">1 votes, 3 watchers</p>
0
<pre class="notranslate">filepath.Walk's WalkFunc (<a href="http://golang.org/pkg/path/filepath/#WalkFunc)" rel="nofollow">http://golang.org/pkg/path/filepath/#WalkFunc)</a> is documented as: "If there was a problem walking to the file or directory named by path, the incoming error will describe the problem and the function can decide how to handle that error (and Walk will not descend into that directory). " That is, it returns the stat error for that name. But Walk is implemented using (*os.File).Readdir (<a href="http://golang.org/pkg/os/#File.Readdir)" rel="nofollow">http://golang.org/pkg/os/#File.Readdir)</a>, which was changed in <a href="https://code.google.com/p/go/source/detail?r=100a10512ea4#" rel="nofollow">https://code.google.com/p/go/source/detail?r=100a10512ea4#</a> ... to match its documentation. That changed the behavior of filepath.Walk to now bail on any errors, rather than call the WalkFunc callback with a (problemFilename, nil, errFromStat). A fix was proposed at <a href="https://golang.org/cl/16100043/" rel="nofollow">https://golang.org/cl/16100043/</a></pre>
<pre class="notranslate">Now we have database/sql.Rows.Columns() but that only returns the column names. But although the database driver could return some more information about those columns, I can't see any way to get it. sql.Rows has a rowsi member (driver.Rows), and if the driver would implement a ColumnDescriber (<a href="http://play.golang.org/p/NliYBvmg4J)" rel="nofollow">http://play.golang.org/p/NliYBvmg4J)</a>, and driver.Rows would propagate it, OR sql.Rows would export a DriverRows() driver.Rows or such method, than we could use database/sql AND have the infos from the underlying drivers. A possible workaround is to Scan the first row into some []interface{} and inspect the returned values. But implementing this for each and every query with previously unknown columns seems error prone and dubious. What is the expected output? database/sql.Rows.Columns What is the expected output? What do you see instead? Which compiler are you using (5g, 6g, 8g, gccgo)? Which operating system are you using? Which version are you using? (run 'go version') Please provide any additional information below.</pre>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 1.3.0 Commit 46ce4d7933 (2019-11-26 06:09 UTC) Platform Info: OS: macOS (x86_64-apple-darwin19.0.0) CPU: Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, haswell) "><pre class="notranslate"><code class="notranslate">julia&gt; versioninfo() Julia Version 1.3.0 Commit 46ce4d7933 (2019-11-26 06:09 UTC) Platform Info: OS: macOS (x86_64-apple-darwin19.0.0) CPU: Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, haswell) </code></pre></div> <p dir="auto">It appears that cd() and at least a few other file handling functions can't handle that directories have spaces in their names.</p> <p dir="auto">The problem exists on the build above (on MacOS) and I have earlier today experienced equal behaviour on Windows 10 x64;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; cd(&quot;/Users/user/Virtualbox\ Shared\ Folder/&quot;) ERROR: syntax: invalid escape sequence Stacktrace: [1] top-level scope at REPL[7]:0"><pre class="notranslate"><code class="notranslate">julia&gt; cd("/Users/user/Virtualbox\ Shared\ Folder/") ERROR: syntax: invalid escape sequence Stacktrace: [1] top-level scope at REPL[7]:0 </code></pre></div> <p dir="auto">This may be an issue with how the tab-completion escapes the directory name, but...the escaping looks good to me. And it is identical to how Bash would have done it in a shell.</p>
<p dir="auto">Autocomplete in the REPL add <code class="notranslate">\</code> when needed to file names but julia1.0 functions do not like them</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; DelimitedFiles.readdlm(&quot;a\ a.txt&quot;) ERROR: syntax: invalid escape sequence"><pre class="notranslate"><code class="notranslate">julia&gt; DelimitedFiles.readdlm("a\ a.txt") ERROR: syntax: invalid escape sequence </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; DelimitedFiles.readdlm(&quot;a a.txt&quot;)"><pre class="notranslate"><code class="notranslate">julia&gt; DelimitedFiles.readdlm("a a.txt") </code></pre></div> <p dir="auto">works</p>
1
<p dir="auto">Trying instructions for gomobile from: <a href="https://github.com/golang/go/wiki/Mobile">https://github.com/golang/go/wiki/Mobile</a><br> This command is panicking: go get -d golang.org/x/mobile/example/basic</p> <p dir="auto">Error is:<br> can't load package: package golang.org/x/mobile/example/basic: no buildable Go source files in c:\tmp\devel\negentropia\webserv\src\golang.org\x\mobile\example\basic</p> <p dir="auto">System is go1.5 windows/amd64</p> <h1 dir="auto">Context is:</h1> <p dir="auto">set DEVEL=c:\tmp\devel<br> set GOPATH=%DEVEL%\negentropia\webserv</p> <p dir="auto">go get golang.org/x/mobile/cmd/gomobile</p> <p dir="auto">set PATH=c:\tmp\devel\negentropia\webserv\bin;%PATH%</p> <p dir="auto">gomobile init</p> <h1 dir="auto">Output is:</h1> <p dir="auto">C:\Users\esmarques&gt;go get -d golang.org/x/mobile/example/basic<br> can't load package: package golang.org/x/mobile/example/basic: no buildable Go source files in c:\tmp\devel\negentropia\webserv\src\golang.org\x\mobile\example\basic</p> <p dir="auto">C:\Users\esmarques&gt;dir c:\tmp\devel\negentropia\webserv\src\golang.org\x\mobile\example\basic<br> Volume in drive C is Windows<br> Volume Serial Number is 5406-D6F9</p> <p dir="auto">Directory of c:\tmp\devel\negentropia\webserv\src\golang.org\x\mobile\example\basic</p> <p dir="auto">21/08/2015 12:03 </p> .<br> 21/08/2015 12:03 ..<br> 21/08/2015 12:03 4.050 main.go<br> 1 File(s) 4.050 bytes<br> 2 Dir(s) 358.810.517.504 bytes free<p dir="auto"></p> <p dir="auto">C:\Users\esmarques&gt;<br> C:\Users\esmarques&gt;go version<br> go version go1.5 windows/amd64</p> <p dir="auto">C:\Users\esmarques&gt;</p>
<pre class="notranslate">This simple example source file has an introductory comment above the set of types, but godoc does not emit it. main // Introductory comment type ( // A A int // B B int )</pre>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">authorized_key</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0 config file = /Users/brian/Dropbox/Tech-Notes/Programming/Ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0 config file = /Users/brian/Dropbox/Tech-Notes/Programming/Ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults] inventory = inventory remote_user = ubuntu ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host} roles_path = roles retry_files_enabled = False"><pre class="notranslate"><code class="notranslate">[defaults] inventory = inventory remote_user = ubuntu ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host} roles_path = roles retry_files_enabled = False </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">macOS Sierra (10.12.3)</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Today I had to use one of my playbooks against a box that only has Python3. I learned about the "ansible_python_interpreter=/usr/bin/python3" variable I had to set, and my playbook worked through everything until I got to the "authorized_key" where it failed. I tried the same playbook against an Ubuntu box that still has Python2.7 and it worked fine. So it seems to be only the Python3.</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=" - name: Add SSH keys for the administrators authorized_key: user: bhuddleston key: https://github.com/bhuddleston.keys state: present"><pre class="notranslate"> - <span class="pl-ent">name</span>: <span class="pl-s">Add SSH keys for the administrators</span> <span class="pl-ent">authorized_key</span>: <span class="pl-ent">user</span>: <span class="pl-s">bhuddleston</span> <span class="pl-ent">key</span>: <span class="pl-s">https://github.com/bhuddleston.keys</span> <span class="pl-ent">state</span>: <span class="pl-s">present</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">TASK [Add SSH keys for the administrators] *************************************<br> changed: [targethost.domain.net]</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">The module gave an error and didn't add the SSH keys to the user.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;changed&quot;: false, &quot;failed&quot;: true, &quot;module_stderr&quot;: &quot;Shared connection to collector.oitd.net closed.\r\n&quot;, &quot;module_stdout&quot;: &quot;Traceback (most recent call last):\r\n File \&quot;/tmp/ansible__ftramx6/ansible_module_authorized_key.py\&quot;, line 527, in &lt;module&gt;\r\n main()\r\n File \&quot;/tmp/ansible__ftramx6/ansible_module_authorized_key.py\&quot;, line 523, in main\r\n results = enforce_state(module, module.params)\r\n File \&quot;/tmp/ansible__ftramx6/ansible_module_authorized_key.py\&quot;, line 433, in enforce_state\r\n key = [s for s in key.splitlines() if s and not s.startswith('#')]\r\n File \&quot;/tmp/ansible__ftramx6/ansible_module_authorized_key.py\&quot;, line 433, in &lt;listcomp&gt;\r\n key = [s for s in key.splitlines() if s and not s.startswith('#')]\r\nTypeError: startswith first arg must be bytes or a tuple of bytes, not str\r\n&quot;, &quot;msg&quot;: &quot;MODULE FAILURE&quot; }"><pre class="notranslate"><code class="notranslate">{ "changed": false, "failed": true, "module_stderr": "Shared connection to collector.oitd.net closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible__ftramx6/ansible_module_authorized_key.py\", line 527, in &lt;module&gt;\r\n main()\r\n File \"/tmp/ansible__ftramx6/ansible_module_authorized_key.py\", line 523, in main\r\n results = enforce_state(module, module.params)\r\n File \"/tmp/ansible__ftramx6/ansible_module_authorized_key.py\", line 433, in enforce_state\r\n key = [s for s in key.splitlines() if s and not s.startswith('#')]\r\n File \"/tmp/ansible__ftramx6/ansible_module_authorized_key.py\", line 433, in &lt;listcomp&gt;\r\n key = [s for s in key.splitlines() if s and not s.startswith('#')]\r\nTypeError: startswith first arg must be bytes or a tuple of bytes, not str\r\n", "msg": "MODULE FAILURE" } </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">authorized_key core module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0.0 config file = /home/james/active/boss/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.0.0 config file = /home/james/active/boss/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">[defaults]<br> nocows=1<br> inventory=ansible_hosts<br> host_key_checking=False</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Local: Ubuntu with Python 3.5.0+ at <code class="notranslate">/usr/bin/python3.5</code><br> Remote: Ubuntu 16.04.1 with Python 3.5.2 at <code class="notranslate">/usr/bin/python3.5</code></p> <p dir="auto">Python version is specified with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible_python_interpreter=/usr/bin/python3.5"><pre class="notranslate"><code class="notranslate">ansible_python_interpreter=/usr/bin/python3.5 </code></pre></div> <h5 dir="auto">SUMMARY</h5> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Given that user <code class="notranslate">james</code> exists, attempt to install keys from <a href="https://github.com/jamescooke.keys">https://github.com/jamescooke.keys</a> using <code class="notranslate">authorized_key</code> module.</p> <p dir="auto">Smallest example playbook I could create <code class="notranslate">test.yml</code>:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: all vars: - ansible_ssh_user: root tasks: - authorized_key: user: james key: https://github.com/jamescooke.keys"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">vars</span>: - <span class="pl-ent">ansible_ssh_user</span>: <span class="pl-s">root</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">authorized_key</span>: <span class="pl-ent">user</span>: <span class="pl-s">james</span> <span class="pl-ent">key</span>: <span class="pl-s">https://github.com/jamescooke.keys</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Two keys would be added to <code class="notranslate">james</code> user on remote.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Python crashes.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(venv) james@codebox:~/active/boss$ ansible-playbook test.yml -vvvv Using /home/james/active/boss/ansible.cfg as config file Loading callback plugin default of type stdout, v2.0 from /home/james/active/boss/venv/lib/python3.5/site-packages/ansible/plugins/callback/__init__.py PLAYBOOK: test.yml ************************************************************* 1 plays in test.yml PLAY [all] ********************************************************************* TASK [setup] ******************************************************************* Using module file /home/james/active/boss/venv/lib/python3.5/site-packages/ansible/modules/core/system/setup.py &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r 104.131.17.109 '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo $HOME/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429 `&quot; &amp;&amp; echo ansible-tmp-1483808135.2190897-90788529272429=&quot;` echo $HOME/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;'' &lt;104.131.17.109&gt; PUT /tmp/tmpqi9xuich TO /root/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429/setup.py &lt;104.131.17.109&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r '[104.131.17.109]' &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r 104.131.17.109 '/bin/sh -c '&quot;'&quot;'chmod u+x /root/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429/ /root/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429/setup.py &amp;&amp; sleep 0'&quot;'&quot;'' &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r -tt 104.131.17.109 '/bin/sh -c '&quot;'&quot;'/usr/bin/python3.5 /root/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429/setup.py; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'&quot;'&quot;'' ok: [104.131.17.109] TASK [authorized_key] ********************************************************** task path: /home/james/active/boss/test.yml:6 Using module file /home/james/active/boss/venv/lib/python3.5/site-packages/ansible/modules/core/system/authorized_key.py &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r 104.131.17.109 '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo $HOME/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281 `&quot; &amp;&amp; echo ansible-tmp-1483808139.0550506-81997757222281=&quot;` echo $HOME/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;'' &lt;104.131.17.109&gt; PUT /tmp/tmpinuhh2o4 TO /root/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281/authorized_key.py &lt;104.131.17.109&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r '[104.131.17.109]' &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r 104.131.17.109 '/bin/sh -c '&quot;'&quot;'chmod u+x /root/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281/ /root/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281/authorized_key.py &amp;&amp; sleep 0'&quot;'&quot;'' &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r -tt 104.131.17.109 '/bin/sh -c '&quot;'&quot;'/usr/bin/python3.5 /root/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281/authorized_key.py; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'&quot;'&quot;'' fatal: [104.131.17.109]: FAILED! =&gt; { &quot;changed&quot;: false, &quot;failed&quot;: true, &quot;invocation&quot;: { &quot;module_name&quot;: &quot;authorized_key&quot; }, &quot;module_stderr&quot;: &quot;OpenSSH_6.9p1 Ubuntu-2ubuntu0.2, OpenSSL 1.0.2d 9 Jul 2015\r\ndebug1: Reading configuration data /home/james/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 22341\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 104.131.17.109 closed.\r\n&quot;, &quot;module_stdout&quot;: &quot;Traceback (most recent call last):\r\n File \&quot;/tmp/ansible_grkuvdsh/ansible_module_authorized_key.py\&quot;, line 527, in &lt;module&gt;\r\n main()\r\n File \&quot;/tmp/ansible_grkuvdsh/ansible_module_authorized_key.py\&quot;, line 523, in main\r\n results = enforce_state(module, module.params)\r\n File \&quot;/tmp/ansible_grkuvdsh/ansible_module_authorized_key.py\&quot;, line 433, in enforce_state\r\n key = [s for s in key.splitlines() if s and not s.startswith('#')]\r\n File \&quot;/tmp/ansible_grkuvdsh/ansible_module_authorized_key.py\&quot;, line 433, in &lt;listcomp&gt;\r\n key = [s for s in key.splitlines() if s and not s.startswith('#')]\r\nTypeError: startswith first arg must be bytes or a tuple of bytes, not str\r\n&quot;, &quot;msg&quot;: &quot;MODULE FAILURE&quot; } to retry, use: --limit @/home/james/active/boss/test.retry PLAY RECAP ********************************************************************* 104.131.17.109 : ok=1 changed=0 unreachable=0 failed=1"><pre class="notranslate"><code class="notranslate">(venv) james@codebox:~/active/boss$ ansible-playbook test.yml -vvvv Using /home/james/active/boss/ansible.cfg as config file Loading callback plugin default of type stdout, v2.0 from /home/james/active/boss/venv/lib/python3.5/site-packages/ansible/plugins/callback/__init__.py PLAYBOOK: test.yml ************************************************************* 1 plays in test.yml PLAY [all] ********************************************************************* TASK [setup] ******************************************************************* Using module file /home/james/active/boss/venv/lib/python3.5/site-packages/ansible/modules/core/system/setup.py &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r 104.131.17.109 '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429 `" &amp;&amp; echo ansible-tmp-1483808135.2190897-90788529272429="` echo $HOME/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429 `" ) &amp;&amp; sleep 0'"'"'' &lt;104.131.17.109&gt; PUT /tmp/tmpqi9xuich TO /root/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429/setup.py &lt;104.131.17.109&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r '[104.131.17.109]' &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r 104.131.17.109 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429/ /root/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429/setup.py &amp;&amp; sleep 0'"'"'' &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r -tt 104.131.17.109 '/bin/sh -c '"'"'/usr/bin/python3.5 /root/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429/setup.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1483808135.2190897-90788529272429/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'"'"'' ok: [104.131.17.109] TASK [authorized_key] ********************************************************** task path: /home/james/active/boss/test.yml:6 Using module file /home/james/active/boss/venv/lib/python3.5/site-packages/ansible/modules/core/system/authorized_key.py &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r 104.131.17.109 '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281 `" &amp;&amp; echo ansible-tmp-1483808139.0550506-81997757222281="` echo $HOME/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281 `" ) &amp;&amp; sleep 0'"'"'' &lt;104.131.17.109&gt; PUT /tmp/tmpinuhh2o4 TO /root/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281/authorized_key.py &lt;104.131.17.109&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r '[104.131.17.109]' &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r 104.131.17.109 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281/ /root/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281/authorized_key.py &amp;&amp; sleep 0'"'"'' &lt;104.131.17.109&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;104.131.17.109&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/james/.ansible/cp/ansible-ssh-%h-%p-%r -tt 104.131.17.109 '/bin/sh -c '"'"'/usr/bin/python3.5 /root/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281/authorized_key.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1483808139.0550506-81997757222281/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'"'"'' fatal: [104.131.17.109]: FAILED! =&gt; { "changed": false, "failed": true, "invocation": { "module_name": "authorized_key" }, "module_stderr": "OpenSSH_6.9p1 Ubuntu-2ubuntu0.2, OpenSSL 1.0.2d 9 Jul 2015\r\ndebug1: Reading configuration data /home/james/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 22341\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 104.131.17.109 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_grkuvdsh/ansible_module_authorized_key.py\", line 527, in &lt;module&gt;\r\n main()\r\n File \"/tmp/ansible_grkuvdsh/ansible_module_authorized_key.py\", line 523, in main\r\n results = enforce_state(module, module.params)\r\n File \"/tmp/ansible_grkuvdsh/ansible_module_authorized_key.py\", line 433, in enforce_state\r\n key = [s for s in key.splitlines() if s and not s.startswith('#')]\r\n File \"/tmp/ansible_grkuvdsh/ansible_module_authorized_key.py\", line 433, in &lt;listcomp&gt;\r\n key = [s for s in key.splitlines() if s and not s.startswith('#')]\r\nTypeError: startswith first arg must be bytes or a tuple of bytes, not str\r\n", "msg": "MODULE FAILURE" } to retry, use: --limit @/home/james/active/boss/test.retry PLAY RECAP ********************************************************************* 104.131.17.109 : ok=1 changed=0 unreachable=0 failed=1 </code></pre></div> <p dir="auto">Fails with:</p> <ul dir="auto"> <li>current master: <a href="https://github.com/ansible/ansible/tree/cba66dfedc4b34c622fb61209dbe355d8bcc8503">https://github.com/ansible/ansible/tree/cba66dfedc4b34c622fb61209dbe355d8bcc8503</a></li> <li>2.2.0.0 from pip: <a href="https://pypi.python.org/pypi/ansible/2.2.0.0" rel="nofollow">https://pypi.python.org/pypi/ansible/2.2.0.0</a></li> </ul>
1
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/11648/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/11648/</a></p> <p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Update Demo should create and stop a replication controller [Conformance] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:209 Expected error: &lt;*errors.errorString | 0xc820652e70&gt;: { s: &quot;Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.30.15 --kubeconfig=/workspace/.kube/config get rc,svc -l name=update-demo --no-headers --namespace=e2e-tests-kubectl-5z9m9] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] &lt;nil&gt; 0xc820c8ba40 exit status 1 &lt;nil&gt; true [0xc820542440 0xc820542458 0xc820542470] [0xc820542440 0xc820542458 0xc820542470] [0xc820542450 0xc820542468] [0xab1c70 0xab1c70] 0xc820be0cc0}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n&quot;, } Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.30.15 --kubeconfig=/workspace/.kube/config get rc,svc -l name=update-demo --no-headers --namespace=e2e-tests-kubectl-5z9m9] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. [] &lt;nil&gt; 0xc820c8ba40 exit status 1 &lt;nil&gt; true [0xc820542440 0xc820542458 0xc820542470] [0xc820542440 0xc820542458 0xc820542470] [0xc820542450 0xc820542468] [0xab1c70 0xab1c70] 0xc820be0cc0}: Command stdout: stderr: failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. error: exit status 1 not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:209 Expected error: &lt;*errors.errorString | 0xc820652e70&gt;: { s: "Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.30.15 --kubeconfig=/workspace/.kube/config get rc,svc -l name=update-demo --no-headers --namespace=e2e-tests-kubectl-5z9m9] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] &lt;nil&gt; 0xc820c8ba40 exit status 1 &lt;nil&gt; true [0xc820542440 0xc820542458 0xc820542470] [0xc820542440 0xc820542458 0xc820542470] [0xc820542450 0xc820542468] [0xab1c70 0xab1c70] 0xc820be0cc0}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n", } Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.30.15 --kubeconfig=/workspace/.kube/config get rc,svc -l name=update-demo --no-headers --namespace=e2e-tests-kubectl-5z9m9] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. [] &lt;nil&gt; 0xc820c8ba40 exit status 1 &lt;nil&gt; true [0xc820542440 0xc820542458 0xc820542470] [0xc820542440 0xc820542458 0xc820542470] [0xc820542450 0xc820542468] [0xab1c70 0xab1c70] 0xc820be0cc0}: Command stdout: stderr: failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. error: exit status 1 not to have occurred </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164204998" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28565" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28565/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28565">#28565</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="165981728" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29072" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29072/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29072">#29072</a></p>
<p dir="auto"><code class="notranslate">error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.</code> appears in a lot of flakes. Speculation is that the metadata server is slow to respond.</p> <p dir="auto">So far, these are the issues where this message has popped up:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164220053" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28569" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28569/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28569">#28569</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164204998" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28565" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28565/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28565">#28565</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163991819" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28523" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28523/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28523">#28523</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163933215" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28507" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28507/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28507">#28507</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163811600" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28493" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28493/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28493">#28493</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163579268" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28439" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28439/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28439">#28439</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163578278" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28437" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28437/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28437">#28437</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163545161" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28429" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28429/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28429">#28429</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163541783" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28426" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28426/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28426">#28426</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163533035" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28420" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28420/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28420">#28420</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163207971" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28293" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28293/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28293">#28293</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162029512" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27976" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27976/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27976">#27976</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161598746" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27839" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27839/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27839">#27839</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161178789" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27715" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27715/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27715">#27715</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159529335" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27156" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27156/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27156">#27156</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158173781" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26715" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26715/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26715">#26715</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157357173" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26490" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26490/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26490">#26490</a></p> <p dir="auto">Sample failed run: <a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10664" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10664</a></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cjcullen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cjcullen">@cjcullen</a> since this is dealing with auth, I'm initially assigning to you. Feel free to reassign to someone more appropriate.</p>
1
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.3-dev</td> </tr> </tbody> </table> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158126671" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/18952" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/18952/hovercard" href="https://github.com/symfony/symfony/pull/18952">#18952</a></p> <p dir="auto"><code class="notranslate">UsernamePasswordJsonAuthenticationListener</code> seems to "high-jack" every request. While the documentation <a href="http://symfony.com/doc/master/security/json_login_setup.html" rel="nofollow">http://symfony.com/doc/master/security/json_login_setup.html</a> seems to imply it supports things like <code class="notranslate">check_path</code> I do not see this in the code at all. It might make sense to extend from <code class="notranslate">AbstractAuthenticationListener</code>. At the very least the listener should check the <code class="notranslate">Content-Type</code> header if its a json request.</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>master</td> </tr> </tbody> </table> <p dir="auto">Json login listener tries to authenticate on all routes on the firewall it is registered on, not just the configured check_path. It even blocks access to routes that are configured to allow anonymous access.</p> <p dir="auto">With this configuration</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="security: firewalls: customer: anonymous: ~ stateless: true pattern: ^/customerapi provider: my_db_customers guard: authenticators: - app.token_authenticator json_login: success_handler: app.customer_login_success_handler check_path: customer_login access_control: - { path: ^/customerapi/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/customerapi/account/create, roles: IS_AUTHENTICATED_ANONYMOUSLY }"><pre class="notranslate"><span class="pl-ent">security</span>: <span class="pl-ent">firewalls</span>: <span class="pl-ent">customer</span>: <span class="pl-ent">anonymous</span>: <span class="pl-c1">~</span> <span class="pl-ent">stateless</span>: <span class="pl-c1">true</span> <span class="pl-ent">pattern</span>: <span class="pl-s">^/customerapi</span> <span class="pl-ent">provider</span>: <span class="pl-s">my_db_customers</span> <span class="pl-ent">guard</span>: <span class="pl-ent">authenticators</span>: - <span class="pl-s">app.token_authenticator</span> <span class="pl-ent">json_login</span>: <span class="pl-ent">success_handler</span>: <span class="pl-s">app.customer_login_success_handler</span> <span class="pl-ent">check_path</span>: <span class="pl-s">customer_login </span> <span class="pl-ent">access_control</span>: - <span class="pl-s">{ path: ^/customerapi/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }</span> - <span class="pl-s">{ path: ^/customerapi/account/create, roles: IS_AUTHENTICATED_ANONYMOUSLY }</span></pre></div> <p dir="auto">no route starting with ^/customerapi can be accessed without the json format credentials for a valid user. Error messages in dev.log clearly show it is json authentication listener denying access.<br> For example GET request to some route requiring authentication, with proper access token and empty HTTP body results in:</p> <p dir="auto"><code class="notranslate">[2017-03-09 13:51:33] security.INFO: Guard authentication successful! {"token":"[object] (Symfony\\Component\\Security\\Guard\\Token\\PostAuthenticationGuardToken: PostAuthenticationGuardToken(user=\"*******@*****\", authenticated=true, roles=\"ROLE_CUSTOMER\"))","authenticator":"AppBundle\\Security\\CustomerTokenAuthenticator"} [] [2017-03-09 13:51:33] security.DEBUG: Guard authenticator set no success response: request continues. {"authenticator":"AppBundle\\Security\\CustomerTokenAuthenticator"} [] [2017-03-09 13:51:33] security.DEBUG: Remember me skipped: it is not configured for the firewall. {"authenticator":"AppBundle\\Security\\CustomerTokenAuthenticator"} [] [2017-03-09 13:51:33] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException(code: 0): Invalid JSON. at /home/lanttto/NetBeansProjects/AAh/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php:74)"}</code></p> <p dir="auto">As far as I undestand from the documentation this is not intended behavior. Seems to lack a check against request path to only act when check_path is requested.</p>
1
<p dir="auto">Hi,<br> I'm using Tensorflow <a href="http://ci.tensorflow.org/view/Nightly/job/nigntly-matrix-linux-gpu/TF_BUILD_CONTAINER_TYPE=GPU,TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-working/lastSuccessfulBuild/" rel="nofollow">last succeed build #85</a></p> <p dir="auto">I succeed to train a classifier with batch normalization and saving it with classifier.save(logdir) and restoring the classifier with<br> classifier = tf.contrib.skflow.TensorFlowEstimator.restore(logdir)</p> <p dir="auto">the classifier is restored but when using prediction classifier.predict(X_test) it seems that the batch normalization is applied as is in Training mode.</p> <p dir="auto">Looking to the code of batch normalization (batch_norm_ops.py)<br> <code class="notranslate">is_training = array_ops_.squeeze(ops.get_collection("IS_TRAINING")) mean, variance = control_flow_ops.cond(is_training, update_mean_var, lambda: (ema_mean, ema_var))</code></p> <p dir="auto">I suppose as the graph is loaded in restore step, the "IS_TRAINING" is defined at the state of True at the saved step. and the cond function used will be update_mean_var at predict step , however the "IS_TRAINING" is changed at _predict step.<br> you can detect the problem when classifying 2 class problem and adding a batch normalization before the softmax the mean of the softmax of any tested data will be 0.</p> <p dir="auto">Maybe a solution will be to use a placeholder in place of the variable is_training</p> <p dir="auto">Or I'm missing something ?</p>
<p dir="auto"><g-emoji class="g-emoji" alias="arrow_forward" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/25b6.png">▶</g-emoji> Operating System:<br> ubunutu 14.04 LTS</p> <p dir="auto"><g-emoji class="g-emoji" alias="arrow_forward" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/25b6.png">▶</g-emoji> Installed version of CUDA and cuDNN:<br> CUDA 7.5.18 / cuDNN 7.0(v4)<br> NVIDIA-SMI 352.39 Driver Version: 352.39<br> GeForce GTX TITAN X</p> <p dir="auto"><g-emoji class="g-emoji" alias="arrow_forward" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/25b6.png">▶</g-emoji> I installed tensorflow with next command line. And that is a link of tensorflow Github, 'Linux GPU, python 2' whl file.</p> <p dir="auto">sudo pip install --upgrade <a href="http://ci.tensorflow.org/view/Nightly/job/nigntly-matrix-linux-gpu/TF_BUILD_CONTAINER_TYPE=GPU,TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-working/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.8.0-cp27-none-linux_x86_64.whl" rel="nofollow">http://ci.tensorflow.org/view/Nightly/job/nigntly-matrix-linux-gpu/TF_BUILD_CONTAINER_TYPE=GPU,TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-working/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.8.0-cp27-none-linux_x86_64.whl</a></p> <p dir="auto"><g-emoji class="g-emoji" alias="arrow_forward" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/25b6.png">▶</g-emoji> TensorFlow version: 0.8.0<br> (outputs of python -c "import tensorflow; print(tensorflow.<strong>version</strong>)" )</p> <hr> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>Save and Restore a tfmodel modifying [tensorflow/tensorflow/examples/skflow/mnist.py]<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4004593/14917371/a93e2882-0e59-11e6-8ff0-8154c0cd318f.png"><img src="https://cloud.githubusercontent.com/assets/4004593/14917371/a93e2882-0e59-11e6-8ff0-8154c0cd318f.png" alt="image" style="max-width: 100%;"></a></li> <li>And see the accuracy is not deterministic but stochastic after restored.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4004593/14917401/d8e70342-0e59-11e6-86f6-aa778b66ede2.png"><img src="https://cloud.githubusercontent.com/assets/4004593/14917401/d8e70342-0e59-11e6-86f6-aa778b66ede2.png" alt="image" style="max-width: 100%;"></a></li> </ol> <h3 dir="auto">What have you tried?</h3> <p dir="auto">When I try to predict MNIST data after save() and restore() the 'tfmodel' with skflow function, the dropout shows stochastic outcomes. And when I remove the dropout, there is no stochasticity.</p> <hr> <p dir="auto">I guess when the model has been restored, the collections of a graph about DROPOUT are may not properly loaded. So some codes on<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4004593/14917208/dcbbfcc6-0e58-11e6-8b4f-8188a99fda8a.png"><img src="https://cloud.githubusercontent.com/assets/4004593/14917208/dcbbfcc6-0e58-11e6-8b4f-8188a99fda8a.png" alt="image" style="max-width: 100%;"></a><br> ▶ feed_dict = {prob: 1.0 for prob in dropouts}<br> the function of "_predict()" at [tensorflow/contrib/learn/python/learn/estimators/base.py] may dont' work.</p> <p dir="auto">If you run following code after restore tfmodel, then you will see that there is no 'droputs' key.<br> <g-emoji class="g-emoji" alias="arrow_forward" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/25b6.png">▶</g-emoji> print (classifier._graph.get_all_collection_keys())</p>
1
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of Sharding-Jdbc do you using?</h3> <p dir="auto">demo:sharding-jdbc-orchestration-etcd-yaml-example:master分支2.0.0</p> <p dir="auto">sharding-jdbc-core:2.0.1</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">使用etcd做编排治理,实现数据源、表与分片及读写分离策略的动态切换</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">启动失败:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Exception in thread &quot;main&quot; java.lang.NullPointerException at io.shardingjdbc.orchestration.api.OrchestrationShardingDataSourceFactory.createDataSource(OrchestrationShardingDataSourceFactory.java:77) at io.shardingjdbc.example.orchestration.yaml.OrchestrationEtcdYamlShardingMain.main(OrchestrationEtcdYamlShardingMain.java:40) "><pre class="notranslate"><span class="pl-smi">Exception</span> <span class="pl-s1">in</span> <span class="pl-s1">thread</span> <span class="pl-s">"main"</span> <span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">NullPointerException</span> <span class="pl-s1">at</span> <span class="pl-s1">io</span>.<span class="pl-s1">shardingjdbc</span>.<span class="pl-s1">orchestration</span>.<span class="pl-s1">api</span>.<span class="pl-s1">OrchestrationShardingDataSourceFactory</span>.<span class="pl-en">createDataSource</span>(<span class="pl-smi">OrchestrationShardingDataSourceFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">77</span>) <span class="pl-smi">at</span> <span class="pl-s1">io</span>.<span class="pl-s1">shardingjdbc</span>.<span class="pl-s1">example</span>.<span class="pl-s1">orchestration</span>.<span class="pl-s1">yaml</span>.<span class="pl-s1">OrchestrationEtcdYamlShardingMain</span>.<span class="pl-s1">main</span>(<span class="pl-smi">OrchestrationEtcdYamlShardingMain</span>.<span class="pl-smi">java</span>:<span class="pl-c1">40</span>)</pre></div> <h3 dir="auto">Steps to reproduce the behavior</h3> <p dir="auto">1.按照<a href="http://shardingjdbc.io/docs/02-guide/orchestration/" rel="nofollow">文档</a>把配置信息写入到etcd(使用etcd4jTest);<br> 2.把<code class="notranslate">yamlShardingDatabaseAndTable.yaml</code>中的信息除orchestration节点外,全部删除;<br> 3.执行<code class="notranslate">OrchestrationEtcdYamlShardingMain.java</code></p> <h3 dir="auto">Please provide the reproduce example codes (such as github link) if possible.</h3> <p dir="auto"><a href="">sharding-jdbc-orchestration-etcd-yaml-example</a></p> <p dir="auto"><a href="https://github.com/mzanthem/etcd4jTest">etc4jTest</a></p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">5.1.0 and 5.1.2</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-Proxy</p> <p dir="auto">It is a same issue with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="492270330" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/3024" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/3024/hovercard" href="https://github.com/apache/shardingsphere/issues/3024">#3024</a><br> i had the same problem with version 5.1.2,it may not have been resolved。</p> <p dir="auto">I compared Logic SQL and Actual SQL and found that they are not the same。</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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">The color which is supplied in palette.text.primary value doesn't seem to do anything.<br> I was hoping that when I pass that value then that color will be used for every component which has color value set to primary. But it seems that every component decides on the text color on its own by using the getContrastText mixin.</p> <p dir="auto">I understand there is a way to override this using "overrides" while creating a theme. But that would require overriding a lot for me as I want this thing to be user controlled through preferences.</p> <p dir="auto">May be I am just understanding it wrongly. My main question is that if the value passed under palette.text.primary is used at all ?</p> <h2 dir="auto">Context</h2> <p dir="auto">I am trying to make a user controlled look and feel where the user will be able to choose from several predefined color schemes I provide in the application</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.27</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table> <p dir="auto">Additionally, is there a slack chat available for this kind of questions ?</p>
<p dir="auto">Since using v1, I find myself often wanting to quickly navigate to a Component's implementation, to check its implementation details, but especially since material-ui now uses JSS, which requires us to look at the classes in the source code to override them properly.</p> <p dir="auto">I think it'd be helpful to either:</p> <ul class="contains-task-list"> <li> <p dir="auto">Add a link to a component's source code on every page</p> </li> <li> <p dir="auto">Add the defaults for each JSS class (much more work I guess)</p> </li> <li class="task-list-item"> <p dir="auto"><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.</p> </li> </ul> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>v1</td> </tr> </tbody> </table>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" 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">Because of changes in React 16, server-side rendering no longer behaves any differently in production mode than in any other environment. Libraries such as Next.js configure Webpack to compile client code in production mode. Many users need to run multiple different environments with different configurations. For example, a staging environment might need to run a production build of the app but it's NODE_ENV might be 'staging'. If this is the case, the server will always render long classnames while the client will always expect short classnames.</p> <p dir="auto">In Next.js, this causes the initial render to break but every subsequent render to work correctly. After tracking this bug throughout my entire stack, I determined that it comes from material-ui's configuration approach.</p> <p dir="auto">Rather than requiring the user to set process.env.NODE_ENV to production, allow the user to pass some kind of configuration variable that would trigger <code class="notranslate">createGenerateClassName.js</code> to operate in "production mode".</p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.12</td> </tr> <tr> <td>React</td> <td>16.0</td> </tr> <tr> <td>browser</td> <td>all</td> </tr> <tr> <td>etc</td> <td>Next.js 4.0-beta.2</td> </tr> </tbody> </table>
<h3 dir="auto">Problem description</h3> <p dir="auto">With the recent change to flow 0.53, we encountered a small but perhaps unnecessary size increase. There are two sources of this:</p> <ol dir="auto"> <li>the conditional check for <code class="notranslate">typeof</code> seems quite long</li> <li>there are two assignments to propTypes</li> </ol> <p dir="auto">This was occurring before the PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="252129897" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/7869" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/7869/hovercard" href="https://github.com/mui/material-ui/pull/7869">#7869</a> as verified in the build package, but I assume the long <code class="notranslate">typeof</code> check pushed us up and over that limit.</p> <p dir="auto">This could be a bug in the plugin, or it could be a quirk with our usage.</p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li><code class="notranslate">yarn build</code></li> <li>open <code class="notranslate">RadioGroup.js</code></li> <li>look at the bottom to find</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="RadioGroup.propTypes = process.env.NODE_ENV !== &quot;production&quot; ? (_ref2 = { classes: require('prop-types').object.isRequired, children: typeof (React.ChildrenArray == null ? {} : React.ChildrenArray) === 'function' ? require('prop-types').instanceOf(React.ChildrenArray == null ? {} : React.ChildrenArray) : require('prop-types').any }, (0, _defineProperty3.default)(_ref2, 'classes', require('prop-types').object), (0, _defineProperty3.default)(_ref2, 'className', require('prop-types').string), (0, _defineProperty3.default)(_ref2, 'name', require('prop-types').string), (0, _defineProperty3.default)(_ref2, 'onBlur', require('prop-types').func), (0, _defineProperty3.default)(_ref2, 'onChange', require('prop-types').func), (0, _defineProperty3.default)(_ref2, 'onKeyDown', require('prop-types').func), (0, _defineProperty3.default)(_ref2, 'value', require('prop-types').string.isRequired), _ref2) : {}; RadioGroup.propTypes = process.env.NODE_ENV !== &quot;production&quot; ? (_ref3 = { classes: require('prop-types').object.isRequired, children: typeof (React.ChildrenArray == null ? {} : React.ChildrenArray) === 'function' ? require('prop-types').instanceOf(React.ChildrenArray == null ? {} : React.ChildrenArray) : require('prop-types').any }, (0, _defineProperty3.default)(_ref3, 'classes', require('prop-types').object), (0, _defineProperty3.default)(_ref3, 'className', require('prop-types').string), (0, _defineProperty3.default)(_ref3, 'name', require('prop-types').string), (0, _defineProperty3.default)(_ref3, 'onBlur', require('prop-types').func), (0, _defineProperty3.default)(_ref3, 'onChange', require('prop-types').func), (0, _defineProperty3.default)(_ref3, 'onKeyDown', require('prop-types').func), (0, _defineProperty3.default)(_ref3, 'value', require('prop-types').string.isRequired), _ref3) : {};"><pre class="notranslate"><span class="pl-v">RadioGroup</span><span class="pl-kos">.</span><span class="pl-c1">propTypes</span> <span class="pl-c1">=</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">NODE_ENV</span> <span class="pl-c1">!==</span> <span class="pl-s">"production"</span> ? <span class="pl-kos">(</span><span class="pl-s1">_ref2</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">classes</span>: <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">object</span><span class="pl-kos">.</span><span class="pl-c1">isRequired</span><span class="pl-kos">,</span> <span class="pl-c1">children</span>: <span class="pl-k">typeof</span> <span class="pl-kos">(</span><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">ChildrenArray</span> <span class="pl-c1">==</span> <span class="pl-c1">null</span> ? <span class="pl-kos">{</span><span class="pl-kos">}</span> : <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">ChildrenArray</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-s">'function'</span> ? <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">instanceOf</span><span class="pl-kos">(</span><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">ChildrenArray</span> <span class="pl-c1">==</span> <span class="pl-c1">null</span> ? <span class="pl-kos">{</span><span class="pl-kos">}</span> : <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">ChildrenArray</span><span class="pl-kos">)</span> : <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">any</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref2</span><span class="pl-kos">,</span> <span class="pl-s">'classes'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">object</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref2</span><span class="pl-kos">,</span> <span class="pl-s">'className'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref2</span><span class="pl-kos">,</span> <span class="pl-s">'name'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref2</span><span class="pl-kos">,</span> <span class="pl-s">'onBlur'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">func</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref2</span><span class="pl-kos">,</span> <span class="pl-s">'onChange'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">func</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref2</span><span class="pl-kos">,</span> <span class="pl-s">'onKeyDown'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">func</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref2</span><span class="pl-kos">,</span> <span class="pl-s">'value'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">string</span><span class="pl-kos">.</span><span class="pl-c1">isRequired</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">_ref2</span><span class="pl-kos">)</span> : <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-v">RadioGroup</span><span class="pl-kos">.</span><span class="pl-c1">propTypes</span> <span class="pl-c1">=</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">NODE_ENV</span> <span class="pl-c1">!==</span> <span class="pl-s">"production"</span> ? <span class="pl-kos">(</span><span class="pl-s1">_ref3</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">classes</span>: <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">object</span><span class="pl-kos">.</span><span class="pl-c1">isRequired</span><span class="pl-kos">,</span> <span class="pl-c1">children</span>: <span class="pl-k">typeof</span> <span class="pl-kos">(</span><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">ChildrenArray</span> <span class="pl-c1">==</span> <span class="pl-c1">null</span> ? <span class="pl-kos">{</span><span class="pl-kos">}</span> : <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">ChildrenArray</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-s">'function'</span> ? <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">instanceOf</span><span class="pl-kos">(</span><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">ChildrenArray</span> <span class="pl-c1">==</span> <span class="pl-c1">null</span> ? <span class="pl-kos">{</span><span class="pl-kos">}</span> : <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">ChildrenArray</span><span class="pl-kos">)</span> : <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">any</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref3</span><span class="pl-kos">,</span> <span class="pl-s">'classes'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">object</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref3</span><span class="pl-kos">,</span> <span class="pl-s">'className'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref3</span><span class="pl-kos">,</span> <span class="pl-s">'name'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref3</span><span class="pl-kos">,</span> <span class="pl-s">'onBlur'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">func</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref3</span><span class="pl-kos">,</span> <span class="pl-s">'onChange'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">func</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref3</span><span class="pl-kos">,</span> <span class="pl-s">'onKeyDown'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">func</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_defineProperty3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref3</span><span class="pl-kos">,</span> <span class="pl-s">'value'</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'prop-types'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">string</span><span class="pl-kos">.</span><span class="pl-c1">isRequired</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">_ref3</span><span class="pl-kos">)</span> : <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">include_role</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0 config file = /usr/local/etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.13 (default, Jun 18 2017, 09:55:08) [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] "><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0 config file = /usr/local/etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.13 (default, Jun 18 2017, 09:55:08) [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">FreeBSD server, CentOS client</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Tasks from role included via include_role are duplicated if used inside dependencies.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">role 'technical'<br> role 'base' inlcudes 'technical' via include_role<br> role 'service1' depends on 'base'<br> role 'service2' depends on 'base'</p> <p dir="auto">playbook applies roles 'service1', 'service2' to a host.</p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">applied tasks from roles:<br> 'base' (with 'technical'), 'service1', 'service2'</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">applied tasks from roles:<br> 'base' (with 'technical"), 'service1', 'technical', 'service2'</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">yum</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.2.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.2.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">Using default configuration</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ansible is running on CentOS 7.3 and is trying to manage another CentOS 7.3 system.</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Using the yum module with the list parameter fails with a message like "Shared connection to xxxxx closed."</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: example-host remote_user: root gather_facts: no tasks: - name: List ansible packages and register result to print with debug later. yum: list: ansible register: result ..."><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">example-host</span> <span class="pl-ent">remote_user</span>: <span class="pl-s">root</span> <span class="pl-ent">gather_facts</span>: <span class="pl-s">no</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">List ansible packages and register result to print with debug later.</span> <span class="pl-ent">yum</span>: <span class="pl-ent">list</span>: <span class="pl-s">ansible</span> <span class="pl-ent">register</span>: <span class="pl-s">result</span> ...</pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I expected to get a list of packages in the result variable</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">The module fails with "Shared connection to example-host closed."</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using /etc/ansible/ansible.cfg as config file Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc PLAYBOOK: yum_error.yml **************************************************************** 1 plays in yum_error.yml PLAY [example-host] ************************************************************************ META: ran handlers TASK [List ansible packages and register result to print with debug later.] ************ task path: /root/yum_error.yml:7 Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/yum.py &lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '&quot;'&quot;'echo ~ &amp;&amp; sleep 0'&quot;'&quot;'' &lt;example-host&gt; (0, '/root\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964 `&quot; &amp;&amp; echo ansible-tmp-1500387081.41-174099514042964=&quot;` echo /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;'' &lt;example-host&gt; (0, 'ansible-tmp-1500387081.41-174099514042964=/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;example-host&gt; PUT /tmp/tmp5PxZfO TO /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py &lt;example-host&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf '[example-host]' &lt;example-host&gt; (0, 'sftp&gt; put /tmp/tmp5PxZfO /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py\n', 'OpenSSH_7.4p1 (CentrifyDC build 5.4.1-447) , OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/centrifydc/ssh/ssh_config\r\ndebug1: /etc/centrifydc/ssh/ssh_config line 55: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 2\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 2\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug3: Sent message fd 6 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /root size 0\r\ndebug3: Looking up /tmp/tmp5PxZfO\r\ndebug3: Sent message fd 6 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:22946\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 22946 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '&quot;'&quot;'chmod u+x /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/ /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py &amp;&amp; sleep 0'&quot;'&quot;'' &lt;example-host&gt; (0, '', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf -tt example-host '/bin/sh -c '&quot;'&quot;'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'&quot;'&quot;'' &lt;example-host&gt; (0, 'Traceback (most recent call last):\r\n File &quot;/tmp/ansible_GUOpc4/ansible_module_yum.py&quot;, line 1267, in &lt;module&gt;\r\n main()\r\n File &quot;/tmp/ansible_GUOpc4/ansible_module_yum.py&quot;, line 1225, in main\r\n params[\'disablerepo\'], params[\'enablerepo\'])}\r\n File &quot;/tmp/ansible_GUOpc4/ansible_module_yum.py&quot;, line 652, in list_stuff\r\n is_available(module, repoq, stuff, conf_file, qf=qf, installroot=installroot)) if p.strip()]\r\n File &quot;/tmp/ansible_GUOpc4/ansible_module_yum.py&quot;, line 597, in pkg_to_dict\r\n n,e,v,r,a,repo = pkgstr.split(\'|\')\r\nValueError: need more than 1 value to unpack\r\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to example-host closed.\r\n') fatal: [example-host]: FAILED! =&gt; { &quot;changed&quot;: false, &quot;failed&quot;: true, &quot;module_stderr&quot;: &quot;OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to example-host closed.\r\n&quot;, &quot;module_stdout&quot;: &quot;Traceback (most recent call last):\r\n File \&quot;/tmp/ansible_GUOpc4/ansible_module_yum.py\&quot;, line 1267, in &lt;module&gt;\r\n main()\r\n File \&quot;/tmp/ansible_GUOpc4/ansible_module_yum.py\&quot;, line 1225, in main\r\n params['disablerepo'], params['enablerepo'])}\r\n File \&quot;/tmp/ansible_GUOpc4/ansible_module_yum.py\&quot;, line 652, in list_stuff\r\n is_available(module, repoq, stuff, conf_file, qf=qf, installroot=installroot)) if p.strip()]\r\n File \&quot;/tmp/ansible_GUOpc4/ansible_module_yum.py\&quot;, line 597, in pkg_to_dict\r\n n,e,v,r,a,repo = pkgstr.split('|')\r\nValueError: need more than 1 value to unpack\r\n&quot;, &quot;msg&quot;: &quot;MODULE FAILURE&quot;, &quot;rc&quot;: 0 } to retry, use: --limit @/root/yum_error.retry PLAY RECAP ***************************************************************************** example-host : ok=0 changed=0 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">Using /etc/ansible/ansible.cfg as config file Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc PLAYBOOK: yum_error.yml **************************************************************** 1 plays in yum_error.yml PLAY [example-host] ************************************************************************ META: ran handlers TASK [List ansible packages and register result to print with debug later.] ************ task path: /root/yum_error.yml:7 Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/yum.py &lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"'' &lt;example-host&gt; (0, '/root\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964 `" &amp;&amp; echo ansible-tmp-1500387081.41-174099514042964="` echo /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964 `" ) &amp;&amp; sleep 0'"'"'' &lt;example-host&gt; (0, 'ansible-tmp-1500387081.41-174099514042964=/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;example-host&gt; PUT /tmp/tmp5PxZfO TO /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py &lt;example-host&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf '[example-host]' &lt;example-host&gt; (0, 'sftp&gt; put /tmp/tmp5PxZfO /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py\n', 'OpenSSH_7.4p1 (CentrifyDC build 5.4.1-447) , OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/centrifydc/ssh/ssh_config\r\ndebug1: /etc/centrifydc/ssh/ssh_config line 55: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug3: Sent message fd 6 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /root size 0\r\ndebug3: Looking up /tmp/tmp5PxZfO\r\ndebug3: Sent message fd 6 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:22946\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 22946 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/ /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py &amp;&amp; sleep 0'"'"'' &lt;example-host&gt; (0, '', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf -tt example-host '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'"'"'' &lt;example-host&gt; (0, 'Traceback (most recent call last):\r\n File "/tmp/ansible_GUOpc4/ansible_module_yum.py", line 1267, in &lt;module&gt;\r\n main()\r\n File "/tmp/ansible_GUOpc4/ansible_module_yum.py", line 1225, in main\r\n params[\'disablerepo\'], params[\'enablerepo\'])}\r\n File "/tmp/ansible_GUOpc4/ansible_module_yum.py", line 652, in list_stuff\r\n is_available(module, repoq, stuff, conf_file, qf=qf, installroot=installroot)) if p.strip()]\r\n File "/tmp/ansible_GUOpc4/ansible_module_yum.py", line 597, in pkg_to_dict\r\n n,e,v,r,a,repo = pkgstr.split(\'|\')\r\nValueError: need more than 1 value to unpack\r\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to example-host closed.\r\n') fatal: [example-host]: FAILED! =&gt; { "changed": false, "failed": true, "module_stderr": "OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to example-host closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_GUOpc4/ansible_module_yum.py\", line 1267, in &lt;module&gt;\r\n main()\r\n File \"/tmp/ansible_GUOpc4/ansible_module_yum.py\", line 1225, in main\r\n params['disablerepo'], params['enablerepo'])}\r\n File \"/tmp/ansible_GUOpc4/ansible_module_yum.py\", line 652, in list_stuff\r\n is_available(module, repoq, stuff, conf_file, qf=qf, installroot=installroot)) if p.strip()]\r\n File \"/tmp/ansible_GUOpc4/ansible_module_yum.py\", line 597, in pkg_to_dict\r\n n,e,v,r,a,repo = pkgstr.split('|')\r\nValueError: need more than 1 value to unpack\r\n", "msg": "MODULE FAILURE", "rc": 0 } to retry, use: --limit @/root/yum_error.retry PLAY RECAP ***************************************************************************** example-host : ok=0 changed=0 unreachable=0 failed=1 </code></pre></div>
0
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Configuring <code class="notranslate">TargetPlatform.iOS</code> problems will appear</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MaterialApp( title: 'app, theme: new ThemeData( primarySwatch: Colors.red, platform: TargetPlatform.iOS, // ------&gt;&gt;&gt;&gt;&gt; ), navigatorObservers: &lt;NavigatorObserver&gt;[observers], onGenerateRoute: Application.router.generator, home: MyHomePage(title: 'app'), )"><pre class="notranslate"><code class="notranslate">MaterialApp( title: 'app, theme: new ThemeData( primarySwatch: Colors.red, platform: TargetPlatform.iOS, // ------&gt;&gt;&gt;&gt;&gt; ), navigatorObservers: &lt;NavigatorObserver&gt;[observers], onGenerateRoute: Application.router.generator, home: MyHomePage(title: 'app'), ) </code></pre></div> <h2 dir="auto">Logs</h2> <h3 dir="auto">flutter doctor</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel dev, v0.11.3, on Mac OS X 10.13.6 17G3025, locale zh-Hans-CN) [!] Android toolchain - develop for Android devices (Android SDK 28.0.3) ✗ Android license status unknown. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) [✓] Android Studio (version 3.2) [✓] VS Code (version 1.28.2) [✓] Connected device (1 available)"><pre class="notranslate"><code class="notranslate">Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel dev, v0.11.3, on Mac OS X 10.13.6 17G3025, locale zh-Hans-CN) [!] Android toolchain - develop for Android devices (Android SDK 28.0.3) ✗ Android license status unknown. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) [✓] Android Studio (version 3.2) [✓] VS Code (version 1.28.2) [✓] Connected device (1 available) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I/flutter (28074): ══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════ I/flutter (28074): The following assertion was thrown during a service extension callback for I/flutter (28074): &quot;ext.flutter.inspector.getRootWidgetSummaryTree&quot;: I/flutter (28074): 'package:flutter/src/material/typography.dart': Failed assertion: line 121 pos 14: 'black != null': I/flutter (28074): is not true. I/flutter (28074): I/flutter (28074): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (28074): more information in this error message to help you determine and fix the underlying cause. I/flutter (28074): In either case, please report this assertion by filing a bug on GitHub: I/flutter (28074): https://github.com/flutter/flutter/issues/new?template=BUG.md I/flutter (28074): I/flutter (28074): When the exception was thrown, this was the stack: I/flutter (28074): #2 new Typography._ (package:flutter/src/material/typography.dart:121:14) I/flutter (28074): #3 new Typography (package:flutter/src/material/typography.dart:117:23) I/flutter (28074): #4 Typography.debugFillProperties (package:flutter/src/material/typography.dart:254:42) I/flutter (28074): #5 DiagnosticableNode._builder (package:flutter/src/foundation/diagnostics.dart:1983:14) I/flutter (28074): #6 DiagnosticableNode.getProperties (package:flutter/src/foundation/diagnostics.dart:1996:44) I/flutter (28074): #7 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:899:46) I/flutter (28074): #8 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #9 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) I/flutter (28074): #10 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) I/flutter (28074): #11 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) I/flutter (28074): #12 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) I/flutter (28074): #13 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #14 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) I/flutter (28074): #15 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #16 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) I/flutter (28074): #17 _StringBase._interpolate (dart:core/runtime/libstring_patch.dart:827:19) I/flutter (28074): #18 Tween.toString (package:flutter/src/animation/tween.dart:264:58) I/flutter (28074): #19 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) I/flutter (28074): #20 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) I/flutter (28074): #21 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) I/flutter (28074): #22 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #23 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) I/flutter (28074): #24 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #25 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) I/flutter (28074): #26 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) I/flutter (28074): #27 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) I/flutter (28074): #28 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) I/flutter (28074): #29 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #30 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) I/flutter (28074): #31 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #32 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) I/flutter (28074): #33 DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:771:30) I/flutter (28074): #34 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1389:43) I/flutter (28074): #35 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1523:16) I/flutter (28074): #36 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) I/flutter (28074): #37 ListIterable.toList (dart:_internal/iterable.dart:219:19) I/flutter (28074): #38 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1528:10) I/flutter (28074): #39 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1421:26) I/flutter (28074): #40 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1523:16) I/flutter (28074): #41 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) I/flutter (28074): #42 ListIterable.toList (dart:_internal/iterable.dart:219:19) I/flutter (28074): #43 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1528:10) I/flutter (28074): #44 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1421:26) I/flutter (28074): #45 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1523:16) I/flutter (28074): #46 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) I/flutter (28074): #47 ListIterable.toList (dart:_internal/iterable.dart:219:19) I/flutter (28074): #48 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1528:10) I/flutter (28074): #49 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1421:26) I/flutter (28074): #50 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1523:16) I/flutter (28074): #51 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) I/flutter (28074): #52 ListIterable.toList (dart:_internal/iterable.dart:219:19) I/flutter (28074): #53 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1528:10) I/flutter (28074): #54 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1421:26) I/flutter (28074): #55 _WidgetInspectorService._getRootWidgetSummaryTree (package:flutter/src/widgets/widget_inspector.dart:1643:12) I/flutter (28074): #56 _WidgetInspectorService._registerObjectGroupServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:843:57) I/flutter (28074): &lt;asynchronous suspension&gt; I/flutter (28074): #57 BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32) I/flutter (28074): &lt;asynchronous suspension&gt; I/flutter (28074): #58 _runExtension (dart:developer/runtime/libdeveloper.dart:86:23) I/flutter (28074): (elided 2 frames from class _AssertionError) I/flutter (28074): ════════════════════════════════════════════════════════════════════════════════════════════════════ Error -32000 received from application: Server error"><pre class="notranslate"><code class="notranslate">I/flutter (28074): ══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════ I/flutter (28074): The following assertion was thrown during a service extension callback for I/flutter (28074): "ext.flutter.inspector.getRootWidgetSummaryTree": I/flutter (28074): 'package:flutter/src/material/typography.dart': Failed assertion: line 121 pos 14: 'black != null': I/flutter (28074): is not true. I/flutter (28074): I/flutter (28074): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (28074): more information in this error message to help you determine and fix the underlying cause. I/flutter (28074): In either case, please report this assertion by filing a bug on GitHub: I/flutter (28074): https://github.com/flutter/flutter/issues/new?template=BUG.md I/flutter (28074): I/flutter (28074): When the exception was thrown, this was the stack: I/flutter (28074): #2 new Typography._ (package:flutter/src/material/typography.dart:121:14) I/flutter (28074): #3 new Typography (package:flutter/src/material/typography.dart:117:23) I/flutter (28074): #4 Typography.debugFillProperties (package:flutter/src/material/typography.dart:254:42) I/flutter (28074): #5 DiagnosticableNode._builder (package:flutter/src/foundation/diagnostics.dart:1983:14) I/flutter (28074): #6 DiagnosticableNode.getProperties (package:flutter/src/foundation/diagnostics.dart:1996:44) I/flutter (28074): #7 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:899:46) I/flutter (28074): #8 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #9 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) I/flutter (28074): #10 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) I/flutter (28074): #11 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) I/flutter (28074): #12 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) I/flutter (28074): #13 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #14 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) I/flutter (28074): #15 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #16 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) I/flutter (28074): #17 _StringBase._interpolate (dart:core/runtime/libstring_patch.dart:827:19) I/flutter (28074): #18 Tween.toString (package:flutter/src/animation/tween.dart:264:58) I/flutter (28074): #19 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) I/flutter (28074): #20 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) I/flutter (28074): #21 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) I/flutter (28074): #22 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #23 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) I/flutter (28074): #24 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #25 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) I/flutter (28074): #26 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) I/flutter (28074): #27 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) I/flutter (28074): #28 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) I/flutter (28074): #29 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #30 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) I/flutter (28074): #31 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) I/flutter (28074): #32 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) I/flutter (28074): #33 DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:771:30) I/flutter (28074): #34 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1389:43) I/flutter (28074): #35 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1523:16) I/flutter (28074): #36 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) I/flutter (28074): #37 ListIterable.toList (dart:_internal/iterable.dart:219:19) I/flutter (28074): #38 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1528:10) I/flutter (28074): #39 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1421:26) I/flutter (28074): #40 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1523:16) I/flutter (28074): #41 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) I/flutter (28074): #42 ListIterable.toList (dart:_internal/iterable.dart:219:19) I/flutter (28074): #43 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1528:10) I/flutter (28074): #44 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1421:26) I/flutter (28074): #45 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1523:16) I/flutter (28074): #46 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) I/flutter (28074): #47 ListIterable.toList (dart:_internal/iterable.dart:219:19) I/flutter (28074): #48 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1528:10) I/flutter (28074): #49 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1421:26) I/flutter (28074): #50 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1523:16) I/flutter (28074): #51 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) I/flutter (28074): #52 ListIterable.toList (dart:_internal/iterable.dart:219:19) I/flutter (28074): #53 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1528:10) I/flutter (28074): #54 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1421:26) I/flutter (28074): #55 _WidgetInspectorService._getRootWidgetSummaryTree (package:flutter/src/widgets/widget_inspector.dart:1643:12) I/flutter (28074): #56 _WidgetInspectorService._registerObjectGroupServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:843:57) I/flutter (28074): &lt;asynchronous suspension&gt; I/flutter (28074): #57 BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32) I/flutter (28074): &lt;asynchronous suspension&gt; I/flutter (28074): #58 _runExtension (dart:developer/runtime/libdeveloper.dart:86:23) I/flutter (28074): (elided 2 frames from class _AssertionError) I/flutter (28074): ════════════════════════════════════════════════════════════════════════════════════════════════════ Error -32000 received from application: Server error </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Run this demo app:</li> </ol> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; void main() =&gt; runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { final platform = defaultTargetPlatform; final companyBlackMountainView = Typography.blackMountainView.copyWith( caption: Typography.blackMountainView.caption.copyWith( color: Color(0x99020303), ), ); final companyBlackCupertino = Typography.blackCupertino.copyWith( caption: Typography.blackCupertino.caption.copyWith( color: Color(0x99020303), ), ); TextTheme black; TextTheme white; switch (platform) { case TargetPlatform.iOS: black = companyBlackCupertino; white = Typography.whiteCupertino; break; case TargetPlatform.android: case TargetPlatform.fuchsia: black = companyBlackMountainView; white = Typography.whiteMountainView; } return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, typography: Typography( platform: defaultTargetPlatform, englishLike: Typography.englishLike2018, dense: Typography.dense2018, tall: Typography.tall2018, black: black, white: white, ), ), home: Container(), ); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/foundation.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>; <span class="pl-k">void</span> <span class="pl-en">main</span>() <span class="pl-k">=&gt;</span> <span class="pl-en">runApp</span>(<span class="pl-c1">MyApp</span>()); <span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">final</span> platform <span class="pl-k">=</span> defaultTargetPlatform; <span class="pl-k">final</span> companyBlackMountainView <span class="pl-k">=</span> <span class="pl-c1">Typography</span>.blackMountainView.<span class="pl-en">copyWith</span>( caption<span class="pl-k">:</span> <span class="pl-c1">Typography</span>.blackMountainView.caption.<span class="pl-en">copyWith</span>( color<span class="pl-k">:</span> <span class="pl-c1">Color</span>(<span class="pl-c1">0x99020303</span>), ), ); <span class="pl-k">final</span> companyBlackCupertino <span class="pl-k">=</span> <span class="pl-c1">Typography</span>.blackCupertino.<span class="pl-en">copyWith</span>( caption<span class="pl-k">:</span> <span class="pl-c1">Typography</span>.blackCupertino.caption.<span class="pl-en">copyWith</span>( color<span class="pl-k">:</span> <span class="pl-c1">Color</span>(<span class="pl-c1">0x99020303</span>), ), ); <span class="pl-c1">TextTheme</span> black; <span class="pl-c1">TextTheme</span> white; <span class="pl-k">switch</span> (platform) { <span class="pl-k">case</span> <span class="pl-c1">TargetPlatform</span>.iOS<span class="pl-k">:</span> black <span class="pl-k">=</span> companyBlackCupertino; white <span class="pl-k">=</span> <span class="pl-c1">Typography</span>.whiteCupertino; <span class="pl-k">break</span>; <span class="pl-k">case</span> <span class="pl-c1">TargetPlatform</span>.android<span class="pl-k">:</span> <span class="pl-k">case</span> <span class="pl-c1">TargetPlatform</span>.fuchsia<span class="pl-k">:</span> black <span class="pl-k">=</span> companyBlackMountainView; white <span class="pl-k">=</span> <span class="pl-c1">Typography</span>.whiteMountainView; } <span class="pl-k">return</span> <span class="pl-c1">MaterialApp</span>( title<span class="pl-k">:</span> <span class="pl-s">'Flutter Demo'</span>, theme<span class="pl-k">:</span> <span class="pl-c1">ThemeData</span>( primarySwatch<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.blue, typography<span class="pl-k">:</span> <span class="pl-c1">Typography</span>( platform<span class="pl-k">:</span> defaultTargetPlatform, englishLike<span class="pl-k">:</span> <span class="pl-c1">Typography</span>.englishLike2018, dense<span class="pl-k">:</span> <span class="pl-c1">Typography</span>.dense2018, tall<span class="pl-k">:</span> <span class="pl-c1">Typography</span>.tall2018, black<span class="pl-k">:</span> black, white<span class="pl-k">:</span> white, ), ), home<span class="pl-k">:</span> <span class="pl-c1">Container</span>(), ); } }</pre></div> <ol start="2" dir="auto"> <li>In console this error is registered:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="11:16:46.458 5 info flutter.tools flutter: ══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════ 11:16:46.458 6 info flutter.tools flutter: The following assertion was thrown during a service extension callback for 11:16:46.458 7 info flutter.tools flutter: &quot;ext.flutter.inspector.getRootWidgetSummaryTree&quot;: 11:16:46.458 8 info flutter.tools flutter: 'package:flutter/src/material/typography.dart': Failed assertion: line 121 pos 14: 'black != null': 11:16:46.458 9 info flutter.tools flutter: is not true. 11:16:46.458 10 info flutter.tools flutter: 11:16:46.458 11 info flutter.tools flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially 11:16:46.458 12 info flutter.tools flutter: more information in this error message to help you determine and fix the underlying cause. 11:16:46.458 13 info flutter.tools flutter: In either case, please report this assertion by filing a bug on GitHub: 11:16:46.458 14 info flutter.tools flutter: https://github.com/flutter/flutter/issues/new?template=BUG.md 11:16:46.458 15 info flutter.tools flutter: 11:16:46.458 16 info flutter.tools flutter: When the exception was thrown, this was the stack: 11:16:46.431 17 finer runtime.gc collection time 59ms • 28.7MB used of 32.7MB • isolates/177527503 11:16:46.464 18 info flutter.tools flutter: #2 new Typography._ (package:flutter/src/material/typography.dart:121:14) 11:16:46.464 19 info flutter.tools flutter: #3 new Typography (package:flutter/src/material/typography.dart:117:23) 11:16:46.464 20 info flutter.tools flutter: #4 Typography.debugFillProperties (package:flutter/src/material/typography.dart:254:42) 11:16:46.464 21 info flutter.tools flutter: #5 DiagnosticableNode._builder (package:flutter/src/foundation/diagnostics.dart:1983:14) 11:16:46.464 22 info flutter.tools flutter: #6 DiagnosticableNode.getProperties (package:flutter/src/foundation/diagnostics.dart:1996:44) 11:16:46.464 23 info flutter.tools flutter: #7 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:899:46) 11:16:46.464 24 info flutter.tools flutter: #8 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.464 25 info flutter.tools flutter: #9 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) 11:16:46.465 26 info flutter.tools flutter: #10 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) 11:16:46.465 27 info flutter.tools flutter: #11 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) 11:16:46.465 28 info flutter.tools flutter: #12 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) 11:16:46.465 29 info flutter.tools flutter: #13 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.465 30 info flutter.tools flutter: #14 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) 11:16:46.465 31 info flutter.tools flutter: #15 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.465 32 info flutter.tools flutter: #16 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) 11:16:46.465 33 info flutter.tools flutter: #17 _StringBase._interpolate (dart:core/runtime/libstring_patch.dart:827:19) 11:16:46.465 34 info flutter.tools flutter: #18 Tween.toString (package:flutter/src/animation/tween.dart:264:58) 11:16:46.466 35 info flutter.tools flutter: #19 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) 11:16:46.466 36 info flutter.tools flutter: #20 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) 11:16:46.466 37 info flutter.tools flutter: #21 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) 11:16:46.466 38 info flutter.tools flutter: #22 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.466 39 info flutter.tools flutter: #23 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) 11:16:46.467 40 info flutter.tools flutter: #24 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.467 41 info flutter.tools flutter: #25 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) 11:16:46.467 42 info flutter.tools flutter: #26 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) 11:16:46.467 43 info flutter.tools flutter: #27 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) 11:16:46.467 44 info flutter.tools flutter: #28 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) 11:16:46.467 45 info flutter.tools flutter: #29 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.469 46 info flutter.tools flutter: #30 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) 11:16:46.469 47 info flutter.tools flutter: #31 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.469 48 info flutter.tools flutter: #32 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) 11:16:46.469 49 info flutter.tools flutter: #33 DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:771:30) 11:16:46.469 50 info flutter.tools flutter: #34 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1390:43) 11:16:46.469 51 info flutter.tools flutter: #35 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1524:16) 11:16:46.469 52 info flutter.tools flutter: #36 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) 11:16:46.470 53 info flutter.tools flutter: #37 ListIterable.toList (dart:_internal/iterable.dart:219:19) 11:16:46.470 54 info flutter.tools flutter: #38 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1529:10) 11:16:46.470 55 info flutter.tools flutter: #39 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1422:26) 11:16:46.470 56 info flutter.tools flutter: #40 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1524:16) 11:16:46.470 57 info flutter.tools flutter: #41 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) 11:16:46.470 58 info flutter.tools flutter: #42 ListIterable.toList (dart:_internal/iterable.dart:219:19) 11:16:46.472 59 info flutter.tools flutter: #43 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1529:10) 11:16:46.472 60 info flutter.tools flutter: #44 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1422:26) 11:16:46.472 61 info flutter.tools flutter: #45 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1524:16) 11:16:46.472 62 info flutter.tools flutter: #46 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) 11:16:46.473 63 info flutter.tools flutter: #47 ListIterable.toList (dart:_internal/iterable.dart:219:19) 11:16:46.473 64 info flutter.tools flutter: #48 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1529:10) 11:16:46.473 65 info flutter.tools flutter: #49 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1422:26) 11:16:46.473 66 info flutter.tools flutter: #50 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1524:16) 11:16:46.473 67 info flutter.tools flutter: #51 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) 11:16:46.481 68 info flutter.tools flutter: #52 ListIterable.toList (dart:_internal/iterable.dart:219:19) 11:16:46.481 69 info flutter.tools flutter: #53 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1529:10) 11:16:46.481 70 info flutter.tools flutter: #54 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1422:26) 11:16:46.481 71 info flutter.tools flutter: #55 _WidgetInspectorService._getRootWidgetSummaryTree (package:flutter/src/widgets/widget_inspector.dart:1644:12) 11:16:46.481 72 info flutter.tools flutter: #56 _WidgetInspectorService._registerObjectGroupServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:843:57) 11:16:46.481 73 info flutter.tools flutter: &lt;asynchronous suspension&gt; 11:16:46.481 74 info flutter.tools flutter: #57 BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32) 11:16:46.481 75 info flutter.tools flutter: &lt;asynchronous suspension&gt; 11:16:46.481 76 info flutter.tools flutter: #58 _runExtension (dart:developer/runtime/libdeveloper.dart:86:23) 11:16:46.481 77 info flutter.tools flutter: (elided 2 frames from class _AssertionError) 11:16:46.481 78 info flutter.tools flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════ 11:16:46.497 79 info flutter.tools Error -32000 received from application: Server error "><pre class="notranslate"><code class="notranslate">11:16:46.458 5 info flutter.tools flutter: ══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════ 11:16:46.458 6 info flutter.tools flutter: The following assertion was thrown during a service extension callback for 11:16:46.458 7 info flutter.tools flutter: "ext.flutter.inspector.getRootWidgetSummaryTree": 11:16:46.458 8 info flutter.tools flutter: 'package:flutter/src/material/typography.dart': Failed assertion: line 121 pos 14: 'black != null': 11:16:46.458 9 info flutter.tools flutter: is not true. 11:16:46.458 10 info flutter.tools flutter: 11:16:46.458 11 info flutter.tools flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially 11:16:46.458 12 info flutter.tools flutter: more information in this error message to help you determine and fix the underlying cause. 11:16:46.458 13 info flutter.tools flutter: In either case, please report this assertion by filing a bug on GitHub: 11:16:46.458 14 info flutter.tools flutter: https://github.com/flutter/flutter/issues/new?template=BUG.md 11:16:46.458 15 info flutter.tools flutter: 11:16:46.458 16 info flutter.tools flutter: When the exception was thrown, this was the stack: 11:16:46.431 17 finer runtime.gc collection time 59ms • 28.7MB used of 32.7MB • isolates/177527503 11:16:46.464 18 info flutter.tools flutter: #2 new Typography._ (package:flutter/src/material/typography.dart:121:14) 11:16:46.464 19 info flutter.tools flutter: #3 new Typography (package:flutter/src/material/typography.dart:117:23) 11:16:46.464 20 info flutter.tools flutter: #4 Typography.debugFillProperties (package:flutter/src/material/typography.dart:254:42) 11:16:46.464 21 info flutter.tools flutter: #5 DiagnosticableNode._builder (package:flutter/src/foundation/diagnostics.dart:1983:14) 11:16:46.464 22 info flutter.tools flutter: #6 DiagnosticableNode.getProperties (package:flutter/src/foundation/diagnostics.dart:1996:44) 11:16:46.464 23 info flutter.tools flutter: #7 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:899:46) 11:16:46.464 24 info flutter.tools flutter: #8 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.464 25 info flutter.tools flutter: #9 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) 11:16:46.465 26 info flutter.tools flutter: #10 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) 11:16:46.465 27 info flutter.tools flutter: #11 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) 11:16:46.465 28 info flutter.tools flutter: #12 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) 11:16:46.465 29 info flutter.tools flutter: #13 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.465 30 info flutter.tools flutter: #14 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) 11:16:46.465 31 info flutter.tools flutter: #15 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.465 32 info flutter.tools flutter: #16 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) 11:16:46.465 33 info flutter.tools flutter: #17 _StringBase._interpolate (dart:core/runtime/libstring_patch.dart:827:19) 11:16:46.465 34 info flutter.tools flutter: #18 Tween.toString (package:flutter/src/animation/tween.dart:264:58) 11:16:46.466 35 info flutter.tools flutter: #19 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) 11:16:46.466 36 info flutter.tools flutter: #20 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) 11:16:46.466 37 info flutter.tools flutter: #21 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) 11:16:46.466 38 info flutter.tools flutter: #22 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.466 39 info flutter.tools flutter: #23 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) 11:16:46.467 40 info flutter.tools flutter: #24 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.467 41 info flutter.tools flutter: #25 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) 11:16:46.467 42 info flutter.tools flutter: #26 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:1808:60) 11:16:46.467 43 info flutter.tools flutter: #27 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:1822:21) 11:16:46.467 44 info flutter.tools flutter: #28 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:879:32) 11:16:46.467 45 info flutter.tools flutter: #29 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.469 46 info flutter.tools flutter: #30 DiagnosticsNode.toStringDeep (package:flutter/src/foundation/diagnostics.dart:940:39) 11:16:46.469 47 info flutter.tools flutter: #31 DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:795:14) 11:16:46.469 48 info flutter.tools flutter: #32 Diagnosticable.toString (package:flutter/src/foundation/diagnostics.dart:2131:70) 11:16:46.469 49 info flutter.tools flutter: #33 DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:771:30) 11:16:46.469 50 info flutter.tools flutter: #34 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1390:43) 11:16:46.469 51 info flutter.tools flutter: #35 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1524:16) 11:16:46.469 52 info flutter.tools flutter: #36 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) 11:16:46.470 53 info flutter.tools flutter: #37 ListIterable.toList (dart:_internal/iterable.dart:219:19) 11:16:46.470 54 info flutter.tools flutter: #38 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1529:10) 11:16:46.470 55 info flutter.tools flutter: #39 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1422:26) 11:16:46.470 56 info flutter.tools flutter: #40 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1524:16) 11:16:46.470 57 info flutter.tools flutter: #41 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) 11:16:46.470 58 info flutter.tools flutter: #42 ListIterable.toList (dart:_internal/iterable.dart:219:19) 11:16:46.472 59 info flutter.tools flutter: #43 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1529:10) 11:16:46.472 60 info flutter.tools flutter: #44 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1422:26) 11:16:46.472 61 info flutter.tools flutter: #45 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1524:16) 11:16:46.472 62 info flutter.tools flutter: #46 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) 11:16:46.473 63 info flutter.tools flutter: #47 ListIterable.toList (dart:_internal/iterable.dart:219:19) 11:16:46.473 64 info flutter.tools flutter: #48 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1529:10) 11:16:46.473 65 info flutter.tools flutter: #49 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1422:26) 11:16:46.473 66 info flutter.tools flutter: #50 _WidgetInspectorService._nodesToJson.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:1524:16) 11:16:46.473 67 info flutter.tools flutter: #51 MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29) 11:16:46.481 68 info flutter.tools flutter: #52 ListIterable.toList (dart:_internal/iterable.dart:219:19) 11:16:46.481 69 info flutter.tools flutter: #53 _WidgetInspectorService._nodesToJson (package:flutter/src/widgets/widget_inspector.dart:1529:10) 11:16:46.481 70 info flutter.tools flutter: #54 _WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1422:26) 11:16:46.481 71 info flutter.tools flutter: #55 _WidgetInspectorService._getRootWidgetSummaryTree (package:flutter/src/widgets/widget_inspector.dart:1644:12) 11:16:46.481 72 info flutter.tools flutter: #56 _WidgetInspectorService._registerObjectGroupServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/widgets/widget_inspector.dart:843:57) 11:16:46.481 73 info flutter.tools flutter: &lt;asynchronous suspension&gt; 11:16:46.481 74 info flutter.tools flutter: #57 BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32) 11:16:46.481 75 info flutter.tools flutter: &lt;asynchronous suspension&gt; 11:16:46.481 76 info flutter.tools flutter: #58 _runExtension (dart:developer/runtime/libdeveloper.dart:86:23) 11:16:46.481 77 info flutter.tools flutter: (elided 2 frames from class _AssertionError) 11:16:46.481 78 info flutter.tools flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════ 11:16:46.497 79 info flutter.tools Error -32000 received from application: Server error </code></pre></div> <h2 dir="auto">Logs</h2> <h3 dir="auto">flutter analyze</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing typography_bug ... No issues found! (ran in 1.5s)"><pre class="notranslate"><code class="notranslate">Analyzing typography_bug ... No issues found! (ran in 1.5s) </code></pre></div> <h3 dir="auto">flutter doctor -v</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.11.12, on Mac OS X 10.14.1 18B75, locale en-LT) • Flutter version 0.11.12 at /Users/ts/Documents/flutter • Framework revision 06ec8d3b41 (9 hours ago), 2018-11-28 15:56:58 -0800 • Engine revision 72c7a75672 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at /Users/ts/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.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-1136-b06) • All Android licenses accepted. [!] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 ✗ Verify that all connected devices have been paired with this computer in Xcode. If all devices have been paired, libimobiledevice and ideviceinstaller may require updating. To update with Brew, run: brew update brew uninstall --ignore-dependencies libimobiledevice brew uninstall --ignore-dependencies usbmuxd brew install --HEAD usbmuxd brew unlink usbmuxd brew link usbmuxd brew install --HEAD libimobiledevice brew install ideviceinstaller • ios-deploy 1.9.4 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 31.0.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [!] VS Code (version 1.29.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [✓] Connected device (1 available) • iPhone XR • D64AFDE4-43A3-46CA-96A7-2C2698A20144 • ios • iOS 12.1 (simulator) ! Doctor found issues in 2 categories."><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.11.12, on Mac OS X 10.14.1 18B75, locale en-LT) • Flutter version 0.11.12 at /Users/ts/Documents/flutter • Framework revision 06ec8d3b41 (9 hours ago), 2018-11-28 15:56:58 -0800 • Engine revision 72c7a75672 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at /Users/ts/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.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-1136-b06) • All Android licenses accepted. [!] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 ✗ Verify that all connected devices have been paired with this computer in Xcode. If all devices have been paired, libimobiledevice and ideviceinstaller may require updating. To update with Brew, run: brew update brew uninstall --ignore-dependencies libimobiledevice brew uninstall --ignore-dependencies usbmuxd brew install --HEAD usbmuxd brew unlink usbmuxd brew link usbmuxd brew install --HEAD libimobiledevice brew install ideviceinstaller • ios-deploy 1.9.4 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 31.0.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [!] VS Code (version 1.29.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [✓] Connected device (1 available) • iPhone XR • D64AFDE4-43A3-46CA-96A7-2C2698A20144 • ios • iOS 12.1 (simulator) ! Doctor found issues in 2 categories. </code></pre></div>
1
<p dir="auto">I've found two problems of Atom's soft wrapping:</p> <ol dir="auto"> <li>Chinese and Japanese language does not use spaces to separate characters, it causes that Atom treats Chinese sentence as a extremely-long "word" and does not perform correct wrap. According to [http://en.wikipedia.org/wiki/Line_breaking_rules_in_East_Asian_languages], a "CJK Word" is something like <code class="notranslate">(Opening punctuation)*(Han character | Kana)(Trailing punctuation|Traialing Kana)*</code>.</li> <li>Atom cannot handle non-monospaced fonts correctly. Han characters and Kanas are much wider than Latin characters.</li> </ol>
<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
<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.3</li> <li>Operating System version: Window10</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>open AccessLogFilter</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dubbo: scan: base-packages: ... protocol: name: dubbo port: 12345 registry: address: N/A provider: accesslog: true"><pre class="notranslate"><code class="notranslate">dubbo: scan: base-packages: ... protocol: name: dubbo port: 12345 registry: address: N/A provider: accesslog: true </code></pre></div> <ol start="2" dir="auto"> <li>org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper#buildInvokerChain return the AccessLogFilter success</li> <li>org.apache.dubbo.rpc.filter.AccessLogFilter#invoke</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="String accessLogKey = invoker.getUrl().getParameter(ACCESS_LOG_KEY); if (ConfigUtils.isNotEmpty(accessLogKey)) { log...... }"><pre class="notranslate"><code class="notranslate">String accessLogKey = invoker.getUrl().getParameter(ACCESS_LOG_KEY); if (ConfigUtils.isNotEmpty(accessLogKey)) { log...... } </code></pre></div> <p dir="auto">invoker.getUrl() not contain parameter who's named 'ACCESS_LOG_KEY' but accesslog.<br> <code class="notranslate">private static final String ACCESS_LOG_KEY = "dubbo.accesslog"; (Line 71 in AccessLogFilter)</code><br> There is no way to successfully print the log.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18323777/63648496-19cbff00-c763-11e9-9560-4080d8da9006.png"><img src="https://user-images.githubusercontent.com/18323777/63648496-19cbff00-c763-11e9-9560-4080d8da9006.png" alt="image" style="max-width: 100%;"></a></p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6</li> <li>Operating System version: xxx</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">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">These only show up in oldnumeric when 2to3 with the 2to3 renames and nonzero fixers. The replacement for <code class="notranslate">sys.maxint</code> in python3 is <code class="notranslate">sys.maxsize</code>, but the two aren't the same, the latter the size of <code class="notranslate">Py_ssize_t</code>. Likewise the the replacement for <code class="notranslate">__nonzero</code> is <code class="notranslate">__bool__</code>, but anyone using old numeric is likely to have made the change.</p> <p dir="auto">Because oldnumeric will go away, I suggest we leave those attributes unchanged and advertize that oldnumeric isn't supported in python 3.</p>
<p dir="auto">I've found a very strange bug. Under certain circumstances, a small number of the entries in the dot product of two 2D arrays will be wrong:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np nrow, ncol = 2, 69900 rows = np.random.normal(size=(nrow, 1)).astype(np.float32) columns = np.random.normal(size=(1, ncol)).astype(np.float32) np_outer = rows.dot(columns) ind0, ind1 = 0, 69818 print(np_outer[ind0, ind1], rows[ind0, 0]*columns[0, ind1])"><pre class="notranslate"><code class="notranslate">import numpy as np nrow, ncol = 2, 69900 rows = np.random.normal(size=(nrow, 1)).astype(np.float32) columns = np.random.normal(size=(1, ncol)).astype(np.float32) np_outer = rows.dot(columns) ind0, ind1 = 0, 69818 print(np_outer[ind0, ind1], rows[ind0, 0]*columns[0, ind1]) </code></pre></div> <p dir="auto">Most entries are fine. In this example, only columns 69818-69899 in the product are wrong.</p> <p dir="auto">This issue remains the same using <code class="notranslate">np.matmul(rows,columns)</code> and for different values of <code class="notranslate">nrow</code>. However it doesn't appear for an arbitrary values of <code class="notranslate">ncol</code>. There's a band of values around 69900 where errors appear, but there are none at 60000 or 70000. It's also not always the case that the last columns are the ones affected. For some values of <code class="notranslate">ncol</code>, there will be multiple bands of columns affected.</p> <p dir="auto">I have not seen this behavior with float64 arrays. It also disappears if you do the dot product in transposed order:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" np_outer_t = columns.T.dot(rows.T).T print(np_outer_t[ind0, ind1], rows[ind0, 0]*columns[0, ind1])"><pre class="notranslate"><code class="notranslate"> np_outer_t = columns.T.dot(rows.T).T print(np_outer_t[ind0, ind1], rows[ind0, 0]*columns[0, ind1]) </code></pre></div> <p dir="auto">System info: numpy 1.12.1, python 3.6.1, Macbook Pro, OS 10.6.1</p>
0
<p dir="auto"><a href="https://discourse.julialang.org/t/making-a-simple-wrapper-for-an-io-stream/52587/8" rel="nofollow">https://discourse.julialang.org/t/making-a-simple-wrapper-for-an-io-stream/52587/8</a></p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178550751" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/18626" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/18626/hovercard" href="https://github.com/JuliaLang/julia/pull/18626">#18626</a></p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=matthewadams" rel="nofollow">Matthew T. Adams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8835?redirect=false" rel="nofollow">SPR-8835</a></strong> and commented</p> <p dir="auto">I couldn't find a factory bean that combines maps, and the feature of merging collections among parent &amp; child beans (<a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-collection-elements" rel="nofollow">http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-collection-elements</a>) didn't suit my needs, so I created MapCombiningFactoryBean. Please add to Spring core if you see fit.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.9, 2.5.6, 3.0.6, 3.1 RC1</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/19107/MapCombiningFactoryBean.java" rel="nofollow">MapCombiningFactoryBean.java</a> (<em>1.45 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="398100553" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11189" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11189/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11189">#11189</a> Introduce 'merge' attribute for util namespace collection elements (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sbrannen" rel="nofollow">Sam Brannen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6523?redirect=false" rel="nofollow">SPR-6523</a></strong> and commented</p> <p dir="auto">Section <em>C.2.2.4 util:list/</em> of the reference manual states:</p> <blockquote> <p dir="auto">Finally, you can also control the merging behavior using the 'merge' attribute of the util:list/ element; collection merging is described in more detail in the section called "Collection merging".</p> </blockquote> <p dir="auto">This is, however, not true. In contrast to the standard support for collections (i.e., array, list, set, map) in the <em>beans</em> namespace, the <em>util</em> namespace does not support the merge attribute for collections.</p> <p dir="auto">Is this an oversight in the documentation or missing functionality in the util namespace support?</p> <p dir="auto">On a related note (perhaps worthy of its own JIRA issue), given the following application context configuration and JUnit test class...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:p=&quot;http://www.springframework.org/schema/p&quot; xmlns:util=&quot;http://www.springframework.org/schema/util&quot; xsi:schemaLocation=&quot; http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd&quot;&gt; &lt;bean id=&quot;listHolderParent&quot; class=&quot;com.example.MergedListTests$ListHolder&quot; abstract=&quot;true&quot;&gt; &lt;property name=&quot;list&quot;&gt; &lt;list&gt; &lt;value&gt;red&lt;/value&gt; &lt;value&gt;green&lt;/value&gt; &lt;value&gt;blue&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean id=&quot;listHolder&quot; parent=&quot;listHolderParent&quot;&gt; &lt;property name=&quot;list&quot;&gt; &lt;list merge=&quot;true&quot;&gt; &lt;value&gt;cyan&lt;/value&gt; &lt;value&gt;magenta&lt;/value&gt; &lt;value&gt;yellow&lt;/value&gt; &lt;value&gt;black&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; &lt;/beans&gt;"><pre class="notranslate"><code class="notranslate">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"&gt; &lt;bean id="listHolderParent" class="com.example.MergedListTests$ListHolder" abstract="true"&gt; &lt;property name="list"&gt; &lt;list&gt; &lt;value&gt;red&lt;/value&gt; &lt;value&gt;green&lt;/value&gt; &lt;value&gt;blue&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean id="listHolder" parent="listHolderParent"&gt; &lt;property name="list"&gt; &lt;list merge="true"&gt; &lt;value&gt;cyan&lt;/value&gt; &lt;value&gt;magenta&lt;/value&gt; &lt;value&gt;yellow&lt;/value&gt; &lt;value&gt;black&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; &lt;/beans&gt; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package com.example; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.util.List; import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class MergedListTests { @Test public void mergedList() { ApplicationContext appCtx = new ClassPathXmlApplicationContext( &quot;/com/example/MergedListTests-context.xml&quot;); ListHolder listHolder = appCtx.getBean(&quot;listHolder&quot;, ListHolder.class); assertNotNull(listHolder); assertEquals(7, listHolder.getList().size()); } public static class ListHolder { private List&lt;String&gt; list; public List&lt;String&gt; getList() { return this.list; } public void setList(List&lt;String&gt; list) { this.list = list; } } }"><pre class="notranslate"><code class="notranslate">package com.example; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.util.List; import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class MergedListTests { @Test public void mergedList() { ApplicationContext appCtx = new ClassPathXmlApplicationContext( "/com/example/MergedListTests-context.xml"); ListHolder listHolder = appCtx.getBean("listHolder", ListHolder.class); assertNotNull(listHolder); assertEquals(7, listHolder.getList().size()); } public static class ListHolder { private List&lt;String&gt; list; public List&lt;String&gt; getList() { return this.list; } public void setList(List&lt;String&gt; list) { this.list = list; } } } </code></pre></div> <p dir="auto">... changing the <strong></strong> definition in <em>listHolderParent</em> to <strong>util:list</strong> results in the following exception:</p> <blockquote> <p dir="auto">java.lang.IllegalArgumentException: Cannot merge with object of type [class org.springframework.beans.factory.config.BeanDefinitionHolder]<br> at org.springframework.beans.factory.support.ManagedList.merge(ManagedList.java:98)<br> at org.springframework.beans.factory.support.ManagedList.merge(ManagedList.java:1)<br> at org.springframework.beans.MutablePropertyValues.mergeIfRequired(MutablePropertyValues.java:221)<br> at org.springframework.beans.MutablePropertyValues.addPropertyValue(MutablePropertyValues.java:169)<br> at org.springframework.beans.MutablePropertyValues.addPropertyValues(MutablePropertyValues.java:138)<br> at org.springframework.beans.factory.support.AbstractBeanDefinition.overrideFrom(AbstractBeanDefinition.java:300)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1114)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1054)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1040)<br> at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:294)<br> at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:578)<br> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:398)<br> at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139)<br> at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83)<br> at com.example.MergedListTests.mergedList(MergedListTests.java:17)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> ...</p> </blockquote> <hr> <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="398096007" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10561" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10561/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10561">#10561</a> Merge multiple lists/maps/sets that share the same id into a single map/list (<em><strong>"Cloned from"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398089583" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9658" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9658/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9658">#9658</a> support cascading merge operation (<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="398115480" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13477" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13477/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13477">#13477</a> Add MapCombiningFactoryBean (<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="398073321" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7575" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7575/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7575">#7575</a> Support easier merge/concatenation of lists (<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="398151529" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14186" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14186/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14186">#14186</a> Respect 'merge' attribute of and elements in conjunction with nested property paths</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398087871" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9437" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9437/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9437">#9437</a> Merge of util:map does not work</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398061751" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6201" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6201/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6201">#6201</a> Support for Collection Merging in Parent/Child Bean Definitions</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398091257" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9872" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9872/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9872">#9872</a> Re-allow merge of util:map list, set, ... based on the same bean ID</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/a827ab88b160acdcb46c2d21c5dabb4b41dd57c5/hovercard" href="https://github.com/spring-projects/spring-framework/commit/a827ab88b160acdcb46c2d21c5dabb4b41dd57c5"><tt>a827ab8</tt></a></p> <p dir="auto">16 votes, 18 watchers</p>
1
<p dir="auto">I've got a small Rust program, trying to implement a binary search tree. With Rust 0.8, the compiler segfaults. WIth GIT revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/8ea2123055dcbc1caa0bb07bc492516027b832b4/hovercard" href="https://github.com/rust-lang/rust/commit/8ea2123055dcbc1caa0bb07bc492516027b832b4"><tt>8ea2123</tt></a>, I get a nicer error-message, THEN a segfault. Looks like some sort of infinite stack-recursion.</p> <p dir="auto">I'm including the program.</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="extern mod extra ; use std::rand; use std::rand::Rng; use std::vec ; use std::str ; use extra::sort ; struct bstnode&lt;K, V&gt; { k : K, v : V, l : Option&lt; bstnode&lt;K, V&gt; &gt;, r : Option&lt; bstnode&lt;K, V&gt; &gt; } impl&lt;K : Clone + Eq + TotalOrd , V : Clone&gt; bstnode&lt;K, V&gt; { fn new(k: &amp;K, v: &amp;V) -&gt; bstnode&lt;K,V&gt; { bstnode { k: (*k).clone(), v: (*v).clone(), l: None, r: None } } fn dumbinsert(node: &amp;mut bstnode&lt;K, V&gt;, k : &amp;K, v : &amp;V) { if (node.k.cmp(k) == Equal) { node.v = v.clone() ; } else if (k.cmp(&amp;(node.k)) == Less) { match node.l { None =&gt; { node.l = Some(bstnode::new(k, v)) ; } Some(ref mut l) =&gt; bstnode::dumbinsert(l, k, v) } } else { match node.r { None =&gt; { node.r = Some(bstnode::new(k, v)) ; } Some(ref mut r) =&gt; bstnode::dumbinsert(r, k, v) } } } } fn main() { let k = ~&quot;foo&quot;; let v = ~&quot;bar&quot;; let mut t = bstnode::new(&amp;k, &amp;v) ; let k2 = ~&quot;foo2&quot; ; let v2 = ~&quot;bar2&quot; ; bstnode::dumbinsert(&amp;mut t, &amp;k2, &amp;v2) ; }"><pre class="notranslate"><span class="pl-k">extern</span> <span class="pl-k">mod</span> extra <span class="pl-kos">;</span> <span class="pl-k">use</span> std<span class="pl-kos">::</span>rand<span class="pl-kos">;</span> <span class="pl-k">use</span> std<span class="pl-kos">::</span>rand<span class="pl-kos">::</span><span class="pl-v">Rng</span><span class="pl-kos">;</span> <span class="pl-k">use</span> std<span class="pl-kos">::</span>vec <span class="pl-kos">;</span> <span class="pl-k">use</span> std<span class="pl-kos">::</span>str <span class="pl-kos">;</span> <span class="pl-k">use</span> extra<span class="pl-kos">::</span>sort <span class="pl-kos">;</span> <span class="pl-k">struct</span> <span class="pl-smi">bstnode</span><span class="pl-kos">&lt;</span><span class="pl-smi">K</span><span class="pl-kos">,</span> <span class="pl-smi">V</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">k</span> <span class="pl-kos">:</span> <span class="pl-smi">K</span><span class="pl-kos">,</span> <span class="pl-c1">v</span> <span class="pl-kos">:</span> <span class="pl-smi">V</span><span class="pl-kos">,</span> <span class="pl-c1">l</span> <span class="pl-kos">:</span> <span class="pl-smi">Option</span><span class="pl-kos">&lt;</span> <span class="pl-smi">bstnode</span><span class="pl-kos">&lt;</span><span class="pl-smi">K</span><span class="pl-kos">,</span> <span class="pl-smi">V</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-c1">r</span> <span class="pl-kos">:</span> <span class="pl-smi">Option</span><span class="pl-kos">&lt;</span> <span class="pl-smi">bstnode</span><span class="pl-kos">&lt;</span><span class="pl-smi">K</span><span class="pl-kos">,</span> <span class="pl-smi">V</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&gt;</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">K</span> <span class="pl-kos">:</span> <span class="pl-smi">Clone</span> + <span class="pl-smi">Eq</span> + <span class="pl-smi">TotalOrd</span> <span class="pl-kos">,</span> <span class="pl-smi">V</span> <span class="pl-kos">:</span> <span class="pl-smi">Clone</span><span class="pl-kos">&gt;</span> <span class="pl-smi">bstnode</span><span class="pl-kos">&lt;</span><span class="pl-smi">K</span><span class="pl-kos">,</span> <span class="pl-smi">V</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-s1">k</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">K</span><span class="pl-kos">,</span> <span class="pl-s1">v</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">V</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">bstnode</span><span class="pl-kos">&lt;</span><span class="pl-smi">K</span><span class="pl-kos">,</span><span class="pl-smi">V</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">bstnode</span> <span class="pl-kos">{</span> <span class="pl-c1">k</span><span class="pl-kos">:</span> <span class="pl-kos">(</span><span class="pl-c1">*</span>k<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-c1">v</span><span class="pl-kos">:</span> <span class="pl-kos">(</span><span class="pl-c1">*</span>v<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-c1">l</span><span class="pl-kos">:</span> <span class="pl-v">None</span><span class="pl-kos">,</span> <span class="pl-c1">r</span><span class="pl-kos">:</span> <span class="pl-v">None</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">dumbinsert</span><span class="pl-kos">(</span><span class="pl-s1">node</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">bstnode</span><span class="pl-kos">&lt;</span><span class="pl-smi">K</span><span class="pl-kos">,</span> <span class="pl-smi">V</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-s1">k</span> <span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">K</span><span class="pl-kos">,</span> <span class="pl-s1">v</span> <span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">V</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span>node<span class="pl-kos">.</span><span class="pl-c1">k</span><span class="pl-kos">.</span><span class="pl-en">cmp</span><span class="pl-kos">(</span>k<span class="pl-kos">)</span> == <span class="pl-v">Equal</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> node<span class="pl-kos">.</span><span class="pl-c1">v</span> = v<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-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span>k<span class="pl-kos">.</span><span class="pl-en">cmp</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-kos">(</span>node<span class="pl-kos">.</span><span class="pl-c1">k</span><span class="pl-kos">)</span><span class="pl-kos">)</span> == <span class="pl-v">Less</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">match</span> node<span class="pl-kos">.</span><span class="pl-c1">l</span> <span class="pl-kos">{</span> <span class="pl-v">None</span> =&gt; <span class="pl-kos">{</span> node<span class="pl-kos">.</span><span class="pl-c1">l</span> = <span class="pl-v">Some</span><span class="pl-kos">(</span>bstnode<span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span>k<span class="pl-kos">,</span> v<span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">Some</span><span class="pl-kos">(</span><span class="pl-k">ref</span> <span class="pl-k">mut</span> l<span class="pl-kos">)</span> =&gt; bstnode<span class="pl-kos">::</span><span class="pl-en">dumbinsert</span><span class="pl-kos">(</span>l<span class="pl-kos">,</span> k<span class="pl-kos">,</span> v<span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">match</span> node<span class="pl-kos">.</span><span class="pl-c1">r</span> <span class="pl-kos">{</span> <span class="pl-v">None</span> =&gt; <span class="pl-kos">{</span> node<span class="pl-kos">.</span><span class="pl-c1">r</span> = <span class="pl-v">Some</span><span class="pl-kos">(</span>bstnode<span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span>k<span class="pl-kos">,</span> v<span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">Some</span><span class="pl-kos">(</span><span class="pl-k">ref</span> <span class="pl-k">mut</span> r<span class="pl-kos">)</span> =&gt; bstnode<span class="pl-kos">::</span><span class="pl-en">dumbinsert</span><span class="pl-kos">(</span>r<span class="pl-kos">,</span> k<span class="pl-kos">,</span> v<span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> k = ~"foo"<span class="pl-kos">;</span> <span class="pl-k">let</span> v = ~"bar"<span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> t = bstnode<span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span>k<span class="pl-kos">,</span> <span class="pl-c1">&amp;</span>v<span class="pl-kos">)</span> <span class="pl-kos">;</span> <span class="pl-k">let</span> k2 = ~"foo2" <span class="pl-kos">;</span> <span class="pl-k">let</span> v2 = ~"bar2" <span class="pl-kos">;</span> bstnode<span class="pl-kos">::</span><span class="pl-en">dumbinsert</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> t<span class="pl-kos">,</span> <span class="pl-c1">&amp;</span>k2<span class="pl-kos">,</span> <span class="pl-c1">&amp;</span>v2<span class="pl-kos">)</span> <span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">This is a backtrace from compiletest built with -g</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#11 0x00007ffff7aee3ff in context::call_shim_on_c_stack (this=0x43d700, args=0x445e80, fn_ptr=0x7ffff7af2f48) at ../src/rt/arch/x86_64/context.h:58 #12 0x00007ffff7af4066 in call_upcall_on_c_stack (args=0x445e80, fn_ptr=0x7ffff7af2f48) at ../src/rt/rust_upcall .cpp:37 #13 0x00007ffff7af3144 in upcall_shared_malloc (nbytes=52, td=0x0) at ../src/rt/rust_upcall.cpp:200 #14 0x000000000042be44 in glue_take::S::_7fffa7de31d4d8d4 () #15 0x000000000042ebf6 in _ZN9glue_take32R_5B_compile_lib_path_3D_Srun_lib_path17_78527795f021202cE () #16 0x0000000000426d8e in run_tests::_37dd24d3b9435856 () #17 0x000000000042fe28 in __morestack () #18 0x000000000041c0d0 in main::_c5e23313747479c7 () #19 0x000000000041c162 in _rust_main () #20 0x00007ffff7aec619 in task_start_wrapper (a=0x44272c) at ../src/rt/rust_task.cpp:282 #21 0x0000000000000000 in ?? ()"><pre class="notranslate"><code class="notranslate">#11 0x00007ffff7aee3ff in context::call_shim_on_c_stack (this=0x43d700, args=0x445e80, fn_ptr=0x7ffff7af2f48) at ../src/rt/arch/x86_64/context.h:58 #12 0x00007ffff7af4066 in call_upcall_on_c_stack (args=0x445e80, fn_ptr=0x7ffff7af2f48) at ../src/rt/rust_upcall .cpp:37 #13 0x00007ffff7af3144 in upcall_shared_malloc (nbytes=52, td=0x0) at ../src/rt/rust_upcall.cpp:200 #14 0x000000000042be44 in glue_take::S::_7fffa7de31d4d8d4 () #15 0x000000000042ebf6 in _ZN9glue_take32R_5B_compile_lib_path_3D_Srun_lib_path17_78527795f021202cE () #16 0x0000000000426d8e in run_tests::_37dd24d3b9435856 () #17 0x000000000042fe28 in __morestack () #18 0x000000000041c0d0 in main::_c5e23313747479c7 () #19 0x000000000041c162 in _rust_main () #20 0x00007ffff7aec619 in task_start_wrapper (a=0x44272c) at ../src/rt/rust_task.cpp:282 #21 0x0000000000000000 in ?? () </code></pre></div> <p dir="auto">gdb doesn't understand one of the names.</p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-give-your-javascript-slot-machine-some-stylish-images" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-give-your-javascript-slot-machine-some-stylish-images</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">The tests are not covering the task fully. One can pass it by updating only slot 0 three times:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5458077/9340230/6d98125e-45a3-11e5-990d-11f572af3cd5.png"><img src="https://cloud.githubusercontent.com/assets/5458077/9340230/6d98125e-45a3-11e5-990d-11f572af3cd5.png" alt="slot_zero_three" style="max-width: 100%;"></a></p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Bad resolution and placement of colorbar background.</p> <p dir="auto">The background of the colorbar looks ugly rectangular and displaced.<br> (There is even one more thing which is the font of the first tick label which is different, but this is not what is considered here).</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt plt.scatter([1,2,3],[3,4,5], c=[5,6,7]) plt.style.use(&quot;stas.mplstyle&quot;) plt.gcf().set_size_inches(8 / 2.54 , 6 / 2.54) plt.colorbar(extend=&quot;max&quot;) plt.savefig(&quot;plot.pdf&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-s1">plt</span>.<span class="pl-en">scatter</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>],[<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>], <span class="pl-s1">c</span><span class="pl-c1">=</span>[<span class="pl-c1">5</span>,<span class="pl-c1">6</span>,<span class="pl-c1">7</span>]) <span class="pl-s1">plt</span>.<span class="pl-s1">style</span>.<span class="pl-en">use</span>(<span class="pl-s">"stas.mplstyle"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">gcf</span>().<span class="pl-en">set_size_inches</span>(<span class="pl-c1">8</span> <span class="pl-c1">/</span> <span class="pl-c1">2.54</span> , <span class="pl-c1">6</span> <span class="pl-c1">/</span> <span class="pl-c1">2.54</span>) <span class="pl-s1">plt</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">extend</span><span class="pl-c1">=</span><span class="pl-s">"max"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">"plot.pdf"</span>)</pre></div> <p dir="auto"><strong>Result Plot</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/998651/47909348-f19ba880-de8f-11e8-8e94-849082dc3166.png"><img src="https://user-images.githubusercontent.com/998651/47909348-f19ba880-de8f-11e8-8e94-849082dc3166.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Arch Linux 64 Bit</li> <li>Matplotlib version: '3.0.0rc1+687.ga43fd8592.dirty'</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li> <li>Python version: Python 3.7.0 (default, Sep 15 2018, 19:13:07)</li> </ul> <p dir="auto">Installed via pacaur on from AUR: matplotlib-git</p> <p dir="auto"><strong>stas.mplstyle</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="### MATPLOTLIBRC FORMAT # This is a sample matplotlib configuration file - you can find a copy # of it on your system in # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it # there, please note that it will be overwritten in your next install. # If you want to keep a permanent local copy that will not be # overwritten, place it in the following location: # unix/linux: # $HOME/.config/matplotlib/matplotlibrc or # $XDG_CONFIG_HOME/matplotlib/matplotlibrc (if $XDG_CONFIG_HOME is set) # other platforms: # $HOME/.matplotlib/matplotlibrc # # See http://matplotlib.org/users/customizing.html#the-matplotlibrc-file for # more details on the paths which are checked for the configuration file. # # This file is best viewed in a editor which supports python mode # syntax highlighting. Blank lines, or lines starting with a comment # symbol, are ignored, as are trailing comments. Other lines must # have the format # key : val # optional comment # # Colors: for the color values below, you can either use - a # matplotlib color string, such as r, k, or b - an rgb tuple, such as # (1.0, 0.5, 0.0) - a hex string, such as ff00ff - a scalar # grayscale intensity such as 0.75 - a legal html color name, e.g., red, # blue, darkslategray #### CONFIGURATION BEGINS HERE # The default backend; one of GTK GTKAgg GTKCairo GTK3Agg GTK3Cairo # MacOSX Qt4Agg Qt5Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG # Template. # You can also deploy your own backend outside of matplotlib by # referring to the module name (which must be in the PYTHONPATH) as # 'module://my_backend'. # backend : Cairo # If you are using the Qt4Agg backend, you can choose here # to use the PyQt4 bindings or the newer PySide bindings to # the underlying Qt4 toolkit. #backend.qt4 : PyQt4 # PyQt4 | PySide # Note that this can be overridden by the environment variable # QT_API used by Enthought Tool Suite (ETS); valid values are # &quot;pyqt&quot; and &quot;pyside&quot;. The &quot;pyqt&quot; setting has the side effect of # forcing the use of Version 2 API for QString and QVariant. # The port to use for the web server in the WebAgg backend. # webagg.port : 8888 # If webagg.port is unavailable, a number of other random ports will # be tried until one that is available is found. # webagg.port_retries : 50 # When True, open the webbrowser to the plot that is shown # webagg.open_in_browser : True # When True, the figures rendered in the nbagg backend are created with # a transparent background. # nbagg.transparent : False # if you are running pyplot inside a GUI and your backend choice # conflicts, we will automatically try to find a compatible one for # you if backend_fallback is True #backend_fallback: True #interactive : False #toolbar : toolbar2 # None | toolbar2 (&quot;classic&quot; is deprecated) #timezone : UTC # a pytz timezone string, e.g., US/Central or Europe/Paris # Where your matplotlib data lives if you installed to a non-default # location. This is where the matplotlib fonts, bitmaps, etc reside #datapath : /home/jdhunter/mpldata ### LINES # See http://matplotlib.org/api/artist_api.html#module-matplotlib.lines for more # information on line properties. lines.linewidth : 0.5 # line width in points lines.linestyle : None # solid line lines.color : 0072bd # has no affect on plot(); see axes.prop_cycle lines.marker : None # the default marker lines.markeredgewidth : 1.0 # the line width around the marker symbol lines.markersize : 3 # markersize, in points #lines.dash_joinstyle : miter # miter|round|bevel #lines.dash_capstyle : butt # butt|round|projecting #lines.solid_joinstyle : miter # miter|round|bevel lines.solid_capstyle : projecting # butt|round|projecting lines.antialiased : True # render lines in antialiased (no jaggies) # The three standard dash patterns. These are scaled by the linewidth. #lines.dashed_pattern : 2.8, 1.2 #lines.dashdot_pattern : 4.8, 1.2, 0.8, 1.2 #lines.dotted_pattern : 1.1, 1.1 lines.scale_dashes : False markers.fillstyle: full # full|left|right|bottom|top|none ### PATCHES # Patches are graphical objects that fill 2D space, like polygons or # circles. See # http://matplotlib.org/api/artist_api.html#module-matplotlib.patches # information on patch properties #patch.linewidth : 1 # edge width in points. #patch.facecolor : C0 #patch.edgecolor : black # if forced, or patch is not filled #patch.force_edgecolor : False # True to always use edgecolor #patch.antialiased : True # render patches in antialiased (no jaggies) ### HATCHES #hatch.color : k #hatch.linewidth : 1.0 ### Boxplot #boxplot.notch : False #boxplot.vertical : True #boxplot.whiskers : 1.5 #boxplot.bootstrap : None #boxplot.patchartist : False #boxplot.showmeans : False #boxplot.showcaps : True #boxplot.showbox : True #boxplot.showfliers : True #boxplot.meanline : False #boxplot.flierprops.color : 'k' #boxplot.flierprops.marker : 'o' #boxplot.flierprops.markerfacecolor : 'none' #boxplot.flierprops.markeredgecolor : 'k' #boxplot.flierprops.markersize : 6 #boxplot.flierprops.linestyle : 'none' #boxplot.flierprops.linewidth : 1.0 #boxplot.boxprops.color : 'k' #boxplot.boxprops.linewidth : 1.0 #boxplot.boxprops.linestyle : '-' #boxplot.whiskerprops.color : 'k' #boxplot.whiskerprops.linewidth : 1.0 #boxplot.whiskerprops.linestyle : '-' #boxplot.capprops.color : 'k' #boxplot.capprops.linewidth : 1.0 #boxplot.capprops.linestyle : '-' #boxplot.medianprops.color : 'C1' #boxplot.medianprops.linewidth : 1.0 #boxplot.medianprops.linestyle : '-' #boxplot.meanprops.color : 'C2' #boxplot.meanprops.marker : '^' #boxplot.meanprops.markerfacecolor : 'C2' #boxplot.meanprops.markeredgecolor : 'C2' #boxplot.meanprops.markersize : 6 #boxplot.meanprops.linestyle : 'none' #boxplot.meanprops.linewidth : 1.0 ### FONT # # font properties used by text.Text. See # http://matplotlib.org/api/font_manager_api.html for more # information on font properties. The 6 font properties used for font # matching are given below with their default values. # # The font.family property has five values: 'serif' (e.g., Times), # 'sans-serif' (e.g., Helvetica), 'cursive' (e.g., Zapf-Chancery), # 'fantasy' (e.g., Western), and 'monospace' (e.g., Courier). Each of # these font families has a default list of font names in decreasing # order of priority associated with them. When text.usetex is False, # font.family may also be one or more concrete font names. # # The font.style property has three values: normal (or roman), italic # or oblique. The oblique style will be used for italic, if it is not # present. # # The font.variant property has two values: normal or small-caps. For # TrueType fonts, which are scalable fonts, small-caps is equivalent # to using a font size of 'smaller', or about 83%% of the current font # size. # # The font.weight property has effectively 13 values: normal, bold, # bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as # 400, and bold is 700. bolder and lighter are relative values with # respect to the current weight. # # The font.stretch property has 11 values: ultra-condensed, # extra-condensed, condensed, semi-condensed, normal, semi-expanded, # expanded, extra-expanded, ultra-expanded, wider, and narrower. This # property is not currently implemented. # # The font.size property is the default font size for text, given in pts. # 10 pt is the standard value. # font.family : serif font.style : normal font.variant : normal font.weight : 100 font.stretch : normal # note that font.size controls default text sizes. To configure # special text sizes tick labels, axes, labels, title, etc, see the rc # settings for axes and ticks. Special text sizes can be defined # relative to font.size, using the following values: xx-small, x-small, # small, medium, large, x-large, xx-large, larger, or smaller font.size : 8.0 font.serif : CMU Serif # DejaVu Serif, Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif font.sans-serif : CMU Sans # DejaVu Sans, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif #font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, cursive #font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, Humor Sans, xkcd, fantasy font.monospace : CMU Mono # DejaVu Sans Mono, Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace ### TEXT # text properties used by text.Text. See # http://matplotlib.org/api/artist_api.html#module-matplotlib.text for more # information on text properties text.color : 000000 ### LaTeX customizations. See http://wiki.scipy.org/Cookbook/Matplotlib/UsingTex text.usetex : True # use latex for all text handling. The following fonts # are supported through the usual rc parameter settings: # new century schoolbook, bookman, times, palatino, # zapf chancery, charter, serif, sans-serif, helvetica, # avant garde, courier, monospace, computer modern roman, # computer modern sans serif, computer modern typewriter # If another font is desired which can loaded using the # LaTeX \usepackage command, please inquire at the # matplotlib mailing list # text.latex.unicode : True # use &quot;ucs&quot; and &quot;inputenc&quot; LaTeX packages for handling # unicode strings. text.latex.preamble : \usepackage{ucs},\usepackage{inputenc},\usepackage{scalerel},\usepackage{mycommands} #,\usepackage{bm},\usepackage[bold-style=ISO]{unicode-math},\setmathfont{latinmodern-math.otf},\setmathfont[range=\mathbb]{TeX Gyre Termes Math} # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES # AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO. # preamble is a comma separated list of LaTeX statements # that are included in the LaTeX document preamble. # An example: # text.latex.preamble : \usepackage{bm},\usepackage{euler} # The following packages are always loaded with usetex, so # beware of package collisions: color, geometry, graphicx, # type1cm, textcomp. Adobe Postscript (PSSNFS) font packages # may also be loaded, depending on your font settings #text.dvipnghack : None # some versions of dvipng don't handle alpha # channel properly. Use True to correct # and flush ~/.matplotlib/tex.cache # before testing and False to force # correction off. None will try and # guess based on your dvipng version text.hinting : auto # May be one of the following: # 'none': Perform no hinting # 'auto': Use FreeType's autohinter # 'native': Use the hinting information in the # font file, if available, and if your # FreeType library supports it # 'either': Use the native hinting information, # or the autohinter if none is available. # For backward compatibility, this value may also be # True === 'auto' or False === 'none'. #text.hinting_factor : 8 # Specifies the amount of softness for hinting in the # horizontal direction. A value of 1 will hint to full # pixels. A value of 2 will hint to half pixels etc. text.antialiased : True # If True (default), the text will be antialiased. # This only affects the Agg backend. # The following settings allow you to select the fonts in math mode. # They map from a TeX font name to a fontconfig font pattern. # These settings are only used if mathtext.fontset is 'custom'. # Note that this &quot;custom&quot; mode is unsupported and may go away in the # future. mathtext.cal : cursive mathtext.rm : serif mathtext.tt : monospace mathtext.it : serif:italic mathtext.bf : serif:bold mathtext.sf : sans mathtext.fontset : cm # Should be 'dejavusans' (default), # 'dejavuserif', 'cm' (Computer Modern), 'stix', # 'stixsans' or 'custom' #mathtext.fallback_to_cm : True # When True, use symbols from the Computer Modern # fonts when a symbol can not be found in one of # the custom math fonts. mathtext.default : rm # The default font to use for math. # Can be any of the LaTeX font names, including # the special name &quot;regular&quot; for the same font # used in regular text. ### AXES # default face and edge color, default tick sizes, # default fontsizes for ticklabels, and so on. See # http://matplotlib.org/api/axes_api.html#module-matplotlib.axes axes.facecolor : white # axes background color axes.edgecolor : 000000 # axes edge color axes.linewidth : 0.5 # edge linewidth axes.grid : True # display grid or not #axes.titlesize : large # fontsize of the axes title #axes.titlepad : 6.0 # pad between axes and title in points #axes.labelsize : medium # fontsize of the x any y labels axes.labelpad : 2.0 # space between label and axis #axes.labelweight : normal # weight of the x and y labels axes.labelcolor : 000000 axes.axisbelow : True # whether axis gridlines and ticks are below # the axes elements (lines, text, etc) #axes.formatter.limits : -7, 7 # use scientific notation if log10 # of the axis range is smaller than the # first or larger than the second #axes.formatter.use_locale : False # When True, format tick labels # according to the user's locale. # For example, use ',' as a decimal # separator in the fr_FR locale. #axes.formatter.use_mathtext : False # When True, use mathtext for scientific # notation. #axes.formatter.useoffset : True # If True, the tick label formatter # will default to labeling ticks relative # to an offset when the data range is # small compared to the minimum absolute # value of the data. #axes.formatter.offset_threshold : 4 # When useoffset is True, the offset # will be used when it can remove # at least this number of significant # digits from tick labels. # axes.spines.left : True # display axis spines # axes.spines.bottom : True # axes.spines.top : True # axes.spines.right : True axes.unicode_minus : True # use unicode for the minus symbol # rather than hyphen. See # http://en.wikipedia.org/wiki/Plus_and_minus_signs#Character_codes axes.prop_cycle : cycler('color', ['0072bd', 'a2142f', '77ac30', 'd95319' ,'edb120' , '7e2f8e', '4dbeee', '42647b', '76404a', '718458', '916f61', 'a79466', '655469', '89a6b2' ]) # color cycle for plot lines # as list of string colorspecs: # single letter, long name, or # web-style hex axes.autolimit_mode : data # How to scale axes limits to the data. # Use &quot;data&quot; to use data limits, plus some margin # Use &quot;round_number&quot; move to the nearest &quot;round&quot; number axes.xmargin : 0.03 # x margin. See `axes.Axes.margins` axes.ymargin : 0.03 # y margin See `axes.Axes.margins` #polaraxes.grid : True # display grid on polar axes #axes3d.grid : True # display grid on 3d axes ### DATES # These control the default format strings used in AutoDateFormatter. # Any valid format datetime format string can be used (see the python # `datetime` for details). For example using '%%x' will use the locale date representation # '%%X' will use the locale time representation and '%%c' will use the full locale datetime # representation. # These values map to the scales: # {'year': 365, 'month': 30, 'day': 1, 'hour': 1/24, 'minute': 1 / (24 * 60)} # date.autoformatter.year : %Y # date.autoformatter.month : %Y-%m # date.autoformatter.day : %Y-%m-%d # date.autoformatter.hour : %m-%d %H # date.autoformatter.minute : %d %H:%M # date.autoformatter.second : %H:%M:%S # date.autoformatter.microsecond : %M:%S.%f ### TICKS # see http://matplotlib.org/api/axis_api.html#matplotlib.axis.Tick #xtick.top : False # draw ticks on the top side #xtick.bottom : True # draw ticks on the bottom side xtick.major.size : 2 # major tick size in points xtick.minor.size : 1.0 # minor tick size in points xtick.major.width : 0.5 # major tick width in points xtick.minor.width : 0.5 # minor tick width in points xtick.major.pad : 2 # distance to major tick label in points xtick.minor.pad : 2 # distance to the minor tick label in points xtick.color : 000000 # color of the tick labels #xtick.labelsize : medium # fontsize of the tick labels #xtick.direction : out # direction: in, out, or inout # xtick.minor.visible : False # visibility of minor ticks on x-axis #xtick.major.top : True # draw x axis top major ticks #xtick.major.bottom : True # draw x axis bottom major ticks #xtick.minor.top : True # draw x axis top minor ticks #xtick.minor.bottom : True # draw x axis bottom minor ticks #ytick.left : True # draw ticks on the left side #ytick.right : False # draw ticks on the right side ytick.major.size : 2 # major tick size in points ytick.minor.size : 1.0 # minor tick size in points ytick.major.width : 0.5 # major tick width in points ytick.minor.width : 0.5 # minor tick width in points ytick.major.pad : 2 # distance to major tick label in points ytick.minor.pad : 2 # distance to the minor tick label in points ytick.color : 000000 # color of the tick labels #ytick.labelsize : medium # fontsize of the tick labels #ytick.direction : out # direction: in, out, or inout # ytick.minor.visible : False # visibility of minor ticks on y-axis #ytick.major.left : True # draw y axis left major ticks #ytick.major.right : True # draw y axis right major ticks #ytick.minor.left : True # draw y axis left minor ticks #ytick.minor.right : True # draw y axis right minor ticks ### GRIDS grid.color : 5c5c5c # grid color grid.linestyle : solid # dotted grid.linewidth : 0.5 # in points grid.alpha : 0.25 # transparency, between 0.0 and 1.0 ### Legend legend.loc : best legend.frameon : True # if True, draw the legend on a background patch legend.framealpha : None # legend patch transparency #legend.facecolor : inherit # inherit from axes.facecolor; or color spec #legend.edgecolor : 0.8 # background patch boundary color legend.fancybox : False # if True, use a rounded box for the # legend background, else a rectangle #legend.shadow : False # if True, give background a shadow effect legend.numpoints : 1 # the number of marker points in the legend line legend.scatterpoints : 1 # number of scatter points legend.markerscale : 1.0 # the relative size of legend markers vs. original legend.fontsize : 8 # Dimensions as fraction of fontsize: legend.borderpad : 0.4 # border whitespace legend.labelspacing : 0.3 # the vertical space between the legend entries legend.handlelength : 1.2 # the length of the legend lines legend.handleheight : 1.1 # the height of the legend handle legend.handletextpad : 0.3 # the space between the legend line and legend text legend.borderaxespad : 0.3 # the border between the axes and legend edge legend.columnspacing : 0.3 # column separation ### FIGURE # See http://matplotlib.org/api/figure_api.html#matplotlib.figure.Figure #figure.titlesize : large # size of the figure title (Figure.suptitle()) #figure.titleweight : normal # weight of the figure title figure.figsize : 6.299212598425196, 3.149606299212598 # figure size in inches # 15 x 10 cm = 5.905511811023622, 3.937007874015748 # 16 x 10 cm = 6.299212598425196, 3.937007874015748 # 16 x 8 cm = 6.299212598425196, 3.149606299212598 figure.dpi : 96 # figure dots per inch #figure.facecolor : white # figure facecolor; 0.75 is scalar gray #figure.edgecolor : white # figure edgecolor #figure.autolayout : False # When True, automatically adjust subplot # parameters to make the plot fit the figure #figure.max_open_warning : 20 # The maximum number of figures to open through # the pyplot interface before emitting a warning. # If less than one this feature is disabled. # The figure subplot parameters. All dimensions are a fraction of the #figure.subplot.left : 0.125 # the left side of the subplots of the figure #figure.subplot.right : 0.9 # the right side of the subplots of the figure #figure.subplot.bottom : 0.11 # the bottom of the subplots of the figure #figure.subplot.top : 0.88 # the top of the subplots of the figure #figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots, # expressed as a fraction of the average axis width #figure.subplot.hspace : 0.2 # the amount of height reserved for white space between subplots, # expressed as a fraction of the average axis height ### IMAGES image.aspect : auto # equal | auto | a number #image.interpolation : nearest # see help(imshow) for options image.cmap : viridis # A colormap name, gray etc... #image.lut : 256 # the size of the colormap lookup table #image.origin : upper # lower | upper #image.resample : True #image.composite_image : True # When True, all the images on a set of axes are # combined into a single composite image before # saving a figure as a vector graphics file, # such as a PDF. ### CONTOUR PLOTS #contour.negative_linestyle : dashed # dashed | solid #contour.corner_mask : True # True | False | legacy ### ERRORBAR PLOTS errorbar.capsize : 1.5 # length of end cap on error bars in pixels ### HISTOGRAM PLOTS #hist.bins : 10 # The default number of histogram bins. # If Numpy 1.11 or later is # installed, may also be `auto` ### SCATTER PLOTS #scatter.marker : o # The default marker type for scatter plots. ### Agg rendering ### Warning: experimental, 2008/10/10 #agg.path.chunksize : 0 # 0 to disable; values in the range # 10000 to 100000 can improve speed slightly # and prevent an Agg rendering failure # when plotting very large data sets, # especially if they are very gappy. # It may cause minor artifacts, though. # A value of 20000 is probably a good # starting point. ### SAVING FIGURES #path.simplify : True # When True, simplify paths by removing &quot;invisible&quot; # points to reduce file size and increase rendering # speed #path.simplify_threshold : 0.1 # The threshold of similarity below which # vertices will be removed in the simplification # process #path.snap : True # When True, rectilinear axis-aligned paths will be snapped to # the nearest pixel when certain criteria are met. When False, # paths will never be snapped. #path.sketch : None # May be none, or a 3-tuple of the form (scale, length, # randomness). # *scale* is the amplitude of the wiggle # perpendicular to the line (in pixels). *length* # is the length of the wiggle along the line (in # pixels). *randomness* is the factor by which # the length is randomly scaled. # the default savefig params can be different from the display params # e.g., you may want a higher resolution, or to make the figure # background white savefig.dpi : 96 # figure dots per inch or 'figure' #savefig.facecolor : white # figure facecolor when saving #savefig.edgecolor : white # figure edgecolor when saving savefig.format : pdf # png, ps, pdf, svg #savefig.bbox : standard # 'tight' or 'standard'. # 'tight' is incompatible with pipe-based animation # backends but will workd with temporary file based ones: # e.g. setting animation.writer to ffmpeg will not work, # use ffmpeg_file instead #savefig.pad_inches : 0.1 # Padding to be used when bbox is set to 'tight' #savefig.jpeg_quality: 95 # when a jpeg is saved, the default quality parameter. #savefig.directory : ~ # default directory in savefig dialog box, # leave empty to always use current working directory #savefig.transparent : False # setting that controls whether figures are saved with a # transparent background by default # tk backend params #tk.window_focus : False # Maintain shell focus for TkAgg # ps backend params #ps.papersize : letter # auto, letter, legal, ledger, A0-A10, B0-B10 #ps.useafm : False # use of afm fonts, results in small files #ps.usedistiller : False # can be: None, ghostscript or xpdf # Experimental: may produce smaller files. # xpdf intended for production of publication quality files, # but requires ghostscript, xpdf and ps2eps #ps.distiller.res : 6000 # dpi #ps.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) # pdf backend params #pdf.compression : 6 # integer from 0 to 9 # 0 disables compression (good for debugging) pdf.fonttype : 42 # Output Type 3 (Type3) or Type 42 (TrueType) # svg backend params #svg.image_inline : True # write raster image data directly into the svg file #svg.fonttype : 'path' # How to handle SVG fonts: # 'none': Assume fonts are installed on the machine where the SVG will be viewed. # 'path': Embed characters as paths -- supported by most SVG renderers # 'svgfont': Embed characters as SVG fonts -- supported only by Chrome, # Opera and Safari #svg.hashsalt : None # if not None, use this string as hash salt # instead of uuid4 # docstring params #docstring.hardcopy = False # set this when you want to generate hardcopy docstring # Set the verbose flags. This controls how much information # matplotlib gives you at runtime and where it goes. The verbosity # levels are: silent, helpful, debug, debug-annoying. Any level is # inclusive of all the levels below it. If your setting is &quot;debug&quot;, # you'll get all the debug and helpful messages. When submitting # problems to the mailing-list, please set verbose to &quot;helpful&quot; or &quot;debug&quot; # and paste the output into your report. # # The &quot;fileo&quot; gives the destination for any calls to verbose.report. # These objects can a filename, or a filehandle like sys.stdout. # # You can override the rc default verbosity from the command line by # giving the flags --verbose-LEVEL where LEVEL is one of the legal # levels, e.g., --verbose-helpful. # # You can access the verbose instance in your code # from matplotlib import verbose. #verbose.level : silent # one of silent, helpful, debug, debug-annoying #verbose.fileo : sys.stdout # a log filename, sys.stdout or sys.stderr # Event keys to interact with figures/plots via keyboard. # Customize these settings according to your needs. # Leave the field(s) empty if you don't need a key-map. (i.e., fullscreen : '') #keymap.fullscreen : f, ctrl+f # toggling #keymap.home : h, r, home # home or reset mnemonic #keymap.back : left, c, backspace # forward / backward keys to enable #keymap.forward : right, v # left handed quick navigation #keymap.pan : p # pan mnemonic #keymap.zoom : o # zoom mnemonic #keymap.save : s # saving current figure #keymap.quit : ctrl+w, cmd+w # close the current figure #keymap.grid : g # switching on/off a grid in current axes #keymap.yscale : l # toggle scaling of y-axes ('log'/'linear') #keymap.xscale : L, k # toggle scaling of x-axes ('log'/'linear') #keymap.all_axes : a # enable all axes # Control location of examples data files #examples.directory : '' # directory to look in for custom installation ###ANIMATION settings #animation.html : 'none' # How to display the animation as HTML in # the IPython notebook. 'html5' uses # HTML5 video tag. #animation.writer : ffmpeg # MovieWriter 'backend' to use #animation.codec : h264 # Codec to use for writing movie #animation.bitrate: -1 # Controls size/quality tradeoff for movie. # -1 implies let utility auto-determine #animation.frame_format: 'png' # Controls frame format used by temp files #animation.ffmpeg_path: 'ffmpeg' # Path to ffmpeg binary. Without full path # $PATH is searched #animation.ffmpeg_args: '' # Additional arguments to pass to ffmpeg #animation.avconv_path: 'avconv' # Path to avconv binary. Without full path # $PATH is searched #animation.avconv_args: '' # Additional arguments to pass to avconv #animation.mencoder_path: 'mencoder' # Path to mencoder binary. Without full path # $PATH is searched #animation.mencoder_args: '' # Additional arguments to pass to mencoder #animation.convert_path: 'convert' # Path to ImageMagick's convert binary. # On Windows use the full path since convert # is also the name of a system tool. pgf.texsystem: lualatex pgf.rcfonts: false pgf.preamble: \usepackage{mycommands}"><pre lang="code" class="notranslate"><code class="notranslate">### MATPLOTLIBRC FORMAT # This is a sample matplotlib configuration file - you can find a copy # of it on your system in # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it # there, please note that it will be overwritten in your next install. # If you want to keep a permanent local copy that will not be # overwritten, place it in the following location: # unix/linux: # $HOME/.config/matplotlib/matplotlibrc or # $XDG_CONFIG_HOME/matplotlib/matplotlibrc (if $XDG_CONFIG_HOME is set) # other platforms: # $HOME/.matplotlib/matplotlibrc # # See http://matplotlib.org/users/customizing.html#the-matplotlibrc-file for # more details on the paths which are checked for the configuration file. # # This file is best viewed in a editor which supports python mode # syntax highlighting. Blank lines, or lines starting with a comment # symbol, are ignored, as are trailing comments. Other lines must # have the format # key : val # optional comment # # Colors: for the color values below, you can either use - a # matplotlib color string, such as r, k, or b - an rgb tuple, such as # (1.0, 0.5, 0.0) - a hex string, such as ff00ff - a scalar # grayscale intensity such as 0.75 - a legal html color name, e.g., red, # blue, darkslategray #### CONFIGURATION BEGINS HERE # The default backend; one of GTK GTKAgg GTKCairo GTK3Agg GTK3Cairo # MacOSX Qt4Agg Qt5Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG # Template. # You can also deploy your own backend outside of matplotlib by # referring to the module name (which must be in the PYTHONPATH) as # 'module://my_backend'. # backend : Cairo # If you are using the Qt4Agg backend, you can choose here # to use the PyQt4 bindings or the newer PySide bindings to # the underlying Qt4 toolkit. #backend.qt4 : PyQt4 # PyQt4 | PySide # Note that this can be overridden by the environment variable # QT_API used by Enthought Tool Suite (ETS); valid values are # "pyqt" and "pyside". The "pyqt" setting has the side effect of # forcing the use of Version 2 API for QString and QVariant. # The port to use for the web server in the WebAgg backend. # webagg.port : 8888 # If webagg.port is unavailable, a number of other random ports will # be tried until one that is available is found. # webagg.port_retries : 50 # When True, open the webbrowser to the plot that is shown # webagg.open_in_browser : True # When True, the figures rendered in the nbagg backend are created with # a transparent background. # nbagg.transparent : False # if you are running pyplot inside a GUI and your backend choice # conflicts, we will automatically try to find a compatible one for # you if backend_fallback is True #backend_fallback: True #interactive : False #toolbar : toolbar2 # None | toolbar2 ("classic" is deprecated) #timezone : UTC # a pytz timezone string, e.g., US/Central or Europe/Paris # Where your matplotlib data lives if you installed to a non-default # location. This is where the matplotlib fonts, bitmaps, etc reside #datapath : /home/jdhunter/mpldata ### LINES # See http://matplotlib.org/api/artist_api.html#module-matplotlib.lines for more # information on line properties. lines.linewidth : 0.5 # line width in points lines.linestyle : None # solid line lines.color : 0072bd # has no affect on plot(); see axes.prop_cycle lines.marker : None # the default marker lines.markeredgewidth : 1.0 # the line width around the marker symbol lines.markersize : 3 # markersize, in points #lines.dash_joinstyle : miter # miter|round|bevel #lines.dash_capstyle : butt # butt|round|projecting #lines.solid_joinstyle : miter # miter|round|bevel lines.solid_capstyle : projecting # butt|round|projecting lines.antialiased : True # render lines in antialiased (no jaggies) # The three standard dash patterns. These are scaled by the linewidth. #lines.dashed_pattern : 2.8, 1.2 #lines.dashdot_pattern : 4.8, 1.2, 0.8, 1.2 #lines.dotted_pattern : 1.1, 1.1 lines.scale_dashes : False markers.fillstyle: full # full|left|right|bottom|top|none ### PATCHES # Patches are graphical objects that fill 2D space, like polygons or # circles. See # http://matplotlib.org/api/artist_api.html#module-matplotlib.patches # information on patch properties #patch.linewidth : 1 # edge width in points. #patch.facecolor : C0 #patch.edgecolor : black # if forced, or patch is not filled #patch.force_edgecolor : False # True to always use edgecolor #patch.antialiased : True # render patches in antialiased (no jaggies) ### HATCHES #hatch.color : k #hatch.linewidth : 1.0 ### Boxplot #boxplot.notch : False #boxplot.vertical : True #boxplot.whiskers : 1.5 #boxplot.bootstrap : None #boxplot.patchartist : False #boxplot.showmeans : False #boxplot.showcaps : True #boxplot.showbox : True #boxplot.showfliers : True #boxplot.meanline : False #boxplot.flierprops.color : 'k' #boxplot.flierprops.marker : 'o' #boxplot.flierprops.markerfacecolor : 'none' #boxplot.flierprops.markeredgecolor : 'k' #boxplot.flierprops.markersize : 6 #boxplot.flierprops.linestyle : 'none' #boxplot.flierprops.linewidth : 1.0 #boxplot.boxprops.color : 'k' #boxplot.boxprops.linewidth : 1.0 #boxplot.boxprops.linestyle : '-' #boxplot.whiskerprops.color : 'k' #boxplot.whiskerprops.linewidth : 1.0 #boxplot.whiskerprops.linestyle : '-' #boxplot.capprops.color : 'k' #boxplot.capprops.linewidth : 1.0 #boxplot.capprops.linestyle : '-' #boxplot.medianprops.color : 'C1' #boxplot.medianprops.linewidth : 1.0 #boxplot.medianprops.linestyle : '-' #boxplot.meanprops.color : 'C2' #boxplot.meanprops.marker : '^' #boxplot.meanprops.markerfacecolor : 'C2' #boxplot.meanprops.markeredgecolor : 'C2' #boxplot.meanprops.markersize : 6 #boxplot.meanprops.linestyle : 'none' #boxplot.meanprops.linewidth : 1.0 ### FONT # # font properties used by text.Text. See # http://matplotlib.org/api/font_manager_api.html for more # information on font properties. The 6 font properties used for font # matching are given below with their default values. # # The font.family property has five values: 'serif' (e.g., Times), # 'sans-serif' (e.g., Helvetica), 'cursive' (e.g., Zapf-Chancery), # 'fantasy' (e.g., Western), and 'monospace' (e.g., Courier). Each of # these font families has a default list of font names in decreasing # order of priority associated with them. When text.usetex is False, # font.family may also be one or more concrete font names. # # The font.style property has three values: normal (or roman), italic # or oblique. The oblique style will be used for italic, if it is not # present. # # The font.variant property has two values: normal or small-caps. For # TrueType fonts, which are scalable fonts, small-caps is equivalent # to using a font size of 'smaller', or about 83%% of the current font # size. # # The font.weight property has effectively 13 values: normal, bold, # bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as # 400, and bold is 700. bolder and lighter are relative values with # respect to the current weight. # # The font.stretch property has 11 values: ultra-condensed, # extra-condensed, condensed, semi-condensed, normal, semi-expanded, # expanded, extra-expanded, ultra-expanded, wider, and narrower. This # property is not currently implemented. # # The font.size property is the default font size for text, given in pts. # 10 pt is the standard value. # font.family : serif font.style : normal font.variant : normal font.weight : 100 font.stretch : normal # note that font.size controls default text sizes. To configure # special text sizes tick labels, axes, labels, title, etc, see the rc # settings for axes and ticks. Special text sizes can be defined # relative to font.size, using the following values: xx-small, x-small, # small, medium, large, x-large, xx-large, larger, or smaller font.size : 8.0 font.serif : CMU Serif # DejaVu Serif, Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif font.sans-serif : CMU Sans # DejaVu Sans, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif #font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, cursive #font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, Humor Sans, xkcd, fantasy font.monospace : CMU Mono # DejaVu Sans Mono, Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace ### TEXT # text properties used by text.Text. See # http://matplotlib.org/api/artist_api.html#module-matplotlib.text for more # information on text properties text.color : 000000 ### LaTeX customizations. See http://wiki.scipy.org/Cookbook/Matplotlib/UsingTex text.usetex : True # use latex for all text handling. The following fonts # are supported through the usual rc parameter settings: # new century schoolbook, bookman, times, palatino, # zapf chancery, charter, serif, sans-serif, helvetica, # avant garde, courier, monospace, computer modern roman, # computer modern sans serif, computer modern typewriter # If another font is desired which can loaded using the # LaTeX \usepackage command, please inquire at the # matplotlib mailing list # text.latex.unicode : True # use "ucs" and "inputenc" LaTeX packages for handling # unicode strings. text.latex.preamble : \usepackage{ucs},\usepackage{inputenc},\usepackage{scalerel},\usepackage{mycommands} #,\usepackage{bm},\usepackage[bold-style=ISO]{unicode-math},\setmathfont{latinmodern-math.otf},\setmathfont[range=\mathbb]{TeX Gyre Termes Math} # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES # AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO. # preamble is a comma separated list of LaTeX statements # that are included in the LaTeX document preamble. # An example: # text.latex.preamble : \usepackage{bm},\usepackage{euler} # The following packages are always loaded with usetex, so # beware of package collisions: color, geometry, graphicx, # type1cm, textcomp. Adobe Postscript (PSSNFS) font packages # may also be loaded, depending on your font settings #text.dvipnghack : None # some versions of dvipng don't handle alpha # channel properly. Use True to correct # and flush ~/.matplotlib/tex.cache # before testing and False to force # correction off. None will try and # guess based on your dvipng version text.hinting : auto # May be one of the following: # 'none': Perform no hinting # 'auto': Use FreeType's autohinter # 'native': Use the hinting information in the # font file, if available, and if your # FreeType library supports it # 'either': Use the native hinting information, # or the autohinter if none is available. # For backward compatibility, this value may also be # True === 'auto' or False === 'none'. #text.hinting_factor : 8 # Specifies the amount of softness for hinting in the # horizontal direction. A value of 1 will hint to full # pixels. A value of 2 will hint to half pixels etc. text.antialiased : True # If True (default), the text will be antialiased. # This only affects the Agg backend. # The following settings allow you to select the fonts in math mode. # They map from a TeX font name to a fontconfig font pattern. # These settings are only used if mathtext.fontset is 'custom'. # Note that this "custom" mode is unsupported and may go away in the # future. mathtext.cal : cursive mathtext.rm : serif mathtext.tt : monospace mathtext.it : serif:italic mathtext.bf : serif:bold mathtext.sf : sans mathtext.fontset : cm # Should be 'dejavusans' (default), # 'dejavuserif', 'cm' (Computer Modern), 'stix', # 'stixsans' or 'custom' #mathtext.fallback_to_cm : True # When True, use symbols from the Computer Modern # fonts when a symbol can not be found in one of # the custom math fonts. mathtext.default : rm # The default font to use for math. # Can be any of the LaTeX font names, including # the special name "regular" for the same font # used in regular text. ### AXES # default face and edge color, default tick sizes, # default fontsizes for ticklabels, and so on. See # http://matplotlib.org/api/axes_api.html#module-matplotlib.axes axes.facecolor : white # axes background color axes.edgecolor : 000000 # axes edge color axes.linewidth : 0.5 # edge linewidth axes.grid : True # display grid or not #axes.titlesize : large # fontsize of the axes title #axes.titlepad : 6.0 # pad between axes and title in points #axes.labelsize : medium # fontsize of the x any y labels axes.labelpad : 2.0 # space between label and axis #axes.labelweight : normal # weight of the x and y labels axes.labelcolor : 000000 axes.axisbelow : True # whether axis gridlines and ticks are below # the axes elements (lines, text, etc) #axes.formatter.limits : -7, 7 # use scientific notation if log10 # of the axis range is smaller than the # first or larger than the second #axes.formatter.use_locale : False # When True, format tick labels # according to the user's locale. # For example, use ',' as a decimal # separator in the fr_FR locale. #axes.formatter.use_mathtext : False # When True, use mathtext for scientific # notation. #axes.formatter.useoffset : True # If True, the tick label formatter # will default to labeling ticks relative # to an offset when the data range is # small compared to the minimum absolute # value of the data. #axes.formatter.offset_threshold : 4 # When useoffset is True, the offset # will be used when it can remove # at least this number of significant # digits from tick labels. # axes.spines.left : True # display axis spines # axes.spines.bottom : True # axes.spines.top : True # axes.spines.right : True axes.unicode_minus : True # use unicode for the minus symbol # rather than hyphen. See # http://en.wikipedia.org/wiki/Plus_and_minus_signs#Character_codes axes.prop_cycle : cycler('color', ['0072bd', 'a2142f', '77ac30', 'd95319' ,'edb120' , '7e2f8e', '4dbeee', '42647b', '76404a', '718458', '916f61', 'a79466', '655469', '89a6b2' ]) # color cycle for plot lines # as list of string colorspecs: # single letter, long name, or # web-style hex axes.autolimit_mode : data # How to scale axes limits to the data. # Use "data" to use data limits, plus some margin # Use "round_number" move to the nearest "round" number axes.xmargin : 0.03 # x margin. See `axes.Axes.margins` axes.ymargin : 0.03 # y margin See `axes.Axes.margins` #polaraxes.grid : True # display grid on polar axes #axes3d.grid : True # display grid on 3d axes ### DATES # These control the default format strings used in AutoDateFormatter. # Any valid format datetime format string can be used (see the python # `datetime` for details). For example using '%%x' will use the locale date representation # '%%X' will use the locale time representation and '%%c' will use the full locale datetime # representation. # These values map to the scales: # {'year': 365, 'month': 30, 'day': 1, 'hour': 1/24, 'minute': 1 / (24 * 60)} # date.autoformatter.year : %Y # date.autoformatter.month : %Y-%m # date.autoformatter.day : %Y-%m-%d # date.autoformatter.hour : %m-%d %H # date.autoformatter.minute : %d %H:%M # date.autoformatter.second : %H:%M:%S # date.autoformatter.microsecond : %M:%S.%f ### TICKS # see http://matplotlib.org/api/axis_api.html#matplotlib.axis.Tick #xtick.top : False # draw ticks on the top side #xtick.bottom : True # draw ticks on the bottom side xtick.major.size : 2 # major tick size in points xtick.minor.size : 1.0 # minor tick size in points xtick.major.width : 0.5 # major tick width in points xtick.minor.width : 0.5 # minor tick width in points xtick.major.pad : 2 # distance to major tick label in points xtick.minor.pad : 2 # distance to the minor tick label in points xtick.color : 000000 # color of the tick labels #xtick.labelsize : medium # fontsize of the tick labels #xtick.direction : out # direction: in, out, or inout # xtick.minor.visible : False # visibility of minor ticks on x-axis #xtick.major.top : True # draw x axis top major ticks #xtick.major.bottom : True # draw x axis bottom major ticks #xtick.minor.top : True # draw x axis top minor ticks #xtick.minor.bottom : True # draw x axis bottom minor ticks #ytick.left : True # draw ticks on the left side #ytick.right : False # draw ticks on the right side ytick.major.size : 2 # major tick size in points ytick.minor.size : 1.0 # minor tick size in points ytick.major.width : 0.5 # major tick width in points ytick.minor.width : 0.5 # minor tick width in points ytick.major.pad : 2 # distance to major tick label in points ytick.minor.pad : 2 # distance to the minor tick label in points ytick.color : 000000 # color of the tick labels #ytick.labelsize : medium # fontsize of the tick labels #ytick.direction : out # direction: in, out, or inout # ytick.minor.visible : False # visibility of minor ticks on y-axis #ytick.major.left : True # draw y axis left major ticks #ytick.major.right : True # draw y axis right major ticks #ytick.minor.left : True # draw y axis left minor ticks #ytick.minor.right : True # draw y axis right minor ticks ### GRIDS grid.color : 5c5c5c # grid color grid.linestyle : solid # dotted grid.linewidth : 0.5 # in points grid.alpha : 0.25 # transparency, between 0.0 and 1.0 ### Legend legend.loc : best legend.frameon : True # if True, draw the legend on a background patch legend.framealpha : None # legend patch transparency #legend.facecolor : inherit # inherit from axes.facecolor; or color spec #legend.edgecolor : 0.8 # background patch boundary color legend.fancybox : False # if True, use a rounded box for the # legend background, else a rectangle #legend.shadow : False # if True, give background a shadow effect legend.numpoints : 1 # the number of marker points in the legend line legend.scatterpoints : 1 # number of scatter points legend.markerscale : 1.0 # the relative size of legend markers vs. original legend.fontsize : 8 # Dimensions as fraction of fontsize: legend.borderpad : 0.4 # border whitespace legend.labelspacing : 0.3 # the vertical space between the legend entries legend.handlelength : 1.2 # the length of the legend lines legend.handleheight : 1.1 # the height of the legend handle legend.handletextpad : 0.3 # the space between the legend line and legend text legend.borderaxespad : 0.3 # the border between the axes and legend edge legend.columnspacing : 0.3 # column separation ### FIGURE # See http://matplotlib.org/api/figure_api.html#matplotlib.figure.Figure #figure.titlesize : large # size of the figure title (Figure.suptitle()) #figure.titleweight : normal # weight of the figure title figure.figsize : 6.299212598425196, 3.149606299212598 # figure size in inches # 15 x 10 cm = 5.905511811023622, 3.937007874015748 # 16 x 10 cm = 6.299212598425196, 3.937007874015748 # 16 x 8 cm = 6.299212598425196, 3.149606299212598 figure.dpi : 96 # figure dots per inch #figure.facecolor : white # figure facecolor; 0.75 is scalar gray #figure.edgecolor : white # figure edgecolor #figure.autolayout : False # When True, automatically adjust subplot # parameters to make the plot fit the figure #figure.max_open_warning : 20 # The maximum number of figures to open through # the pyplot interface before emitting a warning. # If less than one this feature is disabled. # The figure subplot parameters. All dimensions are a fraction of the #figure.subplot.left : 0.125 # the left side of the subplots of the figure #figure.subplot.right : 0.9 # the right side of the subplots of the figure #figure.subplot.bottom : 0.11 # the bottom of the subplots of the figure #figure.subplot.top : 0.88 # the top of the subplots of the figure #figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots, # expressed as a fraction of the average axis width #figure.subplot.hspace : 0.2 # the amount of height reserved for white space between subplots, # expressed as a fraction of the average axis height ### IMAGES image.aspect : auto # equal | auto | a number #image.interpolation : nearest # see help(imshow) for options image.cmap : viridis # A colormap name, gray etc... #image.lut : 256 # the size of the colormap lookup table #image.origin : upper # lower | upper #image.resample : True #image.composite_image : True # When True, all the images on a set of axes are # combined into a single composite image before # saving a figure as a vector graphics file, # such as a PDF. ### CONTOUR PLOTS #contour.negative_linestyle : dashed # dashed | solid #contour.corner_mask : True # True | False | legacy ### ERRORBAR PLOTS errorbar.capsize : 1.5 # length of end cap on error bars in pixels ### HISTOGRAM PLOTS #hist.bins : 10 # The default number of histogram bins. # If Numpy 1.11 or later is # installed, may also be `auto` ### SCATTER PLOTS #scatter.marker : o # The default marker type for scatter plots. ### Agg rendering ### Warning: experimental, 2008/10/10 #agg.path.chunksize : 0 # 0 to disable; values in the range # 10000 to 100000 can improve speed slightly # and prevent an Agg rendering failure # when plotting very large data sets, # especially if they are very gappy. # It may cause minor artifacts, though. # A value of 20000 is probably a good # starting point. ### SAVING FIGURES #path.simplify : True # When True, simplify paths by removing "invisible" # points to reduce file size and increase rendering # speed #path.simplify_threshold : 0.1 # The threshold of similarity below which # vertices will be removed in the simplification # process #path.snap : True # When True, rectilinear axis-aligned paths will be snapped to # the nearest pixel when certain criteria are met. When False, # paths will never be snapped. #path.sketch : None # May be none, or a 3-tuple of the form (scale, length, # randomness). # *scale* is the amplitude of the wiggle # perpendicular to the line (in pixels). *length* # is the length of the wiggle along the line (in # pixels). *randomness* is the factor by which # the length is randomly scaled. # the default savefig params can be different from the display params # e.g., you may want a higher resolution, or to make the figure # background white savefig.dpi : 96 # figure dots per inch or 'figure' #savefig.facecolor : white # figure facecolor when saving #savefig.edgecolor : white # figure edgecolor when saving savefig.format : pdf # png, ps, pdf, svg #savefig.bbox : standard # 'tight' or 'standard'. # 'tight' is incompatible with pipe-based animation # backends but will workd with temporary file based ones: # e.g. setting animation.writer to ffmpeg will not work, # use ffmpeg_file instead #savefig.pad_inches : 0.1 # Padding to be used when bbox is set to 'tight' #savefig.jpeg_quality: 95 # when a jpeg is saved, the default quality parameter. #savefig.directory : ~ # default directory in savefig dialog box, # leave empty to always use current working directory #savefig.transparent : False # setting that controls whether figures are saved with a # transparent background by default # tk backend params #tk.window_focus : False # Maintain shell focus for TkAgg # ps backend params #ps.papersize : letter # auto, letter, legal, ledger, A0-A10, B0-B10 #ps.useafm : False # use of afm fonts, results in small files #ps.usedistiller : False # can be: None, ghostscript or xpdf # Experimental: may produce smaller files. # xpdf intended for production of publication quality files, # but requires ghostscript, xpdf and ps2eps #ps.distiller.res : 6000 # dpi #ps.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) # pdf backend params #pdf.compression : 6 # integer from 0 to 9 # 0 disables compression (good for debugging) pdf.fonttype : 42 # Output Type 3 (Type3) or Type 42 (TrueType) # svg backend params #svg.image_inline : True # write raster image data directly into the svg file #svg.fonttype : 'path' # How to handle SVG fonts: # 'none': Assume fonts are installed on the machine where the SVG will be viewed. # 'path': Embed characters as paths -- supported by most SVG renderers # 'svgfont': Embed characters as SVG fonts -- supported only by Chrome, # Opera and Safari #svg.hashsalt : None # if not None, use this string as hash salt # instead of uuid4 # docstring params #docstring.hardcopy = False # set this when you want to generate hardcopy docstring # Set the verbose flags. This controls how much information # matplotlib gives you at runtime and where it goes. The verbosity # levels are: silent, helpful, debug, debug-annoying. Any level is # inclusive of all the levels below it. If your setting is "debug", # you'll get all the debug and helpful messages. When submitting # problems to the mailing-list, please set verbose to "helpful" or "debug" # and paste the output into your report. # # The "fileo" gives the destination for any calls to verbose.report. # These objects can a filename, or a filehandle like sys.stdout. # # You can override the rc default verbosity from the command line by # giving the flags --verbose-LEVEL where LEVEL is one of the legal # levels, e.g., --verbose-helpful. # # You can access the verbose instance in your code # from matplotlib import verbose. #verbose.level : silent # one of silent, helpful, debug, debug-annoying #verbose.fileo : sys.stdout # a log filename, sys.stdout or sys.stderr # Event keys to interact with figures/plots via keyboard. # Customize these settings according to your needs. # Leave the field(s) empty if you don't need a key-map. (i.e., fullscreen : '') #keymap.fullscreen : f, ctrl+f # toggling #keymap.home : h, r, home # home or reset mnemonic #keymap.back : left, c, backspace # forward / backward keys to enable #keymap.forward : right, v # left handed quick navigation #keymap.pan : p # pan mnemonic #keymap.zoom : o # zoom mnemonic #keymap.save : s # saving current figure #keymap.quit : ctrl+w, cmd+w # close the current figure #keymap.grid : g # switching on/off a grid in current axes #keymap.yscale : l # toggle scaling of y-axes ('log'/'linear') #keymap.xscale : L, k # toggle scaling of x-axes ('log'/'linear') #keymap.all_axes : a # enable all axes # Control location of examples data files #examples.directory : '' # directory to look in for custom installation ###ANIMATION settings #animation.html : 'none' # How to display the animation as HTML in # the IPython notebook. 'html5' uses # HTML5 video tag. #animation.writer : ffmpeg # MovieWriter 'backend' to use #animation.codec : h264 # Codec to use for writing movie #animation.bitrate: -1 # Controls size/quality tradeoff for movie. # -1 implies let utility auto-determine #animation.frame_format: 'png' # Controls frame format used by temp files #animation.ffmpeg_path: 'ffmpeg' # Path to ffmpeg binary. Without full path # $PATH is searched #animation.ffmpeg_args: '' # Additional arguments to pass to ffmpeg #animation.avconv_path: 'avconv' # Path to avconv binary. Without full path # $PATH is searched #animation.avconv_args: '' # Additional arguments to pass to avconv #animation.mencoder_path: 'mencoder' # Path to mencoder binary. Without full path # $PATH is searched #animation.mencoder_args: '' # Additional arguments to pass to mencoder #animation.convert_path: 'convert' # Path to ImageMagick's convert binary. # On Windows use the full path since convert # is also the name of a system tool. pgf.texsystem: lualatex pgf.rcfonts: false pgf.preamble: \usepackage{mycommands} </code></pre></div>
<p dir="auto">The following example (with Matplotlib 2.0.0b3) causes the colorbar inside the colorbar axes to be offset when outputting to PDF with a low DPI:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(1,1,1) im = ax.imshow([[1]]) fig.colorbar(im) fig.savefig('colorbar_test.pdf', dpi=7)"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(1,1,1) im = ax.imshow([[1]]) fig.colorbar(im) fig.savefig('colorbar_test.pdf', dpi=7) </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/314716/17089570/05e193be-51f6-11e6-953a-408df28dd8e4.png"><img src="https://cloud.githubusercontent.com/assets/314716/17089570/05e193be-51f6-11e6-953a-408df28dd8e4.png" alt="colorbar_test" style="max-width: 100%;"></a></p> <p dir="auto">This wasn't an issue with Matplotlib 1.4:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/314716/17089590/4598aa88-51f6-11e6-8186-9829c4118c95.png"><img src="https://cloud.githubusercontent.com/assets/314716/17089590/4598aa88-51f6-11e6-8186-9829c4118c95.png" alt="colorbar_test" style="max-width: 100%;"></a></p> <p dir="auto">and the bug was apparently introduces in Matplotlib 1.5:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/314716/17089597/668bb4d8-51f6-11e6-8261-28e7becd97d6.png"><img src="https://cloud.githubusercontent.com/assets/314716/17089597/668bb4d8-51f6-11e6-8261-28e7becd97d6.png" alt="colorbar_test" style="max-width: 100%;"></a></p>
1
<p dir="auto">The latest version of Electron (0.36.0) still has an issue on Yosemite with fullscreen.</p> <p dir="auto">Basically when in fullscreen mode the window shows a textured title at the top:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/801252/11787461/b537ec3c-a283-11e5-9591-dae3ee0672bf.png"><img src="https://cloud.githubusercontent.com/assets/801252/11787461/b537ec3c-a283-11e5-9591-dae3ee0672bf.png" alt="screen shot 2015-12-14 at 16 53 11" style="max-width: 100%;"></a></p> <p dir="auto">This happens regardless if the window frame option is set to true or false (the only difference being you don't see the traffic lights on hover when set to false). However setting the transparent option to true removes the titlebar completely and solves it.</p> <p dir="auto">So in short it needs to hide the titlebar when transparency is set to false and in fullscreen and then ONLY show the title when hovering and the frame is set to true.</p>
<p dir="auto">Origintal ticket: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="106769162" data-permission-text="Title is private" data-url="https://github.com/sindresorhus/caprine/issues/5" data-hovercard-type="issue" data-hovercard-url="/sindresorhus/caprine/issues/5/hovercard" href="https://github.com/sindresorhus/caprine/issues/5">sindresorhus/caprine#5</a></p> <h2 dir="auto"></h2> <p dir="auto">In fullscreen mode, instead of showing the user toolbar, it covers it up with a gray frame.</p> <h4 dir="auto">1. Normal</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/170270/9923990/44568378-5d25-11e5-856f-6acc83186d48.png"><img width="809" alt="screen shot 2015-09-17 at 10 15 09" src="https://cloud.githubusercontent.com/assets/170270/9923990/44568378-5d25-11e5-856f-6acc83186d48.png" style="max-width: 100%;"></a></p> #### 2. Fullscreen <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/170270/9923996/4c18668a-5d25-11e5-9bf0-c536f9622a59.png"><img width="1440" alt="screen shot 2015-09-17 at 10 15 37" src="https://cloud.githubusercontent.com/assets/170270/9923996/4c18668a-5d25-11e5-9bf0-c536f9622a59.png" style="max-width: 100%;"></a></p> #### 3. Fullscreen with menubar visible <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/170270/9924004/6170e642-5d25-11e5-8fdc-d7ccdadcb82a.png"><img width="1440" alt="screen shot 2015-09-17 at 10 15 56" src="https://cloud.githubusercontent.com/assets/170270/9924004/6170e642-5d25-11e5-8fdc-d7ccdadcb82a.png" style="max-width: 100%;"></a></p> <p dir="auto">Ideally it would show the top (covered up) web content in both 2. and 3., so my custom toolbar would be visible there.</p> <h2 dir="auto"></h2> <p dir="auto">OS X 10.10 and Electron 0.32.3.</p> <h2 dir="auto"></h2> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jaanus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jaanus">@jaanus</a></p>
1
<p dir="auto">I have two pgsql domains: <code class="notranslate">isoweekday</code> that is based on INT and <code class="notranslate">isoweekdays</code> that is an array of the former. Both domains add some checks like no duplicate values, no empty list, only values from &lt;1, 7&gt; range.</p> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CREATE DOMAIN isoweekday AS INT CHECK(...); CREATE DOMAIN isoweekdays AS isoweekday[] CHECK(...);"><pre class="notranslate"><span class="pl-k">CREATE</span> <span class="pl-k">DOMAIN</span> <span class="pl-en">isoweekday</span> <span class="pl-k">AS</span> <span class="pl-k">INT</span> <span class="pl-k">CHECK</span>(...); <span class="pl-k">CREATE</span> <span class="pl-k">DOMAIN</span> <span class="pl-en">isoweekdays</span> <span class="pl-k">AS</span> isoweekday[] <span class="pl-k">CHECK</span>(...);</pre></div> <p dir="auto">I've created custom types, like so:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class ISOWeekDayDomain(types.UserDefinedType, types.Integer): def get_col_spec(self, **kwargs): return 'isoweekday' class ISOWeekDaysDomain(types.UserDefinedType, ARRAY): def __init__(self, **kwargs): if 'item_type' not in kwargs: kwargs['item_type'] = ISOWeekDayDomain super(ISOWeekDaysDomain, self).__init__(**kwargs) def get_col_spec(self, **kwargs): return 'isoweekdays'"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">ISOWeekDayDomain</span>(<span class="pl-s1">types</span>.<span class="pl-v">UserDefinedType</span>, <span class="pl-s1">types</span>.<span class="pl-v">Integer</span>): <span class="pl-k">def</span> <span class="pl-en">get_col_spec</span>(<span class="pl-s1">self</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-k">return</span> <span class="pl-s">'isoweekday'</span> <span class="pl-k">class</span> <span class="pl-v">ISOWeekDaysDomain</span>(<span class="pl-s1">types</span>.<span class="pl-v">UserDefinedType</span>, <span class="pl-v">ARRAY</span>): <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-k">if</span> <span class="pl-s">'item_type'</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">kwargs</span>: <span class="pl-s1">kwargs</span>[<span class="pl-s">'item_type'</span>] <span class="pl-c1">=</span> <span class="pl-v">ISOWeekDayDomain</span> <span class="pl-en">super</span>(<span class="pl-v">ISOWeekDaysDomain</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>(<span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-k">def</span> <span class="pl-en">get_col_spec</span>(<span class="pl-s1">self</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-k">return</span> <span class="pl-s">'isoweekdays'</span></pre></div> <p dir="auto">and then used them to define a column:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Column( ISOWeekDaysDomain, nullable=False, server_default=text('ARRAY[1,2,3,4,5,6,7]') )"><pre class="notranslate"><span class="pl-v">Column</span>( <span class="pl-v">ISOWeekDaysDomain</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">server_default</span><span class="pl-c1">=</span><span class="pl-en">text</span>(<span class="pl-s">'ARRAY[1,2,3,4,5,6,7]'</span>) )</pre></div> <p dir="auto">Creating migrations using Alembic went well, and it created the following statement:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" op.add_column( u'config', sa.Column( 'dow', ISOWeekDaysDomain(), server_default=sa.text(u'ARRAY[1, 2, 3, 4, 5, 6, 7]'), nullable=False, ), )"><pre class="notranslate"> <span class="pl-s1">op</span>.<span class="pl-en">add_column</span>( <span class="pl-s">u'config'</span>, <span class="pl-s1">sa</span>.<span class="pl-v">Column</span>( <span class="pl-s">'dow'</span>, <span class="pl-v">ISOWeekDaysDomain</span>(), <span class="pl-s1">server_default</span><span class="pl-c1">=</span><span class="pl-s1">sa</span>.<span class="pl-en">text</span>(<span class="pl-s">u'ARRAY[1, 2, 3, 4, 5, 6, 7]'</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, ), )</pre></div> <p dir="auto">After applying migrations on the database, I'm getting the following warning:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sqlalchemy/dialects/postgresql/base.py:2683: SAWarning: Did not recognize type 'isoweekday[]' of column 'dow'"><pre class="notranslate"><code class="notranslate">sqlalchemy/dialects/postgresql/base.py:2683: SAWarning: Did not recognize type 'isoweekday[]' of column 'dow' </code></pre></div> <p dir="auto">Running alembic yields a new database migration that alters the previously added column with <code class="notranslate">sqltypes.NULLTYPE</code>.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="op.alter_column(u'tent_crawling_config', 'dow', existing_type=sa.NullType(), nullable=False, existing_server_default=sa.text(u'ARRAY[1, 2, 3, 4, 5, 6, 7]'))"><pre class="notranslate"><span class="pl-s1">op</span>.<span class="pl-en">alter_column</span>(<span class="pl-s">u'tent_crawling_config'</span>, <span class="pl-s">'dow'</span>, <span class="pl-s1">existing_type</span><span class="pl-c1">=</span><span class="pl-s1">sa</span>.<span class="pl-v">NullType</span>(), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">existing_server_default</span><span class="pl-c1">=</span><span class="pl-s1">sa</span>.<span class="pl-en">text</span>(<span class="pl-s">u'ARRAY[1, 2, 3, 4, 5, 6, 7]'</span>))</pre></div> <p dir="auto">The <code class="notranslate">domains</code> dictionary passed to <code class="notranslate">_get_column_info</code> contains both created domains and during execution it enters the <a href="https://github.com/sqlalchemy/sqlalchemy/blob/master/lib/sqlalchemy/dialects/postgresql/base.py#L2677">dialects/postgresql/base.py#L2677</a> block.</p> <p dir="auto">What am I missing? How to register my custom types that map domains so the reflection API recognises them?</p> <p dir="auto">I'm using <code class="notranslate">SQLAlchemy==1.2.14</code> and PostgreSQL <code class="notranslate">v11</code></p>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">Hello, I've just encountered a very odd behaviour of SA, revision 1190.</p> <p dir="auto">Basically, it seems to save dereferenced object as well, even though the object gets deleted from the current namespace. <em>all the object values</em> are actually kept and written to the database!</p> <p dir="auto">I don't have enoug SA knowledge to try to understand where the problem occurs; I guess it's got something to do with SA internal object-tracking (maybe it's employing a standard ref instead of a weakref somewhere).</p> <p dir="auto">demo attached.</p> <p dir="auto">Alan Franzoni &lt;alan.franzoni at gmail dot com&gt;</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/128/objectstore-problem.py">objectstore-problem.py</a></p>
0
<p dir="auto">I was playing around with the idea of placing a<code class="notranslate">__tests__</code> folder into my different directory areas.</p> <p dir="auto">So</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root |-pages | `__tests__ | `index.test.js | `index.js |-components | `__tests__ | `Button.js |-layouts `__tests__ `TwoColumn.js"><pre class="notranslate"><code class="notranslate">root |-pages | `__tests__ | `index.test.js | `index.js |-components | `__tests__ | `Button.js |-layouts `__tests__ `TwoColumn.js </code></pre></div> <p dir="auto">But when I do this, I get duplicate issues because of files being copied into .next</p> <p dir="auto"><code class="notranslate">.next/dist/pages/__tests__/index.test.js</code></p> <p dir="auto">What is the best way to solve this? I know I can omit the files from jest, but I don't think they should be copied over in general.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Considering the following snippet:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;Head&gt; {title ? ( &lt;React.Fragment&gt; &lt;title&gt;{title} | Cool site&lt;/title&gt; &lt;meta property='og:title' content={title} /&gt; &lt;/React.Fragment&gt; ) : ( &lt;title&gt;Cool site&lt;/title&gt; )} {/* … */} &lt;/Head&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">Head</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-s1">title</span> ? <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-v">Fragment</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">title</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">title</span><span class="pl-kos">}</span> | Cool site<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">title</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">property</span><span class="pl-c1">=</span><span class="pl-s">'og:title'</span> <span class="pl-c1">content</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">title</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-v">React</span><span class="pl-kos">.</span><span class="pl-v">Fragment</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span> : <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">title</span><span class="pl-c1">&gt;</span>Cool site<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">title</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">}</span> <span class="pl-kos">{</span><span class="pl-c">/* … */</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Head</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">When <code class="notranslate">title</code> is defined, I would expect <code class="notranslate">&lt;title&gt;foo | Cool site&lt;/tite&gt;</code> to be rendered.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">An empty <code class="notranslate">&lt;title /&gt;</code> is rendered.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>4.1.4</td> </tr> <tr> <td>node</td> <td>8.9.1</td> </tr> </tbody> </table>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1930" rel="nofollow">http://projects.scipy.org/numpy/ticket/1930</a> on 2011-08-10 by trac user tlatorre, assigned to unknown.</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.uint64(5) &lt;&lt; 1 Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; TypeError: ufunc 'left_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe' &gt;&gt;&gt; np.uint64(5) &gt;&gt; 3 Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; TypeError: ufunc 'right_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.uint64(5) &lt;&lt; 1 Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; TypeError: ufunc 'left_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe' &gt;&gt;&gt; np.uint64(5) &gt;&gt; 3 Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; TypeError: ufunc 'right_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe' </code></pre></div>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1931" rel="nofollow">http://projects.scipy.org/numpy/ticket/1931</a> on 2011-08-10 by trac user tlatorre, assigned to unknown.</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.uint64(5) &lt;&lt; 1 Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; TypeError: ufunc 'left_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe' &gt;&gt;&gt; np.uint64(5) &gt;&gt; 3 Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; TypeError: ufunc 'right_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.uint64(5) &lt;&lt; 1 Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; TypeError: ufunc 'left_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe' &gt;&gt;&gt; np.uint64(5) &gt;&gt; 3 Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; TypeError: ufunc 'right_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe' </code></pre></div>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> DatePipe.transform() produces an incorrect string in IE. Instead of getting the correct, formatted string, you get the correct formatted string followed by the whole date.</p> <p dir="auto"><strong>Expected behavior</strong><br> DatePipe.transform() should return the same result as in other browsers.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> See Plunker example:</p> <p dir="auto"><a href="http://plnkr.co/edit/bNfFJW3VN9eiEwlfDzqH?p=preview" rel="nofollow">http://plnkr.co/edit/bNfFJW3VN9eiEwlfDzqH?p=preview</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">With the current behavior it is impossible to get the correct, formatted string when using DatePipe inside a component.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X</li> </ul> <ul dir="auto"> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> </ul> <p dir="auto">IE11</p> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> [email protected]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p> </li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [ ] 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 [ ] 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 using the date pipe In IE 11.0.9600.18350 with minutes/seconds it shows the whole date instead of the minutes and/or seconds.</p> <p dir="auto">Examples:<br> Date recieved from service | used binding | result<br> "2016-06-21T10:47:40Z" | {{mydate | date:'HH'}} | ‎12‎:‎00<br> "2016-06-21T10:47:40Z" | {{mydate | date:'mm'}} | ‎6‎/‎21‎/‎2016‎ ‎12‎:‎47‎:‎40‎ ‎PM<br> "2016-06-21T10:47:40Z" | {{mydate | date:'ss'}} | ‎6‎/‎21‎/‎2016‎ ‎12‎:‎47‎:‎40‎ ‎PM</p> <p dir="auto">"2016-06-21T10:47:40Z" | {{mydate | date:'HH:mm'}} | ‎12‎:‎00:‎6‎/‎21‎/‎2016‎ ‎12‎:‎47‎:‎40‎ ‎PM<br> "2016-06-21T10:47:40Z" | {{mydate | date:'mm:ss'}} | ‎6‎/‎21‎/‎2016‎ ‎12‎:‎47‎:‎40‎ ‎PM:‎6‎/‎21‎/‎2016‎ ‎12‎:‎47‎:‎40‎ ‎PM<br> "2016-06-21T10:47:40Z" | {{mydate | date:'HH:ss'}} | ‎12‎:‎00:‎6‎/‎21‎/‎2016‎ ‎12‎:‎47‎:‎40‎ ‎PM</p> <p dir="auto">"2016-06-21T10:47:40Z" | {{mydate | date:'HH:mm:ss'}} | ‎‎12‎:‎00:‎6‎/‎21‎/‎2016‎ ‎12‎:‎47‎:‎40‎ ‎PM:‎6‎/‎21‎/‎2016‎ ‎12‎:‎47‎:‎40‎ ‎PM</p> <p dir="auto">It seems that the minutes and seconds produce an entire date instead of the desired minutes/seconds.</p> <p dir="auto"><strong>Expected/desired behavior</strong><br> The expected behaviour is that mm only returns the minutes and ss only returns the seconds.</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> <a href="http://plnkr.co/edit/kc8ZEMAvsx1tSbsbXTuv?p=preview" rel="nofollow">http://plnkr.co/edit/kc8ZEMAvsx1tSbsbXTuv?p=preview</a></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> See above.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.2 &amp;&amp; 2.0.0-rc.3</li> <li><strong>Browser:</strong> [ IE 11.0.9600.18350 &amp;&amp; Edge ] this does not occur on the latest versions of Chrome and Firefox. Haven't tested other browsers.</li> <li><strong>Language:</strong> [TypeScript 1.8.10]</li> </ul>
1
<p dir="auto">Hi,<br> Elasticsearch currently doesn't have a parameter which switches indices in append only mode. This could be interesting from performance point of view.</p> <p dir="auto">We are dealing with a problem of limited ingestion rate in ES. We tried to focus on a couple of hot spots to resolve potential bottlenecks. One of them was DocValues merges for sparse fields, then after changing approach synchronous translog became a bottleneck. It even seems that contention problem is not negligible: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="151747455" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/18053" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/18053/hovercard" href="https://github.com/elastic/elasticsearch/issues/18053">#18053</a>. These are only a few places where we tried to find optimizations. While analyzing profiles in Java Mission Control it was hard to ignore the another major problem: versions lookup. See the image below.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6692291/14913686/309efd74-0e05-11e6-9437-f0497a9bcaca.png"><img src="https://cloud.githubusercontent.com/assets/6692291/14913686/309efd74-0e05-11e6-9437-f0497a9bcaca.png" alt="selection_383" style="max-width: 100%;"></a></p> <p dir="auto">Profiler shows that versions lookups are taking up to 25% of CPU time. This is a lot. Of course one could say I am showing a very specific case because I am using tiny documents in tests. I think this is not exactly true. Elasticsearch stack is much focused on logs aggregation and recently also metrics (Logstash, Kibana, Marvel, Beats, ...). Most systems designed for metric or log aggregation indices are append-only. Of course ES is general purpose distributed search and analytics engine so document versions are really important ... but in many cases append-only mode could be sufficient.<br> One of the major strengths of Lucene internally is that segments are append only. Why not to use this simple but powerful assumption on higher level? Not all ES use cases require concurrent update functionality in which versions control really matters. What if Elasticsearch indices are marked as append-only (on they are created. Indices have properties which cannot be changed after index is created (eg. number of shards). This could be another parameter which can be applied only on index creation.</p> <p dir="auto">The contention problem mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="151747455" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/18053" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/18053/hovercard" href="https://github.com/elastic/elasticsearch/issues/18053">#18053</a> would also become less painful in append-only indices. Version lookup is inside synchronized block in InternalEngine#innerIndex. This means threads are in synchronized section for a longer time than needed (in case where versions are not needed).</p> <p dir="auto">During tests we disabled versions control in Elasticsearch which brought us significant improvement in indexing speed. Look at the chart below. Indexing speed on the same indices (without removing old data - just changed ES version) increased by 50% only by removing a version control.</p> <p dir="auto">My test environment is not very powerful. Only 2 machines with 4 CPU cores each. Indices have only one replica.</p> <p dir="auto"><a href="https://apps.sematext.com/spm-reports/s/ucSD8cuTRr" rel="nofollow">https://apps.sematext.com/spm-reports/s/ucSD8cuTRr</a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6692291/14913721/59e14ad4-0e05-11e6-8a7b-ab88f398e625.png"><img src="https://cloud.githubusercontent.com/assets/6692291/14913721/59e14ad4-0e05-11e6-8a7b-ab88f398e625.png" alt="selection_397" style="max-width: 100%;"></a></p> <p dir="auto">I would really appreciate any feedback. Am I missing something obvious? Thanks</p>
<p dir="auto">Hello,</p> <p dir="auto">Right now if you enable Elasticsearch slow log from config - elasticsearch.yml or through api call, it will generate the logs on the data node for queries that take more then 1 second (if set like this) in ES_index_search_slowlog.log.<br> The problem is that it will generate these logs on the data nodes where the query hits, so you have to check each nodes to see them If you have 50 data nodes this can be quite painfully.<br> What we need is for the these logs to be generated at the node the request is sent to ( client node for example) and the logs should also include the ip of the machine the call was made from.</p> <p dir="auto">I believe this should be implemented as it will make it much easier to debug.</p> <p dir="auto">**<em>I know you could manually collect all the logs and use nginx proxy in front to catch the ip and then concatenate all of them. But why do all of this ? ***</em></p>
0
<p dir="auto"><code class="notranslate">str</code> has been asserted it cannot be <code class="notranslate">undefined</code> on all call sites of <code class="notranslate">test()</code> below:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let str: string | undefined; if (str) { test(); } function test() { str.charAt(1); // error can be undefined }"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">str</span>: <span class="pl-smi">string</span> <span class="pl-c1">|</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">str</span><span class="pl-kos">.</span><span class="pl-en">charAt</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// error can be undefined</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">Hi,</p> <p dir="auto"><strong>Version</strong>: 1.8.5</p> <p dir="auto">I would like to see an error when duplicate values are found in a string literal declaration:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" type alphabet = 'a' | ... | 'x' | 'y' | 'a'; // Error: Duplicate value 'a' "><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">alphabet</span> <span class="pl-c1">=</span> <span class="pl-s">'a'</span> <span class="pl-c1">|</span> ... <span class="pl-c1">|</span> <span class="pl-s">'x'</span> <span class="pl-c1">|</span> <span class="pl-s">'y'</span> <span class="pl-c1">|</span> <span class="pl-s">'a'</span><span class="pl-kos">;</span> <span class="pl-c">// Error: Duplicate value 'a'</span></pre></div> <p dir="auto">This is most likely an unintentional inclusion.</p>
0
<h3 dir="auto">Superset version</h3> <p dir="auto">0.22</p> <h3 dir="auto">Expected results</h3> <p dir="auto">Was expecting superset to open properly</p> <h3 dir="auto">Actual results</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8124306/39095060-a6fac1ce-4657-11e8-88f9-896410abb207.png"><img src="https://user-images.githubusercontent.com/8124306/39095060-a6fac1ce-4657-11e8-88f9-896410abb207.png" alt="screen shot 2018-04-22 at 6 03 06 pm" style="max-width: 100%;"></a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Installed superset 0.22 according to instructions <a href="url">https://github.com/apache/incubator-superset/blob/010a69de83273934cc02c4fcc9e6b3014591193e/CONTRIBUTING.md</a><br> npm run dev on superset/assets/</p> <p dir="auto">Did anyone face this issue before?</p>
<h3 dir="auto">Expected results</h3> <p dir="auto">Expected helm chart to work with default/updated values.</p> <h3 dir="auto">Actual results</h3> <p dir="auto">It throws <code class="notranslate">password authentication failed</code> for both default superset helm<br> setup as well as updated <code class="notranslate">values.yaml</code> where postgres password is overridden.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) FATAL: password authentication failed for user &quot;superset&quot;"><pre class="notranslate"><code class="notranslate">ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) FATAL: password authentication failed for user "superset" </code></pre></div> <h4 dir="auto">How to reproduce the bug</h4> <p dir="auto">We can reproduce the same by following the official documentation:<br> <a href="https://superset.apache.org/docs/installation/running-on-kubernetes" rel="nofollow">https://superset.apache.org/docs/installation/running-on-kubernetes</a></p> <p dir="auto">We can use the <a href="">default my-values.yaml</a> or the version where postgresPassword is updated.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ helm repo add superset https://apache.github.io/superset &quot;superset&quot; has been added to your repositories // updated postgresPassword from my-values.yaml file $ helm upgrade --install --values my-values.yaml superset superset/superset Release &quot;superset&quot; does not exist. Installing it now. coalesce.go:163: warning: skipped value for extraEnv: Not a table. NAME: superset LAST DEPLOYED: Sat Jun 12 10:26:42 2021 NAMESPACE: superset STATUS: deployed REVISION: 1 TEST SUITE: None // list pods $ helm get pods // show log from superset pod $ helm log -t superset-&lt;pod-id&gt; ... [2021-06-12 10:24:07 +0000] [1092] [INFO] Worker exiting (pid: 1092) Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py] [2021-06-12 10:24:07 +0000] [1094] [INFO] Booting worker with pid: 1094 logging was configured successfully 2021-06-12 10:24:08,970:INFO:superset.utils.logging_configurator:logging was configured successfully 2021-06-12 10:24:08,976:INFO:root:Configured event logger of type &lt;class 'superset.utils.log.DBEventLogger'&gt; 2021-06-12 10:24:09,007:ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) FATAL: password authentication failed for user &quot;superset&quot; ..."><pre class="notranslate"><code class="notranslate">$ helm repo add superset https://apache.github.io/superset "superset" has been added to your repositories // updated postgresPassword from my-values.yaml file $ helm upgrade --install --values my-values.yaml superset superset/superset Release "superset" does not exist. Installing it now. coalesce.go:163: warning: skipped value for extraEnv: Not a table. NAME: superset LAST DEPLOYED: Sat Jun 12 10:26:42 2021 NAMESPACE: superset STATUS: deployed REVISION: 1 TEST SUITE: None // list pods $ helm get pods // show log from superset pod $ helm log -t superset-&lt;pod-id&gt; ... [2021-06-12 10:24:07 +0000] [1092] [INFO] Worker exiting (pid: 1092) Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py] [2021-06-12 10:24:07 +0000] [1094] [INFO] Booting worker with pid: 1094 logging was configured successfully 2021-06-12 10:24:08,970:INFO:superset.utils.logging_configurator:logging was configured successfully 2021-06-12 10:24:08,976:INFO:root:Configured event logger of type &lt;class 'superset.utils.log.DBEventLogger'&gt; 2021-06-12 10:24:09,007:ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) FATAL: password authentication failed for user "superset" ... </code></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>superset version: <code class="notranslate">superset-helm-chart-0.1.4</code> (latest docker tag)</li> </ul> <h3 dir="auto">Checklist</h3> <p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=marcelstoer" rel="nofollow">Marcel Stör</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9722?redirect=false" rel="nofollow">SPR-9722</a></strong> and commented</p> <p dir="auto">With <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398088112" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9462" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9462/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9462">#9462</a> support for default values was added.</p> <p dir="auto">However, I observed that they are applied too early if you have a hierarchy or cascade of property placeholder configurers:</p> <ul dir="auto"> <li>Spring loops through the prioritized list of configurers</li> <li>if property X is not found in the first configurer the default value is returned<br> --&gt; the whole list should be processed first before the default value is used</li> </ul> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.1</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398152264" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14292" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14292/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14292">#14292</a> <code class="notranslate">@Value</code> assigns the default property value (if specified) before all property locations are examined, resulting in assigning a default to a property which is defined in a properties file. (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">1 votes, 3 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=ziezi" rel="nofollow">Lachezar Kozhuharov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9474?redirect=false" rel="nofollow">SPR-9474</a></strong> and commented</p> <p dir="auto">I would expect the matching pattern not to partially enforce the query structure. Expected behavior is to fully enforce it or not to enforce it at all. This would be useful when for example building a RESTful service client. A query like "a=b&amp;filter=c==d" is not properly processed and results in URI change.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 RC2</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="398153675" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14465" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14465/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14465">#14465</a> Erroneous "0" returned where empty string expected in call through the RestTemplate (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/2965df6bee12638e3e1a1208c382679fe3d46751/hovercard" href="https://github.com/spring-projects/spring-framework/commit/2965df6bee12638e3e1a1208c382679fe3d46751"><tt>2965df6</tt></a></p>
0
<p dir="auto">I want to make a pattern on a route host requirement using a parameter like this</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="my_homepage: path: / host: {mydomain} defaults: { _controller: AcmeDemoBundle:Main:myHomepage } requirements: mydomain: %mydomain%"><pre class="notranslate"><span class="pl-ent">my_homepage</span>: <span class="pl-ent">path</span>: <span class="pl-s">/</span> <span class="pl-ent">host</span>: <span class="pl-s">{mydomain}</span> <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeDemoBundle:Main:myHomepage }</span> <span class="pl-ent">requirements</span>: <span class="pl-ent">mydomain</span>: <span class="pl-s">%mydomain%</span></pre></div> <p dir="auto">and parameter.yml :</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mydomain: mydomain.com"><pre class="notranslate"><span class="pl-ent">mydomain</span>: <span class="pl-s">mydomain.com</span></pre></div> <p dir="auto">Such a config (modified doc example) generate a Yaml parse error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Malformed inline YAML string ({domain}) at line 64 (near &quot;host: {domain}&quot;).) "><pre lang="text" class="notranslate"><code class="notranslate">Malformed inline YAML string ({domain}) at line 64 (near "host: {domain}").) </code></pre></div> <p dir="auto">Am i wrong ?</p> <p dir="auto">Using quote like this don't solve the problem ,</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="my_homepage: path: / host: &quot;{mydomain}&quot; defaults: { _controller: AcmeDemoBundle:Main:myHomepage } requirements: mydomain: %mydomain%"><pre class="notranslate"><span class="pl-ent">my_homepage</span>: <span class="pl-ent">path</span>: <span class="pl-s">/</span> <span class="pl-ent">host</span>: <span class="pl-s"><span class="pl-pds">"</span>{mydomain}<span class="pl-pds">"</span></span> <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeDemoBundle:Main:myHomepage }</span> <span class="pl-ent">requirements</span>: <span class="pl-ent">mydomain</span>: <span class="pl-s">%mydomain%</span></pre></div> <p dir="auto">and generate another error,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An exception has been thrown during the rendering of a template (&quot;Some mandatory parameters are missing (&quot;mydomain&quot;) to generate a URL for route..."><pre lang="text" class="notranslate"><code class="notranslate">An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("mydomain") to generate a URL for route... </code></pre></div> <p dir="auto">Tried on different projects without good result....</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>yes</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>any</td> </tr> </tbody> </table> <p dir="auto">The symfony phpunit bridge does not work with phpunit version 6 which is namespaced. So for example<br> <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/PhpUnit/bootstrap.php#L16">https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/PhpUnit/bootstrap.php#L16</a> will just be skipped.</p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/use-html5-to-require-a-field#_=_" rel="nofollow">Use HTML5 to Require a Field</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;link href=&quot;http://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;smaller-image thick-green-border&quot; alt=&quot;A cute orange cat lying on its back&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt;&lt;/a&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;input type=&quot;text&quot; required placeholder=&quot;cat photo URL&quot;&gt; &lt;button type=&quot;submit&quot;&gt;Submit&lt;/button&gt; &lt;/form&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">http://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } .<span class="pl-c1">smaller-image</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Click here for <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Things cats love:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">required</span> <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">&gt;</span>Submit<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">I've tried hard refresh, logging in and logging out, deleting the required fields, and then adding them again, it just doesn't go on.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/16916594/12715555/99e9abe2-c8e3-11e5-8b76-e422aa9892fb.png"><img src="https://cloud.githubusercontent.com/assets/16916594/12715555/99e9abe2-c8e3-11e5-8b76-e422aa9892fb.png" alt="default" style="max-width: 100%;"></a></p>
<p dir="auto">I cann't press the button "Submit and go to my next challenge (ctrl + enter)". But if I clicked I only see the infinite loading. How to solve this problem?<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15948159/12712716/62a3c88c-c8db-11e5-9556-7183e96aa60b.PNG"><img src="https://cloud.githubusercontent.com/assets/15948159/12712716/62a3c88c-c8db-11e5-9556-7183e96aa60b.PNG" alt="default" style="max-width: 100%;"></a></p>
1
<p dir="auto">fn main() {<br> }</p> <p dir="auto">struct X;</p> <p dir="auto">impl X {<br> unsafe fn xevent_cast(buffer: &amp;[u8; 256]) -&gt; T {<br> return *(buffer.as_ptr() as *const T);<br> }<br> }</p>
<p dir="auto">Input:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct T(u8); fn t() -&gt; *mut T { unsafe { 0u8 as *mut T } } fn main() { let a = unsafe { *t() }; }"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">T</span><span class="pl-kos">(</span><span class="pl-smi">u8</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">t</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -&gt; <span class="pl-c1">*</span><span class="pl-k">mut</span> <span class="pl-smi">T</span> <span class="pl-kos">{</span> <span class="pl-k">unsafe</span> <span class="pl-kos">{</span> <span class="pl-c1">0u8</span> <span class="pl-k">as</span> <span class="pl-c1">*</span><span class="pl-k">mut</span> <span class="pl-smi">T</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> a = <span class="pl-k">unsafe</span> <span class="pl-kos">{</span> <span class="pl-c1">*</span><span class="pl-en">t</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc ../test.rs ../test.rs:9:19: 9:23 error: internal compiler error: this path should not cause illegal move ../test.rs:9 let a = unsafe { *t() }; ^~~~ note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /Users/John/Documents/dev/rust/src/libsyntax/diagnostic.rs:123 stack backtrace: 1: 0x10f825b75 - sys::backtrace::write::h757d4037fec4513elCt 2: 0x10f84800f - failure::on_fail::he99e1d2cd81a67a80Hz 3: 0x10f7b3c8a - rt::unwind::begin_unwind_inner::hede15ebc165353e0Qpz 4: 0x10d508707 - rt::unwind::begin_unwind::h5150449308391082809 5: 0x10d50869c - diagnostic::SpanHandler::span_bug::h1cc7aa850b4525b9nQF 6: 0x10c93bc1d - session::Session::span_bug::h9dff6f0c981e0b95mRq 7: 0x10c547999 - borrowck::build_borrowck_dataflow_data::hbfab9f3785e58ec8QRe 8: 0x10c5432fb - borrowck::borrowck_fn::h9d4d5a57ec1e26a2cPe 9: 0x10c5440f2 - borrowck::borrowck_item::hd3de64f0b51b624a9Ne 10: 0x10c54461f - borrowck::check_crate::hab49ad1d67fb67e9ZIe 11: 0x10c09e8aa - driver::phase_3_run_analysis_passes::h3bf5eb3f470c8788gwa 12: 0x10c082d90 - driver::compile_input::h63293298907e332cxba 13: 0x10c14e7ba - monitor::unboxed_closure.22558 14: 0x10c14cf15 - thunk::F.Invoke&lt;A, R&gt;::invoke::h15985566512806182469 15: 0x10c14bcf0 - rt::unwind::try::try_fn::h5957420952141477940 16: 0x10f8b1189 - rust_try_inner 17: 0x10f8b1176 - rust_try 18: 0x10c14c3ec - thunk::F.Invoke&lt;A, R&gt;::invoke::h12578415658120090831 19: 0x10f835814 - sys::thread::thread_start::he6c5dcba45c95bf2drw 20: 0x7fff933e22fc - _pthread_body 21: 0x7fff933e2279 - _pthread_body"><pre class="notranslate"><code class="notranslate">$ rustc ../test.rs ../test.rs:9:19: 9:23 error: internal compiler error: this path should not cause illegal move ../test.rs:9 let a = unsafe { *t() }; ^~~~ note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /Users/John/Documents/dev/rust/src/libsyntax/diagnostic.rs:123 stack backtrace: 1: 0x10f825b75 - sys::backtrace::write::h757d4037fec4513elCt 2: 0x10f84800f - failure::on_fail::he99e1d2cd81a67a80Hz 3: 0x10f7b3c8a - rt::unwind::begin_unwind_inner::hede15ebc165353e0Qpz 4: 0x10d508707 - rt::unwind::begin_unwind::h5150449308391082809 5: 0x10d50869c - diagnostic::SpanHandler::span_bug::h1cc7aa850b4525b9nQF 6: 0x10c93bc1d - session::Session::span_bug::h9dff6f0c981e0b95mRq 7: 0x10c547999 - borrowck::build_borrowck_dataflow_data::hbfab9f3785e58ec8QRe 8: 0x10c5432fb - borrowck::borrowck_fn::h9d4d5a57ec1e26a2cPe 9: 0x10c5440f2 - borrowck::borrowck_item::hd3de64f0b51b624a9Ne 10: 0x10c54461f - borrowck::check_crate::hab49ad1d67fb67e9ZIe 11: 0x10c09e8aa - driver::phase_3_run_analysis_passes::h3bf5eb3f470c8788gwa 12: 0x10c082d90 - driver::compile_input::h63293298907e332cxba 13: 0x10c14e7ba - monitor::unboxed_closure.22558 14: 0x10c14cf15 - thunk::F.Invoke&lt;A, R&gt;::invoke::h15985566512806182469 15: 0x10c14bcf0 - rt::unwind::try::try_fn::h5957420952141477940 16: 0x10f8b1189 - rust_try_inner 17: 0x10f8b1176 - rust_try 18: 0x10c14c3ec - thunk::F.Invoke&lt;A, R&gt;::invoke::h12578415658120090831 19: 0x10f835814 - sys::thread::thread_start::he6c5dcba45c95bf2drw 20: 0x7fff933e22fc - _pthread_body 21: 0x7fff933e2279 - _pthread_body </code></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: Microsoft Windows [Version 10.0.18963.1000] Windows Terminal version (if applicable): commit id 734fc1d"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18963.1000] Windows Terminal version (if applicable): commit id 734fc1d </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">still, like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="459465340" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/1404" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/1404/hovercard" href="https://github.com/microsoft/terminal/issues/1404">#1404</a><br> at the defualt profile, "commandline" can't be opened, terminal starts and right after it shuts down.</p> <p dir="auto">Make profile a mistake, like the image under.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29011440/63356452-c6dcfb00-c3a2-11e9-8d34-8c9e7f14bf97.png"><img src="https://user-images.githubusercontent.com/29011440/63356452-c6dcfb00-c3a2-11e9-8d34-8c9e7f14bf97.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">After that, starting a windows terminal, terminal automatically closes without any message.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Terminal shows up an error message like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="480323636" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/2422" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/terminal/pull/2422/hovercard" href="https://github.com/microsoft/terminal/pull/2422">#2422</a></p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Terminal doesn't show up any error message, just shuts down.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.418] Windows Terminal version (if applicable): Any other software? Viaual Studio Code 1.40.0-insider"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.418] Windows Terminal version (if applicable): Any other software? Viaual Studio Code 1.40.0-insider </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol start="0" dir="auto"> <li>Set <code class="notranslate">"terminal.integrated.windowsEnableConpty": true</code>.</li> <li>Install Cygwin.</li> <li>Set the default shell as bash.exe(for Cygwin) in Viaual Studio Code, and the args as <code class="notranslate">--login</code>.</li> <li>Run <code class="notranslate">ls --color=auto</code>.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The executable files and the folders' names are displayed in bold. (You can check the bold character in MinTTY with the option <code class="notranslate">Show bold ad font</code>.)</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">There is nothing displayed in bold.</p>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; :4.1.0</li> <li>Operating System / Platform =&gt; :Linux Ubuntu 18.04</li> </ul> <p dir="auto">and</p> <ul dir="auto"> <li>OpenCV =&gt; :4.1.0</li> <li>Operating System / Platform =&gt; :Windows 7</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I have trained YOLO object detection via darknet and I could check result using<br> <code class="notranslate">./darknet detector test cfg/obj.data cfg/yolo-obj.cfg yolo.weights data/test.jpg</code><br> but when I want to use dnn module in OpenCV for showing result on input image(<code class="notranslate">160*30</code>), it failed. But it could show result correctly for larger images such <code class="notranslate">1280*760</code>.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7418329/62410286-006ae380-b5f9-11e9-9fad-b8b6adda11c9.jpg"><img src="https://user-images.githubusercontent.com/7418329/62410286-006ae380-b5f9-11e9-9fad-b8b6adda11c9.jpg" alt="Input Image" style="max-width: 100%;"></a></p> <p dir="auto">I think that, <code class="notranslate">blobfromimage</code> function crop upper region of this image and subsequently show incorrect results for input image.</p> <p dir="auto">At last I show a sample of image that showed correctly by this module:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7418329/62410612-3f9b3380-b5fd-11e9-8f05-0352dabf99f4.jpg"><img src="https://user-images.githubusercontent.com/7418329/62410612-3f9b3380-b5fd-11e9-8f05-0352dabf99f4.jpg" alt="2" style="max-width: 100%;"></a></p> <h5 dir="auto">Steps to reproduce</h5>
<ul dir="auto"> <li>OpenCV =&gt; Latest</li> <li>Operating System / Platform =&gt; Ubuntu 16.04</li> <li>Compiler =&gt; gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)</li> </ul> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">For some weird reason OpenCV is unable to save a CV_32FC1 type cv::Mat into a tiff. Below is the minimal example to duplicate this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// doesn't work cv::Mat test = cv::Mat(100, 100, CV_32FC1, cv::Scalar(128)); cv::imwrite(&quot;test.tif&quot;, test);"><pre class="notranslate"><code class="notranslate">// doesn't work cv::Mat test = cv::Mat(100, 100, CV_32FC1, cv::Scalar(128)); cv::imwrite("test.tif", test); </code></pre></div> <p dir="auto">No file is written.</p> <p dir="auto">However the different variations below all works properly</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// works cv::Mat test = cv::Mat(100, 100, CV_32FC3, cv::Scalar(128, 128, 128)); cv::imwrite(&quot;test.tif&quot;, test); // works cv::Mat test = cv::Mat(100, 100, CV_8UC3, cv::Scalar(128, 128, 128)); cv::imwrite(&quot;test.tif&quot;, test); // works cv::Mat test = cv::Mat(100, 100, CV_8UC1, cv::Scalar(128)); cv::imwrite(&quot;test.tif&quot;, test); // works cv::Mat test = cv::Mat(100, 100, CV_32FC1, cv::Scalar(128)); cv::imwrite(&quot;test.png&quot;, test); // works cv::Mat test = cv::Mat(100, 100, CV_32FC1, cv::Scalar(128)); cv::imwrite(&quot;test.jpg&quot;, test);"><pre class="notranslate"><code class="notranslate">// works cv::Mat test = cv::Mat(100, 100, CV_32FC3, cv::Scalar(128, 128, 128)); cv::imwrite("test.tif", test); // works cv::Mat test = cv::Mat(100, 100, CV_8UC3, cv::Scalar(128, 128, 128)); cv::imwrite("test.tif", test); // works cv::Mat test = cv::Mat(100, 100, CV_8UC1, cv::Scalar(128)); cv::imwrite("test.tif", test); // works cv::Mat test = cv::Mat(100, 100, CV_32FC1, cv::Scalar(128)); cv::imwrite("test.png", test); // works cv::Mat test = cv::Mat(100, 100, CV_32FC1, cv::Scalar(128)); cv::imwrite("test.jpg", test); </code></pre></div> <p dir="auto">Why is it that CV_32FC1 Mat cannot be save as tiff?</p>
0
<h3 dir="auto">System Information</h3> <p dir="auto">OpenCV python version: 4.7.0<br> Operating System / Platform: Ubuntu 22.04<br> OpenVINO version: 2022.2.0 (need to use this specific version)<br> Python version: 3.9.16 (need to use this, it is the highest supported by OpenVINO 2022.2.0)</p> <h3 dir="auto">Detailed description</h3> <p dir="auto">I am working in a virtual environment <code class="notranslate">py3.9_openvino_env</code>.</p> <p dir="auto">Following <a href="https://github.com/opencv/opencv/wiki/BuildOpenCV4OpenVINO#building-on-ubuntu">these instructions</a> with flags</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ -D BUILD_EXAMPLES=OFF \ -D BUILD_JASPER=OFF \ -D BUILD_JAVA=OFF \ -D BUILD_JPEG=ON \ -D BUILD_APPS_LIST=version \ -D BUILD_opencv_apps=ON \ -D BUILD_opencv_java=OFF \ -D BUILD_OPENEXR=OFF \ -D BUILD_PNG=ON \ -D BUILD_TBB=OFF \ -D BUILD_WEBP=OFF \ -D BUILD_ZLIB=ON \ -D WITH_1394=OFF \ -D WITH_CUDA=OFF \ -D WITH_EIGEN=OFF \ -D WITH_GPHOTO2=OFF \ -D WITH_GSTREAMER=ON \ -D OPENCV_GAPI_GSTREAMER=OFF \ -D WITH_GTK_2_X=OFF \ -D WITH_IPP=OFF \ -D WITH_JASPER=OFF \ -D WITH_LAPACK=OFF \ -D WITH_MATLAB=OFF \ -D WITH_MFX=ON \ -D WITH_OPENCLAMDBLAS=OFF \ -D WITH_OPENCLAMDFFT=OFF \ -D WITH_OPENEXR=OFF \ -D WITH_OPENJPEG=OFF \ -D WITH_QUIRC=OFF \ -D WITH_TBB=OFF \ -D WITH_TIFF=OFF \ -D WITH_VTK=OFF \ -D WITH_WEBP=OFF \ -D CMAKE_USE_RELATIVE_PATHS=ON \ -D CMAKE_SKIP_INSTALL_RPATH=ON \ -D ENABLE_BUILD_HARDENING=ON \ -D ENABLE_CONFIG_VERIFICATION=ON \ -D ENABLE_PRECOMPILED_HEADERS=OFF \ -D ENABLE_CXX11=ON \ -D INSTALL_PDB=ON \ -D INSTALL_TESTS=ON \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D CMAKE_INSTALL_PREFIX=install \ -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ -D OPENCV_SKIP_PYTHON_LOADER=OFF \ -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ -D OPENCV_GENERATE_SETUPVARS=OFF \ -D OPENCV_BIN_INSTALL_PATH=bin \ -D OPENCV_INCLUDE_INSTALL_PATH=include \ -D OPENCV_LIB_INSTALL_PATH=lib \ -D OPENCV_CONFIG_INSTALL_PATH=cmake \ -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ -D OPENCV_SAMPLES_SRC_INSTALL_PATH=samples \ -D OPENCV_DOC_INSTALL_PATH=doc \ -D OPENCV_OTHER_INSTALL_PATH=etc \ -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ -D BUILD_opencv_world=OFF \ -D BUILD_opencv_python2=OFF \ -D BUILD_opencv_python3=ON \ -D PYTHON3_PACKAGES_PATH=install/python/python3 \ -D PYTHON3_LIMITED_API=ON \ -D HIGHGUI_PLUGIN_LIST=all \ -D OPENCV_PYTHON_INSTALL_PATH=python \ -D CPU_BASELINE=SSE4_2 \ -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ -D WITH_OPENVINO=ON \ -D VIDEOIO_PLUGIN_LIST=gstreamer,mfx \ -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ -D CMAKE_BUILD_TYPE=Release ~/opencv"><pre class="notranslate"><code class="notranslate">-D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ -D BUILD_EXAMPLES=OFF \ -D BUILD_JASPER=OFF \ -D BUILD_JAVA=OFF \ -D BUILD_JPEG=ON \ -D BUILD_APPS_LIST=version \ -D BUILD_opencv_apps=ON \ -D BUILD_opencv_java=OFF \ -D BUILD_OPENEXR=OFF \ -D BUILD_PNG=ON \ -D BUILD_TBB=OFF \ -D BUILD_WEBP=OFF \ -D BUILD_ZLIB=ON \ -D WITH_1394=OFF \ -D WITH_CUDA=OFF \ -D WITH_EIGEN=OFF \ -D WITH_GPHOTO2=OFF \ -D WITH_GSTREAMER=ON \ -D OPENCV_GAPI_GSTREAMER=OFF \ -D WITH_GTK_2_X=OFF \ -D WITH_IPP=OFF \ -D WITH_JASPER=OFF \ -D WITH_LAPACK=OFF \ -D WITH_MATLAB=OFF \ -D WITH_MFX=ON \ -D WITH_OPENCLAMDBLAS=OFF \ -D WITH_OPENCLAMDFFT=OFF \ -D WITH_OPENEXR=OFF \ -D WITH_OPENJPEG=OFF \ -D WITH_QUIRC=OFF \ -D WITH_TBB=OFF \ -D WITH_TIFF=OFF \ -D WITH_VTK=OFF \ -D WITH_WEBP=OFF \ -D CMAKE_USE_RELATIVE_PATHS=ON \ -D CMAKE_SKIP_INSTALL_RPATH=ON \ -D ENABLE_BUILD_HARDENING=ON \ -D ENABLE_CONFIG_VERIFICATION=ON \ -D ENABLE_PRECOMPILED_HEADERS=OFF \ -D ENABLE_CXX11=ON \ -D INSTALL_PDB=ON \ -D INSTALL_TESTS=ON \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D CMAKE_INSTALL_PREFIX=install \ -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ -D OPENCV_SKIP_PYTHON_LOADER=OFF \ -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ -D OPENCV_GENERATE_SETUPVARS=OFF \ -D OPENCV_BIN_INSTALL_PATH=bin \ -D OPENCV_INCLUDE_INSTALL_PATH=include \ -D OPENCV_LIB_INSTALL_PATH=lib \ -D OPENCV_CONFIG_INSTALL_PATH=cmake \ -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ -D OPENCV_SAMPLES_SRC_INSTALL_PATH=samples \ -D OPENCV_DOC_INSTALL_PATH=doc \ -D OPENCV_OTHER_INSTALL_PATH=etc \ -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ -D BUILD_opencv_world=OFF \ -D BUILD_opencv_python2=OFF \ -D BUILD_opencv_python3=ON \ -D PYTHON3_PACKAGES_PATH=install/python/python3 \ -D PYTHON3_LIMITED_API=ON \ -D HIGHGUI_PLUGIN_LIST=all \ -D OPENCV_PYTHON_INSTALL_PATH=python \ -D CPU_BASELINE=SSE4_2 \ -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ -D WITH_OPENVINO=ON \ -D VIDEOIO_PLUGIN_LIST=gstreamer,mfx \ -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ -D CMAKE_BUILD_TYPE=Release ~/opencv </code></pre></div> <p dir="auto">After the installation I do not see the "Intel Inference Engine" under "Other third-party libraries":</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -c &quot;import cv2; print(cv2.__file__)&quot; /home/user0/py3.9_openvino_env/lib/python3.9/site-packages/cv2/__init__.py $ python -c &quot;import cv2; print(cv2.getBuildInformation())&quot; General configuration for OpenCV 4.7.0 ===================================== Version control: 4.7.0-dirty Extra modules: Location (extra): /io/opencv_contrib/modules Version control (extra): 4.7.0 ... Other third-party libraries: Intel IPP: 2020.0.0 Gold [2020.0.0] at: /io/_skbuild/linux-x86_64-3.7/cmake-build/3rdparty/ippicv/ippicv_lnx/icv Intel IPP IW: sources (2020.0.0) at: /io/_skbuild/linux-x86_64-3.7/cmake-build/3rdparty/ippicv/ippicv_lnx/iw VA: NO Lapack: YES (/lib64/libopenblas.so) Eigen: NO Custom HAL: NO Protobuf: build (3.19.1) OpenCL: YES (no extra features) Include path: /io/opencv/3rdparty/include/opencl/1.2 Link libraries: Dynamic load ..."><pre class="notranslate"><code class="notranslate">$ python -c "import cv2; print(cv2.__file__)" /home/user0/py3.9_openvino_env/lib/python3.9/site-packages/cv2/__init__.py $ python -c "import cv2; print(cv2.getBuildInformation())" General configuration for OpenCV 4.7.0 ===================================== Version control: 4.7.0-dirty Extra modules: Location (extra): /io/opencv_contrib/modules Version control (extra): 4.7.0 ... Other third-party libraries: Intel IPP: 2020.0.0 Gold [2020.0.0] at: /io/_skbuild/linux-x86_64-3.7/cmake-build/3rdparty/ippicv/ippicv_lnx/icv Intel IPP IW: sources (2020.0.0) at: /io/_skbuild/linux-x86_64-3.7/cmake-build/3rdparty/ippicv/ippicv_lnx/iw VA: NO Lapack: YES (/lib64/libopenblas.so) Eigen: NO Custom HAL: NO Protobuf: build (3.19.1) OpenCL: YES (no extra features) Include path: /io/opencv/3rdparty/include/opencl/1.2 Link libraries: Dynamic load ... </code></pre></div> <p dir="auto">And when running a test code (provided below, simple test just to see if model is read correctly) I get an error:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ python opencv_app.py Traceback (most recent call last): File &quot;/home/user0/Downloads/model_files/opencv_app.py&quot;, line 19, in &lt;module&gt; net = cv2.dnn.readNetFromModelOptimizer(bin = model_bin, xml = config_xml) cv2.error: OpenCV(4.7.0) /io/opencv/modules/dnn/src/plugin_wrapper.impl.hpp:313: error: (-213:The function/feature is not implemented) Backend (plugin) is not available: 'openvino' in function 'createPluginDNNNetworkBackend'"><pre class="notranslate">$ python opencv_app.py Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/home/user0/Downloads/model_files/opencv_app.py<span class="pl-pds">"</span></span>, line 19, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> net = cv2.dnn.readNetFromModelOptimizer(bin = model_bin, xml = config_xml) cv2.error: OpenCV(4.7.0) /io/opencv/modules/dnn/src/plugin_wrapper.impl.hpp:313: error: (-213:The function/feature is not implemented) Backend (plugin) is not available: <span class="pl-s"><span class="pl-pds">'</span>openvino<span class="pl-pds">'</span></span> <span class="pl-k">in</span> <span class="pl-k">function</span> <span class="pl-en">'createPluginDNNNetworkBackend'</span></pre></div> <p dir="auto">Reviewing <a href="https://github.com/opencv/opencv/wiki/ChangeLog#version470">change log</a>, I see OpenCV 4.6.0 has <em>initial</em> support of OpenVINO 2022.<em>1</em>, which is one version older than I am using. Can the behavior I am experiencing be caused by the fact that OpenVINO 2022.<em>2</em> is not explicitly supported by OpenCV yet?</p> <p dir="auto">P.S. Another short set of instructions I tried following <a href="https://github.com/opencv/opencv/wiki/Intel-OpenVINO-backend#linux">from here</a> with</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ echo $ngraph_DIR /home/user0/intel/openvino_2022.2.0/runtime/cmake"><pre class="notranslate">$ <span class="pl-c1">echo</span> <span class="pl-smi">$ngraph_DIR</span> /home/user0/intel/openvino_2022.2.0/runtime/cmake</pre></div> <p dir="auto">(OpenVINO changed the folder structure not long ago so "deployment_tools" folder does not exist anymore) but Intel Inference Engine still not appearing in <code class="notranslate">cv2.getBuildInformation()</code></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">opencv_app.py:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import cv2 model_bin = '/home/user0/Downloads/model/FP16/ssd_mobilenet_v1_coco.bin' config_xml = '/home/user0/Downloads/model/FP16/ssd_mobilenet_v1_coco.xml' net = cv2.dnn.readNetFromModelOptimizer(bin = model_bin, xml = config_xml) net.setPreferableBackend(cv2.dnn.DNN_BACKEND_INFERENCE_ENGINE) net.setPreferableTarget(cv2.dnn.DNN_TARGET_MYRIAD)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">cv2</span> <span class="pl-s1">model_bin</span> <span class="pl-c1">=</span> <span class="pl-s">'/home/user0/Downloads/model/FP16/ssd_mobilenet_v1_coco.bin'</span> <span class="pl-s1">config_xml</span> <span class="pl-c1">=</span> <span class="pl-s">'/home/user0/Downloads/model/FP16/ssd_mobilenet_v1_coco.xml'</span> <span class="pl-s1">net</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-s1">dnn</span>.<span class="pl-en">readNetFromModelOptimizer</span>(<span class="pl-s1">bin</span> <span class="pl-c1">=</span> <span class="pl-s1">model_bin</span>, <span class="pl-s1">xml</span> <span class="pl-c1">=</span> <span class="pl-s1">config_xml</span>) <span class="pl-s1">net</span>.<span class="pl-en">setPreferableBackend</span>(<span class="pl-s1">cv2</span>.<span class="pl-s1">dnn</span>.<span class="pl-v">DNN_BACKEND_INFERENCE_ENGINE</span>) <span class="pl-s1">net</span>.<span class="pl-en">setPreferableTarget</span>(<span class="pl-s1">cv2</span>.<span class="pl-s1">dnn</span>.<span class="pl-v">DNN_TARGET_MYRIAD</span>)</pre></div> <p dir="auto">The .bin and .xml files are here: <a href="https://github.com/opencv/opencv/files/11558718/ssd_mobilenet_v1_coco.zip">ssd_mobilenet_v1_coco.zip</a>. This <a href="https://docs.openvino.ai/latest/omz_models_model_ssd_mobilenet_v1_coco.html" rel="nofollow">model</a> is distributed by OpenVINO. I used the OpenVINO tool <code class="notranslate">omz_downloader</code> to download original TensorFlow model files and <code class="notranslate">omz_converter</code> to convert it to the IR format (.bin &amp; .xml).<br> Error:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ python opencv_app.py Traceback (most recent call last): File &quot;/home/user0/Downloads/model/opencv_app.py&quot;, line 19, in &lt;module&gt; net = cv2.dnn.readNetFromModelOptimizer(bin = model_bin, xml = config_xml) cv2.error: OpenCV(4.7.0) /io/opencv/modules/dnn/src/plugin_wrapper.impl.hpp:313: error: (-213:The function/feature is not implemented) Backend (plugin) is not available: 'openvino' in function 'createPluginDNNNetworkBackend'"><pre class="notranslate">$ python opencv_app.py Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/home/user0/Downloads/model/opencv_app.py<span class="pl-pds">"</span></span>, line 19, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> net = cv2.dnn.readNetFromModelOptimizer(bin = model_bin, xml = config_xml) cv2.error: OpenCV(4.7.0) /io/opencv/modules/dnn/src/plugin_wrapper.impl.hpp:313: error: (-213:The function/feature is not implemented) Backend (plugin) is not available: <span class="pl-s"><span class="pl-pds">'</span>openvino<span class="pl-pds">'</span></span> <span class="pl-k">in</span> <span class="pl-k">function</span> <span class="pl-en">'createPluginDNNNetworkBackend'</span></pre></div> <h3 dir="auto">Issue submission checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to the latest OpenCV version and the issue is still there</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files (videos, images, onnx, etc)</li> </ul>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.3-openvino</li> <li>Operating System / Platform =&gt; Linux Ubuntu 16.04</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Hello, I'm using Intel Up-Board Squared to develop a programm which needs to compress video by using INTEL_MFX apiPreference to speed up the process.<br> I've compiled OpenCV with Intel Media SDK backend, and the compiler didn't give any errors to my code.<br> <code class="notranslate">int fourcc = cv::VideoWriter::fourcc('H','2','6','4');</code><br> <code class="notranslate">cv::VideoWriter writer("filename.mp4", cv::INTEL_MFX, fourcc, 30, cv::Size(1280,720), true);</code><br> What interesting is, when I run the code, it will show a line with <code class="notranslate">MFX: unsupported extension: /dev/video0</code>, but the video could be written in a new file.<br> The video file which was written is very large. A video about 30 seconds can be 70 MB large. I think that the video has been written without compressing with H264.</p> <p dir="auto">I also installed Intel Quick Sync Video for ffmpeg.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="up-board@upboard-UP-APL01:~$ ffmpeg -codecs | grep 'qsv'ffmpeg version n3.4-dev-2711-g587fada Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609 configuration: --enable-libmfx libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m h264_qsv h264_vdpau h264_cuvid ) (encoders: h264_nvenc h264_qsv h264_v4l2m2m h264_vaapi nvenc nvenc_h264 ) DEV.L. hevc H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv hevc_cuvid ) (encoders: nvenc_hevc hevc_nvenc hevc_qsv hevc_vaapi ) DEV.L. mpeg2video MPEG-2 video (decoders: mpeg2video mpegvideo mpegvideo_vdpau mpeg2_v4l2m2m mpeg2_qsv mpeg2_cuvid ) (encoders: mpeg2video mpeg2_qsv mpeg2_vaapi ) D.V.L. vc1 SMPTE VC-1 (decoders: vc1 vc1_vdpau vc1_qsv vc1_v4l2m2m vc1_cuvid ) DEV.L. vp8 On2 VP8 (decoders: vp8 vp8_v4l2m2m vp8_cuvid vp8_qsv ) (encoders: vp8_v4l2m2m vp8_vaapi )"><pre class="notranslate">up-board@upboard-UP-APL01:<span class="pl-k">~</span>$ ffmpeg -codecs <span class="pl-k">|</span> grep <span class="pl-s"><span class="pl-pds">'</span>qsv<span class="pl-pds">'</span></span>ffmpeg version n3.4-dev-2711-g587fada Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609 configuration: --enable-libmfx libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m h264_qsv h264_vdpau h264_cuvid ) (encoders: h264_nvenc h264_qsv h264_v4l2m2m h264_vaapi nvenc nvenc_h264 ) DEV.L. hevc H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv hevc_cuvid ) (encoders: nvenc_hevc hevc_nvenc hevc_qsv hevc_vaapi ) DEV.L. mpeg2video MPEG-2 video (decoders: mpeg2video mpegvideo mpegvideo_vdpau mpeg2_v4l2m2m mpeg2_qsv mpeg2_cuvid ) (encoders: mpeg2video mpeg2_qsv mpeg2_vaapi ) D.V.L. vc1 SMPTE VC-1 (decoders: vc1 vc1_vdpau vc1_qsv vc1_v4l2m2m vc1_cuvid ) DEV.L. vp8 On2 VP8 (decoders: vp8 vp8_v4l2m2m vp8_cuvid vp8_qsv ) (encoders: vp8_v4l2m2m vp8_vaapi )</pre></div> <p dir="auto">I think that it's correctly installed.<br> Is there anyone who has experience with Media SDK backend for OpenCV? Hope someone can help me.</p> <p dir="auto">Greetings,<br> Yiyun</p> <p dir="auto">Xref: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384875946" data-permission-text="Title is private" data-url="https://github.com/Intel-Media-SDK/MediaSDK/issues/944" data-hovercard-type="issue" data-hovercard-url="/Intel-Media-SDK/MediaSDK/issues/944/hovercard" href="https://github.com/Intel-Media-SDK/MediaSDK/issues/944">Intel-Media-SDK/MediaSDK#944</a></p>
0
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from collections import OrderedDict import random import pandas as pd pd.__version__"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">collections</span> <span class="pl-k">import</span> <span class="pl-v">OrderedDict</span> <span class="pl-k">import</span> <span class="pl-s1">random</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-s1">pd</span>.<span class="pl-s1">__version__</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'0.20.3'"><pre class="notranslate"><code class="notranslate">'0.20.3' </code></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df = pd.DataFrame.from_dict(OrderedDict( [ ((lv1, lv2, lv3), {'KG': random.randint(0, 100)}) for lv1 in ['A', 'B'] for lv2 in ['M', 'N', 'O'] for lv3 in ['X', 'Y', 'Z'] ] )) df "><pre class="notranslate"><span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>.<span class="pl-en">from_dict</span>(<span class="pl-v">OrderedDict</span>( [ ((<span class="pl-s1">lv1</span>, <span class="pl-s1">lv2</span>, <span class="pl-s1">lv3</span>), {<span class="pl-s">'KG'</span>: <span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>, <span class="pl-c1">100</span>)}) <span class="pl-k">for</span> <span class="pl-s1">lv1</span> <span class="pl-c1">in</span> [<span class="pl-s">'A'</span>, <span class="pl-s">'B'</span>] <span class="pl-k">for</span> <span class="pl-s1">lv2</span> <span class="pl-c1">in</span> [<span class="pl-s">'M'</span>, <span class="pl-s">'N'</span>, <span class="pl-s">'O'</span>] <span class="pl-k">for</span> <span class="pl-s1">lv3</span> <span class="pl-c1">in</span> [<span class="pl-s">'X'</span>, <span class="pl-s">'Y'</span>, <span class="pl-s">'Z'</span>] ] )) <span class="pl-s1">df</span> </pre></div> <div dir="auto"> <table border="1" role="table"> <thead> <tr> <th></th> <th colspan="9">A</th> <th colspan="9">B</th> </tr> <tr> <th></th> <th colspan="3">M</th> <th colspan="3">N</th> <th colspan="3">O</th> <th colspan="3">M</th> <th colspan="3">N</th> <th colspan="3">O</th> </tr> <tr> <th></th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> </tr> </thead> <tbody> <tr> <th>KG</th> <td>16</td> <td>71</td> <td>27</td> <td>8</td> <td>83</td> <td>0</td> <td>100</td> <td>72</td> <td>100</td> <td>42</td> <td>26</td> <td>21</td> <td>91</td> <td>5</td> <td>36</td> <td>98</td> <td>96</td> <td>52</td> </tr> </tbody> </table> </div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df.loc[:, idx[:, :, 'X']]"><pre class="notranslate"><span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[:, <span class="pl-s1">idx</span>[:, :, <span class="pl-s">'X'</span>]]</pre></div> <div dir="auto"> <table border="1" role="table"> <thead> <tr> <th></th> <th colspan="3">A</th> <th colspan="3">B</th> </tr> <tr> <th></th> <th>M</th> <th>N</th> <th>O</th> <th>M</th> <th>N</th> <th>O</th> </tr> <tr> <th></th> <th>X</th> <th>X</th> <th>X</th> <th>X</th> <th>X</th> <th>X</th> </tr> </thead> <tbody> <tr> <th>KG</th> <td>44</td> <td>83</td> <td>-28</td> <td>5</td> <td>-31</td> <td>44</td> </tr> </tbody> </table> </div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df.xs('Y', level=2, axis=1) - df.xs('Z', level=2, axis=1)"><pre class="notranslate"><span class="pl-s1">df</span>.<span class="pl-en">xs</span>(<span class="pl-s">'Y'</span>, <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c1">-</span> <span class="pl-s1">df</span>.<span class="pl-en">xs</span>(<span class="pl-s">'Z'</span>, <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)</pre></div> <div dir="auto"> <table border="1" role="table"> <thead> <tr> <th></th> <th colspan="3">A</th> <th colspan="3">B</th> </tr> <tr> <th></th> <th>M</th> <th>N</th> <th>O</th> <th>M</th> <th>N</th> <th>O</th> </tr> </thead> <tbody> <tr> <th>KG</th> <td>44</td> <td>83</td> <td>-28</td> <td>5</td> <td>-31</td> <td>44</td> </tr> </tbody> </table> </div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="idx = pd.IndexSlice df.loc[:, idx[:, :, 'X']] = (df.xs('Y', level=2, axis=1) - df.xs('Z', level=2, axis=1)) df"><pre class="notranslate"><span class="pl-s1">idx</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">IndexSlice</span> <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[:, <span class="pl-s1">idx</span>[:, :, <span class="pl-s">'X'</span>]] <span class="pl-c1">=</span> (<span class="pl-s1">df</span>.<span class="pl-en">xs</span>(<span class="pl-s">'Y'</span>, <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c1">-</span> <span class="pl-s1">df</span>.<span class="pl-en">xs</span>(<span class="pl-s">'Z'</span>, <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)) <span class="pl-s1">df</span></pre></div> <div dir="auto"> <table border="1" role="table"> <thead> <tr> <th></th> <th colspan="9">A</th> <th colspan="9">B</th> </tr> <tr> <th></th> <th colspan="3">M</th> <th colspan="3">N</th> <th colspan="3">O</th> <th colspan="3">M</th> <th colspan="3">N</th> <th colspan="3">O</th> </tr> <tr> <th></th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> </tr> </thead> <tbody> <tr> <th>KG</th> <td>NaN</td> <td>71</td> <td>27</td> <td>NaN</td> <td>83</td> <td>0</td> <td>NaN</td> <td>72</td> <td>100</td> <td>NaN</td> <td>26</td> <td>21</td> <td>NaN</td> <td>5</td> <td>36</td> <td>NaN</td> <td>96</td> <td>52</td> </tr> </tbody> </table> </div> <p dir="auto">This was unexpected. I realize that the indexes do not match, and hence this behavior, but I expect Pandas to throw an Exception, rather than silently do this</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="idx = pd.IndexSlice df.loc[:, idx[:, :, 'X']] = (df.xs('Y', level=2, axis=1) - df.xs('Z', level=2, axis=1)).values df"><pre class="notranslate"><span class="pl-s1">idx</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">IndexSlice</span> <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[:, <span class="pl-s1">idx</span>[:, :, <span class="pl-s">'X'</span>]] <span class="pl-c1">=</span> (<span class="pl-s1">df</span>.<span class="pl-en">xs</span>(<span class="pl-s">'Y'</span>, <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c1">-</span> <span class="pl-s1">df</span>.<span class="pl-en">xs</span>(<span class="pl-s">'Z'</span>, <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)).<span class="pl-s1">values</span> <span class="pl-s1">df</span></pre></div> <div dir="auto"> <table border="1" role="table"> <thead> <tr> <th></th> <th colspan="9">A</th> <th colspan="9">B</th> </tr> <tr> <th></th> <th colspan="3">M</th> <th colspan="3">N</th> <th colspan="3">O</th> <th colspan="3">M</th> <th colspan="3">N</th> <th colspan="3">O</th> </tr> <tr> <th></th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> <th>X</th> <th>Y</th> <th>Z</th> </tr> </thead> <tbody> <tr> <th>KG</th> <td>44</td> <td>71</td> <td>27</td> <td>83</td> <td>83</td> <td>0</td> <td>-28</td> <td>72</td> <td>100</td> <td>5</td> <td>26</td> <td>21</td> <td>-31</td> <td>5</td> <td>36</td> <td>44</td> <td>96</td> <td>52</td> </tr> </tbody> </table> </div> <p dir="auto">This was, of course, the behavior I was expecting</p>
<p dir="auto">Best shown with an example.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np, pandas as pd timestamps = map(pd.Timestamp, ['2014-01-01', '2014-02-01']) categories = ['A', 'B', 'C', 'D'] df = pd.DataFrame(index=pd.MultiIndex.from_product([timestamps, categories], names=['ts', 'cat']), columns=['Col1', 'Col2']) &gt;&gt;&gt; df Col1 Col2 ts cat 2014-01-01 A NaN NaN B NaN NaN C NaN NaN D NaN NaN 2014-02-01 A NaN NaN B NaN NaN C NaN NaN D NaN NaN"><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">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">timestamps</span> <span class="pl-c1">=</span> <span class="pl-en">map</span>(<span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>, [<span class="pl-s">'2014-01-01'</span>, <span class="pl-s">'2014-02-01'</span>]) <span class="pl-s1">categories</span> <span class="pl-c1">=</span> [<span class="pl-s">'A'</span>, <span class="pl-s">'B'</span>, <span class="pl-s">'C'</span>, <span class="pl-s">'D'</span>] <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">MultiIndex</span>.<span class="pl-en">from_product</span>([<span class="pl-s1">timestamps</span>, <span class="pl-s1">categories</span>], <span class="pl-s1">names</span><span class="pl-c1">=</span>[<span class="pl-s">'ts'</span>, <span class="pl-s">'cat'</span>]), <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'Col1'</span>, <span class="pl-s">'Col2'</span>]) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span> <span class="pl-v">Col1</span> <span class="pl-v">Col2</span> <span class="pl-s1">ts</span> <span class="pl-s1">cat</span> <span class="pl-c1">2014</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">A</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">B</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">C</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">D</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-c1">2014</span><span class="pl-c1">-</span><span class="pl-c1">02</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">A</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">B</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">C</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">D</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span></pre></div> <p dir="auto">I want to set the values for all categories in a single month. These examples work just fine.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df.loc['2014-01-01', 'Col1'] = 5 df.loc['2014-01-01', 'Col2'] = [1,2,3,4] &gt;&gt;&gt; df Col1 Col2 ts cat 2014-01-01 A 5 1 B 5 2 C 5 3 D 5 4 2014-02-01 A NaN NaN B NaN NaN C NaN NaN D NaN NaN"><pre class="notranslate"><span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-s">'2014-01-01'</span>, <span class="pl-s">'Col1'</span>] <span class="pl-c1">=</span> <span class="pl-c1">5</span> <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-s">'2014-01-01'</span>, <span class="pl-s">'Col2'</span>] <span class="pl-c1">=</span> [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>] <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span> <span class="pl-v">Col1</span> <span class="pl-v">Col2</span> <span class="pl-s1">ts</span> <span class="pl-s1">cat</span> <span class="pl-c1">2014</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">A</span> <span class="pl-c1">5</span> <span class="pl-c1">1</span> <span class="pl-v">B</span> <span class="pl-c1">5</span> <span class="pl-c1">2</span> <span class="pl-v">C</span> <span class="pl-c1">5</span> <span class="pl-c1">3</span> <span class="pl-v">D</span> <span class="pl-c1">5</span> <span class="pl-c1">4</span> <span class="pl-c1">2014</span><span class="pl-c1">-</span><span class="pl-c1">02</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">A</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">B</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">C</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">D</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span></pre></div> <p dir="auto">These examples don't work.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df.loc['2014-01-01', 'Col1'] += 1 df.loc['2014-02-01', 'Col2'] = df.loc['2014-01-01', 'Col2'] &gt;&gt;&gt; df Col1 Col2 ts cat 2014-01-01 A NaN 1 B NaN 2 C NaN 3 D NaN 4 2014-02-01 A NaN NaN B NaN NaN C NaN NaN D NaN NaN"><pre class="notranslate"><span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-s">'2014-01-01'</span>, <span class="pl-s">'Col1'</span>] <span class="pl-c1">+=</span> <span class="pl-c1">1</span> <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-s">'2014-02-01'</span>, <span class="pl-s">'Col2'</span>] <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-s">'2014-01-01'</span>, <span class="pl-s">'Col2'</span>] <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span> <span class="pl-v">Col1</span> <span class="pl-v">Col2</span> <span class="pl-s1">ts</span> <span class="pl-s1">cat</span> <span class="pl-c1">2014</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">A</span> <span class="pl-v">NaN</span> <span class="pl-c1">1</span> <span class="pl-v">B</span> <span class="pl-v">NaN</span> <span class="pl-c1">2</span> <span class="pl-v">C</span> <span class="pl-v">NaN</span> <span class="pl-c1">3</span> <span class="pl-v">D</span> <span class="pl-v">NaN</span> <span class="pl-c1">4</span> <span class="pl-c1">2014</span><span class="pl-c1">-</span><span class="pl-c1">02</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">A</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">B</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">C</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">D</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span></pre></div> <p dir="auto">It doesn't seem to be a "setting a value on a copy" issue. Instead, Pandas is writing the NaNs.</p> <p dir="auto">My current workaround is to unstack each column into a DataFrame with simple indexes. This works, but I have lots of columns to work with. One dataframe is much easier to work with than a pile of dataframes.</p> <p dir="auto">The computations for each month depend on the values computed in the previous month, hence why it can't be done fully vectorized on an entire column.</p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.198.0<br> <strong>System</strong>: Microsoft Windows 8.1<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Tony's\AppData\Local\atom\app-0.198.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 4x -2:27.9.0 core:undo (atom-text-editor.editor.is-focused) -1:26.9.0 core:move-down (atom-text-editor.editor.is-focused) -1:22.6.0 core:backspace (atom-text-editor.editor.is-focused) 10x -1:21.8.0 core:move-left (atom-text-editor.editor.is-focused) -1:19.2.0 editor:newline (atom-text-editor.editor.is-focused) 9x -1:18.6.0 core:move-right (atom-text-editor.editor.is-focused) -1:17.4.0 core:move-left (atom-text-editor.editor.is-focused) -1:16.8.0 core:backspace (atom-text-editor.editor.is-focused) -1:16.5.0 editor:newline (atom-text-editor.editor.is-focused) -1:16 core:move-up (atom-text-editor.editor.is-focused) 6x -1:15.1.0 core:select-right (atom-text-editor.editor.is-focused) 2x -1:12.9.0 core:backspace (atom-text-editor.editor.is-focused) -1:10.7.0 core:move-down (atom-text-editor.editor.is-focused) 3x -1:10.4.0 core:select-up (atom-text-editor.editor.is-focused) -1:09.0 core:cut (atom-text-editor.editor.is-focused) -1:07.8.0 core:save (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> 4x -2:27.9.0 core:undo (atom-text-editor.editor.is-focused) -1:26.9.0 core:move-down (atom-text-editor.editor.is-focused) -1:22.6.0 core:backspace (atom-text-editor.editor.is-focused) 10x -1:21.8.0 core:move-left (atom-text-editor.editor.is-focused) -1:19.2.0 editor:newline (atom-text-editor.editor.is-focused) 9x -1:18.6.0 core:move-right (atom-text-editor.editor.is-focused) -1:17.4.0 core:move-left (atom-text-editor.editor.is-focused) -1:16.8.0 core:backspace (atom-text-editor.editor.is-focused) -1:16.5.0 editor:newline (atom-text-editor.editor.is-focused) -1:16 core:move-up (atom-text-editor.editor.is-focused) 6x -1:15.1.0 core:select-right (atom-text-editor.editor.is-focused) 2x -1:12.9.0 core:backspace (atom-text-editor.editor.is-focused) -1:10.7.0 core:move-down (atom-text-editor.editor.is-focused) 3x -1:10.4.0 core:select-up (atom-text-editor.editor.is-focused) -1:09.0 core:cut (atom-text-editor.editor.is-focused) -1:07.8.0 core:save (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;base16-tomorrow-dark-theme&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;showIndentGuide&quot;: true, &quot;fontSize&quot;: 13 } }"><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>base16-tomorrow-dark-theme<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">13</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 autocomplete-php, v0.3.4 remote-sync, v2.4.1 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autocomplete<span class="pl-k">-</span>php, v0.<span class="pl-ii">3</span>.<span class="pl-ii">4</span> remote<span class="pl-k">-</span>sync, v2.<span class="pl-ii">4</span>.<span class="pl-ii">1</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>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;node_modules&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ], &quot;disabledPackages&quot;: [ &quot;Tern&quot; ], &quot;projectHome&quot;: &quot;Y:\\app-tfoumax&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></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>seti-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</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 autocomplete-plus, v2.12.0 autocomplete-snippets, v1.2.0 javascript-snippets, v1.0.0 jshint, v1.3.5 language-ejs, v0.1.0 linter, v0.12.1 pretty-json, v0.3.3 save-session, v0.14.0 Search, v0.4.0 seti-syntax, v0.4.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</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
<p dir="auto">Hey folks,</p> <p dir="auto">In the Waypoint: Use Clockwise Notation to Specify the Margin of an Element challenge, it is asked to fulfill the following:</p> <p dir="auto">Your green-box class should give the left of elements 40px of margin.<br> Your green-box class should give the bottom of elements 20px of margin.<br> Your green-box class should give the top of elements 20px of margin.<br> Your green-box class should give the right of elements 20px of margin.</p> <p dir="auto">However, the third one (top of elements), only was checked as "accepted" when I entered the value of 40px instead of 20px. Could you please verify?</p>
<p dir="auto">In the instructions for the margin, you have the pixel setting for "Top" to 20px instead of 40px.</p>
1
<p dir="auto">Simplest sample program:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from flask import Flask app = Flask(&quot;TestApp&quot;) @app.route(&quot;/&quot;) def test(): return &quot;Hello World!&quot; app.run(host=&quot;0.0.0.0&quot;, port=5001, ssl_context=&quot;adhoc&quot;)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s">"TestApp"</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">"/"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">test</span>(): <span class="pl-k">return</span> <span class="pl-s">"Hello World!"</span> <span class="pl-s1">app</span>.<span class="pl-en">run</span>(<span class="pl-s1">host</span><span class="pl-c1">=</span><span class="pl-s">"0.0.0.0"</span>, <span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-c1">5001</span>, <span class="pl-s1">ssl_context</span><span class="pl-c1">=</span><span class="pl-s">"adhoc"</span>)</pre></div> <p dir="auto">Test the web server through a browser: https://ip_address:5001/<br> The result is: <code class="notranslate">Hello World!</code>.</p> <p dir="auto">Run <code class="notranslate">telnet ip_address 5001</code> (do not add chars as it expects an SSL/TLS session)<br> Test the web server through a browser: https://ip_address:5001/</p> <p dir="auto">The browser request hangs until the telnet is killed.</p> <p dir="auto">If you use <code class="notranslate">app.run(host="0.0.0.0", port=5001, ssl_context="adhoc", threaded=True)</code> the result is the same: each request is decoded before spawning the thread.</p> <p dir="auto">Simplest example:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import time from flask import Flask app = Flask(&quot;TestApp&quot;) @app.route(&quot;/0&quot;) def test_0(): time.sleep(10) return &quot;Hello World-0!&quot; @app.route(&quot;/1&quot;) def test_1(): time.sleep(10) return &quot;Hello World-1!&quot; @app.route(&quot;/2&quot;) def test_2(): time.sleep(10) return &quot;Hello World-2!&quot; app.run(host=&quot;0.0.0.0&quot;, port=5001, ssl_context=&quot;adhoc&quot;, threaded=True)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">time</span> <span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s">"TestApp"</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">"/0"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">test_0</span>(): <span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">10</span>) <span class="pl-k">return</span> <span class="pl-s">"Hello World-0!"</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">"/1"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">test_1</span>(): <span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">10</span>) <span class="pl-k">return</span> <span class="pl-s">"Hello World-1!"</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">"/2"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">test_2</span>(): <span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">10</span>) <span class="pl-k">return</span> <span class="pl-s">"Hello World-2!"</span> <span class="pl-s1">app</span>.<span class="pl-en">run</span>(<span class="pl-s1">host</span><span class="pl-c1">=</span><span class="pl-s">"0.0.0.0"</span>, <span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-c1">5001</span>, <span class="pl-s1">ssl_context</span><span class="pl-c1">=</span><span class="pl-s">"adhoc"</span>, <span class="pl-s1">threaded</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div> <p dir="auto">Run <code class="notranslate">telnet ip_address 5001</code><br> Test the web server through a browser on different tabs using different routes to enable multithreading:</p> <ul dir="auto"> <li>https://ip_address:5001/0</li> <li>https://ip_address:5001/1</li> <li>https://ip_address:5001/2</li> </ul> <p dir="auto">All requests hang until the telnet is killed.</p> <p dir="auto">It looks like when using <code class="notranslate">ssl_context</code> each request is strictly decoded in sequence.</p> <p dir="auto">Environment:</p> <ul dir="auto"> <li>Python version: 3.10</li> <li>Flask version: 2.2.2</li> </ul> <p dir="auto">It is also a security issue. The attack client for an <em>ssl_context</em> based web app is:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from telnetlib import Telnet hostname = '...' port = 5001 while True: with Telnet(hostname, port) as tn: tn.read_some()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">telnetlib</span> <span class="pl-k">import</span> <span class="pl-v">Telnet</span> <span class="pl-s1">hostname</span> <span class="pl-c1">=</span> <span class="pl-s">'...'</span> <span class="pl-s1">port</span> <span class="pl-c1">=</span> <span class="pl-c1">5001</span> <span class="pl-k">while</span> <span class="pl-c1">True</span>: <span class="pl-k">with</span> <span class="pl-v">Telnet</span>(<span class="pl-s1">hostname</span>, <span class="pl-s1">port</span>) <span class="pl-k">as</span> <span class="pl-s1">tn</span>: <span class="pl-s1">tn</span>.<span class="pl-en">read_some</span>()</pre></div> <p dir="auto">As a temporary workaround, this can be added at the beginning of the Flask program:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import socket socket.setdefaulttimeout(5) # seconds"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">socket</span> <span class="pl-s1">socket</span>.<span class="pl-en">setdefaulttimeout</span>(<span class="pl-c1">5</span>) <span class="pl-c"># seconds</span></pre></div> <p dir="auto">Notice that this program works while <code class="notranslate">telnet ip_address 5000</code> runs, because <code class="notranslate">ssl_context</code> is not used:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import time from flask import Flask app = Flask(&quot;TestApp&quot;) @app.route(&quot;/0&quot;) def test_0(): time.sleep(10) return &quot;Hello World-0!&quot; @app.route(&quot;/1&quot;) def test_1(): time.sleep(10) return &quot;Hello World-1!&quot; @app.route(&quot;/2&quot;) def test_2(): time.sleep(10) return &quot;Hello World-2!&quot; app.run(host=&quot;0.0.0.0&quot;, port=5000, threaded=True)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">time</span> <span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s">"TestApp"</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">"/0"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">test_0</span>(): <span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">10</span>) <span class="pl-k">return</span> <span class="pl-s">"Hello World-0!"</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">"/1"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">test_1</span>(): <span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">10</span>) <span class="pl-k">return</span> <span class="pl-s">"Hello World-1!"</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">"/2"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">test_2</span>(): <span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">10</span>) <span class="pl-k">return</span> <span class="pl-s">"Hello World-2!"</span> <span class="pl-s1">app</span>.<span class="pl-en">run</span>(<span class="pl-s1">host</span><span class="pl-c1">=</span><span class="pl-s">"0.0.0.0"</span>, <span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-c1">5000</span>, <span class="pl-s1">threaded</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<p dir="auto">It would be useful to be able to refer to <a href="http://flask.pocoo.org/docs/patterns/flashing/" rel="nofollow">flash categories</a> using constants, for example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FLASH_CATEGORY_MESSAGE = 'message' FLASH_CATEGORY_DEFAULT = FLASH_CATEGORY_MESSAGE"><pre class="notranslate"><code class="notranslate">FLASH_CATEGORY_MESSAGE = 'message' FLASH_CATEGORY_DEFAULT = FLASH_CATEGORY_MESSAGE </code></pre></div> <p dir="auto">This gives an overview of the <strong>already defined</strong> categories, and an obvious way to avoid duplicating these in every Flask application.</p>
0
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Implement single-instance mode as an option, so that multiple executions of <code class="notranslate">wt.exe</code> would add new tabs to already running instance of WT, instead of opening new windows.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">When I run <code class="notranslate">wt.exe</code> multiple times, I get a new Windows Terminal window every time. I do that quite often when navigating folders in Total Commander. I just type <code class="notranslate">wt</code> and expect the new tab to be opened with the directory I'm currently in in TC. Instead, I'd prefer to have a new tab in existing window.</p> <p dir="auto">Similarly, when running a shell (wsl.exe) inside Windows Terminal, if I type <code class="notranslate">wt.exe</code> I'd expect another tab to be opened. Currently nothing happens in this scenario (not even new WT window is opened).</p> <p dir="auto">I think, this could be managed with a single setting in <code class="notranslate">profile.json</code>:<br> <code class="notranslate">"mode": "single-window|multiple-window"</code> or sth similar.</p>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">When I work in the terminal (currently mainly CMDer/ConEmu) I like to keep one terminal going with multiple tabs.<br> When opening a new terminal window, my terminal does not create a new instance of the application but rather opens a new tab in the currently running instance.</p> <p dir="auto">Best approach would probably be to make it an option, I.E., not forcing the functionality on people, but rather have it toggle-able for people like me!</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Open a terminal while there is a terminal already running opens the running terminal application and creates a new terminal tab, alt. opens the terminal and allows the user to open a new tab manually.</p> <p dir="auto"><em>(Love the terminal, it's really neat!)</em></p>
1
<p dir="auto">I've noticed some odd behavior with the syntax colourisation for template strings in Visual Studio 2013 (using TypeScript 1.4 plugin). It occurs when the string "#/" is present within the template string <strong>after</strong> at least one placeholder is present. I realise reading that is as clear as mud so look at the screenshot below for clarification:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1010525/8357586/821c0ee4-1b53-11e5-9128-7f57eea1a952.png"><img src="https://cloud.githubusercontent.com/assets/1010525/8357586/821c0ee4-1b53-11e5-9128-7f57eea1a952.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">As you can see the first 2 examples colourise in the fashion you would hope. The 3rd example behaves in an unexpected fashion after the "#/". Here's the code you can use to reproduce it with:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class highlightingBug { demo() { var urlWithoutHash = `i_look_kind_of_normal_${&quot;I_think&quot;}`; var urlWithHash = `and_so_do_I_even_with_#/_in_place_${&quot;I_think&quot;}`; var urlWithHashAfterFirstPlaceHolder = `${&quot;But_me_&quot;}_well_things_look_a_little_odd_colour_wise_after_the_#/_${&quot;That_is_what_I_think_anyway&quot;}`; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">highlightingBug</span> <span class="pl-kos">{</span> <span class="pl-en">demo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">urlWithoutHash</span> <span class="pl-c1">=</span> <span class="pl-s">`i_look_kind_of_normal_<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s">"I_think"</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">urlWithHash</span> <span class="pl-c1">=</span> <span class="pl-s">`and_so_do_I_even_with_#/_in_place_<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s">"I_think"</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">urlWithHashAfterFirstPlaceHolder</span> <span class="pl-c1">=</span> <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s">"But_me_"</span><span class="pl-kos">}</span></span>_well_things_look_a_little_odd_colour_wise_after_the_#/_<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s">"That_is_what_I_think_anyway"</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">I'm playing with the new support for template strings in release-1.4 and seeing potential issues with syntax highlighting.</p> <p dir="auto">In a single-line template string it looks like the string is classified as a keyword.</p> <p dir="auto">In a multi-line template string like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var template = `/hello/ /world/`;"><pre class="notranslate"><code class="notranslate">var template = `/hello/ /world/`; </code></pre></div> <p dir="auto">It looks like the "/hello/" is classified as a keyword and the "/world/" as a regexp.</p> <p dir="auto">Sorry if this is just not implemented yet. I looked for an issue first but didn't see one.</p>
1
<p dir="auto">The client thread stuck when there have a "重复键违反唯一约束" exception.</p> <p dir="auto">version: shardingsphere-proxy 5.0.0</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import ( &quot;fmt&quot; &quot;gorm.io/driver/postgres&quot; &quot;gorm.io/gorm&quot; &quot;testing&quot; ) func TestShardingSphereTransactionRollback(t *testing.T) { dsn := &quot;host=127.0.0.1 user=sharding password=sharding dbname=sharding_db port=3307&quot; + &quot; sslmode=disable TimeZone=Asia/Shanghai client_encoding=UTF8&quot; db, err := gorm.Open(postgres.Open(dsn), &amp;gorm.Config{}) if err != nil { fmt.Println(err) return } db.Debug().Exec(&quot;insert into t_order(user_id,order_id,info) values(12,12,'9')&quot;) }"><pre class="notranslate"><code class="notranslate">import ( "fmt" "gorm.io/driver/postgres" "gorm.io/gorm" "testing" ) func TestShardingSphereTransactionRollback(t *testing.T) { dsn := "host=127.0.0.1 user=sharding password=sharding dbname=sharding_db port=3307" + " sslmode=disable TimeZone=Asia/Shanghai client_encoding=UTF8" db, err := gorm.Open(postgres.Open(dsn), &amp;gorm.Config{}) if err != nil { fmt.Println(err) return } db.Debug().Exec("insert into t_order(user_id,order_id,info) values(12,12,'9')") } </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13001038/141931696-72edbd57-2ad7-4213-93a8-de2f4ce30434.png"><img src="https://user-images.githubusercontent.com/13001038/141931696-72edbd57-2ad7-4213-93a8-de2f4ce30434.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/13001038/141777535-25c19d6b-6225-4beb-9e7e-a9d44104beca.png"><img src="https://user-images.githubusercontent.com/13001038/141777535-25c19d6b-6225-4beb-9e7e-a9d44104beca.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Thanks for using Atomikos! Evaluate <a href="http://www.atomikos.com/Main/ExtremeTransactions" rel="nofollow">http://www.atomikos.com/Main/ExtremeTransactions</a> for advanced features and professional support<br> or register at <a href="http://www.atomikos.com/Main/RegisterYourDownload" rel="nofollow">http://www.atomikos.com/Main/RegisterYourDownload</a> to disable this message and receive FREE tips &amp; advice<br> [INFO ] 2021-11-15 19:44:40.995 [main] o.a.s.p.i.i.AbstractBootstrapInitializer - Database name is <code class="notranslate">PostgreSQL</code>, version is <code class="notranslate">9.2.24</code><br> [INFO ] 2021-11-15 19:44:41.227 [main] o.a.s.p.frontend.ShardingSphereProxy - ShardingSphere-Proxy start success.<br> Thanks for using Atomikos! Evaluate <a href="http://www.atomikos.com/Main/ExtremeTransactions" rel="nofollow">http://www.atomikos.com/Main/ExtremeTransactions</a> for advanced features and professional support<br> or register at <a href="http://www.atomikos.com/Main/RegisterYourDownload" rel="nofollow">http://www.atomikos.com/Main/RegisterYourDownload</a> to disable this message and receive FREE tips &amp; advice<br> [INFO ] 2021-11-15 19:48:02.450 [main] o.a.s.p.i.i.AbstractBootstrapInitializer - Database name is <code class="notranslate">PostgreSQL</code>, version is <code class="notranslate">9.2.24</code><br> [INFO ] 2021-11-15 19:48:02.647 [main] o.a.s.p.frontend.ShardingSphereProxy - ShardingSphere-Proxy start success.<br> [ERROR] 2021-11-15 19:49:19.360 [Connection-2-ThreadExecutor] o.a.s.p.f.c.CommandExecutorTask - Exception occur:<br> org.postgresql.util.PSQLException: 错误: 重复键违反唯一约束"t_order_0_pkey"<br> 详细:键值"(order_id)=(12)" 已经存在<br> at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)<br> at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)<br> at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)<br> at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)<br> at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)<br> at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:307)<br> at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:293)<br> at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:270)<br> at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:266)<br> at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:1168)<br> at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:103)<br> at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)<br> at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.impl.ProxyStatementExecutorCallback.execute(ProxyStatementExecutorCallback.java:40)<br> at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:73)<br> at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:66)<br> at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:44)<br> at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:85)<br> at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:64)<br> at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.syncExecute(ExecutorEngine.java:101)<br> at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.serialExecute(ExecutorEngine.java:87)<br> at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.execute(ExecutorEngine.java:81)<br> at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutor.execute(JDBCExecutor.java:65)<br> at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.ProxyJDBCExecutor.execute(ProxyJDBCExecutor.java:66)<br> at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.useDriverToExecute(ProxySQLExecutor.java:170)<br> at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:127)<br> at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:116)<br> at org.apache.shardingsphere.proxy.backend.communication.ProxyLockEngine.doExecute(ProxyLockEngine.java:103)<br> at org.apache.shardingsphere.proxy.backend.communication.ProxyLockEngine.execute(ProxyLockEngine.java:81)<br> at org.apache.shardingsphere.proxy.backend.communication.DatabaseCommunicationEngine.execute(DatabaseCommunicationEngine.java:99)<br> at org.apache.shardingsphere.proxy.backend.text.data.impl.SchemaAssignedDatabaseBackendHandler.execute(SchemaAssignedDatabaseBackendHandler.java:55)<br> at org.apache.shardingsphere.proxy.frontend.postgresql.command.query.text.PostgreSQLComQueryExecutor.execute(PostgreSQLComQueryExecutor.java:63)<br> at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:93)<br> at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:71)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br> at java.lang.Thread.run(Thread.java:748)<br> Exception in thread "Connection-2-ThreadExecutor" java.lang.IllegalArgumentException: No enum constant org.apache.shardingsphere.db.protocol.postgresql.constant.PostgreSQLMessageSeverityLevel.错误<br> at java.lang.Enum.valueOf(Enum.java:238)<br> at org.apache.shardingsphere.db.protocol.postgresql.constant.PostgreSQLMessageSeverityLevel.valueOf(PostgreSQLMessageSeverityLevel.java:25)<br> at org.apache.shardingsphere.proxy.frontend.postgresql.err.PostgreSQLErrPacketFactory.createErrorResponsePacket(PostgreSQLErrPacketFactory.java:75)<br> at org.apache.shardingsphere.proxy.frontend.postgresql.err.PostgreSQLErrPacketFactory.newInstance(PostgreSQLErrPacketFactory.java:48)<br> at org.apache.shardingsphere.proxy.frontend.postgresql.command.PostgreSQLCommandExecuteEngine.getErrorPacket(PostgreSQLCommandExecuteEngine.java:72)<br> at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.processException(CommandExecutorTask.java:108)<br> at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:75)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br> at java.lang.Thread.run(Thread.java:748)</p>
<p dir="auto">When I using Mybatis-plus PaginationInterceptor plugin, shardingsphere does not work, something wrong has happend. Track it down and find an error at here:<br> org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private int getValue(final PaginationValueSegment paginationValueSegment, final List&lt;Object&gt; parameters) { return paginationValueSegment instanceof ParameterMarkerPaginationValueSegment ? (int) parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex()) : ((NumberLiteralPaginationValueSegment) paginationValueSegment).getValue(); }"><pre class="notranslate"><code class="notranslate">private int getValue(final PaginationValueSegment paginationValueSegment, final List&lt;Object&gt; parameters) { return paginationValueSegment instanceof ParameterMarkerPaginationValueSegment ? (int) parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex()) : ((NumberLiteralPaginationValueSegment) paginationValueSegment).getValue(); } </code></pre></div> <p dir="auto">The Long type parameters of Pagination, such as Long total, Long pageNum, Long pageSize. and then throw an exception at "(int) parameters.get(((ParameterMarkerPaginationValueSegment) ".<br> Can someone help with that?</p>
0
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/responsively-style-radio-buttons" rel="nofollow">Responsively Style Radio Buttons</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;link href=&quot;https://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; h2 { font-family: Lobster, Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } &lt;/style&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-8&quot;&gt; &lt;h2 class=&quot;text-primary text-center&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-4&quot;&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;img-responsive thick-green-border&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot; alt=&quot;A cute orange cat lying on its back. &quot;&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;img src=&quot;https://bit.ly/fcc-running-cats&quot; class=&quot;img-responsive&quot; alt=&quot;Three kittens running towards the camera. &quot;&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-4&quot;&gt; &lt;button class=&quot;btn btn-block btn-primary&quot;&gt;&lt;i class=&quot;fa fa-thumbs-up&quot;&gt;&lt;/i&gt; Like&lt;/button&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-4&quot;&gt; &lt;button class=&quot;btn btn-block btn-info&quot;&gt;&lt;i class=&quot;fa fa-info-circle&quot;&gt;&lt;/i&gt; Info&lt;/button&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-4&quot;&gt; &lt;button class=&quot;btn btn-block btn-danger&quot;&gt;&lt;i class=&quot;fa fa-trash&quot;&gt;&lt;/i&gt; Delete&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Things cats &lt;span class=&quot;text-danger&quot;&gt;love:&lt;/span&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Indoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Outdoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Loving&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Lazy&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Crazy&lt;/label&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot; required&gt; &lt;button type=&quot;submit&quot;&gt;Submit&lt;/button&gt; &lt;/form&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">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">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-8</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">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-4</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">img-responsive thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back. </span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">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">img</span> <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-running-cats</span>" <span class="pl-c1">class</span>="<span class="pl-s">img-responsive</span>" <span class="pl-c1">alt</span>="<span class="pl-s">Three kittens running towards the camera. </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-4</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-block btn-primary</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-thumbs-up</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">i</span><span class="pl-kos">&gt;</span> Like<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-c1">class</span>="<span class="pl-s">col-xs-4</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-block btn-info</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-info-circle</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">i</span><span class="pl-kos">&gt;</span> Info<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-c1">class</span>="<span class="pl-s">col-xs-4</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-block btn-danger</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-trash</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">i</span><span class="pl-kos">&gt;</span> Delete<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">p</span><span class="pl-kos">&gt;</span>Things cats <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">text-danger</span>"<span class="pl-kos">&gt;</span>love:<span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">&gt;</span> Indoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">&gt;</span> Outdoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Loving<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Lazy<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Crazy<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">&gt;</span>Submit<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Forewarning, this <em>may</em> be bike-shedding worthy....</p> <h3 dir="auto">Workspace</h3> <p dir="auto">User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36</code>. (Chrome on Windows 7)</p> <h3 dir="auto">Setting</h3> <p dir="auto">The CatPhoto is where you make an web page and one component is adding three buttons like below.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199337/7156ec7e-f798-11e5-864c-49dd8c334c40.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199337/7156ec7e-f798-11e5-864c-49dd8c334c40.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Problem</h3> <p dir="auto">But then you will eventually make it into something like this below.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199333/641738c0-f798-11e5-9464-43c6de465704.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199333/641738c0-f798-11e5-9464-43c6de465704.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Notice that the red Delete button is squished and on the side (this is mostly a desktop problem; mobile user won't have the same issue -- see below)</p> <h4 dir="auto">Mobile Version</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199436/364c3a70-f799-11e5-98af-7dbe7da0fbb1.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199436/364c3a70-f799-11e5-98af-7dbe7da0fbb1.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Solution</h3> <p dir="auto">So I propose two things:</p> <ul dir="auto"> <li>Change the "Delete" button into a "Edit" button so it'll fit on the button better. <ul dir="auto"> <li>This is fairly easy. You'll just need to change this in the challenge seeds starting with the challenge <a href="https://www.freecodecamp.com/challenges/warn-your-users-of-a-dangerous-action" rel="nofollow">Warn your Users of a Dangerous Action</a> where the button is added.</li> <li>Then change the challenges up until the last one on <a href="https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap" rel="nofollow">Line up Form Elements Responsively with Bootstrap</a>.</li> <li>You could also change the icon if appropriate.</li> </ul> </li> <li>Add new challenge to add in making all three of those buttons also have the class <code class="notranslate">btn-sm</code> to make the text inside the button not seem all smushed. <ul dir="auto"> <li>This one will require a little more effort in making an entirely new challenge, which may be unnecessary.</li> </ul> </li> </ul> <p dir="auto">Example:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;button class=&quot;btn btn-block btn-info btn-sm&quot;&gt;&lt;i class=&quot;fa fa-info-circle&quot;&gt;&lt;/i&gt; Info&lt;/button&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-info btn-sm</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-info-circle</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">i</span><span class="pl-kos">&gt;</span> Info<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">If the proposed changes were made, the finished app will look like this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199509/e3e483d6-f799-11e5-8983-b02a50d68da7.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199509/e3e483d6-f799-11e5-8983-b02a50d68da7.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=rstoya05-aop" rel="nofollow">Rossen Stoyanchev</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9395?redirect=false" rel="nofollow">SPR-9395</a></strong> and commented</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.1</p> <p dir="auto">This issue is a backport sub-task of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118925" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14010" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14010/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14010">#14010</a></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="398118981" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14020" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14020/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14020">#14020</a> Backport "Reinstate check for a type-level <code class="notranslate">@RequestMapping</code> annotation to decide if a bean contains <code class="notranslate">@RequestMapping</code> methods" (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=rstoya05-aop" rel="nofollow">Rossen Stoyanchev</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9384?redirect=false" rel="nofollow">SPR-9384</a></strong> and commented</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.1</p> <p dir="auto">This issue is a backport sub-task of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118925" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14010" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14010/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14010">#14010</a></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="398119038" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14031" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14031/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14031">#14031</a> Backport "Reinstate check for a type-level <code class="notranslate">@RequestMapping</code> annotation to decide if a bean contains <code class="notranslate">@RequestMapping</code> methods" (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/2fa0e63e5ab84ac964c55a28000104d3855c886c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/2fa0e63e5ab84ac964c55a28000104d3855c886c"><tt>2fa0e63</tt></a></p>
1
<p dir="auto">In the <a href="http://getbootstrap.com/javascript/#carousel" rel="nofollow">Carousel documentation</a>, there is the following Usage example:</p> <h2 dir="auto">Usage</h2> <h3 dir="auto">Multiple carousels</h3> <p dir="auto">Carousels require the use of an <strong>id</strong> on the outermost container, <strong>.carousel</strong>, for carousel controls to function properly. When adding multiple carousels, or when changing a carousel's id, be sure to update the relevant controls.</p> <hr> <h4 dir="auto">Proposed Fix</h4> <p dir="auto">The places where it says <strong>id</strong> should be replaced with <strong>class</strong> or the <strong>.carousel</strong> should be an id selector instead.</p> <hr> <p dir="auto">There is also the following example that shows an active class on the first and only carousel item,</p> <h2 dir="auto">Examples</h2> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!-- Wrapper for slides --&gt; &lt;div class=&quot;carousel-inner&quot;&gt; &lt;div class=&quot;item active&quot;&gt; &lt;img src=&quot;...&quot; alt=&quot;...&quot;&gt; &lt;div class=&quot;carousel-caption&quot;&gt; ... &lt;/div&gt; &lt;/div&gt; ... &lt;/div&gt;"><pre class="notranslate"><span class="pl-c">&lt;!-- Wrapper for slides --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">carousel-inner</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">item active</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">...</span>" <span class="pl-c1">alt</span>="<span class="pl-s">...</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">carousel-caption</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">The problem with this is that if you duplicate the <code class="notranslate">div.item</code> element with the <code class="notranslate">active</code> class, having <code class="notranslate">active</code> on multiple items will break the carousel and prevent it from moving left or right.</p> <hr> <h4 dir="auto">Proposed Fix</h4> <p dir="auto">Change the example to</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!-- Wrapper for slides --&gt; &lt;div class=&quot;carousel-inner&quot;&gt; &lt;div class=&quot;item active&quot;&gt; &lt;!-- First visible carousel item --&gt; &lt;img src=&quot;...&quot; alt=&quot;...&quot;&gt; &lt;div class=&quot;carousel-caption&quot;&gt; ... &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;item&quot;&gt; &lt;img src=&quot;...&quot; alt=&quot;...&quot;&gt; &lt;div class=&quot;carousel-caption&quot;&gt; ... &lt;/div&gt; &lt;/div&gt; ... &lt;/div&gt;"><pre class="notranslate"><span class="pl-c">&lt;!-- Wrapper for slides --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">carousel-inner</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">item active</span>"<span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- First visible carousel item --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">...</span>" <span class="pl-c1">alt</span>="<span class="pl-s">...</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">carousel-caption</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">item</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">...</span>" <span class="pl-c1">alt</span>="<span class="pl-s">...</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">carousel-caption</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">I spent a good half-hour trying to fix an issue which was a direct action of using the example code provided.<br> <a href="http://getbootstrap.com/javascript/#carousel" rel="nofollow">http://getbootstrap.com/javascript/#carousel</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;!-- Wrapper for slides --&gt; &lt;div class=&quot;carousel-inner&quot;&gt; &lt;div class=&quot;item active&quot;&gt; &lt;img src=&quot;...&quot; alt=&quot;...&quot;&gt; &lt;div class=&quot;carousel-caption&quot;&gt; ... &lt;/div&gt; &lt;/div&gt; ... &lt;/div&gt;"><pre class="notranslate"><code class="notranslate"> &lt;!-- Wrapper for slides --&gt; &lt;div class="carousel-inner"&gt; &lt;div class="item active"&gt; &lt;img src="..." alt="..."&gt; &lt;div class="carousel-caption"&gt; ... &lt;/div&gt; &lt;/div&gt; ... &lt;/div&gt; </code></pre></div> <p dir="auto">It might just be my stupid mistake but I copied the item again <strong>with</strong> the <em>active</em> class, therefore the images were stacked and I thought the plugin was not working etc.</p> <p dir="auto">So the resolve might be to indicate <em>active</em> only needs to be on the first item.</p>
1
<p dir="auto">Not sure what's up here:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: static call to invalid vtable: VtableObject(VtableObject(object_ty=error::Error + 'static)) note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:182 stack backtrace: 1: 0x7f5538025ed0 - sys::backtrace::write::hf251c2373d8c39658Rt 2: 0x7f55380478b0 - failure::on_fail::h2ff2bf5f19ce9580S5z 3: 0x7f5537fb67b0 - rt::unwind::begin_unwind_inner::h639cf27e708a803eKKz 4: 0x7f5532da51e0 - rt::unwind::begin_unwind::h13718395300347571823 5: 0x7f5532da5a80 - diagnostic::Handler::bug::h605aae0a1c8b932cA1F 6: 0x7f55362f83c0 - session::Session::bug::h4be63562d7120fbbB6q 7: 0x7f5537016770 - trans::meth::trans_static_method_callee::hbb6577e2dd06bcddldz 8: 0x7f5537013560 - trans::callee::trans::h540a689ed7456efdAag 9: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 10: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 11: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 12: 0x7f5536fda540 - trans::controlflow::trans_block::h8b9dd08cca7ae2b7C3d 13: 0x7f55370a4530 - trans::base::trans_closure::ha8f0acc2eac303fay0t 14: 0x7f5536fc5b30 - trans::base::trans_fn::h78aae1b635a8d84cdbu 15: 0x7f5536fc60d0 - trans::monomorphize::monomorphic_fn::h54cdbc6aa90ad799Fpd 16: 0x7f5537017ca0 - trans::callee::trans_fn_ref_with_substs::h94b37b44eeb69e4bIxg 17: 0x7f5537016770 - trans::meth::trans_static_method_callee::hbb6577e2dd06bcddldz 18: 0x7f55370428e0 - trans::expr::trans_def_fn_unadjusted::h8078a7095bde75f7qfj 19: 0x7f553703a0c0 - trans::expr::trans_def::hde738785651c8ed4yIi 20: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 21: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 22: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 23: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 24: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 25: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 26: 0x7f55370df7e0 - trans::tvec::write_content::h8f5f7dafb5ea8658XHy 27: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 28: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 29: 0x7f55370c1b50 - trans::_match::trans_match_inner::h314f750cba3e3179rkx 30: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 31: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 32: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 33: 0x7f553703d3b0 - trans::expr::trans_addr_of::h882b3763331e06f5HKj 34: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 35: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 36: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 37: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 38: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 39: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 40: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 41: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 42: 0x7f553701e7a0 - trans::callee::trans_call_inner::h8327427649995086115 43: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 44: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 45: 0x7f5536fda540 - trans::controlflow::trans_block::h8b9dd08cca7ae2b7C3d 46: 0x7f55370a4530 - trans::base::trans_closure::ha8f0acc2eac303fay0t 47: 0x7f5536fc5b30 - trans::base::trans_fn::h78aae1b635a8d84cdbu 48: 0x7f5536fc60d0 - trans::monomorphize::monomorphic_fn::h54cdbc6aa90ad799Fpd 49: 0x7f5537017ca0 - trans::callee::trans_fn_ref_with_substs::h94b37b44eeb69e4bIxg 50: 0x7f5537016770 - trans::meth::trans_static_method_callee::hbb6577e2dd06bcddldz 51: 0x7f55370428e0 - trans::expr::trans_def_fn_unadjusted::h8078a7095bde75f7qfj 52: 0x7f553703a0c0 - trans::expr::trans_def::hde738785651c8ed4yIi 53: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 54: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 55: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 56: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 57: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 58: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 59: 0x7f55370df7e0 - trans::tvec::write_content::h8f5f7dafb5ea8658XHy 60: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 61: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 62: 0x7f55370c1b50 - trans::_match::trans_match_inner::h314f750cba3e3179rkx 63: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 64: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 65: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 66: 0x7f553703d3b0 - trans::expr::trans_addr_of::h882b3763331e06f5HKj 67: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 68: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 69: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 70: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 71: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 72: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 73: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 74: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 75: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 76: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 77: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 78: 0x7f5536fda540 - trans::controlflow::trans_block::h8b9dd08cca7ae2b7C3d 79: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 80: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 81: 0x7f55370c1b50 - trans::_match::trans_match_inner::h314f750cba3e3179rkx 82: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 83: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 84: 0x7f5536fda540 - trans::controlflow::trans_block::h8b9dd08cca7ae2b7C3d 85: 0x7f55370a4530 - trans::base::trans_closure::ha8f0acc2eac303fay0t 86: 0x7f5536fc5b30 - trans::base::trans_fn::h78aae1b635a8d84cdbu 87: 0x7f5536fc60d0 - trans::monomorphize::monomorphic_fn::h54cdbc6aa90ad799Fpd 88: 0x7f5537017ca0 - trans::callee::trans_fn_ref_with_substs::h94b37b44eeb69e4bIxg 89: 0x7f5537016390 - trans::callee::trans_fn_ref::hdac25cca5dc0cf2bTlg 90: 0x7f5536ff3220 - trans::meth::trans_method_callee::hfb3e8ff266af00e427y 91: 0x7f553701e7a0 - trans::callee::trans_call_inner::h8327427649995086115 92: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 93: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 94: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 95: 0x7f5536fd93b0 - trans::controlflow::trans_stmt_semi::hefd087c89986462fL2d 96: 0x7f5536fda540 - trans::controlflow::trans_block::h8b9dd08cca7ae2b7C3d 97: 0x7f55370a4530 - trans::base::trans_closure::ha8f0acc2eac303fay0t 98: 0x7f5536fc5b30 - trans::base::trans_fn::h78aae1b635a8d84cdbu 99: 0x7f5536fc0f50 - trans::base::trans_item::h67a6ff1d83b6d458yyu 100: 0x7f55370ab7d0 - trans::base::trans_crate::h4e60bbd73bda40effuv ... &lt;frames omitted&gt;"><pre class="notranslate"><code class="notranslate">error: internal compiler error: static call to invalid vtable: VtableObject(VtableObject(object_ty=error::Error + 'static)) note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:182 stack backtrace: 1: 0x7f5538025ed0 - sys::backtrace::write::hf251c2373d8c39658Rt 2: 0x7f55380478b0 - failure::on_fail::h2ff2bf5f19ce9580S5z 3: 0x7f5537fb67b0 - rt::unwind::begin_unwind_inner::h639cf27e708a803eKKz 4: 0x7f5532da51e0 - rt::unwind::begin_unwind::h13718395300347571823 5: 0x7f5532da5a80 - diagnostic::Handler::bug::h605aae0a1c8b932cA1F 6: 0x7f55362f83c0 - session::Session::bug::h4be63562d7120fbbB6q 7: 0x7f5537016770 - trans::meth::trans_static_method_callee::hbb6577e2dd06bcddldz 8: 0x7f5537013560 - trans::callee::trans::h540a689ed7456efdAag 9: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 10: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 11: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 12: 0x7f5536fda540 - trans::controlflow::trans_block::h8b9dd08cca7ae2b7C3d 13: 0x7f55370a4530 - trans::base::trans_closure::ha8f0acc2eac303fay0t 14: 0x7f5536fc5b30 - trans::base::trans_fn::h78aae1b635a8d84cdbu 15: 0x7f5536fc60d0 - trans::monomorphize::monomorphic_fn::h54cdbc6aa90ad799Fpd 16: 0x7f5537017ca0 - trans::callee::trans_fn_ref_with_substs::h94b37b44eeb69e4bIxg 17: 0x7f5537016770 - trans::meth::trans_static_method_callee::hbb6577e2dd06bcddldz 18: 0x7f55370428e0 - trans::expr::trans_def_fn_unadjusted::h8078a7095bde75f7qfj 19: 0x7f553703a0c0 - trans::expr::trans_def::hde738785651c8ed4yIi 20: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 21: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 22: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 23: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 24: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 25: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 26: 0x7f55370df7e0 - trans::tvec::write_content::h8f5f7dafb5ea8658XHy 27: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 28: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 29: 0x7f55370c1b50 - trans::_match::trans_match_inner::h314f750cba3e3179rkx 30: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 31: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 32: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 33: 0x7f553703d3b0 - trans::expr::trans_addr_of::h882b3763331e06f5HKj 34: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 35: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 36: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 37: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 38: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 39: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 40: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 41: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 42: 0x7f553701e7a0 - trans::callee::trans_call_inner::h8327427649995086115 43: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 44: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 45: 0x7f5536fda540 - trans::controlflow::trans_block::h8b9dd08cca7ae2b7C3d 46: 0x7f55370a4530 - trans::base::trans_closure::ha8f0acc2eac303fay0t 47: 0x7f5536fc5b30 - trans::base::trans_fn::h78aae1b635a8d84cdbu 48: 0x7f5536fc60d0 - trans::monomorphize::monomorphic_fn::h54cdbc6aa90ad799Fpd 49: 0x7f5537017ca0 - trans::callee::trans_fn_ref_with_substs::h94b37b44eeb69e4bIxg 50: 0x7f5537016770 - trans::meth::trans_static_method_callee::hbb6577e2dd06bcddldz 51: 0x7f55370428e0 - trans::expr::trans_def_fn_unadjusted::h8078a7095bde75f7qfj 52: 0x7f553703a0c0 - trans::expr::trans_def::hde738785651c8ed4yIi 53: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 54: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 55: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 56: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 57: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 58: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 59: 0x7f55370df7e0 - trans::tvec::write_content::h8f5f7dafb5ea8658XHy 60: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 61: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 62: 0x7f55370c1b50 - trans::_match::trans_match_inner::h314f750cba3e3179rkx 63: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 64: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 65: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 66: 0x7f553703d3b0 - trans::expr::trans_addr_of::h882b3763331e06f5HKj 67: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 68: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 69: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 70: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 71: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 72: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 73: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 74: 0x7f5536febbe0 - trans::callee::trans_args::h6d47968cc0a5de94zch 75: 0x7f553701d1e0 - trans::callee::trans_call_inner::h10047627878835684653 76: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 77: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 78: 0x7f5536fda540 - trans::controlflow::trans_block::h8b9dd08cca7ae2b7C3d 79: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 80: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 81: 0x7f55370c1b50 - trans::_match::trans_match_inner::h314f750cba3e3179rkx 82: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 83: 0x7f5536fd9f40 - trans::expr::trans_into::heeb89ad379a90d59Myh 84: 0x7f5536fda540 - trans::controlflow::trans_block::h8b9dd08cca7ae2b7C3d 85: 0x7f55370a4530 - trans::base::trans_closure::ha8f0acc2eac303fay0t 86: 0x7f5536fc5b30 - trans::base::trans_fn::h78aae1b635a8d84cdbu 87: 0x7f5536fc60d0 - trans::monomorphize::monomorphic_fn::h54cdbc6aa90ad799Fpd 88: 0x7f5537017ca0 - trans::callee::trans_fn_ref_with_substs::h94b37b44eeb69e4bIxg 89: 0x7f5537016390 - trans::callee::trans_fn_ref::hdac25cca5dc0cf2bTlg 90: 0x7f5536ff3220 - trans::meth::trans_method_callee::hfb3e8ff266af00e427y 91: 0x7f553701e7a0 - trans::callee::trans_call_inner::h8327427649995086115 92: 0x7f55370221d0 - trans::expr::trans_rvalue_dps_unadjusted::hfcba8e4f830451013Si 93: 0x7f5537021560 - trans::expr::trans_unadjusted::ha8ff77947160b4b3Qji 94: 0x7f5536fdb130 - trans::expr::trans::hd6f8e0f4d7584dd0gCh 95: 0x7f5536fd93b0 - trans::controlflow::trans_stmt_semi::hefd087c89986462fL2d 96: 0x7f5536fda540 - trans::controlflow::trans_block::h8b9dd08cca7ae2b7C3d 97: 0x7f55370a4530 - trans::base::trans_closure::ha8f0acc2eac303fay0t 98: 0x7f5536fc5b30 - trans::base::trans_fn::h78aae1b635a8d84cdbu 99: 0x7f5536fc0f50 - trans::base::trans_item::h67a6ff1d83b6d458yyu 100: 0x7f55370ab7d0 - trans::base::trans_crate::h4e60bbd73bda40effuv ... &lt;frames omitted&gt; </code></pre></div>
<p dir="auto">Tried using the <a href="https://github.com/iron/iron">iron framework</a> on Mac OS X Yosemite 10.10.1 with <code class="notranslate">rustc 1.0.0-nightly (170c4399e 2015-01-14 00:41:55 +0000)</code> and run into this issue. I have been trying to compile this with rust since 2015-01-12 version.</p> <p dir="auto">I'm not very knowledgable with the language itself or any systems programming languages, so if anything else is required for information, I'll reply ASAP.</p> <p dir="auto">Thanks!</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#![allow(unstable)] extern crate iron; use iron::prelude::*; use iron::status; fn main() { fn hello_world(_req: &amp;mut Request) -&gt; IronResult&lt;Response&gt; { Ok(Response::with((status::Ok, &quot;Hello World!&quot;))) } let web_server = Iron::new(hello_world); web_server.listen(&quot;localhost:3000&quot;).unwrap(); println!(&quot;On 3000&quot;); }"><pre class="notranslate"><code class="notranslate">#![allow(unstable)] extern crate iron; use iron::prelude::*; use iron::status; fn main() { fn hello_world(_req: &amp;mut Request) -&gt; IronResult&lt;Response&gt; { Ok(Response::with((status::Ok, "Hello World!"))) } let web_server = Iron::new(hello_world); web_server.listen("localhost:3000").unwrap(); println!("On 3000"); } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Joels-MacBook-Pro:testing joellarson$ RUST_BACKTRACE=1 cargo build --verbose Fresh mucell v0.1.10 Fresh gcc v0.1.4 Fresh typeable v0.0.7 Fresh matches v0.1.2 Fresh rustc-serialize v0.2.7 Fresh pkg-config v0.1.4 Fresh modifier v0.0.7 Fresh unicase v0.0.2 Fresh unsafe-any v0.2.1 Fresh regex v0.1.10 Fresh phantom v0.0.3 Fresh error v0.1.1 Fresh url v0.2.16 Fresh log v0.1.9 Fresh typemap v0.0.7 Fresh mime v0.0.6 Fresh plugin v0.2.0 Fresh time v0.1.12 Fresh openssl-sys v0.2.15 Fresh openssl v0.2.15 Fresh cookie v0.1.8 Fresh hyper v0.1.0 Fresh iron v0.0.12 Compiling testing v0.0.1 (file:///Users/joellarson/Desktop/testing) Running `rustc /Users/joellarson/Desktop/testing/src/main.rs --crate-name testing --crate-type bin -g --out-dir /Users/joellarson/Desktop/testing/target --emit=dep-info,link -L dependency=/Users/joellarson/Desktop/testing/target -L dependency=/Users/joellarson/Desktop/testing/target/deps --extern iron=/Users/joellarson/Desktop/testing/target/deps/libiron-937a4530a2de6745.rlib -L native=/usr/lib -L native=/Users/joellarson/Desktop/testing/target/build/time-7c7fc3eb0c12ad75/out` error: internal compiler error: static call to invalid vtable: VtableObject(VtableObject(object_ty=error::Error + 'static)) note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:182 stack backtrace: 1: 0x1099c542c - sys::backtrace::write::hdb7f697d27de389bRUt 2: 0x1099e70cf - failure::on_fail::hc3e325285010b54dIYz 3: 0x109953d8e - rt::unwind::begin_unwind_inner::h36a19ac9f276bc4fyGz 4: 0x10763e12f - rt::unwind::begin_unwind::h12427766859804144783 5: 0x10763ea9b - diagnostic::Handler::bug::h4388eb3258e711c3A1F 6: 0x106c0bd00 - metadata::tydecode::parse_existential_bounds_::h3194231158501185017 7: 0x106382566 - trans::meth::trans_static_method_callee::ha5eb63d60b5595e3ldz 8: 0x10637f384 - trans::callee::trans::h76890ac62fc507d2Aag 9: 0x10638838e - trans::callee::trans_call_inner::h1156024838687242042 10: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 11: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 12: 0x106347298 - trans::controlflow::trans_block::h6b5de6eb7d02efc8C3d 13: 0x10640f0ac - trans::base::trans_closure::hc19f8000b1806971y0t 14: 0x106332937 - trans::base::trans_fn::h681d426bfa056ab5dbu 15: 0x1063344b3 - trans::monomorphize::monomorphic_fn::h5816f05940831b2dFpd 16: 0x106384089 - trans::callee::trans_fn_ref_with_substs::haadc472d75988beaIxg 17: 0x10638284e - trans::meth::trans_static_method_callee::ha5eb63d60b5595e3ldz 18: 0x1063accbb - trans::expr::trans_def_fn_unadjusted::h4bcf18d21a58877cqfj 19: 0x1063a4720 - trans::expr::trans_def::hca0fe9c0c2d940f8yIi 20: 0x10638ccd6 - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 21: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 22: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 23: 0x106389258 - trans::callee::trans_call_inner::h1156024838687242042 24: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 25: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 26: 0x106447609 - trans::tvec::write_content::hde07101d16564dc0XHy 27: 0x10638ebe1 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 28: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 29: 0x10642a9f4 - trans::_match::trans_match_inner::hc02d383154268dc5rkx 30: 0x10638e28b - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 31: 0x10638ca0a - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 32: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 33: 0x1063a78d8 - trans::expr::trans_addr_of::h93887aee9b739adcHKj 34: 0x10638cea1 - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 35: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 36: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 37: 0x106389258 - trans::callee::trans_call_inner::h1156024838687242042 38: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 39: 0x10638ca0a - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 40: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 41: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 42: 0x10638a7ae - trans::callee::trans_call_inner::h4203845190985061913 43: 0x10638da36 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 44: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 45: 0x106347298 - trans::controlflow::trans_block::h6b5de6eb7d02efc8C3d 46: 0x10640f0ac - trans::base::trans_closure::hc19f8000b1806971y0t 47: 0x106332937 - trans::base::trans_fn::h681d426bfa056ab5dbu 48: 0x1063344b3 - trans::monomorphize::monomorphic_fn::h5816f05940831b2dFpd 49: 0x106384089 - trans::callee::trans_fn_ref_with_substs::haadc472d75988beaIxg 50: 0x10638284e - trans::meth::trans_static_method_callee::ha5eb63d60b5595e3ldz 51: 0x1063accbb - trans::expr::trans_def_fn_unadjusted::h4bcf18d21a58877cqfj 52: 0x1063a4720 - trans::expr::trans_def::hca0fe9c0c2d940f8yIi 53: 0x10638ccd6 - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 54: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 55: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 56: 0x106389258 - trans::callee::trans_call_inner::h1156024838687242042 57: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 58: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 59: 0x106447609 - trans::tvec::write_content::hde07101d16564dc0XHy 60: 0x10638ebe1 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 61: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 62: 0x10642a9f4 - trans::_match::trans_match_inner::hc02d383154268dc5rkx 63: 0x10638e28b - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 64: 0x10638ca0a - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 65: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 66: 0x1063a78d8 - trans::expr::trans_addr_of::h93887aee9b739adcHKj 67: 0x10638cea1 - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 68: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 69: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 70: 0x106389258 - trans::callee::trans_call_inner::h1156024838687242042 71: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 72: 0x10638ca0a - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 73: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 74: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 75: 0x106389258 - trans::callee::trans_call_inner::h1156024838687242042 76: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 77: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 78: 0x106347298 - trans::controlflow::trans_block::h6b5de6eb7d02efc8C3d 79: 0x10638e59b - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 80: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 81: 0x10642a9f4 - trans::_match::trans_match_inner::hc02d383154268dc5rkx 82: 0x10638e28b - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 83: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 84: 0x106347298 - trans::controlflow::trans_block::h6b5de6eb7d02efc8C3d 85: 0x10640f0ac - trans::base::trans_closure::hc19f8000b1806971y0t 86: 0x106332937 - trans::base::trans_fn::h681d426bfa056ab5dbu 87: 0x1063344b3 - trans::monomorphize::monomorphic_fn::h5816f05940831b2dFpd 88: 0x106384089 - trans::callee::trans_fn_ref_with_substs::haadc472d75988beaIxg 89: 0x106381b83 - trans::callee::trans_fn_ref::h9cbd6741cc72124fTlg 90: 0x10635f2dd - trans::meth::trans_method_callee::h6edd4c4662a3051227y 91: 0x1063898f4 - trans::callee::trans_call_inner::h4203845190985061913 92: 0x10638da36 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 93: 0x10638ca0a - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 94: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 95: 0x1063459e5 - trans::controlflow::trans_stmt_semi::h31d22e492a026488L2d 96: 0x106346f87 - trans::controlflow::trans_block::h6b5de6eb7d02efc8C3d 97: 0x10640f0ac - trans::base::trans_closure::hc19f8000b1806971y0t 98: 0x106332937 - trans::base::trans_fn::h681d426bfa056ab5dbu 99: 0x10632dfdb - trans::base::trans_item::h970b17007f7423b0yyu 100: 0x10641522c - trans::base::trans_crate::h092473b9f8aaff97fuv ... &lt;frames omitted&gt; Could not compile `testing`. Caused by: Process didn't exit successfully: `rustc /Users/joellarson/Desktop/testing/src/main.rs --crate-name testing --crate-type bin -g --out-dir /Users/joellarson/Desktop/testing/target --emit=dep-info,link -L dependency=/Users/joellarson/Desktop/testing/target -L dependency=/Users/joellarson/Desktop/testing/target/deps --extern iron=/Users/joellarson/Desktop/testing/target/deps/libiron-937a4530a2de6745.rlib -L native=/usr/lib -L native=/Users/joellarson/Desktop/testing/target/build/time-7c7fc3eb0c12ad75/out` (status=101)"><pre class="notranslate"><code class="notranslate">Joels-MacBook-Pro:testing joellarson$ RUST_BACKTRACE=1 cargo build --verbose Fresh mucell v0.1.10 Fresh gcc v0.1.4 Fresh typeable v0.0.7 Fresh matches v0.1.2 Fresh rustc-serialize v0.2.7 Fresh pkg-config v0.1.4 Fresh modifier v0.0.7 Fresh unicase v0.0.2 Fresh unsafe-any v0.2.1 Fresh regex v0.1.10 Fresh phantom v0.0.3 Fresh error v0.1.1 Fresh url v0.2.16 Fresh log v0.1.9 Fresh typemap v0.0.7 Fresh mime v0.0.6 Fresh plugin v0.2.0 Fresh time v0.1.12 Fresh openssl-sys v0.2.15 Fresh openssl v0.2.15 Fresh cookie v0.1.8 Fresh hyper v0.1.0 Fresh iron v0.0.12 Compiling testing v0.0.1 (file:///Users/joellarson/Desktop/testing) Running `rustc /Users/joellarson/Desktop/testing/src/main.rs --crate-name testing --crate-type bin -g --out-dir /Users/joellarson/Desktop/testing/target --emit=dep-info,link -L dependency=/Users/joellarson/Desktop/testing/target -L dependency=/Users/joellarson/Desktop/testing/target/deps --extern iron=/Users/joellarson/Desktop/testing/target/deps/libiron-937a4530a2de6745.rlib -L native=/usr/lib -L native=/Users/joellarson/Desktop/testing/target/build/time-7c7fc3eb0c12ad75/out` error: internal compiler error: static call to invalid vtable: VtableObject(VtableObject(object_ty=error::Error + 'static)) note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:182 stack backtrace: 1: 0x1099c542c - sys::backtrace::write::hdb7f697d27de389bRUt 2: 0x1099e70cf - failure::on_fail::hc3e325285010b54dIYz 3: 0x109953d8e - rt::unwind::begin_unwind_inner::h36a19ac9f276bc4fyGz 4: 0x10763e12f - rt::unwind::begin_unwind::h12427766859804144783 5: 0x10763ea9b - diagnostic::Handler::bug::h4388eb3258e711c3A1F 6: 0x106c0bd00 - metadata::tydecode::parse_existential_bounds_::h3194231158501185017 7: 0x106382566 - trans::meth::trans_static_method_callee::ha5eb63d60b5595e3ldz 8: 0x10637f384 - trans::callee::trans::h76890ac62fc507d2Aag 9: 0x10638838e - trans::callee::trans_call_inner::h1156024838687242042 10: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 11: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 12: 0x106347298 - trans::controlflow::trans_block::h6b5de6eb7d02efc8C3d 13: 0x10640f0ac - trans::base::trans_closure::hc19f8000b1806971y0t 14: 0x106332937 - trans::base::trans_fn::h681d426bfa056ab5dbu 15: 0x1063344b3 - trans::monomorphize::monomorphic_fn::h5816f05940831b2dFpd 16: 0x106384089 - trans::callee::trans_fn_ref_with_substs::haadc472d75988beaIxg 17: 0x10638284e - trans::meth::trans_static_method_callee::ha5eb63d60b5595e3ldz 18: 0x1063accbb - trans::expr::trans_def_fn_unadjusted::h4bcf18d21a58877cqfj 19: 0x1063a4720 - trans::expr::trans_def::hca0fe9c0c2d940f8yIi 20: 0x10638ccd6 - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 21: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 22: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 23: 0x106389258 - trans::callee::trans_call_inner::h1156024838687242042 24: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 25: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 26: 0x106447609 - trans::tvec::write_content::hde07101d16564dc0XHy 27: 0x10638ebe1 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 28: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 29: 0x10642a9f4 - trans::_match::trans_match_inner::hc02d383154268dc5rkx 30: 0x10638e28b - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 31: 0x10638ca0a - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 32: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 33: 0x1063a78d8 - trans::expr::trans_addr_of::h93887aee9b739adcHKj 34: 0x10638cea1 - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 35: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 36: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 37: 0x106389258 - trans::callee::trans_call_inner::h1156024838687242042 38: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 39: 0x10638ca0a - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 40: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 41: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 42: 0x10638a7ae - trans::callee::trans_call_inner::h4203845190985061913 43: 0x10638da36 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 44: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 45: 0x106347298 - trans::controlflow::trans_block::h6b5de6eb7d02efc8C3d 46: 0x10640f0ac - trans::base::trans_closure::hc19f8000b1806971y0t 47: 0x106332937 - trans::base::trans_fn::h681d426bfa056ab5dbu 48: 0x1063344b3 - trans::monomorphize::monomorphic_fn::h5816f05940831b2dFpd 49: 0x106384089 - trans::callee::trans_fn_ref_with_substs::haadc472d75988beaIxg 50: 0x10638284e - trans::meth::trans_static_method_callee::ha5eb63d60b5595e3ldz 51: 0x1063accbb - trans::expr::trans_def_fn_unadjusted::h4bcf18d21a58877cqfj 52: 0x1063a4720 - trans::expr::trans_def::hca0fe9c0c2d940f8yIi 53: 0x10638ccd6 - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 54: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 55: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 56: 0x106389258 - trans::callee::trans_call_inner::h1156024838687242042 57: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 58: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 59: 0x106447609 - trans::tvec::write_content::hde07101d16564dc0XHy 60: 0x10638ebe1 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 61: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 62: 0x10642a9f4 - trans::_match::trans_match_inner::hc02d383154268dc5rkx 63: 0x10638e28b - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 64: 0x10638ca0a - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 65: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 66: 0x1063a78d8 - trans::expr::trans_addr_of::h93887aee9b739adcHKj 67: 0x10638cea1 - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 68: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 69: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 70: 0x106389258 - trans::callee::trans_call_inner::h1156024838687242042 71: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 72: 0x10638ca0a - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 73: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 74: 0x106358541 - trans::callee::trans_args::h410c047778d877aczch 75: 0x106389258 - trans::callee::trans_call_inner::h1156024838687242042 76: 0x10638efc3 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 77: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 78: 0x106347298 - trans::controlflow::trans_block::h6b5de6eb7d02efc8C3d 79: 0x10638e59b - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 80: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 81: 0x10642a9f4 - trans::_match::trans_match_inner::hc02d383154268dc5rkx 82: 0x10638e28b - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 83: 0x10634670b - trans::expr::trans_into::h5aef78bf9a4e7f6dMyh 84: 0x106347298 - trans::controlflow::trans_block::h6b5de6eb7d02efc8C3d 85: 0x10640f0ac - trans::base::trans_closure::hc19f8000b1806971y0t 86: 0x106332937 - trans::base::trans_fn::h681d426bfa056ab5dbu 87: 0x1063344b3 - trans::monomorphize::monomorphic_fn::h5816f05940831b2dFpd 88: 0x106384089 - trans::callee::trans_fn_ref_with_substs::haadc472d75988beaIxg 89: 0x106381b83 - trans::callee::trans_fn_ref::h9cbd6741cc72124fTlg 90: 0x10635f2dd - trans::meth::trans_method_callee::h6edd4c4662a3051227y 91: 0x1063898f4 - trans::callee::trans_call_inner::h4203845190985061913 92: 0x10638da36 - trans::expr::trans_rvalue_dps_unadjusted::haaa64df86d8f51f43Si 93: 0x10638ca0a - trans::expr::trans_unadjusted::h0735e2024f7ef4d2Qji 94: 0x106347716 - trans::expr::trans::h4ea42cb60041647egCh 95: 0x1063459e5 - trans::controlflow::trans_stmt_semi::h31d22e492a026488L2d 96: 0x106346f87 - trans::controlflow::trans_block::h6b5de6eb7d02efc8C3d 97: 0x10640f0ac - trans::base::trans_closure::hc19f8000b1806971y0t 98: 0x106332937 - trans::base::trans_fn::h681d426bfa056ab5dbu 99: 0x10632dfdb - trans::base::trans_item::h970b17007f7423b0yyu 100: 0x10641522c - trans::base::trans_crate::h092473b9f8aaff97fuv ... &lt;frames omitted&gt; Could not compile `testing`. Caused by: Process didn't exit successfully: `rustc /Users/joellarson/Desktop/testing/src/main.rs --crate-name testing --crate-type bin -g --out-dir /Users/joellarson/Desktop/testing/target --emit=dep-info,link -L dependency=/Users/joellarson/Desktop/testing/target -L dependency=/Users/joellarson/Desktop/testing/target/deps --extern iron=/Users/joellarson/Desktop/testing/target/deps/libiron-937a4530a2de6745.rlib -L native=/usr/lib -L native=/Users/joellarson/Desktop/testing/target/build/time-7c7fc3eb0c12ad75/out` (status=101) </code></pre></div>
1
<pre class="notranslate">Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? W7/32b in VirtualBox running in Ubuntu 12.04, x86_64. Which version are you using? (run 'go version') go version 1.1.2 Please provide any additional information below. Excerpts from a mail converstaion with the Camlistore developers: ---- We've just got this report: <a href="http://camlistore.org/issue/214" rel="nofollow">http://camlistore.org/issue/214</a> so I've tried in winxp in a virtualbox a very basic test like <a href="https://gist.github.com/mpl/6366649">https://gist.github.com/mpl/6366649</a> and I indeed get an error like: kv.Create foo.kv: read foo.kv: Fin de fichier atteinte. (which means EOF) ---- First partial result: C:\home\src\github.com\cznic\kv&gt;go test -run TestCreate$ The problem is here: <a href="https://github.com/cznic/exp/blob/master/lldb/xact.go#L211">https://github.com/cznic/exp/blob/master/lldb/xact.go#L211</a> The first call to ReadAt(112 bytes at offset 16) at L211, returns correctly (0, err) on Linux - the file is only 16 bytes long at that moment (that's the kv header). 'err' is such that 'err == io.EOF' is true. However, on Windows the error is("%T(%#v)"): *os.PathError(&amp;os.PathError{Op:"read", Path:"_testdata/tempname", Err:0x26}) and for this 'err == io.EOF' is false. Which breaks the logic the DB engine relies on. FYI: Some info about 0x26 error here: <a href="http://social.technet.microsoft.com/Forums/windowsserver/en-US/1a16311b-c625-46cf-830b-6a26af488435/how-to-solve-error-38-0x26-errorhandleeof-using-fsctlgetretrievalpointers" rel="nofollow">http://social.technet.microsoft.com/Forums/windowsserver/en-US/1a16311b-c625-46cf-830b-6a26af488435/how-to-solve-error-38-0x26-errorhandleeof-using-fsctlgetretrievalpointers</a> From that link it may also be the case that it's actually a Windows bug (happens only for small files). ---- ==== I'm aware that this issue report is lacking a small, self contained reproduction case. I'm trying to first figure out if the 0x26 error should be translated to an io.EOF by the Go runtime on Windows - or not? If a small reproduction case turns out to be unavoidable, I'll attempt to prepare one over the weekend.</pre>
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">What steps will reproduce the problem? 1. GOARCH=power64 go run run.go -- nilptr2.go Lines marked "removed repeated nil check" fail in this test because the test depends on duplicate store elimination, which doesn't currently happen on power64x. To see the cause, run GOARCH=power64 gdb --args $(go tool -n 9g) nilptr3.go br nilopt r dis 1 set debug_checknil = 2 c On power64, prior to nilopt, f2 looks like 0:00041 (nilptr3.go:64) TEXT "".f2(SB),$0-0 0:00042 (nilptr3.go:64) FUNCDATA $0,"".gcargs·2(SB) 0:00043 (nilptr3.go:64) FUNCDATA $1,"".gclocals·3(SB) 0:00052 (nilptr3.go:66) MOVD $0,R7 0:00053 (nilptr3.go:66) MOVD R7,"".intp-0(SP) 0:00054 (nilptr3.go:67) MOVD $0,R7 0:00055 (nilptr3.go:67) MOVD R7,"".arrayp-0(SP) 0:00056 (nilptr3.go:68) MOVD $0,R7 0:00057 (nilptr3.go:68) MOVD R7,"".array0p-0(SP) 0:00058 (nilptr3.go:69) MOVD $0,R7 0:00059 (nilptr3.go:69) MOVD R7,"".bigarrayp-0(SP) 0:00060 (nilptr3.go:70) MOVD $0,R7 0:00061 (nilptr3.go:70) MOVD R7,"".structp-0(SP) 0:00062 (nilptr3.go:71) MOVD $0,R7 0:00063 (nilptr3.go:71) MOVD R7,"".bigstructp-0(SP) 0:00064 (nilptr3.go:72) MOVD $0,R7 0:00065 (nilptr3.go:72) MOVD R7,"".emptyp-0(SP) 0:00066 (nilptr3.go:73) MOVD $0,R7 0:00067 (nilptr3.go:73) MOVD R7,"".empty1p-0(SP) 0:00068 (nilptr3.go:76) MOVD "".intp-0(SP),R7 0:00069 (nilptr3.go:76) CHECKNIL R7, 0:00070 (nilptr3.go:77) MOVD "".arrayp-0(SP),R7 0:00071 (nilptr3.go:77) CHECKNIL R7, 0:00072 (nilptr3.go:78) MOVD "".array0p-0(SP),R7 0:00073 (nilptr3.go:78) CHECKNIL R7, 0:00074 (nilptr3.go:79) MOVD "".array0p-0(SP),R7 0:00075 (nilptr3.go:79) CHECKNIL R7, 0:00076 (nilptr3.go:80) MOVD "".intp-0(SP),R7 0:00077 (nilptr3.go:80) CHECKNIL R7, 0:00078 (nilptr3.go:81) MOVD "".arrayp-0(SP),R7 0:00079 (nilptr3.go:81) CHECKNIL R7, 0:00080 (nilptr3.go:82) MOVD "".structp-0(SP),R7 0:00081 (nilptr3.go:82) CHECKNIL R7, 0:00082 (nilptr3.go:83) MOVD "".emptyp-0(SP),R7 0:00083 (nilptr3.go:83) CHECKNIL R7, 0:00084 (nilptr3.go:84) MOVD "".arrayp-0(SP),R7 0:00085 (nilptr3.go:84) CHECKNIL R7, 0:00086 (nilptr3.go:85) MOVD "".bigarrayp-0(SP),R7 0:00087 (nilptr3.go:85) CHECKNIL R7, 0:00088 (nilptr3.go:86) MOVD "".bigstructp-0(SP),R7 0:00089 (nilptr3.go:86) CHECKNIL R7, 0:00090 (nilptr3.go:87) MOVD "".empty1p-0(SP),R7 0:00091 (nilptr3.go:87) CHECKNIL R7, 0:00092 (nilptr3.go:88) RETURN , These extra MOVDs inhibit the repeated nil check optimization. In contrast, on amd64, prior to nilopt, f2 looks like 0:00032 (nilptr3.go:64) TEXT "".f2+0(SB),$0-0 0:00033 (nilptr3.go:64) FUNCDATA $0,"".gcargs·2+0(SB) 0:00034 (nilptr3.go:64) FUNCDATA $1,"".gclocals·3+0(SB) 0:00043 (nilptr3.go:66) MOVQ $0,DX 0:00044 (nilptr3.go:67) MOVQ $0,AX 0:00045 (nilptr3.go:68) MOVQ $0,CX 0:00046 (nilptr3.go:69) MOVQ $0,R8 0:00047 (nilptr3.go:70) MOVQ $0,DI 0:00048 (nilptr3.go:71) MOVQ $0,SI 0:00049 (nilptr3.go:72) MOVQ $0,BP 0:00050 (nilptr3.go:73) MOVQ $0,BX 0:00051 (nilptr3.go:76) CHECKNIL DX, 0:00052 (nilptr3.go:77) CHECKNIL AX, 0:00053 (nilptr3.go:78) CHECKNIL CX, 0:00054 (nilptr3.go:79) CHECKNIL CX, 0:00055 (nilptr3.go:80) CHECKNIL DX, 0:00056 (nilptr3.go:81) CHECKNIL AX, 0:00057 (nilptr3.go:82) CHECKNIL DI, 0:00058 (nilptr3.go:83) CHECKNIL BP, 0:00059 (nilptr3.go:84) CHECKNIL AX, 0:00060 (nilptr3.go:85) CHECKNIL R8, 0:00061 (nilptr3.go:86) CHECKNIL SI, 0:00062 (nilptr3.go:87) CHECKNIL BX, 0:00063 (nilptr3.go:88) RET ,</pre>
0
<p dir="auto">Using elasticsearch java api 1.4.3, I think I'm experiencing a problem similar to what I reported at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54818603" data-permission-text="Title is private" data-url="https://github.com/yakaz/elasticsearch-action-updatebyquery/issues/27" data-hovercard-type="issue" data-hovercard-url="/yakaz/elasticsearch-action-updatebyquery/issues/27/hovercard" href="https://github.com/yakaz/elasticsearch-action-updatebyquery/issues/27">yakaz/elasticsearch-action-updatebyquery#27</a> but this time it is the official API that seem to have the issue:</p> <div class="highlight highlight-source-scala notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="val qb = QueryBuilders.constantScoreQuery(FilterBuilders.termFilter(&quot;user&quot;, &quot;kimchy&quot;)) // returns false, which is expected because I have no such document in my index client.prepareExists(&quot;myIndex&quot;) .setTypes(&quot;myType&quot;) .setQuery(qb) .execute().actionGet().exists() // returns true... for any query with an empty (but existing) index/type, which is obviously wrong client.exists(client.prepareExists(&quot;myIndex&quot;) .setTypes(&quot;myType&quot;) .setQuery(qb) .request()).actionGet().exists()"><pre class="notranslate"><span class="pl-k">val</span> <span class="pl-v">qb</span> <span class="pl-k">=</span> <span class="pl-en">QueryBuilders</span>.constantScoreQuery(<span class="pl-en">FilterBuilders</span>.termFilter(<span class="pl-s"><span class="pl-pds">"</span>user<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>kimchy<span class="pl-pds">"</span></span>)) <span class="pl-c"><span class="pl-c">//</span> returns false, which is expected because I have no such document in my index</span> client.prepareExists(<span class="pl-s"><span class="pl-pds">"</span>myIndex<span class="pl-pds">"</span></span>) .setTypes(<span class="pl-s"><span class="pl-pds">"</span>myType<span class="pl-pds">"</span></span>) .setQuery(qb) .execute().actionGet().exists() <span class="pl-c"><span class="pl-c">//</span> returns true... for any query with an empty (but existing) index/type, which is obviously wrong</span> client.exists(client.prepareExists(<span class="pl-s"><span class="pl-pds">"</span>myIndex<span class="pl-pds">"</span></span>) .setTypes(<span class="pl-s"><span class="pl-pds">"</span>myType<span class="pl-pds">"</span></span>) .setQuery(qb) .request()).actionGet().exists()</pre></div> <p dir="auto">I think <code class="notranslate">ExistsRequestBuilder.request()</code> is the problem here and I need to get an ExistsRequest as it is what my elasticsearch wrapper expects.</p>
<p dir="auto">Today we have 3 flavors for each endpoint (for demonstration purpose I only use the <code class="notranslate">_health</code> API)</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public interface ClusterAdminClient extends ElasticsearchClient&lt;ClusterAdminClient&gt; { ActionFuture&lt;ClusterHealthResponse&gt; health(ClusterHealthRequest request); void health(ClusterHealthRequest request, ActionListener&lt;ClusterHealthResponse&gt; listener); ClusterHealthRequestBuilder prepareHealth(String... indices);"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">interface</span> <span class="pl-smi">ClusterAdminClient</span> <span class="pl-k">extends</span> <span class="pl-smi">ElasticsearchClient</span>&lt;<span class="pl-smi">ClusterAdminClient</span>&gt; { <span class="pl-smi">ActionFuture</span>&lt;<span class="pl-smi">ClusterHealthResponse</span>&gt; <span class="pl-en">health</span>(<span class="pl-smi">ClusterHealthRequest</span> <span class="pl-s1">request</span>); <span class="pl-smi">void</span> <span class="pl-en">health</span>(<span class="pl-smi">ClusterHealthRequest</span> <span class="pl-s1">request</span>, <span class="pl-smi">ActionListener</span>&lt;<span class="pl-smi">ClusterHealthResponse</span>&gt; <span class="pl-s1">listener</span>); <span class="pl-smi">ClusterHealthRequestBuilder</span> <span class="pl-en">prepareHealth</span>(<span class="pl-smi">String</span>... <span class="pl-s1">indices</span>);</pre></div> <p dir="auto">At least one of them is redundant here already but lemme first explain what is trappy here. If you use the <code class="notranslate">prepareHealth().setWaitForGreenStatus()</code> basically nothing happens. you need to call <code class="notranslate">.get()</code> or <code class="notranslate">.execute().get()</code> or <code class="notranslate">.actionGet()</code> or any of the X flavors. This is not so much of a problem for health because you are waiting for a response, but for endpoints that don't return info that is generally consumed ie. update settings this has in the past lead to so many test bugs that I consider this evil.</p> <p dir="auto">Yet, I think we should remove this method entirely and detach the Builders entirely from the Client. Today once a builder is created like this:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" ClusterHealthRequestBuilder builder = client.prepareHealth().setWaitForGreenStatus()"><pre class="notranslate"> <span class="pl-smi">ClusterHealthRequestBuilder</span> <span class="pl-s1">builder</span> = <span class="pl-s1">client</span>.<span class="pl-en">prepareHealth</span>().<span class="pl-en">setWaitForGreenStatus</span>()</pre></div> <p dir="auto">it's tied to a client and if you close that client the builder can't be executed. To me if we even keep the builder in the future it should only have a <code class="notranslate">build()</code> method that returns the corresponding request. Then you can call:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" ClusterHealthRequestBuilder builder = AdminBuilders.health().setWaitForGreenStatus(); client.health(builder.build());"><pre class="notranslate"> <span class="pl-smi">ClusterHealthRequestBuilder</span> <span class="pl-s1">builder</span> = <span class="pl-smi">AdminBuilders</span>.<span class="pl-en">health</span>().<span class="pl-en">setWaitForGreenStatus</span>(); <span class="pl-s1">client</span>.<span class="pl-en">health</span>(<span class="pl-s1">builder</span>.<span class="pl-en">build</span>());</pre></div> <p dir="auto">which is less trappy... oh wait... <code class="notranslate">client.health(builder.build());</code> returns an <code class="notranslate">ActionFuture&lt;ClusterHealthResponse&gt;</code> which is also redundant IMO. We already have a non-blocking API using a listener which is equally powerful.</p> <p dir="auto">I think what we should move to is this:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public interface ClusterAdminClient extends ElasticsearchClient&lt;ClusterAdminClient&gt; { ClusterHealthResponse health(ClusterHealthRequest request); void health(ClusterHealthRequest request, ActionListener&lt;ClusterHealthResponse&gt; listener); "><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">interface</span> <span class="pl-smi">ClusterAdminClient</span> <span class="pl-k">extends</span> <span class="pl-smi">ElasticsearchClient</span>&lt;<span class="pl-smi">ClusterAdminClient</span>&gt; { <span class="pl-smi">ClusterHealthResponse</span> <span class="pl-en">health</span>(<span class="pl-smi">ClusterHealthRequest</span> <span class="pl-s1">request</span>); <span class="pl-smi">void</span> <span class="pl-en">health</span>(<span class="pl-smi">ClusterHealthRequest</span> <span class="pl-s1">request</span>, <span class="pl-smi">ActionListener</span>&lt;<span class="pl-smi">ClusterHealthResponse</span>&gt; <span class="pl-s1">listener</span>);</pre></div> <p dir="auto">that way it's clearly a blocking API and it's easy to use. We still keep the builder (for now ;) ) but remove it's coupling to the client which is super trappy.</p>
1
<p dir="auto">Here is the stackoverflow question: <a href="https://stackoverflow.com/questions/52394305/creating-pip-package-for-tensorflow-with-gpu-support-results-in-0-byte-simple-co" rel="nofollow">https://stackoverflow.com/questions/52394305/creating-pip-package-for-tensorflow-with-gpu-support-results-in-0-byte-simple-co</a></p> <hr> <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>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 10</li> <li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>: N/A</li> <li><strong>TensorFlow installed from (source or binary)</strong>: source</li> <li><strong>TensorFlow version (use command below)</strong>: 1.11</li> <li><strong>Python version</strong>: 3.6.5</li> <li><strong>Bazel version (if compiling from source)</strong>: 0.16.1</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:</li> <li><strong>CUDA/cuDNN version</strong>: 9.2/7.2.1</li> <li><strong>GPU model and memory</strong>: Nvidia M1000M</li> <li><strong>Exact command to reproduce</strong>: bazel-bin\tensorflow\tools\pip_package\build_pip_package C:/tmp/tensorflow_pkg</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">After successfully building TensorFlow with GPU support, I'm trying to build the pip package and I'm getting an error saying it can't read the simple_console_for_windows.zip file.</p> <p dir="auto">I've confirmed that the file is in C:\tensorflow\bazel-bin\tensorflow\tools\pip_package folder, but it is 0 bytes.</p> <p dir="auto">This is my pip build command:<br> bazel-bin\tensorflow\tools\pip_package\build_pip_package C:/tmp/tensorflow_pkg</p> <p dir="auto">My build command was:<br> bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">This is the full error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unzipping simple_console_for_windows.zip to create runfiles tree... [./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip or ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.zip, and cannot find ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.ZIP, period."><pre class="notranslate"><code class="notranslate">Unzipping simple_console_for_windows.zip to create runfiles tree... [./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip or ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.zip, and cannot find ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.ZIP, period. </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>: no</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 10 1803</li> <li><strong>TensorFlow installed from (source or binary)</strong>: source</li> <li><strong>TensorFlow version (use command below)</strong>: v1.11.0-rc1</li> <li><strong>Python version</strong>: 3.6.5</li> <li><strong>Bazel version (if compiling from source)</strong>: 0.15.2</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: vs2017 15.8 / cl.exe 19.15.26726</li> <li><strong>CUDA/cuDNN version</strong>: 9.2.148.1/7.2.1</li> <li><strong>GPU model and memory</strong>: 1080ti 11GB</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package bazel-bin\tensorflow\tools\pip_package\build_pip_package C:/tmp/tensorflow_pkg"><pre class="notranslate"><code class="notranslate">bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package bazel-bin\tensorflow\tools\pip_package\build_pip_package C:/tmp/tensorflow_pkg </code></pre></div> <h3 dir="auto">Describe the problem</h3> <p dir="auto">If build artifact large than 4GB, it can't generate the python package.</p> <p dir="auto">A easy way to reproduce the issue</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,7.0]: 3.0,3.2,3.5,5.0,5.2,5.3"><pre class="notranslate"><code class="notranslate">Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,7.0]: 3.0,3.2,3.5,5.0,5.2,5.3 </code></pre></div> <p dir="auto">related link:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="336090628" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/20332" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/20332/hovercard?comment_id=415974623&amp;comment_type=issue_comment" href="https://github.com/tensorflow/tensorflow/issues/20332#issuecomment-415974623">#20332 (comment)</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="361772394" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/22382" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/22382/hovercard" href="https://github.com/tensorflow/tensorflow/issues/22382">#22382</a><br> <a href="https://github.com/bazelbuild/bazel/blob/0.17.1/third_party/ijar/zip.cc#L74">https://github.com/bazelbuild/bazel/blob/0.17.1/third_party/ijar/zip.cc#L74</a></p> <h3 dir="auto">Source code / logs</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncompressed input jar has size ???, which exceeds the maximum supported output size 4294967295. Assuming that ijar will be smaller and hoping for the best. Unzipping simple_console_for_windows.zip to create runfiles tree... [./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip or ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.zip, and cannot find ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.ZIP, period. "><pre class="notranslate"><code class="notranslate">Uncompressed input jar has size ???, which exceeds the maximum supported output size 4294967295. Assuming that ijar will be smaller and hoping for the best. Unzipping simple_console_for_windows.zip to create runfiles tree... [./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip or ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.zip, and cannot find ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.ZIP, period. </code></pre></div>
1
<p dir="auto">by <strong>peterbourgon</strong>:</p> <pre class="notranslate">In the spec, under "For statements", the topic of deleting map entries during iteration is addressed with only the sentence: &gt; If map entries that have not yet been reached are removed during iteration, the corresponding iteration values will not be produced. This program appears to work fine: &gt; <a href="http://play.golang.org/p/P-O47Wp2LF" rel="nofollow">http://play.golang.org/p/P-O47Wp2LF</a> But the spec doesn't seem to *guarantee* that it will work. If this is guaranteed behavior, can the spec be clarified? Specifically, can this sentence (or one like it) be added: &gt; The current entry in a map iteration may be safely deleted.</pre>
<p dir="auto">by <strong>Douglas.Linder</strong>:</p> <pre class="notranslate">The documentation of go build, here: <a href="http://golang.org/pkg/go/build/" rel="nofollow">http://golang.org/pkg/go/build/</a> Does not account for the possibility of a source file that starts: // +build TAG package xxx This results in the comment being treated as a package comment and not as a tag. The correct behaviour is achieved by adding an additional line, as: // +build TAG package xxx However, this does not appear in the documentation, which should be updated from: &gt; Constraints may appear in any kind of source file (not just Go), but they must appear near the top of the file, preceded only by blank lines and other line comments. To something that declares that the tag must *also* always be followed by at least one single blank line, eg. &gt; Constraints may appear in any kind of source file (not just Go), but they must appear near the top of the file, preceded only by blank lines and other line comments, // and followed by at least one single newline so as not to be treated as a comment attached the following elements. // Additional information is available on this SO thread: <a href="http://stackoverflow.com/questions/10646531/golang-conditional-compilation/10649653#10649653" rel="nofollow">http://stackoverflow.com/questions/10646531/golang-conditional-compilation/10649653#10649653</a></pre>
0
<p dir="auto">Originally I wanted to display radio buttons without the possibility of changing them.<br> I tried using the <code class="notranslate">read_only</code> attribute on my field type first:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$builder-&gt;add('onCall', 'choice', array( 'choices' =&gt; array(0 =&gt; 'no', 1 =&gt; 'yes'), 'expanded' =&gt; true, 'read_only' =&gt; true ));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>(<span class="pl-s">'onCall'</span>, <span class="pl-s">'choice'</span>, <span class="pl-en">array</span>( <span class="pl-s">'choices'</span> =&gt; <span class="pl-en">array</span>(<span class="pl-c1">0</span> =&gt; <span class="pl-s">'no'</span>, <span class="pl-c1">1</span> =&gt; <span class="pl-s">'yes'</span>), <span class="pl-s">'expanded'</span> =&gt; <span class="pl-c1">true</span>, <span class="pl-s">'read_only'</span> =&gt; <span class="pl-c1">true</span> ));</pre></div> <p dir="auto">As expected the <code class="notranslate">readonly</code> attribute gets added to the <code class="notranslate">input</code>:</p> <div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;input id=&quot;timekeeping_entry_day_onCall_0&quot; type=&quot;radio&quot; value=&quot;0&quot; required=&quot;required&quot; readonly=&quot;readonly&quot; name=&quot;timekeeping_entry_day[onCall]&quot;&gt;"><pre class="notranslate">&lt;<span class="pl-ent">input</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>timekeeping_entry_day_onCall_0<span class="pl-pds">"</span></span> <span class="pl-e">type</span>=<span class="pl-s"><span class="pl-pds">"</span>radio<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span> <span class="pl-e">required</span>=<span class="pl-s"><span class="pl-pds">"</span>required<span class="pl-pds">"</span></span> <span class="pl-e">readonly</span>=<span class="pl-s"><span class="pl-pds">"</span>readonly<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>timekeeping_entry_day[onCall]<span class="pl-pds">"</span></span>&gt;</pre></div> <p dir="auto">But in the end this does not have any effect since - as we all know by now - <code class="notranslate">readonly</code> is not supported for radio buttons:<br> <a href="http://www.w3.org/TR/WD-forms-970402#readonly" rel="nofollow">http://www.w3.org/TR/WD-forms-970402#readonly</a><br> <code class="notranslate">READONLY applies to INPUT elements of type TEXT or PASSWORD and to the TEXTAREA element.</code></p> <p dir="auto">So allowing the <code class="notranslate">read_only</code> option on an <code class="notranslate">expanded</code> <code class="notranslate">choice</code> does not seem to make sense anyway, correct?</p> <p dir="auto">The desired effect on the element should be to disable it. But setting <code class="notranslate">disabled</code> on the field type will ignore validation after form submit if the radio buttons have been enabled again by a javascript on client side.</p> <p dir="auto">So it looks like the only way to do it is to set the HTML attribute <code class="notranslate">disabled</code> on the field type.<br> This way it can be enabled again by the client and the submitted value would not be ignored.</p> <p dir="auto">My attempt for this:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$builder-&gt;add('onCall', 'choice', array( 'choices' =&gt; array(0 =&gt; 'no', 1 =&gt; 'yes'), 'expanded' =&gt; true, 'attr' =&gt; array('disabled' =&gt; 'disabled') ));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>(<span class="pl-s">'onCall'</span>, <span class="pl-s">'choice'</span>, <span class="pl-en">array</span>( <span class="pl-s">'choices'</span> =&gt; <span class="pl-en">array</span>(<span class="pl-c1">0</span> =&gt; <span class="pl-s">'no'</span>, <span class="pl-c1">1</span> =&gt; <span class="pl-s">'yes'</span>), <span class="pl-s">'expanded'</span> =&gt; <span class="pl-c1">true</span>, <span class="pl-s">'attr'</span> =&gt; <span class="pl-en">array</span>(<span class="pl-s">'disabled'</span> =&gt; <span class="pl-s">'disabled'</span>) ));</pre></div> <p dir="auto">Unfortunately the HTML result does not apply the <code class="notranslate">disabled</code> attribute to the <code class="notranslate">input</code> but to the <code class="notranslate">div</code> around it:</p> <div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div id=&quot;timekeeping_entry_day_onCall&quot; disabled=&quot;disabled&quot;&gt; &lt;input id=&quot;timekeeping_entry_day_onCall_0&quot; type=&quot;radio&quot; value=&quot;0&quot; required=&quot;required&quot; name=&quot;timekeeping_entry_day[onCall]&quot;&gt; &lt;label class=&quot;required&quot; for=&quot;timekeeping_entry_day_onCall_0&quot;&gt;no&lt;/label&gt; &lt;input id=&quot;timekeeping_entry_day_onCall_1&quot; type=&quot;radio&quot; value=&quot;1&quot; required=&quot;required&quot; name=&quot;timekeeping_entry_day[onCall]&quot;&gt; &lt;label class=&quot;required&quot; for=&quot;timekeeping_entry_day_onCall_1&quot;&gt;yes&lt;/label&gt; &lt;/div&gt;"><pre class="notranslate">&lt;<span class="pl-ent">div</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>timekeeping_entry_day_onCall<span class="pl-pds">"</span></span> <span class="pl-e">disabled</span>=<span class="pl-s"><span class="pl-pds">"</span>disabled<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">input</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>timekeeping_entry_day_onCall_0<span class="pl-pds">"</span></span> <span class="pl-e">type</span>=<span class="pl-s"><span class="pl-pds">"</span>radio<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span> <span class="pl-e">required</span>=<span class="pl-s"><span class="pl-pds">"</span>required<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>timekeeping_entry_day[onCall]<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">label</span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>required<span class="pl-pds">"</span></span> <span class="pl-e">for</span>=<span class="pl-s"><span class="pl-pds">"</span>timekeeping_entry_day_onCall_0<span class="pl-pds">"</span></span>&gt;no&lt;/<span class="pl-ent">label</span>&gt; &lt;<span class="pl-ent">input</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>timekeeping_entry_day_onCall_1<span class="pl-pds">"</span></span> <span class="pl-e">type</span>=<span class="pl-s"><span class="pl-pds">"</span>radio<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>1<span class="pl-pds">"</span></span> <span class="pl-e">required</span>=<span class="pl-s"><span class="pl-pds">"</span>required<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>timekeeping_entry_day[onCall]<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">label</span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>required<span class="pl-pds">"</span></span> <span class="pl-e">for</span>=<span class="pl-s"><span class="pl-pds">"</span>timekeeping_entry_day_onCall_1<span class="pl-pds">"</span></span>&gt;yes&lt;/<span class="pl-ent">label</span>&gt; &lt;/<span class="pl-ent">div</span>&gt;</pre></div> <p dir="auto">I'm not using the Bootstrap theme.</p> <p dir="auto">Setting the <code class="notranslate">attr</code> seems to be the issue:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="15498045" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/8269" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/8269/hovercard" href="https://github.com/symfony/symfony/issues/8269">#8269</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sargath/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sargath">@sargath</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14369423" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/8051" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/8051/hovercard" href="https://github.com/symfony/symfony/issues/8051">#8051</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AdamQuadmon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AdamQuadmon">@AdamQuadmon</a></li> </ul> <p dir="auto">The <code class="notranslate">div</code> uses the <code class="notranslate">widget_container_attributes</code> block:<br> <a href="https://github.com/symfony/symfony/blob/2.7/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig#L46">https://github.com/symfony/symfony/blob/2.7/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig#L46</a></p> <p dir="auto">While the <code class="notranslate">input</code> uses a <code class="notranslate">widget_attributes</code> block:<br> <a href="https://github.com/symfony/symfony/blob/2.7/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig#L93">https://github.com/symfony/symfony/blob/2.7/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig#L93</a></p> <p dir="auto">Are the <code class="notranslate">attr</code> passed to the wrong block?</p> <p dir="auto">Original issue I started:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="63732817" data-permission-text="Title is private" data-url="https://github.com/sonata-project/SonataAdminBundle/issues/2842" data-hovercard-type="issue" data-hovercard-url="/sonata-project/SonataAdminBundle/issues/2842/hovercard" href="https://github.com/sonata-project/SonataAdminBundle/issues/2842">sonata-project/SonataAdminBundle#2842</a></li> </ul> <p dir="auto">Possibly related:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51684910" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/12946" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/12946/hovercard" href="https://github.com/symfony/symfony/issues/12946">#12946</a></li> </ul>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>yes</td> </tr> <tr> <td>Symfony version</td> <td>2.8.0 - 3.2.2</td> </tr> </tbody> </table> <p dir="auto">In my application, I have several authentication mechanisms and each one has it's own UserProvider. The security.yml looks like this:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="security: providers: chain_provider: chain: providers: [provider1, provider2] provider1: ... provider2: ... firewalls: main: guard: authenticators: - authenticator1 - authenticator2 entry_point: authenticator1"><pre class="notranslate"><span class="pl-ent">security</span>: <span class="pl-ent">providers</span>: <span class="pl-ent">chain_provider</span>: <span class="pl-ent">chain</span>: <span class="pl-ent">providers</span>: <span class="pl-s">[provider1, provider2]</span> <span class="pl-ent">provider1</span>: <span class="pl-s">...</span> <span class="pl-ent">provider2</span>: <span class="pl-s">...</span> <span class="pl-ent">firewalls</span>: <span class="pl-ent">main</span>: <span class="pl-ent">guard</span>: <span class="pl-ent">authenticators</span>: - <span class="pl-s">authenticator1</span> - <span class="pl-s">authenticator2</span> <span class="pl-ent">entry_point</span>: <span class="pl-s">authenticator1</span></pre></div> <p dir="auto">Now, as far as I understand, <a href="https://github.com/symfony/symfony/blob/v3.2.2/src/Symfony/Component/Security/Core/User/ChainUserProvider.php#L45-L58">ChainUserProvider::loadUserByUsername</a> lets each chained provider try to load a user with the provided credentials until one user is found or all providers have tried unsuccessfully. I.e. provider1 will eventually try to load a user with the credentials provided by authenticator2. If user1's credentials for authenticator1 are the same as user2's credentials for authenticator2, user2 would be logged in as user1 due to the order of the chained user providers. I think this should be prevented.</p> <p dir="auto">My idea to work around that problem was to tie providers to authenticators, so that a provider would only accept credentials from it's corresponding authenticator(s). If loadUserByUsername would not only have one parameter for the username, but a second one for the calling authenticator, I could've implemented that check in this method.</p> <p dir="auto">Makes sense? Is there a already a better way to tie the both of them? Or am I missing another concept here?</p>
0
<h2 dir="auto">I have a big problem, I use the tfrecord file to import data for my tensorflow program. But, when the program run a period of time, it displays the DataLossError:</h2> <h3 dir="auto">System information</h3> <p dir="auto">OS Platform and Distribution : Linux Ubuntu 14.04<br> TensorFlow installed from : Anaconda<br> TensorFlow version : 1.3.0<br> Python version: 2.7.13<br> CUDA/cuDNN version: 8.0 / 6.0<br> GPU model and memory: Pascal TITAN X</p> <h3 dir="auto">Describe the problem</h3> <p dir="auto">2017-10-03 19:45:43.854601: W tensorflow/core/framework/op_kernel.cc:1192] Data loss: corrupted record at 12<br> Traceback (most recent call last):<br> File "east_quad_train_backup.py", line 416, in <br> tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)<br> File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run<br> _sys.exit(main(_sys.argv[:1] + flags_passthrough))<br> File "east_quad_train_backup.py", line 330, in main<br> Training()<br> File "east_quad_train_backup.py", line 312, in Training<br> feed_dict={learning_rate: lr})<br> File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 895, in run<br> run_metadata_ptr)<br> File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1124, in _run<br> feed_dict_tensor, options, run_metadata)<br> File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1321, in _do_run<br> options, run_metadata)<br> File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1340, in _do_call<br> raise type(e)(node_def, op, message)<br> tensorflow.python.framework.errors_impl.DataLossError: corrupted record at 12<br> [[Node: IteratorGetNext = IteratorGetNext<a href="Iterator">output_shapes=[[?,512,512,3], [?,128,128,9]], output_types=[DT_UINT8, DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"</a>]]<br> [[Node: gradients/Tile_grad/Shape/_23 = _HostRecv<a href="">client_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_442_gradients/Tile_grad/Shape", tensor_type=DT_INT32, _device="/job:localhost/replica:0/task:0/gpu:0"</a>]]</p> <p dir="auto">Caused by op u'IteratorGetNext', defined at:<br> File "east_quad_train_backup.py", line 416, in <br> tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)<br> File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run<br> _sys.exit(main(_sys.argv[:1] + flags_passthrough))<br> File "east_quad_train_backup.py", line 330, in main<br> Training()<br> File "east_quad_train_backup.py", line 251, in Training<br> batch_image, batch_label = iterator.get_next()<br> File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/contrib/data/python/ops/dataset_ops.py", line 304, in get_next<br> name=name))<br> File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_dataset_ops.py", line 379, in iterator_get_next<br> output_shapes=output_shapes, name=name)<br> File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op<br> op_def=op_def)<br> File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2630, in create_op<br> original_op=self._default_original_op, op_def=op_def)<br> File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1204, in <strong>init</strong><br> self._traceback = self._graph._extract_stack() # pylint: disable=protected-access</p> <p dir="auto">DataLossError (see above for traceback): corrupted record at 12<br> [[Node: IteratorGetNext = IteratorGetNext<a href="Iterator">output_shapes=[[?,512,512,3], [?,128,128,9]], output_types=[DT_UINT8, DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"</a>]]<br> [[Node: gradients/Tile_grad/Shape/_23 = _HostRecv<a href="">client_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_442_gradients/Tile_grad/Shape", tensor_type=DT_INT32, _device="/job:localhost/replica:0/task:0/gpu:0"</a>]]</p> <p dir="auto">Thanks anyone to answer this question.</p>
<p dir="auto">NOTE: Only file GitHub issues for bugs and feature requests. All other topics will be closed.</p> <p dir="auto">For general support from the community, see <a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">StackOverflow</a>.<br> To make bugs and feature requests more easy to find and organize, we close issues that are deemed<br> out of scope for GitHub Issues and point people to StackOverflow.</p> <p dir="auto">For bugs or installation issues, please provide the following information.<br> The more information you provide, the more easily we will be able to offer<br> help and advice.</p> <h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System:</p> <p dir="auto">Installed version of CUDA and cuDNN:<br> (please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>):</p> <p dir="auto">If installed from binary pip package, provide:</p> <ol dir="auto"> <li>A link to the pip package you installed:</li> <li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.</li> </ol> <p dir="auto">If installed from source, provide</p> <ol dir="auto"> <li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)</li> <li>The output of <code class="notranslate">bazel version</code></li> </ol> <h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3> <h3 dir="auto">What other attempted solutions have you tried?</h3> <h3 dir="auto">Logs or other output that would be helpful</h3> <p dir="auto">(If logs are large, please upload as attachment or provide link).</p>
0
<p dir="auto"><code class="notranslate">deno install</code> is excellent for installing scripts, but it seems that it could only install ts (and js?) files through dependencies.</p> <p dir="auto">For example, <code class="notranslate">std/http/file_server.ts</code> is a simple file server which needs some html template to generate page, but it could only put all html template files(and even a lot of css files) inside the ts file as a string. Maybe it works, but it is not elegant and graceful enough to manage these strings. And this solution is not suit for images(such as favicon.ico) as they are binary files.</p> <p dir="auto">More about this example you can see this: <a href="https://github.com/denoland/deno/blob/master/std/http/file_server.ts#L200-L288">https://github.com/denoland/deno/blob/master/std/http/file_server.ts#L200-L288</a><br> (It puts all the html and css inside the ts file as a string which is ugly)</p> <p dir="auto">The best solution I found is to clone the whole repo(with html and css files outside of ts file) to disk and use <code class="notranslate">deno install ./index.ts</code> manually to install my scripts locally. This install method is too complex and not fascinating at all; thus I was think of some feature such as <code class="notranslate">deno install https://github.com/name/repo</code> to run the same as <code class="notranslate">git clone ... &amp;&amp; deno install -n repo ./repo/xxx.ts</code>?</p> <p dir="auto">Looking forward to your reply and thanks in advance.</p>
<h2 dir="auto">Problem</h2> <p dir="auto">I often find myself needing to load non-JavaScript non-TypeScript assets, and various problems arise:</p> <ul dir="auto"> <li>Local module (in git repo) has to use <code class="notranslate">fs</code> but remote module has to use <code class="notranslate">fetch</code>.</li> <li>The assets cannot be cached.</li> <li>The assets cannot be bundled.</li> </ul> <h2 dir="auto">Suggestion</h2> <p dir="auto">Add some way to annotate assets using comments, and <code class="notranslate">fetch</code> should support those assets. For example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// @deno-asset './assets/foo.wasm' // @deno-asset './assets/bar.png' await fetch(new URL('./assets/foo.wasm', import.meta.url)) await fetch(new URL('./assets/bar.png', import.meta.url)) // --allow-net is not required since it reads from cache"><pre class="notranslate"><span class="pl-c">// <span class="pl-k">@deno</span>-asset './assets/foo.wasm'</span> <span class="pl-c">// <span class="pl-k">@deno</span>-asset './assets/bar.png'</span> <span class="pl-k">await</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">URL</span><span class="pl-kos">(</span><span class="pl-s">'./assets/foo.wasm'</span><span class="pl-kos">,</span> <span class="pl-k">import</span><span class="pl-kos">.</span><span class="pl-c1">meta</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-k">await</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">URL</span><span class="pl-kos">(</span><span class="pl-s">'./assets/bar.png'</span><span class="pl-kos">,</span> <span class="pl-k">import</span><span class="pl-kos">.</span><span class="pl-c1">meta</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c">// --allow-net is not required since it reads from cache</span></pre></div> <h2 dir="auto">Alternatives</h2> <p dir="auto"><del>There is <a href="https://github.com/tc39/proposal-asset-references">asset reference proposal</a> that is likely not going to get to stage 3 anytime soon.</del></p> <p dir="auto"><a href="https://github.com/tc39/proposal-import-assertions">import assertion proposal</a> had reached stage 3.</p>
1
<p dir="auto">SVC's and LinearSVC's (I didn't check other classifiers) decision_function in binary classification case returns values lower than 0 when predict returns 0, and &gt;0 when predict returns 1.<br> So this part of code is wrong:</p> <p dir="auto">pred = estimators[k].predict(X)<br> score = _predict_binary(estimators[k], X)<br> scores[:, i] += score<br> scores[:, j] -= score<br> votes[pred == 0, i] += 1<br> votes[pred == 1, j] += 1</p> <p dir="auto">In SVM case we should substract score from scores[:,i] and add to scores[:,j]</p>
<p dir="auto">In multiclass.py, function predict_ovo(estimators, classes, X), it has:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" scores[:, i] += score scores[:, j] -= score"><pre class="notranslate"><code class="notranslate"> scores[:, i] += score scores[:, j] -= score </code></pre></div> <p dir="auto">However, I think it should be:<br> scores[:, i] -= score<br> scores[:, j] += score</p> <p dir="auto">I think the idea here should be, when score &gt; 0, the positive class increase its value in 'scores by' 'score', and the negative class decrease its value by 'score'. Because in case of tie, we use 'argmax(scores)' to determine the class, so the 'scores' should represent 'how certain we are about the class'. Therefore in the original code, 'i' should represent the positive class while 'j' represents the negative class.</p> <p dir="auto">Since from 'pred' and 'score' you find out: when score is positive, it has the label of '1' and otherwise '0', it means '1' is the positive class label and '0' is the negative class label.</p> <p dir="auto">However, in _fit_ovo_binary(estimator, X, y, i, j), with 'i' and 'j' being the same as used in predict_ovo(estimators, classes, X):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="y[y == i] = 0 y[y == j] = 1"><pre class="notranslate"><code class="notranslate">y[y == i] = 0 y[y == j] = 1 </code></pre></div> <p dir="auto">We know that 'i' &lt; 'j'. Since 1 is the positive class label, then 'j' represent the positive class. i.e. for a classifier trained between 'i' and 'j' with 'i' &lt; 'j', 'j' is the positive class.</p> <p dir="auto">Back to function predict_ovo(estimators, classes, X), we see from line:<br> scores[:, j] -= score</p> <p dir="auto">If score &gt; 0, we decrease the value corresponding to class 'j', which is incorrect.</p> <p dir="auto">Hope it is not too verbose.</p>
1
<p dir="auto">by <strong>astrange</strong>:</p> <pre class="notranslate">Running the binary distribution of go 1.2 (or any of its RCs) on our FreeBSD 9.2 servers immediately crashes. The same applies for go_bootstrap to build it from source. go 1.1 runs fine. # uname -a FreeBSD yyy 9.2-RELEASE FreeBSD 9.2-RELEASE #6: Sun Oct 13 05:14:05 EDT 2013 xxx@yyy:/usr/obj/usr/src/sys/ZZZ amd64 # setenv GOROOT `pwd` # sysctl hw.ncpu hw.ncpu: 16 # gdb761 ./bin/go GNU gdb (GDB) 7.6.1 [GDB v7.6.1 for FreeBSD] Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later &lt;<a href="http://gnu.org/licenses/gpl.html&gt;" rel="nofollow">http://gnu.org/licenses/gpl.html&gt;</a>; This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd9.2". For bug reporting instructions, please see: &lt;<a href="http://www.gnu.org/software/gdb/bugs/&gt;" rel="nofollow">http://www.gnu.org/software/gdb/bugs/&gt;</a>;... Reading symbols from /usr/home/astrange/go/bin/go...done. warning: Missing auto-load scripts referenced in section .debug_gdb_scripts of file /usr/home/astrange/go/bin/go Use `info auto-load python [REGEXP]' to list them. (gdb) run Starting program: /usr/home/astrange/go/./bin/go [New LWP 100295] [New Thread 801407400 (LWP 100295)] Program received signal SIGBUS, Bus error. [Switching to Thread 801407400 (LWP 100295)] 0x0000000000476dc7 in runtime.sysctl () at /usr/local/go/src/pkg/runtime/sys_freebsd_amd64.s:289 289 /usr/local/go/src/pkg/runtime/sys_freebsd_amd64.s: No such file or directory. (gdb) bt #0 0x0000000000476dc7 in runtime.sysctl () at /usr/local/go/src/pkg/runtime/sys_freebsd_amd64.s:289 #1 0x0000000000463847 in getncpu () at /usr/local/go/src/pkg/runtime/os_freebsd.c:35 #2 0x0000000000463b5a in runtime.osinit () at /usr/local/go/src/pkg/runtime/os_freebsd.c:127 #3 0x0000000000474b00 in _rt0_go () at /usr/local/go/src/pkg/runtime/asm_amd64.s:86 #4 0x0000000000000001 in ?? () #5 0x00007fffffffda78 in ?? () #6 0x0000000000000001 in ?? () #7 0x00007fffffffda78 in ?? () #8 0x0000000800b71800 in ?? () from /libexec/ld-elf.so.1 #9 0x0000000800b83000 in ?? () #10 0x0000000000000000 in ?? () (gdb)</pre>
<pre class="notranslate">What steps will reproduce the problem? 6g bug.go What is the expected output? What do you see instead? Expected: should compile OK, because r1 is a named return value. Actual: bug.go:7: r1 declared and not used What is your $GOOS? $GOARCH? darwin, amd64 Which revision are you using? (hg identify) ed4677dbdbbc tip Please provide any additional information below.</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/507/0/bug.go" rel="nofollow">bug.go</a> (162 bytes)</li> </ol>
0
<p dir="auto">Reported at <a href="https://discuss.pytorch.org/t/torch-multiprocessing-rebuild-cuda-tensor-having-trouble-with-bn-num-batches-tracked/27453" rel="nofollow">https://discuss.pytorch.org/t/torch-multiprocessing-rebuild-cuda-tensor-having-trouble-with-bn-num-batches-tracked/27453</a></p> <p dir="auto">Post copied below:</p> <p dir="auto">I am trying to pass a set of gpu models to a pool of processes, so something like the example code below:<br> (torch version 1.0.0.dev20181015)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch.multiprocessing as mp mp.set_start_method('spawn', force=True) import torch import torch.nn as nn import time def run(inpt): workers, worker_queue = inpt while worker_queue.empty(): time.sleep(0.1) worker_id = worker_queue.get() model = workers[worker_id] data = torch.rand(5, 10) data = data.cuda() with torch.no_grad(): result = model(data) worker_queue.put(worker_id) return result def main(): workers = [] worker_queue = mp.Manager().Queue() # mp.Queue() for worker_id in range(10): worker_model = nn.BatchNorm1d(10) worker_model.cuda() worker_model.eval() workers.append(worker_model) worker_queue.put(worker_id) pools = mp.Pool(10) jobs = [(workers, worker_queue) for _ in range(20)] # jobs result = [] for res_id, res in enumerate(pools.imap_unordered(run, jobs)): result.append(res) print(result) if __name__==&quot;__main__&quot;: main()"><pre class="notranslate"><code class="notranslate">import torch.multiprocessing as mp mp.set_start_method('spawn', force=True) import torch import torch.nn as nn import time def run(inpt): workers, worker_queue = inpt while worker_queue.empty(): time.sleep(0.1) worker_id = worker_queue.get() model = workers[worker_id] data = torch.rand(5, 10) data = data.cuda() with torch.no_grad(): result = model(data) worker_queue.put(worker_id) return result def main(): workers = [] worker_queue = mp.Manager().Queue() # mp.Queue() for worker_id in range(10): worker_model = nn.BatchNorm1d(10) worker_model.cuda() worker_model.eval() workers.append(worker_model) worker_queue.put(worker_id) pools = mp.Pool(10) jobs = [(workers, worker_queue) for _ in range(20)] # jobs result = [] for res_id, res in enumerate(pools.imap_unordered(run, jobs)): result.append(res) print(result) if __name__=="__main__": main() </code></pre></div> <p dir="auto">However, when there is BatchNorm, the following error is raised in torch._utils.rebuild_cuda_tensor:</p> <p dir="auto">RuntimeError: Expected object of data type 4 but got data type 6 for argument <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="171402941" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/2" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/2/hovercard" href="https://github.com/pytorch/pytorch/issues/2">#2</a> 'source'<br> It is probably caused by the attribute bn.num_batches_tracked, which is supposed to be type 4 (int64_t), but looks like the error message is reporting data type 6 (float). What is likely the cause of this issue? Is there any way to fix it?</p>
<p dir="auto">I was trying to send multiple tensors in tuple via <code class="notranslate">multiprocessing.Queue</code> to anther process. However when I access to a cuda LongTensor, I get this error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeError: Attempt to access Storage having data type Float as data type Long"><pre class="notranslate"><code class="notranslate">RuntimeError: Attempt to access Storage having data type Float as data type Long </code></pre></div> <h2 dir="auto">Code example</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch import torch.multiprocessing as mp import time def producer(queue): while True: a = torch.ones(2,2).float().cuda() idx = torch.LongTensor([[0, 0], [0, 1]]).cuda() queue.put((a, idx)) def consumer(queue): while True: a, idx = queue.get() print(idx.type()) print(idx) if __name__ == '__main__': mp.set_start_method('spawn') queue = mp.Queue() p = mp.Process(target=producer, args=(queue,)) c = mp.Process(target=consumer, args=(queue,)) p.start() c.start() time.sleep(10) p.join() c.join()"><pre class="notranslate"><code class="notranslate">import torch import torch.multiprocessing as mp import time def producer(queue): while True: a = torch.ones(2,2).float().cuda() idx = torch.LongTensor([[0, 0], [0, 1]]).cuda() queue.put((a, idx)) def consumer(queue): while True: a, idx = queue.get() print(idx.type()) print(idx) if __name__ == '__main__': mp.set_start_method('spawn') queue = mp.Queue() p = mp.Process(target=producer, args=(queue,)) c = mp.Process(target=consumer, args=(queue,)) p.start() c.start() time.sleep(10) p.join() c.join() </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="torch.cuda.LongTensor Process Process-2: Traceback (most recent call last): File &quot;***/lib/python3.5/multiprocessing/process.py&quot;, line 252, in _bootstrap self.run() File &quot;***/lib/python3.5/multiprocessing/process.py&quot;, line 93, in run self._target(*self._args, **self._kwargs) File &quot;queue_test.py&quot;, line 15, in consumer print(idx) File &quot;***/lib/python3.5/site-packages/torch/tensor.py&quot;, line 57, in __repr__ return torch._tensor_str._str(self) File &quot;***/lib/python3.5/site-packages/torch/_tensor_str.py&quot;, line 256, in _str formatter = _Formatter(get_summarized_data(self) if summarize else self) File &quot;***/lib/python3.5/site-packages/torch/_tensor_str.py&quot;, line 76, in __init__ copy = torch.empty(tensor.size(), dtype=torch.long).copy_(tensor).view(tensor.nelement()) RuntimeError: Attempt to access Storage having data type Float as data type Long"><pre class="notranslate"><code class="notranslate">torch.cuda.LongTensor Process Process-2: Traceback (most recent call last): File "***/lib/python3.5/multiprocessing/process.py", line 252, in _bootstrap self.run() File "***/lib/python3.5/multiprocessing/process.py", line 93, in run self._target(*self._args, **self._kwargs) File "queue_test.py", line 15, in consumer print(idx) File "***/lib/python3.5/site-packages/torch/tensor.py", line 57, in __repr__ return torch._tensor_str._str(self) File "***/lib/python3.5/site-packages/torch/_tensor_str.py", line 256, in _str formatter = _Formatter(get_summarized_data(self) if summarize else self) File "***/lib/python3.5/site-packages/torch/_tensor_str.py", line 76, in __init__ copy = torch.empty(tensor.size(), dtype=torch.long).copy_(tensor).view(tensor.nelement()) RuntimeError: Attempt to access Storage having data type Float as data type Long </code></pre></div> <h2 dir="auto">System Info</h2> <p dir="auto">PyTorch version: 0.4.1<br> Is debug build: No<br> CUDA used to build PyTorch: 8.0.61</p> <p dir="auto">OS: Ubuntu 14.04.5 LTS<br> GCC version: (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4<br> CMake version: version 3.11.0</p> <p dir="auto">Python version: 3.5<br> Is CUDA available: Yes<br> CUDA runtime version: 8.0.61<br> GPU models and configuration:<br> GPU 0: Tesla P100-PCIE-16GB<br> GPU 1: Tesla P100-PCIE-16GB</p> <p dir="auto">Nvidia driver version: 375.66<br> cuDNN version: Probably one of the following:<br> /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so<br> /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5.1.10<br> /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.6<br> /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.6.0.21<br> /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn_static.a</p> <p dir="auto">Versions of relevant libraries:<br> [pip] numpy (1.13.3)<br> [pip] torch (0.4.1)<br> [pip] torchvision (0.2.1)<br> [conda] torch 0.4.1 <br> [conda] torchvision 0.2.1 </p>
1
<p dir="auto">We now can use kv-storage in chrome with:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import storageArea from 'std:kv-storage';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">storageArea</span> <span class="pl-k">from</span> <span class="pl-s">'std:kv-storage'</span><span class="pl-kos">;</span></pre></div> <p dir="auto">How about support similar API for deno_std?</p> <p dir="auto">It may looks like this, and imports the std module with the same version as the deno you installed.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { serve } from 'deno_std:http/server';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">serve</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'deno_std:http/server'</span><span class="pl-kos">;</span></pre></div> <p dir="auto">And it's good to keep the same version between deno and deno_std modules.</p>
<p dir="auto">There is a <a href="https://github.com/tc39/proposal-javascript-standard-library/">Stage 1 TC39</a> proposal for "built in" browser modules to make a standard library for JavaScript. It is proposing a <a href="https://github.com/tc39/proposal-javascript-standard-library/#protected-namespace">protected namespace</a> of <code class="notranslate">"std:"</code> for the module specifiers. We should consider adopting this for potential standard built in modules.</p>
1
<ul dir="auto"> <li>Electron version: N/A</li> <li>Operating system: Mac or Windows</li> </ul> <p dir="auto">I don't know how I've only discovered these methods now <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji> but anyway...</p> <p dir="auto">Would an app get rejected by the MAS if it used <a href="http://electron.atom.io/docs/api/app/#appsetloginitemsettingssettings-macos-windows" rel="nofollow"><code class="notranslate">app.setLoginItemSettings</code></a> for example? The <a href="http://electron.atom.io/docs/tutorial/mac-app-store-submission-guide/#limitations-of-mas-build" rel="nofollow">Mac App Store submission guide</a> doesn't list it as a limitation but I would assume that it isn't MAS-friendly. Although, it would be <em>great</em> if it was compatible. I guess it depends on how it's implemented underneath (i.e. whether it reaches out of the sandbox or not, etc.)</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kevinsawicki/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kevinsawicki">@kevinsawicki</a></p> <hr> <p dir="auto">Related: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="177555253" data-permission-text="Title is private" data-url="https://github.com/Teamwork/node-auto-launch/issues/43" data-hovercard-type="issue" data-hovercard-url="/Teamwork/node-auto-launch/issues/43/hovercard" href="https://github.com/Teamwork/node-auto-launch/issues/43">Teamwork/node-auto-launch#43</a></p>
<h3 dir="auto">Preflight Checklist</h3> <p dir="auto">I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.<br> 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.<br> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</p> <h3 dir="auto">Electron Version</h3> <p dir="auto">12.0.2</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">Windows</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">Windows 10 Home Single Language 20H2 19042.867</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">ia32</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto">11.4.2</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">This script should print to all existing printers. The printers "Microsoft XPS Document Writer" and "Microsoft Print to PDF" should block the loop and ask for file name.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">All prints will return success, but print will happen always only to print set as default in system.</p> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><a href="https://gist.github.com/fc8b4a9fbf986965c51e8f92b8ddb39f">https://gist.github.com/fc8b4a9fbf986965c51e8f92b8ddb39f</a></p> <p dir="auto">Good way to run the test is to set printer "Microsoft Print To PDF" as default printer.</p>
0
<p dir="auto">When rapidly erasing lines from a scrolling text box, the text that should be hidden due to it being outside of the box incorrectly appears.</p> <p dir="auto">To reproduce:</p> <ol dir="auto"> <li>Open Flutter gallery</li> <li>Select "Material"</li> <li>Select "Text Fields"</li> <li>Type many lines of short text in the "Life story" section (at least 6, the more the better)</li> <li>Rapidly erase the lines. The first few hidden lines will appear as the text scrolls up.</li> </ol>
<p dir="auto">After several lines, including some blank lines, are inserted in a multiline TextField, press and hold the delete key. When the blank lines are deleted the viewport's text contents suddenly and temporarily appear above the text field.</p> <p dir="auto">See <a href="https://youtu.be/Nx0Go-4oPRg" rel="nofollow">https://youtu.be/Nx0Go-4oPRg</a></p>
1
<p dir="auto">One is in <code class="notranslate">impl String</code> in libcollections/string.rs and has the signature <code class="notranslate">fn from_str(string: &amp;str) -&gt; String</code>.</p> <p dir="auto">The other is in <code class="notranslate">impl FromStr for String</code> in libstd/from_str.rs and has the signature <code class="notranslate">fn from_str(s: &amp;str) -&gt; Option&lt;String&gt;</code>. In fact, FromStr::from_str() actually calls String::from_str().</p> <p dir="auto">This situation probably came about because <code class="notranslate">struct String</code> exists in libcollections, which you could conceivably have without libstd in a freestanding environment, and the FromStr trait lives in libstd.</p> <p dir="auto">Conceivably, FromStr could be moved to a different crate, or a dependency on libstd could be introduced to libcollections.</p>
<p dir="auto">I noticed that the docs on Iterator differ depending on if you look a <a href="http://doc.rust-lang.org/core/iter/trait.Iterator.html" rel="nofollow">core::iter::Iterator</a> or <a href="http://doc.rust-lang.org/std/iter/trait.Iterator.html" rel="nofollow">std::iter::Iterator</a>. In the <code class="notranslate">std</code> version the declaration of the lifetime <code class="notranslate">'r</code> in the methods is missing.<br> Im not sure if this is a bug or intended but its confusing if you look at the <code class="notranslate">std</code> version and wonder where lifetime <code class="notranslate">'r</code> comes from.</p>
0
<p dir="auto">Tested with this code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="app.setPath(&quot;appData&quot;, './test'); app.setPath(&quot;userData&quot;, './test');"><pre class="notranslate"><code class="notranslate">app.setPath("appData", './test'); app.setPath("userData", './test'); </code></pre></div> <ul dir="auto"> <li>Electron version: 0.37.2</li> <li>Operating system: Windows 10</li> </ul>
<p dir="auto">I'm using <code class="notranslate">app.setPath</code> to change the location where <code class="notranslate">userData</code> and <code class="notranslate">cache</code> are stored and it works (data is saved to the new location). The problem is that even due I set the paths before the <code class="notranslate">ready</code> event, the default location (<code class="notranslate">%APPDATA%/productName</code>) is still created.</p> <p dir="auto">To test this, I deleted the default path and added to the top of my main.js the following lines:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var fs = require('fs'); console.log('Exists?', fs.existsSync('C:/Users/eran.t/AppData/Roaming/foo'));"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">fs</span> <span class="pl-c1">=</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Exists?'</span><span class="pl-kos">,</span> <span class="pl-s1">fs</span><span class="pl-kos">.</span><span class="pl-en">existsSync</span><span class="pl-kos">(</span><span class="pl-s">'C:/Users/eran.t/AppData/Roaming/foo'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">The output was <code class="notranslate">Exists? true</code>, which means the directory was created by some initialization code (it looks like it comes from <a href="https://github.com/atom/electron/blob/c441dd143690aab71a925f0b941a6d9760768fa5/atom/browser/lib/init.coffee#L88-L89">here</a>).</p> <p dir="auto">Is it possible to move the creation of the directories to when we actually need them (lazy creation), which will give the developer time to change them?</p> <p dir="auto">To circumvent the issue, one can simply delete the old path using <code class="notranslate">fs.rmdir</code> after changing the path to the new location, but it's not ideal.</p>
1
<p dir="auto">Should we drop support for OS X 10.6 Snow Leopard in Go 1.5? In Go 1.6?<br> It's 5 years old and not supported by Apple anymore.<br> It was the last OS X to support 32-bit machines, which is why we've kept it this long.<br> But there are problems with cmd/cgo on these old systems that we're just never going to fix (for example <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51287539" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/8009" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/8009/hovercard" href="https://github.com/golang/go/issues/8009">#8009</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="58622500" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/9967" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/9967/hovercard" href="https://github.com/golang/go/issues/9967">#9967</a>).</p> <p dir="auto">We should still keep darwin/386 until Apple stops running 32-bit binaries on 64-bit systems, since it's useful to be able to run 386 all.bash on OS X machines.</p>
<p dir="auto">As discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53296882" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/9495" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/9495/hovercard" href="https://github.com/golang/go/issues/9495">#9495</a>, it might be time to end our support for OS X 10.6.</p> <p dir="auto">I'm trying to find Apple's policy on supporting older versions of OS X, but it appears they haven't published anything publicly. (Which seems outrageous to me, but whatever.)</p> <p dir="auto">The major concern, I believe, is that OS X 10.6 is the newest version of OS X that runs on pre-EFI macs (or something?). I think <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/robpike/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/robpike">@robpike</a> actually has one of these old machines.</p>
1
<p dir="auto">When I have a structure like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="├─┬ node_modules │ ├── [email protected] │ ├─┬ [email protected] │ │ └─┬ node_modules │ │ ├── [email protected] │ │ └── [email protected] │ └── [email protected] └── app.js"><pre class="notranslate"><code class="notranslate">├─┬ node_modules │ ├── [email protected] │ ├─┬ [email protected] │ │ └─┬ node_modules │ │ ├── [email protected] │ │ └── [email protected] │ └── [email protected] └── app.js </code></pre></div> <p dir="auto">And load these modules in my app.js like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Backbone from &quot;backbone&quot;; import Marionette from &quot;backbone.marionette&quot;; import &quot;backbone.babysitter&quot;;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">Backbone</span> <span class="pl-k">from</span> <span class="pl-s">"backbone"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-v">Marionette</span> <span class="pl-k">from</span> <span class="pl-s">"backbone.marionette"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s">"backbone.babysitter"</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Now when I watch in dev tools at the sources tab, it show that the page has loaded 2 backbones and 2 backbone.babysitters. First the self defined versions, and secondly the dependencies of Marionette:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/6d65814b671bd781ee5fda4e4fb84d2fc2d179f0aa6ed7129fc2a007c23cb723/687474703a2f2f7331332e706f7374696d672e6f72672f6431796176627a79762f7765627061636b5f736f75726365732e706e67"><img src="https://camo.githubusercontent.com/6d65814b671bd781ee5fda4e4fb84d2fc2d179f0aa6ed7129fc2a007c23cb723/687474703a2f2f7331332e706f7374696d672e6f72672f6431796176627a79762f7765627061636b5f736f75726365732e706e67" alt="webpack-sources" data-canonical-src="http://s13.postimg.org/d1yavbzyv/webpack_sources.png" style="max-width: 100%;"></a></p> <p dir="auto">How can I ensure that webpack provides the self defined packages to Marionette?</p>
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong><br> When I have one entry point for a JS file, everything is fine. However, as soon as I add another entry point including a JS file (e.g. LESS file entry points won't change anything), webpack creates a chunk file (like <code class="notranslate">123.bundle.js</code>), even though I set the <code class="notranslate">LimitChunkCountPlugin</code> <code class="notranslate">maxChunks</code> to 1. There are no common modules in these 2 entry points and no async imports.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module.exports = { mode: isProd ? 'production' : 'development', devServer: { publicPath: '/', // webpack bug, should default to '/' contentBase: path.join(__dirname, 'build'), }, entry: { public: [ src('js/public.js'), src('less/public.less') ], video: [ src('less/video.less'), src('js/player.js') ], // adding this js is causing 'public' to code split application: src('less/application.less'), }, output: { path: path.resolve(__dirname, 'build/'), filename: 'js/[name].bundle.js' }, module: { rules: [{ test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', options: { presets: [ [ &quot;@babel/preset-env&quot;, { &quot;useBuiltIns&quot;: &quot;usage&quot;, &quot;corejs&quot;: 3, } ] ] } } }, { test: /\.less$/, use: [ MiniCssExtractPlugin.loader, 'css-loader', { loader: 'postcss-loader', options: { plugins: () =&gt; isProd ? [autoprefixer(), cssnano()] : [] } }, 'less-loader' ] }, { test: /\.eot$/, loader: 'ignore-loader' } ] }, plugins: [ new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }), new MiniCssExtractPlugin({ filename: 'css/[name].bundle.css', chunkFilename: '[name].css', }) ] };"><pre class="notranslate"><code class="notranslate">module.exports = { mode: isProd ? 'production' : 'development', devServer: { publicPath: '/', // webpack bug, should default to '/' contentBase: path.join(__dirname, 'build'), }, entry: { public: [ src('js/public.js'), src('less/public.less') ], video: [ src('less/video.less'), src('js/player.js') ], // adding this js is causing 'public' to code split application: src('less/application.less'), }, output: { path: path.resolve(__dirname, 'build/'), filename: 'js/[name].bundle.js' }, module: { rules: [{ test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', options: { presets: [ [ "@babel/preset-env", { "useBuiltIns": "usage", "corejs": 3, } ] ] } } }, { test: /\.less$/, use: [ MiniCssExtractPlugin.loader, 'css-loader', { loader: 'postcss-loader', options: { plugins: () =&gt; isProd ? [autoprefixer(), cssnano()] : [] } }, 'less-loader' ] }, { test: /\.eot$/, loader: 'ignore-loader' } ] }, plugins: [ new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }), new MiniCssExtractPlugin({ filename: 'css/[name].bundle.css', chunkFilename: '[name].css', }) ] }; </code></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong><br> It's expected to not create any chunks since maxChunks is set to 1.<br> Also I would expect it to behave consistently, no matter if I have one or many entry points.</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5.10.3<br> Node.js version: v12.15.0<br> Operating System: Win7</p>
0
<p dir="auto">When you look at modified files through Command+Shift+B you may have modified multiple files with the same leaf filename. For example, in a rails project you may have lib/my_lib.rb and config/initializers/my_lib.rb. In this case only one of them shows up in the list of modified files, in my case it was the config one.</p>
<p dir="auto">Open feedback Issues as me</p> <p dir="auto">We have tokens for the current user now, right? Pretty sure the feedback widget is using atom-bot because <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/probablycorey/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/probablycorey">@probablycorey</a> was getting it set up fast while other things were going on. Does it still need to use atom-bot?</p> <p dir="auto">User: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jbarnette/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jbarnette">@jbarnette</a><br> Atom Version: 0.43.0<br> User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.43.0 Safari/537.36</p>
0
<p dir="auto">I'm working on a PR, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="475113064" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/32748" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/32748/hovercard" href="https://github.com/JuliaLang/julia/pull/32748">#32748</a>, for a macro wraps <code class="notranslate">ccall</code> in more Julia-like syntax. An issue that's being discussed a lot is the accommodation of varargs of different types. I had the impression from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vtjnash/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vtjnash">@vtjnash</a> that this was supported by <code class="notranslate">foreigncall</code>, but in retrospect, it's possible I misunderstood what he was saying.</p> <p dir="auto">I'm not in a position to implement this myself without first learning Scheme and LLVM. I should really do those things, but it may not be the most efficient way to get this change in.</p>
<p dir="auto">proposal: introduce <code class="notranslate">va_list</code> type for <code class="notranslate">ccall</code> / <code class="notranslate">cfunction</code></p> <p dir="auto">usage:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ccall(:abc, Int, (A, B, va_list{(C,D,E)}), a,b,c,d,e) # int abc(A, B, ...) {} # { # abc(a,b,c,d,e); # } va = va_list(c,d,e) ccall(:abc, Int, (A, B, va_list), a, b, va) ccall(:abc, Int, (A, B, va_list{()}), a, b, va) # int abc(A, B, va_list) {} # { # va_list ap; # va_start(ap, X); # abc(A,B, ap); # }"><pre class="notranslate"><span class="pl-c1">ccall</span>(<span class="pl-c1">:abc</span>, Int, (A, B, va_list{(C,D,E)}), a,b,c,d,e) <span class="pl-c"><span class="pl-c">#</span> int abc(A, B, ...) {}</span> <span class="pl-c"><span class="pl-c">#</span> {</span> <span class="pl-c"><span class="pl-c">#</span> abc(a,b,c,d,e);</span> <span class="pl-c"><span class="pl-c">#</span> }</span> va <span class="pl-k">=</span> <span class="pl-c1">va_list</span>(c,d,e) <span class="pl-c1">ccall</span>(<span class="pl-c1">:abc</span>, Int, (A, B, va_list), a, b, va) <span class="pl-c1">ccall</span>(<span class="pl-c1">:abc</span>, Int, (A, B, va_list{()}), a, b, va) <span class="pl-c"><span class="pl-c">#</span> int abc(A, B, va_list) {}</span> <span class="pl-c"><span class="pl-c">#</span> {</span> <span class="pl-c"><span class="pl-c">#</span> va_list ap;</span> <span class="pl-c"><span class="pl-c">#</span> va_start(ap, X);</span> <span class="pl-c"><span class="pl-c">#</span> abc(A,B, ap);</span> <span class="pl-c"><span class="pl-c">#</span> }</span></pre></div> <p dir="auto">definitions:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="immutable va_list{T&lt;:Tuple} # opaque va_list(args...) = (T == () ? new(magic...) : error(&quot;cannot construct a typed va_list&quot;)) end va_list(values...) = va_list{()}(values...)"><pre class="notranslate">immutable va_list{T<span class="pl-k">&lt;:</span><span class="pl-c1">Tuple</span>} <span class="pl-c"><span class="pl-c">#</span> opaque</span> <span class="pl-en">va_list</span>(args<span class="pl-k">...</span>) <span class="pl-k">=</span> (T <span class="pl-k">==</span> () <span class="pl-k">?</span> <span class="pl-c1">new</span>(magic<span class="pl-k">...</span>) <span class="pl-k">:</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>cannot construct a typed va_list<span class="pl-pds">"</span></span>)) <span class="pl-k">end</span> <span class="pl-en">va_list</span>(values<span class="pl-k">...</span>) <span class="pl-k">=</span> <span class="pl-c1">va_list</span><span class="pl-c1">{()}</span>(values<span class="pl-k">...</span>)</pre></div> <p dir="auto">thoughts? improvements? should I make a pull request?</p>
1
<p dir="auto">Desire: make docs.flutter.io an excellent resource for learning how to use Flutter.</p> <p dir="auto">Challenge: for some domains (e.g. Input) that do not have their own library and cut across multiple libraries, we don't seem to have an easy way to author holistic docs. We'd like a "starting point" for a concept, one that is easy to identify when visiting docs.flutter.io.</p> <p dir="auto">Strawman proposal: something like a <code class="notranslate">@category</code> that can be used to link various classes and libraries. We also need a way to say "this page is the home page for a <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/category/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/category">@category</a>"</p> <p dir="auto">(I thought we had an issue open for this, but couldn't find it on either <a href="https://github.com/dart-lang/dartdoc/issues">https://github.com/dart-lang/dartdoc/issues</a> or flutter.io/issues)</p>
<p dir="auto">As we learn from UX studies, we noticed that we don't currently have an easy way for a developer to understand in which "area" they are looking at a concept. For example, if they are looking at the Padding class in the API docs, "where" are they? What kind of conceptual thing is this?</p> <p dir="auto">From a current Flutter developer: "More broadly, a tricky part of onboarding was simply familiarizing with the wide range of specialized widgets. "</p> <p dir="auto">(Note: our library organization in the framework is too coarse-grained to convey this grouping. For example, there are a lot of conceptual areas inside the widget library.)</p> <p dir="auto">Vision: a user looking at a thing in the API docs should easily understand in which group/AreaOfInterest/Layer it belongs, and then easily see other related things. For example, when looking at Padding, the user can easily see "This is part of the <em>layout</em> area of interest. Oh, these are the other helpful layout ideas."</p> <p dir="auto">Strawman: a way to annotate the thing (class/function/etc) to put it in a "doc grouping". Then, the dartdoc tool could be taught how to indicate which group the thing is in.</p>
1
<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] Microsoft Windows [Version 10.0.18362.175] Windows Terminal version (if applicable): 0.2.1831.0 Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt] Microsoft Windows [Version 10.0.18362.175] Windows Terminal version (if applicable): 0.2.1831.0 Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Change "defaultProfile" to anything other than a valid profile</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Defaults to an existing profile or uses a default</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Nothing</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <h1 dir="auto">Expected behavior</h1> <h1 dir="auto">Actual behavior</h1> <p dir="auto">不能切换中文输入法</p>
0
<p dir="auto">var oldArray = [1,2,3,4,5,3];</p> <p dir="auto">// Only change code below this line.</p> <p dir="auto">var newArray = oldArray.map(function(val){<br> return val * 3;<br> });</p> <p dir="auto">// Only change code above this line.</p> <p dir="auto">(function() {return newArray;})();</p>
<p dir="auto">15 is a duplicate of 14.</p>
0
<p dir="auto">I ran into an issue on our cluster running v1.0 with too many rules being specified for our node security group. Basically, security groups generated by Kubernetes were not cleaned up and their references in the node security group were also left behind. We hit an API limit (seems like it was ~50 rules defined on our node security group) which prevented any more load balancers from getting created.</p> <p dir="auto">I started looking into this and it seems the issue still exists on master. From a cluster I built off of master (about a week ago) I was able to reproduce this issue.</p> <p dir="auto">The controller manager logs look like this (filtered to aws.go and cleaned up):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="aws.go:1688] EnsureTCPLoadBalancer(a4981847bb57811e5b53d0ed29d18a59, us-east-1, \u003cnil\u003e, [0xc2083b5720], [])\n&quot;,&quot;stream&quot;:&quot;stderr&quot;,&quot;time&quot;:&quot;2016-01-13T21:58:00.802283892Z&quot;} aws.go:1933] Removing rule for traffic from the load balancer (sg-294fcd50) to instance (sg-a1bb39d8)\n&quot;,&quot;stream&quot;:&quot;stderr&quot;,&quot;time&quot;:&quot;2016-01-13T21:58:01.348864017Z&quot;} aws.go:1960] Revoking ingress was not needed; concurrent change? groupId=sg-a1bb39d8\n&quot;,&quot;stream&quot;:&quot;stderr&quot;,&quot;time&quot;:&quot;2016-01-13T21:58:01.412753316Z&quot;} aws.go:1796] Loadbalancer a4981847bb57811e5b53d0ed29d18a59 has DNS name a4981847bb57811e5b53d0ed29d18a59-34625035.us-east-1.elb.amazonaws.com\n&quot;,&quot;stream&quot;:&quot;stderr&quot;,&quot;time&quot;:&quot;2016-01-13T21:58:01.487755376Z&quot;} aws.go:1980] Load balancer already deleted: a492de23eb57811e5b53d0ed29d18a59\n&quot;,&quot;stream&quot;:&quot;stderr&quot;,&quot;time&quot;:&quot;2016-01-13T21:59:43.076849385Z&quot;} aws.go:1933] Removing rule for traffic from the load balancer (sg-294fcd50) to instance (sg-a1bb39d8)\n&quot;,&quot;stream&quot;:&quot;stderr&quot;,&quot;time&quot;:&quot;2016-01-13T21:59:44.271066717Z&quot;} aws.go:1960] Revoking ingress was not needed; concurrent change? groupId=sg-a1bb39d8\n&quot;,&quot;stream&quot;:&quot;stderr&quot;,&quot;time&quot;:&quot;2016-01-13T21:59:44.31932039Z&quot;} aws.go:2034] Ignoring DependencyViolation while deleting load-balancer security group (sg-294fcd50), assuming because LB is in process of deleting\n&quot;,&quot;stream&quot;:&quot;stderr&quot;,&quot;time&quot;:&quot;2016-01-13T21:59:44.505570103Z&quot;} aws.go:2053] Waiting for load-balancer to delete so we can delete security groups: a4981847bb57811e5b53d0ed29d18a59\n&quot;,&quot;stream&quot;:&quot;stderr&quot;,&quot;time&quot;:&quot;2016-01-13T21:59:44.505877497Z&quot;}"><pre class="notranslate"><code class="notranslate">aws.go:1688] EnsureTCPLoadBalancer(a4981847bb57811e5b53d0ed29d18a59, us-east-1, \u003cnil\u003e, [0xc2083b5720], [])\n","stream":"stderr","time":"2016-01-13T21:58:00.802283892Z"} aws.go:1933] Removing rule for traffic from the load balancer (sg-294fcd50) to instance (sg-a1bb39d8)\n","stream":"stderr","time":"2016-01-13T21:58:01.348864017Z"} aws.go:1960] Revoking ingress was not needed; concurrent change? groupId=sg-a1bb39d8\n","stream":"stderr","time":"2016-01-13T21:58:01.412753316Z"} aws.go:1796] Loadbalancer a4981847bb57811e5b53d0ed29d18a59 has DNS name a4981847bb57811e5b53d0ed29d18a59-34625035.us-east-1.elb.amazonaws.com\n","stream":"stderr","time":"2016-01-13T21:58:01.487755376Z"} aws.go:1980] Load balancer already deleted: a492de23eb57811e5b53d0ed29d18a59\n","stream":"stderr","time":"2016-01-13T21:59:43.076849385Z"} aws.go:1933] Removing rule for traffic from the load balancer (sg-294fcd50) to instance (sg-a1bb39d8)\n","stream":"stderr","time":"2016-01-13T21:59:44.271066717Z"} aws.go:1960] Revoking ingress was not needed; concurrent change? groupId=sg-a1bb39d8\n","stream":"stderr","time":"2016-01-13T21:59:44.31932039Z"} aws.go:2034] Ignoring DependencyViolation while deleting load-balancer security group (sg-294fcd50), assuming because LB is in process of deleting\n","stream":"stderr","time":"2016-01-13T21:59:44.505570103Z"} aws.go:2053] Waiting for load-balancer to delete so we can delete security groups: a4981847bb57811e5b53d0ed29d18a59\n","stream":"stderr","time":"2016-01-13T21:59:44.505877497Z"} </code></pre></div> <p dir="auto">The controller will loop until it hits the timeout and then bail out without having cleaned up the security group. I think the initial issue comes from <code class="notranslate">Revoking ingress was not needed; concurrent change? groupId=sg-a1bb39d8</code>. I verified through AWS console and that ingress rule was never removed. With that ingress rule still present a dependency on the security group still exists and the delete fails to happen (causing the dependency violation).</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/justinsb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/justinsb">@justinsb</a> fyi.</p> <p dir="auto">I'm looking into what I believe to be the culprit now and will push a PR if I find a solution.</p> <p dir="auto">Edit:</p> <p dir="auto">I have a strong suspicion that the culprit is <code class="notranslate">isEqualIPPermission</code>. It looks as if the AWS api is returning <code class="notranslate">IpPermission.IpRanges</code> while when we define the <code class="notranslate">IpPermission</code> we don't explicitly specify any <code class="notranslate">IpRanges</code>. It seems it would be reasonable to not do this check when removing ingress rules?</p>
<p dir="auto">ref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="141756271" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23174" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/23174/hovercard" href="https://github.com/kubernetes/kubernetes/issues/23174">#23174</a></p>
0
<h3 dir="auto">The problem</h3> <p dir="auto">In my opinion, the current solution to <a href="http://symfony.com/doc/current/cookbook/email/email.html" rel="nofollow">send emails with Symfony</a> is too "low level". (Related article: <a href="http://christoph-hautzinger.de/send-mails-in-symfony/" rel="nofollow">Send mails in Symfony in a way that does not suck!</a>)</p> <p dir="auto">In my experience, most Symfony applications want to render a Twig template when sending an email. That's why FOSUserBundle includes the <a href="https://github.com/FriendsOfSymfony/FOSUserBundle/blob/92d5624f2a29e74d8fd9d2a94d7ed7998a8c2809/Mailer/TwigSwiftMailer.php">TwigSwiftMailer</a> and that's why looking for <code class="notranslate">Swift_Message::newInstance</code> in GitHub gives you <a href="https://github.com/search?p=1&amp;q=Swift_Message%3A%3AnewInstance&amp;ref=searchresults&amp;type=Code&amp;utf8=%E2%9C%93">thousands of results</a> with lots of shortcut methods to render a template.</p> <h3 dir="auto">The solution</h3> <p dir="auto">I propose to create a new <code class="notranslate">renderAndSend()</code> method for the <code class="notranslate">mailer</code> service. It would work as follows:</p> <ol dir="auto"> <li>Simplest case (fixed 'to' and 'from' email addresses):</li> </ol> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$this-&gt;get('mailer')-&gt;renderAndSend('email/notification.html.twig', array( 'event' =&gt; $event, ));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'mailer'</span>)-&gt;<span class="pl-en">renderAndSend</span>(<span class="pl-s">'email/notification.html.twig'</span>, <span class="pl-en">array</span>( <span class="pl-s">'event'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>event</span>, ));</pre></div> <div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{# app/Resources/views/email/notification.html.twig #} {% block to '[email protected]' %} {% block from '[email protected]' %} {% block subject %}[{{ 'now'|date(d/m/Y H:i:s) }}] {{ event.title[:128] }}{% endblock %} {% block body %} ... &lt;div&gt;{{ event.content }}&lt;/div&gt; ... {% endblock %}"><pre class="notranslate"><span class="pl-c"><span class="pl-c">{#</span> app/Resources/views/email/notification.html.twig <span class="pl-c">#}</span></span> {% <span class="pl-k">block</span> <span class="pl-smi">to</span> <span class="pl-s"><span class="pl-pds">'</span>[email protected]<span class="pl-pds">'</span></span> %} {% <span class="pl-k">block</span> <span class="pl-k">from</span> <span class="pl-s"><span class="pl-pds">'</span>[email protected]<span class="pl-pds">'</span></span> %} {% <span class="pl-k">block</span> <span class="pl-smi">subject</span> %}[{{ <span class="pl-s"><span class="pl-pds">'</span>now<span class="pl-pds">'</span></span><span class="pl-k">|</span><span class="pl-c1">date</span>(d/m/Y <span class="pl-smi">H</span>:<span class="pl-smi">i</span>:<span class="pl-smi">s</span>) }}] {{ <span class="pl-smi">event</span>.<span class="pl-smi">title</span>[:<span class="pl-c1">128</span>] }}{% <span class="pl-k">endblock</span> %} {% <span class="pl-k">block</span> <span class="pl-smi">body</span> %} ... &lt;<span class="pl-ent">div</span>&gt;{{ <span class="pl-smi">event</span>.<span class="pl-smi">content</span> }}&lt;/<span class="pl-ent">div</span>&gt; ... {% <span class="pl-k">endblock</span> %}</pre></div> <ol start="2" dir="auto"> <li><code class="notranslate">{% block body %}</code> is a shortcut to set the HTML content. If you need different contents for HTML and TXT, use these blocks instead:</li> </ol> <div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{% block body_html %} ... {% endblock %} {% block body_text %} ... {% endblock %}"><pre class="notranslate">{% <span class="pl-k">block</span> <span class="pl-smi">body_html</span> %} ... {% <span class="pl-k">endblock</span> %} {% <span class="pl-k">block</span> <span class="pl-smi">body_text</span> %} ... {% <span class="pl-k">endblock</span> %}</pre></div> <ol start="3" dir="auto"> <li>When the <code class="notranslate">$to</code> or <code class="notranslate">$from</code> email addresses are dynamic, you can pass them in the parameters array:</li> </ol> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$this-&gt;get('mailer')-&gt;renderAndSend('email/notification.html.twig', array( 'event' =&gt; $event, 'to' =&gt; '[email protected]', 'from' =&gt; '[email protected]', ));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'mailer'</span>)-&gt;<span class="pl-en">renderAndSend</span>(<span class="pl-s">'email/notification.html.twig'</span>, <span class="pl-en">array</span>( <span class="pl-s">'event'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>event</span>, <span class="pl-s">'to'</span> =&gt; <span class="pl-s">'[email protected]'</span>, <span class="pl-s">'from'</span> =&gt; <span class="pl-s">'[email protected]'</span>, ));</pre></div> <p dir="auto">Then you don't need to define the <code class="notranslate">to</code> and <code class="notranslate">from</code> blocks:</p> <div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{# app/Resources/views/email/notification.html.twig #} {% block subject %}[{{ 'now'|date(d/m/Y H:i:s) }}] {{ event.title[:128] }}{% endblock %} {% block body %} ... {% endblock %}"><pre class="notranslate"><span class="pl-c"><span class="pl-c">{#</span> app/Resources/views/email/notification.html.twig <span class="pl-c">#}</span></span> {% <span class="pl-k">block</span> <span class="pl-smi">subject</span> %}[{{ <span class="pl-s"><span class="pl-pds">'</span>now<span class="pl-pds">'</span></span><span class="pl-k">|</span><span class="pl-c1">date</span>(d/m/Y <span class="pl-smi">H</span>:<span class="pl-smi">i</span>:<span class="pl-smi">s</span>) }}] {{ <span class="pl-smi">event</span>.<span class="pl-smi">title</span>[:<span class="pl-c1">128</span>] }}{% <span class="pl-k">endblock</span> %} {% <span class="pl-k">block</span> <span class="pl-smi">body</span> %} ... {% <span class="pl-k">endblock</span> %}</pre></div> <ol start="4" dir="auto"> <li>These are the special Twig blocks:</li> </ol> <div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{% block to %} ... {% endblock %} {% block from %} ... {% endblock %} {% block subject %} ... {% endblock %} {% block body %} ... {% endblock %} {% block body_html %} ... {% endblock %} {% block body_text %} ... {% endblock %}"><pre class="notranslate">{% <span class="pl-k">block</span> <span class="pl-smi">to</span> %} ... {% <span class="pl-k">endblock</span> %} {% <span class="pl-k">block</span> <span class="pl-k">from</span> %} ... {% <span class="pl-k">endblock</span> %} {% <span class="pl-k">block</span> <span class="pl-smi">subject</span> %} ... {% <span class="pl-k">endblock</span> %} {% <span class="pl-k">block</span> <span class="pl-smi">body</span> %} ... {% <span class="pl-k">endblock</span> %} {% <span class="pl-k">block</span> <span class="pl-smi">body_html</span> %} ... {% <span class="pl-k">endblock</span> %} {% <span class="pl-k">block</span> <span class="pl-smi">body_text</span> %} ... {% <span class="pl-k">endblock</span> %}</pre></div> <ol start="5" dir="auto"> <li>If both the Twig block and the parameter are given, the block is used. This allows to use the following:</li> </ol> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$this-&gt;get('mailer')-&gt;renderAndSend('email/notification.html.twig', array( 'event' =&gt; $event, 'to' =&gt; '[email protected]', 'user' =&gt; $user, ));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'mailer'</span>)-&gt;<span class="pl-en">renderAndSend</span>(<span class="pl-s">'email/notification.html.twig'</span>, <span class="pl-en">array</span>( <span class="pl-s">'event'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>event</span>, <span class="pl-s">'to'</span> =&gt; <span class="pl-s">'[email protected]'</span>, <span class="pl-s">'user'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>user</span>, ));</pre></div> <div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{# app/Resources/views/email/notification.html.twig #} {% block to %}{{ user.name }} &lt;{{ to }}&gt;{% endblock %} ..."><pre class="notranslate"><span class="pl-c"><span class="pl-c">{#</span> app/Resources/views/email/notification.html.twig <span class="pl-c">#}</span></span> {% <span class="pl-k">block</span> <span class="pl-smi">to</span> %}{{ <span class="pl-smi">user</span>.<span class="pl-smi">name</span> }} <span class="pl-ii">&lt;</span>{{ <span class="pl-smi">to</span> }}&gt;{% <span class="pl-k">endblock</span> %} ...</pre></div> <ol start="6" dir="auto"> <li>The <code class="notranslate">sendAndRender()</code> method would define a third optional parameter to set the file attachments:</li> </ol> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$this-&gt;get('mailer')-&gt;renderAndSend( 'email/notification.html.twig', array('event' =&gt; $event), array( $this-&gt;container-&gt;getParameter('log_dir').'/traces/'.$event-&gt;getId(), $this-&gt;container-&gt;getParameter('log_dir').'/console_output/'.$event-&gt;getId(), ) );"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'mailer'</span>)-&gt;<span class="pl-en">renderAndSend</span>( <span class="pl-s">'email/notification.html.twig'</span>, <span class="pl-en">array</span>(<span class="pl-s">'event'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>event</span>), <span class="pl-en">array</span>( <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">container</span>-&gt;<span class="pl-en">getParameter</span>(<span class="pl-s">'log_dir'</span>).<span class="pl-s">'/traces/'</span>.<span class="pl-s1"><span class="pl-c1">$</span>event</span>-&gt;<span class="pl-en">getId</span>(), <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">container</span>-&gt;<span class="pl-en">getParameter</span>(<span class="pl-s">'log_dir'</span>).<span class="pl-s">'/console_output/'</span>.<span class="pl-s1"><span class="pl-c1">$</span>event</span>-&gt;<span class="pl-en">getId</span>(), ) );</pre></div> <p dir="auto">If the attachments array is associative, the keys are used as the file names:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$this-&gt;get('mailer')-&gt;renderAndSend( 'email/notification.html.twig', array('event' =&gt; $event), array( 'trace.txt' =&gt; $this-&gt;container-&gt;getParameter('log_dir').'/traces/'.$event-&gt;getId(), 'output.txt' =&gt; $this-&gt;container-&gt;getParameter('log_dir').'/console_output/'.$event-&gt;getId(), ) );"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'mailer'</span>)-&gt;<span class="pl-en">renderAndSend</span>( <span class="pl-s">'email/notification.html.twig'</span>, <span class="pl-en">array</span>(<span class="pl-s">'event'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>event</span>), <span class="pl-en">array</span>( <span class="pl-s">'trace.txt'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">container</span>-&gt;<span class="pl-en">getParameter</span>(<span class="pl-s">'log_dir'</span>).<span class="pl-s">'/traces/'</span>.<span class="pl-s1"><span class="pl-c1">$</span>event</span>-&gt;<span class="pl-en">getId</span>(), <span class="pl-s">'output.txt'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">container</span>-&gt;<span class="pl-en">getParameter</span>(<span class="pl-s">'log_dir'</span>).<span class="pl-s">'/console_output/'</span>.<span class="pl-s1"><span class="pl-c1">$</span>event</span>-&gt;<span class="pl-en">getId</span>(), ) );</pre></div>
<p dir="auto">I see on all Symfony projects a "Mailer" class with this kind of function:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public function sendMessage($object, $fromEmail, $toEmail, $template, array $parameters = []) { try { $message = \Swift_Message::newInstance() -&gt;setSubject($object) -&gt;setFrom($fromEmail) -&gt;setTo($toEmail) -&gt;setBody($this-&gt;engine-&gt;render($template, $parameters), 'text/html') ; $this-&gt;mailer-&gt;send($message, $failedRecipients); if (!empty($failedRecipients)) { $this-&gt;logger-&gt;error('Mail was send but some recipients failed', [ 'failed_recipients' =&gt; implode(' - ', $failedRecipients) ]); } } catch (\Swift_SwiftException $e) { $this-&gt;logger-&gt;error('Unable to send email', ['exception' =&gt; $e]); } }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">sendMessage</span>(<span class="pl-s1"><span class="pl-c1">$</span>object</span>, <span class="pl-s1"><span class="pl-c1">$</span>fromEmail</span>, <span class="pl-s1"><span class="pl-c1">$</span>toEmail</span>, <span class="pl-s1"><span class="pl-c1">$</span>template</span>, <span class="pl-smi">array</span> <span class="pl-s1"><span class="pl-c1">$</span>parameters</span> = []) { <span class="pl-k">try</span> { <span class="pl-s1"><span class="pl-c1">$</span>message</span> = \<span class="pl-v">Swift_Message</span>::<span class="pl-en">newInstance</span>() -&gt;<span class="pl-en">setSubject</span>(<span class="pl-s1"><span class="pl-c1">$</span>object</span>) -&gt;<span class="pl-en">setFrom</span>(<span class="pl-s1"><span class="pl-c1">$</span>fromEmail</span>) -&gt;<span class="pl-en">setTo</span>(<span class="pl-s1"><span class="pl-c1">$</span>toEmail</span>) -&gt;<span class="pl-en">setBody</span>(<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">engine</span>-&gt;<span class="pl-en">render</span>(<span class="pl-s1"><span class="pl-c1">$</span>template</span>, <span class="pl-s1"><span class="pl-c1">$</span>parameters</span>), <span class="pl-s">'text/html'</span>) ; <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">mailer</span>-&gt;<span class="pl-en">send</span>(<span class="pl-s1"><span class="pl-c1">$</span>message</span>, <span class="pl-s1"><span class="pl-c1">$</span>failedRecipients</span>); <span class="pl-k">if</span> (!empty(<span class="pl-s1"><span class="pl-c1">$</span>failedRecipients</span>)) { <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">logger</span>-&gt;<span class="pl-en">error</span>(<span class="pl-s">'Mail was send but some recipients failed'</span>, [ <span class="pl-s">'failed_recipients'</span> =&gt; implode(<span class="pl-s">' - '</span>, <span class="pl-s1"><span class="pl-c1">$</span>failedRecipients</span>) ]); } } <span class="pl-k">catch</span> (<span class="pl-smi"><span class="pl-smi">\<span class="pl-v">Swift_SwiftException</span></span></span> <span class="pl-s1"><span class="pl-c1">$</span>e</span>) { <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">logger</span>-&gt;<span class="pl-en">error</span>(<span class="pl-s">'Unable to send email'</span>, [<span class="pl-s">'exception'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>e</span>]); } }</pre></div> <p dir="auto">This is weird to implement his own mailer when we already have a mailer service in Symfony framework.</p> <p dir="auto">I propose to create a mailer service (we need to discuss on the name: should we replace the actual <code class="notranslate">mailer</code> ? create a <code class="notranslate">sf_mailer</code> service ?) with templating engine or only Twig (Symfony 3) and logger as dependency and - at least:</p> <ul dir="auto"> <li>a function to send HTML email from twig template</li> <li>a function to send txt emails</li> </ul> <p dir="auto">I'm in favor of a class which extends the Swiftmailer instance and add some functions and with a soft dependency on logger. This way:</p> <ul dir="auto"> <li>we can keep <code class="notranslate">mailer</code> as service id</li> <li>if we add logger as a dependency, we have more informations (new implementation)</li> <li>the legacy implementations work (no BC)</li> </ul> <p dir="auto">What do you think ?</p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"> </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 3.6</li> <li><strong>Minimal Celery Version</strong>: 4.3.0</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: Redis 5.x</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <p dir="auto">Minimal example:</p> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="alembic==0.9.10 amqp==2.5.2 ansible==2.8.4 arrow==0.15.5 asn1crypto==0.24.0 Authlib==0.14.1 awscli==1.16.289 backcall==0.1.0 backoff==1.10.0 bcrypt==3.1.7 beautifulsoup4==4.8.2 billiard==3.5.0.5 blist==1.3.6 boto3==1.12.14 botocore==1.15.14 cachetools==3.1.1 celery==4.2.2 certifi==2019.11.28 cffi==1.14.0 chardet==3.0.4 cloudpickle==1.2.1 colorama==0.3.9 crc16==0.1.1 cryptography==2.8 cyordereddict==1.0.0 dask==2.10.1 decorator==4.4.0 deepdiff==3.3.0 docopt==0.6.2 docutils==0.15.2 dpkt==1.9.2 fsspec==0.6.2 greenlet==0.4.15 idna==2.9 importlib-metadata==1.5.0 ipython==7.8.0 ipython-genutils==0.2.0 jedi==0.15.1 Jinja2==2.11.1 jmespath==0.9.5 jsonpickle==1.3 kombu==4.6.0 kvdr==1.0.4 locket==0.2.0 lxml==4.5.0 lz4==3.0.2 Mako==1.1.2 MarkupSafe==1.1.1 msgpack==1.0.0 msgpack-python==0.5.6 numexpr==2.7.1 numpy==1.18.1 pandas==0.22.0 pandas-datareader==0.8.1 paramiko==2.7.1 parso==0.5.1 partd==1.1.0 pexpect==4.7.0 pickleshare==0.7.5 prompt-toolkit==2.0.9 psutil==5.7.0 psycopg2-binary==2.8.4 ptyprocess==0.6.0 pudb==2019.1 pyasn1==0.4.7 pycparser==2.20 pycrypto==2.6.1 pydocstyle==1.1.1 Pygments==2.4.2 Pympler==0.8 PyNaCl==1.3.0 pyOpenSSL==19.1.0 pysftp==0.2.9 python-dateutil==2.8.1 python-editor==1.0.4 python-gnupg==0.4.5 python-redis==0.2.2 python-snappy==0.5.4 pytz==2019.3 PyYAML==5.3 rarfile==3.1 redis==3.4.1 requests==2.23.0 requests-oauth2==0.3.0 rsa==3.4.2 s3fs==0.4.0 s3transfer==0.3.3 six==1.14.0 sortedcontainers==2.1.0 soupsieve==2.0 SQLAlchemy==1.3.13 tables==3.6.1 toolz==0.10.0 traitlets==4.3.2 urllib3==1.25.8 urwid==2.0.1 vine==1.3.0 wcwidth==0.1.7 wrapt==1.11.2 xlrd==1.2.0 zipp==3.1.0"><pre class="notranslate"><code class="notranslate">alembic==0.9.10 amqp==2.5.2 ansible==2.8.4 arrow==0.15.5 asn1crypto==0.24.0 Authlib==0.14.1 awscli==1.16.289 backcall==0.1.0 backoff==1.10.0 bcrypt==3.1.7 beautifulsoup4==4.8.2 billiard==3.5.0.5 blist==1.3.6 boto3==1.12.14 botocore==1.15.14 cachetools==3.1.1 celery==4.2.2 certifi==2019.11.28 cffi==1.14.0 chardet==3.0.4 cloudpickle==1.2.1 colorama==0.3.9 crc16==0.1.1 cryptography==2.8 cyordereddict==1.0.0 dask==2.10.1 decorator==4.4.0 deepdiff==3.3.0 docopt==0.6.2 docutils==0.15.2 dpkt==1.9.2 fsspec==0.6.2 greenlet==0.4.15 idna==2.9 importlib-metadata==1.5.0 ipython==7.8.0 ipython-genutils==0.2.0 jedi==0.15.1 Jinja2==2.11.1 jmespath==0.9.5 jsonpickle==1.3 kombu==4.6.0 kvdr==1.0.4 locket==0.2.0 lxml==4.5.0 lz4==3.0.2 Mako==1.1.2 MarkupSafe==1.1.1 msgpack==1.0.0 msgpack-python==0.5.6 numexpr==2.7.1 numpy==1.18.1 pandas==0.22.0 pandas-datareader==0.8.1 paramiko==2.7.1 parso==0.5.1 partd==1.1.0 pexpect==4.7.0 pickleshare==0.7.5 prompt-toolkit==2.0.9 psutil==5.7.0 psycopg2-binary==2.8.4 ptyprocess==0.6.0 pudb==2019.1 pyasn1==0.4.7 pycparser==2.20 pycrypto==2.6.1 pydocstyle==1.1.1 Pygments==2.4.2 Pympler==0.8 PyNaCl==1.3.0 pyOpenSSL==19.1.0 pysftp==0.2.9 python-dateutil==2.8.1 python-editor==1.0.4 python-gnupg==0.4.5 python-redis==0.2.2 python-snappy==0.5.4 pytz==2019.3 PyYAML==5.3 rarfile==3.1 redis==3.4.1 requests==2.23.0 requests-oauth2==0.3.0 rsa==3.4.2 s3fs==0.4.0 s3transfer==0.3.3 six==1.14.0 sortedcontainers==2.1.0 soupsieve==2.0 SQLAlchemy==1.3.13 tables==3.6.1 toolz==0.10.0 traitlets==4.3.2 urllib3==1.25.8 urwid==2.0.1 vine==1.3.0 wcwidth==0.1.7 wrapt==1.11.2 xlrd==1.2.0 zipp==3.1.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" from myapp.app import app from time import sleep def print_stats(): insp = app.control.inspect() active_lst = insp.active() cluster_stats = insp.stats() active_queues = insp.active_queues() all_stats = { &quot;active&quot;: active_lst, &quot;stats&quot;: cluster_stats, &quot;queues&quot;: active_queues } print(all_stats) def main(): while True: print_stats() sleep(10) if __name__ == '__main__': main()"><pre class="notranslate"> <span class="pl-k">from</span> <span class="pl-s1">myapp</span>.<span class="pl-s1">app</span> <span class="pl-k">import</span> <span class="pl-s1">app</span> <span class="pl-k">from</span> <span class="pl-s1">time</span> <span class="pl-k">import</span> <span class="pl-s1">sleep</span> <span class="pl-k">def</span> <span class="pl-en">print_stats</span>(): <span class="pl-s1">insp</span> <span class="pl-c1">=</span> <span class="pl-s1">app</span>.<span class="pl-s1">control</span>.<span class="pl-en">inspect</span>() <span class="pl-s1">active_lst</span> <span class="pl-c1">=</span> <span class="pl-s1">insp</span>.<span class="pl-en">active</span>() <span class="pl-s1">cluster_stats</span> <span class="pl-c1">=</span> <span class="pl-s1">insp</span>.<span class="pl-en">stats</span>() <span class="pl-s1">active_queues</span> <span class="pl-c1">=</span> <span class="pl-s1">insp</span>.<span class="pl-en">active_queues</span>() <span class="pl-s1">all_stats</span> <span class="pl-c1">=</span> { <span class="pl-s">"active"</span>: <span class="pl-s1">active_lst</span>, <span class="pl-s">"stats"</span>: <span class="pl-s1">cluster_stats</span>, <span class="pl-s">"queues"</span>: <span class="pl-s1">active_queues</span> } <span class="pl-en">print</span>(<span class="pl-s1">all_stats</span>) <span class="pl-k">def</span> <span class="pl-en">main</span>(): <span class="pl-k">while</span> <span class="pl-c1">True</span>: <span class="pl-en">print_stats</span>() <span class="pl-en">sleep</span>(<span class="pl-c1">10</span>) <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>: <span class="pl-en">main</span>()</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">No memory leaks</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">The memory consumption by the tiny example constantly grows.<br> I left the script running over night and it always gets killed after trying to allocate more memory than the system has, so Linux automatically kills it.</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 3.8.5</li> <li><strong>Minimal Celery Version</strong>: 5.1.2</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: Pop!_OS 21.04</li> <li><strong>Minimal Broker Client Version</strong>: pyamqp</li> <li><strong>Minimal Result Backend Client Version</strong>: redis</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">When using .signature(..., queue=Queue(...),...) in a chord or chain, it tries to serialize the Queue() object, which fails. group execution does work.</p> <p dir="auto">Exception</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py&quot;, line 42, in _reraise_errors yield File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py&quot;, line 213, in dumps payload = encoder(data) File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/utils/json.py&quot;, line 68, in dumps return _dumps(s, cls=cls or _default_encoder, File &quot;/home/darren/condas/miniconda3/lib/python3.8/json/__init__.py&quot;, line 234, in dumps return cls( File &quot;/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py&quot;, line 199, in encode chunks = self.iterencode(o, _one_shot=True) File &quot;/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py&quot;, line 257, in iterencode return _iterencode(o, 0) File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/utils/json.py&quot;, line 58, in default return super().default(o) File &quot;/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py&quot;, line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type Queue is not JSON serializable During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;pyfi/client/example/example2.py&quot;, line 8, in &lt;module&gt; result = chain([ File &quot;/home/darren/PycharmProjects/pyfi/celery/canvas.py&quot;, line 612, in __call__ return self.apply_async(args, kwargs) File &quot;/home/darren/PycharmProjects/pyfi/celery/canvas.py&quot;, line 640, in apply_async return self.run(args, kwargs, app=app, **( File &quot;/home/darren/PycharmProjects/pyfi/celery/canvas.py&quot;, line 669, in run result_from_apply = first_task.apply_async(**options) File &quot;/home/darren/PycharmProjects/pyfi/celery/canvas.py&quot;, line 219, in apply_async return _apply(args, kwargs, **options) File &quot;/home/darren/PycharmProjects/pyfi/celery/app/base.py&quot;, line 767, in send_task amqp.send_task_message(P, name, message, **options) File &quot;/home/darren/PycharmProjects/pyfi/celery/app/amqp.py&quot;, line 510, in send_task_message ret = producer.publish( File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/messaging.py&quot;, line 166, in publish body, content_type, content_encoding = self._prepare( File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/messaging.py&quot;, line 254, in _prepare body) = dumps(body, serializer=serializer) File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py&quot;, line 213, in dumps payload = encoder(data) File &quot;/home/darren/condas/miniconda3/lib/python3.8/contextlib.py&quot;, line 131, in __exit__ self.gen.throw(type, value, traceback) File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py&quot;, line 46, in _reraise_errors reraise(wrapper, wrapper(exc), sys.exc_info()[2]) File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/exceptions.py&quot;, line 21, in reraise raise value.with_traceback(tb) File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py&quot;, line 42, in _reraise_errors yield File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py&quot;, line 213, in dumps payload = encoder(data) File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/utils/json.py&quot;, line 68, in dumps return _dumps(s, cls=cls or _default_encoder, File &quot;/home/darren/condas/miniconda3/lib/python3.8/json/__init__.py&quot;, line 234, in dumps return cls( File &quot;/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py&quot;, line 199, in encode chunks = self.iterencode(o, _one_shot=True) File &quot;/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py&quot;, line 257, in iterencode return _iterencode(o, 0) File &quot;/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/utils/json.py&quot;, line 58, in default return super().default(o) File &quot;/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py&quot;, line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' kombu.exceptions.EncodeError: Object of type Queue is not JSON serializable"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py", line 42, in _reraise_errors yield File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py", line 213, in dumps payload = encoder(data) File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/utils/json.py", line 68, in dumps return _dumps(s, cls=cls or _default_encoder, File "/home/darren/condas/miniconda3/lib/python3.8/json/__init__.py", line 234, in dumps return cls( File "/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/utils/json.py", line 58, in default return super().default(o) File "/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type Queue is not JSON serializable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "pyfi/client/example/example2.py", line 8, in &lt;module&gt; result = chain([ File "/home/darren/PycharmProjects/pyfi/celery/canvas.py", line 612, in __call__ return self.apply_async(args, kwargs) File "/home/darren/PycharmProjects/pyfi/celery/canvas.py", line 640, in apply_async return self.run(args, kwargs, app=app, **( File "/home/darren/PycharmProjects/pyfi/celery/canvas.py", line 669, in run result_from_apply = first_task.apply_async(**options) File "/home/darren/PycharmProjects/pyfi/celery/canvas.py", line 219, in apply_async return _apply(args, kwargs, **options) File "/home/darren/PycharmProjects/pyfi/celery/app/base.py", line 767, in send_task amqp.send_task_message(P, name, message, **options) File "/home/darren/PycharmProjects/pyfi/celery/app/amqp.py", line 510, in send_task_message ret = producer.publish( File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/messaging.py", line 166, in publish body, content_type, content_encoding = self._prepare( File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/messaging.py", line 254, in _prepare body) = dumps(body, serializer=serializer) File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py", line 213, in dumps payload = encoder(data) File "/home/darren/condas/miniconda3/lib/python3.8/contextlib.py", line 131, in __exit__ self.gen.throw(type, value, traceback) File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py", line 46, in _reraise_errors reraise(wrapper, wrapper(exc), sys.exc_info()[2]) File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/exceptions.py", line 21, in reraise raise value.with_traceback(tb) File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py", line 42, in _reraise_errors yield File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/serialization.py", line 213, in dumps payload = encoder(data) File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/utils/json.py", line 68, in dumps return _dumps(s, cls=cls or _default_encoder, File "/home/darren/condas/miniconda3/lib/python3.8/json/__init__.py", line 234, in dumps return cls( File "/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/home/darren/PycharmProjects/pyfi/venv/lib/python3.8/site-packages/kombu-5.1.0-py3.8.egg/kombu/utils/json.py", line 58, in default return super().default(o) File "/home/darren/condas/miniconda3/lib/python3.8/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' kombu.exceptions.EncodeError: Object of type Queue is not JSON serializable </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/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.5.3</li> <li>Operating System version: CentOS Linux release 7.6.1810</li> <li>Java version: 1.8</li> <li>zkclient version is 0.1</li> <li>zk version is 3.4.6</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>在一次流量突增时,dubbo的用户线程池被打满</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[2020-11-19 10:12:56.558 WARN ] [New I/O worker #12] (AbortPolicyWithReport:52) [DUBBO] Thread pool is EXHAUSTED! Thread Name: DubboServerHandler-127.0.0.1:28080, Pool Size: 500 (active: 500, core: 0, max: 500, largest: 500), Task: 161962029 (completed: 161961529), Executor status:(isShutdown:false, isTerminated:false, isTerminating:false), in dubbo://127.0.0.1:28080!, dubbo version: 2.5.3"><pre class="notranslate">[<span class="pl-c1">2020</span>-<span class="pl-c1">11</span>-<span class="pl-c1">19</span> <span class="pl-c1">10</span>:<span class="pl-c1">12</span>:<span class="pl-c1">56.558</span> <span class="pl-c1">WARN</span> ] [<span class="pl-smi">New</span> <span class="pl-s1">I</span>/<span class="pl-smi">O</span> <span class="pl-s1">worker</span> #<span class="pl-c1">12</span>] (<span class="pl-s1">AbortPolicyWithReport</span>:<span class="pl-c1">52</span>) [<span class="pl-c1">DUBBO</span>] <span class="pl-s1">Thread</span> <span class="pl-smi">pool</span> <span class="pl-s1">is</span> <span class="pl-c1">EXHAUSTED</span>! <span class="pl-smi">Thread</span> <span class="pl-s1">Name</span>: <span class="pl-s1">DubboServerHandler</span>-<span class="pl-c1">127.0</span>.<span class="pl-c1">0.1</span>:<span class="pl-c1">28080</span>, <span class="pl-s1">Pool</span> <span class="pl-s1">Size</span>: <span class="pl-c1">500</span> (<span class="pl-s1">active</span>: <span class="pl-c1">500</span>, <span class="pl-s1">core</span>: <span class="pl-c1">0</span>, <span class="pl-s1">max</span>: <span class="pl-c1">500</span>, <span class="pl-s1">largest</span>: <span class="pl-c1">500</span>), <span class="pl-s1">Task</span>: <span class="pl-c1">161962029</span> (<span class="pl-s1">completed</span>: <span class="pl-c1">161961529</span>), <span class="pl-smi">Executor</span> <span class="pl-s1">status</span>:(<span class="pl-s1">isShutdown</span>:<span class="pl-c1">false</span>, <span class="pl-s1">isTerminated</span>:<span class="pl-c1">false</span>, <span class="pl-s1">isTerminating</span>:<span class="pl-c1">false</span>), <span class="pl-smi">in</span> <span class="pl-s1">dubbo</span>:<span class="pl-c">//127.0.0.1:28080!, dubbo version: 2.5.3</span></pre></div> <p dir="auto">随后Tomcat中发现有大量的 timedwaiting 状态的线程</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13230226/99629455-fc273b80-2a72-11eb-85c7-89f52e8f419e.png"><img src="https://user-images.githubusercontent.com/13230226/99629455-fc273b80-2a72-11eb-85c7-89f52e8f419e.png" alt="image" style="max-width: 100%;"></a></p> <ol start="2" dir="auto"> <li>在查看jstack后,有几千个名为 DubboRegistryFailedRetryTimer-thread-1 的线程,这个重连线程理论上应该只有一个,在启动注册中心时创建,但实际上被创建了几千个</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;DubboRegistryFailedRetryTimer-thread-1&quot; #1231399 daemon prio=5 os_prio=0 tid=0x0000000001ddf000 nid=0x339f waiting on condition [0x00007f4ef5786000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for &lt;0x000000072f8e0250&gt; (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Locked ownable synchronizers: - None &quot;DubboRegistryFailedRetryTimer-thread-1&quot; #1231397 daemon prio=5 os_prio=0 tid=0x0000000001ddd000 nid=0x339d waiting on condition [0x00007f4ef5887000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for &lt;0x000000072f8e4250&gt; (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Locked ownable synchronizers: - None &quot;DubboRegistryFailedRetryTimer-thread-1&quot; #1231395 daemon prio=5 os_prio=0 tid=0x0000000001ddb000 nid=0x339b waiting on condition [0x00007f4ef5988000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for &lt;0x000000072f8f3358&gt; (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Locked ownable synchronizers: - None &quot;DubboRegistryFailedRetryTimer-thread-1&quot; #1231393 daemon prio=5 os_prio=0 tid=0x0000000001dd9000 nid=0x3399 waiting on condition [0x00007f4ef5a89000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for &lt;0x000000072f902ae0&gt; (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Locked ownable synchronizers: - None &quot;DubboRegistryFailedRetryTimer-thread-1&quot; #1231391 daemon prio=5 os_prio=0 tid=0x0000000001dd7000 nid=0x3397 waiting on condition [0x00007f4ef5b8a000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for &lt;0x000000072f90d5f0&gt; (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Locked ownable synchronizers: - None &quot;DubboRegistryFailedRetryTimer-thread-1&quot; #1231389 daemon prio=5 os_prio=0 tid=0x0000000001dd5000 nid=0x3395 waiting on condition [0x00007f4ef5c8b000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for &lt;0x000000072f90f5f0&gt; (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Locked ownable synchronizers: - None &quot;DubboRegistryFailedRetryTimer-thread-1&quot; #1231387 daemon prio=5 os_prio=0 tid=0x0000000001dd3000 nid=0x3393 waiting on condition [0x00007f4ef5d8c000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for &lt;0x000000072f917140&gt; (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)"><pre class="notranslate"><span class="pl-s">"DubboRegistryFailedRetryTimer-thread-1"</span> #<span class="pl-c1">1231399</span> <span class="pl-smi">daemon</span> <span class="pl-s1">prio</span>=<span class="pl-c1">5</span> <span class="pl-s1">os_prio</span>=<span class="pl-c1">0</span> <span class="pl-s1">tid</span>=<span class="pl-c1">0x0000000001ddf000</span> <span class="pl-s1">nid</span>=<span class="pl-c1">0x339f</span> <span class="pl-s1">waiting</span> <span class="pl-smi">on</span> <span class="pl-s1">condition</span> [<span class="pl-c1">0x00007f4ef5786000</span>] <span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">Thread</span>.<span class="pl-smi">State</span>: <span class="pl-c1">TIMED_WAITING</span> (<span class="pl-smi">parking</span>) <span class="pl-smi">at</span> <span class="pl-s1">sun</span>.<span class="pl-s1">misc</span>.<span class="pl-s1">Unsafe</span>.<span class="pl-en">park</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) - <span class="pl-smi">parking</span> <span class="pl-s1">to</span> <span class="pl-s1">wait</span> <span class="pl-k">for</span> &lt;<span class="pl-c1">0x000000072f8e0250</span>&gt; (<span class="pl-smi">a</span> <span class="pl-s1">java</span>.<span class="pl-smi"></span><span class="pl-smi">util</span>.<span class="pl-smi">concurrent</span>.<span class="pl-smi">locks</span>.<span class="pl-smi">AbstractQueuedSynchronizer$ConditionObject</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">LockSupport</span>.<span class="pl-s1">parkNanos</span>(<span class="pl-smi">LockSupport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">215</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">AbstractQueuedSynchronizer$ConditionObject</span>.<span class="pl-en">awaitNanos</span>(<span class="pl-smi">AbstractQueuedSynchronizer</span>.<span class="pl-smi">java</span>:<span class="pl-c1">2078</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1093</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">809</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">getTask</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1074</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">runWorker</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1134</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor$Worker</span>.<span class="pl-en">run</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">624</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">Thread</span>.<span class="pl-en">run</span>(<span class="pl-smi">Thread</span>.<span class="pl-smi">java</span>:<span class="pl-c1">748</span>) <span class="pl-s1">Locked</span> <span class="pl-smi">ownable</span> <span class="pl-s1">synchronizers</span>: - <span class="pl-s1">None</span> <span class="pl-s">"DubboRegistryFailedRetryTimer-thread-1"</span> #<span class="pl-c1">1231397</span> <span class="pl-s1">daemon</span> <span class="pl-s1">prio</span>=<span class="pl-c1">5</span> <span class="pl-s1">os_prio</span>=<span class="pl-c1">0</span> <span class="pl-s1">tid</span>=<span class="pl-c1">0x0000000001ddd000</span> <span class="pl-s1">nid</span>=<span class="pl-c1">0x339d</span> <span class="pl-s1">waiting</span> <span class="pl-smi">on</span> <span class="pl-s1">condition</span> [<span class="pl-c1">0x00007f4ef5887000</span>] <span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">Thread</span>.<span class="pl-smi">State</span>: <span class="pl-c1">TIMED_WAITING</span> (<span class="pl-smi">parking</span>) <span class="pl-smi">at</span> <span class="pl-s1">sun</span>.<span class="pl-s1">misc</span>.<span class="pl-s1">Unsafe</span>.<span class="pl-en">park</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) - <span class="pl-smi">parking</span> <span class="pl-s1">to</span> <span class="pl-s1">wait</span> <span class="pl-k">for</span> &lt;<span class="pl-c1">0x000000072f8e4250</span>&gt; (<span class="pl-smi">a</span> <span class="pl-s1">java</span>.<span class="pl-smi"></span><span class="pl-smi">util</span>.<span class="pl-smi">concurrent</span>.<span class="pl-smi">locks</span>.<span class="pl-smi">AbstractQueuedSynchronizer$ConditionObject</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">LockSupport</span>.<span class="pl-s1">parkNanos</span>(<span class="pl-smi">LockSupport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">215</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">AbstractQueuedSynchronizer$ConditionObject</span>.<span class="pl-en">awaitNanos</span>(<span class="pl-smi">AbstractQueuedSynchronizer</span>.<span class="pl-smi">java</span>:<span class="pl-c1">2078</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1093</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">809</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">getTask</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1074</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">runWorker</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1134</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor$Worker</span>.<span class="pl-en">run</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">624</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">Thread</span>.<span class="pl-en">run</span>(<span class="pl-smi">Thread</span>.<span class="pl-smi">java</span>:<span class="pl-c1">748</span>) <span class="pl-s1">Locked</span> <span class="pl-smi">ownable</span> <span class="pl-s1">synchronizers</span>: - <span class="pl-s1">None</span> <span class="pl-s">"DubboRegistryFailedRetryTimer-thread-1"</span> #<span class="pl-c1">1231395</span> <span class="pl-s1">daemon</span> <span class="pl-s1">prio</span>=<span class="pl-c1">5</span> <span class="pl-s1">os_prio</span>=<span class="pl-c1">0</span> <span class="pl-s1">tid</span>=<span class="pl-c1">0x0000000001ddb000</span> <span class="pl-s1">nid</span>=<span class="pl-c1">0x339b</span> <span class="pl-s1">waiting</span> <span class="pl-smi">on</span> <span class="pl-s1">condition</span> [<span class="pl-c1">0x00007f4ef5988000</span>] <span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">Thread</span>.<span class="pl-smi">State</span>: <span class="pl-c1">TIMED_WAITING</span> (<span class="pl-smi">parking</span>) <span class="pl-smi">at</span> <span class="pl-s1">sun</span>.<span class="pl-s1">misc</span>.<span class="pl-s1">Unsafe</span>.<span class="pl-en">park</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) - <span class="pl-smi">parking</span> <span class="pl-s1">to</span> <span class="pl-s1">wait</span> <span class="pl-k">for</span> &lt;<span class="pl-c1">0x000000072f8f3358</span>&gt; (<span class="pl-smi">a</span> <span class="pl-s1">java</span>.<span class="pl-smi"></span><span class="pl-smi">util</span>.<span class="pl-smi">concurrent</span>.<span class="pl-smi">locks</span>.<span class="pl-smi">AbstractQueuedSynchronizer$ConditionObject</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">LockSupport</span>.<span class="pl-s1">parkNanos</span>(<span class="pl-smi">LockSupport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">215</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">AbstractQueuedSynchronizer$ConditionObject</span>.<span class="pl-en">awaitNanos</span>(<span class="pl-smi">AbstractQueuedSynchronizer</span>.<span class="pl-smi">java</span>:<span class="pl-c1">2078</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1093</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">809</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">getTask</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1074</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">runWorker</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1134</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor$Worker</span>.<span class="pl-en">run</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">624</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">Thread</span>.<span class="pl-en">run</span>(<span class="pl-smi">Thread</span>.<span class="pl-smi">java</span>:<span class="pl-c1">748</span>) <span class="pl-s1">Locked</span> <span class="pl-smi">ownable</span> <span class="pl-s1">synchronizers</span>: - <span class="pl-s1">None</span> <span class="pl-s">"DubboRegistryFailedRetryTimer-thread-1"</span> #<span class="pl-c1">1231393</span> <span class="pl-s1">daemon</span> <span class="pl-s1">prio</span>=<span class="pl-c1">5</span> <span class="pl-s1">os_prio</span>=<span class="pl-c1">0</span> <span class="pl-s1">tid</span>=<span class="pl-c1">0x0000000001dd9000</span> <span class="pl-s1">nid</span>=<span class="pl-c1">0x3399</span> <span class="pl-s1">waiting</span> <span class="pl-smi">on</span> <span class="pl-s1">condition</span> [<span class="pl-c1">0x00007f4ef5a89000</span>] <span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">Thread</span>.<span class="pl-smi">State</span>: <span class="pl-c1">TIMED_WAITING</span> (<span class="pl-smi">parking</span>) <span class="pl-smi">at</span> <span class="pl-s1">sun</span>.<span class="pl-s1">misc</span>.<span class="pl-s1">Unsafe</span>.<span class="pl-en">park</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) - <span class="pl-smi">parking</span> <span class="pl-s1">to</span> <span class="pl-s1">wait</span> <span class="pl-k">for</span> &lt;<span class="pl-c1">0x000000072f902ae0</span>&gt; (<span class="pl-smi">a</span> <span class="pl-s1">java</span>.<span class="pl-smi"></span><span class="pl-smi">util</span>.<span class="pl-smi">concurrent</span>.<span class="pl-smi">locks</span>.<span class="pl-smi">AbstractQueuedSynchronizer$ConditionObject</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">LockSupport</span>.<span class="pl-s1">parkNanos</span>(<span class="pl-smi">LockSupport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">215</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">AbstractQueuedSynchronizer$ConditionObject</span>.<span class="pl-en">awaitNanos</span>(<span class="pl-smi">AbstractQueuedSynchronizer</span>.<span class="pl-smi">java</span>:<span class="pl-c1">2078</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1093</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">809</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">getTask</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1074</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">runWorker</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1134</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor$Worker</span>.<span class="pl-en">run</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">624</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">Thread</span>.<span class="pl-en">run</span>(<span class="pl-smi">Thread</span>.<span class="pl-smi">java</span>:<span class="pl-c1">748</span>) <span class="pl-s1">Locked</span> <span class="pl-smi">ownable</span> <span class="pl-s1">synchronizers</span>: - <span class="pl-s1">None</span> <span class="pl-s">"DubboRegistryFailedRetryTimer-thread-1"</span> #<span class="pl-c1">1231391</span> <span class="pl-s1">daemon</span> <span class="pl-s1">prio</span>=<span class="pl-c1">5</span> <span class="pl-s1">os_prio</span>=<span class="pl-c1">0</span> <span class="pl-s1">tid</span>=<span class="pl-c1">0x0000000001dd7000</span> <span class="pl-s1">nid</span>=<span class="pl-c1">0x3397</span> <span class="pl-s1">waiting</span> <span class="pl-smi">on</span> <span class="pl-s1">condition</span> [<span class="pl-c1">0x00007f4ef5b8a000</span>] <span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">Thread</span>.<span class="pl-smi">State</span>: <span class="pl-c1">TIMED_WAITING</span> (<span class="pl-smi">parking</span>) <span class="pl-smi">at</span> <span class="pl-s1">sun</span>.<span class="pl-s1">misc</span>.<span class="pl-s1">Unsafe</span>.<span class="pl-en">park</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) - <span class="pl-smi">parking</span> <span class="pl-s1">to</span> <span class="pl-s1">wait</span> <span class="pl-k">for</span> &lt;<span class="pl-c1">0x000000072f90d5f0</span>&gt; (<span class="pl-smi">a</span> <span class="pl-s1">java</span>.<span class="pl-smi"></span><span class="pl-smi">util</span>.<span class="pl-smi">concurrent</span>.<span class="pl-smi">locks</span>.<span class="pl-smi">AbstractQueuedSynchronizer$ConditionObject</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">LockSupport</span>.<span class="pl-s1">parkNanos</span>(<span class="pl-smi">LockSupport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">215</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">AbstractQueuedSynchronizer$ConditionObject</span>.<span class="pl-en">awaitNanos</span>(<span class="pl-smi">AbstractQueuedSynchronizer</span>.<span class="pl-smi">java</span>:<span class="pl-c1">2078</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1093</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">809</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">getTask</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1074</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">runWorker</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1134</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor$Worker</span>.<span class="pl-en">run</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">624</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">Thread</span>.<span class="pl-en">run</span>(<span class="pl-smi">Thread</span>.<span class="pl-smi">java</span>:<span class="pl-c1">748</span>) <span class="pl-s1">Locked</span> <span class="pl-smi">ownable</span> <span class="pl-s1">synchronizers</span>: - <span class="pl-s1">None</span> <span class="pl-s">"DubboRegistryFailedRetryTimer-thread-1"</span> #<span class="pl-c1">1231389</span> <span class="pl-s1">daemon</span> <span class="pl-s1">prio</span>=<span class="pl-c1">5</span> <span class="pl-s1">os_prio</span>=<span class="pl-c1">0</span> <span class="pl-s1">tid</span>=<span class="pl-c1">0x0000000001dd5000</span> <span class="pl-s1">nid</span>=<span class="pl-c1">0x3395</span> <span class="pl-s1">waiting</span> <span class="pl-smi">on</span> <span class="pl-s1">condition</span> [<span class="pl-c1">0x00007f4ef5c8b000</span>] <span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">Thread</span>.<span class="pl-smi">State</span>: <span class="pl-c1">TIMED_WAITING</span> (<span class="pl-smi">parking</span>) <span class="pl-smi">at</span> <span class="pl-s1">sun</span>.<span class="pl-s1">misc</span>.<span class="pl-s1">Unsafe</span>.<span class="pl-en">park</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) - <span class="pl-smi">parking</span> <span class="pl-s1">to</span> <span class="pl-s1">wait</span> <span class="pl-k">for</span> &lt;<span class="pl-c1">0x000000072f90f5f0</span>&gt; (<span class="pl-smi">a</span> <span class="pl-s1">java</span>.<span class="pl-smi"></span><span class="pl-smi">util</span>.<span class="pl-smi">concurrent</span>.<span class="pl-smi">locks</span>.<span class="pl-smi">AbstractQueuedSynchronizer$ConditionObject</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">LockSupport</span>.<span class="pl-s1">parkNanos</span>(<span class="pl-smi">LockSupport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">215</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">AbstractQueuedSynchronizer$ConditionObject</span>.<span class="pl-en">awaitNanos</span>(<span class="pl-smi">AbstractQueuedSynchronizer</span>.<span class="pl-smi">java</span>:<span class="pl-c1">2078</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1093</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">809</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">getTask</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1074</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">runWorker</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1134</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor$Worker</span>.<span class="pl-en">run</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">624</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">Thread</span>.<span class="pl-en">run</span>(<span class="pl-smi">Thread</span>.<span class="pl-smi">java</span>:<span class="pl-c1">748</span>) <span class="pl-s1">Locked</span> <span class="pl-smi">ownable</span> <span class="pl-s1">synchronizers</span>: - <span class="pl-s1">None</span> <span class="pl-s">"DubboRegistryFailedRetryTimer-thread-1"</span> #<span class="pl-c1">1231387</span> <span class="pl-s1">daemon</span> <span class="pl-s1">prio</span>=<span class="pl-c1">5</span> <span class="pl-s1">os_prio</span>=<span class="pl-c1">0</span> <span class="pl-s1">tid</span>=<span class="pl-c1">0x0000000001dd3000</span> <span class="pl-s1">nid</span>=<span class="pl-c1">0x3393</span> <span class="pl-s1">waiting</span> <span class="pl-smi">on</span> <span class="pl-s1">condition</span> [<span class="pl-c1">0x00007f4ef5d8c000</span>] <span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">Thread</span>.<span class="pl-smi">State</span>: <span class="pl-c1">TIMED_WAITING</span> (<span class="pl-smi">parking</span>) <span class="pl-smi">at</span> <span class="pl-s1">sun</span>.<span class="pl-s1">misc</span>.<span class="pl-s1">Unsafe</span>.<span class="pl-en">park</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) - <span class="pl-smi">parking</span> <span class="pl-s1">to</span> <span class="pl-s1">wait</span> <span class="pl-k">for</span> &lt;<span class="pl-c1">0x000000072f917140</span>&gt; (<span class="pl-smi">a</span> <span class="pl-s1">java</span>.<span class="pl-smi"></span><span class="pl-smi">util</span>.<span class="pl-smi">concurrent</span>.<span class="pl-smi">locks</span>.<span class="pl-smi">AbstractQueuedSynchronizer$ConditionObject</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">LockSupport</span>.<span class="pl-s1">parkNanos</span>(<span class="pl-smi">LockSupport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">215</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">locks</span>.<span class="pl-s1">AbstractQueuedSynchronizer$ConditionObject</span>.<span class="pl-en">awaitNanos</span>(<span class="pl-smi">AbstractQueuedSynchronizer</span>.<span class="pl-smi">java</span>:<span class="pl-c1">2078</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1093</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ScheduledThreadPoolExecutor$DelayedWorkQueue</span>.<span class="pl-en">take</span>(<span class="pl-smi">ScheduledThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">809</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">getTask</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1074</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">runWorker</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1134</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor$Worker</span>.<span class="pl-en">run</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">624</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">Thread</span>.<span class="pl-en">run</span>(<span class="pl-smi">Thread</span>.<span class="pl-smi">java</span>:<span class="pl-c1">748</span>)</pre></div> <ol start="3" dir="auto"> <li>而且日志有大量重新加载本地缓存文件的输出</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(AbstractRegistry:232) [DUBBO] Load registry store file xxx.properties"><pre class="notranslate">(<span class="pl-s1">AbstractRegistry</span>:<span class="pl-c1">232</span>) [<span class="pl-c1">DUBBO</span>] <span class="pl-s1">Load</span> <span class="pl-smi">registry</span> <span class="pl-s1">store</span> <span class="pl-smi">file</span> <span class="pl-s1">xxx</span>.<span class="pl-s1">properties</span></pre></div> <ol start="4" dir="auto"> <li>我们用的注册中心是zk, 因此我怀疑 com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry 对象在某个情况下被创建了多次,每次创建时都会启动 com.alibaba.dubbo.registry.support.FailbackRegistry 中的 retryExecutor 线程池</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="private final ScheduledExecutorService retryExecutor = Executors.newScheduledThreadPool(1, new NamedThreadFactory(&quot;DubboRegistryFailedRetryTimer&quot;, true)); public FailbackRegistry(URL url) { super(url); int retryPeriod = url.getParameter(Constants.REGISTRY_RETRY_PERIOD_KEY, Constants.DEFAULT_REGISTRY_RETRY_PERIOD); this.retryFuture = retryExecutor.scheduleWithFixedDelay(new Runnable() { public void run() { // 检测并连接注册中心 try { retry(); } catch (Throwable t) { // 防御性容错 logger.error(&quot;Unexpected error occur at failed retry, cause: &quot; + t.getMessage(), t); } } }, retryPeriod, retryPeriod, TimeUnit.MILLISECONDS); }"><pre class="notranslate"><span class="pl-k">private</span> <span class="pl-k">final</span> <span class="pl-smi">ScheduledExecutorService</span> <span class="pl-s1">retryExecutor</span> = <span class="pl-smi">Executors</span>.<span class="pl-en">newScheduledThreadPool</span>(<span class="pl-c1">1</span>, <span class="pl-k">new</span> <span class="pl-smi">NamedThreadFactory</span>(<span class="pl-s">"DubboRegistryFailedRetryTimer"</span>, <span class="pl-c1">true</span>)); <span class="pl-k">public</span> <span class="pl-s1">FailbackRegistry</span>(<span class="pl-smi">URL</span> <span class="pl-s1">url</span>) { <span class="pl-en">super</span>(<span class="pl-s1">url</span>); <span class="pl-smi">int</span> <span class="pl-s1">retryPeriod</span> = <span class="pl-s1">url</span>.<span class="pl-en">getParameter</span>(<span class="pl-smi">Constants</span>.<span class="pl-c1">REGISTRY_RETRY_PERIOD_KEY</span>, <span class="pl-smi">Constants</span>.<span class="pl-c1">DEFAULT_REGISTRY_RETRY_PERIOD</span>); <span class="pl-smi">this</span>.<span class="pl-s1">retryFuture</span> = <span class="pl-s1">retryExecutor</span>.<span class="pl-en">scheduleWithFixedDelay</span>(<span class="pl-k">new</span> <span class="pl-smi">Runnable</span>() { <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">run</span>() { <span class="pl-c">// 检测并连接注册中心</span> <span class="pl-k">try</span> { <span class="pl-en">retry</span>(); } <span class="pl-k">catch</span> (<span class="pl-smi">Throwable</span> <span class="pl-s1">t</span>) { <span class="pl-c">// 防御性容错</span> <span class="pl-s1">logger</span>.<span class="pl-en">error</span>(<span class="pl-s">"Unexpected error occur at failed retry, cause: "</span> + <span class="pl-s1">t</span>.<span class="pl-en">getMessage</span>(), <span class="pl-s1">t</span>); } } }, <span class="pl-s1">retryPeriod</span>, <span class="pl-s1">retryPeriod</span>, <span class="pl-smi">TimeUnit</span>.<span class="pl-c1">MILLISECONDS</span>); }</pre></div> <ol start="5" dir="auto"> <li>并且 com.alibaba.dubbo.registry.support.AbstractRegistry 类会重新 loadProperties,<strong>所以有大量的Load registry 日志输出</strong></li> </ol> <blockquote> <p dir="auto">(AbstractRegistry:232) [DUBBO] Load registry store file xxx.properties log output</p> </blockquote> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public AbstractRegistry(URL url) { setUrl(url); // 启动文件保存定时器 syncSaveFile = url.getParameter(Constants.REGISTRY_FILESAVE_SYNC_KEY, false); String filename = url.getParameter(Constants.FILE_KEY, System.getProperty(&quot;user.home&quot;) + &quot;/.dubbo/dubbo-registry-&quot; + url.getHost() + &quot;.cache&quot;); File file = null; if (ConfigUtils.isNotEmpty(filename)) { file = new File(filename); if(! file.exists() &amp;&amp; file.getParentFile() != null &amp;&amp; ! file.getParentFile().exists()){ if(! file.getParentFile().mkdirs()){ throw new IllegalArgumentException(&quot;Invalid registry store file &quot; + file + &quot;, cause: Failed to create directory &quot; + file.getParentFile() + &quot;!&quot;); } } } this.file = file; loadProperties(); notify(url.getBackupUrls()); } private void loadProperties() { if (file != null &amp;&amp; file.exists()) { InputStream in = null; try { in = new FileInputStream(file); properties.load(in); if (logger.isInfoEnabled()) { logger.info(&quot;Load registry store file &quot; + file + &quot;, data: &quot; + properties); } } catch (Throwable e) { logger.warn(&quot;Failed to load registry store file &quot; + file, e); } finally { if (in != null) { try { in.close(); } catch (IOException e) { logger.warn(e.getMessage(), e); } } } } }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-s1">AbstractRegistry</span>(<span class="pl-smi">URL</span> <span class="pl-s1">url</span>) { <span class="pl-en">setUrl</span>(<span class="pl-s1">url</span>); <span class="pl-c">// 启动文件保存定时器</span> <span class="pl-s1">syncSaveFile</span> = <span class="pl-s1">url</span>.<span class="pl-en">getParameter</span>(<span class="pl-smi">Constants</span>.<span class="pl-c1">REGISTRY_FILESAVE_SYNC_KEY</span>, <span class="pl-c1">false</span>); <span class="pl-smi">String</span> <span class="pl-s1">filename</span> = <span class="pl-s1">url</span>.<span class="pl-en">getParameter</span>(<span class="pl-smi">Constants</span>.<span class="pl-c1">FILE_KEY</span>, <span class="pl-smi">System</span>.<span class="pl-en">getProperty</span>(<span class="pl-s">"user.home"</span>) + <span class="pl-s">"/.dubbo/dubbo-registry-"</span> + <span class="pl-s1">url</span>.<span class="pl-en">getHost</span>() + <span class="pl-s">".cache"</span>); <span class="pl-smi">File</span> <span class="pl-s1">file</span> = <span class="pl-c1">null</span>; <span class="pl-k">if</span> (<span class="pl-smi">ConfigUtils</span>.<span class="pl-en">isNotEmpty</span>(<span class="pl-s1">filename</span>)) { <span class="pl-s1">file</span> = <span class="pl-k">new</span> <span class="pl-smi">File</span>(<span class="pl-s1">filename</span>); <span class="pl-k">if</span>(! <span class="pl-s1">file</span>.<span class="pl-en">exists</span>() &amp;&amp; <span class="pl-s1">file</span>.<span class="pl-en">getParentFile</span>() != <span class="pl-c1">null</span> &amp;&amp; ! <span class="pl-s1">file</span>.<span class="pl-en">getParentFile</span>().<span class="pl-en">exists</span>()){ <span class="pl-k">if</span>(! <span class="pl-s1">file</span>.<span class="pl-en">getParentFile</span>().<span class="pl-en">mkdirs</span>()){ <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">IllegalArgumentException</span>(<span class="pl-s">"Invalid registry store file "</span> + <span class="pl-s1">file</span> + <span class="pl-s">", cause: Failed to create directory "</span> + <span class="pl-s1">file</span>.<span class="pl-en">getParentFile</span>() + <span class="pl-s">"!"</span>); } } } <span class="pl-smi">this</span>.<span class="pl-s1">file</span> = <span class="pl-s1">file</span>; <span class="pl-en">loadProperties</span>(); <span class="pl-en">notify</span>(<span class="pl-s1">url</span>.<span class="pl-en">getBackupUrls</span>()); } <span class="pl-k">private</span> <span class="pl-smi">void</span> <span class="pl-s1">loadProperties</span>() { <span class="pl-k">if</span> (<span class="pl-s1">file</span> != <span class="pl-c1">null</span> &amp;&amp; <span class="pl-s1">file</span>.<span class="pl-en">exists</span>()) { <span class="pl-smi">InputStream</span> <span class="pl-s1">in</span> = <span class="pl-c1">null</span>; <span class="pl-k">try</span> { <span class="pl-s1">in</span> = <span class="pl-k">new</span> <span class="pl-smi">FileInputStream</span>(<span class="pl-s1">file</span>); <span class="pl-s1">properties</span>.<span class="pl-en">load</span>(<span class="pl-s1">in</span>); <span class="pl-k">if</span> (<span class="pl-s1">logger</span>.<span class="pl-en">isInfoEnabled</span>()) { <span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">"Load registry store file "</span> + <span class="pl-s1">file</span> + <span class="pl-s">", data: "</span> + <span class="pl-s1">properties</span>); } } <span class="pl-k">catch</span> (<span class="pl-smi">Throwable</span> <span class="pl-s1">e</span>) { <span class="pl-s1">logger</span>.<span class="pl-en">warn</span>(<span class="pl-s">"Failed to load registry store file "</span> + <span class="pl-s1">file</span>, <span class="pl-s1">e</span>); } <span class="pl-k">finally</span> { <span class="pl-k">if</span> (<span class="pl-s1">in</span> != <span class="pl-c1">null</span>) { <span class="pl-k">try</span> { <span class="pl-s1">in</span>.<span class="pl-en">close</span>(); } <span class="pl-k">catch</span> (<span class="pl-smi">IOException</span> <span class="pl-s1">e</span>) { <span class="pl-s1">logger</span>.<span class="pl-en">warn</span>(<span class="pl-s1">e</span>.<span class="pl-en">getMessage</span>(), <span class="pl-s1">e</span>); } } } } }</pre></div> <ol start="6" dir="auto"> <li>我翻阅了源码,从创建ZookeeperRegistry过程到zk断开后重连的recover机制后都没发现和复现这个问题。</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">在com.alibaba.dubbo.registry.support.FailbackRegistry类中名为<br> DubboRegistryFailedRetryTimer这个线程应该在单注册中心的情况下应该是单例的,只应该被创建一个</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">在com.alibaba.dubbo.registry.support.FailbackRegistry类中名为<br> DubboRegistryFailedRetryTimer的线程被创建了几千个,产生了大量的timewaited线程。</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.5</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>在2.7.5版本中的telnet已经取消了部分指令了吗?</li> <li>ls、invoke、pwd指令没有出现。</li> <li>只有help、status指令。</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="D:\projects\storevm\dubbo-demo\dubbo-provider&gt;telnet localhost 9085 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. dubbo&gt;help Please input &quot;help [command]&quot; show detail. status [-l] - Show status. clear [lines] - Clear screen. log level - Change log level or show log help [command] - Show help. exit - Exit the telnet. dubbo&gt;"><pre class="notranslate"><code class="notranslate">D:\projects\storevm\dubbo-demo\dubbo-provider&gt;telnet localhost 9085 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. dubbo&gt;help Please input "help [command]" show detail. status [-l] - Show status. clear [lines] - Clear screen. log level - Change log level or show log help [command] - Show help. exit - Exit the telnet. dubbo&gt; </code></pre></div>
0
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# categorical_DataFrame is constructed from a source table by appending transformed original data column-by-column using original_DataFrame[column_name].values # The original dataframe has also undergone some operations after loading and before constructing the categorical_DataFrame: type conversion, value substitution, and re-indexing. categorical_DataFrame = pd.DataFrame(index=origin_DataFrame['GID']) for akey, avalue in column_translation_dict.items(): if akey in origin_DataFrame.columns: categorical_DataFrame[avalue] = origin_DataFrame[akey].values else: print('Cannot find column ' + akey) # trying to visualize for column_name in categorical_DataFrame: if str(categorical_DataFrame[column_name].dtype) is 'category': count_Series = categorical_DataFrame[column_name].value_counts(dropna=False) # Same bug if dropna=True print(count_Series) # This yields the correct result plt_ax = count_Series.plot.bar() # This yields incorrect graph # If save it to a new .csv file and reload, though: categorical_DataFrame.to_csv('saved_table.csv') new_DataFrame = pd.read_csv('saved_table.csv', index_cols='GID') for column_name in new_DataFrame: if str(new_DataFrame[column_name].dtype) is 'category': count_Series = new_DataFrame[column_name].value_counts(dropna=False) # basically same operations print(count_Series) # Still correct plt_ax = count_Series.plot.bar() # This now yields correct graphs."><pre class="notranslate"><span class="pl-c"># categorical_DataFrame is constructed from a source table by appending transformed original data column-by-column using original_DataFrame[column_name].values</span> <span class="pl-c"># The original dataframe has also undergone some operations after loading and before constructing the categorical_DataFrame: type conversion, value substitution, and re-indexing.</span> <span class="pl-s1">categorical_DataFrame</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">origin_DataFrame</span>[<span class="pl-s">'GID'</span>]) <span class="pl-k">for</span> <span class="pl-s1">akey</span>, <span class="pl-s1">avalue</span> <span class="pl-c1">in</span> <span class="pl-s1">column_translation_dict</span>.<span class="pl-en">items</span>(): <span class="pl-k">if</span> <span class="pl-s1">akey</span> <span class="pl-c1">in</span> <span class="pl-s1">origin_DataFrame</span>.<span class="pl-s1">columns</span>: <span class="pl-s1">categorical_DataFrame</span>[<span class="pl-s1">avalue</span>] <span class="pl-c1">=</span> <span class="pl-s1">origin_DataFrame</span>[<span class="pl-s1">akey</span>].<span class="pl-s1">values</span> <span class="pl-k">else</span>: <span class="pl-en">print</span>(<span class="pl-s">'Cannot find column '</span> <span class="pl-c1">+</span> <span class="pl-s1">akey</span>) <span class="pl-c"># trying to visualize</span> <span class="pl-k">for</span> <span class="pl-s1">column_name</span> <span class="pl-c1">in</span> <span class="pl-s1">categorical_DataFrame</span>: <span class="pl-k">if</span> <span class="pl-en">str</span>(<span class="pl-s1">categorical_DataFrame</span>[<span class="pl-s1">column_name</span>].<span class="pl-s1">dtype</span>) <span class="pl-c1">is</span> <span class="pl-s">'category'</span>: <span class="pl-s1">count_Series</span> <span class="pl-c1">=</span> <span class="pl-s1">categorical_DataFrame</span>[<span class="pl-s1">column_name</span>].<span class="pl-en">value_counts</span>(<span class="pl-s1">dropna</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-c"># Same bug if dropna=True</span> <span class="pl-en">print</span>(<span class="pl-s1">count_Series</span>) <span class="pl-c"># This yields the correct result</span> <span class="pl-s1">plt_ax</span> <span class="pl-c1">=</span> <span class="pl-s1">count_Series</span>.<span class="pl-s1">plot</span>.<span class="pl-en">bar</span>() <span class="pl-c"># This yields incorrect graph</span> <span class="pl-c"># If save it to a new .csv file and reload, though:</span> <span class="pl-s1">categorical_DataFrame</span>.<span class="pl-en">to_csv</span>(<span class="pl-s">'saved_table.csv'</span>) <span class="pl-s1">new_DataFrame</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">'saved_table.csv'</span>, <span class="pl-s1">index_cols</span><span class="pl-c1">=</span><span class="pl-s">'GID'</span>) <span class="pl-k">for</span> <span class="pl-s1">column_name</span> <span class="pl-c1">in</span> <span class="pl-s1">new_DataFrame</span>: <span class="pl-k">if</span> <span class="pl-en">str</span>(<span class="pl-s1">new_DataFrame</span>[<span class="pl-s1">column_name</span>].<span class="pl-s1">dtype</span>) <span class="pl-c1">is</span> <span class="pl-s">'category'</span>: <span class="pl-s1">count_Series</span> <span class="pl-c1">=</span> <span class="pl-s1">new_DataFrame</span>[<span class="pl-s1">column_name</span>].<span class="pl-en">value_counts</span>(<span class="pl-s1">dropna</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-c"># basically same operations</span> <span class="pl-en">print</span>(<span class="pl-s1">count_Series</span>) <span class="pl-c"># Still correct</span> <span class="pl-s1">plt_ax</span> <span class="pl-c1">=</span> <span class="pl-s1">count_Series</span>.<span class="pl-s1">plot</span>.<span class="pl-en">bar</span>() <span class="pl-c"># This now yields correct graphs.</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Most of the details have been commented in the code.</p> <p dir="auto">In addition to that, the graphs are wrong in several aspects:<br> The original table contains many values '-77' or '-77.0', which I substituted with np.nan and confirmed in the printout of Series.value_counts for each column; however, the plots still show none-zero counts of "-77".</p> <p dir="auto">The counts of other values also contain mistakes (not all, but some).</p> <p dir="auto">The 'GID' index column contains nan and duplicates, but that does not seem to affect value_counts() function as the sum of all groups' counts (including nan) always equals the total number of rows.</p> <p dir="auto">Versions used:<br> pandas: both 0.20.3 and newest version (v0.22.0)<br> matplotlib: both 2.0.2 and 2.2.0, with and without explicit importing. (but I don't think it would affect pandas plotting)</p> <p dir="auto">[this should explain <strong>why</strong> the current behaviour is a problem and why the expected output is a better solution.]</p> <p dir="auto"><strong>Note</strong>: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!</p> <p dir="auto"><strong>Note</strong>: Many problems can be resolved by simply upgrading <code class="notranslate">pandas</code> to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if <code class="notranslate">master</code> addresses this issue, but that is not necessary.</p> <p dir="auto">For documentation-related issues, you can check the latest versions of the docs on <code class="notranslate">master</code> here:</p> <p dir="auto"><a href="https://pandas-docs.github.io/pandas-docs-travis/" rel="nofollow">https://pandas-docs.github.io/pandas-docs-travis/</a></p> <p dir="auto">If the issue has not been resolved there, go ahead and file it in the issue tracker.</p> <h4 dir="auto">Expected Output</h4> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.6.1.final.0<br> python-bits: 64<br> OS: Windows<br> OS-release: 10<br> machine: AMD64<br> processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: en<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.22.0<br> pytest: 3.0.7<br> pip: 9.0.1<br> setuptools: 27.2.0<br> Cython: 0.25.2<br> numpy: 1.12.1<br> scipy: 0.19.0<br> pyarrow: None<br> xarray: None<br> IPython: 5.3.0<br> sphinx: 1.5.6<br> patsy: 0.4.1<br> dateutil: 2.6.0<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.4.2<br> numexpr: 2.6.2<br> feather: None<br> matplotlib: 2.2.0<br> openpyxl: 2.4.7<br> xlrd: 1.0.0<br> xlwt: 1.2.0<br> xlsxwriter: 0.9.6<br> lxml: 3.7.3<br> bs4: 4.6.0<br> html5lib: 0.9999999<br> sqlalchemy: 1.1.9<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<h4 dir="auto">Code Sample</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pd.DataFrame().drop_duplicates() Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/home/analytical-monk/miniconda3/lib/python3.6/site-packages/pandas/core/frame.py&quot;, line 3098, in drop_duplicates duplicated = self.duplicated(subset, keep=keep) File &quot;/home/analytical-monk/miniconda3/lib/python3.6/site-packages/pandas/core/frame.py&quot;, line 3144, in duplicated labels, shape = map(list, zip(*map(f, vals))) ValueError: not enough values to unpack (expected 2, got 0)"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>().<span class="pl-en">drop_duplicates</span>() <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"&lt;stdin&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-v">File</span> <span class="pl-s">"/home/analytical-monk/miniconda3/lib/python3.6/site-packages/pandas/core/frame.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">3098</span>, <span class="pl-s1">in</span> <span class="pl-s1">drop_duplicates</span> <span class="pl-s1">duplicated</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">duplicated</span>(<span class="pl-s1">subset</span>, <span class="pl-s1">keep</span><span class="pl-c1">=</span><span class="pl-s1">keep</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/analytical-monk/miniconda3/lib/python3.6/site-packages/pandas/core/frame.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">3144</span>, <span class="pl-s1">in</span> <span class="pl-s1">duplicated</span> <span class="pl-s1">labels</span>, <span class="pl-s1">shape</span> <span class="pl-c1">=</span> <span class="pl-en">map</span>(<span class="pl-s1">list</span>, <span class="pl-en">zip</span>(<span class="pl-c1">*</span><span class="pl-en">map</span>(<span class="pl-s1">f</span>, <span class="pl-s1">vals</span>))) <span class="pl-v">ValueError</span>: <span class="pl-c1">not</span> <span class="pl-s1">enough</span> <span class="pl-s1">values</span> <span class="pl-s1">to</span> <span class="pl-en">unpack</span> (<span class="pl-s1">expected</span> <span class="pl-c1">2</span>, <span class="pl-s1">got</span> <span class="pl-c1">0</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Currently, calling the drop_duplicates method for an empty dataframe object (simply pd.DataFrame()) throws an error.<br> Ideally it should return back the empty dataframe just liked it does when at least one column is present.</p> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pd.DataFrame().drop_duplicates() Empty DataFrame Columns: [] Index: []"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; pd.DataFrame().drop_duplicates() Empty DataFrame Columns: [] Index: [] </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.6.1.final.0 python-bits: 64 OS: Linux OS-release: 4.8.0-58-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_IN LOCALE: en_IN.ISO8859-1 pandas: 0.20.3 pytest: None pip: 9.0.1 setuptools: 36.6.0 Cython: None numpy: 1.13.1 scipy: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.6.1 pytz: 2017.2 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.6.0 html5lib: 1.0b10 sqlalchemy: 1.1.14 pymysql: None psycopg2: None jinja2: 2.9.6 s3fs: None pandas_gbq: None pandas_datareader: None"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.6.1.final.0 python-bits: 64 OS: Linux OS-release: 4.8.0-58-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_IN LOCALE: en_IN.ISO8859-1 pandas: 0.20.3 pytest: None pip: 9.0.1 setuptools: 36.6.0 Cython: None numpy: 1.13.1 scipy: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.6.1 pytz: 2017.2 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.6.0 html5lib: 1.0b10 sqlalchemy: 1.1.14 pymysql: None psycopg2: None jinja2: 2.9.6 s3fs: None pandas_gbq: None pandas_datareader: None </code></pre></div> </details>
0
<p dir="auto">I know there's other projects who added RTL support to bootstrap but these are two different projects now so if a bug fix or a new feature is added in bootstrap, it's wouldn't show on the RTL project.<br> I had an idea, not sure if it'll work but if so, LTR and RTL can be supported from the same project without maintaining two different copies of things.</p> <p dir="auto">Add these variables in variables.less<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Left/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Left">@Left</a>: left;<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/right/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/right">@right</a>: right;<br> In every other .less file, whenever have use of left/right (such as margin-left) use @left/<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/right/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/right">@right</a> instead.<br> Compile and you'll get the same output as today.<br> Set <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Left/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Left">@Left</a>: right; and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/right/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/right">@right</a>: left; and compile again. That should give RTL support.</p> <p dir="auto">Would that work?</p>
<p dir="auto">Would be great to have support for right-to-left languages.</p>
1
<p dir="auto">For some reason, numpy.remainder function is not working as defined for the following specific case:</p> <p dir="auto">np.remainder(.60,.04) = 0.04</p> <p dir="auto">0.60-np.floor(0.60/0.04)*0.04 = 0.00 (Function as defined)</p> <p dir="auto">This seems to be the only case for which the definition does not match the function output.</p>
<p dir="auto">This seems to be a regression in 11.0 or in master (note the values are exactly representable):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.remainder(3, 2.5) 0.49999999999999989 &gt;&gt;&gt; np.__version__ '1.12.0.dev0+58263eb'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.remainder(3, 2.5) 0.49999999999999989 &gt;&gt;&gt; np.__version__ '1.12.0.dev0+58263eb' </code></pre></div> <p dir="auto">Compare to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.remainder(3, 2.5) 0.5 &gt;&gt;&gt; np.__version__ '1.10.4'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.remainder(3, 2.5) 0.5 &gt;&gt;&gt; np.__version__ '1.10.4' </code></pre></div>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.2.0</li> <li>Operating System / Platform =&gt; Windows 7 64-bit</li> <li>Compiler =&gt; Visual Studio 2019</li> <li>CMake =&gt; 3.16.5</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Cmake fails to configure the environment when building OpenCV 4.2.0 from source. After processing WORLD modules, CMake fails with a syntax error.</p> <p dir="auto">This syntax error is caused by the use of EITHER backslashes or forward slashes when running CMake from the command line (notice in the error below, there are both back and forward slashes even though only forward slashes are used in the configuration). After researching, I came across <a href="this">https://stackoverflow.com/questions/14112279/cmake-parse-error-invalid-escape-sequence-o</a> about an issue like this. I followed "Fraser"'s recommendation and the script executed without issue.</p> <h5 dir="auto">Error message:</h5> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23083317/76022245-5cc61680-5eec-11ea-9ba8-1fdf067add5b.png"><img src="https://user-images.githubusercontent.com/23083317/76022245-5cc61680-5eec-11ea-9ba8-1fdf067add5b.png" alt="image" style="max-width: 100%;"></a></p> <h5 dir="auto">Cmd configuration:</h5> <p dir="auto">"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvars64.bat"<br> set "openCvSource=D:/Workspace/opencv/opencv-4.2.0"<br> set "openCVExtraModules=D:/Workspace/opencv/opencv_contrib-4.2.0/modules"<br> set "openCvBuild=%openCvSource%/build"<br> set "buildType=Release"<br> set "generator=Ninja"<br> set "pathToAnaconda=C:/ProgramData/Anaconda3"<br> set "pyVer=37"<br> "C:/Program Files/CMake/bin/cmake.exe" -B"%openCvBuild%/" -H"%openCvSource%/" -G"%generator%" -DCMAKE_BUILD_TYPE=%buildType% -DOPENCV_EXTRA_MODULES_PATH="%openCVExtraModules%/" ^<br> -DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON ^<br> -DBUILD_opencv_world=ON ^<br> -DWITH_CUDA=ON -DCUDA_TOOLKIT_ROOT_DIR="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2" -DCUDA_FAST_MATH=ON -DWITH_CUBLAS=ON -DCUDA_ARCH_BIN=5.3,6.0,6.1,7.0,7.5 -DCUDA_ARCH_PTX=7.5 -DWITH_NVCUVID=ON ^<br> -DWITH_OPENGL=ON ^<br> -DWITH_MFX=ON ^<br> -DBUILD_opencv_python3=ON -DPYTHON3_INCLUDE_DIR=%pathToAnaconda%/include -DPYTHON3_LIBRARY=%pathToAnaconda%/libs/python%pyVer%.lib -DPYTHON3_EXECUTABLE=%pathToAnaconda%/python.exe -DPYTHON3_NUMPY_INCLUDE_DIRS=%pathToAnaconda%/lib/site-packages/numpy/core/include -DPYTHON3_PACKAGES_PATH=%pathToAnaconda%/Lib/site-packages/ -DOPENCV_SKIP_PYTHON_LOADER=ON</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Review this tutorial: <a href="https://jamesbowley.co.uk/accelerate-opencv-4-2-0-build-with-cuda-and-python-bindings/" rel="nofollow">https://jamesbowley.co.uk/accelerate-opencv-4-2-0-build-with-cuda-and-python-bindings/</a></p> <p dir="auto">I am using Anaconda x64 with Python 3.7.4 located in C:\ProgramData\Anaconda3.<br> Add the Ninja compiler to the system path.</p> <p dir="auto">Run the above command configuration in terminal.</p> <h5 dir="auto">Notes</h5> <p dir="auto">I was able to fix this by changing 'macro' and 'endmacro' on lines 1420 and 1429 in OpenCVUtils.cmake to 'function' and 'endfunction'.</p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.2.0</li> <li>Operating System / Platform =&gt; Ubuntu 18.04</li> <li>Compiler =&gt; gcc</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">When drawing an ellipse with specific but not pathological values and a line thickness less than 5, horizontal lines are displayed.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">The following snipped is sufficient to expose the problem:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13381545/71895240-67606b80-3148-11ea-8f67-3b862e7f11b7.png"><img src="https://user-images.githubusercontent.com/13381545/71895240-67606b80-3148-11ea-8f67-3b862e7f11b7.png" alt="Screenshot from 2020-01-07 12-21-10" style="max-width: 100%;"></a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include &lt;opencv2/viz/types.hpp&gt; #include &lt;opencv2/imgproc/imgproc.hpp&gt; #include &lt;opencv2/highgui.hpp&gt; // for imshow int main(int argc, char** argv){ cv::RotatedRect rect; rect.angle = 6.52944; rect.center.x = 201.968; rect.center.y = 373.492; rect.size.width = 65.2557; rect.size.height = 20.5783; cv::Mat test(848,800,CV_8UC3); cv::ellipse(test,rect,cv::viz::Color::magenta(),2); cv::imshow(&quot;windowName&quot;, test); cv::waitKey(0); }"><pre class="notranslate"><code class="notranslate">#include &lt;opencv2/viz/types.hpp&gt; #include &lt;opencv2/imgproc/imgproc.hpp&gt; #include &lt;opencv2/highgui.hpp&gt; // for imshow int main(int argc, char** argv){ cv::RotatedRect rect; rect.angle = 6.52944; rect.center.x = 201.968; rect.center.y = 373.492; rect.size.width = 65.2557; rect.size.height = 20.5783; cv::Mat test(848,800,CV_8UC3); cv::ellipse(test,rect,cv::viz::Color::magenta(),2); cv::imshow("windowName", test); cv::waitKey(0); } </code></pre></div> <p dir="auto">When using a higher thickness (e.g., 5) the problem goes away.</p>
0
<p dir="auto"><em>This proposal serves, at this point, as an trial-and-error experience for myself and to give you guys some ideas to play with.. I understand this may not be 'it' in current form (or not at all) so don't just stamp it with that dreaded "DECLINED" thing. I'll just close it myself after you explain to me how bad it is and why.. and all the edge cases..(e.g. <a href="https://github.com/Microsoft/TypeScript/pull/3516" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/3516/hovercard">expressions in extends clauses</a> etc.) or who knows, I may be even able to fix it later..</em></p> <p dir="auto">Let <code class="notranslate">A</code> and <code class="notranslate">B</code> be two classes and <code class="notranslate">a: A</code>, <code class="notranslate">b: B</code>.</p> <p dir="auto">For the structurally valid assignment <code class="notranslate">a = b</code>.</p> <p dir="auto">Either one of the following conditions should hold to error:</p> <ol dir="auto"> <li><code class="notranslate">B</code> is a strict nominal ancestor of <code class="notranslate">A</code>.</li> <li><code class="notranslate">A</code> is a nominal ancestor of <code class="notranslate">B</code> but with an incompatible generic signature.</li> </ol> <p dir="auto">Examples:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Base { action = &quot;START WORLD WAR III&quot;; } class Derived extends Base { action = &quot;SAVE THE WORLD&quot;; } function giveMeDerived(shouldBeDerived: Derived) { performAction(shouldBeDerived.action); } giveMeDerived(new Base()); // Error! The compiler has saved the world!"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Base</span> <span class="pl-kos">{</span> <span class="pl-c1">action</span> <span class="pl-c1">=</span> <span class="pl-s">"START WORLD WAR III"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Derived</span> <span class="pl-k">extends</span> <span class="pl-smi">Base</span> <span class="pl-kos">{</span> <span class="pl-c1">action</span> <span class="pl-c1">=</span> <span class="pl-s">"SAVE THE WORLD"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">giveMeDerived</span><span class="pl-kos">(</span><span class="pl-s1">shouldBeDerived</span>: <span class="pl-smi">Derived</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">performAction</span><span class="pl-kos">(</span><span class="pl-s1">shouldBeDerived</span><span class="pl-kos">.</span><span class="pl-c1">action</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">giveMeDerived</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">Base</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Error! The compiler has saved the world!</span></pre></div> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Bag&lt;T&gt; { items = []; } function putStringsInTheBag(bag: Bag&lt;string&gt;) { bag.items.push(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;d&quot;); } let bagOfNumbers = new Bag&lt;number&gt;(); putStringsInTheBag(bagOfNumbers); // Error! no strings going in this bag.. "><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Bag</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">items</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">putStringsInTheBag</span><span class="pl-kos">(</span><span class="pl-s1">bag</span>: <span class="pl-smi">Bag</span><span class="pl-kos">&lt;</span><span class="pl-smi">string</span><span class="pl-kos">&gt;</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">bag</span><span class="pl-kos">.</span><span class="pl-c1">items</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s">"a"</span><span class="pl-kos">,</span> <span class="pl-s">"b"</span><span class="pl-kos">,</span> <span class="pl-s">"c"</span><span class="pl-kos">,</span> <span class="pl-s">"d"</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">bagOfNumbers</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Bag</span><span class="pl-kos">&lt;</span><span class="pl-smi">number</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">putStringsInTheBag</span><span class="pl-kos">(</span><span class="pl-s1">bagOfNumbers</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Error! no strings going in this bag.. </span></pre></div> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Bag&lt;T&gt; { items = []; } class BagWithMethod&lt;V&gt; extends Bag&lt;V&gt; { putItem(item: V) { this.items.push(item); } } let bagWithMethod = new BagWithMethod&lt;number&gt;(); bagWithMethod.putItem(42); let evilBag: Bag&lt;string&gt; = bagWithMethod; // Error! evil bag detected!"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Bag</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">items</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">BagWithMethod</span><span class="pl-c1">&lt;</span><span class="pl-smi">V</span><span class="pl-c1">&gt;</span> <span class="pl-k">extends</span> <span class="pl-smi">Bag</span><span class="pl-kos">&lt;</span><span class="pl-smi">V</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">putItem</span><span class="pl-kos">(</span><span class="pl-s1">item</span>: <span class="pl-smi">V</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">items</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">item</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">bagWithMethod</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">BagWithMethod</span><span class="pl-kos">&lt;</span><span class="pl-smi">number</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">bagWithMethod</span><span class="pl-kos">.</span><span class="pl-en">putItem</span><span class="pl-kos">(</span><span class="pl-c1">42</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">evilBag</span>: <span class="pl-smi">Bag</span><span class="pl-kos">&lt;</span><span class="pl-smi">string</span><span class="pl-kos">&gt;</span> <span class="pl-c1">=</span> <span class="pl-s1">bagWithMethod</span><span class="pl-kos">;</span> <span class="pl-c">// Error! evil bag detected!</span></pre></div> <p dir="auto"><em>Note: this could be opt-in through a compiler flag, e.g. <code class="notranslate">--nominalClassChecks</code>..</em></p>
<p dir="auto">Proposal: support non-structural typing (e.g. new user-defined base-types, or some form of basic nominal typing). This allows programmer to have more refined types supporting frequently used idioms such as:</p> <ol dir="auto"> <li> <p dir="auto">Indexes that come from different tables. Because all indexes are strings (or numbers), it's easy to use the an index variable (intended for one table) with another index variable intended for a different table. Because indexes are the same type, no error is given. If we have abstract index classes this would be fixed.</p> </li> <li> <p dir="auto">Certain classes of functions (e.g. callbacks) can be important to be distinguished even though they have the same type. e.g. "() =&gt; void" often captures a side-effect producing function. Sometimes you want to control which ones are put into an event handler. Currently there's no way to type-check them.</p> </li> <li> <p dir="auto">Consider having 2 different interfaces that have different optional parameters but the same required one. In typescript you will not get a compiler error when you provide one but need the other. Sometimes this is ok, but very often this is very not ok and you would love to have a compiler error rather than be confused at run-time.</p> </li> </ol> <p dir="auto">Proposal (with all type-Error-lines removed!):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Define FooTable and FooIndex nominal FooIndex = string; // Proposed new kind of nominal declaration. interface FooTable { [i: FooIndex]: { foo: number }; } let s1: FooIndex; let t1: FooTable; // Define BarTable and BarIndex nominal BarIndex = string; // Proposed new kind of nominal declaration. interface BarTable { [i: BarIndex]: { bar: string }; } let s2: BarIndex; let t2: BarTable; // For assignment from base-types and basic structures: no type-overloading is needed. s1 = 'foo1'; t1 = {}; t1[s1] = { foo: 1 }; s2 = 'bar1'; t2 = { 'bar1': { bar: 'barbar' }}; console.log(s2 = s1); // Proposed to be type error. console.log(s2 == s1); // Proposed to be type error. console.log(s2 === s1); // Proposed to be type error. t1[s2].foo = 100; // Gives a runtime error. Proposed to be type error. t1[s1].foo = 100; function BadFooTest(t: FooTable) { if (s2 in t) { // Proposed to be type error. console.log('cool'); console.log(t[s2].foo); // Proposed to be type error. } } function GoodBarTest(t: BarTable) { if (s2 in t) { console.log('cool'); console.log(t[s2].bar); } } BadFooTest(t1); // Gives runtime error; BadFooTest(t2); // No runtime error, Proposed to be type error. GoodBarTest(t1); // Gives runtime error; Proposed to be type error. GoodBarTest(t2);"><pre class="notranslate"><code class="notranslate">// Define FooTable and FooIndex nominal FooIndex = string; // Proposed new kind of nominal declaration. interface FooTable { [i: FooIndex]: { foo: number }; } let s1: FooIndex; let t1: FooTable; // Define BarTable and BarIndex nominal BarIndex = string; // Proposed new kind of nominal declaration. interface BarTable { [i: BarIndex]: { bar: string }; } let s2: BarIndex; let t2: BarTable; // For assignment from base-types and basic structures: no type-overloading is needed. s1 = 'foo1'; t1 = {}; t1[s1] = { foo: 1 }; s2 = 'bar1'; t2 = { 'bar1': { bar: 'barbar' }}; console.log(s2 = s1); // Proposed to be type error. console.log(s2 == s1); // Proposed to be type error. console.log(s2 === s1); // Proposed to be type error. t1[s2].foo = 100; // Gives a runtime error. Proposed to be type error. t1[s1].foo = 100; function BadFooTest(t: FooTable) { if (s2 in t) { // Proposed to be type error. console.log('cool'); console.log(t[s2].foo); // Proposed to be type error. } } function GoodBarTest(t: BarTable) { if (s2 in t) { console.log('cool'); console.log(t[s2].bar); } } BadFooTest(t1); // Gives runtime error; BadFooTest(t2); // No runtime error, Proposed to be type error. GoodBarTest(t1); // Gives runtime error; Proposed to be type error. GoodBarTest(t2); </code></pre></div>
1
<p dir="auto">Currently only the Gregorian calendar is available!</p> <p dir="auto"><code class="notranslate">new Intl.DateTimeFormat([locales[, options]])</code></p> <p dir="auto"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat</a></p>
<p dir="auto">As seen in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="422116599" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1952" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1952/hovercard" href="https://github.com/denoland/deno/issues/1952">#1952</a> / <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="405562913" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1636" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1636/hovercard" href="https://github.com/denoland/deno/issues/1636">#1636</a> ICU needs to be added in Deno build.</p> <p dir="auto">Switching this flag to true maybe: <a href="https://github.com/denoland/deno/blob/master/.gn#L50">https://github.com/denoland/deno/blob/master/.gn#L50</a> ?</p> <p dir="auto">ref: <a href="https://v8.dev/docs/i18n" rel="nofollow">https://v8.dev/docs/i18n</a></p>
1
<p dir="auto">Test allowed me to pass even though I had a typo on paragraph tag.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8842064/14566687/7a0d664a-0328-11e6-98b3-9ae8d5fae234.png"><img src="https://cloud.githubusercontent.com/assets/8842064/14566687/7a0d664a-0328-11e6-98b3-9ae8d5fae234.png" alt="2016-04-15 1" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8842064/14566691/7e446074-0328-11e6-9863-15ef7cdde1a2.png"><img src="https://cloud.githubusercontent.com/assets/8842064/14566691/7e446074-0328-11e6-9863-15ef7cdde1a2.png" alt="2016-04-15" style="max-width: 100%;"></a></p> <h4 dir="auto">Challenge Name</h4> <h4 dir="auto">Issue Description</h4> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version:</li> <li>Operating System:</li> <li>Mobile, Desktop, or Tablet:</li> </ul> <h4 dir="auto">Your Code</h4> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// If relevant, paste all of your challenge code in here "><pre class="notranslate"><span class="pl-c">// If relevant, paste all of your challenge code in here</span></pre></div> <h4 dir="auto">Screenshot</h4>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-set-the-font-family-of-an-element#?solution=%3Cstyle%3E%0A.red-text%20%7B%0Acolor%3A%20red%3B%0A%7D%0A%0Ap%20%7B%0Afont-size%3A%2016px%3B%0A%7D%0Ap%20%7B%20font-family%3A%20monospace%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp1%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%0A%3Cp2%3E%20Purr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%3C%2Fp%3E" rel="nofollow">Waypoint: Set the Font Family of an Element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">A camper went to the chat talking about enumerating paragraphs with this code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style&gt; .red-text { color: red; } p { font-size: 16px; } p { font-family: monospace} &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p1 class=&quot;red-text&quot;&gt;Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.&lt;/p&gt; &lt;p2&gt; Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.&lt;/p&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; } <span class="pl-ent">p</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> monospace} <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p1</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p2</span><span class="pl-kos">&gt;</span> Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">The code passed the test. The problem is that he opened the paragraph as <code class="notranslate">p1</code> but closed it as <code class="notranslate">p</code>, so the browser creates an empty paragraph to balance the tags and the final structure is something like this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;p1&gt; Kitty ipsum... &lt;p&gt;&lt;/p&gt; &lt;p2&gt; Purr... &lt;p&gt;&lt;/p&gt; &lt;/p2&gt; &lt;/p1&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">p1</span><span class="pl-kos">&gt;</span> Kitty ipsum... <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p2</span><span class="pl-kos">&gt;</span> Purr... <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">p2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">p1</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">In the end, there are valid paragraphs (those created by the browser) with the <code class="notranslate">Monospace</code> font.</p> <p dir="auto">Although the objective of this waypoint is styling the paragraphs, which it's done correctly, I think it might be important to check for cases like this too.</p> <p dir="auto">Possible solution: add a test for checking if the paragraphs are empty.</p>
1
<p dir="auto">scikit-learn 0.16.1 or 0.17dev<br> numpy 1.80 or 1.9.2<br> scipy 0.14.0</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.datasets import make_blobs from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier datax,datay=make_blobs(n_samples=500) baseSVC=RandomForestClassifier() clf=GradientBoostingClassifier(init=baseSVC,verbose=1) clf.fit(datax,datay) y_pred=clf.predict(datax) "><pre class="notranslate"><code class="notranslate">from sklearn.datasets import make_blobs from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier datax,datay=make_blobs(n_samples=500) baseSVC=RandomForestClassifier() clf=GradientBoostingClassifier(init=baseSVC,verbose=1) clf.fit(datax,datay) y_pred=clf.predict(datax) </code></pre></div> <p dir="auto">And get these:<br> Iter Train Loss Remaining Time<br> Traceback (most recent call last):<br> File "/media/internal4tb/steven/research_lre_ivector_2015/utils/bugTest.py", line 16, in <br> clf.fit(datax,datay)<br> File "/usr/local/lib/python2.7/dist-packages/sklearn/ensemble/gradient_boosting.py", line 980, in fit<br> begin_at_stage, monitor)<br> File "/usr/local/lib/python2.7/dist-packages/sklearn/ensemble/gradient_boosting.py", line 1040, in _fit_stages<br> random_state)<br> File "/usr/local/lib/python2.7/dist-packages/sklearn/ensemble/gradient_boosting.py", line 747, in _fit_stage<br> sample_weight=sample_weight)<br> File "/usr/local/lib/python2.7/dist-packages/sklearn/ensemble/gradient_boosting.py", line 550, in negative_gradient<br> return y - np.nan_to_num(np.exp(pred[:, k] -<br> IndexError: too many indices for array</p> <p dir="auto">Similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17219308" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/2233" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/2233/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/2233">#2233</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="24795572" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/2691" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/2691/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/2691">#2691</a> not only the same error for RF and SVC</p>
<p dir="auto">here is a tiny script which reproduces the crash.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.datasets import load_iris from sklearn import ensemble from sklearn.cross_validation import train_test_split iris = load_iris() X, y = iris.data, iris.target X, y = X[y &lt; 2], y[y &lt; 2] # make it binary X_train, X_test, y_train, y_test = train_test_split(X, y) # Fit GBT init with RF rf = ensemble.RandomForestClassifier() clf = ensemble.GradientBoostingClassifier(init=rf) clf.fit(X_train, y_train) acc = clf.score(X_test, y_test) print(&quot;Accuracy: {:.4f}&quot;.format(acc))"><pre class="notranslate"><code class="notranslate">from sklearn.datasets import load_iris from sklearn import ensemble from sklearn.cross_validation import train_test_split iris = load_iris() X, y = iris.data, iris.target X, y = X[y &lt; 2], y[y &lt; 2] # make it binary X_train, X_test, y_train, y_test = train_test_split(X, y) # Fit GBT init with RF rf = ensemble.RandomForestClassifier() clf = ensemble.GradientBoostingClassifier(init=rf) clf.fit(X_train, y_train) acc = clf.score(X_test, y_test) print("Accuracy: {:.4f}".format(acc)) </code></pre></div> <p dir="auto">It also seems that the init param in GradientBoostingClassifier is<br> not really tested.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pprett/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pprett">@pprett</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/glouppe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/glouppe">@glouppe</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ogrisel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ogrisel">@ogrisel</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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I have a <code class="notranslate">SnackBarController</code> component that I place at the root of my <code class="notranslate">Router</code>, this is backed by a redux reducer with some actions that allow me to open the <code class="notranslate">SnackBar</code> and pass properties to it for the message and such</p> <h3 dir="auto">Custom Component</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class SnackBarController extends React.Component { render () { return ( &lt;Snackbar open={this.props.snackBar.open} message={this.props.snackBar.message} autoHideDuration={this.props.snackBar.autoHideDuration} onRequestClose={() =&gt; this.props.dispatch(closeSnackBar())} action={this.props.action} onActionClick={this.props.onActionClick} /&gt; ); } }"><pre class="notranslate"><code class="notranslate">class SnackBarController extends React.Component { render () { return ( &lt;Snackbar open={this.props.snackBar.open} message={this.props.snackBar.message} autoHideDuration={this.props.snackBar.autoHideDuration} onRequestClose={() =&gt; this.props.dispatch(closeSnackBar())} action={this.props.action} onActionClick={this.props.onActionClick} /&gt; ); } } </code></pre></div> <h3 dir="auto">Actions</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export const SNACKBAR_OPEN = 'SNACKBAR_OPEN'; export const openSnackBar = data =&gt; ({ type: SNACKBAR_OPEN, ...data, open: true }); export const SNACKBAR_CLOSE = 'SNACKBAR_CLOSE'; export const closeSnackBar = data =&gt; ({ type: SNACKBAR_CLOSE, open: false });"><pre class="notranslate"><code class="notranslate">export const SNACKBAR_OPEN = 'SNACKBAR_OPEN'; export const openSnackBar = data =&gt; ({ type: SNACKBAR_OPEN, ...data, open: true }); export const SNACKBAR_CLOSE = 'SNACKBAR_CLOSE'; export const closeSnackBar = data =&gt; ({ type: SNACKBAR_CLOSE, open: false }); </code></pre></div> <h3 dir="auto">Reducer</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { SNACKBAR_OPEN, SNACKBAR_CLOSE } from &quot;../actions/snackBar&quot;; const snackBarInitialState = { open: false, message: 'There was an error', autoHideDuration: 3000, action: undefined, onActionClick: undefined }; export default (state = snackBarInitialState, action) =&gt; { switch (action.type) { case SNACKBAR_OPEN: case SNACKBAR_CLOSE: const { type, ...rest } = action; return { ...state, ...rest }; default: return state; } };"><pre class="notranslate"><code class="notranslate">import { SNACKBAR_OPEN, SNACKBAR_CLOSE } from "../actions/snackBar"; const snackBarInitialState = { open: false, message: 'There was an error', autoHideDuration: 3000, action: undefined, onActionClick: undefined }; export default (state = snackBarInitialState, action) =&gt; { switch (action.type) { case SNACKBAR_OPEN: case SNACKBAR_CLOSE: const { type, ...rest } = action; return { ...state, ...rest }; default: return state; } }; </code></pre></div> <p dir="auto">I then call the open action when for instance a promise rejects</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="this.props.dispatch(openSnackBar({ message: &quot;Use next?&quot;, onActionClick: this.makeUpdates, action: 'Use', autoHideDuration: 6000 }));"><pre class="notranslate"><code class="notranslate">this.props.dispatch(openSnackBar({ message: "Use next?", onActionClick: this.makeUpdates, action: 'Use', autoHideDuration: 6000 })); </code></pre></div> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When I attempt to open a <code class="notranslate">SnackBar</code> this way, I only get a <code class="notranslate">SnackBar</code> with the message and the timeout, no action button shows at all</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto"><a href="https://codesandbox.io/s/jpy3opvr93" rel="nofollow">https://codesandbox.io/s/jpy3opvr93</a></p> <ol dir="auto"> <li>Click button</li> <li>See that there is no action</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">Ideally this is supposed to allow me to control a snack bar from anywhere in my application including within other action generators</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>^0.19.4</td> </tr> <tr> <td>React</td> <td>^16.1.1</td> </tr> <tr> <td>Redux</td> <td>^5.0.6</td> </tr> <tr> <td>browser</td> <td>Chrome Version 62.0.3202.94 (Official Build) (64-bit)</td> </tr> </tbody> </table>
<ul dir="auto"> <li>[✔] I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">The <a href="http://www.material-ui.com/#/components/snackbar" rel="nofollow">docs for Snackbar Component</a> incorrectly use the onRequestClose prop in all examples. This was a breaking change in <a href="https://libupdate.com/libs/fab5b196-27af-4a2e-8ce9-d6cf4fe67bfc" rel="nofollow">Material UI 1.0.0-beta.24 Dec 17, 2017</a>. The docs should be updated to reflect the changes. Also, I haven't checked any other components as this is my first time using a Material component, but this issue may persist across other docs.</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Expect onRequestClose to be the correct prop for the Snackbar, and possibly other, component(s).</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">onClose is the actual prop that Snackbar (and possibly other components) expect. Using onRequestClose throws a warning and the Snackbar will never trigger the function passed to onRequestClose, nor will the autoHideDuration trigger it.</p> <h2 dir="auto">Breaking Change</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21347228/35249601-4918d4f2-ff98-11e7-87b3-dbb2d92ef85a.png"><img src="https://user-images.githubusercontent.com/21347228/35249601-4918d4f2-ff98-11e7-87b3-dbb2d92ef85a.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">Current Docs</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21347228/35249722-aa873652-ff98-11e7-9e03-3db4d439b5dd.png"><img src="https://user-images.githubusercontent.com/21347228/35249722-aa873652-ff98-11e7-9e03-3db4d439b5dd.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">We are using the custom <code class="notranslate">_error.js</code> page, and we're seeing an issue where anything other than a <code class="notranslate">404</code> from a server error is rendering the error page twice.</p> <p dir="auto">It looks like it's rendering once on the server (the render HTML only has 1 error page), but also rendering an <em>additional</em> error page on the client.</p> <p dir="auto">I'm not sure if this is a bug, or if there is something wrong with the way we're handling the error (we're letting next handle the uncaught error). Any guidance would be appreciated.</p> <p dir="auto">I've created an example that replicates the issue here:</p> <p dir="auto"><a href="https://github.com/kochis/next.js/tree/duplicate-error-example/examples/duplicate-error-pages">https://github.com/kochis/next.js/tree/duplicate-error-example/examples/duplicate-error-pages</a></p> <p dir="auto"><strong>Screenshot</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/814934/30785818-acb889ce-a13a-11e7-96df-4f026d142889.png"><img src="https://user-images.githubusercontent.com/814934/30785818-acb889ce-a13a-11e7-96df-4f026d142889.png" alt="screen shot 2017-09-24 at 3 11 20 pm" style="max-width: 100%;"></a></p>
<h2 dir="auto">Expected Behavior</h2> <p dir="auto">1 error component is rendered</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">2 error components are rendered below eachother. 1 through SSR and 1 through client side rendering.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Link from 'next/link' export default class extends React.Component { static async getInitialProps() { // Just throw an error in getInitialProps throw new Error('test'); } render() { return ( &lt;div&gt; &lt;h1&gt;Hello world&lt;/h1&gt; &lt;/div&gt; ) } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">Link</span> <span class="pl-k">from</span> <span class="pl-s">'next/link'</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">class</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span> <span class="pl-kos">{</span> <span class="pl-k">static</span> <span class="pl-k">async</span> <span class="pl-en">getInitialProps</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Just throw an error in getInitialProps</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">'test'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span>Hello world<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h2 dir="auto">Context</h2> <p dir="auto">Issue can be seen here: <a href="https://create-next-example-app-olyuogqcxe.now.sh/" rel="nofollow">https://create-next-example-app-olyuogqcxe.now.sh/</a> (deployment with the above code). Scroll down cause the component itself is screen filling <g-emoji class="g-emoji" alias="sweat_smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f605.png">😅</g-emoji></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/harshmaur/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/harshmaur">@harshmaur</a> surfaced this.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>2.x+ (so beta too)</td> </tr> <tr> <td>mode</td> <td>production</td> </tr> </tbody> </table>
1
<p dir="auto">Is there any way to run flutter / dart code as a background service / receiver without a <code class="notranslate">FlutterView</code>?</p>
<p dir="auto">Customers would like to execute dart code as background processes on both iOS and Android, for things like syncing down data when wifi is available but the app is not open, etc.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mpcomplete/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mpcomplete">@mpcomplete</a> created a background process on Android to execute Dart code to update flutter. But I'm not aware of a parallel on iOS.</p> <p dir="auto">This issue tracks the development of APIs in plugins or otherwise. Engine support for these abstractions is tracked in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180798789" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/6192" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/6192/hovercard" href="https://github.com/flutter/flutter/issues/6192">#6192</a>.</p>
1
<p dir="auto">Select an indented line of text by placing your cursor at the beginning of the line and pressing the down arrow while holding the shift key. Copy the line with cmd-c, then immediately paste with cmd-v.</p> <p dir="auto">I expect the duplicated line to be pasted with the same indentation as the previous line, but it's always pasted with leading whitespace removed.</p> <p dir="auto">Atom Version: 0.44.0<br> User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.44.0 Atom-Shell/0.7.6 Safari/537.36</p>
<p dir="auto">If I've selected a block of ruby that is indented and then paste it on a line that is blank (no with no spaces on it), the lines are inserted with no indentation in front of them, instead of the indendation of the line above.</p> <p dir="auto">I have to hit "tab" before pasting if I want to get it to line up with everything else.</p> <p dir="auto">Atom Version: 0.44.0<br> User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.44.0 Atom-Shell/0.7.6 Safari/537.36</p>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">4.1.0</p> <h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3> <p dir="auto">sharding-proxy</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">select count(engines)</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">error can not execute the sql .</p> <h3 dir="auto">Reason analyze (If you can)</h3> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> <p dir="auto">master-slave read write split</p> <p dir="auto">table:<br> mysql.slave.sock@lsl&gt; desc aircraft ;<br> +----------------+--------------+------+-----+---------+-------+<br> | Field | Type | Null | Key | Default | Extra |<br> +----------------+--------------+------+-----+---------+-------+<br> | aircraft_code | char(3) | NO | PRI | NULL | |<br> | aircraft_type | char(64) | NO | | NULL | |<br> | engines | tinyint(4) | YES | | NULL | |<br> | category | char(10) | NO | | NULL | |<br> | wide_body | char(3) | NO | | NULL | |<br> | wing_span | float(6,2) | NO | | NULL | |<br> | length1 | float(6,2) | NO | | NULL | |<br> | weight | int(7) | NO | | NULL | |<br> | capacity | smallint(3) | NO | | NULL | |<br> | pay_load | int(7) | NO | | NULL | |<br> | cruising_speed | mediumint(5) | NO | | NULL | |<br> | range_miles | mediumint(5) | NO | | NULL | |<br> | pressurized | char(3) | NO | | NULL | |<br> +----------------+--------------+------+-----+---------+-------+<br> 13 rows in set (0.01 sec)</p> <p dir="auto">run sql on proxy port 3307 :</p> <p dir="auto">select sum(engines) from aircraft ;</p> <p dir="auto">error list :</p> <p dir="auto">3307@(none)&gt; use xxxx<br> Database changed<br> 3307@xxxx&gt; select sum(engines) from aircraft ;<br> ERROR 10002 (C1000): 2Unknown exception: [null]<br> 3307@xxxx&gt;</p> <p dir="auto">stdout.log :</p> <p dir="auto">[INFO ] 15:08:01.982 [epollEventLoopGroup-2-1] i.n.handler.logging.LoggingHandler - [id: 0xb154cdd8, L:/0.0.0.0:3307] READ COMPLETE<br> line 1:11 no viable alternative at input 'sum(engines'<br> line 1:11 no viable alternative at input 'sum(engines'<br> [ERROR] 15:08:51.210 [ShardingSphere-Command-3] o.a.s.s.f.c.CommandExecutorTask - Exception occur:<br> java.lang.NullPointerException: null<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.MySQLVisitor.visitPredicate(MySQLVisitor.java:315)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.MySQLVisitor.visitPredicate(MySQLVisitor.java:121)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$PredicateContext.accept(MySQLStatementParser.java:11690)<br> at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.MySQLVisitor.visitBooleanPrimary(MySQLVisitor.java:273)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.MySQLVisitor.visitBooleanPrimary(MySQLVisitor.java:121)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$BooleanPrimaryContext.accept(MySQLStatementParser.java:11463)<br> at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.MySQLVisitor.visitExpr(MySQLVisitor.java:258)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.MySQLVisitor.visitExpr(MySQLVisitor.java:121)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$ExprContext.accept(MySQLStatementParser.java:11241)<br> at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDMLVisitor.createProjection(MySQLDMLVisitor.java:441)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDMLVisitor.visitProjection(MySQLDMLVisitor.java:429)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDMLVisitor.visitProjection(MySQLDMLVisitor.java:127)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$ProjectionContext.accept(MySQLStatementParser.java:5370)<br> at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDMLVisitor.visitProjections(MySQLDMLVisitor.java:405)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDMLVisitor.visitProjections(MySQLDMLVisitor.java:127)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$ProjectionsContext.accept(MySQLStatementParser.java:4865)<br> at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDMLVisitor.visitSelectClause(MySQLDMLVisitor.java:324)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDMLVisitor.visitSelectClause(MySQLDMLVisitor.java:127)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$SelectClauseContext.accept(MySQLStatementParser.java:4551)<br> at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDMLVisitor.visitUnionClause(MySQLDMLVisitor.java:317)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDMLVisitor.visitUnionClause(MySQLDMLVisitor.java:127)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$UnionClauseContext.accept(MySQLStatementParser.java:4446)</p> <p dir="auto">t org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDMLVisitor.visitSelect(MySQLDMLVisitor.java:309)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDMLVisitor.visitSelect(MySQLDMLVisitor.java:127)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$SelectContext.accept(MySQLStatementParser.java:3098)<br> at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.SQLParserEngine.parse0(SQLParserEngine.java:80)<br> at org.apache.shardingsphere.sql.parser.SQLParserEngine.parse(SQLParserEngine.java:61)<br> at org.apache.shardingsphere.shardingproxy.backend.text.TextProtocolBackendHandlerFactory.newInstance(TextProtocolBackendHandlerFactory.java:69)<br> at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.(MySQLComQueryPacketExecutor.java:65)<br> at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.MySQLCommandExecutorFactory.newInstance(MySQLCommandExecutorFactory.java:70)<br> at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.MySQLCommandExecuteEngine.getCommandExecutor(MySQLCommandExecuteEngine.java:59)<br> at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:92)<br> line 1:28 no viable alternative at input 'engines'<br> line 1:28 mismatched input 'engines' expecting {TRUNCATE, COLUMN, POSITION, VIEW, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, DATE, TIME, TIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TYPE, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, MODIFY, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, WITHOUT, ESCAPE, SUBPARTITION, STORAGE, SUPER, TEMPORARY, THAN, UNBOUNDED, SIGNED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MEMORY, NONE, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_NO_CACHE, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, CODE, CONTEXT, SOURCE, CHANNEL, CLONE, AGGREGATE, INSTALL, COMPONENT, UNINSTALL, RESOURCE, EXPIRE, NEVER, HISTORY, OPTIONAL, REUSE, MAX_QUERIES_PER_HOUR, MAX_UPDATES_PER_HOUR, MAX_CONNECTIONS_PER_HOUR, MAX_USER_CONNECTIONS, RETAIN, RANDOM, OLD, ISSUER, SUBJECT, CACHE, GENERAL, SLOW, USER_RESOURCES, EXPORT, RELAY, HOSTS, FLUSH, RESET, RESTART, IO_THREAD, SQL_THREAD, SQL_BEFORE_GTIDS, SQL_AFTER_GTIDS, MASTER_LOG_FILE, MASTER_LOG_POS, RELAY_LOG_FILE, RELAY_LOG_POS, SQL_AFTER_MTS_GAPS, UNTIL, DEFAULT_AUTH, PLUGIN_DIR, STOP, IDENTIFIER_}<br> [ERROR] 15:12:03.617 [ShardingSphere-Command-10] o.a.s.s.f.c.CommandExecutorTask - Exception occur:<br> java.lang.NullPointerException: null</p> <p dir="auto">can repeat</p> <p dir="auto">and alter table</p> <p dir="auto">3307@xxxx&gt; alter table aircraft change engines bb tinyint ;<br> ERROR 10002 (C1000): 2Unknown exception: [null]</p> <p dir="auto">get ERRORS</p> <p dir="auto">3307@xxxx&gt; alter table aircraft change engines bb tinyint ;<br> Query OK, 135 rows affected (0.05 sec)</p> <p dir="auto">column engines with `` can run well .</p> <p dir="auto">stdout.log shows errors :</p> <p dir="auto">line 1:31 no viable alternative at input 'engines'<br> line 1:31 extraneous input 'engines' expecting {TRUNCATE, COLUMN, POSITION, VIEW, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, DATE, TIME, TIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TYPE, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, MODIFY, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, WITHOUT, ESCAPE, SUBPARTITION, STORAGE, SUPER, TEMPORARY, THAN, UNBOUNDED, SIGNED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MEMORY, NONE, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_NO_CACHE, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, CODE, CONTEXT, SOURCE, CHANNEL, CLONE, AGGREGATE, INSTALL, COMPONENT, UNINSTALL, RESOURCE, EXPIRE, NEVER, HISTORY, OPTIONAL, REUSE, MAX_QUERIES_PER_HOUR, MAX_UPDATES_PER_HOUR, MAX_CONNECTIONS_PER_HOUR, MAX_USER_CONNECTIONS, RETAIN, RANDOM, OLD, ISSUER, SUBJECT, CACHE, GENERAL, SLOW, USER_RESOURCES, EXPORT, RELAY, HOSTS, FLUSH, RESET, RESTART, IO_THREAD, SQL_THREAD, SQL_BEFORE_GTIDS, SQL_AFTER_GTIDS, MASTER_LOG_FILE, MASTER_LOG_POS, RELAY_LOG_FILE, RELAY_LOG_POS, SQL_AFTER_MTS_GAPS, UNTIL, DEFAULT_AUTH, PLUGIN_DIR, STOP, IDENTIFIER_}<br> [ERROR] 16:00:36.817 [ShardingSphere-Command-5] o.a.s.s.f.c.CommandExecutorTask - Exception occur:<br> java.lang.NullPointerException: null<br> at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.MySQLVisitor.visitColumnName(MySQLVisitor.java:224)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.MySQLVisitor.visitColumnName(MySQLVisitor.java:121)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$ColumnNameContext.accept(MySQLStatementParser.java:9266)</p> <p dir="auto">at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDDLVisitor.visitColumnDefinition(MySQLDDLVisitor.java:227)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDDLVisitor.visitColumnDefinition(MySQLDDLVisitor.java:90)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$ColumnDefinitionContext.accept(MySQLStatementParser.java:23179)<br> at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDDLVisitor.visitAlterDefinitionClause(MySQLDDLVisitor.java:189)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDDLVisitor.visitAlterDefinitionClause(MySQLDDLVisitor.java:90)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$AlterDefinitionClauseContext.accept(MySQLStatementParser.java:24842)<br> at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDDLVisitor.visitAlterTable(MySQLDDLVisitor.java:161)<br> at org.apache.shardingsphere.sql.parser.mysql.visitor.impl.MySQLDDLVisitor.visitAlterTable(MySQLDDLVisitor.java:90)<br> at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$AlterTableContext.accept(MySQLStatementParser.java:19238)<br> at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)<br> at org.apache.shardingsphere.sql.parser.SQLParserEngine.parse0(SQLParserEngine.java:80)<br> at org.apache.shardingsphere.sql.parser.SQLParserEngine.parse(SQLParserEngine.java:61)<br> at org.apache.shardingsphere.shardingproxy.backend.text.TextProtocolBackendHandlerFactory.newInstance(TextProtocolBackendHandlerFactory.java:69)<br> at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.(MySQLComQueryPacketExecutor.java:65)<br> at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.MySQLCommandExecutorFactory.newInstance(MySQLCommandExecutorFactory.java:70)<br> at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.MySQLCommandExecuteEngine.getCommandExecutor(MySQLCommandExecuteEngine.java:59)<br> at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:92)<br> at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:71)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br> at java.lang.Thread.run(Thread.java:748)</p>
<p dir="auto">There is a question to ask, about 4.0.0-RC1 and 4.1.1, for TableMetaDataLoader<br> The project environment is: SpringBoot + Oracle 11g Release 2, there are about 600 tables in the database, there are 4 tables that need to be divided into tables, and there are too many indexes</p> <p dir="auto">4.0.0-RC1, it can be started normally during development, the loading time is a little long, but it is a bit unbearable; and when 4 upgrades to 1.1.1, the log output after startup, stays ShardingSphere-metadata :131: Loading 4 logic tables' meta data .</p> <p dir="auto">Read the source code IndexMetaDataLoader.load(final Connection connection, final String table, final String databaseType), connection.getMetaData().getIndexInfo(....)</p>
0
<p dir="auto">Hello,</p> <p dir="auto">when I run the following testcase in the dockerfile with npm 7.0.6 it fails with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! Cannot read property 'once' of undefined"><pre class="notranslate"><code class="notranslate">npm ERR! Cannot read property 'once' of undefined </code></pre></div> <p dir="auto">Running it with 7.0.5 works as expected.</p> <p dir="auto">Dockerfile:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM ubuntu:20.04 # silence debconf ENV DEBIAN_FRONTEND=noninteractive # update base packages RUN apt-get update &amp;&amp; apt-get upgrade -y # install nodejs WORKDIR /opt RUN apt-get install -y tar wget xz-utils RUN wget --no-check-certificate https://nodejs.org/download/release/latest-v12.x/node-v12.19.0-linux-x64.tar.xz \ &amp;&amp; tar -axvf node-v12.19.0-linux-x64.tar.xz RUN ln -s /opt/node-v12.19.0-linux-x64/bin/* /usr/local/bin/ # upgrade npm RUN npm install [email protected] -g # CVE-2020-15095 / GHSA-xgh6-85xh-479p RUN npm --version # run testcase WORKDIR /testcase ADD package.json . RUN npm run testcase"><pre class="notranslate"><code class="notranslate">FROM ubuntu:20.04 # silence debconf ENV DEBIAN_FRONTEND=noninteractive # update base packages RUN apt-get update &amp;&amp; apt-get upgrade -y # install nodejs WORKDIR /opt RUN apt-get install -y tar wget xz-utils RUN wget --no-check-certificate https://nodejs.org/download/release/latest-v12.x/node-v12.19.0-linux-x64.tar.xz \ &amp;&amp; tar -axvf node-v12.19.0-linux-x64.tar.xz RUN ln -s /opt/node-v12.19.0-linux-x64/bin/* /usr/local/bin/ # upgrade npm RUN npm install [email protected] -g # CVE-2020-15095 / GHSA-xgh6-85xh-479p RUN npm --version # run testcase WORKDIR /testcase ADD package.json . RUN npm run testcase </code></pre></div> <p dir="auto">package.json:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;testcase&quot;, &quot;version&quot;: &quot;1.0.0&quot;, &quot;description&quot;: &quot;dummy test case&quot;, &quot;scripts&quot;: { &quot;testcase&quot;: &quot;/bin/true&quot; } }"><pre class="notranslate"><code class="notranslate">{ "name": "testcase", "version": "1.0.0", "description": "dummy test case", "scripts": { "testcase": "/bin/true" } } </code></pre></div> <p dir="auto">Could you please take a look?</p>
<h1 dir="auto">What / Why</h1> <p dir="auto">This code assumes that <code class="notranslate">add</code> is only ever called with an object with a <code class="notranslate">once</code> method:</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/npm/run-script/blob/1c7bbcdaf5ae2a8d6a0762063505746fe20d577c/lib/signal-manager.js#L31-L36">run-script/lib/signal-manager.js</a> </p> <p class="mb-0 color-fg-muted"> Lines 31 to 36 in <a data-pjax="true" class="commit-tease-sha" href="/npm/run-script/commit/1c7bbcdaf5ae2a8d6a0762063505746fe20d577c">1c7bbcd</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="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-k">const</span> <span class="pl-en">add</span> <span class="pl-c1">=</span> <span class="pl-s1">proc</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</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-s1">runningProcs</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s1">proc</span><span class="pl-kos">)</span> </td> </tr> <tr class="border-0"> <td id="L33" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="33"></td> <td id="LC33" 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-c1">!</span><span class="pl-s1">handlersInstalled</span><span class="pl-kos">)</span> </td> </tr> <tr class="border-0"> <td id="L34" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="34"></td> <td id="LC34" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">setupListeners</span><span class="pl-kos">(</span><span class="pl-kos">)</span> </td> </tr> <tr class="border-0"> <td id="L35" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="35"></td> <td id="LC35" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L36" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="36"></td> <td id="LC36" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">proc</span><span class="pl-kos">.</span><span class="pl-en">once</span><span class="pl-kos">(</span><span class="pl-s">'exit'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> code <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">In fact, <code class="notranslate">add</code> is called with <code class="notranslate">undefined</code> in a Docker container when running any script. (I'm not sure what about the Docker environment causes this.) See repro instructions below.</p> <h2 dir="auto">When</h2> <p dir="auto">Repros consistently.</p> <h2 dir="auto">Where</h2> <ul dir="auto"> <li>n/a</li> </ul> <h2 dir="auto">How</h2> <ul dir="auto"> <li>n/a</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">When running any script, npm raises the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="23 verbose stack TypeError: Cannot read property 'once' of undefined 23 verbose stack at Object.add (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/signal-manager.js:36:8) 23 verbose stack at runScriptPkg (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:63:19) 23 verbose stack at runScript (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:8:16) 23 verbose stack at runScript (/usr/local/lib/node_modules/npm/lib/run-script.js:77:11)"><pre class="notranslate"><code class="notranslate">23 verbose stack TypeError: Cannot read property 'once' of undefined 23 verbose stack at Object.add (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/signal-manager.js:36:8) 23 verbose stack at runScriptPkg (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:63:19) 23 verbose stack at runScript (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:8:16) 23 verbose stack at runScript (/usr/local/lib/node_modules/npm/lib/run-script.js:77:11) </code></pre></div> <h3 dir="auto">Steps to Reproduce</h3> <p dir="auto">Create a <code class="notranslate">Dockerfile</code> containing:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM node:14.14 RUN npm install --global [email protected] WORKDIR /app RUN npm init -y RUN npm test || exit 0 RUN cat /root/.npm/_logs/*.log"><pre class="notranslate"><code class="notranslate">FROM node:14.14 RUN npm install --global [email protected] WORKDIR /app RUN npm init -y RUN npm test || exit 0 RUN cat /root/.npm/_logs/*.log </code></pre></div> <p dir="auto">Then, run <code class="notranslate">docker build .</code>.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">An error should not be raised.</p> <h2 dir="auto">Who</h2> <ul dir="auto"> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isaacs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isaacs">@isaacs</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nlf/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nlf">@nlf</a></li> </ul> <h2 dir="auto">References</h2> <ul dir="auto"> <li>n/a</li> </ul>
1
<p dir="auto">Using rev 1278:a7e14835e46b of golang.org/x/tools the <code class="notranslate">stringer</code> command generate a source file<br> (t_string.go) which fails to compile due to the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./t_string.go:18: cannot use _T_index[i - T(1)] (type uint16) as type uint8 in assignment"><pre class="notranslate"><code class="notranslate">./t_string.go:18: cannot use _T_index[i - T(1)] (type uint16) as type uint8 in assignment </code></pre></div> <p dir="auto"><a href="http://play.golang.org/p/71KjyXwt4Z" rel="nofollow">p.go</a></p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package p // NOTE: Using rev 1278:a7e14835e46b of golang.org/x/tools the stringer command // generate a source file which fails to compile due to the following error: // cannot use _T_index[i - T(1)] (type uint16) as type uint8 in assignment //go:generate stringer -type T type T uint8 const ( Taaaaaaaaaaaaaaaaaaaaaaaaaaa T = iota Tbbbbbbbbbbbbbbbbbbbbbbbbbbb Tccccccccccccccccccccccccccc Tddddddddddddddddddddddddddd Teeeeeeeeeeeeeeeeeeeeeeeeeee Tfffffffffffffffffffffffffff Tggggggggggggggggggggggggggg Thhhhhhhhhhhhhhhhhhhhhhhhhhh Tiiiiiiiiiiiiiiiiiiiiiiiiiii Tjjjjjjjjjjjjjjjjjjjjjjjjjjj )"><pre class="notranslate"><span class="pl-k">package</span> p <span class="pl-c">// NOTE: Using rev 1278:a7e14835e46b of golang.org/x/tools the stringer command</span> <span class="pl-c">// generate a source file which fails to compile due to the following error:</span> <span class="pl-c">// cannot use _T_index[i - T(1)] (type uint16) as type uint8 in assignment</span> <span class="pl-c">//go:generate stringer -type T</span> <span class="pl-k">type</span> <span class="pl-smi">T</span> <span class="pl-smi">uint8</span> <span class="pl-k">const</span> ( <span class="pl-s1">Taaaaaaaaaaaaaaaaaaaaaaaaaaa</span> <span class="pl-smi">T</span> <span class="pl-c1">=</span> <span class="pl-s1">iota</span> <span class="pl-s1">Tbbbbbbbbbbbbbbbbbbbbbbbbbbb</span> <span class="pl-s1">Tccccccccccccccccccccccccccc</span> <span class="pl-s1">Tddddddddddddddddddddddddddd</span> <span class="pl-s1">Teeeeeeeeeeeeeeeeeeeeeeeeeee</span> <span class="pl-s1">Tfffffffffffffffffffffffffff</span> <span class="pl-s1">Tggggggggggggggggggggggggggg</span> <span class="pl-s1">Thhhhhhhhhhhhhhhhhhhhhhhhhhh</span> <span class="pl-s1">Tiiiiiiiiiiiiiiiiiiiiiiiiiii</span> <span class="pl-s1">Tjjjjjjjjjjjjjjjjjjjjjjjjjjj</span> )</pre></div> <p dir="auto"><a href="http://play.golang.org/p/AXdDHgkhDR" rel="nofollow">t_string.go</a></p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// generated by stringer -type T; DO NOT EDIT package p import &quot;fmt&quot; const _T_name = &quot;TaaaaaaaaaaaaaaaaaaaaaaaaaaaTbbbbbbbbbbbbbbbbbbbbbbbbbbbTcccccccccccccccccccccccccccTdddddddddddddddddddddddddddTeeeeeeeeeeeeeeeeeeeeeeeeeeeTfffffffffffffffffffffffffffTgggggggggggggggggggggggggggThhhhhhhhhhhhhhhhhhhhhhhhhhhTiiiiiiiiiiiiiiiiiiiiiiiiiiiTjjjjjjjjjjjjjjjjjjjjjjjjjjj&quot; var _T_index = [...]uint16{28, 56, 84, 112, 140, 168, 196, 224, 252, 280} func (i T) String() string { if i &gt;= T(len(_T_index)) { return fmt.Sprintf(&quot;T(%d)&quot;, i) } hi := _T_index[i] lo := uint8(0) if i &gt; 0 { lo = _T_index[i-1] } return _T_name[lo:hi] }"><pre class="notranslate"><span class="pl-c">// generated by stringer -type T; DO NOT EDIT</span> <span class="pl-k">package</span> p <span class="pl-k">import</span> <span class="pl-s">"fmt"</span> <span class="pl-k">const</span> <span class="pl-s1">_T_name</span> <span class="pl-c1">=</span> <span class="pl-s">"TaaaaaaaaaaaaaaaaaaaaaaaaaaaTbbbbbbbbbbbbbbbbbbbbbbbbbbbTcccccccccccccccccccccccccccTdddddddddddddddddddddddddddTeeeeeeeeeeeeeeeeeeeeeeeeeeeTfffffffffffffffffffffffffffTgggggggggggggggggggggggggggThhhhhhhhhhhhhhhhhhhhhhhhhhhTiiiiiiiiiiiiiiiiiiiiiiiiiiiTjjjjjjjjjjjjjjjjjjjjjjjjjjj"</span> <span class="pl-k">var</span> <span class="pl-s1">_T_index</span> <span class="pl-c1">=</span> [<span class="pl-c1">...</span>]<span class="pl-smi">uint16</span>{<span class="pl-c1">28</span>, <span class="pl-c1">56</span>, <span class="pl-c1">84</span>, <span class="pl-c1">112</span>, <span class="pl-c1">140</span>, <span class="pl-c1">168</span>, <span class="pl-c1">196</span>, <span class="pl-c1">224</span>, <span class="pl-c1">252</span>, <span class="pl-c1">280</span>} <span class="pl-k">func</span> (<span class="pl-s1">i</span> <span class="pl-smi">T</span>) <span class="pl-en">String</span>() <span class="pl-smi">string</span> { <span class="pl-k">if</span> <span class="pl-s1">i</span> <span class="pl-c1">&gt;=</span> <span class="pl-en">T</span>(<span class="pl-en">len</span>(<span class="pl-s1">_T_index</span>)) { <span class="pl-k">return</span> <span class="pl-s1">fmt</span>.<span class="pl-en">Sprintf</span>(<span class="pl-s">"T(%d)"</span>, <span class="pl-s1">i</span>) } <span class="pl-s1">hi</span> <span class="pl-c1">:=</span> <span class="pl-s1">_T_index</span>[<span class="pl-s1">i</span>] <span class="pl-s1">lo</span> <span class="pl-c1">:=</span> <span class="pl-en">uint8</span>(<span class="pl-c1">0</span>) <span class="pl-k">if</span> <span class="pl-s1">i</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">0</span> { <span class="pl-s1">lo</span> <span class="pl-c1">=</span> <span class="pl-s1">_T_index</span>[<span class="pl-s1">i</span><span class="pl-c1">-</span><span class="pl-c1">1</span>] } <span class="pl-k">return</span> <span class="pl-s1">_T_name</span>[<span class="pl-s1">lo</span>:<span class="pl-s1">hi</span>] }</pre></div>
<p dir="auto">A pattern that I'm coming up on reasonably frequently in my code is the following:</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if _, ok := myMap[key]; ok { // do some stuff }"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-s1">_</span>, <span class="pl-s1">ok</span> <span class="pl-c1">:=</span> <span class="pl-s1">myMap</span>[<span class="pl-s1">key</span>]; <span class="pl-s1">ok</span> { <span class="pl-c">// do some stuff</span> }</pre></div> <p dir="auto">It seems to me like there would be some (albeit small) gains to be had in the compiler detecting this particular case of discarding the value result of map-lookup in favor of only returning the boolean, and avoid doing the pointer arithmetic necessary to find that value.</p>
0
<p dir="auto">The following code raises an error (tested on pandas 0.17.0, matplotlib 1.4.3, and Python 3.4.2)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; fig, ax = plt.subplots() &gt;&gt;&gt; fig.add_axes([0.2, 0.2, 0.2, 0.2]) &gt;&gt;&gt; pd.Series(np.random.rand(100)).plot(ax=ax) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) &lt;ipython-input-13-80531efe48c4&gt; in &lt;module&gt;() 8 fig, ax = plt.subplots() 9 inset = fig.add_axes([0.2, 0.2, 0.2, 0.2]) ---&gt; 10 data.plot(ax=ax) /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in __call__(self, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds) 3491 colormap=colormap, table=table, yerr=yerr, 3492 xerr=xerr, label=label, secondary_y=secondary_y, -&gt; 3493 **kwds) 3494 __call__.__doc__ = plot_series.__doc__ 3495 /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in plot_series(data, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds) 2581 yerr=yerr, xerr=xerr, 2582 label=label, secondary_y=secondary_y, -&gt; 2583 **kwds) 2584 2585 /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in _plot(data, x, y, subplots, ax, kind, **kwds) 2378 plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds) 2379 -&gt; 2380 plot_obj.generate() 2381 plot_obj.draw() 2382 return plot_obj.result /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in generate(self) 990 self._post_plot_logic_common(ax, self.data) 991 self._post_plot_logic(ax, self.data) --&gt; 992 self._adorn_subplots() 993 994 def _args_adjust(self): /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in _adorn_subplots(self) 1141 naxes=nrows * ncols, nrows=nrows, 1142 ncols=ncols, sharex=self.sharex, -&gt; 1143 sharey=self.sharey) 1144 1145 for ax in self.axes: /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in _handle_shared_axes(axarr, nplots, naxes, nrows, ncols, sharex, sharey) 3378 layout = np.zeros((nrows+1,ncols+1), dtype=np.bool) 3379 for ax in axarr: -&gt; 3380 layout[ax.rowNum, ax.colNum] = ax.get_visible() 3381 3382 for ax in axarr: AttributeError: 'Axes' object has no attribute 'rowNum'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; fig, ax = plt.subplots() &gt;&gt;&gt; fig.add_axes([0.2, 0.2, 0.2, 0.2]) &gt;&gt;&gt; pd.Series(np.random.rand(100)).plot(ax=ax) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) &lt;ipython-input-13-80531efe48c4&gt; in &lt;module&gt;() 8 fig, ax = plt.subplots() 9 inset = fig.add_axes([0.2, 0.2, 0.2, 0.2]) ---&gt; 10 data.plot(ax=ax) /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in __call__(self, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds) 3491 colormap=colormap, table=table, yerr=yerr, 3492 xerr=xerr, label=label, secondary_y=secondary_y, -&gt; 3493 **kwds) 3494 __call__.__doc__ = plot_series.__doc__ 3495 /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in plot_series(data, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds) 2581 yerr=yerr, xerr=xerr, 2582 label=label, secondary_y=secondary_y, -&gt; 2583 **kwds) 2584 2585 /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in _plot(data, x, y, subplots, ax, kind, **kwds) 2378 plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds) 2379 -&gt; 2380 plot_obj.generate() 2381 plot_obj.draw() 2382 return plot_obj.result /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in generate(self) 990 self._post_plot_logic_common(ax, self.data) 991 self._post_plot_logic(ax, self.data) --&gt; 992 self._adorn_subplots() 993 994 def _args_adjust(self): /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in _adorn_subplots(self) 1141 naxes=nrows * ncols, nrows=nrows, 1142 ncols=ncols, sharex=self.sharex, -&gt; 1143 sharey=self.sharey) 1144 1145 for ax in self.axes: /Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/tools/plotting.py in _handle_shared_axes(axarr, nplots, naxes, nrows, ncols, sharex, sharey) 3378 layout = np.zeros((nrows+1,ncols+1), dtype=np.bool) 3379 for ax in axarr: -&gt; 3380 layout[ax.rowNum, ax.colNum] = ax.get_visible() 3381 3382 for ax in axarr: AttributeError: 'Axes' object has no attribute 'rowNum' </code></pre></div>
<p dir="auto">When attempting to use the Pandas 0.17.0 plot method to target plotting on an external axes: AttributeError: 'Axes' object has no attribute 'is_first_col'.</p> <p dir="auto">Pandas: 0.17.0<br> Numpy: 1.9.2<br> Matplotlib: 1.5.0</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd import numpy as np from matplotlib import pyplot as plt df = pd.DataFrame({'A' : ['foo', 'bar', 'foo', 'bar', 'foo', 'bar', 'foo', 'foo'], 'B' : ['one', 'one', 'two', 'three', 'two', 'two', 'one', 'three'], 'C' : np.random.randn(8), 'D' : np.random.randn(8)}) fig = plt.figure() ax = fig.add_axes((0,0,1,1)) df.plot(kind='scatter', ax=ax, x='C', y='D', c=df.C, s=100, linewidth=0, colormap='hsv') --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) &lt;ipython-input-21-b38f872a3fc3&gt; in &lt;module&gt;() ----&gt; 1 df.plot(kind='scatter', ax=ax, x='C', y='D', c=df.C, s=100, linewidth=0) D:\Python27\lib\site-packages\pandas\tools\plotting.pyc in __call__(self, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds) 3665 fontsize=fontsize, colormap=colormap, table=table, 3666 yerr=yerr, xerr=xerr, secondary_y=secondary_y, -&gt; 3667 sort_columns=sort_columns, **kwds) 3668 __call__.__doc__ = plot_frame.__doc__ 3669 D:\Python27\lib\site-packages\pandas\tools\plotting.pyc in plot_frame(data, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds) 2550 yerr=yerr, xerr=xerr, 2551 secondary_y=secondary_y, sort_columns=sort_columns, -&gt; 2552 **kwds) 2553 2554 D:\Python27\lib\site-packages\pandas\tools\plotting.pyc in _plot(data, x, y, subplots, ax, kind, **kwds) 2378 plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds) 2379 -&gt; 2380 plot_obj.generate() 2381 plot_obj.draw() 2382 return plot_obj.result D:\Python27\lib\site-packages\pandas\tools\plotting.pyc in generate(self) 990 self._post_plot_logic_common(ax, self.data) 991 self._post_plot_logic(ax, self.data) --&gt; 992 self._adorn_subplots() 993 994 def _args_adjust(self): D:\Python27\lib\site-packages\pandas\tools\plotting.pyc in _adorn_subplots(self) 1141 naxes=nrows * ncols, nrows=nrows, 1142 ncols=ncols, sharex=self.sharex, -&gt; 1143 sharey=self.sharey) 1144 1145 for ax in self.axes: D:\Python27\lib\site-packages\pandas\tools\plotting.pyc in _handle_shared_axes(axarr, nplots, naxes, nrows, ncols, sharex, sharey) 3403 # as we only have labels in teh first column and we always have a subplot there, 3404 # we can skip the layout test -&gt; 3405 if ax.is_first_col(): 3406 continue 3407 if sharey or len(ax.get_shared_y_axes().get_siblings(ax)) &gt; 1: AttributeError: 'Axes' object has no attribute 'is_first_col'"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</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">'A'</span> : [<span class="pl-s">'foo'</span>, <span class="pl-s">'bar'</span>, <span class="pl-s">'foo'</span>, <span class="pl-s">'bar'</span>, <span class="pl-s">'foo'</span>, <span class="pl-s">'bar'</span>, <span class="pl-s">'foo'</span>, <span class="pl-s">'foo'</span>], <span class="pl-s">'B'</span> : [<span class="pl-s">'one'</span>, <span class="pl-s">'one'</span>, <span class="pl-s">'two'</span>, <span class="pl-s">'three'</span>, <span class="pl-s">'two'</span>, <span class="pl-s">'two'</span>, <span class="pl-s">'one'</span>, <span class="pl-s">'three'</span>], <span class="pl-s">'C'</span> : <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">8</span>), <span class="pl-s">'D'</span> : <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">8</span>)}) <span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_axes</span>((<span class="pl-c1">0</span>,<span class="pl-c1">0</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>)) <span class="pl-s1">df</span>.<span class="pl-en">plot</span>(<span class="pl-s1">kind</span><span class="pl-c1">=</span><span class="pl-s">'scatter'</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">'C'</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>, <span class="pl-s1">c</span><span class="pl-c1">=</span><span class="pl-s1">df</span>.<span class="pl-v">C</span>, <span class="pl-s1">s</span><span class="pl-c1">=</span><span class="pl-c1">100</span>, <span class="pl-s1">linewidth</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">colormap</span><span class="pl-c1">=</span><span class="pl-s">'hsv'</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">AttributeError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">21</span><span class="pl-c1">-</span><span class="pl-s1">b38f872a3fc3</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>() <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">df</span>.<span class="pl-en">plot</span>(<span class="pl-s1">kind</span><span class="pl-c1">=</span><span class="pl-s">'scatter'</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">'C'</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>, <span class="pl-s1">c</span><span class="pl-c1">=</span><span class="pl-s1">df</span>.<span class="pl-v">C</span>, <span class="pl-s1">s</span><span class="pl-c1">=</span><span class="pl-c1">100</span>, <span class="pl-s1">linewidth</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-v">D</span>:\P<span class="pl-s1">ython27</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\p<span class="pl-s1">andas</span>\t<span class="pl-s1">ools</span>\p<span class="pl-s1">lotting</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">__call__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">kind</span>, <span class="pl-s1">ax</span>, <span class="pl-s1">subplots</span>, <span class="pl-s1">sharex</span>, <span class="pl-s1">sharey</span>, <span class="pl-s1">layout</span>, <span class="pl-s1">figsize</span>, <span class="pl-s1">use_index</span>, <span class="pl-s1">title</span>, <span class="pl-s1">grid</span>, <span class="pl-s1">legend</span>, <span class="pl-s1">style</span>, <span class="pl-s1">logx</span>, <span class="pl-s1">logy</span>, <span class="pl-s1">loglog</span>, <span class="pl-s1">xticks</span>, <span class="pl-s1">yticks</span>, <span class="pl-s1">xlim</span>, <span class="pl-s1">ylim</span>, <span class="pl-s1">rot</span>, <span class="pl-s1">fontsize</span>, <span class="pl-s1">colormap</span>, <span class="pl-s1">table</span>, <span class="pl-s1">yerr</span>, <span class="pl-s1">xerr</span>, <span class="pl-s1">secondary_y</span>, <span class="pl-s1">sort_columns</span>, <span class="pl-c1">**</span><span class="pl-s1">kwds</span>) <span class="pl-c1">3665</span> <span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-s1">fontsize</span>, <span class="pl-s1">colormap</span><span class="pl-c1">=</span><span class="pl-s1">colormap</span>, <span class="pl-s1">table</span><span class="pl-c1">=</span><span class="pl-s1">table</span>, <span class="pl-c1">3666</span> <span class="pl-s1">yerr</span><span class="pl-c1">=</span><span class="pl-s1">yerr</span>, <span class="pl-s1">xerr</span><span class="pl-c1">=</span><span class="pl-s1">xerr</span>, <span class="pl-s1">secondary_y</span><span class="pl-c1">=</span><span class="pl-s1">secondary_y</span>, <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">3667</span> <span class="pl-s1">sort_columns</span><span class="pl-c1">=</span><span class="pl-s1">sort_columns</span>, <span class="pl-c1">**</span><span class="pl-s1">kwds</span>) <span class="pl-c1">3668</span> <span class="pl-s1">__call__</span>.<span class="pl-s1">__doc__</span> <span class="pl-c1">=</span> <span class="pl-s1">plot_frame</span>.<span class="pl-s1">__doc__</span> <span class="pl-c1">3669</span> <span class="pl-v">D</span>:\P<span class="pl-s1">ython27</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\p<span class="pl-s1">andas</span>\t<span class="pl-s1">ools</span>\p<span class="pl-s1">lotting</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">plot_frame</span>(<span class="pl-s1">data</span>, <span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">kind</span>, <span class="pl-s1">ax</span>, <span class="pl-s1">subplots</span>, <span class="pl-s1">sharex</span>, <span class="pl-s1">sharey</span>, <span class="pl-s1">layout</span>, <span class="pl-s1">figsize</span>, <span class="pl-s1">use_index</span>, <span class="pl-s1">title</span>, <span class="pl-s1">grid</span>, <span class="pl-s1">legend</span>, <span class="pl-s1">style</span>, <span class="pl-s1">logx</span>, <span class="pl-s1">logy</span>, <span class="pl-s1">loglog</span>, <span class="pl-s1">xticks</span>, <span class="pl-s1">yticks</span>, <span class="pl-s1">xlim</span>, <span class="pl-s1">ylim</span>, <span class="pl-s1">rot</span>, <span class="pl-s1">fontsize</span>, <span class="pl-s1">colormap</span>, <span class="pl-s1">table</span>, <span class="pl-s1">yerr</span>, <span class="pl-s1">xerr</span>, <span class="pl-s1">secondary_y</span>, <span class="pl-s1">sort_columns</span>, <span class="pl-c1">**</span><span class="pl-s1">kwds</span>) <span class="pl-c1">2550</span> <span class="pl-s1">yerr</span><span class="pl-c1">=</span><span class="pl-s1">yerr</span>, <span class="pl-s1">xerr</span><span class="pl-c1">=</span><span class="pl-s1">xerr</span>, <span class="pl-c1">2551</span> <span class="pl-s1">secondary_y</span><span class="pl-c1">=</span><span class="pl-s1">secondary_y</span>, <span class="pl-s1">sort_columns</span><span class="pl-c1">=</span><span class="pl-s1">sort_columns</span>, <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">2552</span> <span class="pl-c1">**</span><span class="pl-s1">kwds</span>) <span class="pl-c1">2553</span> <span class="pl-c1">2554</span> <span class="pl-v">D</span>:\P<span class="pl-s1">ython27</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\p<span class="pl-s1">andas</span>\t<span class="pl-s1">ools</span>\p<span class="pl-s1">lotting</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_plot</span>(<span class="pl-s1">data</span>, <span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">subplots</span>, <span class="pl-s1">ax</span>, <span class="pl-s1">kind</span>, <span class="pl-c1">**</span><span class="pl-s1">kwds</span>) <span class="pl-c1">2378</span> <span class="pl-s1">plot_obj</span> <span class="pl-c1">=</span> <span class="pl-en">klass</span>(<span class="pl-s1">data</span>, <span class="pl-s1">subplots</span><span class="pl-c1">=</span><span class="pl-s1">subplots</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>, <span class="pl-s1">kind</span><span class="pl-c1">=</span><span class="pl-s1">kind</span>, <span class="pl-c1">**</span><span class="pl-s1">kwds</span>) <span class="pl-c1">2379</span> <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">2380</span> <span class="pl-s1">plot_obj</span>.<span class="pl-en">generate</span>() <span class="pl-c1">2381</span> <span class="pl-s1">plot_obj</span>.<span class="pl-en">draw</span>() <span class="pl-c1">2382</span> <span class="pl-k">return</span> <span class="pl-s1">plot_obj</span>.<span class="pl-s1">result</span> <span class="pl-v">D</span>:\P<span class="pl-s1">ython27</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\p<span class="pl-s1">andas</span>\t<span class="pl-s1">ools</span>\p<span class="pl-s1">lotting</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">generate</span>(<span class="pl-s1">self</span>) <span class="pl-c1">990</span> <span class="pl-s1">self</span>.<span class="pl-en">_post_plot_logic_common</span>(<span class="pl-s1">ax</span>, <span class="pl-s1">self</span>.<span class="pl-s1">data</span>) <span class="pl-c1">991</span> <span class="pl-s1">self</span>.<span class="pl-en">_post_plot_logic</span>(<span class="pl-s1">ax</span>, <span class="pl-s1">self</span>.<span class="pl-s1">data</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">992</span> <span class="pl-s1">self</span>.<span class="pl-en">_adorn_subplots</span>() <span class="pl-c1">993</span> <span class="pl-c1">994</span> <span class="pl-k">def</span> <span class="pl-en">_args_adjust</span>(<span class="pl-s1">self</span>): <span class="pl-v">D</span>:\P<span class="pl-s1">ython27</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\p<span class="pl-s1">andas</span>\t<span class="pl-s1">ools</span>\p<span class="pl-s1">lotting</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_adorn_subplots</span>(<span class="pl-s1">self</span>) <span class="pl-c1">1141</span> <span class="pl-s1">naxes</span><span class="pl-c1">=</span><span class="pl-s1">nrows</span> <span class="pl-c1">*</span> <span class="pl-s1">ncols</span>, <span class="pl-s1">nrows</span><span class="pl-c1">=</span><span class="pl-s1">nrows</span>, <span class="pl-c1">1142</span> <span class="pl-s1">ncols</span><span class="pl-c1">=</span><span class="pl-s1">ncols</span>, <span class="pl-s1">sharex</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">sharex</span>, <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1143</span> <span class="pl-s1">sharey</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">sharey</span>) <span class="pl-c1">1144</span> <span class="pl-c1">1145</span> <span class="pl-k">for</span> <span class="pl-s1">ax</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">axes</span>: <span class="pl-v">D</span>:\P<span class="pl-s1">ython27</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\p<span class="pl-s1">andas</span>\t<span class="pl-s1">ools</span>\p<span class="pl-s1">lotting</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_handle_shared_axes</span>(<span class="pl-s1">axarr</span>, <span class="pl-s1">nplots</span>, <span class="pl-s1">naxes</span>, <span class="pl-s1">nrows</span>, <span class="pl-s1">ncols</span>, <span class="pl-s1">sharex</span>, <span class="pl-s1">sharey</span>) <span class="pl-c1">3403</span> <span class="pl-c"># as we only have labels in teh first column and we always have a subplot there,</span> <span class="pl-c1">3404</span> <span class="pl-c"># we can skip the layout test</span> <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">3405</span> <span class="pl-k">if</span> <span class="pl-s1">ax</span>.<span class="pl-en">is_first_col</span>(): <span class="pl-c1">3406</span> <span class="pl-s1">continue</span> <span class="pl-c1">3407</span> <span class="pl-k">if</span> <span class="pl-s1">sharey</span> <span class="pl-c1">or</span> <span class="pl-en">len</span>(<span class="pl-s1">ax</span>.<span class="pl-en">get_shared_y_axes</span>().<span class="pl-en">get_siblings</span>(<span class="pl-s1">ax</span>)) <span class="pl-c1">&gt;</span> <span class="pl-c1">1</span>: <span class="pl-v">AttributeError</span>: <span class="pl-s">'Axes'</span> <span class="pl-s1">object</span> <span class="pl-s1">has</span> <span class="pl-s1">no</span> <span class="pl-s1">attribute</span> <span class="pl-s">'is_first_col'</span></pre></div>
1
<p dir="auto">When I hold down the Windows key, it's nice that it lists almost all the keys that you can use with it.</p> <p dir="auto">Why is V missing (clipboard history?)</p> <p dir="auto">I think I've got it down now, but it would be nice when I've lost my mind.</p> <p dir="auto">Or is it because it's not in all versions of Windows 10 yet?</p>
<p dir="auto">total list from MSFT support: <a href="https://support.microsoft.com/en-us/help/12445/windows-keyboard-shortcuts" rel="nofollow">https://support.microsoft.com/en-us/help/12445/windows-keyboard-shortcuts</a></p> <p dir="auto">This list will be added into <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="534286788" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/890" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/890/hovercard" href="https://github.com/microsoft/PowerToys/issues/890">#890</a> with v2 of shortcut guide.</p> <table role="table"> <thead> <tr> <th>Combination</th> <th>Effect</th> </tr> </thead> <tbody> <tr> <td>Win + Esc</td> <td>Close magnification</td> </tr> <tr> <td>Win + Enter</td> <td>Narrator (Below 19h1)</td> </tr> <tr> <td>Win + Pause</td> <td>System Window</td> </tr> <tr> <td>Win + PrtScn</td> <td>Capture screenshot</td> </tr> <tr> <td>Win + Space</td> <td>Switch Keyboard Layout</td> </tr> <tr> <td>Win + Tab</td> <td>Open Timeline</td> </tr> <tr> <td>Win + ;</td> <td>Emoji Keyboard Pop up</td> </tr> <tr> <td>Win + .</td> <td>Emoji Keyboard Pop up</td> </tr> <tr> <td>Win + ,</td> <td>Peek at desktop</td> </tr> <tr> <td>Win + +/-</td> <td>Magnifier</td> </tr> <tr> <td>---</td> <td>---</td> </tr> <tr> <td>Win + A</td> <td>Action Center</td> </tr> <tr> <td>Win + B</td> <td>Focus system tray</td> </tr> <tr> <td>Win + C</td> <td>Cortana (doesn't work on 1909)</td> </tr> <tr> <td>Win + D</td> <td>Display &amp; hide desktop</td> </tr> <tr> <td>Win + E</td> <td>File Explorer</td> </tr> <tr> <td>Win + F</td> <td>Open Feedback Hub</td> </tr> <tr> <td>Win + G</td> <td>Game bar</td> </tr> <tr> <td>Win + H</td> <td>Dictation bar</td> </tr> <tr> <td>Win + I</td> <td>Settings</td> </tr> <tr> <td>Win + K</td> <td>Quick connect</td> </tr> <tr> <td>Win + L</td> <td>Lock PC</td> </tr> <tr> <td>Win + M</td> <td>Minimize windows</td> </tr> <tr> <td>Win + N</td> <td>Notification dialog (Need to verify min version, may be Win11 and up)</td> </tr> <tr> <td>Win + Q</td> <td>Open Search Bar</td> </tr> <tr> <td>Win + P</td> <td>Open Display Mode Selection panel</td> </tr> <tr> <td>Win + R</td> <td>Run Dialog</td> </tr> <tr> <td>Win + S</td> <td>Open Search Bar</td> </tr> <tr> <td>Win + T</td> <td>Navigate between task bar items</td> </tr> <tr> <td>Win + U</td> <td>Ease of access center</td> </tr> <tr> <td>Win + V</td> <td>Open Clipboard History</td> </tr> <tr> <td>Win + W</td> <td>Open Windows Ink Workspace Panel</td> </tr> <tr> <td>Win + X</td> <td>Quick launch menu</td> </tr> <tr> <td>Win+Z</td> <td>Snap Flyout ( win11+)</td> </tr> <tr> <td>---</td> <td>---</td> </tr> <tr> <td>Win + Shift + M</td> <td>Restores windows minimized with Win + M</td> </tr> <tr> <td>Win + Shift + S</td> <td>Screenshot</td> </tr> <tr> <td>Win + Shift + T</td> <td>Navigate between task bar items reversed</td> </tr> <tr> <td>Win + Shift + Left/Right Arrow</td> <td>Move entire active window to different window</td> </tr> <tr> <td>---</td> <td>---</td> </tr> <tr> <td>Win + Ctrl + arrow</td> <td>Switch virtual desktop</td> </tr> <tr> <td>Win + Ctrl + Enter</td> <td>Narrator (19h1 and above)</td> </tr> <tr> <td>Win + Ctrl+F4</td> <td>Close virtual desktop</td> </tr> <tr> <td>Win + Ctrl + D</td> <td>New virtual desktop</td> </tr> <tr> <td>Win + Ctrl + N</td> <td>Narrator settings</td> </tr> <tr> <td>Win + Ctrl + Q</td> <td>Quick Assist</td> </tr> <tr> <td>---</td> <td>---</td> </tr> <tr> <td>Win + Alt+ D</td> <td>Toggles calendar in taskbar</td> </tr> <tr> <td>---</td> <td>---</td> </tr> <tr> <td>Win + Ctrl + Shift + B</td> <td>Restart Video Driver</td> </tr> <tr> <td>---</td> <td>---</td> </tr> <tr> <td>Win + Shift + Ctrl + Alt</td> <td>emulates the Office key</td> </tr> </tbody> </table>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.186.0<br> <strong>System</strong>: Mac OS X 10.10.2<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: No line exists for row 10. Last screen row: 9</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /opt/app/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:385 Error: No line exists for row 10. Last screen row: 9 at TextEditorPresenter.&lt;anonymous&gt; (/opt/app/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:385:19) at TextEditorPresenter.module.exports.TextEditorPresenter.batch (/opt/app/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:91:12) at TextEditorPresenter.module.exports.TextEditorPresenter.updateLinesState (/opt/app/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:375:19) at TextEditorPresenter.module.exports.TextEditorPresenter.getState (/opt/app/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:123:14) at TextEditorComponent.module.exports.TextEditorComponent.updateSync (/opt/app/Atom.app/Contents/Resources/app/src/text-editor-component.js:172:38) at /opt/app/Atom.app/Contents/Resources/app/src/text-editor-component.js:280:28 at ViewRegistry.module.exports.ViewRegistry.performDocumentUpdate (/opt/app/Atom.app/Contents/Resources/app/src/view-registry.js:159:9) at /opt/app/Atom.app/Contents/Resources/app/src/view-registry.js:3:61 "><pre class="notranslate"><code class="notranslate">At /opt/app/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:385 Error: No line exists for row 10. Last screen row: 9 at TextEditorPresenter.&lt;anonymous&gt; (/opt/app/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:385:19) at TextEditorPresenter.module.exports.TextEditorPresenter.batch (/opt/app/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:91:12) at TextEditorPresenter.module.exports.TextEditorPresenter.updateLinesState (/opt/app/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:375:19) at TextEditorPresenter.module.exports.TextEditorPresenter.getState (/opt/app/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:123:14) at TextEditorComponent.module.exports.TextEditorComponent.updateSync (/opt/app/Atom.app/Contents/Resources/app/src/text-editor-component.js:172:38) at /opt/app/Atom.app/Contents/Resources/app/src/text-editor-component.js:280:28 at ViewRegistry.module.exports.ViewRegistry.performDocumentUpdate (/opt/app/Atom.app/Contents/Resources/app/src/view-registry.js:159:9) at /opt/app/Atom.app/Contents/Resources/app/src/view-registry.js:3:61 </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 2x -1:54.8 core:move-left (atom-text-editor.editor.is-focused) -1:53.6 core:move-right (atom-text-editor.editor.is-focused) -1:53.2 core:select-right (atom-text-editor.editor.is-focused) -1:51.5 core:backspace (atom-text-editor.editor.is-focused) -1:51.0 core:move-right (atom-text-editor.editor.is-focused) -1:50.6 core:backspace (atom-text-editor.editor.is-focused) 23x -1:50.2 core:move-right (atom-text-editor.editor.is-focused) 2x -1:47.2 core:backspace (atom-text-editor.editor.is-focused) 44x -1:44.7 core:move-right (atom-text-editor.editor.is-focused) -1:38.9 core:backspace (atom-text-editor.editor.is-focused) -1:35.9 editor:newline (atom-text-editor.editor.is-focused) -1:35.2 core:move-down (atom-text-editor.editor.is-focused) -1:34.8 core:move-right (atom-text-editor.editor.is-focused) 21x -1:34.4 core:select-right (atom-text-editor.editor.is-focused) -1:22.8 core:paste (atom-text-editor.editor.is-focused) -1:20.4 core:save (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> 2x -1:54.8 core:move-left (atom-text-editor.editor.is-focused) -1:53.6 core:move-right (atom-text-editor.editor.is-focused) -1:53.2 core:select-right (atom-text-editor.editor.is-focused) -1:51.5 core:backspace (atom-text-editor.editor.is-focused) -1:51.0 core:move-right (atom-text-editor.editor.is-focused) -1:50.6 core:backspace (atom-text-editor.editor.is-focused) 23x -1:50.2 core:move-right (atom-text-editor.editor.is-focused) 2x -1:47.2 core:backspace (atom-text-editor.editor.is-focused) 44x -1:44.7 core:move-right (atom-text-editor.editor.is-focused) -1:38.9 core:backspace (atom-text-editor.editor.is-focused) -1:35.9 editor:newline (atom-text-editor.editor.is-focused) -1:35.2 core:move-down (atom-text-editor.editor.is-focused) -1:34.8 core:move-right (atom-text-editor.editor.is-focused) 21x -1:34.4 core:select-right (atom-text-editor.editor.is-focused) -1:22.8 core:paste (atom-text-editor.editor.is-focused) -1:20.4 core:save (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;disabledPackages&quot;: [ &quot;emmet&quot;, &quot;autocomplete&quot; ], &quot;themes&quot;: [ &quot;one-dark-ui&quot;, &quot;solarized-dark-syntax&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;fontSize&quot;: 15 } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>emmet<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>autocomplete<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>one-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>solarized-dark-syntax<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">15</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User atom-beautify, v0.21.3 autocomplete-plus, v2.4.0 color-picker, v1.4.4 file-icons, v1.5.0 go-plus, v3.2.3 highlight-line, v0.10.1 linter, v0.12.0 minimap, v4.5.0 project-manager, v1.15.5 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> atom<span class="pl-k">-</span>beautify, v0.<span class="pl-ii">21</span>.<span class="pl-ii">3</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">4</span>.<span class="pl-ii">4</span> file<span class="pl-k">-</span>icons, v1.<span class="pl-ii">5</span>.<span class="pl-ii">0</span> go<span class="pl-k">-</span>plus, v3.<span class="pl-ii">2</span>.<span class="pl-ii">3</span> highlight<span class="pl-k">-</span>line, v0.<span class="pl-ii">10</span>.<span class="pl-ii">1</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> minimap, v4.<span class="pl-ii">5</span>.<span class="pl-ii">0</span> project<span class="pl-k">-</span>manager, v1.<span class="pl-ii">15</span>.<span class="pl-ii">5</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>
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.180.0<br> <strong>System</strong>: Mac OS X 10.10.2<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: No line exists for row 18. Last screen row: 17</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:234 Error: No line exists for row 18. Last screen row: 17 at TextEditorPresenter.module.exports.TextEditorPresenter.updateLinesState (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:234:17) at TextEditorPresenter.module.exports.TextEditorPresenter.characterWidthsChanged (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:835:12) at TextEditorPresenter.module.exports.TextEditorPresenter.batchCharacterMeasurement (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:815:21) at module.exports.React.createClass.measureCharactersInNewLines (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/lines-component.js:341:24) at boundMethod [as measureCharactersInNewLines] (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1295:21) at module.exports.React.createClass.componentDidUpdate (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/lines-component.js:108:14) at CallbackQueue.mixInto.notifyAll (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/CallbackQueue.js:75:22) at ReactReconcileTransaction.ON_DOM_READY_QUEUEING.close (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactReconcileTransaction.js:88:26) at ReactReconcileTransaction.Mixin.closeAll (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:214:42) at ReactReconcileTransaction.Mixin.perform (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:155:16)"><pre class="notranslate"><code class="notranslate">At /Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:234 Error: No line exists for row 18. Last screen row: 17 at TextEditorPresenter.module.exports.TextEditorPresenter.updateLinesState (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:234:17) at TextEditorPresenter.module.exports.TextEditorPresenter.characterWidthsChanged (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:835:12) at TextEditorPresenter.module.exports.TextEditorPresenter.batchCharacterMeasurement (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:815:21) at module.exports.React.createClass.measureCharactersInNewLines (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/lines-component.js:341:24) at boundMethod [as measureCharactersInNewLines] (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1295:21) at module.exports.React.createClass.componentDidUpdate (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/src/lines-component.js:108:14) at CallbackQueue.mixInto.notifyAll (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/CallbackQueue.js:75:22) at ReactReconcileTransaction.ON_DOM_READY_QUEUEING.close (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactReconcileTransaction.js:88:26) at ReactReconcileTransaction.Mixin.closeAll (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:214:42) at ReactReconcileTransaction.Mixin.perform (/Users/dan.treasure/Downloads/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:155: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:00.8 window:update-available (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-dark-syntax.theme-atom-dark-ui)"><pre class="notranslate"><code class="notranslate"> -0:00.8 window:update-available (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-dark-syntax.theme-atom-dark-ui) </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;editor&quot;: { &quot;fontSize&quot;: 23 } }"><pre class="notranslate">{ <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">23</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User atom-jshint, v1.4.3 autocomplete-plus, v0.21.0 linter, v0.4.11 linter-coffeelint, v0.1.1 ruby-slim, v0.2.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> atom<span class="pl-k">-</span>jshint, v1.<span class="pl-ii">4</span>.<span class="pl-ii">3</span> autocomplete<span class="pl-k">-</span>plus, v0.<span class="pl-ii">21</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">4</span>.<span class="pl-ii">11</span> linter<span class="pl-k">-</span>coffeelint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">1</span> ruby<span class="pl-k">-</span>slim, v0.<span class="pl-ii">2</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